/* =========================================================================
   COPILOTOSAL · Hoja de estilos
   Diseño: noche dentro de un Model 3 turquesa. La pantalla central es la web.
   Un solo tema oscuro, deliberado: es una pantalla de coche de noche.
   Layout: portada a sangre (parabrisas) → pantalla a sangre con bisel,
           mapa al fondo y paneles de cristal flotando encima.
   ========================================================================= */
:root {
  color-scheme: dark;
  /* Color */
  --night: #05080A;          /* asfalto de noche, con sesgo verde azulado */
  --surface: #0B1114;
  --surface-2: #10181B;
  --glass: rgba(11, 17, 20, 0.82);
  --glass-hi: rgba(20, 30, 34, 0.9);
  --line: rgba(150, 215, 205, 0.12);
  --line-2: rgba(150, 215, 205, 0.24);
  --ink: #E7F0EE;
  --ink-2: #9FB2AE;
  --ink-3: #66776F;
  --teal: #1FBFAE;           /* el turquesa del coche */
  --teal-hi: #5FE3D0;
  --teal-ink: #021412;
  --z-real: #5FE3D0;
  --z-posible: #8EA8FF;
  --z-imposible: #E9C27B;
  --z-forbidden: #FF5C7A;

  /* Tipografía */
  --f-display: 'Michroma', 'Eurostile', 'Microgramma', 'Arial Black', sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --f-ui: 'Hanken Grotesk', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;

  /* Escala */
  --t-xs: 0.72rem; --t-sm: 0.84rem; --t-md: 1rem; --t-lg: 1.2rem; --t-xl: 1.6rem;
  --r-sm: 10px; --r-md: 16px; --r-lg: 22px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --gut: max(16px, env(safe-area-inset-left, 0px));
  --gut-r: max(16px, env(safe-area-inset-right, 0px));
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--night); color: var(--ink);
  font-family: var(--f-ui); font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; overflow: hidden;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
.ic { width: 20px; height: 20px; flex: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 3px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Grano de película sobre todo */
.grain {
  position: fixed; inset: -50%; pointer-events: none; z-index: 100; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------------------- Botones ---------------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 600; font-size: var(--t-md); letter-spacing: .01em;
  transition: transform .2s var(--ease), background .2s, box-shadow .2s, color .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 0 1px rgba(95,227,208,.4), 0 10px 40px -10px rgba(31,191,174,.7); }
.btn-primary:hover { background: var(--teal-hi); }
.btn-quiet { color: var(--ink); background: rgba(231,240,238,.06); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-quiet:hover { background: rgba(231,240,238,.12); }
.btn-sal { min-height: 40px; padding: 0 16px; font-size: var(--t-sm); background: rgba(31,191,174,.12); color: var(--teal-hi); box-shadow: inset 0 0 0 1px rgba(95,227,208,.3); }
.btn-sal:hover { background: rgba(31,191,174,.22); }
.icon-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px;
  background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: color .2s, background .2s;
}
.icon-btn:hover { color: var(--ink); background: var(--glass-hi); }
.icon-btn.sm { width: 34px; height: 34px; border-radius: 10px; }
.icon-btn.sm .ic { width: 16px; height: 16px; }
.chip-btn { font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 7px 12px; border-radius: 999px; background: rgba(231,240,238,.08); }
.chip-btn:hover { background: rgba(231,240,238,.16); }
.kicker { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.kicker .zdot { width: 8px; height: 8px; border-radius: 50%; background: var(--zc, var(--teal)); box-shadow: 0 0 12px var(--zc, var(--teal)); }
.tag { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; color: var(--zc, var(--ink-2)); box-shadow: inset 0 0 0 1px currentColor; opacity: .9; }

/* =========================================================================
   PORTADA
   ========================================================================= */
.intro { position: fixed; inset: 0; overflow: hidden; background: var(--night); }
.road { position: absolute; inset: 0; width: 100%; height: 100%; transform-origin: 50% 50%; transition: transform 1.6s cubic-bezier(.5,0,.2,1); }
/* al arrancar hacia el mapa: la carretera acelera (ambient.js) y la vista se acerca un poco, como al pisar el acelerador */
.intro.speeding .road { transform: scale(1.07); }
.intro.speeding .wheel svg { animation: speedShake .12s linear infinite; }
@keyframes speedShake { 0%, 100% { translate: 0 0; } 50% { translate: 0 1px; } }
@media (prefers-reduced-motion: reduce) { .road { transition: none; } .intro.speeding .road { transform: none; } .intro.speeding .wheel svg { animation: none; } }
/* Destinos en el horizonte de la portada: el monumento de cada ilustración, fundido con el cielo */
.vista { position: absolute; inset: 0; z-index: 1; pointer-events: none; --mx: 30%; --vw: 30vw; --hz: 18%; --cycle: 11s; }
.vista img { position: absolute; width: var(--vw); height: auto; aspect-ratio: 16 / 9; max-width: none;
  left: calc(var(--mx) - var(--vw) * .64); top: calc(var(--hz) - var(--vw) * .34875);
  opacity: 0; mix-blend-mode: screen; transform-origin: 64% 62%;
  -webkit-mask-image: radial-gradient(42% 52% at 64% 50%, #000 45%, transparent 100%), linear-gradient(180deg, #000 52%, transparent 61.5%);
  -webkit-mask-composite: source-in;
  mask-image: radial-gradient(42% 52% at 64% 50%, #000 45%, transparent 100%), linear-gradient(180deg, #000 52%, transparent 61.5%);
  mask-composite: intersect;
}
/* Viaje de cada monumento: aparece pequeño a lo lejos, se acerca y se desvanece al pasarlo.
   Solo hay uno a la vez: el siguiente empieza cuando este ya se ha ido. */
.vista img.on { animation: journey var(--cycle) linear both; }
.vista.hold img.on, .exit-sign.hold { animation-play-state: paused; }
@keyframes journey {
  0%   { opacity: 0;   transform: scale(.5); }
  14%  { opacity: .95; transform: scale(.57); }
  50%  { opacity: .95; transform: scale(.74); }
  84%  { opacity: .95; transform: scale(.98); }
  100% { opacity: 0;   transform: scale(1.12); }
}

.exit-sign { position: absolute; z-index: 2; left: calc(73% + 8vw); top: calc(41% - 14vw); display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 12px;
  padding: 10px 14px 10px 16px; border-radius: 12px; text-align: left; color: var(--ink);
  background: rgba(6,12,14,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 3px 0 0 var(--zc, var(--teal)), inset 0 0 0 1px color-mix(in srgb, var(--zc, var(--teal)) 40%, transparent), 0 10px 30px rgba(0,0,0,.5);
  opacity: 0; transition: background .2s; }
/* el letrero aparece cuando el monumento ya se ve y se va antes de que desaparezca */
.exit-sign.live { animation: signLife var(--cycle, 11s) linear both; }
@keyframes signLife { 0%, 12% { opacity: 0; transform: translateY(6px); } 18%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: none; } }
.exit-sign:not(.live) { pointer-events: none; }
.exit-sign:hover { background: rgba(12,22,26,.9); }
.exit-sign:focus-visible { outline: 2px solid var(--zc, var(--teal-hi)); outline-offset: 3px; }
.exit-sign .es-k { grid-column: 1; font-size: .62rem; letter-spacing: .16em; text-transform: uppercase; color: var(--zc, var(--teal-hi)); }
.exit-sign .es-n { grid-column: 1; font-family: var(--f-display); font-size: .92rem; letter-spacing: .08em; text-transform: uppercase; max-width: 190px; line-height: 1.25; text-wrap: balance; }
.exit-sign .es-arrow { grid-column: 2; grid-row: 1 / span 2; font-size: 1.6rem; line-height: 1; color: var(--zc, var(--teal-hi)); transition: transform .2s; }
.exit-sign:hover .es-arrow { transform: translateX(3px); }
.intro.boarding .exit-sign, .intro.boarding .vista { opacity: 0; transition: opacity .5s; }
.intro.parked .exit-sign, .intro.parked .vista { visibility: hidden; }
@media (max-width: 900px) {
  .vista { --mx: 50%; --vw: 150vw; --hz: 40%; }

  .exit-sign { left: 50%; top: calc(40% + 6px); translate: -50% 0; }
}
.cabin { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.intro::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(70% 90% at 12% 50%, rgba(3,5,6,.78), rgba(3,5,6,0) 70%); }

.mirror {
  position: absolute; top: calc(18px + env(safe-area-inset-top, 0px)); left: 50%; translate: -50% 0; margin: 0;
  width: clamp(150px, 19vw, 300px); aspect-ratio: 3 / 1; border-radius: 14px 14px 40% 40% / 14px 14px 60% 60%;
  overflow: hidden; box-shadow: 0 0 0 5px #030506, 0 0 0 6px rgba(150,215,205,.12), 0 18px 50px rgba(0,0,0,.6);
}
.mirror img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scaleX(-1); filter: contrast(1.06); }
.mirror .m-blink { opacity: 0; }
.mirror.blink .m-blink { opacity: 1; }
/* farolas que pasan: un barrido de luz cálida muy suave cada pocos segundos */
.mirror::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; mix-blend-mode: screen; opacity: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255,190,120,.30) 47%, rgba(255,210,150,.12) 55%, transparent 70%);
  background-size: 260% 100%; animation: streetLight 6.5s linear infinite; }
@keyframes streetLight { 0% { background-position: 120% 0; opacity: 0; } 8% { opacity: 1; } 34% { background-position: -40% 0; opacity: 1; } 40%, 100% { background-position: -40% 0; opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .mirror::before { animation: none; } }
.mirror::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.18), rgba(255,255,255,0) 38%), linear-gradient(0deg, rgba(5,8,10,.45), transparent 60%); }

.intro-copy {
  position: absolute; z-index: 2; left: max(6vw, var(--gut)); top: 50%; translate: 0 -54%;
  width: min(560px, calc(100% - 2 * 16px));
  display: grid; gap: 22px;
}
.eyebrow { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 10px; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--z-forbidden); box-shadow: 0 0 10px var(--z-forbidden); animation: rec 1.6s infinite; }
@keyframes rec { 50% { opacity: .25; } }
.wordmark {
  margin: 0; font-family: var(--f-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.3rem, 6.4vw, 5.6rem); line-height: .95; letter-spacing: -.01em; color: var(--ink);
  text-shadow: 0 0 40px rgba(31,191,174,.25);
}
.wordmark b { font-weight: 400; color: var(--teal-hi); display: block; }
.tagline { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2.2vw, 1.85rem); line-height: 1.25; color: #D5E3E0; max-width: 30ch; text-wrap: balance; }
.intro-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.intro-stats { display: flex; gap: 28px; margin: 6px 0 0; flex-wrap: wrap; }
.intro-stats div { display: grid; gap: 2px; }
.intro-stats dt { font-family: var(--f-mono); font-size: 0.66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.intro-stats dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; color: var(--ink); }
/* Consola central bajo la pantalla del coche, con el cuaderno de preguntas (abre el buzón de propuestas).
   app.js la coloca justo debajo de la pantalla; por detrás de ella, como si saliera de debajo. */
.nb-console { position: absolute; z-index: 2; display: none; padding: 0; border: 0; background: none; cursor: pointer; color: inherit; }
.nb-console.on { display: block; }
.nb-console > svg { display: block; width: 100% !important; height: auto !important; overflow: visible; }
.nb-console .nb { transition: filter .25s; }
.nb-console:hover .nb, .nb-console:focus-visible .nb { filter: brightness(1.18) drop-shadow(0 0 14px rgba(95,227,208,.35)); }
.nb-console:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 4px; border-radius: 12px; }
.nb-console-tag { position: absolute; left: 50%; top: 10px; translate: -50% 0; display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
  padding: 5px 8px 5px 12px; border-radius: 999px; font-size: 12px; color: var(--ink-2); background: rgba(6,12,14,.82);
  box-shadow: inset 0 0 0 1px rgba(95,227,208,.3), 0 6px 18px rgba(0,0,0,.5); backdrop-filter: blur(6px); transition: .2s; }
.nb-console-tag b { color: var(--teal-hi); font-weight: 600; }
.nb-console:hover .nb-console-tag { color: var(--ink); box-shadow: inset 0 0 0 1px rgba(95,227,208,.6), 0 6px 18px rgba(0,0,0,.5); }
.nb-console-tag .ip-n:empty { display: none; }
.intro.boarding .nb-console { opacity: 0; transition: opacity .5s; }
.intro.parked .nb-console { visibility: hidden; }

/* Botón del buzón de propuestas en móvil (sin pantalla del coche): pastilla arriba a la izquierda */
.intro-propose { position: absolute; z-index: 5; top: calc(22px + env(safe-area-inset-top, 0px)); left: max(5vw, var(--gut));
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; color: var(--ink); white-space: nowrap; background: rgba(6,12,14,.6);
  box-shadow: inset 0 0 0 1px rgba(95,227,208,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.intro-propose:hover { background: rgba(31,191,174,.16); }
.intro-propose .ic { width: 18px; height: 18px; flex: none; color: var(--teal-hi); }
.intro-propose .ip-more { font-weight: 500; color: var(--ink-2); }
.intro.boarding .intro-propose { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-propose { visibility: hidden; }
.ip-n:not(:empty) { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center; font-size: .7rem; background: var(--teal); color: var(--teal-ink); }
@media (min-width: 901px) { .intro-propose { display: none; } }          /* en ordenador está el cuaderno */
@media (max-width: 760px) { .intro-propose .ip-t { display: none; } .intro-propose { padding: 0 11px; } }

/* Pantalla del coche en reposo */
.dash-screen {
  position: absolute; z-index: 3; right: max(5vw, var(--gut-r)); bottom: 11vh;
  width: min(38vw, 560px); aspect-ratio: 16 / 10.5;
  border-radius: 18px; background: #070B0D; overflow: hidden;
  box-shadow: 0 0 0 7px #0A0F11, 0 0 0 8px rgba(150,215,205,.16), 0 40px 90px rgba(0,0,0,.75), 0 0 120px rgba(31,191,174,.12);
  transform: perspective(1400px) rotateY(-9deg) rotateX(4deg);
  transform-origin: 50% 100%;
}
.dash-screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 5; background: linear-gradient(120deg, rgba(255,255,255,.09), transparent 35%); }
@keyframes breathe { 50% { opacity: .6; transform: scale(.96); } }
.dash-screen { container-type: size; --dsc: var(--teal-hi); --drive: #3D8BFF;
  background: radial-gradient(70% 60% at 70% 60%, rgba(31,191,174,.10), transparent 70%), #070B0D; }

/* Barra superior: PRND, modo, batería, reloj */
.ds-top { position: absolute; z-index: 5; top: 3.6cqh; left: 4cqw; right: 4cqw; display: flex; align-items: center; gap: 2.4cqw;
  font-size: 2.1cqw; color: var(--ink-2); letter-spacing: .06em; }
.ds-gears { display: flex; gap: 1.1cqw; font-family: var(--f-ui); font-weight: 700; color: var(--ink-3); }
.ds-gears b { transition: color .3s; }
.dash-screen[data-state="park"] .ds-gears [data-g="P"], .dash-screen[data-state="ready"] .ds-gears [data-g="P"] { color: var(--ink); }
.dash-screen[data-state="drive"] .ds-gears [data-g="D"] { color: var(--ink); text-shadow: 0 0 10px var(--drive); }
.ds-mode { font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.ds-mode.awake-state { color: var(--awake-c, #E8B04A); transition: color .8s; }
/* «Batería» = nivel de despertar (20 %): al pulsarlo se explica */
.ds-awake { position: relative; display: flex; }
.ds-awake-btn { display: flex; align-items: center; gap: 1cqw; padding: .5cqw .8cqw; margin: -.5cqw -.8cqw; border: 0; border-radius: .8cqw;
  background: none; color: inherit; font: inherit; letter-spacing: inherit; cursor: pointer; transition: background .2s; }
.ds-awake-btn:hover, .ds-awake-btn[aria-expanded="true"] { background: rgba(232,176,74,.12); }
.awake-btn:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
/* el color va del ámbar (dormido) al turquesa (despierto): app.js pone --awake-c */
.ds-batt { width: 4.6cqw; height: 2cqw; border-radius: .5cqw; box-shadow: inset 0 0 0 .25cqw var(--ink-3); padding: .35cqw; display: block; }
.ds-batt i { display: block; height: 100%; width: 20%; border-radius: .2cqw; background: var(--awake-c, #E8B04A); box-shadow: 0 0 .8cqw var(--awake-c, #E8B04A); transition: width .8s ease, background .8s; }
.ds-pct { font-size: 1.9cqw; color: var(--awake-c, #E8B04A); }
.ds-awake-info { position: absolute; z-index: 8; top: calc(100% + 1.6cqh); left: -6cqw; width: 46cqw; padding: 1.8cqw 2.2cqw;
  border-radius: 1.4cqw; font-size: 2.2cqw; }
.awake-info { background: rgba(9,15,17,.96); box-shadow: 0 0 0 1px rgba(232,176,74,.35), 0 14px 40px rgba(0,0,0,.6);
  line-height: 1.45; letter-spacing: .01em; color: var(--ink-2); text-transform: none; font-weight: 400; }
.awake-info[hidden] { display: none; }
.awake-info b { display: block; margin-bottom: 4px; color: var(--awake-c, #E8B04A); font-weight: 700; letter-spacing: .06em; }
.ds-right { margin-left: auto; display: flex; align-items: center; gap: 1.2cqw; color: var(--ink); }
.ds-right .ic { width: 2.4cqw; height: 2.4cqw; }

/* Selector de marcha: flecha, pista de puntos con el coche, flecha */
.ds-shifter { position: absolute; z-index: 4; left: 3.2cqw; top: 13cqh; bottom: 6cqh; width: 8.4cqw;
  display: flex; flex-direction: column; align-items: center; gap: 1.6cqh; padding: 1.4cqh 0; border-radius: 2.2cqw;
  cursor: grab; touch-action: none; transition: background .3s, box-shadow .3s; }
.ds-shifter:active { cursor: grabbing; }
.ds-shifter:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.ds-arrow { width: 3.4cqw; height: 3.4cqw; flex: none; fill: none; stroke: var(--ink-2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, transform .3s; }
.ds-track { position: relative; flex: 1; width: 100%; border-radius: 1.6cqw;
  background: radial-gradient(circle, rgba(159,178,174,.55) 0 .28cqw, transparent .34cqw) 0 0 / 2.1cqw 2.1cqw; transition: filter .4s; }
.ds-knob { position: absolute; left: 50%; top: 50%; width: 5.4cqw; translate: -50% -50%; transition: top .55s var(--ease), filter .3s; }
.ds-knob svg { display: block; width: 100%; height: auto; fill: none; stroke: var(--ink); stroke-width: 2.6; }
.ds-knob svg .glass { fill: rgba(231,240,238,.25); stroke: none; }
.ds-finger { position: absolute; left: 50%; top: 50%; width: 9cqw; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; pointer-events: none;
  box-shadow: 0 0 0 .3cqw rgba(95,227,208,.7); animation: tapHint 2.2s var(--ease) infinite; }
@keyframes tapHint { 0% { scale: .55; opacity: 0; } 25% { opacity: 1; } 100% { scale: 1.35; opacity: 0; } }

.ds-shifter:hover, .dash-screen[data-state="ready"] .ds-shifter { background: rgba(95,227,208,.07); box-shadow: inset 0 0 0 1px rgba(95,227,208,.25); }
.dash-screen[data-state="ready"] .ds-arrow.up { stroke: var(--teal-hi); animation: nudgeUp 1s ease-in-out infinite; }
@keyframes nudgeUp { 50% { transform: translateY(-.8cqh); } }
.dash-screen[data-state="ready"] .ds-knob { filter: drop-shadow(0 0 .8cqw rgba(95,227,208,.9)); }
.dash-screen[data-state="ready"] .ds-knob svg { stroke: var(--teal-hi); }
.dash-screen:not([data-state="park"]) .ds-finger { display: none; }
.dash-screen[data-state="drive"] .ds-knob { top: 12%; filter: drop-shadow(0 0 1cqw var(--drive)); }
.dash-screen[data-state="drive"] .ds-knob svg { stroke: #CFE2FF; }
.dash-screen[data-state="drive"] .ds-track { background-image: radial-gradient(circle, var(--drive) 0 .3cqw, transparent .36cqw); filter: drop-shadow(0 0 .5cqw var(--drive)); }
.dash-screen[data-state="drive"] .ds-arrow.up { stroke: var(--drive); }
.ds-shifter.dragging .ds-knob { transition: none; }

/* Iconos de luces */
.ds-lamps { position: absolute; z-index: 3; left: 13.6cqw; top: 14cqh; display: grid; gap: 2.2cqh; }
.ds-lamps svg { width: 4cqw; height: 4cqw; fill: none; stroke: var(--ink-3); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s, filter .3s; }
.ds-lamps .dot { fill: var(--ink-3); stroke: none; transition: fill .3s; }
/* símbolos místicos: al encenderse el coche brillan en turquesa y laten despacio */
.dash-screen:not([data-state="park"]) .ds-lamps .l-on { stroke: var(--teal-hi); filter: drop-shadow(0 0 4px rgba(95,227,208,.75)); animation: lampPulse 3.2s ease-in-out infinite; }
.dash-screen:not([data-state="park"]) .ds-lamps .l-on .dot { fill: var(--teal-hi); }
.dash-screen:not([data-state="park"]) .ds-lamps .l-on + svg + .l-on { animation-delay: 1.6s; }
@keyframes lampPulse { 0%, 100% { filter: drop-shadow(0 0 3px rgba(95,227,208,.55)); } 50% { filter: drop-shadow(0 0 7px rgba(95,227,208,.95)); } }
@media (prefers-reduced-motion: reduce) { .ds-lamps .l-on { animation: none !important; } }

/* Escena: coche aparcado ↔ vista de conducción */
.ds-scene { position: absolute; inset: 9cqh 0 0 18cqw; overflow: hidden; }
/* Sal habla: botón en la pantalla del coche, subtítulo y versión móvil */
.ds-talk { position: absolute; z-index: 4; left: 18cqw; width: 32cqw; bottom: 15cqh; display: inline-flex; align-items: center; justify-content: center; gap: 1cqw;
  margin: 0 auto; padding: 1.2cqh 1.8cqw; border-radius: 999px; font-size: 2.3cqw; font-weight: 600; letter-spacing: .02em; color: var(--teal-hi);
  background: rgba(31,191,174,.08); box-shadow: inset 0 0 0 1px rgba(95,227,208,.3); transition: background .2s, opacity .4s; }
.ds-talk .ic { width: 2.4cqw; height: 2.4cqw; }
.ds-talk:hover { background: rgba(31,191,174,.18); }
.ds-talk:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 2px; }
.dash-screen[data-state="drive"] .ds-talk { opacity: 0; pointer-events: none; }
.dash-screen.talking .lock-mark { opacity: 1; filter: drop-shadow(0 0 2.6cqw rgba(95,227,208,.95)); animation-duration: .7s; }
.ds-sub { position: absolute; z-index: 4; left: 16cqw; width: 36cqw; bottom: 25cqh; margin: 0; padding: 1cqh 1.4cqw; border-radius: 1.2cqw; text-align: center;
  font-family: var(--f-serif); font-style: italic; font-size: 2.8cqw; line-height: 1.25; color: var(--ink); background: rgba(5,8,10,.88);
  box-shadow: inset 0 0 0 1px rgba(95,227,208,.22); opacity: 0; transform: translateY(.6cqh); transition: opacity .35s, transform .35s; pointer-events: none; }
.ds-sub.on { opacity: 1; transform: none; }
.btn-talk, .intro-sub { display: none; }
@media (max-width: 900px) {
  .btn-talk { display: inline-flex; color: var(--teal-hi); background: rgba(31,191,174,.08); box-shadow: inset 0 0 0 1px rgba(95,227,208,.3); }
  .intro-sub { display: block; margin: 0; max-height: 0; overflow: hidden; font-family: var(--f-serif); font-style: italic; font-size: 1.05rem; line-height: 1.35; color: var(--ink);
    transition: max-height .4s, opacity .4s; opacity: 0; }
  .intro-sub.on { max-height: 8em; opacity: 1; }
}
.lock-center { position: absolute; inset: 0 50% 8cqh 0; display: grid; justify-items: center; align-content: center; gap: 1cqh;
  transition: opacity .5s, transform .7s var(--ease); }
.lock-mark { width: 13cqw; height: 13cqw; color: var(--teal-hi); filter: drop-shadow(0 0 1.6cqw rgba(95,227,208,.45)); opacity: .7; animation: breathe 3.2s ease-in-out infinite; transition: opacity .4s, filter .4s; }
.lock-name { margin: 1cqh 0 0; font-family: var(--f-display); letter-spacing: .5em; padding-left: .5em; font-size: 2.8cqw; color: var(--ink-2); transition: color .4s; }
.lock-sub { margin: 0; font-family: var(--f-mono); font-size: 1.7cqw; color: var(--ink-3); letter-spacing: .12em; text-transform: uppercase; }
.dash-screen[data-state="ready"] .lock-mark { opacity: 1; filter: drop-shadow(0 0 2.6cqw rgba(95,227,208,.9)); animation-duration: 1.2s; }
.dash-screen[data-state="ready"] .lock-name { color: var(--ink); }
.dash-screen[data-state="drive"] .lock-center { opacity: 0; transform: scale(1.25); }

/* Navegador en miniatura: el mapa del cerebro de la app, sin nombres */
.ds-map { position: absolute; top: 3cqh; right: 2.5cqw; bottom: 12cqh; left: 50%; border-radius: 1.6cqw; overflow: hidden; pointer-events: none;
  background: radial-gradient(70% 70% at 50% 50%, rgba(31,191,174,.07), transparent 75%), #05090B; box-shadow: inset 0 0 0 1px rgba(150,215,205,.12); }
.ds-map .map-svg { cursor: default; }
.ds-map .node-inner { transform: scale(var(--inv, 1)); }
.ds-map .label, .ds-map .sub, .ds-map .zone-labels, .ds-map .core-label, .ds-map .grid, .ds-map .here, .ds-map .halo { display: none; }
.ds-map .road-base { stroke-width: 3.2; }
.ds-map .road-top { stroke-width: 1.8; }
.ds-map .road.unpaved .road-top { stroke-width: 1; stroke-dasharray: 2 4; }
.ds-map .route-glow { stroke-width: 8; }
.ds-map .route-line { stroke-width: 2.4; }
.ds-map .hemi-edge { stroke-width: 1; }
.dash-screen[data-state="park"] .ds-map { filter: brightness(.75) saturate(.8); transition: filter .5s; }
.dash-screen:not([data-state="park"]) .ds-map { filter: none; }
.drive-view { position: absolute; inset: 0 50% 0 0; opacity: 0; transition: opacity .6s .25s; perspective: 34cqw; }
.dash-screen[data-state="drive"] .drive-view { opacity: 1; }
.dv-road { position: absolute; left: 12%; right: 12%; top: -20%; bottom: -6%; transform: rotateX(58deg); transform-origin: 50% 100%;
  background: linear-gradient(180deg, transparent, rgba(159,178,174,.10) 40%, rgba(159,178,174,.16)); }
.dv-lane { position: absolute; top: 0; bottom: 0; width: .5cqw; translate: -50% 0;
  background: repeating-linear-gradient(180deg, rgba(231,240,238,.85) 0 7cqw, transparent 7cqw 13cqw); }
.dv-lane.l { left: 6%; background: rgba(231,240,238,.55); }
.dv-lane.r { left: 94%; background: rgba(231,240,238,.55); }
.dv-lane.c { left: 50%; }
.dash-screen[data-state="drive"] .dv-lane.c { animation: lane .5s linear infinite; }
@keyframes lane { to { background-position: 0 13cqw; } }
.car-top { position: absolute; left: 50%; bottom: 14%; width: 9.5cqw; translate: -50% 0; overflow: visible; filter: drop-shadow(0 1.4cqw 1.6cqw rgba(0,0,0,.7)) drop-shadow(0 0 1.6cqw rgba(95,227,208,.45)); }
.dash-screen[data-state="drive"] .car-top { animation: rollIn .9s var(--ease) both .2s; }
@keyframes rollIn { from { transform: translateY(12cqh) scale(1.15); opacity: 0; } }
.dv-sensor { position: absolute; left: 50%; bottom: 50%; width: 20cqw; height: 9cqw; translate: -50% 0; border-radius: 50% 50% 0 0 / 100% 100% 0 0;
  background: radial-gradient(70% 100% at 50% 100%, rgba(255,59,92,.75), rgba(255,140,40,.55) 45%, transparent 75%); opacity: 0; }
.dash-screen[data-state="drive"] .dv-sensor { animation: sensor 1.4s ease-out .3s; }
@keyframes sensor { 20% { opacity: .9; } 100% { opacity: 0; } }

.ds-label { position: absolute; left: 2cqw; bottom: 4cqh; margin: 0; font-size: 2.2cqw; letter-spacing: .04em; color: var(--ink-2); }
.ds-label span { display: none; }
.dash-screen[data-state="park"] .ds-l-park, .dash-screen[data-state="ready"] .ds-l-ready, .dash-screen[data-state="drive"] .ds-l-drive { display: inline; }
.dash-screen[data-state="ready"] .ds-label { color: var(--teal-hi); }
.dash-screen[data-state="drive"] .ds-label { color: #CFE2FF; font-weight: 600; }

/* Botón de sonido (barra de estado de la app) */
.snd-btn { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; color: var(--ink-2); }
.snd-btn:hover { color: var(--ink); background: rgba(255,255,255,.06); }
.snd-btn[aria-pressed="false"] .w1, .snd-btn[aria-pressed="false"] .w2 { display: none; }
.snd-btn[aria-pressed="false"] { color: var(--ink-3); }
/* Volante (estilo Model 3) en la vista del conductor: abajo a la izquierda, siempre por debajo del texto
   (app.js lo coloca justo debajo de «Conversaciones · Destinos · Zonas del cerebro») */
.wheel { position: absolute; z-index: 1; pointer-events: none; width: 340px; left: 6vw; top: 84%;
  perspective: 900px; filter: drop-shadow(0 -10px 30px rgba(0,0,0,.7)); }
.wheel svg { display: block; width: 100%; height: auto; overflow: visible;
  transform: rotateX(16deg); transform-origin: 50% 0%; }
.wheel-mark { color: var(--teal-hi); filter: drop-shadow(0 0 10px rgba(95,227,208,.7)); }
.intro.boarding .wheel { opacity: 0; transition: opacity .5s; }
.intro.parked .wheel { visibility: hidden; }
@media (max-width: 900px) { .wheel { display: none; } }
/* Música de fondo: la raya del icono aparece cuando está quitada */
.music-btn[aria-pressed="false"] { --moff: 1; }
.intro-music { position: absolute; z-index: 5; top: calc(22px + env(safe-area-inset-top, 0px)); right: max(5vw, var(--gut-r));
  display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 11px; border-radius: 999px;
  font-size: var(--t-sm); font-weight: 600; color: var(--teal-hi); background: rgba(6,12,14,.6);
  box-shadow: inset 0 0 0 1px rgba(95,227,208,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s; }
.intro-music:hover { background: rgba(31,191,174,.16); }
/* Contacto en la portada: debajo de «Música» */
.intro-mail { position: absolute; z-index: 5; top: calc(70px + env(safe-area-inset-top, 0px)); right: max(5vw, var(--gut-r));
  display: inline-flex; align-items: center; gap: 7px; padding: 4px 4px 4px 0; font-family: var(--f-mono); font-size: 12px; letter-spacing: .02em;
  color: var(--ink-2); text-decoration: none; transition: color .2s; }
.intro-mail .ic { width: 16px; height: 16px; color: var(--teal-hi); }
.intro-mail:hover { color: var(--teal-hi); }
.intro.boarding .intro-mail { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-mail { visibility: hidden; }
@media (max-width: 760px) { .intro-mail { top: calc(96px + env(safe-area-inset-top, 0px)); font-size: 11px; } }
/* Redes con seguidores, debajo del correo */
.intro-social { position: absolute; z-index: 5; top: calc(98px + env(safe-area-inset-top, 0px)); right: max(5vw, var(--gut-r));
  display: flex; align-items: center; gap: 6px; }
.intro-social .so { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px 0 9px; border-radius: 999px;
  color: var(--ink-2); text-decoration: none; background: rgba(6,12,14,.55); box-shadow: inset 0 0 0 1px rgba(95,227,208,.2);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); transition: color .2s, box-shadow .2s, background .2s; }
.intro-social .so .ic { width: 15px; height: 15px; color: var(--teal-hi); }
.intro-social .so b { font-size: 12px; font-weight: 500; color: var(--ink); letter-spacing: .02em; }
.intro-social .so:hover { background: rgba(31,191,174,.14); box-shadow: inset 0 0 0 1px rgba(95,227,208,.55); }
.intro-social .so:hover b { color: var(--teal-hi); }
.intro.boarding .intro-social { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-social { visibility: hidden; }
@media (max-width: 760px) { .intro-social { top: calc(122px + env(safe-area-inset-top, 0px)); gap: 4px; } .intro-social .so { height: 26px; padding: 0 8px 0 7px; } .intro-social .so b { font-size: 11px; } }
.contact-line { margin: 0; font-size: var(--t-sm); color: var(--ink-2); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.contact-line a { color: var(--teal-hi); font-family: var(--f-mono); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.contact-line a:hover { text-decoration: underline; }
.contact-line .ic { width: 16px; height: 16px; }
.intro-music[aria-pressed="false"] { color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.intro.boarding .intro-music { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-music { visibility: hidden; }
@media (max-width: 560px) { .intro-music span { display: none; } .intro-music { padding: 0 11px; } }

/* Transición al subir al coche */
.intro.boarding .intro-copy, .intro.boarding .mirror { opacity: 0; transition: opacity .5s; }
.intro.boarding .road, .intro.boarding .cabin { transform: scale(1.25); transition: transform 1.2s var(--ease); }
.intro.parked .intro-copy, .intro.parked .mirror, .intro.parked .dash-screen { visibility: hidden; }
.intro.parked .road { filter: brightness(.45) blur(2px); }

/* =========================================================================
   PANTALLA (APP)
   ========================================================================= */
.app { position: fixed; inset: 0; z-index: 10; display: grid; padding: 0; }
.bezel {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; grid-template-columns: minmax(0, 1fr); min-height: 0; overflow: hidden;
  background: var(--night);
}
@media (min-width: 1100px) and (min-height: 640px) {
  .app { padding: 14px; }
  .bezel { border-radius: var(--r-lg); box-shadow: 0 0 0 1px rgba(150,215,205,.16), 0 0 0 8px #050709, 0 0 0 9px rgba(150,215,205,.08), 0 50px 120px rgba(0,0,0,.8); }
  .bezel::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 40; border-radius: inherit;
    background: linear-gradient(118deg, rgba(255,255,255,.045), transparent 30%); }
}

/* Barra de estado */
.status {
  position: relative; z-index: 30; display: flex; align-items: center; gap: 18px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) var(--gut-r) 10px var(--gut);
  font-size: var(--t-sm); color: var(--ink-2); background: linear-gradient(var(--night), rgba(5,8,10,0));
}
/* Accesos rápidos con iniciales (en lugar de P R N D): I = inicio, M = mapa, P = propón, C = conductor */
.gears { display: flex; gap: 2px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .02em; }
.gears button { position: relative; min-width: 26px; height: 26px; padding: 0 5px; border-radius: 7px; color: var(--ink-3); font: inherit; transition: color .2s, background .2s; }
.gears button:hover, .gears button:focus-visible { color: var(--ink); background: rgba(150,215,205,.1); }
.gears button.on { color: var(--teal-hi); }
.gears button:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 1px; }
/* el nombre completo aparece debajo al pasar el ratón o con el foco */
.gears button::after { content: attr(data-tip); position: absolute; z-index: 60; left: 50%; top: calc(100% + 8px); translate: -50% -4px; opacity: 0; pointer-events: none;
  white-space: nowrap; padding: 4px 9px; border-radius: 8px; font-family: var(--f-ui); font-size: 12px; letter-spacing: 0; color: var(--ink);
  background: rgba(9,15,17,.96); box-shadow: 0 0 0 1px var(--line-2), 0 8px 20px rgba(0,0,0,.5); transition: opacity .15s, translate .15s; }
.gears button:hover::after, .gears button:focus-visible::after { opacity: 1; translate: -50% 0; }
/* Intermitentes (barra del mapa y pantalla de la portada): el derecho se enciende al arrancar hacia un sitio */
.blinker { display: inline-flex; align-items: center; gap: 4px; }
.blinker svg { width: 15px; height: 15px; fill: rgba(61,220,132,.08); stroke: rgba(61,220,132,.22); stroke-width: 1.2; stroke-linejoin: round; transition: fill .06s, filter .06s; }
.ds-top .blinker { gap: 1cqw; }
.ds-top .blinker svg { width: 3cqw; height: 3cqw; }
.blinker.lit .bl-r { fill: #3DDC84; stroke: #3DDC84; filter: drop-shadow(0 0 5px rgba(61,220,132,.85)); }
.mode-chip { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.status-center { position: absolute; left: 50%; translate: -50% 0; display: flex; align-items: center; gap: 8px; font-family: var(--f-display); font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-2); }
.status-center .ic { width: 15px; height: 15px; }
.status-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.status-right .ic { width: 17px; height: 17px; }
/* Señal de «interferencias» (el wifi de la barra): 3 rayas = buena · 1 = débil (ámbar) · 0 = sin señal (rojo, parpadea) */
.wifi-wrap { position: relative; display: flex; }
.wifi { display: inline-grid; place-items: center; padding: 4px; margin: -4px; border-radius: 8px; color: var(--ink-2); transition: color .5s, background .2s; }
.wifi:hover, .wifi[aria-expanded="true"] { background: rgba(150,215,205,.1); }
.wifi-info { box-shadow: 0 0 0 1px color-mix(in srgb, var(--wc, var(--teal-hi)) 40%, transparent), 0 14px 40px rgba(0,0,0,.6); }
.wifi-info b { color: var(--wc, var(--teal-hi)); }
.wifi-info i { font-style: normal; color: var(--ink); }
.wifi path { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; transition: opacity .5s; }
.wifi circle { fill: currentColor; }
.wifi[data-s="2"] .a3, .wifi[data-s="1"] .a3, .wifi[data-s="1"] .a2, .wifi[data-s="0"] path { opacity: .18; }
.wifi[data-s="1"] { color: #E8B04A; }
.wifi[data-s="0"] { color: var(--z-forbidden); animation: wifiLost 1.1s steps(2) infinite; }
@keyframes wifiLost { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .wifi[data-s="0"] { animation: none; } }
.curio { position: relative; display: flex; }
.curio-btn { display: flex; align-items: center; gap: 8px; padding: 4px 8px; margin: -4px -8px; border: 0; border-radius: 8px; background: none;
  color: var(--awake-c, #E8B04A); font: inherit; white-space: nowrap; cursor: pointer; transition: background .2s; }
.curio-btn:hover, .curio-btn[aria-expanded="true"] { background: rgba(232,176,74,.12); }
.curio-bar { width: 30px; height: 12px; border-radius: 3px; box-shadow: inset 0 0 0 1.5px var(--ink-3); padding: 2px; display: block; }
.curio-bar i { display: block; height: 100%; width: 20%; border-radius: 1.5px; background: var(--awake-c, #E8B04A); transition: width .8s ease, background .8s; }
.curio.bump .curio-btn { animation: awakeBump 1.2s ease; }
@keyframes awakeBump { 0%, 100% { background: none; } 25% { background: rgba(95,227,208,.22); } }
.curio-info { position: absolute; z-index: 40; top: calc(100% + 12px); right: -8px; width: min(280px, 86vw); padding: 12px 14px; border-radius: 12px; font-size: 13px; }
/* Aviso flotante: «Has subido tu batería de despertar» */
.awake-toast { position: fixed; z-index: 90; left: 50%; top: 64px; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(9,15,17,.95);
  box-shadow: 0 0 0 1px var(--awake-c, #E8B04A), 0 10px 30px rgba(0,0,0,.5); color: var(--ink); font-size: 14px;
  animation: toastIn .35s ease both; }
.awake-toast[hidden] { display: none; }
.awake-toast.out { animation: toastOut .4s ease both; }
.awake-toast .awake-toast-n { color: var(--awake-c, #E8B04A); font-weight: 700; }
.awake-toast .ic { width: 18px; height: 18px; color: var(--awake-c, #E8B04A); flex: none; }
@keyframes toastIn { from { opacity: 0; translate: -50% -10px; } }
@keyframes toastOut { to { opacity: 0; translate: -50% -10px; } }
/* 100 %: la enhorabuena de Sal */
.awake-party { position: fixed; z-index: 95; inset: 0; display: grid; place-items: center; padding: 16px;
  background: rgba(3,6,8,.74); backdrop-filter: blur(6px); animation: partyIn .4s ease both; }
.awake-party[hidden] { display: none; }
.party-card { width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 30px 26px 24px; border-radius: 22px; text-align: center;
  background: radial-gradient(90% 60% at 50% 0%, rgba(31,191,174,.16), transparent 70%), #0A1214;
  box-shadow: 0 0 0 1px rgba(95,227,208,.35), 0 0 60px -10px rgba(31,191,174,.55), 0 30px 80px rgba(0,0,0,.6); }
.party-mark { position: relative; width: 76px; height: 76px; margin: 0 auto 14px; color: var(--teal-hi); }
.party-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 14px rgba(95,227,208,.8)); }
.party-mark::before, .party-mark::after { content: ''; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid rgba(95,227,208,.45); opacity: 0; }
.party-mark.talking::before, .party-mark.talking::after { animation: partyRing 1.6s ease-out infinite; }
.party-mark.talking::after { animation-delay: .8s; }
.party-k { margin: 0; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--teal-hi); }
.party-title { margin: 6px 0 14px; font-family: var(--f-display); font-size: clamp(19px, 4.6vw, 24px); line-height: 1.25; font-weight: 400; color: var(--ink); text-wrap: balance; }
.party-batt { display: block; width: 120px; height: 22px; margin: 0 auto 18px; padding: 4px; border-radius: 6px; box-shadow: inset 0 0 0 2px rgba(95,227,208,.5); }
.party-batt i { display: block; height: 100%; border-radius: 3px; background: var(--teal-hi); box-shadow: 0 0 16px rgba(95,227,208,.8); animation: partyFill 1.4s .3s cubic-bezier(.3,.8,.2,1) both; }
.party-sal { margin: 0 0 22px; font-family: var(--f-serif, Georgia, serif); font-style: italic; font-size: 16.5px; line-height: 1.55; color: var(--ink-2); }
.party-sal b { color: var(--ink); font-weight: 600; }
.party-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.party-actions .btn { flex: 1 1 180px; justify-content: center; }
@keyframes partyIn { from { opacity: 0; } }
@keyframes partyRing { from { opacity: .9; transform: scale(.85); } to { opacity: 0; transform: scale(1.5); } }
@keyframes partyFill { from { width: 20%; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .awake-party, .party-batt i, .party-mark.talking::before, .party-mark.talking::after { animation: none; } }

/* ---------------------------- Idioma ES / EN (js/i18n.js) ---------------------------- */
.lang-btn { display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-weight: 500; letter-spacing: .06em; cursor: pointer; }
.lang-btn .ic { width: 15px; height: 15px; color: var(--teal-hi); }
.lang-btn .lang-long { display: none; }
.intro-lang .lang-short { display: none; }
.intro-lang .lang-long { display: inline; font-family: var(--f-ui); letter-spacing: 0; }
@media (max-width: 870px) { .intro-lang .lang-short { display: inline; } .intro-lang .lang-long { display: none; } }
/* Ajustes de la portada, arriba a la derecha: idioma · cuenta · música (en pantallas estrechas, en dos filas) */
.intro-top { position: absolute; z-index: 5; top: calc(22px + env(safe-area-inset-top, 0px)); right: max(5vw, var(--gut-r));
  display: flex; align-items: center; gap: 8px; }
.intro-top > .intro-music, .intro-top > .intro-acct { position: static; }
.intro-lang { height: 38px; padding: 0 14px 0 11px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--teal-hi);
  background: rgba(6,12,14,.6); box-shadow: inset 0 0 0 1px rgba(95,227,208,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s; }
.intro-lang:hover { background: rgba(31,191,174,.16); }
.intro-lang .ic { width: 18px; height: 18px; }
.intro.boarding .intro-top { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-top { visibility: hidden; }
.intro-top .intro-acct.in .acct-lbl { max-width: 90px; overflow: hidden; text-overflow: ellipsis; }
/* Pantallas medianas (hasta 900 px el retrovisor es más grande): solo iconos (y «EN»/«ES»), para no pisarlo */
@media (max-width: 870px) {
  .intro-top .acct-lbl, .intro-top .intro-music span, .intro-lang .ic { display: none; }
  .intro-top .intro-acct, .intro-top .intro-music { padding: 0 11px; }
  .intro-top .intro-acct.in { padding: 0 7px; }
  .intro-lang { padding: 0 12px; }
}
/* Móvil: cuenta y música arriba; el idioma debajo, a la derecha (el correo y las redes bajan un poco) */
@media (max-width: 600px) {
  .intro-top { display: grid; grid-template-columns: auto auto; justify-items: end; gap: 6px; }
  .intro-top .intro-acct, .intro-top .intro-acct.in, .intro-top .intro-music { width: 38px; padding: 0; justify-content: center; }
  .intro-top .intro-acct { grid-area: 1 / 1; }
  .intro-top .intro-music { grid-area: 1 / 2; }
  .intro-top .intro-lang { grid-area: 2 / 2; }
  .intro-mail { top: calc(118px + env(safe-area-inset-top, 0px)); }
  .intro-social { top: calc(144px + env(safe-area-inset-top, 0px)); }
}
.lang-bar { height: 28px; padding: 0 9px 0 7px; margin: -2px 0; border-radius: 999px; font-size: 12px; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: color .2s, background .2s; }
.lang-bar:hover { color: var(--ink); background: rgba(150,215,205,.1); }
@media (max-width: 480px) { .lang-bar { padding: 0 6px; } .lang-bar .ic { display: none; } }

/* ---------------------------- Cuenta (opcional, js/cuenta.js) ---------------------------- */
.acct-btn { display: inline-flex; align-items: center; gap: 7px; font: inherit; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.acct-av { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; flex: none;
  background: hsl(var(--h, 180) 42% 32%); color: #fff; font-size: 11px; font-weight: 700; line-height: 1; }
.acct-av.lg { width: 52px; height: 52px; font-size: 22px; }
/* En la barra del coche: «Entrar» o tu inicial */
.acct-bar { height: 28px; padding: 0 10px 0 7px; margin: -2px 0; border-radius: 999px; color: var(--teal-hi); font-size: 12.5px; font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(95,227,208,.3); }
.acct-bar:hover { background: rgba(31,191,174,.14); }
.acct-bar .ic { width: 17px; height: 17px; }
.acct-bar.in { padding: 0 10px 0 3px; color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.acct-bar.in .acct-lbl { max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 760px) { .acct-bar .acct-lbl { display: none; } .acct-bar { padding: 0 5px; } .acct-bar.in { padding: 0 3px; box-shadow: none; } }
/* En la portada: a la izquierda de «Música» */
.intro-acct { position: absolute; z-index: 5; top: calc(22px + env(safe-area-inset-top, 0px)); right: calc(max(5vw, var(--gut-r)) + 114px);
  height: 38px; padding: 0 14px 0 11px; border-radius: 999px; font-size: var(--t-sm); font-weight: 600; color: var(--teal-hi);
  background: rgba(6,12,14,.6); box-shadow: inset 0 0 0 1px rgba(95,227,208,.28); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.intro-acct:hover { background: rgba(31,191,174,.16); }
.intro-acct.in { padding: 0 14px 0 8px; color: var(--ink); }
.intro-acct.in .acct-av { width: 24px; height: 24px; }
.intro.boarding .intro-acct { opacity: 0; transition: opacity .5s; }
.intro.parked .intro-acct { visibility: hidden; }
@media (max-width: 560px) { .intro-acct { right: calc(max(5vw, var(--gut-r)) + 50px); padding: 0 11px; } .intro-acct.in { padding: 0 7px; } .intro-acct .acct-lbl { display: none; } }

/* Diálogo */
.acct-dlg { position: fixed; z-index: 96; inset: 0; display: grid; place-items: center; padding: 16px;
  background: rgba(3,6,8,.74); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: partyIn .3s ease both; }
.acct-dlg[hidden] { display: none; }
.acct-card { position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto; padding: 28px 24px 22px; border-radius: 22px;
  text-align: center; background: radial-gradient(90% 50% at 50% 0%, rgba(31,191,174,.14), transparent 70%), #0A1214;
  box-shadow: 0 0 0 1px rgba(95,227,208,.3), 0 0 60px -14px rgba(31,191,174,.5), 0 30px 80px rgba(0,0,0,.6); }
.acct-x { position: absolute; top: 12px; right: 12px; }
.acct-mark { width: 52px; height: 52px; margin: 0 auto 10px; color: var(--teal-hi); display: grid; place-items: center; }
.acct-mark svg { width: 100%; height: 100%; filter: drop-shadow(0 0 12px rgba(95,227,208,.7)); }
.acct-mark svg.ic { width: 34px; height: 34px; }
.acct-title { margin: 6px 0 8px; font-family: var(--f-display); font-size: clamp(18px, 4.6vw, 22px); line-height: 1.25; font-weight: 400; text-wrap: balance; }
.acct-sal { margin: 0 0 16px; font-family: var(--f-serif); font-style: italic; font-size: 16.5px; line-height: 1.45; color: var(--ink-2); }
.acct-p { margin: 0 0 16px; color: var(--ink-2); font-size: 14.5px; }
.acct-p b { color: var(--ink); }
.acct-perks { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 8px; text-align: left; font-size: 14px; color: var(--ink-2); }
.acct-perks li { position: relative; padding-left: 20px; }
.acct-perks li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 8px rgba(95,227,208,.8); }
.acct-perks b { color: var(--ink); font-weight: 600; }
.acct-google { width: 100%; justify-content: center; }
.acct-google .g { width: 18px; height: 18px; }
.acct-or { display: flex; align-items: center; gap: 12px; margin: 14px 0 10px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.acct-form { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; text-align: left; }
.acct-form .chat-name { width: 100%; }
.acct-form .btn { min-height: 48px; padding: 0 18px; font-size: var(--t-sm); justify-content: center; }
.acct-l { grid-column: 1 / -1; font-size: var(--t-xs); color: var(--ink-3); font-family: var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
@media (max-width: 420px) { .acct-form { grid-template-columns: 1fr; } }
.acct-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 0; text-align: left; font-size: 13px; line-height: 1.45; color: var(--ink-2); cursor: pointer; }
.acct-check input { flex: none; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--teal); cursor: pointer; }
.acct-msg { min-height: 1.4em; margin: 10px 0 0; font-size: 13px; color: var(--teal-hi); }
.acct-msg:empty { min-height: 0; margin: 0; }
.acct-fine { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
.acct-fine a { color: var(--ink-2); }
.acct-fine.warn { color: #FF8FA3; }
.acct-test { margin: 14px 0 0; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 12px; color: var(--ink-2);
  background: rgba(232,176,74,.08); box-shadow: inset 0 0 0 1px rgba(232,176,74,.3); }
.acct-test b { color: #E8B04A; }
.acct-link { font: inherit; font-size: 13px; color: var(--teal-hi); text-decoration: underline; text-underline-offset: 3px; padding: 4px 2px; }
.acct-link:hover { color: var(--ink); }
.acct-link.danger { color: #FF8FA3; }
.acct-who { display: flex; align-items: center; gap: 14px; margin: 0 0 14px; padding-right: 36px; text-align: left; }
.acct-name { margin: 0; font-size: 18px; font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.acct-mail { margin: 2px 0 0; font-size: 12px; color: var(--ink-3); word-break: break-all; }
.acct-member { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; color: #E8B04A; box-shadow: inset 0 0 0 1px currentColor; }
.acct-saved { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; padding: 10px 12px; border-radius: 12px; text-align: left; font-size: 13.5px; color: var(--ink-2);
  background: rgba(31,191,174,.08); box-shadow: inset 0 0 0 1px rgba(95,227,208,.22); }
.acct-saved .ic { width: 16px; height: 16px; color: var(--awake-c, var(--teal-hi)); }
.acct-saved b { color: var(--ink); }
.acct-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.acct-actions .btn { min-height: 42px; font-size: var(--t-sm); }
/* Aviso corto */
.acct-toast { position: fixed; z-index: 97; left: 50%; top: 64px; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  max-width: calc(100vw - 32px); padding: 10px 16px; border-radius: 999px; background: rgba(9,15,17,.96);
  box-shadow: 0 0 0 1px var(--teal-hi), 0 10px 30px rgba(0,0,0,.5); color: var(--ink); font-size: 14px; animation: toastIn .35s ease both; }
.acct-toast[hidden] { display: none; }
.acct-toast.out { animation: toastOut .4s ease both; }
.acct-toast .ic { width: 18px; height: 18px; color: var(--teal-hi); flex: none; }
.acct-toast b { color: var(--teal-hi); }
/* Invitación a guardar el progreso (abajo, encima de la barra) */
.acct-nudge { position: fixed; z-index: 92; left: 50%; bottom: calc(86px + env(safe-area-inset-bottom, 0px)); translate: -50% 0;
  width: min(460px, calc(100vw - 32px)); display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: start; padding: 14px 16px;
  border-radius: 18px; background: rgba(9,15,17,.97); box-shadow: 0 0 0 1px rgba(95,227,208,.4), 0 18px 50px rgba(0,0,0,.6); animation: nudgeIn .4s var(--ease) both; }
.acct-nudge[hidden] { display: none; }
.acct-nudge-ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; color: var(--teal-hi); background: rgba(31,191,174,.14); }
.acct-nudge p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.acct-nudge p b { color: var(--ink); }
.acct-nudge-act { grid-column: 2; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.acct-nudge-act .btn { min-height: 38px; padding: 0 16px; font-size: var(--t-sm); }
@keyframes nudgeIn { from { opacity: 0; translate: -50% 12px; } }
@media (prefers-reduced-motion: reduce) { .acct-dlg, .acct-toast, .acct-nudge { animation: none; } }
/* Nombre fijo (con cuenta) en el chat y el buzón, y la marca de «nombre protegido» */
.chat-name.acct-locked { color: var(--teal-hi); cursor: default; box-shadow: inset 0 0 0 1px rgba(95,227,208,.35); }
.chat-ok { width: 13px; height: 13px; margin-left: 4px; vertical-align: -2px; fill: var(--teal); }
.chat-ok .tick { fill: none; stroke: var(--teal-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chat-note .acct-link { font-size: inherit; padding: 0; }
.chat-note .acct-hint:not(:empty) { display: block; margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .awake-toast, .awake-toast.out, .curio.bump .curio-btn { animation: none; } }
#clock { color: var(--ink); }

/* Escenario */
.stage { position: relative; min-height: 0; overflow: hidden; }
.map-host { position: absolute; inset: 0; background:
  radial-gradient(60% 60% at 50% 50%, rgba(31,191,174,.06), transparent 70%), var(--night); }

/* ---------------------------- Mapa SVG ---------------------------- */
.map-svg { width: 100%; height: 100%; display: block; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.map-svg.dragging { cursor: grabbing; }
.grid-dots { stroke: rgba(150,215,205,.13); stroke-width: 1.6; stroke-linecap: round; }
.hemi-fill { fill: url(#gBrain); }
.hemi-edge { fill: none; stroke: rgba(95,227,208,.34); stroke-width: 1.4; filter: drop-shadow(0 0 6px rgba(31,191,174,.35)); }
.fold { fill: none; stroke: rgba(150,215,205,.1); stroke-width: 1; }
.fold.f1, .fold.f2 { stroke: rgba(150,215,205,.15); }
.sulcus { fill: none; stroke: rgba(150,215,205,.2); stroke-width: 1; stroke-dasharray: 2 6; }

.zone-label text { font-family: var(--f-display); font-size: 30px; letter-spacing: .55em; opacity: .62; transform-box: fill-box; transform-origin: center;
  paint-order: stroke; stroke: var(--night); stroke-width: 10px; stroke-linejoin: round; pointer-events: none; }

.road-base { fill: none; stroke: #1B2529; stroke-width: 9; stroke-linecap: round; }
.road-top { fill: none; stroke: #2A383D; stroke-width: 5.5; stroke-linecap: round; transition: stroke .25s; }
.road.unpaved .road-base { stroke: none; }
.road.unpaved .road-top { stroke: #34454B; stroke-width: 2; stroke-dasharray: 3 7; }
.road.hl .road-top { stroke: #3E5A60; }
.road.hl.unpaved .road-top { stroke: #557178; }

.route-glow { fill: none; stroke: rgba(31,191,174,.35); stroke-width: 18; stroke-linecap: round; filter: blur(6px); }
.route-line { fill: none; stroke: var(--teal-hi); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round; }

/* Caminos prohibidos: carretera cortada hacia lugares fuera del cerebro (CS.prohibidos) */
.pz { cursor: pointer; outline: none; }
.pz-hit { fill: none; stroke: transparent; stroke-width: 22; }
.pz-base { fill: none; stroke: #1B2529; stroke-width: 7; stroke-linecap: round; }
.pz-top { fill: none; stroke: var(--z-forbidden); stroke-opacity: .55; stroke-width: 2; stroke-dasharray: 6 8; stroke-linecap: round; transition: stroke-opacity .25s; }
.pz-sign { fill: var(--z-forbidden); stroke: var(--night); stroke-width: 2; }
.pz-sign-bar { fill: #fff; }
.pz-bar { stroke: #F2F2F2; stroke-width: 5; stroke-linecap: round; }
.pz-bar-stripes { stroke: var(--z-forbidden); stroke-width: 5; stroke-dasharray: 5 5; }
.pz-disc { fill: var(--night); fill-opacity: .85; stroke: var(--z-forbidden); stroke-opacity: .7; stroke-width: 1.5; stroke-dasharray: 4 4; transition: stroke-opacity .25s; }
.pz-icon { color: var(--ic); opacity: .75; transition: opacity .25s; }
.pz-label { font-family: var(--f-display); font-size: 12px; letter-spacing: .14em; fill: var(--ink); paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; }
.pz-sub { font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; fill: var(--z-forbidden); paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
.pz:hover .pz-top, .pz:focus-visible .pz-top { stroke-opacity: .95; }
.pz:hover .pz-disc, .pz:focus-visible .pz-disc { stroke-opacity: 1; }
.pz:hover .pz-icon, .pz:focus-visible .pz-icon { opacity: 1; }
.pz:focus-visible .pz-disc { stroke: var(--ink); stroke-width: 2; stroke-dasharray: none; }
.lod-far .pz-sub { opacity: 0; }
.lod-far .pz-label { font-size: 10.5px; letter-spacing: .08em; }
.ds-map .pz-label, .ds-map .pz-sub, .ds-map .pz-sign, .ds-map .pz-sign-bar, .ds-map .pz-bar, .ds-map .pz-bar-stripes { display: none; }

.node { cursor: pointer; outline: none; }
.node .hit { fill: transparent; }
.node .halo { fill: var(--zc); opacity: 0; transition: opacity .25s, r .25s; }
.node .ring { fill: var(--night); stroke: var(--zc); stroke-width: 2; }
.node .dot { fill: var(--zc); }
.node .label { font-family: var(--f-display); font-size: 12.5px; letter-spacing: .12em; fill: var(--ink); paint-order: stroke; stroke: var(--night); stroke-width: 5px; stroke-linejoin: round; }
.node .sub { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .04em; fill: var(--ink-3); paint-order: stroke; stroke: var(--night); stroke-width: 4px; }
.node:hover .halo, .node:focus-visible .halo { opacity: .18; }
.node:focus-visible .ring { stroke-width: 3; stroke: var(--ink); }
.node:hover .label { fill: #fff; }
.node.is-unpaved .ring { stroke-dasharray: 3 3; fill: var(--night); }
.node.is-unpaved .dot { opacity: .35; }
.node.is-unpaved .label { fill: var(--ink-2); }
.node.is-visited .dot { fill: var(--ink); }
.node.is-new .sub { fill: var(--z-forbidden); }
.node.is-selected .halo { opacity: .25; animation: pulse 1.8s infinite; }
.node.is-selected .ring { stroke-width: 3; }
.node.on-route .ring { stroke: var(--teal-hi); }
@keyframes pulse { 0%, 100% { opacity: .28; } 50% { opacity: .08; } }
.lod-far .node .label { opacity: 1; font-size: 10.5px; letter-spacing: .08em; transition: opacity .2s; }
.lod-far .node .sub { opacity: 0; transition: opacity .2s; }
.node.lbl-hide .label, .node.lbl-hide .sub, .node.sub-hide .sub { opacity: 0; transition: opacity .2s; }
.node.lbl-hide:hover .label, .node.lbl-hide:focus-visible .label { opacity: 1; }
/* Primera visita: los destinos laten por turnos para que se vea a dónde se puede ir */
.node .beacon { fill: none; stroke: var(--zc); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; pointer-events: none; }
.map-svg.fresh .node:not(.is-unpaved) .beacon { animation: beacon 2.6s ease-out infinite; animation-delay: calc(var(--i) * 120ms); }
.map-svg.fresh .node:not(.is-unpaved) .dot { animation: dotBlink 2.6s ease-in-out infinite; animation-delay: calc(var(--i) * 120ms); }
@keyframes beacon { 0% { transform: scale(.8); opacity: .9; } 70%, 100% { transform: scale(2.8); opacity: 0; } }
@keyframes dotBlink { 0%, 100% { opacity: 1; } 12% { opacity: .35; } 24% { opacity: 1; } }

.core { cursor: pointer; }
.core-disc { fill: #07100F; stroke: var(--teal-hi); stroke-width: 1.5; }
.core-mark { color: var(--teal-hi); }
.core-ring { fill: none; stroke: var(--teal); stroke-width: 1; transform-box: fill-box; transform-origin: center; }
.core-ring.r1 { stroke-dasharray: 4 6; animation: spin 18s linear infinite; }
.core-ring.r2 { stroke-dasharray: 1 10; opacity: .6; animation: spin 30s linear infinite reverse; }
.core-glow { animation: breathe 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.core-label { font-family: var(--f-display); font-size: 11px; letter-spacing: .5em; fill: var(--teal-hi); }
@keyframes spin { to { transform: rotate(360deg); } }
.here-pulse { fill: rgba(95,227,208,.15); stroke: var(--teal-hi); stroke-width: 1.5; animation: herePulse 2.2s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes herePulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.m3-car { filter: drop-shadow(0 0 6px rgba(95,227,208,.9)) drop-shadow(0 2px 3px rgba(0,0,0,.8)); }

/* ---------------------------- HUD ---------------------------- */
.hud-top { position: absolute; z-index: 12; top: 6px; left: var(--gut); right: var(--gut-r); display: flex; align-items: flex-start; gap: 12px; pointer-events: none; }
.hud-top > * { pointer-events: auto; }
.navsearch {
  position: relative; display: flex; align-items: center; gap: 10px; width: min(360px, 100%); height: 52px; padding: 0 16px;
  border-radius: 14px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 12px 40px rgba(0,0,0,.4); color: var(--ink-2);
}
.navsearch input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: none; color: var(--ink); font: 500 var(--t-md) var(--f-ui); }
.navsearch input::placeholder { color: var(--ink-2); }
.navsearch input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }
.navsearch:focus-within { box-shadow: inset 0 0 0 1px var(--teal), 0 12px 40px rgba(0,0,0,.4); }
.qresults { position: absolute; top: calc(100% + 8px); left: 0; right: 0; margin: 0; padding: 6px; list-style: none; max-height: min(60vh, 440px); overflow: auto;
  border-radius: 14px; background: var(--glass-hi); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.6); }
.qresults li { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.qresults li[aria-selected="true"], .qresults li:hover { background: rgba(150,215,205,.1); }
.qresults .qr-dot { grid-row: span 2; width: 10px; height: 10px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 10px var(--zc); }
.qresults .qr-t { font-weight: 600; font-size: var(--t-sm); color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qresults .qr-s { font-family: var(--f-mono); font-size: 0.68rem; letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; }
.qresults .qr-empty { display: block; color: var(--ink-2); cursor: default; font-size: var(--t-sm); }
.qresults .qr-head { display: block; cursor: default; padding: 10px 12px 4px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .14em; color: var(--ink-3); text-transform: uppercase; }
.qresults .qr-head:hover { background: none; }

.zone-chips { margin-left: auto; display: flex; gap: 6px; padding: 5px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: inset 0 0 0 1px var(--line); }
.zchip { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; font-family: var(--f-display); font-size: .62rem; letter-spacing: .18em; color: var(--ink-2); transition: .2s; }
.zchip i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 8px var(--zc); }
/* Fila de destinos: solo en móvil, donde el mapa es pequeño para todos los nombres */
.dest-rail { display: none; }
@media (max-width: 760px) {
  .dest-rail { display: flex; width: 100%; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 4px; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); }
  .dest-rail::-webkit-scrollbar { display: none; }
  .rchip { flex: none; display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 999px; scroll-snap-align: start;
    font-size: .78rem; font-weight: 600; color: var(--ink); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 40%, transparent); white-space: nowrap; }
  .rchip i { width: 7px; height: 7px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 8px var(--zc); }
  .rchip.unpaved { color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line); }
  .rchip.unpaved i { background: none; box-shadow: inset 0 0 0 1.5px var(--zc); }
  .turn:not([hidden]) ~ .dest-rail { display: none; }
}
.zchip:hover, .zchip[aria-pressed="true"] { color: var(--ink); background: rgba(150,215,205,.1); }

/* Indicaciones de navegación */
.turn { width: min(360px, 100%); border-radius: 14px; overflow: hidden; background: #0F2A27; box-shadow: inset 0 0 0 1px rgba(95,227,208,.35), 0 18px 50px rgba(0,0,0,.5); animation: drop .4s var(--ease); }
@keyframes drop { from { transform: translateY(-12px); opacity: 0; } }
.turn-main { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.turn-ic { width: 42px; height: 42px; color: var(--teal-hi); flex: none; }
.turn-main p { margin: 0; }
.turn-dist { font-size: var(--t-sm); color: var(--teal-hi); }
.turn-name { font-family: var(--f-display); font-size: 1.05rem; letter-spacing: .06em; line-height: 1.25; }
.turn-foot { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; background: rgba(0,0,0,.25); font-size: var(--t-sm); color: var(--ink-2); }
.turn-foot span { display: flex; align-items: center; gap: 6px; margin-right: auto; min-width: 0; }
.turn-foot span .ic { width: 15px; height: 15px; }
.turn-foot b { color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.map-ctrls { position: absolute; z-index: 12; right: var(--gut-r); top: 50%; translate: 0 -50%; display: grid; gap: 8px; }

/* Tarjeta de Sal */
.sal-card {
  position: absolute; z-index: 12; left: var(--gut); bottom: 16px; width: min(380px, calc(100% - 32px));
  display: grid; grid-template-columns: auto 1fr; gap: 12px 14px; align-items: center; padding: 16px;
  border-radius: var(--r-md); background: var(--glass); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: inset 0 0 0 1px var(--line), 0 20px 60px rgba(0,0,0,.5);
}
.sal-avatar { position: relative; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: var(--teal-hi);
  background: radial-gradient(circle, rgba(31,191,174,.25), rgba(31,191,174,.04) 70%); box-shadow: inset 0 0 0 1px rgba(95,227,208,.35); }
.sal-avatar svg { width: 30px; height: 30px; }
.sal-avatar::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(95,227,208,.4); opacity: 0; }
.sal-avatar.talking::after { animation: talk 1s ease-out infinite; }
.sal-avatar.talking svg { animation: breathe .9s ease-in-out infinite; }
@keyframes talk { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
.sal-body { min-width: 0; }
.sal-who { margin: 0; font-family: var(--f-display); font-size: .78rem; letter-spacing: .3em; color: var(--teal-hi); }
.sal-who span { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; margin-left: 6px; }
.sal-msg { margin: 4px 0 0; font-family: var(--f-serif); font-size: 1.22rem; line-height: 1.25; color: var(--ink); min-height: 1.25em; text-wrap: pretty; }
.sal-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.btn-listen .ic { width: 18px; height: 18px; }

/* Tarjeta de destino */
.dest-card {
  position: absolute; z-index: 14; left: calc(var(--gut) + 396px); bottom: 16px; width: min(560px, calc(100% - 32px));
  display: grid; grid-template-columns: 150px 1fr; border-radius: var(--r-md); overflow: hidden;
  background: var(--glass-hi); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: inset 0 0 0 1px var(--line-2), 0 30px 80px rgba(0,0,0,.65); animation: rise .45s var(--ease);
}
@keyframes rise { from { transform: translateY(20px); opacity: 0; } }
.dc-close { position: absolute; top: 10px; right: 10px; z-index: 2; }
.dc-media { position: relative; background: #000; min-height: 100%; }
.dc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; }
.dc-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 55%, rgba(16,24,27,.9)); }
.dc-media.unpaved { background: repeating-linear-gradient(135deg, #0D1517 0 12px, #111C1F 12px 24px); }
.dc-body { padding: 18px 20px 18px 18px; display: grid; gap: 8px; min-width: 0; }
.dc-name { margin: 0; padding-right: 36px; font-family: var(--f-display); font-weight: 400; font-size: 1.3rem; line-height: 1.2; letter-spacing: .04em; text-wrap: balance; }
.dc-q { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.15rem; line-height: 1.3; color: #D5E3E0; }
.dc-meta { margin: 0; font-size: var(--t-xs); color: var(--ink-2); letter-spacing: .04em; }
.dc-route { list-style: none; margin: 2px 0 4px; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; color: var(--ink-2); }
.dc-route li { display: flex; align-items: center; gap: 4px; }
.dc-route li + li::before { content: "›"; color: var(--ink-3); }
.dc-route li span { padding: 3px 7px; border-radius: 6px; background: rgba(150,215,205,.07); }
.dc-route li:last-child span { color: var(--teal-ink); background: var(--teal-hi); }
.dc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dc-actions .btn { min-height: 44px; font-size: var(--t-sm); padding: 0 18px; }

/* ---------------------------- Dock ---------------------------- */
.dock {
  position: relative; z-index: 30; display: flex; align-items: center; gap: 8px;
  padding: 8px var(--gut-r) calc(8px + env(safe-area-inset-bottom, 0px)) var(--gut);
  background: #080C0E; box-shadow: 0 -1px 0 var(--line);
}
.dock-main { display: flex; gap: 4px; margin: 0 auto; }
.dock-social { display: flex; gap: 2px; }
.dock-btn { display: flex; align-items: center; justify-content: center; gap: 9px; min-width: 48px; height: 48px; padding: 0 14px; border-radius: 12px; color: var(--ink-2); text-decoration: none; font-size: var(--t-sm); font-weight: 500; transition: .2s; }
.dock-btn .ic { width: 22px; height: 22px; }
.dock-btn:hover { color: var(--ink); background: rgba(150,215,205,.07); }
.dock-btn[aria-current="page"] { color: var(--teal-hi); background: rgba(31,191,174,.1); }
.dock-social .dock-btn { padding: 0 10px; }

/* =========================================================================
   SALA DEL DESTINO
   ========================================================================= */
.room { position: absolute; inset: 0; z-index: 20; background: var(--night); outline: none; }
/* Ilustración del destino: telón de fondo que se oscurece al bajar */
.room-cover { position: absolute; inset: 0; overflow: hidden; background: var(--night); }
.room-cover img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 50%; animation: kenburns 40s ease-in-out infinite alternate; transform-origin: 64% 55%; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.1); } }
.room-cover::after { content: ""; position: absolute; inset: 0; pointer-events: none; background:
  linear-gradient(90deg, rgba(5,8,10,.93) 0%, rgba(5,8,10,.62) 34%, rgba(5,8,10,0) 58%),
  linear-gradient(0deg, rgba(5,8,10,.85), rgba(5,8,10,0) 38%); }
.room-dim { position: absolute; inset: 0; z-index: 1; background: var(--night); opacity: var(--dim, 0); pointer-events: none; }
.room-scroll { position: absolute; inset: 0; z-index: 2; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.room-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 12px; padding: 12px var(--gut-r) 12px var(--gut);
  background: linear-gradient(rgba(5,8,10,.85), rgba(5,8,10,0)); }
.room-bar .btn { min-height: 42px; font-size: var(--t-sm); padding: 0 16px 0 10px; }
.room-trail { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; color: var(--ink-3); text-transform: uppercase; min-width: 0; }
.room-trail b { color: var(--ink-2); font-weight: 500; }

.room-inner { position: relative; width: min(1240px, 100%); margin: 0 auto; padding: 0 var(--gut-r) 80px var(--gut); display: grid; gap: 72px; }
.room-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; min-height: calc(100% - 80px); padding-top: 12px; }
.room-hero-copy { display: grid; gap: 22px; align-content: center; max-width: 600px; container-type: inline-size; min-width: 0; }
.room-hero > .player, .room-hero > .unpaved-box { justify-self: end; }
.room-hero .player-frame.v { height: min(62vh, 560px); }
.room-hero .player-frame.h { width: min(540px, 40vw); }
.room-hero .unpaved-box { max-width: 380px; background: rgba(5,8,10,.7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.room-name { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: min(clamp(2rem, 5.2vw, 4.4rem), calc(100cqi / (var(--lw, 8) * 1.02))); line-height: 1.02; letter-spacing: .01em; text-wrap: balance; color: var(--ink); text-shadow: 0 0 60px color-mix(in srgb, var(--zc) 35%, transparent); overflow-wrap: normal; hyphens: none; }
.room-q { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.5rem, 2.6vw, 2.3rem); line-height: 1.18; color: color-mix(in srgb, var(--zc) 40%, #fff); max-width: 24ch; text-wrap: balance; }
.room-intro { margin: 0; font-size: 1.08rem; line-height: 1.6; color: #C3D2CF; max-width: 54ch; }
.room-meta { display: flex; flex-wrap: wrap; gap: 10px 22px; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-2); letter-spacing: .06em; }
.room-meta b { color: var(--ink); font-weight: 500; }

/* Reproductor */
.player { display: grid; gap: 12px; justify-items: center; }
.player-frame { position: relative; width: 100%; border-radius: 18px; overflow: hidden; background: #000;
  box-shadow: 0 0 0 1px rgba(150,215,205,.18), 0 40px 100px rgba(0,0,0,.7), 0 0 80px color-mix(in srgb, var(--zc) 18%, transparent); }
.player-frame.v { aspect-ratio: 9 / 16; width: auto; height: min(68vh, 620px); max-width: 100%; }
.player-frame.h { aspect-ratio: 16 / 9; }
.player-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.player-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.player-poster { position: absolute; inset: 0; display: block; width: 100%; cursor: pointer; }
.player-poster:hover img { transform: scale(1.03); filter: brightness(1.08); }
.player-poster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0,0,0,.7)); }
.play-btn { position: absolute; z-index: 2; left: 50%; top: 50%; translate: -50% -50%; width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(5,8,10,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.6); color: #fff; transition: .25s; }
.play-btn .ic { width: 30px; height: 30px; margin-left: 4px; }
.player-poster:hover .play-btn { background: var(--teal); color: var(--teal-ink); box-shadow: 0 0 40px rgba(31,191,174,.7); }
.player-cap { position: absolute; z-index: 2; left: 16px; right: 16px; bottom: 14px; margin: 0; font-weight: 600; font-size: var(--t-sm); line-height: 1.35; text-shadow: 0 1px 8px rgba(0,0,0,.8); text-align: left; }
.player-switch { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(150,215,205,.06); box-shadow: inset 0 0 0 1px var(--line); }
.player-switch button { padding: 8px 14px; border-radius: 999px; font-size: var(--t-xs); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.player-switch button[aria-pressed="true"] { background: var(--ink); color: var(--night); }
.player-note { margin: 0; font-size: var(--t-xs); color: var(--ink-3); text-align: center; }
.player-note a { color: var(--ink-2); }
/* En inglés: aviso del audio doblado de YouTube */
.player-dub { display: flex; align-items: flex-start; gap: 8px; margin: 8px auto 0; max-width: 520px; padding: 8px 12px; border-radius: 12px;
  font-size: 12.5px; line-height: 1.45; color: var(--ink-2); background: rgba(31,191,174,.07); box-shadow: inset 0 0 0 1px rgba(95,227,208,.2); }
.player-dub .ic { width: 16px; height: 16px; flex: none; margin-top: 1px; color: var(--teal-hi); }
.player-dub b { color: var(--ink); font-weight: 600; }

/* Secciones de la sala */
.sec-h { display: flex; align-items: baseline; gap: 14px; margin: 0 0 22px; }
.sec-h h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: .9rem; letter-spacing: .28em; text-transform: uppercase; }
.sec-h p { margin: 0; font-family: var(--f-mono); font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .06em; }
.ctx { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ctx article { padding: 26px 28px; border-radius: var(--r-md); background: rgba(11,17,20,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 12px; align-content: start; }
.ctx h4 { margin: 0; font-family: var(--f-mono); font-weight: 500; font-size: var(--t-xs); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); display: flex; gap: 10px; align-items: center; }
.ctx article p { margin: 0; line-height: 1.65; color: #C9D6D3; max-width: 60ch; }
.ctx article.open p { font-family: var(--f-serif); font-size: 1.45rem; line-height: 1.3; color: var(--ink); }
.ctx-note { grid-column: 1 / -1; margin: 0; font-size: var(--t-xs); color: var(--ink-3); }

.reel { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(170px, 210px); gap: 14px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; }
.reel::-webkit-scrollbar { height: 6px; } .reel::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 3px; }

.vcard { position: relative; display: grid; gap: 10px; text-align: left; scroll-snap-align: start; cursor: pointer; }
.vcard-img { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden; background: #000; box-shadow: inset 0 0 0 1px var(--line); }
.vcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; filter: saturate(.9); }
.vcard:hover .vcard-img img { transform: scale(1.05); filter: saturate(1.1); }
.vcard-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,.6)); }
.vcard-badges { position: absolute; z-index: 2; left: 8px; right: 8px; bottom: 8px; display: flex; justify-content: space-between; gap: 6px; }
.vbadge { font-family: var(--f-mono); font-size: .64rem; letter-spacing: .04em; padding: 3px 7px; border-radius: 6px; background: rgba(0,0,0,.65); color: #fff; }
.vcard.is-playing .vcard-img { box-shadow: 0 0 0 2px var(--zc, var(--teal-hi)); }
.vcard-t { margin: 0; font-size: var(--t-sm); font-weight: 600; line-height: 1.35; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vcard-s { margin: -4px 0 0; font-family: var(--f-mono); font-size: .64rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }
.vcard-s i { width: 6px; height: 6px; border-radius: 50%; background: var(--zc); }

.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.lcard { position: relative; display: grid; gap: 10px; padding: 20px 22px; border-radius: var(--r-md); text-align: left; background: rgba(11,17,20,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: inset 0 0 0 1px var(--line); transition: .25s; overflow: hidden; }
.lcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--zc); opacity: .8; }
.lcard:hover { background: rgba(20,30,34,.9); box-shadow: inset 0 0 0 1px var(--line-2); transform: translateY(-2px); }
.lcard-img { display: block; margin: -20px -22px 4px; aspect-ratio: 16 / 7; overflow: hidden; background: #000; }
.lcard-img img { width: 100%; height: 100%; object-fit: cover; object-position: 64% 45%; transition: transform .6s var(--ease); }
.lcard:hover .lcard-img img { transform: scale(1.06); }
.lcard-n { margin: 0; font-family: var(--f-display); font-size: .95rem; letter-spacing: .06em; line-height: 1.25; }
.lcard-l { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.1rem; line-height: 1.3; color: var(--ink-2); }
.lcard-go { display: flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; color: var(--zc); }
.lcard-go .ic { width: 14px; height: 14px; }

.ask { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px 30px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(31,191,174,.14), rgba(11,17,20,.8) 60%); box-shadow: inset 0 0 0 1px rgba(95,227,208,.25); }
.ask .sal-avatar { width: 64px; height: 64px; }
.ask .sal-avatar svg { width: 36px; height: 36px; }
.ask h3 { margin: 0 0 6px; font-family: var(--f-serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.ask p { margin: 0; color: var(--ink-2); max-width: 60ch; }
/* Bitácora: lo que pasó en el coche */
.logs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.log { display: grid; gap: 12px; align-content: start; padding: 22px 22px 20px; border-radius: var(--r-md);
  background: rgba(11,17,20,.84); box-shadow: inset 0 0 0 1px var(--line); backdrop-filter: blur(8px); }
.log h4 { margin: 0; font-family: var(--f-serif); font-weight: 400; font-size: 1.35rem; line-height: 1.2; }
.log-sum { margin: 0; color: var(--ink-2); line-height: 1.6; }
.log-q { margin: 0; font-size: var(--t-sm); line-height: 1.55; }
.log-q b { display: block; font-family: var(--f-mono); font-size: .64rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 4px; }
.log-q.sal { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 12px 14px; border-radius: 12px;
  background: color-mix(in srgb, var(--zc, var(--teal)) 9%, transparent); box-shadow: inset 2px 0 0 var(--zc, var(--teal-hi)); }
.log-q.sal svg { width: 22px; height: 22px; color: var(--zc, var(--teal-hi)); margin-top: 2px; }
.log-q.sal p { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: 1.08rem; color: var(--ink); }
.log-q.sal b { font-style: normal; color: var(--zc, var(--teal-hi)); }
.log-q.you { padding: 0 14px; color: var(--ink-2); box-shadow: inset 2px 0 0 var(--line-2); }
.log-q.you b { color: var(--ink); }
.log-play { justify-self: start; min-height: 40px; padding: 0 16px 0 12px; font-size: var(--t-sm); }

/* Chat del destino */
.btn-chat { margin-left: auto; color: var(--zc, var(--teal-hi)); background: rgba(11,17,20,.7); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc, var(--teal)) 45%, transparent); backdrop-filter: blur(8px); }
.btn-chat:hover { background: rgba(20,30,34,.9); }
.chat-count:not(:empty) { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; display: inline-grid; place-items: center; font-family: var(--f-mono); font-size: .68rem; background: var(--zc, var(--teal)); color: var(--teal-ink); }
.chat { display: grid; gap: 16px; padding: 26px 28px 22px; border-radius: var(--r-lg); scroll-margin-top: 80px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--zc, var(--teal)) 12%, transparent), rgba(11,17,20,.88) 55%);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc, var(--teal)) 30%, transparent); backdrop-filter: blur(10px); }
.chat-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; }
.chat-head h3 { margin: 6px 0 0; font-family: var(--f-serif); font-weight: 400; font-size: 1.7rem; line-height: 1.2; }
.zdot.live { animation: rec 1.6s infinite; }
.chat-stats { margin: 0; font-size: var(--t-xs); color: var(--ink-3); letter-spacing: .06em; }
.chat-list { list-style: none; margin: 0; padding: 4px 4px 4px 0; display: grid; gap: 14px; align-content: start; max-height: 380px; min-height: 90px; overflow-y: auto; overscroll-behavior: contain; scroll-behavior: smooth; }
.chat-empty { color: var(--ink-2); font-size: var(--t-sm); padding: 18px; border-radius: var(--r-md); background: rgba(231,240,238,.04); box-shadow: inset 0 0 0 1px var(--line); }
.chat-msg { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; }
.chat-msg.new { animation: msgIn .4s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(8px); } }
.chat-av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .9rem;
  color: hsl(var(--h) 80% 85%); background: hsl(var(--h) 45% 22%); box-shadow: inset 0 0 0 1px hsl(var(--h) 60% 45% / .6); }
.chat-meta { margin: 0 0 2px; font-size: var(--t-sm); color: var(--ink-2); }
.chat-meta b { color: var(--ink); font-weight: 600; }
.chat-meta time { margin-left: 6px; font-family: var(--f-mono); font-size: .68rem; color: var(--ink-3); }
.chat-msg.mine .chat-meta b { color: var(--zc, var(--teal-hi)); }
.chat-body { margin: 0; color: #D3E0DD; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.chat-form { display: grid; grid-template-columns: 160px 1fr; gap: 10px; }
.chat-name, .chat-box { border-radius: 14px; background: rgba(5,8,10,.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.chat-name { min-width: 0; border: 0; color: var(--ink); font: inherit; padding: 0 14px; min-height: 48px; }
.chat-box { display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 4px 14px; }
.chat-box textarea { flex: 1; min-width: 0; border: 0; background: none; color: var(--ink); font: inherit; resize: none; padding: 11px 0; min-height: 40px; max-height: 140px; line-height: 1.4; }
.chat-name:focus, .chat-box:focus-within { outline: none; box-shadow: inset 0 0 0 1.5px var(--zc, var(--teal-hi)); }
.chat-box textarea:focus { outline: none; }
.chat-name::placeholder, .chat-box textarea::placeholder { color: var(--ink-3); }
.chat-send { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--zc, var(--teal)); color: var(--teal-ink); }
.chat-send:hover { filter: brightness(1.15); }
.chat-note { margin: 0; font-size: var(--t-xs); color: var(--ink-3); }
.chat-note b { color: var(--ink-2); }
@media (max-width: 760px) {
  .chat { padding: 20px 16px 16px; }
  .chat-form { grid-template-columns: 1fr; }
  .chat-head h3 { font-size: 1.4rem; }
  .btn-chat { padding: 0 12px 0 10px; }
}

.unpaved-box { display: grid; gap: 14px; padding: 28px; border-radius: var(--r-md); background: repeating-linear-gradient(135deg, rgba(150,215,205,.03) 0 14px, rgba(150,215,205,.07) 14px 28px); box-shadow: inset 0 0 0 1px var(--line-2); }
.unpaved-box p { margin: 0; color: #C9D6D3; }

/* Transición de llegada: la sala se abre desde el punto del mapa */
/* Camino prohibido: la imagen salta, pero velada (aún no estás despierto) */
.room.is-veiled .room-cover img { filter: blur(6px) brightness(.62) saturate(.75); animation: kenburns 40s ease-in-out infinite alternate, drowsy 7s ease-in-out infinite; }
@keyframes drowsy { 0%, 100% { filter: blur(6px) brightness(.62) saturate(.75); } 50% { filter: blur(3px) brightness(.72) saturate(.85); } }
.pz-dot { background: var(--z-forbidden) !important; box-shadow: 0 0 10px var(--z-forbidden) !important; }
.pz-hero .room-q { color: color-mix(in srgb, var(--zc) 40%, #fff); }
.pz-lock { justify-self: end; max-width: 400px; display: grid; gap: 12px; justify-items: start; padding: 28px; border-radius: var(--r-md);
  background: rgba(5,8,10,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--z-forbidden) 45%, transparent); }
.pz-lock p { margin: 0; }
.pz-lock-ic { width: 40px; height: 40px; }
.pz-lock-ic circle { fill: var(--z-forbidden); }
.pz-lock-ic rect { fill: #fff; }
.pz-lock-t { font-family: var(--f-serif); font-size: 1.9rem; line-height: 1.15; color: var(--ink); }
.pz-lock-s { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .1em; text-transform: uppercase; color: var(--z-forbidden); }
.pz-lock-lvl { font-size: var(--t-xs); letter-spacing: .06em; color: var(--ink-2); }
.pz-lock-lvl b { color: var(--z-imposible); font-weight: 500; }
.pz-lock-n { color: #C3D2CF; }
@media (prefers-reduced-motion: reduce) { .room.is-veiled .room-cover img { animation: none; } }

.room.opening { animation: iris .9s var(--ease) both; }
@keyframes iris { from { clip-path: circle(0 at var(--ox, 50%) var(--oy, 50%)); } to { clip-path: circle(150% at var(--ox, 50%) var(--oy, 50%)); } }
.room.opening .room-inner > * { animation: rise .8s var(--ease) both; }
.room.opening .room-inner > *:nth-child(2) { animation-delay: .08s; }
.room.closing { animation: fadeOut .35s ease both; }
@keyframes fadeOut { to { opacity: 0; transform: scale(1.02); } }

/* =========================================================================
   PANELES: archivo y conductor
   ========================================================================= */
.panel { position: absolute; inset: 0; z-index: 18; overflow-y: auto; overscroll-behavior: contain; background:
  radial-gradient(80% 50% at 80% 0%, rgba(31,191,174,.1), transparent 60%), var(--night); outline: none; animation: fadeIn .35s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.panel-inner { width: min(1240px, 100%); margin: 0 auto; padding: 22px var(--gut-r) 90px var(--gut); display: grid; gap: 34px; }
.panel-head { display: grid; gap: 14px; }
.panel-head h2 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.7rem, 4vw, 3rem); line-height: 1.05; }
.panel-head p { margin: 0; color: var(--ink-2); max-width: 62ch; font-size: 1.05rem; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchip { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; font-size: var(--t-sm); font-weight: 500; color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2); transition: .2s; }
.fchip i { width: 8px; height: 8px; border-radius: 50%; background: var(--zc, var(--ink-2)); }
.fchip:hover { color: var(--ink); }
.fchip[aria-pressed="true"] { color: var(--night); background: var(--ink); box-shadow: none; }

/* ---------- Propuestas (buzón de Sal) ---------- */
.ideas { display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: 28px; align-items: start; }
.idea-form { position: sticky; top: 12px; display: grid; gap: 10px; padding: 22px; border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(31,191,174,.08), rgba(9,15,17,.6)); box-shadow: inset 0 0 0 1px var(--line-2); }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 6px; border-radius: 14px; background: rgba(5,8,10,.7); box-shadow: inset 0 0 0 1px var(--line); }
.seg button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 10px; border-radius: 11px; color: var(--ink-2); font-size: var(--t-sm); font-weight: 600; transition: .2s; }
.seg button .ic { width: 17px; height: 17px; }
.seg button[aria-checked="true"] { color: var(--teal-ink); background: var(--teal-hi); }
.idea-l { font-family: var(--f-mono); font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.idea-text { min-height: 120px; padding: 12px 14px; border: 0; border-radius: 14px; resize: vertical; color: var(--ink); font: inherit; line-height: 1.45;
  background: rgba(5,8,10,.7); box-shadow: inset 0 0 0 1px var(--line-2); }
.idea-text:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--teal-hi); }
.idea-text::placeholder { color: var(--ink-3); }
.idea-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.idea-left { font-size: var(--t-xs); color: var(--ink-3); }
.idea-msg { margin: 0; min-height: 1.2em; font-size: var(--t-sm); color: var(--teal-hi); }
.idea-side { display: grid; gap: 14px; min-width: 0; }
.idea-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px 16px; flex-wrap: wrap; }
.idea-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.idea { display: grid; gap: 8px; padding: 16px 18px; border-radius: var(--r-md); background: rgba(9,15,17,.6); box-shadow: inset 0 0 0 1px var(--line); }
.idea.new { animation: msgIn .4s var(--ease); box-shadow: inset 0 0 0 1px rgba(95,227,208,.45); }
.idea-badge { justify-self: start; padding: 3px 9px; border-radius: 999px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; }
.idea-badge.pregunta { color: var(--teal-hi); background: rgba(31,191,174,.12); }
.idea-badge.destino { color: #E8B04A; background: rgba(232,176,74,.12); }
.idea-body { margin: 0; color: #D3E0DD; font-size: 1.02rem; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.idea .chat-meta { display: flex; align-items: center; gap: 8px; margin: 0; }
.idea .chat-meta time { margin-left: 0; }
.chat-av.sm { width: 22px; height: 22px; font-size: .7rem; }
@media (max-width: 860px) {
  .ideas { grid-template-columns: 1fr; }
  .idea-form { position: static; }
}
.fsearch { margin-left: auto; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border-radius: 999px; box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); min-width: min(260px, 100%); }
.fsearch input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--ink); font: inherit; }
.fsearch:focus-within { box-shadow: inset 0 0 0 1px var(--teal); }
.agrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 26px 16px; }
.empty { color: var(--ink-2); }

/* Conductor: dos asientos delanteros, el humano y Sal */
.about-head .lead { margin: 0; font-family: var(--f-serif); font-style: italic; font-size: clamp(1.3rem, 2.4vw, 1.9rem); line-height: 1.2; color: #D5E3E0; max-width: 34ch; text-wrap: balance; }
.seats { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); align-items: stretch; }
.seat { display: grid; grid-template-rows: auto 1fr; border-radius: 26px 26px var(--r-lg) var(--r-lg); overflow: hidden;
  background: linear-gradient(180deg, rgba(16,24,27,.9), rgba(8,12,14,.95)); box-shadow: inset 0 0 0 1px var(--line), 0 30px 80px rgba(0,0,0,.5); }
.seat-sal { box-shadow: inset 0 0 0 1px rgba(95,227,208,.22), 0 30px 80px rgba(0,0,0,.5), 0 0 80px -20px rgba(255,92,122,.25); }
.seat-media { position: relative; margin: 0; aspect-ratio: 4 / 4.2; overflow: hidden; background: #05080A; }
.seat-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 38%; } /* la foto ya viene etalonada (assets/img/conductor-sal.jpg) */
.seat-media::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(8,12,14,1) 0%, rgba(8,12,14,0) 34%), linear-gradient(120deg, rgba(31,191,174,.14), transparent 45%); }
.brain-media { background: radial-gradient(80% 70% at 50% 45%, rgba(31,191,174,.08), transparent 70%), #04070A; }
.brain-media::after { background: linear-gradient(0deg, rgba(8,12,14,1) 0%, rgba(8,12,14,0) 22%); }
.brain-media canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.seat-tag { position: absolute; z-index: 2; top: 14px; left: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px;
  font-size: .64rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: rgba(5,8,10,.65); box-shadow: inset 0 0 0 1px var(--line-2); backdrop-filter: blur(6px); }
.seat-tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--teal-hi); box-shadow: 0 0 8px var(--teal-hi); }
.brain-legend { position: absolute; z-index: 2; left: 0; right: 0; bottom: 12px; margin: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 14px; font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); }
.brain-legend span { display: inline-flex; align-items: center; gap: 6px; }
.brain-legend span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--zc); box-shadow: 0 0 6px var(--zc); }
.brain-legend span:last-child { color: var(--z-forbidden); }
.seat-body { display: grid; gap: 12px; align-content: start; padding: 4px 26px 26px; }
.seat-body h3 { margin: 0; font-family: var(--f-display); font-weight: 400; font-size: clamp(1.3rem, 2.2vw, 1.8rem); letter-spacing: .06em; text-transform: uppercase; }
.seat-sal .seat-body h3 { color: var(--teal-hi); letter-spacing: .4em; }
.kicker-sal { color: var(--teal-hi); }
.seat-body > p:not(.kicker) { margin: 0 0 6px; color: var(--ink-2); line-height: 1.6; }
.meter { display: grid; gap: 6px; }
.meter p { margin: 0; }
.meter-l { display: flex; justify-content: space-between; gap: 12px; font-size: var(--t-sm); color: var(--ink); }
.meter-l b { font-weight: 500; font-size: var(--t-xs); color: var(--ink-2); }
.meter-bar { display: block; height: 6px; border-radius: 999px; background: rgba(231,240,238,.08); overflow: hidden; }
.meter-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal), var(--teal-hi)); box-shadow: 0 0 10px rgba(95,227,208,.6); }
.meter.tilt .meter-bar i { background: linear-gradient(90deg, var(--z-real), var(--z-posible) 45%, var(--z-forbidden)); box-shadow: 0 0 12px rgba(255,92,122,.55); }
.meter-ends { display: flex; justify-content: space-between; gap: 12px; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .06em; color: var(--ink-3); }
/* Consola central entre los dos asientos */
.console { display: grid; grid-template-rows: 1fr auto 1fr; justify-items: center; align-items: center; gap: 10px; padding: 40px 0; }
.console span { width: 1px; height: 100%; background: linear-gradient(transparent, var(--line-2), transparent); }
.console svg { width: 28px; height: 28px; color: var(--teal-hi); filter: drop-shadow(0 0 10px rgba(95,227,208,.6)); animation: breathe 3.2s ease-in-out infinite; }
.about-more { display: grid; gap: 22px; max-width: 900px; }
.about-more > p { margin: 0; color: var(--ink-2); line-height: 1.6; }
.tone { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.tone li { padding: 7px 12px; border-radius: 999px; font-size: var(--t-sm); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--ink-2); }
.socials { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.social { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--r-md); text-decoration: none; background: rgba(11,17,20,.8); box-shadow: inset 0 0 0 1px var(--line); transition: .2s; }
.social:hover { box-shadow: inset 0 0 0 1px var(--teal); background: rgba(31,191,174,.08); }
.social .ic { width: 26px; height: 26px; color: var(--teal-hi); }
.social b { display: block; font-weight: 600; }
.social small { display: block; color: var(--ink-3); font-family: var(--f-mono); font-size: .68rem; letter-spacing: .04em; }
.fine { margin: 0; font-size: var(--t-xs); color: var(--ink-3); max-width: 70ch; }

/* =========================================================================
   RESPONSIVE
   ========================================================================= */
@media (max-width: 1180px) {
  .dest-card { left: var(--gut); bottom: 16px; z-index: 16; }
  .sal-card.dimmed { opacity: 0; pointer-events: none; }
}
@media (max-width: 900px) {
  .intro-copy { top: auto; bottom: calc(28px + env(safe-area-inset-bottom, 0px)); translate: none; left: var(--gut); right: var(--gut-r); width: auto; gap: 16px; }
  .dash-screen { display: none; }
  .mirror { width: clamp(150px, 46vw, 230px); }
  .intro-stats { gap: 22px; }
  .room-hero { grid-template-columns: 1fr; gap: 28px; min-height: 0; padding-top: 34vh; }
  .room-hero > .player, .room-hero > .unpaved-box { justify-self: center; }
  .room-hero > .pz-lock { justify-self: stretch; max-width: none; padding: 22px; }
  .pz-lock-t { font-size: 1.6rem; }
  .room-hero .player-frame.h { width: 100%; }
  .room-cover { bottom: auto; height: 60%; }
  .room-cover img { object-position: 66% 50%; }
  .room-cover::after { background: linear-gradient(0deg, rgba(5,8,10,1) 0%, rgba(5,8,10,.5) 30%, rgba(5,8,10,0) 60%); }
  .player-frame.v { height: min(70vh, 560px); }
  .ctx { grid-template-columns: 1fr; }
  .seats { grid-template-columns: 1fr; gap: 18px; }
  .console { display: none; }
  .seat-media { aspect-ratio: 4 / 3.6; }
  .ask { grid-template-columns: auto 1fr; }
  .ask .btn { grid-column: 1 / -1; justify-self: start; }
  .status-center, .mode-chip { display: none; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .hud-top { flex-wrap: wrap; top: 4px; }
  .navsearch { width: 100%; height: 48px; }
  .turn { width: 100%; }
  .zone-chips { margin: 0; width: 100%; justify-content: space-between; padding: 4px; }
  .zchip { padding: 0 3px; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .03em; height: 34px; gap: 4px; flex: 1; min-width: 0; justify-content: center; }
  .zchip i { width: 6px; height: 6px; }
  .map-ctrls { top: auto; bottom: 150px; translate: none; }
  .map-ctrls #zIn, .map-ctrls #zOut { display: none; }
  .sal-card { left: var(--gut); right: var(--gut-r); width: auto; bottom: 12px; padding: 12px 14px; grid-template-columns: auto 1fr; gap: 10px 12px; }
  .sal-card .btn-sal { padding: 0 12px; min-height: 40px; }
  .sal-actions { grid-column: 1 / -1; flex-wrap: nowrap; gap: 8px; }
  .sal-actions .btn { flex: 1; justify-content: center; }
  .sal-avatar { width: 42px; height: 42px; }
  .sal-avatar svg { width: 24px; height: 24px; }
  .sal-who { display: none; }
  .sal-msg { margin: 0; font-size: 1.05rem; }
  .dest-card { left: 0; right: 0; bottom: 0; width: 100%; grid-template-columns: 1fr; border-radius: 22px 22px 0 0; max-height: 78%; overflow: auto; }
  .dc-media { height: 150px; min-height: 0; }
  .dc-media img { object-position: 50% 54%; }
  .dc-actions .btn { white-space: nowrap; padding: 0 14px; }
  .dc-media::after { background: linear-gradient(180deg, transparent 40%, rgba(16,24,27,1)); }
  .dc-body { padding: 0 18px 18px; margin-top: -26px; position: relative; }
  .dc-actions .btn { flex: 1; justify-content: center; }
  .dock { gap: 0; padding-left: max(6px, env(safe-area-inset-left, 0px)); padding-right: max(6px, env(safe-area-inset-right, 0px)); }
  .dock-main { margin: 0; flex: 1; justify-content: space-around; }
  .dock-btn { flex-direction: column; gap: 3px; height: 54px; padding: 0 6px; font-size: .62rem; min-width: 56px; }
  /* seis accesos (Inicio … Conductor): se reparten el ancho */
  .dock { min-width: 0; max-width: 100vw; }
  .dock-main { min-width: 0; }
  .dock-main .dock-btn { flex: 1 1 0; min-width: 0; padding: 0 2px; }
  .dock-main .dock-btn span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .58rem; }
  .dock-btn .ic { width: 22px; height: 22px; }
  .dock-social { display: none; }
  .room-inner { gap: 52px; }
  .room-name { font-size: min(clamp(1.3rem, 6.2vw, 2rem), calc(100cqi / (var(--lw, 8) * 1.02))); }
  .room-bar .room-trail { display: none; }
  .reel { grid-auto-columns: 46%; }
  .agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 12px; }
  .fsearch { margin-left: 0; width: 100%; }
  .socials { grid-template-columns: 1fr; }
  .seat-body { padding: 4px 18px 20px; }
  .ask { padding: 22px; }
}
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .1em; font-size: .64rem; }
  .intro-actions { display: grid; grid-template-columns: 1fr; }
  .intro-actions .btn { justify-content: center; }
  .intro-stats { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 22px; }
  .intro-stats dt { font-size: .58rem; letter-spacing: .1em; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 2.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  /* sin movimiento: el monumento se queda quieto y visible */
  .vista img.on { animation-name: none !important; opacity: .95; transform: scale(.85); }
  .exit-sign.live { animation-name: none !important; opacity: 1; }
}

/* Camino prohibido desbloqueado (cerradura de símbolos abierta en este navegador) */
.pz-open .pz-top { stroke: var(--ic); stroke-dasharray: none; stroke-opacity: .7; }
.pz-open .pz-disc { stroke: var(--ic); stroke-dasharray: none; }
.pz-open .pz-sub { fill: var(--ic); }
.pz-open .pz-icon { opacity: 1; }

/* Cerradura de símbolos: anillas que se giran hasta formar la palabra */
.pz-lock-puzzle { max-width: 440px; }
.cryptex { display: flex; gap: 8px; padding: 12px 14px; border-radius: 14px; margin: 4px 0 0;
  background: linear-gradient(180deg, #0B1316, #05090B 50%, #0B1316);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--zc) 35%, transparent), inset 0 10px 18px rgba(0,0,0,.6), inset 0 -10px 18px rgba(0,0,0,.6); }
.cx-ring { display: grid; justify-items: center; gap: 4px; }
.cx-step { width: 44px; height: 24px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--ink-2); cursor: pointer; }
.cx-step svg { width: 12px; height: 8px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.cx-step:hover { color: var(--zc); background: rgba(255,255,255,.04); }
.cx-win { position: relative; width: 48px; height: 92px; padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: ns-resize;
  background: linear-gradient(90deg, #070C0E, #121C1F 50%, #070C0E); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.cx-win::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 30px; transform: translateY(-50%); pointer-events: none;
  border-block: 1px solid color-mix(in srgb, var(--zc) 55%, transparent); background: color-mix(in srgb, var(--zc) 10%, transparent); }
.cx-win::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, #05090B, transparent 34%, transparent 66%, #05090B); }
.cx-win:focus-visible { outline: 2px solid var(--zc); outline-offset: 2px; }
.cx-reel { position: absolute; left: 0; right: 0; top: 50%; display: grid; transform: translateY(-50%); }
.cx-reel b { height: 30px; display: grid; place-items: center; font-family: var(--f-display); font-size: 20px; font-weight: 500; letter-spacing: 0; color: var(--ink-2); opacity: .35; }
.cx-reel b:nth-child(3) { color: var(--ink); opacity: 1; text-shadow: 0 0 12px color-mix(in srgb, var(--zc) 70%, transparent); }
.cx-ring.tick .cx-reel { animation: cxTick .16s ease-out; }
@keyframes cxTick { from { transform: translateY(calc(-50% + 6px)); } to { transform: translateY(-50%); } }
.cx-msg { min-height: 1.2em; font-size: var(--t-xs); letter-spacing: .06em; color: var(--z-forbidden); }
.cx-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cx-hint { display: grid; gap: 10px; padding: 14px 16px; border-radius: 12px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--line-2); }
.cx-hint[hidden] { display: none; }
.cx-hint p { color: #C3D2CF; font-size: var(--t-sm); }
.pz-clue { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 0; border-radius: 10px; text-align: left; font: inherit; font-size: var(--t-sm);
  color: var(--ink); background: rgba(255,255,255,.04); cursor: pointer; }
.pz-clue .ic { flex: none; width: 14px; height: 14px; color: var(--zc); }
.pz-clue:hover { background: rgba(255,255,255,.08); }
.pz-lock-puzzle.nope .cryptex { animation: cxNope .4s ease; }
@keyframes cxNope { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
/* Acierto: las anillas se encienden y el sistema falla un momento (Sal se ha quedado parado) */
.pz-lock-puzzle.solving .cx-reel b:nth-child(3) { color: #fff; text-shadow: 0 0 14px var(--zc), 0 0 28px var(--zc); }
.pz-lock-puzzle.solving .cryptex { box-shadow: inset 0 0 0 1px var(--zc), 0 0 30px color-mix(in srgb, var(--zc) 45%, transparent); }
.pz-lock-puzzle.solving .cx-msg { color: var(--zc); }
.room.pz-glitch .room-cover img { animation: pzGlitch .9s steps(2) infinite; }
.room.pz-glitch .room-hero { animation: pzJitter .35s steps(2) infinite; }
@keyframes pzGlitch {
  0%   { filter: blur(6px) brightness(.62) hue-rotate(0deg); transform: translateX(0); }
  25%  { filter: blur(1px) brightness(1.1) hue-rotate(60deg) saturate(2); transform: translateX(-8px) skewX(2deg); }
  50%  { filter: blur(4px) brightness(.4) hue-rotate(-40deg); transform: translateX(6px); }
  75%  { filter: blur(0) brightness(1.3) contrast(1.4) hue-rotate(120deg); transform: translateX(-3px) skewX(-3deg); }
  100% { filter: blur(6px) brightness(.62); transform: translateX(0); } }
@keyframes pzJitter { 0% { transform: translate(0); } 50% { transform: translate(2px, -1px); } 100% { transform: translate(-2px, 1px); } }
/* Al abrirse, la ilustración se desenfoca hacia nítida */
.room.pz-revealed .room-cover img { animation: pzReveal 2.2s ease-out both; }
@keyframes pzReveal { from { filter: blur(10px) brightness(1.6) saturate(1.6); } to { filter: none; } }
@media (prefers-reduced-motion: reduce) {
  .room.pz-glitch .room-cover img, .room.pz-glitch .room-hero, .room.pz-revealed .room-cover img, .cx-ring.tick .cx-reel, .pz-lock-puzzle.nope .cryptex { animation: none; }
}
@media (max-width: 760px) {
  .cryptex { gap: 4px; padding: 10px; }
  .cx-win { width: 42px; }
  .cx-step { width: 40px; }
}

/* Móvil estrecho: la barra de arriba no cabe entera; fuera lo decorativo (wifi y hora) */
@media (max-width: 480px) {
  .status-right { gap: 10px; }
  .status-right > svg.ic, .status-right .wifi-wrap, .status-right #clock { display: none; }
}

/* Propuestas: cuaderno grande, de frente y recto, junto al título */
.ideas-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px 48px; align-items: center; }
.ideas-head-copy { display: grid; gap: 14px; align-content: center; }
.ideas-nb { display: block; width: 100%; max-width: 620px; justify-self: end; padding: 0; border: 0; background: none; cursor: pointer; border-radius: 14px;
  filter: drop-shadow(0 24px 40px rgba(0,0,0,.55)) drop-shadow(0 0 28px rgba(95,227,208,.08)); transition: transform .35s var(--ease); }
.ideas-nb svg { display: block; width: 100%; height: auto; }
.ideas-nb:hover { transform: translateY(-3px); }
.ideas-nb:focus-visible { outline: 2px solid var(--teal-hi); outline-offset: 6px; }
@media (max-width: 900px) {
  .ideas-head { grid-template-columns: minmax(0, 1fr); }
  .ideas-nb { justify-self: center; max-width: 520px; }
}
@media (prefers-reduced-motion: reduce) { .ideas-nb { transition: none; } .ideas-nb:hover { transform: none; } }
