/* Carrera 25N | Homologación responsive de páginas. 06-nov-2026.
 * Superficie y distribución solamente: NO altera registro, Firebase ni exportaciones.
 */
*,*::before,*::after{box-sizing:border-box}
html{scroll-padding-top:84px}
body{margin:0;min-width:0;overflow-x:clip;font-family:'DM Sans',system-ui,Arial,sans-serif}
button,input,select,textarea{font:inherit}
img,svg,video{max-width:100%}
img{height:auto}
.shell{width:min(1180px,calc(100% - 40px));margin-inline:auto}
section[id]{scroll-margin-top:84px}
a,button,input,select,textarea,summary{-webkit-tap-highlight-color:transparent}
:focus-visible{outline:3px solid #ff893c!important;outline-offset:3px}
:root{
 --unified-bg:#ffffff;--unified-surface:#ffffff;--unified-ink:#24182c;--unified-muted:#675e6d;
 --unified-line:#e7dfea;--unified-soft:#f8f3fa;--unified-link:#56206e;
}
:root[data-theme="dark"]{
 --unified-bg:#16111e;--unified-surface:#281e30;--unified-ink:#f8edf9;--unified-muted:#d2c2d9;
 --unified-line:#4f3b5b;--unified-soft:#34273d;--unified-link:#e5b5fa;
}

/* Identidad y navegación uniformes: Inicio, Panel, Ayuda y 404. */
.site-header{position:sticky;top:0;z-index:110;background:var(--unified-surface);color:var(--unified-ink);border-bottom:1px solid var(--unified-line);box-shadow:0 3px 16px #2010290a}
.site-header .header-inner{width:min(1180px,calc(100% - 40px));min-height:76px;margin-inline:auto;display:flex;align-items:center;gap:clamp(10px,2vw,24px);position:relative}
.site-header .brand{display:inline-flex;align-items:center;min-width:0;gap:12px;flex-shrink:0;text-decoration:none}
.site-header .brand img{display:block;width:clamp(115px,11vw,154px);max-width:none;height:auto;object-fit:contain}
.site-header .brand-divider{height:34px;flex:0 0 1px;background:var(--unified-line)}
.site-header .brand-word{display:flex;flex-direction:column;line-height:1.02;font-size:11px;font-weight:850;color:var(--unified-link);white-space:nowrap}
.site-header .brand-word b{display:block;font:900 24px/1 Outfit,'DM Sans',sans-serif;letter-spacing:-.03em}
.site-header .brand-word small{font-size:9px}
.site-header .nav-links{margin-left:auto;display:flex;align-items:center;gap:clamp(10px,1.45vw,24px);min-width:0}
.site-header .nav-links a{display:inline-flex;align-items:center;min-height:38px;color:var(--unified-ink);text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}
.site-header .nav-links a:hover{color:var(--unified-link)}
.site-header .nav-links .mobile-nav-cta{display:none}
.site-header .header-actions{display:flex;align-items:center;gap:10px;flex:0 0 auto;margin-left:0}
.site-header .nav-cta{display:inline-flex;align-items:center;gap:7px;justify-content:center;min-height:44px;white-space:nowrap;text-decoration:none;border-radius:99px;padding:10px 17px;background:#ff621f;color:#fff;font-size:12px;font-weight:900;margin:0}
.site-header .nav-cta:hover{background:#e74b16;color:#fff}
.site-header .theme-toggle{width:44px;height:44px;min-width:44px;min-height:44px;display:inline-grid;place-items:center;border-radius:50%;padding:8px;background:var(--unified-soft);border:1px solid var(--unified-line);color:var(--unified-link);cursor:pointer;flex:0 0 44px}
.site-header .theme-toggle:hover{border-color:var(--unified-link)}
.site-header .menu-toggle{display:none;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;padding:9px;border:1px solid var(--unified-line);border-radius:13px;background:var(--unified-soft);color:var(--unified-link);cursor:pointer}
.site-header .menu-icon-close{display:none}
.site-header .menu-toggle[aria-expanded="true"] .menu-icon-open{display:none}
.site-header .menu-toggle[aria-expanded="true"] .menu-icon-close{display:block}
.site-header .menu-toggle svg{width:22px;height:22px}

/* Mismo pie institucional y transparencia de los logotipos en las cuatro páginas. */
footer.footer{margin-top:0;background:#250d36;color:#fff;padding:clamp(38px,5vw,65px) 0 23px}
:root[data-theme="dark"] footer.footer{background:#160d1f}
footer.footer .footer-grid{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(18px,3.8vw,58px)}
footer.footer .footer-grid>div{min-width:0}
footer.footer img[data-footer-logo]{display:block;width:min(100%,440px);height:auto;max-width:100%;background:none!important;border:0!important;padding:0!important;box-shadow:none!important;border-radius:0!important;object-fit:contain}
footer.footer .footer-grid strong{display:block;font:900 13px Outfit,'DM Sans',sans-serif;letter-spacing:.1em;color:#ff9d69;margin:6px 0 18px}
footer.footer .footer-grid p{color:#dfcde9;font-size:14px;line-height:1.5;margin:14px 0 6px}
footer.footer .footer-grid small{display:block;color:#c4a5d3;font-size:12px;line-height:1.5}
footer.footer .footer-grid a{display:block;color:#ebddea;font-size:13px;line-height:1.45;margin:12px 0;text-decoration:none;overflow-wrap:anywhere}
footer.footer .footer-grid a:hover{color:#ff9d69}
footer.footer .footer-bottom{border-top:1px solid #ffffff26;margin-top:clamp(25px,4vw,45px);padding-top:20px;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:12px;color:#c6a8d2;font-size:11px}

/* Home: no se cambia el diseño aprobado, únicamente protecciones de reflujo. */
.page-event,.page-login,.page-404{overflow-x:clip}
.hero-layout,.hero-content,.overview-top,.overview-top>div,.split-section>div,.details-layout,.tab-content,.registration-layout,.form-card,.kit-grid,.kit-card,.footer-grid{min-width:0}
.hero h1,.section h2,.registration-intro h2,.route-art strong{text-wrap:balance;overflow-wrap:normal}
.hero-cover{pointer-events:none}
.hero-poster img{height:auto;object-fit:contain}
.section-head{gap:18px;min-width:0}
.section-head>div,.support-card{min-width:0}
.registration-intro>p,.tab-panel p,.faq-list details p{overflow-wrap:anywhere}
.form-card .field-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.form-card .field,.form-card .field-row>div{min-width:0}
.form-card .field input,.form-card .field select{width:100%;min-width:0;min-height:45px}
.form-header,.progress-heading{flex-wrap:wrap}
.checkbox-line{overflow-wrap:anywhere}
.tab-menu{min-width:0}
.tab-button{min-width:0}
.award-grid,.two-lists{min-width:0}
.registro-modal__card{width:min(100%,480px);max-height:min(90dvh,900px);overflow:auto}

/* Paneles secundarios con estilo, color y tipografía del evento. */
.page-login,.page-404{background:var(--unified-bg);color:var(--unified-ink)}
.subpage-main{min-height:calc(100dvh - 77px);padding-block:clamp(48px,7vw,96px);display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.9fr);gap:clamp(24px,5vw,70px);align-items:center}
.subpage-copy{min-width:0}
.subpage-copy .section-kicker{color:#e15a20;display:block;margin-bottom:17px;letter-spacing:.12em;font-size:11px;font-weight:900}
.subpage-copy h1{font:900 clamp(34px,5vw,70px)/1.03 Outfit,'DM Sans',sans-serif;letter-spacing:-.045em;color:var(--unified-ink);margin:0 0 22px;overflow-wrap:normal}
.subpage-copy h1 span{color:var(--unified-link)}
.subpage-copy p{font-size:clamp(14px,1.5vw,17px);line-height:1.75;color:var(--unified-muted);margin:0 0 27px}
.subpage-copy .button{display:inline-flex;align-items:center;justify-content:center;gap:20px;min-height:50px;padding:13px 22px;font-weight:850}
.subpage-art{min-width:0;border:1px solid var(--unified-line);border-radius:26px;background:linear-gradient(145deg,#fff2fa,#f6e7fc);padding:clamp(18px,3vw,28px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;box-shadow:0 14px 40px #2b11460d}
:root[data-theme="dark"] .subpage-art{background:linear-gradient(145deg,#34233d,#281b32);box-shadow:0 18px 45px #0003}
.subpage-art img{display:block;width:min(100%,410px);max-height:390px;object-fit:contain}
.subpage-art p{font:900 12px Outfit,'DM Sans',sans-serif;color:var(--unified-link);letter-spacing:.1em;text-align:center;margin:0}
.error-code{display:block;font:900 clamp(96px,13vw,175px)/.86 Outfit,'DM Sans',sans-serif;letter-spacing:-.07em;color:var(--unified-link);margin:16px 0}
.error-code span{color:#ff621f}

/* Dashboard: apariencia del sitio sin alterar los filtros, tablas ni controles existentes. */
html[data-theme] body.page-dashboard{background:var(--unified-bg);color:var(--unified-ink);font-family:'DM Sans',system-ui,sans-serif}
html[data-theme] body.page-dashboard .layout{width:min(1180px,calc(100% - 40px));margin:0 auto;padding:30px 0 clamp(40px,6vw,76px)}
html[data-theme] body.page-dashboard .intro{background:linear-gradient(125deg,#35184f,#602770);color:#fff;border-radius:24px;padding:clamp(26px,4.6vw,48px);margin:0 0 25px;min-width:0;position:relative;overflow:hidden}
html[data-theme] body.page-dashboard .intro::after{display:block;content:"";right:-25px;top:auto;bottom:-20px;width:clamp(155px,24vw,300px);height:90%;background:url('../assets/corredores.svg') center bottom/contain no-repeat;opacity:.27;border-radius:0;-webkit-mask-image:none;mask-image:none}
html[data-theme] body.page-dashboard .intro h1{position:relative;color:#fff;font:900 clamp(38px,5vw,67px)/1.02 Outfit,'DM Sans',sans-serif;letter-spacing:-.05em;margin:10px 0 14px;max-width:78%}
html[data-theme] body.page-dashboard .intro .eyebrow{position:relative;font-size:11px;letter-spacing:.11em;font-weight:900;color:#ffb184;text-transform:uppercase}
html[data-theme] body.page-dashboard .intro p{position:relative;color:#f0e5f4;max-width:70%;font-size:14px;line-height:1.65}
html[data-theme] body.page-dashboard #connection{max-width:80%;overflow-wrap:anywhere;color:#fff!important;border:1px solid #ffffff57!important;background:#ffffff14!important}
html[data-theme] body.page-dashboard .notice{background:var(--unified-soft);color:var(--unified-muted);border-left:4px solid #ff7936;border-radius:12px;padding:17px 20px}
html[data-theme] body.page-dashboard .stat-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
html[data-theme] body.page-dashboard .stat,html[data-theme] body.page-dashboard .panel,html[data-theme] body.page-dashboard .local-data-panel{min-width:0;background:var(--unified-surface);border:1px solid var(--unified-line);border-radius:18px;color:var(--unified-ink);box-shadow:0 8px 25px #24102a0a}
html[data-theme] body.page-dashboard .stat{padding:clamp(15px,2vw,24px)}
html[data-theme] body.page-dashboard .stat strong{color:var(--unified-link);font:900 clamp(28px,3.6vw,43px)/1.15 Outfit,'DM Sans',sans-serif}
html[data-theme] body.page-dashboard .stat small,html[data-theme] body.page-dashboard .local-status,html[data-theme] body.page-dashboard .local-count{color:var(--unified-muted)}
html[data-theme] body.page-dashboard .filters{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin:23px 0}
html[data-theme] body.page-dashboard .filters label{min-width:140px;flex:1 1 150px;color:var(--unified-ink)}
html[data-theme] body.page-dashboard .filters select,html[data-theme] body.page-dashboard .filters button{width:100%;min-height:46px;background:var(--unified-surface);border:1px solid var(--unified-line);color:var(--unified-ink);border-radius:11px}
html[data-theme] body.page-dashboard .filters button{width:auto;flex:0 1 auto;white-space:normal}
html[data-theme] body.page-dashboard .panels{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px}
html[data-theme] body.page-dashboard .panel{padding:clamp(16px,2vw,23px)}
html[data-theme] body.page-dashboard .panel.wide{grid-column:1/-1}
html[data-theme] body.page-dashboard .panel h2,html[data-theme] body.page-dashboard .local-heading h2{font-family:Outfit,'DM Sans',sans-serif;color:var(--unified-ink)}
html[data-theme] body.page-dashboard .local-data-panel{padding:clamp(17px,3vw,28px);margin-top:24px}
html[data-theme] body.page-dashboard .local-actions{display:flex;flex-wrap:wrap;align-items:center;gap:9px}
html[data-theme] body.page-dashboard .local-actions button,html[data-theme] body.page-dashboard .local-actions label.details-button{min-height:44px;border-radius:11px;border:1px solid var(--unified-line);color:var(--unified-ink);background:var(--unified-soft)!important;display:inline-flex!important;align-items:center;justify-content:center;padding:10px 14px!important;font-size:12px;font-weight:850}
html[data-theme] body.page-dashboard .local-actions label.details-button{cursor:pointer}
html[data-theme] body.page-dashboard .local-actions #export-pdf:disabled{opacity:.50}
html[data-theme] body.page-dashboard .local-search input{max-width:100%;color:var(--unified-ink);background:var(--unified-surface);border-color:var(--unified-line)}
html[data-theme] body.page-dashboard .table-scroll{overflow-x:auto;max-width:100%;overscroll-behavior-x:contain}
html[data-theme] body.page-dashboard #local-table th{background:var(--unified-soft);color:var(--unified-link)}
html[data-theme] body.page-dashboard #local-table td{color:var(--unified-ink)}
html[data-theme] body.page-dashboard #details-dialog{max-width:calc(100vw - 24px);color:var(--unified-ink);background:var(--unified-surface);border-color:var(--unified-line)}
html[data-theme] body.page-dashboard .bottom-note{color:var(--unified-muted)}

/* Breakpoint de navegación antes de que el header se amontone. */
@media(max-width:1020px){
 .site-header .nav-links{display:none;position:absolute;inset:calc(100% + 1px) 0 auto;z-index:111;width:100%;padding:12px 14px 18px;flex-direction:column;align-items:stretch;gap:0;margin:0;background:var(--unified-surface);border:1px solid var(--unified-line);border-top:0;border-radius:0 0 18px 18px;box-shadow:0 16px 30px #14081d2b;max-height:calc(100dvh - 77px);overflow-y:auto}
 .site-header .nav-links.is-open{display:flex}
 .site-header .nav-links a{display:block;white-space:normal;min-height:43px;padding:11px 13px;font-size:14px;line-height:1.4;border-bottom:1px solid var(--unified-line)}
 .site-header .nav-links .mobile-nav-cta{display:block;text-align:center;background:#ff621f;color:white;border:0;border-radius:12px;margin-top:12px;font-weight:900}
 .site-header .header-actions{margin-left:auto}
 .site-header .menu-toggle{display:inline-flex}
 .registration-layout{gap:clamp(24px,5vw,45px)}
}
@media(max-width:900px){
 footer.footer .footer-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:27px 35px}
 footer.footer .footer-grid>div:first-child{grid-column:1/-1}
 html[data-theme] body.page-dashboard .stat-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .subpage-main{grid-template-columns:1fr;gap:30px}
 .subpage-art{width:min(100%,680px);margin-inline:auto}
}
@media(max-width:780px){
 .shell,.site-header .header-inner{width:min(100% - 32px,1180px)}
 .site-header .header-inner{min-height:70px}
 .hero-layout{grid-template-columns:1fr}
 .hero-content{min-width:0}
 .overview-top,.split-section,.details-layout,.registration-layout{grid-template-columns:1fr;gap:28px}
 .registration-intro{position:static}
 .tab-menu{overflow-x:auto;scrollbar-width:thin;max-width:calc(100vw - 32px)}
 .tab-menu .tab-button{flex:0 0 175px}
 .kit-grid{grid-template-columns:1fr}
 .form-card{max-width:none}
 .countdown-wrap{max-width:100%;width:100%}
 .footer-bottom{gap:10px}
 html[data-theme] body.page-dashboard .layout{width:min(100% - 32px,1180px);padding-top:22px}
 html[data-theme] body.page-dashboard .panels{grid-template-columns:1fr}
 html[data-theme] body.page-dashboard .panel.wide{grid-column:1}
}
@media(max-width:620px){
 .site-header .brand img{width:112px}
 .site-header .brand-divider{height:30px}
 .site-header .brand-word{font-size:10px}
 .site-header .brand-word b{font-size:21px}
 .site-header .header-actions{gap:8px}
 .site-header .nav-cta{display:none}
 .hero h1{font-size:clamp(35px,8.4vw,56px);line-height:1.02}
 .hero-content>p{font-size:14px}
 .hero-actions{display:grid;grid-template-columns:1fr;gap:10px}
 .hero-actions .button{display:flex;width:100%;justify-content:center}
 .countdown-wrap{grid-template-columns:1fr;gap:17px;padding:17px 15px}
 .countdown-label{justify-content:center}
 .countdown{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px}
 .countdown div{min-width:0;max-width:none;width:100%}
 .countdown strong{font-size:clamp(21px,7vw,31px)}
 .countdown small{font-size:8px}
 .overview-top,.split-section,.details-layout,.registration-layout{gap:24px}
 .section{padding-top:clamp(54px,9vw,72px);padding-bottom:clamp(54px,9vw,72px)}
 .section-head h2,.overview-top h2,.split-section h2,.registration-intro h2{font-size:clamp(30px,8vw,44px);line-height:1.02}
 .metrics{grid-template-columns:repeat(2,minmax(0,1fr))}
 .metrics>div{padding:clamp(12px,4vw,19px);min-width:0}
 .metrics strong{font-size:clamp(17px,5vw,22px);overflow-wrap:anywhere}
 .date-badge{max-width:100%}
 .kit-ribbon{gap:15px;flex-wrap:wrap}
 .kit-ribbon p{flex-basis:100%;margin:0}
 .form-card{padding:22px 17px}
 .form-card h3{font-size:clamp(27px,7vw,34px)}
 .form-card .field-row{grid-template-columns:1fr;gap:0}
 .form-card .field input,.form-card .field select{min-height:48px;font-size:16px}
 .checkbox-line{font-size:13px}
 .tab-content{padding:21px 17px}
 .award-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
 .award-grid>div{padding:12px 7px}
 .award-grid strong{font-size:clamp(17px,5vw,23px)}
 .two-lists{grid-template-columns:1fr}
 .route-art{padding:24px 19px}
 .faq-list summary{gap:12px;line-height:1.35}
 footer.footer .footer-grid{grid-template-columns:1fr;gap:22px}
 footer.footer .footer-grid>div:first-child{grid-column:auto}
 footer.footer .footer-grid strong{margin-bottom:13px}
 footer.footer .footer-grid a{margin:10px 0}
 html[data-theme] body.page-dashboard .intro{padding:26px 21px}
 html[data-theme] body.page-dashboard .intro::after{opacity:.16;width:65%;height:75%;right:-20%}
 html[data-theme] body.page-dashboard .intro h1,html[data-theme] body.page-dashboard .intro p{max-width:100%}
 html[data-theme] body.page-dashboard #connection{max-width:100%;font-size:11px!important}
 html[data-theme] body.page-dashboard .stat-grid{gap:10px}
 html[data-theme] body.page-dashboard .stat{padding:15px 13px}
 html[data-theme] body.page-dashboard .stat strong{font-size:clamp(27px,8vw,39px)}
 html[data-theme] body.page-dashboard .filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 html[data-theme] body.page-dashboard .filters label{min-width:0;max-width:100%}
 html[data-theme] body.page-dashboard .filters button{width:100%;grid-column:1/-1}
 html[data-theme] body.page-dashboard .local-actions{flex-direction:column;align-items:stretch}
 html[data-theme] body.page-dashboard .local-actions button,html[data-theme] body.page-dashboard .local-actions label.details-button{width:100%}
 .subpage-main{padding-block:48px 58px}
 .subpage-copy h1{font-size:clamp(32px,9vw,52px)}
 .subpage-art{padding:21px;border-radius:20px}
 .error-code{font-size:clamp(100px,24vw,150px)}
}
@media(max-width:390px){
 .shell,.site-header .header-inner{width:calc(100% - 28px)}
 .site-header .header-inner{gap:8px;min-height:66px}
 .site-header .brand{gap:7px}
 .site-header .brand img{width:95px}
 .site-header .brand-divider{height:26px}
 .site-header .brand-word b{font-size:19px}
 .site-header .brand-word small{font-size:8px}
 .site-header .theme-toggle,.site-header .menu-toggle{width:40px;height:40px;min-width:40px;min-height:40px;flex-basis:40px}
 .countdown{gap:5px}
 .countdown div{padding:9px 3px}
 .countdown strong{font-size:clamp(19px,7vw,27px)}
 .hero-actions .button{padding:13px 10px}
 .registro-modal{padding:11px}
 .registro-modal__card{padding:24px 16px}
 .registro-modal__card h2{font-size:clamp(25px,7vw,32px)}
}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{transition-duration:.01ms!important;animation-duration:.01ms!important}}
