/* Borrador «la central de los independientes» — el paseo calle adentro.
   Sin JS o con «reducir movimiento»: las paradas se leen de arriba abajo, cada una con su dibujo debajo (sin la clase .z).
   Con JS: html.z → la calle en un lienzo fijo y las paradas una detrás de otra en profundidad; calle.js las acerca con el scroll.
   Los estilos del texto de las paradas son los de unsipper.es (web/static/css/voyage.css), copiados aquí para no depender de ella. */
@font-face { font-family: "Manrope"; src: url("../fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }

:root {
  /* Colores de Central (D-47): verde botella con oro. El verde, para el fondo y lo que estructura (líneas, bordes, el logo);
     el oro, para la luz y lo que hay que leer en pequeño (--gold se llama así desde antes: es el color de acento). */
  --bg: #0b1612; --ink: #eef0e6; --soft: #c0c6b8; --muted: #8a9384; --gold: #d9b877; --gold-2: #e8cf9c;
  --green: #3f8a6e; --green-2: #7fc2a4;
  --line: rgb(63 138 110 / .6); --card: rgb(9 20 16 / .72);
  --ground: 84; /* la acera de la parada que tienes delante, en % del alto */
  --pad: clamp(1rem, 4vw, 3rem);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1rem/1.55 "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; overflow-x: clip; }
ul, ol { list-style: none; }
a { color: inherit; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--gold); color: #111; padding: .5rem .8rem; border-radius: .4rem; }
.skip:focus { top: 1rem; }

/* Cabecera */
.bar { position: fixed; inset: 0 0 auto 0; z-index: 30; display: flex; align-items: center; justify-content: space-between;
  padding: max(.9rem, env(safe-area-inset-top)) var(--pad) .9rem; pointer-events: none; }
.bar a { pointer-events: auto; }
.bar__logo { text-decoration: none; }
/* El logo de Central: nueve ventanas, la del centro encendida, y el nombre con «Unsipper» encima */
.clogo { display: inline-flex; align-items: center; gap: .6rem; }
.cmark { display: block; flex: none; width: 2.3rem; height: 2.3rem; overflow: visible; }
.cmark .off { fill: none; stroke: var(--green); stroke-width: 3.4; }
.cmark .on { fill: var(--gold-2); stroke: var(--gold-2); stroke-width: 3.4; filter: drop-shadow(0 0 5px rgb(232 207 156 / .75)); }
.clogo__txt { display: flex; flex-direction: column; line-height: 1; text-shadow: none; }
.clogo__txt small { font-size: .55rem; font-weight: 700; letter-spacing: .34em; text-transform: uppercase; color: var(--green-2); }
.clogo__txt b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.035em; color: var(--ink); margin-top: .2rem; }
/* El del cierre es el de la cabecera multiplicado por 1,85 exactamente: así, cuando el de arriba baja y crece hasta ese
   sitio (calle.js), coincide con él. */
.clogo--land { gap: 1.11rem; margin: 0 0 1.2rem; }
.clogo--land .cmark { width: 4.255rem; height: 4.255rem; }
.clogo--land small { font-size: 1.0175rem; } .clogo--land b { font-size: 2.775rem; margin-top: .37rem; }
.bar__logo { display: inline-block; transform-origin: 0 0; }   /* sin will-change: con él, al crecer se veía borroso */
html.z .clogo--land { visibility: hidden; }     /* en el paseo guarda el sitio: el logo que se ve es el de arriba, que baja hasta aquí */
.bar__talk { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; text-decoration: none;
  color: var(--gold); border: 1px solid var(--line); border-radius: 99px; padding: .55rem 1rem; backdrop-filter: blur(6px);
  background: rgb(9 20 16 / .35); transition: background .3s, color .3s; }
.bar__talk:hover, .bar__talk:focus-visible { background: var(--gold); color: #111; }

/* ---------- Texto de cada parada ---------- */
.kicker { display: flex; align-items: center; gap: .7rem; font-size: .74rem; font-weight: 700; letter-spacing: .26em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 1.1rem; }
.kicker .n { font-variant-numeric: tabular-nums; color: var(--muted); letter-spacing: .1em; }
.kicker .n::after { content: ""; display: inline-block; width: 1.6rem; height: 1px; background: var(--line); vertical-align: middle; margin-left: .7rem; }
h1, h2 { font-weight: 800; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4.9rem); max-width: 13ch; }
h2 { font-size: clamp(1.8rem, 3.5vw, 3.2rem); max-width: 17ch; }
.sub { margin-top: 1rem; font-size: clamp(1.2rem, 2.3vw, 1.95rem); font-weight: 300; color: var(--gold-2); }
.body { margin-top: 1.1rem; font-size: clamp(1rem, 1.3vw, 1.18rem); color: var(--soft); max-width: 36rem; text-wrap: pretty; }
.note { margin-top: .8rem; font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); opacity: .85;
  text-shadow: 0 1px 6px rgb(6 12 9 / .95), 0 0 14px rgb(6 12 9 / .8); }   /* se tiene que leer también de día, sobre la calle clara */
.hint { margin-top: 2.4rem; font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hint span { display: inline-block; color: var(--gold); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(.45rem); } }

.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1.2rem; max-width: 38rem; }
.duo li, .rules li { border-top: 1px solid var(--line); padding-top: .8rem; }
.duo b, .rules b { display: block; font-weight: 700; color: var(--ink); }
.duo span, .rules span { display: block; color: var(--soft); font-size: .95rem; margin-top: .2rem; }

.chat { margin-top: 1.3rem; display: grid; gap: .7rem; max-width: 34rem; }
.msg { padding: .8rem 1rem; border-radius: 1rem; font-size: .95rem; line-height: 1.45; background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(6px); }
.msg--you { border-bottom-right-radius: .25rem; margin-left: 2.5rem; }
.msg--ai { border-bottom-left-radius: .25rem; margin-right: 2.5rem; background: rgb(46 38 22 / .78); }
.msg__who { display: block; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); margin-bottom: .25rem; }

.checks { margin-top: 1.2rem; display: grid; gap: .45rem; }
.checks li { display: flex; gap: .7rem; align-items: baseline; color: var(--soft); }
.checks li::before { content: "✓"; color: var(--gold); font-weight: 800; }
.cleared { margin-top: .9rem; display: inline-block; align-self: flex-start; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: #111; background: var(--gold); padding: .4rem .75rem; border-radius: .3rem; text-shadow: none; }

.pipe { margin-top: 1.4rem; display: grid; grid-template-columns: repeat(5, 1fr); gap: .4rem; max-width: 40rem; position: relative; }
.pipe li { position: relative; padding-top: 1.4rem; font-size: .85rem; color: var(--soft); }
.pipe li::before { content: ""; position: absolute; top: .3rem; left: 0; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgb(201 168 106 / .15); }
.pipe li::after { content: ""; position: absolute; top: .62rem; left: .9rem; right: .2rem; height: 1px; background: var(--line); }
.pipe li:last-child::after { display: none; }
.pipe time { display: block; font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; }

.log { margin-top: 1.2rem; font: 400 .82rem/1.5 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; background: var(--card);
  border: 1px solid var(--line); border-radius: .6rem; padding: .8rem 1rem; max-width: 40rem; backdrop-filter: blur(6px); }
.log li { display: grid; grid-template-columns: 3.4rem 5.2rem 1fr; gap: .4rem; color: var(--soft); }
.log time { color: var(--muted); } .log code { color: var(--gold); font: inherit; }

.watch { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; max-width: 34rem; }
.watch li { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border: 1px solid var(--line); border-radius: .6rem; background: var(--card); font-size: .9rem; }
.watch li::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: #6fbf8e; box-shadow: 0 0 .6rem #6fbf8e; flex: none; }
.watch .w--flag::before { background: var(--gold); box-shadow: 0 0 .6rem var(--gold); animation: blink 1.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .25; } }

.tags { margin-top: 1.3rem; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 38rem; }
.tags li { border: 1px solid rgb(63 138 110 / .75); border-radius: 99px; padding: .42rem .9rem; font-size: .95rem; font-weight: 500; color: var(--ink); background: rgb(9 20 16 / .8); text-shadow: none; }

/* Parada con mucho contenido: antes de encoger el titular, se aprietan las etiquetas y los huecos (lo pone calle.js) */
.is-dense .tags { gap: .35rem; margin-top: .7rem; } .is-dense .tags li { font-size: .86rem; padding: .3rem .7rem; }
.is-dense .lines { margin-top: .7rem; gap: .2rem; } .is-dense .kicker { margin-bottom: .5rem; }

/* Los titulares pequeños: una línea cada uno, aparecen de uno en uno */
.lines { margin-top: 1.1rem; display: grid; gap: .3rem; max-width: 36rem; }
.lines li { font-size: clamp(1.2rem, 1.8vw, 1.6rem); font-weight: 600; letter-spacing: -.012em; line-height: 1.25; color: var(--ink); text-wrap: balance; }   /* al partir renglón, sin palabra suelta */
.lines li:last-child { color: var(--gold-2); }
.lines + .tags, .lines + .figs, .lines + .chat { margin-top: 1rem; }

/* Las horas del día: una línea por hora */
.day { margin-top: 1.2rem; display: grid; gap: .35rem; max-width: 34rem; }
.day li { display: grid; grid-template-columns: 4.2rem 1fr; align-items: baseline; font-size: clamp(1.05rem, 1.6vw, 1.4rem); font-weight: 600; line-height: 1.25; color: var(--ink); }
.day time { font-variant-numeric: tabular-nums; color: var(--gold-2); font-weight: 700; font-size: .85em; }

/* Los planes: tres tarjetas */
/* Uno debajo de otro también en ordenador: en tres columnas la descripción se partía en cuatro renglones */
.plans { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr; gap: .55rem; max-width: 34rem; text-shadow: none; }
.plans li { border: 1px solid rgb(63 138 110 / .75); border-radius: .7rem; background: rgb(9 20 16 / .86); padding: .75rem 1.1rem; backdrop-filter: blur(6px);
  display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: baseline; }
.plans li span { grid-column: 1 / -1; }
.plans li:last-child { border-color: var(--gold); }
.plans b { display: block; font-size: .86rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.plans strong { display: block; font-size: clamp(1.5rem, 2vw, 1.9rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); white-space: nowrap; }
.plans strong small { font-size: .46em; font-weight: 500; letter-spacing: 0; color: var(--soft); margin-left: .35em; }
.plans span { display: block; color: var(--ink); font-size: 1.08rem; font-weight: 500; line-height: 1.3; margin-top: .3rem; text-wrap: balance; }   /* si parte en dos renglones, que no deje una palabra suelta */

.figs { margin-top: 1.2rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem 1.2rem; max-width: 40rem; }
.figs li { border-top: 1px solid var(--line); padding-top: .6rem; }
.figs b { display: block; font-size: clamp(1.7rem, 2.6vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; color: var(--gold-2); font-variant-numeric: tabular-nums; }
.figs span { display: block; color: var(--soft); font-size: .88rem; line-height: 1.35; margin-top: .25rem; }

.big { margin-top: 1.1rem; display: grid; gap: .45rem; max-width: 34rem; }
.big li { font-size: clamp(1.15rem, 1.9vw, 1.65rem); font-weight: 700; letter-spacing: -.015em; line-height: 1.25; color: var(--soft); }
.big li:last-child { color: var(--gold-2); margin-top: .5rem; }

.rules { margin-top: 1.2rem; display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1.4rem; max-width: 44rem; counter-reset: r; }
.rules li { counter-increment: r; }
.rules b::before { content: counter(r, decimal-leading-zero) "  "; color: var(--gold); white-space: pre; }

.cta { margin-top: 1.6rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.cta__btn { display: inline-block; background: var(--gold); color: #111; font-weight: 800; letter-spacing: .04em; padding: .9rem 1.6rem; border-radius: 99px; text-shadow: none; }
.cta__btn[aria-disabled="true"] { opacity: .8; cursor: default; }
.cta__note { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); }

.landmark { display: block; width: min(19rem, 64vw); height: auto; margin: 0 0 1.3rem; }
.art { display: block; overflow: visible; }
.art text { font-family: "Manrope", system-ui, sans-serif; }

/* ---------- De arriba abajo (sin JS o con «reducir movimiento») ---------- */
.scene, .chart, .snap { display: none; }
.stop { position: relative; padding: 6.5rem var(--pad) 3rem; border-top: 1px solid rgb(255 255 255 / .05); overflow: hidden; }
.stop--hero { border-top: 0; }
.stop > .art { width: min(100%, 46rem); height: auto; margin-top: 2.2rem; }

/* ---------- Calle adentro ---------- */
html.z { scroll-snap-type: y proximity; }
html.z body { overflow-y: scroll; }
html.z .scene { display: block; position: fixed; inset: 0; z-index: 0; }
html.z .scene canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
html.z .walk { position: relative; z-index: 1; }
html.z .snap { display: block; height: var(--step, 90vh); scroll-snap-align: start; }
html.z .snap:last-of-type { height: 100vh; }
html.z .world { position: fixed; inset: 0; overflow: hidden; }
html.z .stop { position: absolute; inset: 0; padding: 0; border: 0; overflow: visible; visibility: hidden; pointer-events: none; will-change: transform, opacity; }
html.z .stop.is-here { pointer-events: auto; }
/* Un velo oscuro detrás del texto, para que la calle y las farolas no se metan entre las letras. Se sale de la pantalla por
   fuera para que no se le vea el borde cuando la parada llega pequeña desde el fondo de la calle. */
html.z .stop::before { content: ""; position: absolute; pointer-events: none; top: -100vh; bottom: -100vh; left: -100vw; right: 46vw;
  background: linear-gradient(90deg, rgb(6 12 9 / .86) 0, rgb(6 12 9 / .8) 86%, transparent); }
html.z .stop--izq::before { left: 46vw; right: -100vw; background: linear-gradient(270deg, rgb(6 12 9 / .86) 0, rgb(6 12 9 / .8) 86%, transparent); }
html.z .stop--land::before { left: -100vw; right: -100vw; bottom: 52%; background: linear-gradient(180deg, rgb(6 12 9 / .8) 0, rgb(6 12 9 / .7) 88%, transparent); }
html.z .stop__in { position: absolute; left: 6vw; width: 37vw; top: 13%; bottom: calc((100 - var(--ground)) * 1% + 6%); display: flex; flex-direction: column; justify-content: center; }
html.z .fit { transform-origin: 0 0; text-shadow: 0 1px 16px rgb(6 12 9 / .8); }
/* el dibujo, grande: llega hasta el borde de la pantalla */
html.z .stop > .art { position: absolute; margin: 0; right: 0; width: 54vw; height: 72%; bottom: calc((100 - var(--ground)) * 1% - 2.5%); }
/* mirando a la izquierda: el dibujo a la izquierda y el texto a la derecha */
html.z .stop--izq .stop__in { left: auto; right: 5vw; }
html.z .stop--izq > .art { right: auto; left: 0; }
html.z .stop--hero .stop__in { left: 8vw; width: 41vw; }
html.z .stop--land .stop__in { left: 18vw; width: 64vw; top: 7%; bottom: 57%; align-items: center; text-align: center; justify-content: flex-start; }
html.z .stop--land .fit { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
html.z .stop--land h2 { max-width: 20ch; }
html.z .stop--land .clogo--land { margin: 0 0 1rem; }
html.z .stop--land h2 { font-size: clamp(1.6rem, 2.9vw, 2.6rem); }
html.z .stop--land .cta { justify-content: center; }
html.z .stop--land > .art { right: auto; left: 27vw; width: 46vw; height: 40%; bottom: calc((100 - var(--ground)) * 1% - 1.5%); }

/* Aparición del contenido al llegar a cada parada */
html.z .fit > *, html.z .fit li, html.z .fit .cleared { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
html.z .stop.is-seen .fit > * { opacity: 1; transform: none; }
html.z .stop.is-seen .fit > :nth-child(2) { transition-delay: .08s; }
html.z .stop.is-seen .fit > :nth-child(3) { transition-delay: .16s; }
html.z .stop.is-seen .fit > :nth-child(4) { transition-delay: .24s; }
html.z .stop.is-seen .fit li, html.z .stop.is-seen .fit .cleared { opacity: 1; transform: none; transition-delay: calc(.35s + var(--d, 0) * .22s); }
html.z .stop--chat.is-seen .msg { transition-delay: calc(.4s + var(--d, 0) * .9s); }
html.quieto .fit > *, html.quieto .fit li, html.quieto .fit .cleared { transition: none !important; }   /* ?quieto: para las capturas */

/* Plano de la calle (abajo) */
html.z .chart { display: block; position: fixed; z-index: 20; left: var(--pad); right: var(--pad); bottom: max(1rem, env(safe-area-inset-bottom)); height: 1.6rem; }
html.z .chart::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px dashed rgb(63 138 110 / .6); }
html.z .chart ol { position: absolute; inset: 0; }
html.z .chart li { position: absolute; top: 0; height: 100%; transform: translateX(-50%); }
html.z .chart a { display: block; width: 1.6rem; height: 1.6rem; position: relative; }
html.z .chart a::before { content: ""; position: absolute; left: 50%; top: 50%; width: .45rem; height: .45rem; margin: -.225rem; border-radius: 50%; background: #2c5445; transition: background .3s, transform .3s; }
html.z .chart a.is-done::before { background: var(--gold); }
html.z .chart a:hover::before, html.z .chart a:focus-visible::before { transform: scale(1.7); background: var(--gold-2); }
html.z .chart a span { position: absolute; bottom: 1.9rem; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .68rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); background: rgb(9 20 16 / .8); padding: .25rem .5rem; border-radius: .3rem; opacity: 0; pointer-events: none; transition: opacity .2s; }
html.z .chart a:hover span, html.z .chart a:focus-visible span { opacity: 1; }
html.z .chart__me { position: absolute; top: 50%; width: .9rem; height: .9rem; margin: -.45rem; border-radius: 50%; border: 2px solid var(--gold-2); background: var(--bg); pointer-events: none; }

/* Móvil: el texto arriba y el dibujo abajo, de frente (sin girar la cabeza) */
@media (max-width: 760px) {
  :root { --ground: 90; }
  h2 { font-size: 1.6rem; } .kicker { margin-bottom: .6rem; } .body { font-size: 1rem; line-height: 1.5; margin-top: .7rem; }
  .note { margin-top: .55rem; font-size: .68rem; }
  .log { font-size: .7rem; padding: .6rem .7rem; } .watch li { padding: .5rem .7rem; font-size: .85rem; }
  .duo, .rules, .watch { grid-template-columns: 1fr; }
  /* en el móvil el velo va arriba, detrás del texto, y se deshace antes del dibujo */
  html.z .stop::before, html.z .stop--izq::before, html.z .stop--land::before { left: -100vw; right: -100vw; top: -100vh; bottom: 40%;
    background: linear-gradient(180deg, rgb(6 12 9 / .9) 0, rgb(6 12 9 / .86) 90%, transparent); }
  .plans { grid-template-columns: 1fr; gap: .4rem; margin-top: .8rem; } .plans li { display: grid; grid-template-columns: 1fr auto; column-gap: .8rem; align-items: baseline; padding: .5rem .85rem; }
  .plans b { font-size: .9rem; } .plans strong { margin-top: 0; font-size: 1.4rem; } .plans span { grid-column: 1 / -1; font-size: 1.08rem; margin-top: .25rem; }
  .lines li { font-size: 1.3rem; } .day li { font-size: 1.12rem; grid-template-columns: 3.7rem 1fr; }
  .tags li { font-size: .98rem; padding: .4rem .85rem; } .kicker { font-size: .72rem; }
  .figs { grid-template-columns: 1fr 1fr; gap: .6rem 1rem; } .figs b { font-size: 1.5rem; } .figs span { font-size: .8rem; }
  .rules { gap: .45rem; } .rules li { padding-top: .45rem; } .rules span { font-size: .85rem; margin-top: 0; } .big li { font-size: 1.1rem; }
  .pipe li { font-size: .7rem; }
  .log li { grid-template-columns: 2.9rem 1fr; } .log code { display: none; }
  .chat { gap: .5rem; } .msg { font-size: .86rem; padding: .6rem .8rem; }
  html.z .stop__in, html.z .stop--izq .stop__in, html.z .stop--hero .stop__in { left: 1rem; right: 1rem; width: auto; top: 5.2rem; bottom: 50%; justify-content: flex-start; }
  /* el dibujo, más alto: llena el ancho y se recorta por los lados (calle.js pone qué lado se conserva) */
  html.z .stop > .art, html.z .stop--izq > .art { left: 0; right: 0; width: 100%; height: 38%; bottom: calc((100 - var(--ground)) * 1% - 1.2%); overflow: hidden; }
  html.z .stop--land .stop__in { left: 1rem; right: 1rem; width: auto; top: 5.2rem; bottom: 45%; }
  html.z .stop--land > .art { left: 0; width: 100%; height: 30%; }
  html.z .chart a span { display: none; }
}
@media (max-height: 620px) and (min-width: 761px) { html.z .stop__in { top: 11%; } .body { font-size: 1rem; } }
