/* CargoX · artículo 3 «Un flete, sin rodeos.» (28-sep-2026). Dirección: DIRECCION-EDITORIAL-28 + STORYBOARD-3.
   Tema NOCHE (#121316, tinta cálida #F7F7F4, gris #8A8B90, suave #595B61; tokens de la app y del BRIEF T5).
   Rojo rgb(229,36,63): máximo DOS piezas por pantalla en reposo (portada: flecha + sticker → la flecha vuela y se vuelve el disco B,
   el sticker se asienta junto a B; 01: el pin y el B de las capturas; 02: ninguna; 04: el sticker, y el disco B con la frase
   completa). Nunca texto rojo sobre la noche.
   Cada pieza es una animación EN PAUSA cuyo instante sale de --cv (portada), --e (entrada) o --t (plano fijo); lo que depende
   de medidas (el nudo, los tiradores que viajan, la flecha que vuela a B, la selección del 02, la cámara) lo escribe el JS en
   transform. El estado BASE es el de lectura: sin JS, con movimiento reducido y en pantallas bajas todo se lee quieto. */

:root {
  --fondo: #121316; --tinta: #F7F7F4; --gris: #8A8B90; --suave: #595B61; --texto2: #B9BAB6; --rojo: rgb(229, 36, 63); --sobre-rojo: #FFFFFF;
  --tarj: #1A1B1F; --ret: rgba(247, 247, 244, .04); --selbg: rgba(247, 247, 244, .14); --tiro: #A6A7AB; --gis: rgba(247, 247, 244, .88);
  --f-disp: 'Space Grotesk', 'Inter', system-ui, sans-serif; --f-txt: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --f-marca: 'Michroma', 'Space Grotesk', system-ui, sans-serif;
  --xo: cubic-bezier(.16, 1, .3, 1); --io: cubic-bezier(.65, 0, .35, 1); --rb: cubic-bezier(.34, 1.35, .64, 1);
  --gut: 20px;
  --fs-arr: clamp(15px, min(4.6vw, 2.6svh), 21px);
  --fs-h1: clamp(52px, min(17.25vw, 9.9svh), 106px);
  --fs-rem: clamp(28px, min(9vw, 5.2svh), 58px);
  --fs-frase: clamp(30px, 9.4vw, 60px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--fondo); color: var(--tinta); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.7 var(--f-txt); background: var(--fondo); overflow-x: clip; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
a, button { -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--tinta); outline-offset: 3px; border-radius: 10px; }
p, h1, h2, h3, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
s { text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
[hidden]:not([hidden="until-found"]) { display: none !important; }   /* los controles que necesitan JS no se ven sin él */

/* ------------------------------------------------------------ marco: retícula (ref1), cabecera corrida y firma */
.esc {
  position: relative; overflow-x: clip;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(12.5% - .5px), var(--ret) calc(12.5% - .5px) calc(12.5% + .5px), transparent calc(12.5% + .5px) 25%),
    var(--fondo);
}
.marco, .marco-l { position: relative; padding: 0 max(var(--gut), calc((100% - 600px) / 2)); }
.marco { min-height: 100svh; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.marco > :not(.foto), .marco-l > * { position: relative; z-index: 1; }
.cab, .pie { display: flex; align-items: center; justify-content: space-between; gap: 12px; font: 500 13px/1.3 var(--f-txt); color: var(--gris); }
.cab { min-height: 60px; padding-top: env(safe-area-inset-top); }
.cab-f { display: flex; align-items: center; white-space: nowrap; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.barra { display: inline-block; flex: none; width: 1.5px; height: 1.15em; background: var(--gris); margin-right: 9px; transform-origin: 50% 100%; }
.cab-n { display: inline-flex; align-items: center; gap: 2px; color: var(--tinta); white-space: nowrap; font: 500 14px/1 var(--f-txt); font-variant-numeric: tabular-nums; }
.cab-fin { color: var(--gris); }
.cab-b { display: inline-grid; place-items: center; width: 44px; height: 44px; margin-right: -12px; border: 0; background: none; border-radius: 50%; cursor: pointer; }
.fc { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pie { min-height: 64px; padding-bottom: max(10px, env(safe-area-inset-bottom)); }
.firma { display: inline-flex; align-items: center; gap: 7px; border: 1px solid rgba(247, 247, 244, .28); border-radius: 999px; padding: 6px 13px 6px 9px; color: var(--tinta); white-space: nowrap; }
.iso { width: 15px; height: 13px; fill: var(--tinta); }
.marca { font: 400 10.5px/1 var(--f-marca); letter-spacing: .1em; }
.by { font: 500 11px/1 var(--f-txt); color: var(--texto2); }
.pie-d { font-size: 12px; text-align: right; }
@media (max-width: 359px) { .pie-d { display: none; } }

.cuerpo { display: flex; flex-direction: column; min-height: 0; }
.pila { position: relative; margin: auto 0; width: 100%; padding: 8px 0 18px; }

/* la foto aérea de la app: detrás, apagada y enmascarada bajo el texto; la retícula encima de ella, nunca encima del texto */
.foto { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, .12) 34%, rgba(0, 0, 0, .12) 76%, rgba(0, 0, 0, .6) 100%);
  mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 18%, rgba(0, 0, 0, .12) 34%, rgba(0, 0, 0, .12) 76%, rgba(0, 0, 0, .6) 100%); }
.foto img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: .14; filter: grayscale(1) contrast(1.05); }
.foto::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, transparent 0 calc(12.5% - .5px), var(--ret) calc(12.5% - .5px) calc(12.5% + .5px), transparent calc(12.5% + .5px) 25%); }

/* ------------------------------------------------------------ titular: tiempo · arranque con selección (ref1) · remate en dos tonos */
.tiempo { font: 600 12px/1 var(--f-txt); letter-spacing: .2em; text-transform: uppercase; color: var(--gris); margin-bottom: 14px; }
.tit { position: relative; }
.arr { display: block; text-wrap: balance; font: 500 var(--fs-arr)/1.34 var(--f-txt); letter-spacing: -.012em; color: var(--tinta); margin-bottom: .6em; max-width: 26ch; }
.rem { display: block; font: 700 var(--fs-rem)/1.02 var(--f-disp); letter-spacing: -.045em; text-wrap: balance; }
.g { color: var(--gris); }
.b { color: var(--tinta); }
.rem .g, .rem .b { display: block; text-wrap: balance; }
.sub { font: 400 clamp(17px, 5.2vw, 21px)/1.4 var(--f-txt); color: var(--texto2); margin-top: 16px; max-width: 30ch; text-wrap: pretty; }

.sel { background: linear-gradient(var(--selbg), var(--selbg)) 0 0 / 100% 100% no-repeat; padding: .03em .06em .06em; border-radius: 2px; color: var(--tinta);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h { display: inline-block; position: relative; width: 1.5px; height: 1.22em; background: var(--tiro); vertical-align: -.26em; margin: 0 .07em; }
.h::after { content: ""; position: absolute; left: 50%; width: 7px; height: 7px; margin-left: -3.5px; border-radius: 50%; background: var(--tiro); }
.ha::after { top: -5px; }
.hb::after { bottom: -5px; }
/* selección de caja (dentro de una captura o alrededor de una pieza): fondo tenue y los dos tiradores en sus bordes */
.sel-od, .sel-man, .selu, .hu-s { position: absolute; padding: 0; border-radius: 3px; background: var(--selbg); }
:is(.sel-od, .sel-man, .selu, .hu-s) .h { position: absolute; top: 0; bottom: 0; height: auto; margin: 0; }
:is(.sel-od, .sel-man, .selu, .hu-s) .ha { left: -1px; }
:is(.sel-od, .sel-man, .selu, .hu-s) .hb { right: -1px; }

.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .14em .03em .16em; margin: -.14em -.03em -.16em; }
.w > span { display: inline-block; }
/* el tachón de gis (ref1): sale del trazo de la app, con grano; tacha palabra por palabra como una sola pasada */
.tw { position: relative; display: inline-block; }
/* (un SVG absoluto con width:auto toma su ancho intrínseco, no left/right: el ancho se da explícito, por palabra) */
.tach { position: absolute; left: -.08em; top: 46%; height: .2em; width: calc(100% + .42em); overflow: visible; pointer-events: none; }
.tach.ult { width: calc(100% + .14em); }
.tach path { fill: none; stroke: var(--gis); stroke-width: 4.4; stroke-linecap: round; filter: url(#grano); stroke-dasharray: 1; stroke-dashoffset: 0; }
/* r9 · el subrayado de gis de ref1 bajo la palabra clave (una pasada y el remate de vuelta); gris de gis, nunca rojo */
.subr { position: absolute; left: -.02em; top: 93%; width: calc(100% - .1em); height: .3em; overflow: visible; pointer-events: none; }
.subr path { fill: none; stroke: #B9BAB6; stroke-width: 3.6; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: url(#grano); stroke-dasharray: 1; stroke-dashoffset: 0; }

.lat { display: flex; flex-direction: column; gap: 2px; font: 500 14px/1.45 var(--f-txt); color: var(--gris); }
.lat i { font-style: normal; color: var(--suave); font-weight: 400; margin-right: 2px; }
.lat-d { align-items: flex-end; text-align: right; margin-bottom: 14px; }
.lat-i { align-items: flex-start; margin-top: 14px; }
@media (max-width: 359px) { .lat { display: none; } }
/* a 320 no hay laterales: el sticker asentado junto a B necesita su propio renglón antes del subtítulo */
@media (max-width: 359px) { .fija #e00 .sub { margin-top: 64px; } }

/* capturas reales de la app: una pantalla, no una ilustración */
.cap { position: relative; display: block; overflow: hidden; border-radius: 14px; border: 1px solid rgba(247, 247, 244, .1); background: #151619; }
.cap-i { width: 100%; height: auto; }

/* ------------------------------------------------------------ portada · el nudo que se jala */
#e00 .pila { padding-top: 4px; }
.tit-w { position: relative; }
.tit-w .arr { position: relative; }
.flr { position: absolute; left: -.12em; top: -2.3em; width: 2.1em; height: 2.1em; fill: none; stroke: var(--rojo); stroke-width: 6.5; stroke-linecap: square; transform-origin: 50% 50%; }
.h1 { font: 700 var(--fs-h1)/.96 var(--f-disp); letter-spacing: -.05em; }
.h1 .g, .h1 .b { display: block; }
.hilo { position: relative; height: 84px; margin-top: 6px; }
@media (min-width: 1024px) { .hilo { height: 112px; } }
.hilo-s, .recta-s, .medio-s { position: absolute; left: 13px; right: 13px; top: 0; width: calc(100% - 26px); height: 100%; overflow: visible; }
.nudo { fill: none; stroke: var(--gis); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; filter: url(#grano); }
/* los discos A y B (los de la app: A oscuro con aro, B rojo, letra blanca) */
.dsc { position: absolute; width: 26px; height: 26px; top: calc(70% - 13px); z-index: 2; }
.dsc-a { left: 0; } .dsc-b { right: 0; }
.dsc-c { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--tinta); background: #1C1D21; transform-origin: 50% 50%; }
.dsc-b .dsc-c { border-color: var(--rojo); background: var(--rojo); }
.dsc b { font: 700 12px/1 var(--f-txt); color: #FFFFFF; }
.dsc-c.punto { background: var(--tiro); border-color: var(--tiro); }
.dsc-b .dsc-c.aro { background: rgb(229 36 63 / var(--lleno, 1)); }
.dsc-b .dsc-c.aro.punto { background: var(--tiro); }
.dsc-bar { position: absolute; left: 12.25px; width: 1.5px; height: 1.9em; background: var(--tiro); opacity: 0; }
.dsc-a .dsc-bar { top: 13px; } .dsc-b .dsc-bar { bottom: 13px; }
/* la X por piezas: el galón viaja de A hacia B y las aspas la cierran junto a B */
.xv { position: absolute; width: 36px; height: 31.3px; top: calc(70% - 15.65px); right: 34px; z-index: 1; pointer-events: none; }
.xp { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--tinta); overflow: visible; }
/* en reposo el sticker muerde sólo el pie del hilo (ref2): bajo la recta del nudo (70 % del alto), a la derecha, sin tapar letras ni rizos */
.tit-w { --stk-y: calc(6px + 84px * .7 + 3px); }
@media (min-width: 1024px) { .tit-w { --stk-y: calc(6px + 112px * .7 + 3px); } }
.stk { position: absolute; right: 22px; top: calc(100% + var(--stk-y)); z-index: 3; transition: rotate 260ms var(--xo); min-height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: var(--rojo); color: var(--sobre-rojo);
  font: 700 16px/1 var(--f-txt); letter-spacing: -.01em; rotate: -4deg; cursor: pointer; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
#e00 .sub { margin-top: 18px; }
html:not(.fija) .stk { display: none; }
.stk.quieta { rotate: -2deg; }   /* sin fijación no hay hilo que jalar: el control no existe */

/* ------------------------------------------------------------ 01 · Ruta */
.tiempos { position: relative; }
.tmp { position: relative; }
.tmp-b { margin-top: 56px; }
.cap-piq { max-width: min(356px, calc(100% - 26px)); margin-top: 18px; }
.tec { position: absolute; left: 11.2%; top: 11%; width: 7.6%; height: 7%; }
.tec-m { position: absolute; inset: 0; background: #151619; transform-origin: 100% 50%; transform: scaleX(0); }
.tec-c { position: absolute; inset: 0; transform: none; opacity: 0; }
.tec-c > i { position: absolute; right: -3px; top: 6%; bottom: 6%; width: 2px; background: var(--tinta); }
.fm { position: absolute; left: 0; right: 0; background: #151619; transform-origin: 50% 100%; transform: scaleY(0); }
.fm1 { top: 51.8%; height: 21.4%; } .fm2 { top: 73.2%; height: 26.8%; }
.prueba { display: none; }
.js .prueba { display: block; }
.prueba { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 3; }
.prueba path { fill: none; stroke: var(--tinta); stroke-width: 1.2; stroke-dasharray: 1; stroke-dashoffset: 0; }
.prueba circle { fill: var(--tinta); transform-box: fill-box; transform-origin: 50% 50%; }
.caps-b { display: grid; gap: 10px; margin-top: 18px; }
.cap-map { height: clamp(110px, 22svh, 200px); max-width: min(356px, calc(100% - 26px)); }
.cap-map .cap-i { width: 100%; height: 100%; object-fit: cover; object-position: 55% 50%; }
.cap-od { width: min(100%, 242px); }
.sel-od { left: 14.6%; top: 29%; width: 44.6%; height: 9.6%; transform-origin: 0 50%; }

/* ------------------------------------------------------------ 02 · Ya lo sabes: dos renglones, cada uno con su prueba */
.flota { position: relative; margin-top: 16px; }
.rot-ej { font: 500 13px/1.3 var(--f-txt); color: var(--gris); margin-bottom: 30px; }
.unis { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-width: 560px; }
.u { position: relative; display: flex; flex-direction: column; min-width: 0; }
.u-s { position: relative; display: grid; aspect-ratio: 2 / 1; border-radius: 6px; }
.sil { grid-area: 1 / 1; width: 100%; height: 100%; overflow: visible; }
.sil-t g { fill: none; stroke: var(--gris); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.sil-m { opacity: 0; }
.sil-m g { fill: var(--tinta); }
.sil-m .cx-ut-vidrio, .sil-m .cx-ut-rin { fill: var(--fondo); }
.u-el .sil-m { opacity: 1; }
.u-el .sil-t { opacity: 0; }
.u-el .u-s { background: var(--selbg); }
.piso { position: absolute; left: -5px; right: -5px; top: 87.5%; height: 8px; width: calc(100% + 10px); overflow: visible; }
.piso path { fill: none; stroke: var(--gis); stroke-width: 2.2; stroke-linecap: round; filter: url(#grano); stroke-dasharray: 1; stroke-dashoffset: 0; }
.pill { position: absolute; left: 50%; top: -27px; translate: -50% 0; z-index: 2; font: 600 11.5px/1 var(--f-txt); color: var(--tinta); background: #25262B; border: 1px solid rgba(247, 247, 244, .22); border-radius: 999px; padding: 5px 9px; white-space: nowrap; }
.u-cap { margin-top: 12px; font: 500 13.5px/1.35 var(--f-txt); color: var(--gris); }
.u-cap b { font-weight: 600; color: var(--tinta); margin-right: 6px; }
.camb .tu { color: var(--texto2); font-style: italic; }
.selu { left: 0; top: 0; width: 0; height: 0; opacity: 0; z-index: 0; }
.rem2 { margin-top: 28px; }
.medio { position: relative; height: 98px; margin-top: 12px; max-width: 560px; }
.medio .dsc { top: calc(50% - 13px); }
.medio-s { top: calc(50% - 5px); height: 10px; }
.medio-s path { fill: none; stroke: var(--gis); stroke-width: 2.4; stroke-linecap: round; filter: url(#grano); stroke-dasharray: 1; stroke-dashoffset: 0; }
.dsc-o .dsc-c { background: var(--fondo); border-color: var(--tinta); }
.dsc-o b { color: var(--tinta); }
.md-c { position: absolute; left: 0; right: 0; top: 12px; text-align: center; font: 600 15px/1.2 var(--f-txt); color: var(--tinta); }
.md-p { position: absolute; top: calc(50% + 18px); display: flex; flex-direction: column; font: 13px/1.25 var(--f-txt); }
.md-p b { font-weight: 600; color: var(--tinta); font-size: 14px; }
.md-p i { font-style: normal; color: var(--gris); }
.md-pa { left: 0; } .md-pb { right: 0; text-align: right; align-items: flex-end; }
#e02 .sub { margin-top: 24px; }
@media (max-width: 719px) { .unis { grid-template-columns: 1fr 1fr; gap: 30px 22px; max-width: 310px; } }

/* los trazos a mano de la app (ref2): el óvalo y la flechita, dibujados con stroke-dasharray */
.ov-w { position: relative; display: inline-block; padding: 12px 22px; }
.ov { position: absolute; inset: -4px -6px; width: calc(100% + 12px); height: calc(100% + 8px); overflow: visible; pointer-events: none; }
.ov path { fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ov-b path { stroke: var(--tinta); }
.ov-t, .nota-t { position: relative; font: 500 14px/1.3 var(--f-txt); color: var(--tinta); white-space: nowrap; }
.fl { width: 46px; height: 38px; flex: none; overflow: visible; }
.fl path { fill: none; stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; vector-effect: none; stroke-dasharray: 1; stroke-dashoffset: 0; }
.fl-b path { stroke: var(--tinta); }

/* ------------------------------------------------------------ 04 · Tu flete: el nodo (ref4), la nota, la bandeja */
.libre .marco-l { padding-bottom: 24px; }
#e04 .marco-l { padding-bottom: 8px; }
.libre .tit { margin-top: 6px; }
.rot-ej4 { margin: 22px 0 0; }
.js .rot-ej4 { display: none; }
.nodo { position: relative; height: 420px; margin-top: 26px; }
.nodo::before { content: ""; position: absolute; inset: -18px -8px; z-index: 0; pointer-events: none;
  background-image: radial-gradient(circle at 1.5px 1.5px, rgba(247, 247, 244, .2) 1.2px, transparent 1.7px); background-size: 16px 16px;
  -webkit-mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 45%, transparent 100%); mask-image: radial-gradient(ellipse 78% 70% at 50% 42%, #000 45%, transparent 100%); }
.con { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; z-index: 0; }
.cn-g { fill: none; stroke: var(--suave); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.cn-s { fill: none; stroke: var(--tinta); stroke-width: 1.6; vector-effect: non-scaling-stroke; }
.js .cn-s { opacity: 0; transition: opacity 320ms var(--io); }
.js .cn-s.on { opacity: 1; }
.nx { position: absolute; left: calc(50% - 32px); top: 0; width: 64px; height: 64px; z-index: 1; display: grid; place-items: center; border-radius: 17px;
  background: #1C1D22; border: 1px solid rgba(247, 247, 244, .16); box-shadow: 0 0 28px rgba(247, 247, 244, var(--glow, .6)), inset 0 1px 0 rgba(247, 247, 244, .08); transition: box-shadow 240ms var(--xo); }
.js .nx { --glow: .42; }
.js .nx.lleno { --glow: .75; }
.nx-x { width: 30px; height: 26px; fill: var(--tinta); filter: drop-shadow(0 0 6px rgba(247, 247, 244, .55)); }
.tj { position: absolute; z-index: 1; width: 48%; min-height: 136px; display: flex; flex-direction: column; text-align: left; padding: 12px 14px 12px; border-radius: 16px;
  background: var(--tarj); border: 1px solid rgba(247, 247, 244, .12); color: var(--tinta); box-shadow: 0 10px 30px rgba(0, 0, 0, .28); }
button.tj { cursor: pointer; font: inherit; transition: border-color 180ms var(--xo), background-color 180ms var(--xo); }
button.tj[aria-expanded="true"] { border-color: rgba(247, 247, 244, .6); background: #202126; }
.tj-ruta { left: 0; top: 104px; } .tj-carga { right: 0; top: 124px; } .tj-fecha { left: 26%; top: 276px; }
.tj-h { display: flex; align-items: center; gap: 9px; padding-bottom: 9px; border-bottom: 1px solid rgba(247, 247, 244, .1); }
.tj-n { position: relative; display: grid; place-items: center; width: 28px; height: 28px; flex: none; font: 600 11px/1 var(--f-txt); color: var(--texto2); font-variant-numeric: tabular-nums; }
.tj-c { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.tj-cg { fill: none; stroke: var(--gris); stroke-width: 1.3; stroke-dasharray: 3 3; }
.tj-cs { fill: var(--tinta); opacity: 0; }
.tj-ok { fill: none; stroke: var(--fondo); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.tj-n > span { position: relative; }
.tj.ok .tj-cs { opacity: 1; } .tj.ok .tj-ok { stroke-dashoffset: 0; } .tj.ok .tj-n > span { opacity: 0; } .tj.ok .tj-cg { opacity: 0; }
.tj-t { font: 600 16px/1.2 var(--f-txt); }
.tj-e { font: 500 12.5px/1.3 var(--f-txt); color: var(--gris); margin-top: 8px; }
.tj-v { display: block; margin-top: 4px; min-height: 2.16em; font: 700 clamp(19px, 5.4vw, 23px)/1.08 var(--f-disp); letter-spacing: -.02em; color: var(--tinta); overflow-wrap: anywhere; }
.tj-v.vacio { color: var(--suave); }
.pto { position: absolute; z-index: 1; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; background: var(--suave); transition: background-color 200ms; }
.pto.on { background: var(--tinta); }
.pto-ruta { left: 24%; top: 104px; } .pto-carga { left: 76%; top: 124px; } .pto-fecha { left: 50%; top: 276px; }

.nota { display: none; min-height: 78px; align-items: center; justify-content: center; gap: 4px; margin-top: 12px; pointer-events: none; }
.js .nota { display: flex; }
.nota-w { position: relative; display: inline-block; max-width: 214px; margin: 0 34px; padding: 10px 6px; opacity: 0; transition: opacity 160ms linear; }
.nota .ov { left: -17%; top: -7px; width: 134%; height: calc(100% + 14px); }
.nota-t { display: block; white-space: normal; text-align: center; text-wrap: balance; }
.nota.on .nota-w { opacity: 1; }
.nota-p { color: var(--gris); }
.nota .fl { opacity: 0; transition: opacity 160ms linear; }
.nota.on .fl { opacity: 1; }
.ov-b path { stroke-dashoffset: 1; }
.nota.on .ov-b path { stroke-dashoffset: 0; transition: stroke-dashoffset 320ms var(--io); }
.fl-b path { stroke-dashoffset: 1; }
.nota.on .fl-b path { stroke-dashoffset: 0; transition: stroke-dashoffset 260ms var(--io) 200ms; }
.nota.n-ruta { justify-content: flex-start; flex-direction: row-reverse; }
.nota.n-ruta .fl-b { rotate: -128deg; scale: 1 -1; }
.nota.n-carga { justify-content: flex-end; }
.nota.n-carga .fl-b { rotate: -60deg; scale: -1 1; order: 2; }
.nota.n-fecha .fl-b { rotate: -84deg; }

.bandeja { display: grid; margin-top: 6px; }
.bandeja > * { grid-area: 1 / 1; }
/* r9: las tarjetas son pestañas y siempre hay un panel a la vista (se fue «Toca una tarjeta.» y su hueco de 250–330 px).
   El panel que entra llega del lado de su tarjeta; el que sale se va sin empujar nada (todos viven en la misma celda). */
.bj { transition: opacity 200ms var(--xo), translate 260ms var(--xo), visibility 0s linear 0s; }
.bj:not(.on) { opacity: 0; visibility: hidden; translate: 0 10px; transition: opacity 140ms linear, translate 140ms linear, visibility 0s linear 140ms; }
.bj-q { font: 700 22px/1.15 var(--f-disp); letter-spacing: -.02em; margin-bottom: 12px; }
.bj-g { font: 600 11.5px/1.3 var(--f-txt); letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin: 12px 0 8px; }
.bj-g:first-of-type { margin-top: 0; }
.bj-aviso { display: block; margin-top: 4px; letter-spacing: 0; text-transform: none; font-size: 13px; font-weight: 500; color: var(--gris); }
.bj-fecha:not(.sin-dia) .bj-aviso { visibility: hidden; }
.bj-fecha.sin-dia.avisa .bj-aviso { color: var(--tinta); }
.bj-r.avisa, .bj-fecha.avisa .bj-aviso { color: var(--tinta); }
.bj-c, .bj-r { font: 500 13px/1.4 var(--f-txt); color: var(--gris); margin-top: 10px; }
/* r9: «Elige otro punto…» sólo con conflicto (tocar en B el lugar que ya es A). Guarda su renglón: aparecer no empuja nada */
.js .bj-r { visibility: hidden; opacity: 0; translate: 0 -3px; transition: opacity 160ms var(--xo), translate 200ms var(--xo), visibility 0s linear 160ms; }
.js .bj-r.avisa { visibility: visible; opacity: 1; translate: none; transition: opacity 160ms var(--xo), translate 200ms var(--xo), visibility 0s; }
.chips { display: grid; gap: 8px; }
.chips-2 { grid-template-columns: 1fr 1fr; }
.chips-3 { grid-template-columns: repeat(3, auto); justify-content: start; }
.chip, .seg-b { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid rgba(247, 247, 244, .24); background: transparent; color: var(--tinta);
  font: 600 15px/1.1 var(--f-txt); cursor: pointer; text-align: center; transition: background-color 160ms var(--xo), color 160ms var(--xo), border-color 160ms var(--xo); }
.chip[aria-pressed="true"], .seg-b[aria-pressed="true"] { background: var(--tinta); color: var(--fondo); border-color: var(--tinta); }
.chip[aria-disabled="true"] { opacity: .36; cursor: not-allowed; }
.seg { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 3px; margin-bottom: 12px; border-radius: 999px; background: rgba(247, 247, 244, .06); }
.seg-b { border-color: transparent; min-width: 104px; }
.chips-d { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 399px) { .chips-f { grid-template-columns: 1fr 1fr; } .chip { padding: 0 10px; font-size: 14.5px; } }

/* ------------------------------------------------------------ cierre · la frase del lector */
.cierre { padding-top: 34px; }
.foto-c img { opacity: .18; object-position: 50% 60%; }
.foto-c { -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .12) 20%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .8) 100%);
  mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .12) 20%, rgba(0, 0, 0, .12) 62%, rgba(0, 0, 0, .8) 100%); }
.tit-c { padding-top: 58px; }
.frase { position: relative; min-height: 4.4em; font: 700 var(--fs-frase)/1.1 var(--f-disp); letter-spacing: -.04em; }   /* 4 renglones reservados: cambiar una respuesta no empuja el boleto */
.pr { color: var(--gris); }
.hu { position: relative; display: inline-block; color: var(--tinta); min-width: 0; vertical-align: top; }
.hu-s { inset: .1em -.05em .06em; opacity: 0; }
.hu.vacio { min-width: 2.6em; height: 1.05em; }
.hu.vacio .hu-s { opacity: 1; }
.hu.ej .pal { color: rgba(247, 247, 244, .38); text-decoration: underline dashed rgba(247, 247, 244, .3); text-decoration-thickness: 2px; text-underline-offset: .14em; }   /* el ejemplo, tenue (≥ 3:1, texto grande); lo del lector, en tinta */
.ej-et { position: absolute; right: 0; top: 58px; font: 600 11px/1 var(--f-txt); letter-spacing: .16em; text-transform: uppercase; color: var(--texto2);
  border: 1px solid rgba(247, 247, 244, .26); border-radius: 999px; padding: 6px 10px; }
.cierre:not(.ejemplo) .ej-et { display: none; }
.hu .pal { display: inline-block; }
.hu.vuela .pal { opacity: 0; }
.recta { position: relative; height: 44px; margin: 8px 0 2px; }
.recta .dsc, .recta .xv { top: calc(50% - 13px); }
.recta .xv { top: calc(50% - 15.65px); }
.recta-s { top: calc(50% - 5px); height: 10px; }
.recta-s .rg { fill: none; stroke: var(--suave); stroke-width: 2; stroke-dasharray: 6 7; vector-effect: non-scaling-stroke; opacity: 0; }
.recta-s .rs { fill: none; stroke: var(--gis); stroke-width: 2.6; stroke-linecap: round; filter: url(#grano); stroke-dasharray: 1; stroke-dashoffset: 0; }
.recta.espera .rg { opacity: 1; }
.recta.espera .rs { stroke-dashoffset: 1; }
.recta.espera .dsc-b .dsc-c { background: #1C1D21; border-color: var(--gris); }
.recta.espera .dsc-a .dsc-c { border-color: var(--gris); }
.recta.espera .xp-a, .recta.espera .xp-b { opacity: 0; }
.recta.espera .xp-g { opacity: .4; }

/* el boleto: la cabecera es el recorte real de la app; debajo, los renglones reales de «Tu traslado» con las palabras del lector */
.bol-a { font: 500 var(--fs-arr)/1.34 var(--f-txt); color: var(--tinta); margin-top: 34px; }
.bol { position: relative; margin: 14px 0 0; max-width: 420px; }
.bol-sal { position: relative; z-index: 2; display: block; height: 10px; margin: 0 -7px -5px; border-radius: 6px; background: #0A0B0D; border: 1px solid rgba(247, 247, 244, .16); }
.bol-papel { position: relative; background: #F4F4EF; color: #121316; border-radius: 0 0 16px 16px; overflow: hidden; box-shadow: 0 22px 44px rgba(0, 0, 0, .5); }
.bol-cab { width: 100%; height: auto; }
.bol-cu { padding: 12px 16px 4px; }
.bol-h { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font: 600 11.5px/1.2 var(--f-txt); letter-spacing: .12em; text-transform: uppercase; color: #5F6064; }
.bol-e { letter-spacing: 0; text-transform: none; font-weight: 500; font-size: 13px; }
.bol-od { display: flex; justify-content: space-between; gap: 14px; margin-top: 14px; }
.bol-p { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.bol-pd { align-items: flex-end; text-align: right; }
.bol-p small { display: inline-flex; align-items: center; gap: 6px; font: 600 11px/1 var(--f-txt); letter-spacing: .12em; text-transform: uppercase; color: #5F6064; }
.bol-o { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid #5F6064; }
.bol-ob { background: var(--rojo); border-color: var(--rojo); }
.bv { font: 700 20px/1.12 var(--f-disp); letter-spacing: -.02em; color: #121316; }
.bv.ej { color: rgba(18, 19, 22, .5); }
.bv-fecha { min-height: 2.24em; }   /* «Hoy · …» y «Mañana · …»: el boleto mide lo mismo con cualquier respuesta */
.bol .recta .rg { stroke: #A9AAA6; }
.bol .recta .rs { stroke: #121316; }
.bol .xv { z-index: 3; }
.bol .xp { fill: #121316; }
.bol .dsc-a .dsc-c { background: #F4F4EF; border-color: #121316; }
.bol .dsc-a b { color: #121316; }
.bol .recta.espera .dsc-a .dsc-c, .bol .recta.espera .dsc-b .dsc-c { background: #F4F4EF; border-color: #9A9B98; }
.bol .recta.espera .dsc-b b { color: #5F6064; }
.bol-dist { position: absolute; left: 50%; top: 50%; z-index: 2; translate: -50% -50%; padding: 0 9px; background: #F4F4EF; font: 500 13px/1 var(--f-txt); color: #5F6064; white-space: nowrap; }
.bol-f { margin: 4px 0 0; }
.bol-f > div { display: grid; grid-template-columns: 5.4em 1fr; align-items: baseline; gap: 10px; padding: 12px 0; border-top: 1px solid rgba(18, 19, 22, .1); }
.bol-f dt { font: 500 14px/1.2 var(--f-txt); color: #5F6064; }
.bol-f dd { margin: 0; }
.bol-un dd { font: 600 16px/1.3 var(--f-txt); color: #121316; }
.sel-un { background: linear-gradient(rgba(18, 19, 22, .1), rgba(18, 19, 22, .1)) 0 0 / 100% 100% no-repeat; color: #121316; }
.bol .sel .h, .bol .sel .h::after { background: #5E6066; }
@keyframes imprime { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }

.accion-w { position: relative; margin-top: 26px; }
.preg { font: 700 calc(var(--fs-frase) * .8)/1.08 var(--f-disp); letter-spacing: -.04em; color: var(--gris); }
.accion { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 24px; margin: 16px 0 0 .7em;   /* pegado bajo «¿En qué camión?», sin taparla (el giro de -4° sube la punta derecha ~10 px) */
  border-radius: 999px; background: var(--rojo); color: var(--sobre-rojo); text-decoration: none; font: 700 17px/1 var(--f-txt); letter-spacing: -.01em;
  rotate: -4deg; box-shadow: 0 12px 30px rgba(0, 0, 0, .4); }
.accion:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; border-radius: 999px; }
.accion.asienta { animation: asienta 420ms var(--rb) 1 both; }
@keyframes asienta { 0% { translate: 0 0; } 38% { translate: 0 -8px; } 100% { translate: 0 0; } }
.bajo { font: 400 16px/1.45 var(--f-txt); color: var(--texto2); margin-top: 14px; max-width: 32ch; }
.riel-w { margin-top: 28px; }
.riel-a { font: 500 14px/1.4 var(--f-txt); color: var(--gris); margin-bottom: 10px; }
.riel { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.riel li { position: relative; display: inline-flex; align-items: center; min-height: 32px; padding-left: 38px; font: 600 15px/1 var(--f-txt); }
.riel-c { position: absolute; left: 0; top: 1px; width: 30px; height: 30px; fill: none; stroke: var(--gris); stroke-width: 1.3; stroke-dasharray: 3 3; }
.riel-n { position: absolute; left: 0; top: 1px; width: 30px; line-height: 30px; text-align: center; font: 600 11px/30px var(--f-txt); color: var(--texto2); }
.margen { display: grid; gap: 12px; margin-top: 4px; }
.mas-c { max-width: none; }
.mg { display: grid; grid-template-columns: 6.4rem 26px 1fr; align-items: center; gap: 8px; }
.mg-p { justify-self: start; font: 600 13px/1 var(--f-txt); color: var(--tinta); background: rgba(247, 247, 244, .07); border: 1px solid rgba(247, 247, 244, .18); border-radius: 999px; padding: 7px 11px; white-space: nowrap; }
.mg-l { position: relative; height: 1px; background: rgba(247, 247, 244, .55); transform-origin: 0 50%; }
.mg-l::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--tinta); }
.mg-t { font: 400 15px/1.4 var(--f-txt); color: var(--texto2); }
.alcance { margin-top: 18px; padding-top: 16px; border-top: 1px solid rgba(247, 247, 244, .12); display: grid; gap: 8px; font: 400 15px/1.55 var(--f-txt); color: var(--texto2); }
.cierre .pie { margin-top: 18px; }
.cierre .ctl { margin-top: 18px; }
/* vuelo de palabras (FLIP): una capa fija sólo mientras vuela */
.vuelo { position: fixed; left: 0; top: 0; z-index: 50; pointer-events: none; transform-origin: 0 0; white-space: nowrap; color: var(--tinta);
  transition: transform 520ms var(--io), opacity 200ms linear; }

/* ------------------------------------------------------------ «Leer más» */
.ctl { display: flex; gap: 8px; margin-top: 12px; }
.leer { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; border: 0; background: none; color: var(--tinta); font: 600 15px/1 var(--f-txt); cursor: pointer; }
.leer-m { font-size: 18px; font-weight: 500; transition: rotate 200ms var(--xo); }
.leer[aria-expanded="true"] .leer-m { rotate: 45deg; }
.mas { display: grid; gap: 8px; margin-top: 6px; font: 400 15px/1.6 var(--f-txt); color: var(--texto2); max-width: 36ch; }
.mas h3 { font: 600 16px/1.35 var(--f-txt); color: var(--tinta); }

/* ============================================================ EL MOVIMIENTO (el motor pone .mueve y, con altura suficiente, .fija) */
.fija #e00 { height: 190svh; } .fija #e01 { height: 270svh; } .fija #e02 { height: 200svh; }
.fija .pin .marco { position: sticky; top: 0; height: 100svh; min-height: 0; }
.fija .pin .cuerpo { overflow: clip; overflow-clip-margin: 0; }
.fija .pin .pila { will-change: transform; }
.fija .pin.abierto .pila { margin-top: 0; }

/* cada pieza animada: una animación de 1 s EN PAUSA cuyo instante sale de --p entre --a y --b */
.mueve .esc * {
  animation-duration: 1s; animation-fill-mode: both; animation-play-state: paused; animation-iteration-count: 1; animation-timing-function: var(--io);
  animation-delay: calc(clamp(0, (var(--p, 1) - var(--a, 0)) / (var(--b, 1) - var(--a, 0)), 1) * -1s);
}
@keyframes ver { from { opacity: 0; } to { opacity: 1; } }
@keyframes apaga { from { opacity: 1; } to { opacity: 0; } }
@keyframes sube { from { transform: translateY(108%); } to { transform: none; } }
@keyframes asoma { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes asoma24 { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes asoma6 { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes selx { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }
@keyframes cajax { from { transform: scaleX(0); } to { transform: none; } }
@keyframes traza { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } to { stroke-dashoffset: 0; opacity: 1; } }
@keyframes crecey { from { transform: scaleY(0); } to { transform: none; } }
@keyframes punto { from { transform: scale(0); } to { transform: none; } }
@keyframes sale { from { opacity: 1; transform: none; } to { opacity: 0; transform: translateY(-12px); } }
@keyframes tapa { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@keyframes destapa { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes teclea { from { opacity: 1; transform: translateX(-100%); } 96% { opacity: 1; transform: none; } to { opacity: 0; transform: none; } }
@keyframes abre { from { clip-path: circle(0% at 55% 46%); } to { clip-path: circle(90% at 55% 46%); } }
@keyframes retira { from { opacity: 1; transform: none; } to { opacity: 0; transform: scale(.96); } }
@keyframes solida { from { opacity: 0; transform: scale(1); } 60% { opacity: 1; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@keyframes hueca { from { opacity: 1; } to { opacity: 0; } }
@keyframes asienta-d { from { transform: scale(.4); } to { transform: none; } }

/* entrada de cada escena (--e): la barra crece, la cabecera aparece, la palabra y el arranque asoman, la selección se arrastra,
   la mitad gris sube palabra por palabra desde su máscara. La mitad blanca NO entra con --e: la sube la prueba (--t). */
.mueve .esc { --p: var(--e, 1); }
.mueve .barra { animation-name: crecey; --a: 0; --b: .2; }
.mueve :is(.cab, .pie) { animation-name: ver; animation-timing-function: var(--xo); --a: 0; --b: .2; }
.mueve .tiempo { animation-name: asoma; animation-timing-function: var(--xo); --a: .05; --b: .3; }
.mueve .arr { animation-name: asoma; animation-timing-function: var(--xo); --a: .1; --b: .4; }
.mueve .sel { animation-name: selx; --a: .35; --b: .6; }
.mueve .sel .hb { animation-name: ver; animation-timing-function: linear; --a: .58; --b: .62; }
.mueve .w > span { animation-name: sube; animation-timing-function: var(--xo); --a: calc(var(--a0, .4) + var(--k, 0) * var(--st, .04)); --b: calc(var(--a) + var(--du, .2)); }
.mueve .rem .g { --a0: .4; --st: .04; --du: .18; }
.mueve .tach path { animation-name: traza; --a: calc(var(--ta0, .3) + var(--k, 0) * var(--tst, .03)); --b: calc(var(--a) + var(--tdu, .05)); }
.mueve .sub { animation-name: asoma; animation-timing-function: var(--xo); --a: .6; --b: .95; }
.mueve .lat { animation-name: ver; animation-timing-function: var(--xo); --a: .3; --b: .7; }
.mueve .ctl { animation-name: ver; animation-timing-function: var(--xo); --a: .7; --b: 1; }
.mueve .h1 .w > span { animation-name: none; }
.fija .pin .ctl { --p: var(--t); --a: .86; --b: 1; }

/* ---------- portada (--cv). El nudo, los tiradores que se vuelven A y B y la X que recorre la recta: los mueve el JS */
.mueve #e00 { --p: var(--cv, 1); }
.mueve #e00 :is(.cab, .pie, .barra, .arr, .lat, .sub) { animation-name: none; }
.fija #e00 .sel { --p: var(--cv); --a: 0; --b: .22; }
.fija #e00 .sel .hb { --p: var(--cv); --a: .19; --b: .23; }
.fija #e00 .foto img { animation-name: foto; --p: var(--cv); --a: .1; --b: .6; }
@keyframes foto { from { opacity: .3; transform: scale(1.06); } to { opacity: .14; transform: none; } }
.fija #e00 .dsc-b .dsc-c { transition: none; }

/* ---------- 01 · Ruta (--t): tiempo a, corte limpio, tiempo b */
.fija #e01 .tiempos { display: grid; }
.fija #e01 .tmp { grid-area: 1 / 1; margin: 0; }
.fija #e01 .tmp * { --p: var(--t); }
.fija #e01 .tmp-a { animation-name: sale; --p: var(--t); --a: .48; --b: .54; }
.fija #e01 .tmp-a .rem .b { --a0: .32; --st: .015; --du: .08; }
.fija #e01 .tmp-a :is(.arr, .arr *, .rem .g, .rem .g *) { --p: var(--e); }
.fija #e01 .tmp-a :is(.rem .g .tach, .rem .g .tach *) { --p: var(--t); }
.fija #e01 .tmp-a .tach { --ta0: .30; --tst: .025; --tdu: .04; }
.fija #e01 .tmp-a .lat { --a: .02; --b: .12; }
.fija #e01 .tmp-a .cap-piq { animation-name: asoma; animation-timing-function: var(--xo); --a: 0; --b: .1; }
.fija #e01 .tec-m { animation-name: tapa; animation-timing-function: steps(3, end); --a: .08; --b: .22; }
.fija #e01 .tec-c { animation-name: teclea; animation-timing-function: steps(3, end); --a: .08; --b: .23; }
.fija #e01 .fm1 { animation-name: destapa; animation-timing-function: var(--xo); --a: .22; --b: .30; }
.fija #e01 .fm2 { animation-name: destapa; animation-timing-function: var(--xo); --a: .28; --b: .36; }
.fija #e01 .tmp-a .prueba path { animation-name: traza; --a: .38; --b: .46; }
.fija #e01 .tmp-a .prueba circle { animation-name: punto; animation-timing-function: var(--rb); --a: .44; --b: .48; }
.fija #e01 .tmp-a .sub { --a: .40; --b: .48; }
.fija #e01 .tmp-b { animation-name: ver; animation-timing-function: linear; --p: var(--t); --a: .50; --b: .53; }
.fija #e01 .tmp-b .arr { --a: .52; --b: .58; }
.fija #e01 .tmp-b .sel { --a: .54; --b: .62; }
.fija #e01 .tmp-b .arr .sel .hb { --a: .61; --b: .63; }
.fija #e01 .tmp-b .rem .g { --a0: .51; --st: .015; --du: .06; }
.fija #e01 .tmp-b .cap-map { animation-name: abre; --a: .52; --b: .63; }
.fija #e01 .tmp-b .tach { --ta0: .66; --tst: .02; --tdu: .03; }
.fija #e01 .tmp-b .rem .b { --a0: .68; --st: .02; --du: .08; }
.fija #e01 .tmp-b .prueba path { animation-name: traza; --a: .76; --b: .86; }
.fija #e01 .tmp-b .prueba circle { animation-name: punto; animation-timing-function: var(--rb); --a: .84; --b: .88; }
.fija #e01 .tmp-b .cap-od { animation-name: asoma24; animation-timing-function: var(--xo); --a: .74; --b: .86; }
.fija #e01 .sel-od { animation-name: cajax; --a: .84; --b: .94; }
.fija #e01 .sel-od .hb { animation-name: ver; animation-timing-function: linear; --a: .92; --b: .95; }
.fija #e01 .tmp-b .sub { --a: .88; --b: .98; }

/* ---------- 02 · Ya lo sabes (--t): el remate 1 llega completo a .44; el 2 con su recta, de .50 a .80 */
.fija #e02 :is(.flota, .flota *, .rem1 .b, .rem1 .b *, .rem2, .rem2 *, .medio, .medio *, .sub) { --p: var(--t); }
.fija #e02 .piso path { animation-name: traza; --a: 0; --b: .06; }
.fija #e02 .rot-ej { animation-name: ver; --a: 0; --b: .05; }
.fija #e02 .u-el .u-s { background: none; }
.fija #e02 .u-el .sil-m { animation-name: solida; animation-timing-function: var(--rb); --a: .34; --b: .42; }
.fija #e02 .u-el .sil-t { animation-name: apaga; --a: .34; --b: .40; }
.fija #e02 .rem1 .b { --a0: .32; --st: .015; --du: .06; }
.fija #e02 :is(.pill, .u-cap) { animation-name: asoma6; animation-timing-function: var(--xo); --a: .40; --b: .48; }
.fija #e02 .rem2 .g { --a0: .50; --st: .015; --du: .06; }
.fija #e02 .medio-s path { animation-name: traza; --a: .56; --b: .66; }
.fija #e02 .medio .dsc-c { animation-name: asienta-d, ver; animation-timing-function: var(--rb); --a: .60; --b: .68; }
.fija #e02 :is(.md-c, .md-p) { animation-name: asoma6; animation-timing-function: var(--xo); --a: .64; --b: .74; }
.fija #e02 .rem2 .b { --a0: .68; --st: .015; --du: .06; }
.fija #e02 .sub { --a: .80; --b: .90; }
/* cuando la cámara sube para mostrar el segundo renglón, lo ya leído de arriba se retira entero (nada queda cortado a medias) */
.fija #e02 :is(.tiempo, .arr) { animation-name: sale; --p: var(--t); --a: .46; --b: .56; }
.fija #e02 .arr * { --p: var(--e); }

/* ---------- 04 y cierre (bloques libres, --e) */
.mueve .libre .rem .b { --a0: .5; --st: .04; --du: .2; }
.mueve .subr path { animation-name: traza; animation-timing-function: var(--io); --a: .8; --b: .97; }
.mueve #e04 .nodo { animation-name: asoma24; animation-timing-function: var(--xo); --a: .35; --b: .9; }
.mueve .cierre .frase { animation-name: asoma; animation-timing-function: var(--xo); --a: .2; --b: .6; }
.mueve .cierre :is(.bol-a, .accion-w) { animation-name: asoma; animation-timing-function: var(--xo); --a: .3; --b: .7; }
.mueve .cierre .bol-papel { animation-name: imprime; animation-timing-function: steps(10, end); --a: .34; --b: .8; }
.mueve .esc .bol.imprime .bol-papel { animation: imprime 900ms steps(12, end) 1 both; }
.mueve .cierre :is(.bajo, .riel-w) { animation-name: ver; animation-timing-function: var(--xo); --a: .5; --b: .9; }
/* los eventos del 04 (toques) corren como animaciones normales, no por tramo */
.mueve .esc .accion.asienta { animation: asienta 420ms var(--rb) 1 both; }
.mueve .esc .tj.late { animation: late 240ms var(--rb) 1 both; }
@keyframes late { 0% { scale: 1; } 45% { scale: 1.025; } 100% { scale: 1; } }
.mueve .recta .xp { transition: transform 700ms var(--io), opacity 220ms linear; }
.mueve .recta .xp-a, .mueve .recta .xp-b { transition: transform 420ms var(--rb) 560ms, opacity 200ms linear 560ms; }
.mueve .recta .rs { transition: stroke-dashoffset 520ms var(--io); }
.mueve .recta .dsc-c { transition: background-color 160ms linear 700ms, border-color 160ms linear 700ms; }
.mueve .mg-l { transition: transform 360ms var(--io); }
.js .margen.espera .mg-l { transform: scaleX(0); }

/* ============================================================ quietud: movimiento reducido = estados de lectura, sin transiciones */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ============================================================ pantallas: columna del nodo en angosto; escritorio */
@media (max-width: 399px) {
  .tj { padding: 11px 12px; }
  .tj-h { gap: 7px; }
  .nota.n-ruta, .nota.n-carga, .nota.n-fecha { justify-content: flex-start; flex-direction: row-reverse; }
  .nota.n-ruta .fl-b, .nota.n-carga .fl-b, .nota.n-fecha .fl-b { rotate: -128deg; scale: 1 -1; order: 0; }
}
@media (max-width: 359px) {
  :root { --gut: 16px; }
  .cap-od { width: 200px; }
}
@media (min-width: 720px) {
  .unis { gap: 16px; }
  .cap-piq, .cap-map { max-width: min(420px, calc(100% - 26px)); }
  .cap-map { height: clamp(140px, 24svh, 220px); }
  .caps-b { grid-template-columns: 1fr 242px; align-items: start; }
}
@media (min-width: 1024px) {
  :root { --fs-h1: clamp(120px, 10.5vw, 150px); --fs-rem: clamp(48px, min(5vw, 7.4svh), 72px); --fs-frase: clamp(54px, 5.2vw, 74px); --fs-arr: 22px; }
  .marco { padding: 0 max(40px, calc((100% - 960px) / 2)); }
  .marco-l { padding: 0 max(40px, calc((100% - 680px) / 2)); }
  #e00 .pila { padding-left: 110px; padding-right: 110px; }
  #e00 .lat-d { position: absolute; right: 0; top: 6%; margin: 0; }
  #e00 .lat-i { position: absolute; left: 0; bottom: 26%; margin: 0; }
  .lat { font-size: 15px; }
  .stk { font-size: 18px; min-height: 50px; padding: 0 24px; }
  /* 01: la palabra a la izquierda y su pantalla real a la derecha; la línea de ref3 entra por el costado */
  .tmp { display: grid; grid-template-columns: minmax(0, 1fr) 400px; column-gap: 64px; align-items: center; align-content: center; }
  .tmp > * { grid-column: 1; }
  .tmp > :is(.cap-piq, .caps-b) { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
  .cap-piq, .cap-map { max-width: none; }
  .tmp-b .caps-b { grid-template-columns: 1fr; }
  .cap-map { height: clamp(150px, 24svh, 230px); }
  .unis, .medio { max-width: 640px; }
  .sub { font-size: 22px; }
  /* r9 · lectura a 1280: el 02 lee en la misma columna de 680 que el 03 y el cierre (antes se pegaba a la izquierda de la de
     960 y dejaba vacío el tercio derecho); la bandeja no estira pastillas de 330 px: tres por renglón en 640 */
  #e02 .pila { max-width: 680px; margin-left: auto; margin-right: auto; }
  .bandeja { max-width: 640px; }
  .bandeja .chips-2 { grid-template-columns: repeat(3, 1fr); }
  .ej-et { top: 64px; }
}

/* generado por build.cjs */
.w.i0 > span, .tw.i0 > .tach { --k: 0; }
.w.i1 > span, .tw.i1 > .tach { --k: 1; }
.w.i2 > span, .tw.i2 > .tach { --k: 2; }
.w.i3 > span, .tw.i3 > .tach { --k: 3; }
.w.i4 > span, .tw.i4 > .tach { --k: 4; }
.w.i5 > span, .tw.i5 > .tach { --k: 5; }
.w.i6 > span, .tw.i6 > .tach { --k: 6; }
.w.i7 > span, .tw.i7 > .tach { --k: 7; }
.w.i8 > span, .tw.i8 > .tach { --k: 8; }
.w.i9 > span, .tw.i9 > .tach { --k: 9; }
.w.i10 > span, .tw.i10 > .tach { --k: 10; }
.w.i11 > span, .tw.i11 > .tach { --k: 11; }
