/* Carrera 25N · Cambios puntuales solicitados 09/11/2026.
 * Correcciones de contraste, separación del reloj, mapa Google y login restaurado.
 * No cambia el hero, el fondo ni el resto de la arquitectura visual aprobada. */
:root[data-theme="dark"] {
  --theme-text:#fcf7ff;
  --theme-muted:#ded0e5;
  --theme-line:#695673;
  --unified-ink:#fbf5ff;
  --unified-muted:#ddd0e7;
  --unified-line:#66516e;
  --unified-link:#f2b6fb;
}
:root[data-theme="dark"] body {color:#fbf5ff;background:#1d1624}
:root[data-theme="dark"] .site-header {border-color:#665174;background:#241a2c}
:root[data-theme="dark"] .site-header img[data-brand-logo] {filter:grayscale(1) brightness(0) invert(1)}
:root[data-theme="dark"] .nav-links a {color:#f6eaf9}
:root[data-theme="dark"] .nav-links a:hover {color:#ffc79b}
:root[data-theme="dark"] .theme-toggle,:root[data-theme="dark"] .menu-toggle {background:#44324d;color:#fff;border-color:#775d81}
:root[data-theme="dark"] .section-head h2,:root[data-theme="dark"] .split-section h2,:root[data-theme="dark"] .registration-intro h2,
:root[data-theme="dark"] .kit-card h3,:root[data-theme="dark"] .tab-panel h3 {color:#f9ecfd}
:root[data-theme="dark"] .overview p,:root[data-theme="dark"] .kit-card p,:root[data-theme="dark"] .faq-list details p,
:root[data-theme="dark"] .registration-intro p,:root[data-theme="dark"] .tab-panel p {color:#e4d7e9}
:root[data-theme="dark"] .tab-button:not(.active) {color:#eee0f3;background:#34273e;border-color:#6b5477}
:root[data-theme="dark"] .tab-button:not(.active) strong {color:#fff6ff}
:root[data-theme="dark"] .tab-content,:root[data-theme="dark"] .kit-card,:root[data-theme="dark"] .form-card,
:root[data-theme="dark"] .faq-list details {background:#2a2033;border-color:#6a5674}
:root[data-theme="dark"] .field label,:root[data-theme="dark"] .checkbox-line {color:#f3eafa}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,
:root[data-theme="dark"] .admin-login-form input {background:#382b42;color:#fff9ff;border-color:#836f8d;color-scheme:dark}
:root[data-theme="dark"] input::placeholder,:root[data-theme="dark"] textarea::placeholder {color:#ddcfe3;opacity:.92}
:root[data-theme="dark"] .field input:focus-visible,:root[data-theme="dark"] .field textarea:focus-visible,
:root[data-theme="dark"] .field select:focus-visible,:root[data-theme="dark"] .admin-login-form input:focus-visible {outline:3px solid #e9b5ff;outline-offset:2px;border-color:#e7b0f6}
:root[data-theme="dark"] .form-lead,:root[data-theme="dark"] .form-overline,
:root[data-theme="dark"] .registration-note,:root[data-theme="dark"] .progress-heading {color:#e6d6ec}
:root[data-theme="dark"] .faq-list summary {color:#fff3ff}
:root[data-theme="dark"] .form-compat-note {color:#e5c6ed}
:root[data-theme="dark"] .registration-status.error {color:#ffbeab}
:root[data-theme="dark"] .registration-status.success {color:#bff6cb}
:root[data-theme="dark"] .route-map-card {background:#2a2034;border-color:#66516e}
:root[data-theme="dark"] .route-map-top strong,:root[data-theme="dark"] .route-map-footer p {color:#fff5ff}
:root[data-theme="dark"] .route-map-note {color:#d8cbdc}
:root[data-theme="dark"] .route-map-live {color:#a5f0bb}
:root[data-theme="dark"] .route-google-link {color:#fff;background:#783b93;border-color:#a774c0}
:root[data-theme="dark"] .route-google-link:hover {background:#914cb0}
:root[data-theme="dark"] .admin-login-form {background:#2b2034;border-color:#6a5477;box-shadow:0 20px 55px #0005}
:root[data-theme="dark"] .admin-login-title strong {color:#fff6ff}
:root[data-theme="dark"] .admin-login-title small,:root[data-theme="dark"] .admin-login-footnote {color:#e0cfeb}
:root[data-theme="dark"] .pw-toggle {background:#4d3957;color:#fff;border-color:#896797}
:root[data-theme="dark"] .session-box {background:#3b2b46;color:#fff;border-color:#765981}
:root[data-theme="dark"] .session-box #session-timer {color:#ffd3e9}
:root[data-theme="dark"] .session-box button {background:#5a396b;color:#fff;border-color:#986fad}
:root[data-theme="dark"] .page-dashboard #connection {color:#fff!important}
:root[data-theme="dark"] .page-dashboard .local-status,:root[data-theme="dark"] .page-dashboard .notice {color:#e1d2eb}
:root[data-theme="dark"] .page-dashboard .stat small {color:#dfcfe8}
:root[data-theme="dark"] .page-dashboard .panel h2 {color:#fff6ff}
:root[data-theme="dark"] .page-dashboard .filters button,:root[data-theme="dark"] .page-dashboard .filters select,
:root[data-theme="dark"] .page-dashboard .local-actions button {color:#fff2ff;background:#3b2b46;border-color:#6c5774}

/* Descender visualmente el reloj, sin desplazar el resto del contenido ni superponerlo. */
.hero .countdown-wrap {position:relative;transform:translateY(16px);margin-bottom:16px}
.countdown-label strong {color:inherit}
.countdown strong {font-variant-numeric:tabular-nums}

/* Google Maps real: la sede está embebida, el recorrido se abre en Maps con paradas. */
.route-map-card {width:100%;min-width:0;border:1px solid var(--unified-line,#eaddeb);border-radius:24px;background:var(--unified-surface,#fff);overflow:hidden;box-shadow:0 18px 38px #1e082311}
.route-map-top {display:flex;justify-content:space-between;align-items:center;gap:14px;flex-wrap:wrap;padding:17px 20px}
.route-map-top>div {display:flex;flex-direction:column;gap:5px}
.map-mini {font-size:10px;font-weight:900;letter-spacing:.16em;color:#b13e7d}
.route-map-top strong {font:900 19px Outfit,'DM Sans',sans-serif;color:var(--unified-ink,#2c143b)}
.route-map-live {display:inline-flex;gap:8px;align-items:center;font-size:11px;font-weight:800;color:#207348}
.route-map-live>span {width:8px;height:8px;display:inline-block;border-radius:50%;background:#38ae68}
.route-map-iframe {display:block;width:100%;height:360px;min-height:280px;border:0;background:#eee5f1}
.route-map-footer {padding:20px;display:grid;gap:15px}
.route-map-footer p {color:var(--unified-ink,#2c143b);font-size:13px;line-height:1.65;margin:0}
.route-google-link {display:inline-flex;align-items:center;justify-content:space-between;gap:16px;width:fit-content;max-width:100%;min-height:46px;padding:12px 17px;border-radius:12px;background:#572078;color:#fff;border:1px solid #572078;font-weight:850;font-size:13px;line-height:1.45}
.route-google-link:hover {background:#78359b;color:#fff}
.route-map-note {margin:0 20px 20px;color:var(--unified-muted,#66556e);font-size:11px;line-height:1.6}
/* Give the Google map enough width for real street labels; stack explanatory copy above at 1024px and below. */
#recorrido .split-section {grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);align-items:start;gap:clamp(20px,4vw,55px)}
#recorrido .split-section>div {min-width:0}

/* Restored login: coherent with approved homepage while preserving original inputs/actions. */
.login-main {align-items:center}
.admin-login-form {display:grid;gap:15px;margin-top:24px;padding:clamp(20px,3vw,30px);border-radius:22px;border:1px solid var(--unified-line,#e9ddea);background:var(--unified-surface,#fff);box-shadow:0 16px 42px #25112c14;max-width:510px}
.admin-login-title {display:flex;flex-direction:column;gap:5px;padding-bottom:5px}
.admin-login-title strong {font:900 clamp(24px,3vw,30px) Outfit,'DM Sans',sans-serif;color:var(--unified-ink,#31183c)}
.admin-login-title small {font-size:12px;color:var(--unified-muted,#67596f)}
.admin-login-form .field {display:grid;gap:8px}
.admin-login-form .field label {font-size:13px;font-weight:800}
.admin-login-form input {width:100%;min-width:0;min-height:50px;border:1px solid var(--unified-line,#ddd0e0);border-radius:12px;padding:12px 14px;background:var(--unified-surface,#fff);color:var(--unified-ink,#31183c);font-size:16px}
.admin-login-form .pw-field {position:relative;display:flex;gap:10px}
.admin-login-form .pw-field input {padding-right:92px}
.pw-toggle {position:absolute;top:5px;right:5px;height:40px;border:1px solid #d9c7df;background:#f7eef9;border-radius:10px;padding:0 12px;color:#572078;cursor:pointer;font-size:12px;font-weight:800}
.admin-login-submit {display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:52px;border:none;border-radius:12px;background:#f35c1c;color:#fff;padding:12px 20px;font-weight:900;cursor:pointer}
.admin-login-submit:disabled {opacity:.6;cursor:wait}
.admin-login-submit:hover:not(:disabled) {background:#d7480d}
.login-status {min-height:1.2em;margin:0;color:var(--unified-muted);font-size:12px}
.login-status.error {color:#a33036}
:root[data-theme="dark"] .login-status.error {color:#ffb4bc}
.admin-login-footnote {font-size:11px;line-height:1.6;color:var(--unified-muted,#67596f);max-width:520px;margin-top:16px}
.form-compat-note {display:block;font-size:11px;color:var(--unified-muted,#66556e);margin-top:5px;line-height:1.45}
.session-box {display:inline-flex;align-items:center;gap:10px;background:#fff8fd;border:1px solid #e8d5ed;border-radius:10px;padding:5px 6px 5px 13px;white-space:nowrap}
.session-box #session-timer {font:900 13px Outfit,system-ui,sans-serif;color:#65217e;font-variant-numeric:tabular-nums}
.session-box button {padding:7px 11px;min-height:34px;border-radius:8px;border:1px solid #e1cce7;background:#f5e9f8;color:#61227f;font-size:12px;font-weight:900;cursor:pointer}
html[data-admin-pending="true"] body.page-dashboard main,html[data-admin-pending="true"] body.page-dashboard footer {visibility:hidden}
:root[data-theme="dark"] .page-dashboard #local-table td,:root[data-theme="dark"] .page-dashboard #local-table th {border-color:#655171}

@media(max-width:1050px){#recorrido .split-section{grid-template-columns:1fr}#recorrido .route-map-card{max-width:100%}}
@media(max-width:620px){
 .hero .countdown-wrap {transform:translateY(12px);margin-bottom:12px}
 .route-map-top {padding:16px}
 .route-map-iframe {height:310px;min-height:290px}
 .route-map-footer {padding:16px}
 .route-map-note {margin:0 16px 16px}
 .route-google-link {width:100%}
 .admin-login-form {padding:21px 17px;margin-top:20px}
 .session-box {gap:5px;padding:5px 5px 5px 8px}
 .session-box #session-timer {font-size:11px}
 .session-box button {padding:7px;font-size:10px}
 .page-dashboard .site-header .header-actions {gap:5px}
 .page-dashboard .site-header .brand-word {display:none}
}
@media(max-width:370px){.session-box #session-timer {display:none}.route-map-iframe{height:280px}}
/* Campo recuperado del registro original: ocupa toda la columna. */
#registro .field textarea {display:block;width:100%;max-width:100%;min-height:86px;box-sizing:border-box;resize:vertical;border-radius:11px;padding:12px 14px;font-size:16px;line-height:1.5}
:root[data-theme="dark"] .foot-text,:root[data-theme="dark"] .route-map-note {color:#e7d5ef!important}
:root[data-theme="dark"] .map-mini {color:#ffb9dc}
