/* Entre Caminos de la Baja × Subaru México · «Camino abierto» (19-oct-2026).
   subaru.js escribe --p (0–1) en .ec__lienzo; todo lo demás sale de aquí. Sin .ec--vivo: vista estática.
   Colores y familias van literales (var() en font/color se recalcula en cada cuadro).
   Azul Subaru #00519D solo en detalles. Guion completo en INSTRUCCIONES.md. */

#wic-adr .ec {
  position: relative;
  background: #fff;
  color: #062C53;
  font-family: "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}
#wic-adr .ec *, #wic-adr .ec *::before, #wic-adr .ec *::after { box-sizing: border-box; }

/* ---------- composición estática (base) ---------- */
#wic-adr .ec__escena {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  max-width: 1256px; margin: 0 auto; padding: clamp(64px, 8vw, 112px) var(--gut, 24px);
}
#wic-adr .ec__lienzo, #wic-adr .ec__pie { display: contents; }
#wic-adr .ec__kicker {
  order: 1; display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 0 0 clamp(30px, 4vw, 48px);
  font: 700 12px/1.3 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #006974;
}
#wic-adr .ec__kicker::before, #wic-adr .ec__kicker::after { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: #E8A24C; }
#wic-adr .ec__punto { position: relative; flex: none; width: 7px; height: 7px; margin-right: -4px; border-radius: 50%; background: #00519D; }
#wic-adr .ec__punto::after { content: ""; position: absolute; inset: -4px; border: 1.5px solid #00519D; border-radius: 50%; opacity: 0; animation: ec-pulso 2.4s ease-out infinite; }
@keyframes ec-pulso { 0% { transform: scale(.5); opacity: .75; } 100% { transform: scale(1.2); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #wic-adr .ec__punto::after { animation: none; } }
#wic-adr .ec__marca { color: #00519D; }
#wic-adr .ec__logo { order: 2; display: block; width: clamp(180px, 22vw, 300px); max-width: none; height: auto; margin: 0 0 clamp(30px, 4vw, 48px); }
#wic-adr .ec__titulo {
  order: 3; margin: 0 0 12px;
  font: 600 clamp(36px, 4.6vw, 60px)/1.05 "WIC Display", "Fraunces", Georgia, serif; letter-spacing: -.015em; color: #062C53;
  text-wrap: balance;
}
#wic-adr .ec__salto { display: inline; }
#wic-adr .ec__sub { order: 3; max-width: 52ch; margin: 0 0 18px; font: 400 clamp(15px, 1.3vw, 17px)/1.5 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #4a5d70; text-wrap: balance; }
#wic-adr .ec__frases {
  order: 4; max-width: 46ch; margin: 0 auto; padding: 0; list-style: none;
  font: 400 clamp(17px, 1.5vw, 19.5px)/1.65 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #4a5d70;
}
#wic-adr .ec__frases li { display: inline; }
#wic-adr .ec__frases li + li::before { content: " "; }
#wic-adr .ec__mapa {
  order: 5; display: flex; align-items: center; justify-content: center; gap: 14px; margin: 22px 0 0;
  font: 700 11px/1.2 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #4a5d70;
}
#wic-adr .ec__mapa-linea { position: relative; flex: none; width: var(--mapa-w, 120px); height: 2px; border-radius: 2px; background: rgba(6, 44, 83, .16); }
#wic-adr .ec__mapa-lleno { position: absolute; inset: 0; border-radius: 2px; background: #00519D; transform-origin: 0 50%; transform: scaleX(var(--m, 1)); }
#wic-adr .ec__mapa-carril { position: absolute; inset: 0; transform: translateX(calc(var(--m, 1) * 100%)); }
#wic-adr .ec__mapa-carril::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #00519D; box-shadow: 0 0 0 3px #fff; }
#wic-adr .ec__mosaico {
  order: 6; display: grid; grid-template-columns: 1.6fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px;
  width: 100%; margin: clamp(36px, 5vw, 56px) 0 0;
}
#wic-adr .ec__mosaico figure { position: relative; margin: 0; overflow: hidden; border-radius: var(--ficha, 12px); background: #eef1f4; aspect-ratio: 16 / 10; }
#wic-adr .ec__mosaico figure:first-child { grid-row: 1 / span 2; aspect-ratio: auto; }
#wic-adr .ec__mosaico img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#wic-adr .ec__bts {
  order: 7; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(24px, 3.4vw, 48px); align-items: center;
  width: 100%; margin: clamp(40px, 5vw, 64px) 0 0; text-align: left;
}
#wic-adr .ec__bts-foto { position: relative; margin: 0; overflow: hidden; border-radius: var(--ficha, 12px); background: #eef1f4; aspect-ratio: 1920 / 1168; }
#wic-adr .ec__bts-foto img, #wic-adr .ec__bts-tiras img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; }
#wic-adr .ec__bts-texto { min-width: 0; }
#wic-adr .ec__bts-kicker {
  display: flex; align-items: center; gap: 12px; margin: 0 0 12px;
  font: 700 12px/1.3 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .2em; text-transform: uppercase; color: #006974;
}
#wic-adr .ec__bts-kicker::before { content: ""; flex: none; width: 28px; height: 2px; border-radius: 2px; background: #E8A24C; }
#wic-adr .ec__bts-t { margin: 0 0 8px; font: 600 clamp(24px, 2.3vw, 31px)/1.15 "WIC Display", "Fraunces", Georgia, serif; letter-spacing: -.01em; color: #062C53; text-wrap: balance; }
#wic-adr .ec__bts-p { margin: 0; font-size: 15.5px; line-height: 1.6; color: #4a5d70; }
#wic-adr .ec__bts-desc { margin: 14px 0 0; font-size: 15.5px; line-height: 1.6; color: #062C53; }
/* Aviso de vista previa (mismo estilo que .adr-nota): solo sale mientras falta el texto de Adrián */
#wic-adr .ec__nota { padding: 8px 12px; border: 1px dashed #b99a00; border-radius: 8px; background: #FFF6B8; color: #5a4a00; font-size: 13px; font-weight: 700; line-height: 1.45; }
#wic-adr .ec__bts-tiras { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0 0; }
#wic-adr .ec__bts-tiras figure { margin: 0; overflow: hidden; border-radius: 8px; aspect-ratio: 16 / 9; background: #eef1f4; }
#wic-adr .ec__fin { order: 8; display: flex; flex-direction: column; align-items: center; gap: 18px; margin: clamp(30px, 4vw, 44px) 0 0; }
#wic-adr .ec__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
#wic-adr .ec__btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; min-height: 48px; padding: 13px 24px;
  border: 1.5px solid transparent; border-radius: 999px; text-decoration: none;
  font: 700 15px/1.15 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .02em; text-align: center; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease;
}
#wic-adr .ec__btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(6, 44, 83, .18); }
#wic-adr .ec__btn svg { flex: none; }
#wic-adr .ec__btn--navy, #wic-adr .ec__btn--navy:hover { background: #062C53; color: #fff; }
#wic-adr .ec__btn--linea, #wic-adr .ec__btn--linea:hover { background: #fff; border-color: rgba(6, 44, 83, .3); color: #062C53; }
#wic-adr .ec__btn:focus-visible { outline: 3px solid var(--cromo, #086380); outline-offset: 3px; }
#wic-adr .ec__credito { margin: 0; font-size: 13px; line-height: 1.4; word-spacing: .12em; color: #4a5d70; }
/* 20-oct (Iván): frase bajo la ficha, créditos con fotos y la imagen de cierre */
#wic-adr .ec__frase { margin: 16px 0 0; padding-left: 14px; border-left: 2px solid #E8A24C; font: italic 400 clamp(16px, 1.35vw, 19px)/1.45 "WIC Display", "Fraunces", Georgia, serif; color: #062C53; }
#wic-adr .ec__cred {
  order: 8; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: clamp(24px, 3.4vw, 48px); align-items: center;
  width: 100%; margin: clamp(40px, 5vw, 64px) 0 0; text-align: left;
}
/* 6 fotos (20-oct): la grande ocupa 2×2 y las otras cinco la rodean (columna derecha y fila de abajo) */
#wic-adr .ec__cred-fotos { order: 2; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: repeat(3, minmax(0, 1fr)); gap: 10px; aspect-ratio: 4 / 3; min-height: 0; }
#wic-adr .ec__cred-fotos figure { margin: 0; min-height: 0; overflow: hidden; border-radius: 10px; background: #eef1f4; }
#wic-adr .ec__cred-fotos figure:first-child { grid-column: 1 / 3; grid-row: 1 / 3; }
#wic-adr .ec__cred-fotos img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: var(--pos-h, 50% 50%); }
#wic-adr .ec__cred-texto { min-width: 0; }
#wic-adr .ec__cred-lista { display: grid; margin: 0 0 22px; }
#wic-adr .ec__cred-lista > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid rgba(6, 44, 83, .1); }
#wic-adr .ec__cred-lista > div:first-child { padding-top: 2px; border-top: 0; }
#wic-adr .ec__cred-lista dt { font: 700 10.5px/1.3 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #006974; }
#wic-adr .ec__cred-lista dd { margin: 0; font: 600 16px/1.35 "WIC Display", "Fraunces", Georgia, serif; color: #062C53; }
#wic-adr .ec__cred-lista a { color: #062C53; text-decoration: underline; text-decoration-color: rgba(6, 44, 83, .35); text-underline-offset: 3px; }
#wic-adr .ec__cred-lista a:hover { text-decoration-color: currentColor; }
#wic-adr .ec__cred .ec__ctas { justify-content: flex-start; }
#wic-adr .ec__cred .ec__credito { margin-top: 14px; font-size: 12px; }
#wic-adr .ec__cierre { order: 9; position: relative; width: 100%; margin: clamp(40px, 5vw, 64px) 0 0; overflow: hidden; border-radius: var(--ficha, 12px); aspect-ratio: 16 / 9; background: #0d2238; }
#wic-adr .ec__cierre img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
#wic-adr .ec__cinta, #wic-adr .ec__telon, #wic-adr .ec__firma { display: none; }
#wic-adr .ec__sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

@media (max-width: 760px) {
  #wic-adr .ec__mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  #wic-adr .ec__mosaico figure:first-child { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  #wic-adr .ec__mapa { gap: 10px; font-size: 11px; letter-spacing: .1em; }
  #wic-adr .ec__mapa-linea { --mapa-w: 56px; }
  #wic-adr .ec__bts { grid-template-columns: minmax(0, 1fr); }
  #wic-adr .ec__cred { grid-template-columns: minmax(0, 1fr); }
  #wic-adr .ec__cred-fotos { order: 0; }
  #wic-adr .ec__cred-lista > div { grid-template-columns: 118px minmax(0, 1fr); }
}
@media (max-width: 480px) {
  #wic-adr .ec__kicker { gap: 8px; letter-spacing: .12em; }
  #wic-adr .ec__kicker::before, #wic-adr .ec__kicker::after { width: 14px; }
}


/* Registrados como números: se calculan una vez y se heredan resueltos. */
@property --p { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --t1 { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --kl { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --k { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --linea { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --linea-o { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --abre-l { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --abre { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --cinta-o { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --firma { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --s { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --ruta { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --bts { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --cred { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --cierre { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --fuera-c { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --m { syntax: '<number>'; inherits: true; initial-value: 1; }
@property --o { syntax: '<number>'; inherits: true; initial-value: 0; }
@property --zoom { syntax: '<number>'; inherits: true; initial-value: 1; }

/* ===== Modo vivo: pista alta + escenario sticky ===== */
/* 20-oct: más pista para la serie, los créditos y el cierre. --ec-corte = parte del recorrido que ocupan los tiempos 1–3
   (hasta --p .69, igual que antes: 235svh en horizontal y 166svh en vertical); subaru.js reparte el resto entre .69 y 1. */
#wic-adr .ec--vivo { --ec-alto: 480svh; --ec-corte: .618; height: var(--ec-alto); }
@media (orientation: portrait) { #wic-adr .ec--vivo { --ec-alto: 440svh; --ec-corte: .488; } }

#wic-adr .ec--vivo .ec__escena {
  position: sticky; top: var(--alto-encabezado, 0px);
  display: block; max-width: none; margin: 0; padding: 0; text-align: left;
  height: calc(100svh - var(--alto-encabezado, 0px));
  overflow: hidden; background: #fff;
  container: ec / size;
}
/* Prototipo y storyboard: el escenario a un tamaño dado, sin pista */
#wic-adr .ec--fijo { height: auto; }
#wic-adr .ec--fijo .ec__escena { position: relative; top: 0; height: var(--alto-fijo, 811px); }

#wic-adr .ec--vivo .ec__lienzo {
  display: block; position: absolute; inset: 0;

  /* medidas (horizontal) */
  --logo-w: clamp(120px, min(20cqw, 36cqh), 320px);
  --logo-h: calc(var(--logo-w) * .5828);
  --claro: calc(var(--logo-h) * .34);
  --logo-y: clamp(24cqh, calc(100cqh - var(--logo-h) / 2 - 262px), 40cqh);
  --sello: .33;
  --borde-x: 4cqw;
  --borde-y: 5cqh;
  --amp: 28cqh;
  --hueco: 1.6cqw;
  --px: 9cqw;
  --mapa-w: 14cqw;

  /* tiempos (todo sale de --p). Cada texto entra y sale en ~2–4 % del avance y se queda entero el resto.
     1 blanco 0–.05 · 2 se abre .05–.25 · 3 ruta .25–.62 · se cierra .63–.69 · 4a la serie .70–.82 · 4b créditos .825–.93 ·
     5 cierre con la imagen final .93–1 (20-oct: ya no regresa al blanco con el sello, el título y los botones) */
  --t1: calc(1 - clamp(0, (var(--p) - .05) / .04, 1));
  --kl: clamp(0, (var(--p) - .05) / .07, 1);
  --area-h: calc(100cqh - 2 * var(--borde-y) - var(--logo-h) * var(--sello) - 3cqh);
  --k: calc(var(--kl) * var(--kl) * (3 - 2 * var(--kl)));
  --linea: clamp(0, (var(--p) - .09) / .07, 1);
  --linea-o: calc(1 - clamp(0, (var(--p) - .67) / .02, 1));
  --abre-l: calc(clamp(0, (var(--p) - .14) / .11, 1) - clamp(0, (var(--p) - .63) / .06, 1));
  --abre: calc(var(--abre-l) * var(--abre-l) * (3 - 2 * var(--abre-l)));
  --cinta-o: clamp(0, var(--abre-l) * 40, 1);
  --firma: clamp(0, (var(--p) - .11) / .03, 1);
  --s: calc(clamp(0, (var(--p) - .25) / .37, 1) * 3);
  --ruta: calc(clamp(0, (var(--p) - .21) / .035, 1) - clamp(0, (var(--p) - .62) / .025, 1));
  --bts: calc(clamp(0, (var(--p) - .70) / .025, 1) - clamp(0, (var(--p) - .80) / .02, 1));
  --cred: clamp(0, (var(--p) - .825) / .025, 1);
  --cierre: clamp(0, (var(--p) - .93) / .03, 1);
  --fuera-c: clamp(0, (.001 - var(--cred)) * 100000, 1);
  --m: clamp(0, var(--s) / 3, 1);
}

/* ---- 1 · blanco: rótulo, logo y título ---- */
#wic-adr .ec--vivo .ec__kicker {
  position: absolute; left: 0; right: 0; margin: 0; z-index: 6;
  top: calc(var(--logo-y) - var(--logo-h) / 2 - var(--claro));
  transform: translateY(-100%); opacity: var(--t1);
}
#wic-adr .ec--vivo .ec__logo {
  position: absolute; left: var(--logo-x, 50%); top: var(--logo-y); z-index: 7; margin: 0;
  width: var(--logo-w); height: var(--logo-h);
  transform:
    translate(-50%, -50%)
    translate(calc(var(--k) * (var(--borde-x) + var(--logo-w) * var(--sello) / 2 - var(--logo-x, 50cqw))),
              calc(var(--k) * (var(--borde-y) + var(--logo-h) * var(--sello) / 2 - var(--logo-y))))
    scale(calc(1 - var(--k) * (1 - var(--sello))));
  will-change: transform;
}
#wic-adr .ec--vivo .ec__pie {
  pointer-events: none;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  position: absolute; left: 50%; z-index: 6; width: min(92cqw, 820px);
  top: calc(var(--logo-y) + var(--logo-h) / 2 + var(--claro));
  transform: translateX(-50%);
}
#wic-adr .ec--vivo .ec__titulo { margin: 0; font-size: clamp(30px, 3.4cqw, 56px); white-space: nowrap; opacity: var(--t1); }
#wic-adr .ec--vivo .ec__sub { margin: 10px 0 0; font-size: clamp(14px, 1.15cqw, 18px); opacity: var(--t1); }

/* ---- sello y co-firma (arriba a la izquierda, sobre blanco) ---- */
#wic-adr .ec--vivo .ec__firma {
  display: flex; flex-direction: column; gap: 3px; position: absolute; z-index: 6;
  left: calc(var(--borde-x) + var(--logo-w) * var(--sello) + var(--logo-h) * var(--sello) * .45);
  top: calc(var(--borde-y) + var(--logo-h) * var(--sello) / 2);
  transform: translateY(-50%); opacity: var(--firma);
}
#wic-adr .ec__firma-t { font: 600 clamp(15px, 1.25cqw, 20px)/1.1 "WIC Display", "Fraunces", Georgia, serif; color: #062C53; white-space: nowrap; }
#wic-adr .ec__firma-s { font: 700 11px/1.2 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; color: #4a5d70; white-space: nowrap; }

/* ---- 2 · el camino se abre: dos telones blancos con el borde del camino ---- */
#wic-adr .ec--vivo .ec__telon {
  display: block; position: absolute; z-index: 3; pointer-events: none;
  left: -10%; width: 120%; top: -45%; height: 190%;
  will-change: transform;
}
#wic-adr .ec--vivo .ec__telon--a { transform: translateY(calc(-1 * var(--abre) * var(--amp))); }
#wic-adr .ec--vivo .ec__telon--b { transform: translateY(calc(var(--abre) * var(--amp))); }
#wic-adr .ec__telon svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
#wic-adr .ec__sombra path { fill: #062C53; }
#wic-adr .ec__sombra { filter: blur(14px); opacity: calc(var(--abre) * .2); will-change: opacity; }
#wic-adr .ec__telon--a .ec__sombra { translate: 0 8px; }
#wic-adr .ec__telon--b .ec__sombra { translate: 0 -8px; }
#wic-adr .ec__relleno path { fill: #fff; }
#wic-adr .ec__linea path { fill: none; stroke: #b97f35; stroke-width: 2; vector-effect: non-scaling-stroke; }
#wic-adr .ec__linea {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(var(--linea) * 104% - 4%), transparent calc(var(--linea) * 104%));
  mask-image: linear-gradient(90deg, #000 calc(var(--linea) * 104% - 4%), transparent calc(var(--linea) * 104%));
  opacity: var(--linea-o);
}
#wic-adr .ec__curva--v { display: none; }

/* ---- 3 · ruta: los cuadros pasan por la abertura ---- */
#wic-adr .ec--vivo .ec__cinta { display: block; position: absolute; inset: 0; z-index: 1; opacity: var(--cinta-o); }
#wic-adr .ec__panel {
  position: absolute; inset: 0; margin: 0; display: flex; gap: var(--hueco);
  transform: translateX(calc((var(--i) - var(--s)) * (100cqw + var(--hueco))));
  will-change: transform;
}
#wic-adr .ec__panel--lejos { content-visibility: hidden; }
#wic-adr .ec__cuadro { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; background: #e9ece9; }
#wic-adr .ec__cuadro img {
  position: absolute; top: 0; left: calc(-1 * var(--px)); width: calc(100% + 2 * var(--px)); height: 100%;
  max-width: none; object-fit: cover; object-position: var(--pos-h, 50% 50%);
  transform: translateX(calc(clamp(-1, var(--s) - var(--i), 1) * var(--px))) scale(var(--zoom, 1));
  will-change: transform;
}
#wic-adr .ec__panel--0 img { --zoom: calc(1.14 - .14 * var(--abre)); }
#wic-adr .ec__foto--v { display: none; }

#wic-adr .ec--vivo .ec__frases {
  position: absolute; z-index: 5; margin: 0; max-width: none;
  right: var(--borde-x); bottom: calc(var(--borde-y) + 46px); width: min(44cqw, 700px); height: 2.3em;
  font: 600 clamp(28px, 3.1cqw, 50px)/1.08 "WIC Display", "Fraunces", Georgia, serif; letter-spacing: -.015em; color: #062C53;
  text-align: right; text-wrap: balance; opacity: var(--ruta);
}
#wic-adr .ec--vivo .ec__frases li {
  display: block; position: absolute; right: 0; bottom: 0; width: 100%;
  --o: clamp(0, min((var(--s) - var(--a)) / .12, (var(--b) - var(--s)) / .12), 1);
  opacity: var(--o); transform: translateY(calc((1 - var(--o)) * 14px));
}
#wic-adr .ec--vivo .ec__frases li + li::before { content: none; }
#wic-adr .ec--vivo .ec__mapa {
  position: absolute; z-index: 5; margin: 0; right: var(--borde-x); bottom: var(--borde-y);
  opacity: var(--ruta);
}
#wic-adr .ec--vivo .ec__mapa-linea { width: var(--mapa-w); }

/* ---- 4 · el camino se cierra y quedan, completas y sobre blanco, las fotos de detrás de cámara ---- */
#wic-adr .ec--vivo .ec__bts {
  position: absolute; z-index: 5; margin: 0; pointer-events: none; width: auto;
  left: var(--borde-x); right: var(--borde-x); bottom: var(--borde-y);
  top: calc(var(--borde-y) + var(--logo-h) * var(--sello) + 3cqh);
  gap: 4cqw; align-content: center; opacity: var(--bts);
}
#wic-adr .ec--vivo .ec__bts-foto { transform: scale(calc(1.05 - .05 * var(--bts))); box-shadow: 0 30px 60px -32px rgba(6, 44, 83, .45); }
#wic-adr .ec--vivo .ec__bts-texto { transform: translateY(calc((1 - var(--bts)) * 18px)); }
#wic-adr .ec--vivo .ec__bts-t { font-size: clamp(24px, 2.4cqw, 40px); }
#wic-adr .ec--vivo .ec__frase { font-size: clamp(16px, 1.45cqw, 22px); }

/* ---- 4b · créditos (mismo marco que 4a; los botones solo se pueden tocar mientras se ven) ---- */
#wic-adr .ec--vivo .ec__cred {
  position: absolute; z-index: 5; margin: 0; width: auto;
  left: var(--borde-x); right: var(--borde-x); bottom: var(--borde-y);
  top: calc(var(--borde-y) + var(--logo-h) * var(--sello) + 3cqh);
  gap: 4cqw; align-content: center; opacity: var(--cred);
  transform: translateY(calc((1 - var(--cred)) * 18px + var(--fuera-c) * 300cqh));
}
#wic-adr .ec--vivo .ec__cred-fotos { aspect-ratio: auto; height: min(var(--area-h), 62cqh); }

/* ---- 5 · cierre: la imagen final cubre el escenario (con su propio logo de Subaru) ---- */
#wic-adr .ec--vivo .ec__cierre {
  position: absolute; inset: 0; z-index: 9; margin: 0; border-radius: 0; aspect-ratio: auto;
  opacity: var(--cierre); pointer-events: none;
}
#wic-adr .ec--vivo .ec__cierre img { transform: scale(calc(1.08 - .08 * var(--cierre))); will-change: transform; }

#wic-adr .ec--vivo .ec__mosaico { display: none; }

/* ===== Vertical (celular y tableta parados): la ruta sube ===== */
@container ec (orientation: portrait) {
  #wic-adr .ec--vivo .ec__lienzo {
    --logo-w: clamp(150px, 46cqw, 300px);
    --logo-y: clamp(26cqh, calc(100cqh - var(--logo-h) / 2 - 384px), 40cqh);
    --sello: .36;
    --borde-x: 5cqw;
    --borde-y: 4cqh;
    --amp: 26.5cqh;
    --hueco: 1.4cqh;
    --px: 7cqh;
  }
  #wic-adr .ec--vivo .ec__curva--h { display: none; }
  #wic-adr .ec--vivo .ec__curva--v { display: inline; }
  #wic-adr .ec--vivo .ec__panel { flex-direction: column; transform: translateY(calc((var(--i) - var(--s)) * (100cqh + var(--hueco)))); }
  #wic-adr .ec--vivo .ec__cuadro img {
    left: 0; width: 100%; top: calc(-1 * var(--px)); height: calc(100% + 2 * var(--px));
    object-position: var(--pos-v, 50% 50%);
    transform: translateY(calc(clamp(-1, var(--s) - var(--i), 1) * var(--px))) scale(var(--zoom, 1));
  }
  #wic-adr .ec--vivo .ec__foto--h { display: none; }
  #wic-adr .ec--vivo .ec__foto--v { display: block; }
  #wic-adr .ec--vivo .ec__titulo { white-space: normal; font-size: clamp(28px, 8.2cqw, 46px); }
  #wic-adr .ec--vivo .ec__salto { display: block; }
  #wic-adr .ec--vivo .ec__ctas { flex-direction: column; align-items: stretch; width: min(100%, 320px); }
  #wic-adr .ec--vivo .ec__firma-t { font-size: clamp(14px, 4cqw, 19px); }
  #wic-adr .ec--vivo .ec__firma-s { font-size: 10px; letter-spacing: .06em; }
  #wic-adr .ec--vivo .ec__sub { font-size: 13.5px; max-width: 34ch; }
  #wic-adr .ec--vivo .ec__frases { width: 62cqw; height: 2.4em; bottom: calc(var(--borde-y) + 40px); font-size: clamp(22px, 6.4cqw, 34px); }
  #wic-adr .ec--vivo .ec__mapa { left: var(--borde-x); right: var(--borde-x); justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: .1em; }
  #wic-adr .ec--vivo .ec__mapa-linea { flex: 1 1 auto; width: auto; }
  #wic-adr .ec--vivo .ec__bts { grid-template-columns: minmax(0, 1fr); gap: 2.2cqh; align-content: start; }
  #wic-adr .ec--vivo .ec__bts-foto { justify-self: center; width: min(100%, calc(31cqh * 1.644)); }
  #wic-adr .ec--vivo .ec__bts-kicker { margin-bottom: 6px; }
  #wic-adr .ec--vivo .ec__bts-t { font-size: clamp(20px, 5.4cqw, 32px); margin-bottom: 4px; }
  #wic-adr .ec--vivo .ec__bts-p { font-size: 14px; }
  #wic-adr .ec--vivo .ec__bts-desc { margin-top: 8px; font-size: 13.5px; }
  #wic-adr .ec--vivo .ec__frase { margin-top: 10px; font-size: 15px; }
  #wic-adr .ec--vivo .ec__cred { grid-template-columns: minmax(0, 1fr); gap: 2.4cqh; align-content: start; }
  #wic-adr .ec--vivo .ec__cred-fotos { order: 0; height: auto; aspect-ratio: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto; gap: 6px; }
  #wic-adr .ec--vivo .ec__cred-fotos figure { aspect-ratio: 16 / 9; border-radius: 8px; }
  #wic-adr .ec--vivo .ec__cred-fotos figure:first-child { grid-column: auto; grid-row: auto; }
  #wic-adr .ec--vivo .ec__cred-lista { margin-bottom: 12px; }
  #wic-adr .ec--vivo .ec__cred-lista > div { grid-template-columns: 118px minmax(0, 1fr); gap: 10px; padding: 5px 0; }
  #wic-adr .ec--vivo .ec__cred-lista dd { font-size: 14.5px; }
  #wic-adr .ec--vivo .ec__cred .ec__ctas { gap: 8px; }
  #wic-adr .ec--vivo .ec__cred .ec__btn { min-height: 44px; padding: 10px 18px; font-size: 14px; }
  #wic-adr .ec--vivo .ec__cred .ec__credito { margin-top: 10px; font-size: 11.5px; }
}
@container ec (orientation: portrait) and (max-width: 599.98px) {
  #wic-adr .ec--vivo .ec__bts-desc { font-size: 13px; line-height: 1.5; }
}
@container ec (orientation: portrait) and (min-width: 600px) {
  #wic-adr .ec--vivo .ec__bts, #wic-adr .ec--vivo .ec__cred { align-content: center; }
  #wic-adr .ec--vivo .ec__bts-foto { width: min(100%, calc(40cqh * 1.644)); }
  #wic-adr .ec--vivo .ec__bts-desc { font-size: 15px; }
}


/* ---- Projects: aviso «Now in production» del póster de Entre Caminos (Iván, 20-oct) ---- */
#wic-adr .adr-poster__estado { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 14px; padding: 6px 13px 6px 11px; border: 1px solid rgba(0, 81, 157, .3); border-radius: 999px; background: rgba(255, 255, 255, .72); font: 700 11px/1.2 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .14em; text-transform: uppercase; color: #00519D; }
#wic-adr .adr-poster__estado .ec__punto { margin-right: 0; }

/* ---- v2 (Iván, 21-oct): emblema de Subaru con «Subaru México» debajo, en lugar del logo apilado. Misma caja que el logo
   (ancho --lw, proporción .5828), así el paso a sello de la esquina no cambia. ---- */
#wic-adr .ec__logo--mx { --lw: clamp(180px, 22vw, 300px); display: flex; flex-direction: column; align-items: center; justify-content: space-between; height: calc(var(--lw) * .5828); }
#wic-adr .ec--vivo .ec__logo--mx { --lw: var(--logo-w); }
#wic-adr .ec__logo--mx img { display: block; width: auto; height: 74%; max-width: none; }
#wic-adr .ec__logo-txt { display: block; font: 700 calc(var(--lw) * .1)/1 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; color: #062C53; }
#wic-adr .ec__logo-txt b { font-weight: 700; color: #00519D; }
/* v2: sección «trabada» en la última pantalla (la pone subaru.js al llegar al final) y botón «Watch again» */
#wic-adr .ec--vivo.ec--fin { height: 100svh; }
#wic-adr .ec__otra { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 8px 14px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 600 13.5px/1.2 "WIC Sans", "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif; color: #006974; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(0, 105, 116, .35); }
#wic-adr .ec__otra[hidden] { display: none; }
#wic-adr .ec__otra:hover { color: #062C53; text-decoration-color: currentColor; }
#wic-adr .ec__otra:focus-visible { outline: 3px solid var(--cromo, #086380); outline-offset: 2px; }
#wic-adr .ec__otra svg { flex: none; }
@container ec (orientation: portrait) { #wic-adr .ec--vivo .ec__otra { align-self: center; min-height: 36px; padding: 4px 12px; } }
/* v2: el enlace directo (…/adrian-de-antoni/#entre-caminos) abre justo en el inicio de la sección, bajo la barra de accesos */
#wic-adr #entre-caminos.ec--v2 { scroll-margin-top: var(--alto-encabezado, 58px); }

/* ---- Portada (Iván, 21-oct): «se va a quedar ese tipo de portada (la P7) pero vas a poner la de Entre Caminos de la Baja, y haz
   el logo más grande y en producción más llamativo, más o menos con ese orden». Centrados y apilados: «Now in production» en
   píldora azul Subaru con un brillo que la cruza, el emblema más grande con «Subaru México» y el póster de la serie con sombra,
   sobre el mismo póster desenfocado y casi blanco. Al bajar, el póster y el fondo se desvanecen con --t1 (.05–.09) y el emblema
   viaja al sello (--sello más chico para que el sello quede del tamaño de antes). Sin animación: los tres apilados.
   (Las 7 pruebas con «Tres Mares, un latido» y su selector se quitaron; respaldos en
   ~/backups/manual/adrian-subaru-portada-tresmares-20261021/.) ---- */
#wic-adr .ec__portada { order: 3; width: min(100%, 420px); margin: 0 0 clamp(24px, 3vw, 40px); }
#wic-adr .ec__portada img { display: block; width: 100%; height: auto; max-width: none; border-radius: 6px;
  box-shadow: 12px 16px 26px -6px rgba(6, 20, 36, .42), 0 2px 6px rgba(6, 20, 36, .18); }
#wic-adr .ec__portada-fondo { display: none; }

/* «Now in production»: píldora azul con punto que late y un brillo que la cruza cada tanto */
#wic-adr .ec--portada .ec__kicker {
  width: max-content; max-width: 92%; margin-left: auto; margin-right: auto; overflow: hidden;
  padding: 15px 28px 15px 22px; border-radius: 999px; background: #00519D; color: #fff;
  font-size: 16px; letter-spacing: .22em;
  box-shadow: 0 14px 34px -10px rgba(0, 81, 157, .75), 0 0 0 6px rgba(0, 81, 157, .14);
  animation: ec-pildora-halo 2.4s ease-out 1s infinite;   /* 22-oct (Iván): «el now in production más grande o llamativo» */
}
@keyframes ec-pildora-halo {
  0% { box-shadow: 0 14px 34px -10px rgba(0, 81, 157, .75), 0 0 0 0 rgba(0, 81, 157, .5); }
  70%, 100% { box-shadow: 0 14px 34px -10px rgba(0, 81, 157, .75), 0 0 0 18px rgba(0, 81, 157, 0); }
}
#wic-adr .ec--portada .ec__punto { width: 9px; height: 9px; }
#wic-adr .ec--portada .ec__kicker::before { display: none; }
#wic-adr .ec--portada .ec__kicker::after {
  position: absolute; inset: 0; width: auto; height: auto; border-radius: inherit;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .38) 50%, rgba(255, 255, 255, 0) 70%);
  transform: translateX(-120%); animation: ec-brillo 3.6s ease-in-out 1s infinite;
}
@keyframes ec-brillo { 0% { transform: translateX(-120%); } 45%, 100% { transform: translateX(120%); } }
#wic-adr .ec--portada .ec__punto { margin-right: 0; background: #fff; }
#wic-adr .ec--portada .ec__punto::after { border-color: #fff; }
@media (prefers-reduced-motion: reduce) { #wic-adr .ec--portada .ec__kicker::after { animation: none; display: none; } #wic-adr .ec--portada .ec__kicker { animation: none; } }

/* «presents» entre el emblema y la píldora; sin animación el orden es emblema, presents, píldora, póster y lo demás */
#wic-adr .ec__presenta { order: 2; display: flex; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px;
  font: italic 400 clamp(18px, 1.5vw, 23px)/1 "WIC Display", "Fraunces", Georgia, serif; letter-spacing: .02em; color: #4A5D70; }
#wic-adr .ec__presenta::before, #wic-adr .ec__presenta::after { content: ""; width: 26px; height: 1.5px; border-radius: 2px; background: #E8A24C; }
#wic-adr .ec--portada .ec__logo { order: 1; }
#wic-adr .ec--portada .ec__kicker { order: 3; }
#wic-adr .ec--portada .ec__portada { order: 4; }
#wic-adr .ec--portada .ec__titulo, #wic-adr .ec--portada .ec__sub { order: 4; }
#wic-adr .ec--vivo .ec__presenta { position: absolute; z-index: 7; left: 0; right: 0; top: var(--pres-y); height: 30px; margin: 0; opacity: var(--t1); }

/* con animación */
/* 22-oct (Iván): «que primero diga Subaru México, presenta, y luego ya el Now in production y el póster; que al principio destaque
   la marca» → arriba el emblema con «Subaru México», debajo «presents», luego la píldora y el póster. */
#wic-adr .ec--portada.ec--vivo .ec__lienzo {
  --logo-w: clamp(150px, min(25cqw, 42cqh), 400px); --sello: .27; --claro: 0px;
  --logo-y: calc(3.5cqh + var(--logo-h) / 2);
  --pres-y: calc(var(--logo-y) + var(--logo-h) / 2 + 1.2cqh);
  --pild-y: calc(var(--pres-y) + 30px + 1.4cqh);
  --post-y: calc(var(--pild-y) + 54px + 2.6cqh);
}
#wic-adr .ec--portada.ec--vivo .ec__kicker { left: 50%; right: auto; top: var(--pild-y); transform: translateX(-50%); }
#wic-adr .ec--portada.ec--vivo .ec__titulo, #wic-adr .ec--portada.ec--vivo .ec__sub { opacity: 0; }
#wic-adr .ec--vivo .ec__portada {
  position: absolute; z-index: 8; margin: 0; pointer-events: none; opacity: var(--t1);
  left: 50%; top: var(--post-y); width: auto;
  height: calc((96cqh - var(--post-y)) * .85); aspect-ratio: 840 / 1186;   /* 22-oct (Iván): el póster 15 % más chico */
  transform: translateX(-50%) scale(calc(1.04 - var(--t1) * .04));
}
#wic-adr .ec--vivo .ec__portada img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
#wic-adr .ec--vivo .ec__portada-fondo { display: block; position: absolute; inset: 0; z-index: 5; overflow: hidden; pointer-events: none; opacity: var(--t1); }
#wic-adr .ec__portada-fondo::before { content: ""; position: absolute; inset: -10%; background: var(--fondo) center / cover no-repeat; filter: blur(46px) saturate(.55); }
#wic-adr .ec__portada-fondo::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 42%, rgba(255, 255, 255, .80), rgba(255, 255, 255, .91) 72%); }
@container ec (orientation: portrait) {
  #wic-adr .ec--portada.ec--vivo .ec__lienzo { --logo-w: clamp(170px, 54cqw, 340px); --sello: .31; }
  #wic-adr .ec--portada.ec--vivo .ec__kicker { padding: 13px 22px 13px 18px; font-size: 13.5px; letter-spacing: .18em; }
}

/* ---- Entrada de la portada (Iván, 22-oct). De 5 propuestas (K1 revelado, K2 dúo, K3 título de cine, K4 y K5 mezcla de K2 y K3)
   Iván eligió la K4 tal cual (la altura que pidió bajar era la de Projects, no la de la portada). La lanza subaru.js al llegar a la sección (.ec--intro); antes, sus piezas esperan escondidas (.ec--intro-espera).
   Las animaciones solo llenan hacia atrás (backwards): al terminar, cada pieza vuelve a su estado normal (opacidad --t1, el
   emblema sigue viajando al sello). Sin movimiento: nada de esto.
   K4 · del centro al dúo: el logo aparece SOLO y grande al centro con un destello, se queda un momento y se desliza a su lugar
   (en horizontal a la izquierda) mientras el póster se revela de abajo hacia arriba a la derecha; luego «presents» y la píldora
   «Now in production» con un pequeño rebote. En vertical, apilados con los mismos movimientos. ---- */
#wic-adr .ec--intro-espera.ec--vivo :is(.ec__logo, .ec__presenta, .ec__kicker, .ec__portada, .ec__portada-fondo) { opacity: 0; }
/* destello que cruza el emblema (solo sobre el óvalo: máscara con el mismo emblema) */
#wic-adr .ec--portada.ec--vivo .ec__logo--mx::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 74%; pointer-events: none; opacity: 0;
  background: linear-gradient(105deg, rgba(255,255,255,0) 38%, rgba(255,255,255,.75) 50%, rgba(255,255,255,0) 62%) no-repeat; background-size: 260% 100%; background-position: 130% 0;
  -webkit-mask: url("/wp-content/uploads/adrian-de-antoni/subaru/subaru-emblema-528.webp") center / contain no-repeat; mask: url("/wp-content/uploads/adrian-de-antoni/subaru/subaru-emblema-528.webp") center / contain no-repeat;
}
/* arreglo final en horizontal: la marca a la izquierda y el póster a la derecha */
@container ec (orientation: landscape) {
  #wic-adr .ec--intro-k4.ec--portada.ec--vivo .ec__lienzo { --logo-x: 31cqw; --logo-y: calc(48cqh - 42px - 1.3cqh); }
  #wic-adr .ec--intro-k4.ec--vivo .ec__presenta { left: calc(var(--logo-x) - 20cqw); right: auto; width: 40cqw; }
  #wic-adr .ec--intro-k4.ec--portada.ec--vivo .ec__kicker { left: var(--logo-x); }
  #wic-adr .ec--intro-k4.ec--vivo .ec__portada { left: 55cqw; top: 12.5cqh; height: 75cqh; transform: scale(calc(1.04 - var(--t1) * .04)); transform-origin: 50% 50%; }
}
@keyframes ec-k-brillo { from { opacity: 1; background-position: 130% 0; } to { opacity: 1; background-position: -30% 0; } }
@keyframes ec-k-aparece { from { opacity: 0; } }
@keyframes ec-k-sube { from { opacity: 0; translate: 0 14px; } }
@keyframes ec-k-pop { 0% { opacity: 0; scale: .55; } 70% { opacity: 1; scale: 1.06; } 100% { scale: 1; } }
@keyframes ec-k-cortina { from { clip-path: inset(100% 0 0 0 round 4px); } to { clip-path: inset(0 0 0 0 round 4px); } }
@keyframes ec-k4-logo {
  0% { opacity: 0; translate: calc(50cqw - var(--logo-x, 50cqw)) calc(50cqh - var(--logo-y)); scale: 1.18; }
  20%, 46% { opacity: 1; translate: calc(50cqw - var(--logo-x, 50cqw)) calc(50cqh - var(--logo-y)); scale: 1.18; }
  100% { opacity: 1; translate: 0 0; scale: 1; }
}
#wic-adr .ec--intro-k4.ec--intro .ec__logo { animation: ec-k4-logo 1.95s cubic-bezier(.65,0,.35,1) .1s backwards; }
#wic-adr .ec--intro-k4.ec--intro .ec__logo--mx::after { animation: ec-k-brillo .9s ease-in-out .45s backwards; }
#wic-adr .ec--intro-k4.ec--intro .ec__portada-fondo { animation: ec-k-aparece 1s ease-out .95s backwards; }
#wic-adr .ec--intro-k4.ec--intro .ec__portada img { animation: ec-k-cortina 1.25s cubic-bezier(.7,0,.2,1) 1.05s backwards; }
#wic-adr .ec--intro-k4.ec--intro .ec__presenta { animation: ec-k-sube .6s cubic-bezier(.2,.8,.2,1) 1.95s backwards; }
#wic-adr .ec--intro-k4.ec--intro .ec__kicker { animation: ec-k-pop .6s cubic-bezier(.3,1.4,.5,1) 2.2s backwards, ec-pildora-halo 2.4s ease-out 2.9s infinite; }

/* ===== 27-oct (Iván): 2 carros en la cinta y «About the series» resumida sobre los créditos — solo con .ec--e27 =====
   La ruta dura lo mismo que antes (las 4 frases a su ritmo, --sf = el --s de siempre, 0–3), pero solo hay 2 cuadros:
   el 1.º se queda con las frases 1–2, cruza mientras --sf va de 1.1 a 1.9 y el 2.º se queda con las frases 3–4. Dentro de
   cada cuadro la foto sigue deslizándose (--sl, lineal), así nunca se ve quieta. Sin la pantalla de la serie, los
   créditos entran en .695 y la pista es más corta (horizontal 480 → 433svh; vertical 440 → 381svh); --ec-corte se ajusta
   para que la ruta mida en pantalla lo mismo que antes. */
#wic-adr .ec--vivo.ec--e27 { --ec-alto: 433svh; --ec-corte: .705; }
@media (orientation: portrait) { #wic-adr .ec--vivo.ec--e27 { --ec-alto: 381svh; --ec-corte: .591; } }
#wic-adr .ec--vivo.ec--e27.ec--fin { height: 100svh; }
#wic-adr .ec--vivo.ec--e27 .ec__lienzo {
  --sf: calc(clamp(0, (var(--p) - .25) / .37, 1) * 3);
  --sx: clamp(0, (var(--sf) - 1.1) / .8, 1);
  --s: calc(var(--sx) * var(--sx) * (3 - 2 * var(--sx)));
  --sl: calc(var(--sf) / 3);
  --bts: 0;
  --cred: clamp(0, (var(--p) - .695) / .025, 1);
  --m: clamp(0, var(--sf) / 3, 1);
}
#wic-adr .ec--vivo.ec--e27 .ec__cuadro img { transform: translateX(calc(clamp(-1, var(--sl) - var(--i), 1) * var(--px))) scale(var(--zoom, 1)); }
#wic-adr .ec--vivo.ec--e27 .ec__frases li { --o: clamp(0, min((var(--sf) - var(--a)) / .12, (var(--b) - var(--sf)) / .12), 1); }
@container ec (orientation: portrait) {
  #wic-adr .ec--vivo.ec--e27 .ec__cuadro img { transform: translateY(calc(clamp(-1, var(--sl) - var(--i), 1) * var(--px))) scale(var(--zoom, 1)); }
}
/* Vista sin animación: 2 carros lado a lado (celular: uno sobre otro) */
#wic-adr .ec--e27:not(.ec--4c) .ec__mosaico { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
#wic-adr .ec--e27:not(.ec--4c) .ec__mosaico figure:first-child { grid-row: auto; aspect-ratio: 16 / 10; }
@media (max-width: 760px) {
  #wic-adr .ec--e27:not(.ec--4c) .ec__mosaico { grid-template-columns: 1fr; }
  #wic-adr .ec--e27:not(.ec--4c) .ec__mosaico figure:first-child { grid-column: auto; }
}
/* «About the series», muy resumida, encima de «Credits» */
#wic-adr .ec__serie { margin: 0 0 18px; padding: 0 0 16px; border-bottom: 1px solid rgba(6, 44, 83, .12); }
#wic-adr .ec__serie .ec__bts-kicker { margin-bottom: 8px; }
#wic-adr .ec__serie-txt { margin: 0; max-width: 52ch; font-size: 15px; line-height: 1.55; color: #062C53; text-wrap: pretty; }
@container ec (orientation: portrait) {
  #wic-adr .ec--vivo .ec__serie { margin-bottom: 10px; padding-bottom: 10px; }
  #wic-adr .ec--vivo .ec__serie .ec__bts-kicker { margin-bottom: 4px; }
  #wic-adr .ec--vivo .ec__serie-txt { font-size: 13px; line-height: 1.45; }
}
/* Que la serie resumida quepa sin encimarse en pantallas bajas (QA 27-oct: 360×640, 393×659 y 1366×650) */
@container ec (orientation: portrait) {
  #wic-adr .ec--vivo.ec--e27 .ec__cred { gap: 10px; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred-lista { margin-bottom: 10px; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred-lista > div { padding: 4px 0; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred .ec__ctas { gap: 6px; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred .ec__btn { min-height: 42px; padding: 9px 16px; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred .ec__credito { margin-top: 6px; }
}
@container ec (orientation: portrait) and (max-height: 720px) {
  #wic-adr .ec--vivo.ec--e27 .ec__cred-fotos figure:nth-child(n+4) { display: none; }
}
@container ec (orientation: portrait) and (min-width: 340px) {
  #wic-adr .ec--vivo.ec--e27 .ec__ctas { flex-direction: row; flex-wrap: wrap; width: 100%; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred .ec__btn { flex: 1 1 0; min-width: 0; padding: 9px 8px; font-size: 13px; letter-spacing: 0; white-space: nowrap; }
  #wic-adr .ec--vivo.ec--e27 .ec__otra { flex-basis: 100%; justify-content: center; }
}
@container ec (orientation: landscape) and (max-height: 720px) {
  #wic-adr .ec--vivo.ec--e27 .ec__cred-lista { margin-bottom: 14px; }
  #wic-adr .ec--vivo.ec--e27 .ec__cred-lista > div { padding: 5px 0; }
  #wic-adr .ec--vivo.ec--e27 .ec__serie { margin-bottom: 12px; padding-bottom: 10px; }
  #wic-adr .ec--vivo.ec--e27 .ec__serie-txt { font-size: 14px; }
}

/* ===== 3-nov (Iván): «regresar las 4 imágenes de presentación del auto como estaba antes» — solo con .ec--4c =====
   Dentro de la edición del 27-oct (pista 433/381svh, sin la pantalla de la serie): la cinta vuelve a sus 4 cuadros
   (01 · 09 · 11 · 19) y a su movimiento de siempre: --s lineal de 0 a 3, igual que --sf, y la foto se desliza con --s.
   Las 4 frases conservan su ritmo. subaru.js usa el mismo cálculo (sDe sin la curva del 27-oct). */
#wic-adr .ec--vivo.ec--e27.ec--4c .ec__lienzo { --s: var(--sf); --sl: var(--sf); }
