/* Carrera 25N · Ajustes puntuales sobre el diseño original.
   No modifica geometría de secciones ni funcionamiento del registro. */
:root {
  --theme-bg: #ffffff;
  --theme-surface: #ffffff;
  --theme-soft: #f8f3fa;
  --theme-line: #e7dfea;
  --theme-text: #24182c;
  --theme-muted: #675e6d;
  --theme-brand: #57216e;
  --theme-clock: #f8f3fb;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --ink: #f8edf9;
  --muted: #d2c2d9;
  --border: #493850;
  --ivory: #1b1422;
  --theme-bg: #16111e;
  --theme-surface: #281e30;
  --theme-soft: #34273d;
  --theme-line: #4f3b5b;
  --theme-text: #f8edf9;
  --theme-muted: #d2c2d9;
  --theme-brand: #e5b5fa;
  --theme-clock: #32243d;
  --violet: #dea5fa;
  --orange: #ff8141;
  color-scheme: dark;
}
html {scroll-padding-top:88px}
body { background:var(--theme-bg); color:var(--theme-text); transition:background-color .2s ease,color .2s ease }
section[id] { scroll-margin-top:88px }
.topbar { display:none!important }
.site-header { background:var(--theme-surface); border-bottom:1px solid var(--theme-line) }
.header-inner { min-height:77px; gap:clamp(12px,2vw,25px) }
.brand-divider { background:var(--theme-line) }
.brand-word {color:var(--theme-brand)}
.nav-links {gap:clamp(12px,1.75vw,27px)}
.nav-links a {color:var(--theme-text)}
.header-actions {display:flex;align-items:center;gap:11px;margin-left:0;flex-shrink:0}
.theme-toggle {width:44px;height:44px;display:inline-grid;place-items:center;position:relative;flex:0 0 44px;
  border:1px solid var(--theme-line);background:var(--theme-soft);border-radius:50%;color:var(--theme-brand);
  cursor:pointer;transition:background .18s,border-color .18s,transform .18s}
.theme-toggle:hover {border-color:var(--violet);transform:translateY(-1px)}
.theme-toggle .theme-icon {width:20px;height:20px;grid-area:1 / 1}
.theme-icon-sun {display:none}
:root[data-theme="dark"] .theme-icon-sun {display:block}
:root[data-theme="dark"] .theme-icon-moon {display:none}
.theme-toggle:focus-visible {outline:3px solid var(--orange);outline-offset:3px}
.nav-cta { margin-left:0 }

/* Contador moderno sin el SVG de fecha: cuatro módulos con números tabulares. */
.countdown-wrap {display:grid;grid-template-columns:minmax(180px,1fr) auto minmax(104px,.55fr);align-items:center;
  gap:clamp(16px,2.5vw,32px);margin-top:-44px;padding:23px clamp(17px,3vw,30px);
  background:var(--theme-surface);border:1px solid var(--theme-line);color:var(--theme-text);
  border-radius:19px;box-shadow:0 15px 40px rgba(37,13,54,.13)}
.countdown-label {display:flex;align-items:center;gap:13px;min-width:0}
.countdown-label .tiny-mark {display:inline-flex;align-items:center;justify-content:center;gap:0;width:56px;height:56px;
  flex:0 0 56px;border-radius:15px;border:1px solid rgba(255,116,55,.23);
  background:linear-gradient(145deg,#3f1857,#271139);color:#ff8b48;
  padding:0;font:900 24px/1 Outfit,Arial,sans-serif;letter-spacing:-.075em}
.countdown-label .tiny-mark span {color:#e9b6fa}
.countdown-label strong {font:900 14px/1.2 Outfit,Arial,sans-serif;color:var(--theme-text)}
.countdown-label small {font-size:11px;color:var(--theme-muted);line-height:1.45;margin-top:5px}
.countdown {display:flex;align-items:center;gap:9px;order:initial;width:auto;justify-content:center}
.countdown i {display:none}
.countdown div {min-width:65px;padding:10px 8px 9px;border:1px solid var(--theme-line);
  background:var(--theme-clock);border-radius:12px;text-align:center}
.countdown strong {display:block;font:900 clamp(25px,2.55vw,35px)/1 Outfit,Arial,sans-serif;
  color:var(--theme-brand);font-variant-numeric:tabular-nums;letter-spacing:-.045em}
.countdown small {display:block;font-size:9px;font-weight:900;color:var(--theme-muted);letter-spacing:.07em;margin-top:6px}
.countdown-link {color:var(--theme-brand);font-size:12px;text-align:right;font-weight:900}
.countdown-link:hover {color:var(--orange)}

/* Transparencia real, sin fondo blanco ni tarjeta en el logotipo institucional. */
.footer-grid img[data-footer-logo] {display:block;width:min(100%,440px);height:auto;
  padding:0!important;margin:0;background:transparent!important;border:0!important;
  border-radius:0!important;box-shadow:none!important;filter:none!important}
:root[data-theme="dark"] .footer {background:#160d1f}
:root[data-theme="dark"] .footer-grid p {color:#e2cfe9}
:root[data-theme="dark"] .footer-grid small,
:root[data-theme="dark"] .footer-bottom {color:#ccb5d5}
:root[data-theme="dark"] .footer-grid a {color:#eadbec}
:root[data-theme="dark"] .footer-grid a:hover {color:#ff9b67}

/* Los tonos de la portada y del cartel conservan el diseño original. */
:root[data-theme="dark"] .hero {background:radial-gradient(ellipse at 78% 35%,#51235d 0,#281032 54%,#160c20 100%)}
:root[data-theme="dark"] .hero-cover {opacity:.86}
:root[data-theme="dark"] .hero h1 em {color:#f0bbff}
:root[data-theme="dark"] .hero h1 span {color:#ff9858}
:root[data-theme="dark"] .button-outline {color:#fff;border-color:#be9ec7;background:#ffffff15}
:root[data-theme="dark"] .button-outline:hover {background:#ffffff26}
:root[data-theme="dark"] .hero-poster img {border-color:#e5d7ed}

/* Secciones, tarjetas y textos: evitar superficies blancas en el modo oscuro. */
:root[data-theme="dark"] .section,
:root[data-theme="dark"] .overview,
:root[data-theme="dark"] .form-section-outer,
:root[data-theme="dark"] .faq-section {background:var(--theme-bg)}
:root[data-theme="dark"] .details-section {background:#1d1624}
:root[data-theme="dark"] .kit-section {background:#211827}
:root[data-theme="dark"] .section-head p,
:root[data-theme="dark"] .overview-top p,
:root[data-theme="dark"] .split-section p,
:root[data-theme="dark"] .registration-intro>p,
:root[data-theme="dark"] .faq-list details p {color:var(--theme-muted)}
:root[data-theme="dark"] .overview-top h2 span,
:root[data-theme="dark"] .metrics strong,
:root[data-theme="dark"] .info-list strong,
:root[data-theme="dark"] .registration-hint b {color:#eabafb}
:root[data-theme="dark"] .support-card {background:#35251f;border-color:#65442e}
:root[data-theme="dark"] .support-card>span {color:#ffba84}
:root[data-theme="dark"] .support-card h3 {color:var(--theme-text)}
:root[data-theme="dark"] .support-card p {color:#e3cebc}
:root[data-theme="dark"] .support-card a {color:#ffc096}
:root[data-theme="dark"] .metrics {border-color:var(--theme-line)}
:root[data-theme="dark"] .metrics>div {border-color:var(--theme-line)}
:root[data-theme="dark"] .metrics span,
:root[data-theme="dark"] .metrics small {color:#d0bcd9}
:root[data-theme="dark"] .tab-button {background:var(--theme-surface);border-color:var(--theme-line);color:#c6abc9}
:root[data-theme="dark"] .tab-button strong {color:var(--theme-text)}
:root[data-theme="dark"] .tab-button.active {background:#62327d;border-color:#62327d;color:#f0d3f5}
:root[data-theme="dark"] .tab-button.active strong,
:root[data-theme="dark"] .tab-button.active span {color:#fff}
:root[data-theme="dark"] .tab-content {background:var(--theme-surface);border-color:var(--theme-line)}
:root[data-theme="dark"] .tab-panel p,
:root[data-theme="dark"] .two-lists ul,
:root[data-theme="dark"] .kit-card ul {color:var(--theme-muted)}
:root[data-theme="dark"] .tab-panel .foot-text {color:#c4b2ca!important}
:root[data-theme="dark"] .download-link {color:#ecc3fc}
:root[data-theme="dark"] .info-list span {color:#c9b5cf}
:root[data-theme="dark"] .notice-amber {background:#3c2c22;color:#ffd7ad!important;border-color:#dc8833}
:root[data-theme="dark"] .award-grid>div {background:#392a46}
:root[data-theme="dark"] .award-grid span,
:root[data-theme="dark"] .award-grid small {color:#d5b8e0}
:root[data-theme="dark"] .award-grid strong {color:#f1d0ff}
:root[data-theme="dark"] .date-badge,
:root[data-theme="dark"] .kit-card {background:var(--theme-surface);border-color:var(--theme-line)}
:root[data-theme="dark"] .kit-card p {color:var(--theme-muted)}
:root[data-theme="dark"] .kit-card a {color:#e9b9fc}
:root[data-theme="dark"] .registration-hint {background:var(--theme-soft);border:1px solid var(--theme-line)}
:root[data-theme="dark"] .registration-hint p {color:#d7c4e0}
:root[data-theme="dark"] .registration-steps>div {border-color:var(--theme-line)}
:root[data-theme="dark"] .form-card {background:var(--theme-surface);border-color:var(--theme-line);box-shadow:0 20px 50px #0003}
:root[data-theme="dark"] .form-overline,
:root[data-theme="dark"] .form-lead,
:root[data-theme="dark"] .progress-heading {color:#c9b1d6}
:root[data-theme="dark"] .form-status {background:#493250;color:#f5caff}
:root[data-theme="dark"] .form-card h3 span {color:#efbcff}
:root[data-theme="dark"] .preview-alert {background:#3d2c23;border-color:#735039;color:#ffddb8}
:root[data-theme="dark"] .preview-alert p {color:#f1dbc7}
:root[data-theme="dark"] .progress-track {background:#4b3b52}
:root[data-theme="dark"] .form-section {border-color:var(--theme-line)}
:root[data-theme="dark"] .step-no {background:#4f302c;color:#ffb17c}
:root[data-theme="dark"] .field label {color:var(--theme-text)}
:root[data-theme="dark"] .field input,
:root[data-theme="dark"] .field select {background:#32263a;border-color:#62516b;color:#fdf3fe;color-scheme:dark}
:root[data-theme="dark"] .field input::placeholder {color:#c9b4d2;opacity:.88}
:root[data-theme="dark"] .field input:focus,
:root[data-theme="dark"] .field select:focus {background:#3c2b45;border-color:#dfacfb;box-shadow:0 0 0 3px #d690fb35}
:root[data-theme="dark"] .field-complete {border-color:#83718f!important}
:root[data-theme="dark"] .guardian-fields>p,
:root[data-theme="dark"] .checkbox-line,
:root[data-theme="dark"] .registration-note,
:root[data-theme="dark"] .registration-status {color:var(--theme-muted)}
:root[data-theme="dark"] .checkbox-line a {color:#e9b4fc}
:root[data-theme="dark"] .registration-status.error {color:#ffae9d}
:root[data-theme="dark"] .registration-status.success {color:#a2e6b2}
:root[data-theme="dark"] .faq-list {border-color:var(--theme-line)}
:root[data-theme="dark"] .faq-list details {border-color:var(--theme-line)}
:root[data-theme="dark"] .faq-list summary {color:var(--theme-text)}
:root[data-theme="dark"] .registro-modal__card {background:var(--theme-surface);color:var(--theme-text)}
:root[data-theme="dark"] .registro-modal__card p {color:var(--theme-muted)}
:root[data-theme="dark"] .registro-modal__card .modal-tip {background:#403047;color:var(--theme-text)}
:root[data-theme="dark"] .registro-modal__dorsal {background:#3a1b53;color:#fff}
:root[data-theme="dark"] .theme-toast {background:#473055;border:1px solid var(--theme-line);color:#fff}

/* La página informativa del panel conserva su contenido pero sigue el tema elegido. */
.page-login {min-height:100dvh}
.page-login main {color:var(--theme-text)}
.page-login main p {color:var(--theme-muted)}
.page-login main .button-purple {background:#431a5e}
:root[data-theme="dark"] .page-login main .button-purple {background:#69358a;color:#fff}

@media(max-width:1000px) {
  .header-inner {gap:13px}
  .nav-links {gap:13px}
  .countdown-wrap {grid-template-columns:minmax(180px,1fr) auto}
  .countdown-link {display:none}
}
@media(max-width:780px) {
  .header-inner {min-height:72px}
  .header-actions {margin-left:auto;gap:9px}
  .brand img {width:120px}
  .countdown-wrap {grid-template-columns:1fr;gap:17px;max-width:100%;margin-top:-32px;padding:20px 18px}
  .countdown-label {justify-content:center}
  .countdown {width:100%;gap:8px;order:initial;justify-content:center}
  .countdown div {flex:1;min-width:0;max-width:90px}
  .countdown strong {font-size:clamp(25px,5vw,34px)}
  .countdown small {font-size:9px}
  .countdown-link {display:none}
}
@media(max-width:480px) {
  .header-inner {gap:9px}
  .site-header .brand img {width:100px}
  .brand {gap:9px}
  .brand-word {font-size:9px}
  .brand-word b {font-size:20px}
  .brand-word small {font-size:8px}
  .header-actions {gap:7px}
  .theme-toggle {width:40px;height:40px;flex-basis:40px}
  .nav-cta {padding:12px 11px;font-size:11px}
  .nav-cta span {padding-left:2px}
  .countdown-wrap {padding:18px 14px;border-radius:17px}
  .countdown-label {gap:10px}
  .countdown-label .tiny-mark {width:48px;height:48px;flex-basis:48px;font-size:21px}
  .countdown-label strong {font-size:13px}
  .countdown-label small {font-size:10px}
  .countdown div {padding:10px 5px}
  .countdown strong {font-size:28px}
  .countdown small {font-size:8px}
  .footer-grid img[data-footer-logo] {width:min(100%,380px)}
}
@media(max-width:350px) {
  .site-header .brand img {width:90px}
  .brand-word {display:none}
  .brand-divider {display:none}
  .nav-cta {padding:10px 10px}
}
@media(prefers-reduced-motion:reduce) {body,.theme-toggle {transition:none}}

/* Consentimientos legibles: el enlace debe seguir dentro del texto, no ocupar su propia columna. */
.checkbox-line { display:block; position:relative; padding-left:28px; min-height:20px;
  line-height:1.6; overflow-wrap:break-word; }
.checkbox-line input[type="checkbox"] { position:absolute; left:0; top:2px; width:17px; height:17px; margin:0; }
:root[data-theme="dark"] .submit-button:disabled { background:#b9673f; color:#fff; opacity:.58; }
:root[data-theme="dark"] .field-validation {color:#ffb4a0}
