/* =============================================================
   Propuesta Nueva Vigilancia · deck de slides
   Sobre colors_and_type.css (tokens Grimerian). Solo tokens.
   Motion: transform/opacity/clip-path, ease atelier, exit < enter,
   stagger 45ms, prefers-reduced-motion respetado.
   ============================================================= */

* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; overflow: hidden; }

/* ---- paleta de gráficos validada (validate_palette.js, ambos modos) ---- */
:root, [data-atmosphere="claro"] {
  --chart-1: oklch(0.57 0.12 190);   /* #008d87 */
  --chart-2: oklch(0.58 0.13 55);    /* #b3621e */
  --sk-a: var(--bg-sunken);
  --sk-b: var(--bg-tint);
}
[data-atmosphere="oscuro"] {
  --chart-1: oklch(0.65 0.12 194);   /* #00a5a4 */
  --chart-2: oklch(0.65 0.12 80);    /* #b58629 */
  --sk-a: var(--bg-elev-1);
  --sk-b: var(--bg-elev-2);
}

/* ---- logotipos por atmósfera: único dueño de display ---- */
.on-light, .on-dark { display: block; }
.on-dark { display: none; }
[data-atmosphere="oscuro"] .on-light { display: none; }
[data-atmosphere="oscuro"] .on-dark { display: block; }

/* ---- iconos (trazo 1.5, herencia de color) ---- */
.ic { width: 20px; height: 20px; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* =============================================================
   ESCENARIO
   ============================================================= */
.deck { position: fixed; inset: 0; background: var(--bg); }

.progress { position: absolute; top: 0; left: 0; right: 0; height: 2px; z-index: var(--z-sticky); background: var(--line-hair); }
.progress-fill { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); transition: transform var(--dur-3) var(--ease-atelier); }

.slide {
  position: absolute; inset: 0;
  visibility: hidden;
  opacity: 0; transform: translateY(26px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.slide.is-active {
  visibility: visible;
  opacity: 1; transform: none;
  transition: opacity var(--dur-4) var(--ease-atelier), transform var(--dur-4) var(--ease-atelier);
  z-index: 2;
}
.slide.is-leaving {
  visibility: visible;
  opacity: 0; transform: translateY(-16px);
  transition: opacity var(--dur-2) var(--ease-out-quart), transform var(--dur-2) var(--ease-out-quart);
  z-index: 1;
}

.slide-inner {
  width: 100%; max-width: var(--container-xl);
  margin-inline: auto;
  padding: 56px 32px 96px;
  height: 100%;
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
}
@media (min-width: 1280px) { .slide-inner { padding-inline: 48px; } }

/* coreografía de entrada por elemento */
[data-anim] { opacity: 0; transform: translateY(16px); }
.is-active [data-anim] {
  opacity: 1; transform: none;
  transition: opacity 480ms var(--ease-atelier), transform 480ms var(--ease-atelier);
  transition-delay: calc(160ms + var(--i, 0) * 45ms);
}

/* =============================================================
   ANATOMÍA COMÚN
   ============================================================= */
.kicker {
  font-family: var(--font-mono); font-size: var(--fs-50); font-weight: 500;
  letter-spacing: var(--tr-eyebrow); text-transform: uppercase; color: var(--accent-text);
}
.kicker.dim { color: var(--fg-subtle); }

.slide-head { margin-bottom: clamp(20px, 3.5vh, 40px); }
.slide-head h2 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.7rem, 3.6vw, 2.9rem);
  line-height: var(--lh-snug); letter-spacing: var(--tr-h);
  color: var(--fg); margin: 10px 0 0; text-wrap: balance; max-width: 24ch;
}
.support { font-size: var(--fs-300); font-weight: 300; line-height: var(--lh-loose); color: var(--fg-muted); max-width: 62ch; margin: 12px 0 0; }
.footnote { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; color: var(--fg-subtle); margin: auto 0 0; padding-top: 18px; max-width: 90ch; }
.takeaway { font-size: var(--fs-300); color: var(--fg); margin: clamp(14px, 3vh, 26px) 0 0; max-width: 62ch; }
.takeaway em { font-style: normal; color: var(--accent-text); }

.chip {
  font-family: var(--font-mono); font-size: var(--fs-50); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--fg); border: var(--bw-1) solid var(--line-strong); border-radius: var(--r-pill);
  padding: 7px 14px; background: color-mix(in oklab, var(--bg-elev-1) 60%, transparent);
}
.chip em, .chip sup { font-style: normal; color: var(--accent-text); }
.chip sup { font-size: 0.7em; }

/* números que cuentan */
[data-count] { font-variant-numeric: tabular-nums; }

/* =============================================================
   PORTADA Y CIERRE
   ============================================================= */
.s-cover .cover-atm { position: absolute; inset: 0; background-image: var(--atmosphere-image); background-size: cover; background-position: center; opacity: 0.5; }

/* Respiración del núcleo luminoso.
   Una segunda copia de la placa, enmascarada a la zona con luz, late en
   opacidad y escala: los bordes quedan inmóviles y solo respira el centro.
   Ritmo 7.2s = 2x el .anim-breath del sistema (3.6s): a escala de pantalla
   completa, la cadencia humana resulta inquieta; su doble queda ambiental.
   Solo corre en la portada visible, no en slides ocultos. */
.s-cover .cover-atm::after {
  content: ""; position: absolute; inset: 0;
  background-image: var(--atmosphere-image);
  background-size: cover; background-position: center;
  transform-origin: 50% 44%;
  opacity: 0;
  -webkit-mask-image: radial-gradient(ellipse 48% 44% at 50% 44%, #000 0%, rgba(0,0,0,0.5) 46%, transparent 76%);
          mask-image: radial-gradient(ellipse 48% 44% at 50% 44%, #000 0%, rgba(0,0,0,0.5) 46%, transparent 76%);
}
.s-cover.is-active .cover-atm::after {
  animation: cover-breath 7.2s ease-in-out infinite;
  will-change: opacity, transform;
}
@keyframes cover-breath {
  0%, 100% { opacity: 0.05; transform: scale(1); }
  50%      { opacity: 0.28; transform: scale(1.04); }
}
.s-cover .cover-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, color-mix(in oklab, var(--bg) 30%, transparent), color-mix(in oklab, var(--bg) 88%, transparent) 60%, var(--bg)); }
.s-cover .slide-inner { position: relative; z-index: 1; padding-bottom: 84px; }

.cover-top { display: flex; justify-content: space-between; align-items: center; }
.cover-mark { width: 30px; height: 30px; }
.cover-body { margin-top: auto; }
.cover-for { display: flex; flex-direction: column; gap: 12px; margin-bottom: clamp(20px, 4vh, 40px); }
.cover-natclar { height: clamp(26px, 4.2vh, 40px); width: auto; align-self: flex-start; }

.cover-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.4rem, 6.2vw, 5rem);
  line-height: var(--lh-tight); letter-spacing: -0.03em;
  color: var(--fg); margin: 0 0 clamp(14px, 2.5vh, 24px); max-width: 18ch;
}
.cover-title .line { display: block; }
.cover-title em { font-style: normal; color: var(--accent-text); }
.cover-sub { font-size: clamp(1rem, 1.6vw, 1.3rem); font-weight: 300; line-height: var(--lh-loose); color: var(--fg-muted); max-width: 56ch; margin: 0 0 clamp(18px, 3vh, 30px); }
.cover-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(24px, 5vh, 48px); }
.cover-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; border-top: var(--bw-hair) solid var(--line); padding-top: 16px; }
.key-hint { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); }
.key-hint .ic { width: 16px; height: 16px; animation: nudge var(--dur-8) var(--ease-in-out) infinite; }
@keyframes nudge { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(6px); } }

.s-end .end-body { margin: auto 0; }
.end-title {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2rem, 5vw, 4rem); line-height: var(--lh-tight); letter-spacing: -0.028em;
  color: var(--fg); margin: 0 0 20px;
}
.end-title em { font-style: normal; color: var(--accent-text); }
.end-marks { display: flex; align-items: center; gap: 16px; margin-top: clamp(20px, 4vh, 40px); }
.end-g { width: 30px; height: 30px; }
.end-n { height: 22px; width: auto; }
.brand-x { font-family: var(--font-mono); font-size: 14px; color: var(--fg-faint); user-select: none; }

/* =============================================================
   S2 · FRONTERA
   ============================================================= */
.frontier { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 40px); align-items: start; }
.frontier-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.frontier-num { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 4.5vw, 3.4rem); line-height: 1; color: var(--accent-text); }
.frontier-num.alt { color: var(--fg-muted); }
.frontier-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); max-width: 14ch; line-height: 1.5; }
.frontier-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.frontier-list li { padding: 10px 0; border-top: var(--bw-hair) solid var(--line); font-size: clamp(13px, 1.2vw, 15px); color: var(--fg-muted); line-height: 1.5; }
.frontier-axis { align-self: stretch; display: flex; justify-content: center; }
.frontier-axis span { width: 1px; background: linear-gradient(180deg, transparent, var(--line-strong) 15%, var(--line-strong) 85%, transparent); }

/* =============================================================
   S3 · TICKET Y DOLENCIAS
   ============================================================= */
.ticket { margin: 0 0 clamp(16px, 3vh, 28px); }
.ticket-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 26px; }
.ticket-track { position: relative; height: 4px; background: var(--bg-sunken); border-radius: var(--r-pill); margin: 0 8px 64px; }
/* scaleX en vez de clip-path: composita al 100% y no se salta frames
   aunque el hilo principal esté ocupado en la primera carga */
.ticket-bar { position: absolute; inset: 0; border-radius: var(--r-pill); background: var(--warning); transform: scaleX(0); transform-origin: 0 50%; }
.is-active .ticket-bar { transform: scaleX(1); transition: transform 1100ms var(--ease-atelier) 500ms; }

/* hito: ancla puntual sobre la línea; el círculo se centra en ella
   y la etiqueta cuelga debajo, con alineación especial en extremos */
.ticket-dot { position: absolute; left: var(--x); top: 50%; width: 0; height: 0; opacity: 0; }
.ticket-dot i {
  position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(0.5);
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--warning);
  box-shadow: 0 0 0 4px var(--bg);
}
.is-active .ticket-dot { opacity: 1; transition: opacity 200ms linear; }
.is-active .ticket-dot i { transform: translate(-50%, -50%) scale(1); transition: transform 280ms var(--ease-out-quart); }
/* aparecen cuando la barra los alcanza: 500ms + 1100ms * posición */
.is-active .ticket-dot:nth-of-type(1), .is-active .ticket-dot:nth-of-type(1) i { transition-delay: 500ms; }
.is-active .ticket-dot:nth-of-type(2), .is-active .ticket-dot:nth-of-type(2) i { transition-delay: 1180ms; }
.is-active .ticket-dot:nth-of-type(3), .is-active .ticket-dot:nth-of-type(3) i { transition-delay: 1600ms; }
.ticket-lbl { position: absolute; left: 0; top: 16px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.ticket-dot.at-start .ticket-lbl { transform: none; align-items: flex-start; }
.ticket-dot.at-end .ticket-lbl { transform: translateX(-100%); align-items: flex-end; }
.ticket-lbl b { font-family: var(--font-mono); font-size: 11px; color: var(--fg); white-space: nowrap; }
.ticket-lbl small { font-size: 11px; color: var(--fg-subtle); white-space: nowrap; }
.ticket-dot.at-end .ticket-lbl b, .ticket-dot.at-end .ticket-lbl small { color: var(--warning); }
.ticket-verdict { font-size: var(--fs-300); color: var(--fg); }
.ticket-days { font-family: var(--font-display); font-weight: 600; font-size: 1.5em; color: var(--warning); }

.pains { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 28px; }
.pains li { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 14px; padding: 12px 0; border-top: var(--bw-hair) solid var(--line); font-size: clamp(13px, 1.15vw, 14.5px); color: var(--fg-muted); line-height: 1.55; }
.pains .ic { grid-row: span 2; margin-top: 2px; color: var(--fg-subtle); }
.pains strong { color: var(--fg); font-weight: 600; }
.pains .fix { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); }
.pains .fix::before { content: "→ "; color: var(--fg-faint); }

/* =============================================================
   S4 · INVENTARIO (barras)
   ============================================================= */
.inv-strip { display: flex; flex-wrap: wrap; gap: 8px 34px; margin-bottom: clamp(18px, 3.5vh, 32px); font-size: clamp(13px, 1.2vw, 15px); color: var(--fg-muted); }
.inv-strip b { font-family: var(--font-display); font-weight: 600; font-size: 1.5em; color: var(--fg); margin-right: 6px; }

.chart { margin: 0; }
.chart-title { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-subtle); margin-bottom: 16px; }
.bars { display: flex; flex-direction: column; gap: 9px; }
.bar-row { display: grid; grid-template-columns: minmax(150px, 220px) 1fr 3ch; align-items: center; gap: 14px; }
.bar-l { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.02em; color: var(--fg-muted); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { position: relative; height: clamp(16px, 2.6vh, 24px); border-left: var(--bw-1) solid var(--line-strong); }
.bar i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: var(--chart-1); border-radius: 0 4px 4px 0; clip-path: inset(0 100% 0 0); }
.is-active .bar i { clip-path: inset(0 -2% 0 0); transition: clip-path 750ms var(--ease-atelier); transition-delay: calc(320ms + var(--i, 0) * 60ms); }
.bar-row:nth-child(1) .bar i { --i: 0; } .bar-row:nth-child(2) .bar i { --i: 1; }
.bar-row:nth-child(3) .bar i { --i: 2; } .bar-row:nth-child(4) .bar i { --i: 3; }
.bar-row:nth-child(5) .bar i { --i: 4; } .bar-row:nth-child(6) .bar i { --i: 5; }
.bar-row:nth-child(7) .bar i { --i: 6; }
.bar-v { font-family: var(--font-mono); font-size: 12.5px; font-variant-numeric: tabular-nums; color: var(--fg); text-align: right; }

/* =============================================================
   S5 · CONVERGENCIA
   ============================================================= */
.converge { display: grid; grid-template-columns: auto clamp(190px, 27vw, 380px) minmax(0, 1fr); align-items: center; gap: 0; }
.converge-left { max-width: 400px; }
.prog-group { padding: 16px 0; }
/* divisor entre ocupacionales y preventivos, contenido en esta columna */
.prog-group + .prog-group { border-top: var(--bw-hair) solid var(--line); }
.legend-key { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-muted); }
.legend-key b { color: var(--fg); font-size: 13px; }
.sw { width: 10px; height: 10px; border-radius: 3px; }
.sw.c1 { background: var(--chart-1); }
.sw.c2 { background: var(--chart-2); }
.prog-dots { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 8px; }
.pd { width: clamp(18px, 2.2vw, 26px); height: clamp(18px, 2.2vw, 26px); border-radius: 6px; opacity: 0; transform: scale(0.6); }
.pd.c1 { background: color-mix(in oklab, var(--chart-1) 30%, var(--bg-elev-1)); border: var(--bw-1) solid var(--chart-1); }
.pd.c2 { background: color-mix(in oklab, var(--chart-2) 30%, var(--bg-elev-1)); border: var(--bw-1) solid var(--chart-2); }
.is-active .pd { opacity: 1; transform: none; transition: opacity 300ms var(--ease-out-quart), transform 300ms var(--ease-out-quart); }
.is-active .prog-dots .pd:nth-child(1) { transition-delay: 500ms; } .is-active .prog-dots .pd:nth-child(2) { transition-delay: 540ms; }
.is-active .prog-dots .pd:nth-child(3) { transition-delay: 580ms; } .is-active .prog-dots .pd:nth-child(4) { transition-delay: 620ms; }
.is-active .prog-dots .pd:nth-child(5) { transition-delay: 660ms; } .is-active .prog-dots .pd:nth-child(6) { transition-delay: 700ms; }
.is-active .prog-dots .pd:nth-child(7) { transition-delay: 740ms; } .is-active .prog-dots .pd:nth-child(8) { transition-delay: 780ms; }
.is-active .prog-dots .pd:nth-child(9) { transition-delay: 820ms; } .is-active .prog-dots .pd:nth-child(10) { transition-delay: 860ms; }
.prog-eg { font-size: 12px; color: var(--fg-subtle); margin: 0; max-width: 40ch; }

/* columna central: caminos que nacen en cada grupo (punto de su color)
   y confluyen en un único punto violeta sobre el protocolo */
/* --aire: respiro entre los grupos y el arranque de las curvas.
   Lo respetan por igual el SVG y los puntos de origen, para que
   los trazos sigan naciendo exactamente en su circulito. */
.converge-mid { position: relative; align-self: stretch; min-height: 180px; --aire: clamp(26px, 3.4vw, 54px); }
/* Ambas dimensiones explícitas: el SVG es elemento reemplazado y con
   inset o width:auto adopta la proporción intrínseca del viewBox (1:1),
   desalineando los extremos del trazo respecto a sus puntos. */
.converge-paths {
  position: absolute; top: 0; left: var(--aire);
  width: calc(100% - var(--aire)); height: 100%;
}
/* Sin non-scaling-stroke a propósito: ese vector-effect calcula el guion en
   espacio de pantalla y anula pathLength, dejando la curva cortada a media
   asta. Con pathLength=100 el guion es relativo al trazo y siempre lo cubre
   entero. El grosor se compensa en unidades de viewBox. */
/* El viewBox es fijo (0 0 100 100), así que la curva mide siempre 104
   unidades de usuario sea cual sea el tamaño en pantalla: el guion va en
   esas mismas unidades, con holgura, para que el trazo llegue completo
   hasta el punto de unión. Sin non-scaling-stroke, que calcularía el guion
   en píxeles de pantalla y volvería a cortarlo a media asta. */
.cvp { fill: none; stroke: var(--line-strong); stroke-width: 0.6; stroke-linecap: round; stroke-dasharray: 106; stroke-dashoffset: 106; }
.is-active .cvp { stroke-dashoffset: 0; transition: stroke-dashoffset 850ms var(--ease-atelier) 1000ms; }
/* Anclas de tamaño cero: fijan el punto exacto sin usar transform, que
   queda libre para la animación pulse del sistema de diseño. */
.cv-dot, .cv-join { position: absolute; width: 0; height: 0; opacity: 0; }
.cv-dot { left: var(--aire); }
.cv-dot.c1 { top: 26%; }
.cv-dot.c2 { top: 76%; }
.cv-join { right: 0; top: 50%; }
.cv-dot .pulse-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; }
.cv-dot.c1 .pulse-dot { background: var(--chart-1); }
.cv-dot.c2 .pulse-dot { background: var(--chart-2); }
.cv-join .pulse-dot { position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; background: var(--violet); }
.is-active .cv-dot { opacity: 1; transition: opacity 320ms var(--ease-out-quart) 950ms; }
.is-active .cv-join { opacity: 1; transition: opacity 340ms var(--ease-out-quart) 1820ms; }

/* --- Pulse dot · portado del sistema de diseño Grimerian ---
   base + variantes .pulse-dot-double (dos rings en relevo) y
   .pulse-dot-soft (sin ring, el punto respira). */
.pulse-dot { display: inline-block; border-radius: 50%; position: relative; flex: 0 0 auto; }
.pulse-dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse-ring 2000ms cubic-bezier(0.25, 1, 0.5, 1) infinite;
}
@keyframes pulse-ring {
  0%   { opacity: 0.55; transform: scale(1); }
  100% { opacity: 0;    transform: scale(2.6); }
}
.pulse-dot-double::before {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: inherit;
  animation: pulse-ring 2000ms cubic-bezier(0.25, 1, 0.5, 1) infinite;
  animation-delay: -1000ms;
}
.pulse-dot-soft::after { display: none; }
.pulse-dot-soft { animation: pulse-dot-soft 2400ms ease-in-out infinite; }
@keyframes pulse-dot-soft {
  0%, 100% { transform: scale(0.85); opacity: 0.7; }
  50%      { transform: scale(1.08); opacity: 1; }
}

.proto-card { background: var(--bg-elev-1); border: var(--bw-1) solid var(--violet); border-radius: var(--r-4); padding: clamp(16px, 2vw, 24px); box-shadow: var(--shadow-2); }
.proto-card .kicker { color: var(--violet); }
.proto-card ul { list-style: none; margin: 12px 0; padding: 0; columns: 2; column-gap: 24px; }
.proto-card li { font-size: clamp(12px, 1.1vw, 13.5px); color: var(--fg-muted); padding: 4px 0; break-inside: avoid; }
.proto-card li::before { content: "· "; color: var(--violet); }
.proto-note { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); margin: 0; border-top: var(--bw-hair) solid var(--line); padding-top: 10px; }

/* =============================================================
   S6 · CICLO (estrategia)
   ============================================================= */
.cycle { position: relative; padding-top: 10px; }
.cycle-line { position: absolute; top: 46px; left: 4%; width: 92%; height: 10px; }
.cyl { fill: none; stroke: var(--line-strong); stroke-width: 1.5; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.is-active .cyl { stroke-dashoffset: 0; transition: stroke-dashoffset 1200ms var(--ease-atelier) 300ms; }
.cycle-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 1.6vw, 22px); }
.cycle-steps li { position: relative; padding-top: 88px; }
/* la línea avanza 1200ms desde 300ms: cada hito aparece cuando lo alcanza */
.cycle-steps li:nth-child(1) { --t: 420ms; }
.cycle-steps li:nth-child(2) { --t: 660ms; }
.cycle-steps li:nth-child(3) { --t: 900ms; }
.cycle-steps li:nth-child(4) { --t: 1140ms; }
.cycle-steps li:nth-child(5) { --t: 1380ms; }
.cycle-n {
  /* centro del círculo = padding .cycle (10) + top (19) + radio (22) = 51,
     igual que el eje de la línea (top 46 + 5) */
  position: absolute; top: 19px; left: 0;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 500;
  background: var(--bg-elev-1); border: var(--bw-2) solid var(--line-strong); color: var(--fg-muted);
  box-shadow: 0 0 0 6px var(--bg);   /* enmascara la línea alrededor del círculo */
  opacity: 0; transform: scale(0.5);
}
.is-active .cycle-n { opacity: 1; transform: none; transition: opacity 280ms var(--ease-out-quart) var(--t), transform 280ms var(--ease-out-quart) var(--t); }
.cycle-steps li.is-user .cycle-n { border-color: var(--accent-text); color: var(--accent-text); background: color-mix(in oklab, var(--accent) 14%, var(--bg-elev-1)); }
/* --- radar del stepper · portado del sistema de diseño ---
   La estación activa emite rings continuos en relevo (utility .anim-radar,
   §12). El inset compensa el borde de 2px del nodo. */
.cycle-steps li.is-user .cycle-n::before,
.cycle-steps li.is-user .cycle-n::after {
  content: ""; position: absolute; inset: calc(var(--bw-2) * -1);
  border-radius: 50%; pointer-events: none;
  animation: anim-radar 5.2s linear infinite;
}
.cycle-steps li.is-user .cycle-n::after { animation-delay: -2.6s; }
@keyframes anim-radar {
  0%   { box-shadow: 0 0 0 4px color-mix(in oklab, var(--indicator-color, var(--accent)) 0%, transparent);
         animation-timing-function: ease-in-out; }
  12%  { box-shadow: 0 0 0 4px color-mix(in oklab, var(--indicator-color, var(--accent)) 22%, transparent);
         animation-timing-function: var(--ease-atelier); }
  77%  { box-shadow: 0 0 0 12px color-mix(in oklab, var(--indicator-color, var(--accent)) 0%, transparent);
         animation-timing-function: linear; }
  100% { box-shadow: 0 0 0 12px color-mix(in oklab, var(--indicator-color, var(--accent)) 0%, transparent); }
}
.cycle-txt { opacity: 0; transform: translateY(10px); }
.is-active .cycle-txt { opacity: 1; transform: none; transition: opacity 420ms var(--ease-atelier) calc(var(--t) + 160ms), transform 420ms var(--ease-atelier) calc(var(--t) + 160ms); }
.cycle-steps h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(14px, 1.35vw, 17px); letter-spacing: -0.005em; color: var(--fg); margin: 0 0 6px; }
.cycle-steps p { font-size: clamp(12px, 1.1vw, 13.5px); line-height: 1.55; color: var(--fg-muted); margin: 0; }
.user-tag { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text); border: var(--bw-1) solid color-mix(in oklab, var(--accent-text) 40%, transparent); border-radius: var(--r-pill); padding: 4px 10px; }

/* =============================================================
   S7 · FLUJO DE MOTORES
   ============================================================= */
.flow { margin: 0; overflow-x: auto; }
.flow-svg { width: 100%; min-width: 760px; height: auto; font-family: var(--font-sans); }
.fnode rect { fill: var(--bg-elev-1); stroke: var(--line-strong); stroke-width: 1; }
.fnode text { fill: var(--fg); font-size: 14px; text-anchor: middle; }
.fnode .fsub { fill: var(--fg-subtle); font-size: 11px; }
.fnode.in rect { fill: var(--bg-sunken); stroke: var(--line); }
.fnode.in text { fill: var(--fg-muted); }
.fnode.motor rect { fill: color-mix(in oklab, var(--chart-1) 16%, var(--bg-elev-1)); stroke: var(--chart-1); stroke-width: 1.5; }
.fnode.motor .fm-k { fill: var(--accent-text); font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; }
.fnode.motor .fm-t { fill: var(--fg); font-size: 15px; font-weight: 600; }
.fnode.m2 rect { fill: color-mix(in oklab, var(--chart-2) 14%, var(--bg-elev-1)); stroke: var(--chart-2); }
.fnode.m2 .fm-k { fill: var(--chart-2); }
.fnode.out rect { stroke: var(--line-strong); }
.fnode.out text { font-size: 12.5px; fill: var(--fg-muted); }

/* Timeline del flujo: base 300ms, un beat = 225ms, trazo = 2 beats.
   Cada arista se dibuja durante 2 beats y su cabeza aparece al llegar,
   junto con el nodo destino. */
.flow-svg { --t0: 300ms; --beat: 225ms; }
.fnode { opacity: 0; transform: translateY(10px); }
.is-active .fnode {
  opacity: 1; transform: none;
  transition: opacity 420ms var(--ease-atelier), transform 420ms var(--ease-atelier);
  transition-delay: calc(var(--t0) + var(--d, 0) * var(--beat));
}

/* aristas: se dibujan de origen a destino */
.fedge { fill: none; stroke: var(--fg-subtle); stroke-width: 1.5; opacity: 0; stroke-dasharray: 100; stroke-dashoffset: 100; }
.is-active .fedge {
  opacity: 1; stroke-dashoffset: 0;
  transition: opacity 120ms linear, stroke-dashoffset 450ms linear;
  transition-delay: calc(var(--t0) + var(--d, 0) * var(--beat));
}
/* cabezas: aparecen cuando el trazo ya alcanzó el destino */
.fhead { fill: var(--fg-subtle); opacity: 0; transform: scale(0.4); transform-box: fill-box; transform-origin: center; }
.is-active .fhead {
  opacity: 1; transform: scale(1);
  transition: opacity 200ms var(--ease-out-quart), transform 260ms var(--ease-out-quart);
  transition-delay: calc(var(--t0) + var(--d, 0) * var(--beat));
}

/* El lazo se revela por máscara —no por dashoffset— porque su guion ya
   está ocupado en dibujar los puntos. La marcha arranca al terminar. */
.floop { fill: none; stroke: var(--chart-2); stroke-width: 1.5; stroke-dasharray: 7 6; marker-end: url(#mk); color: var(--chart-2); opacity: 0; }
.is-active .floop { opacity: 1; transition: opacity 150ms linear 3900ms; animation: march 1.4s linear infinite 4950ms; }
.floop-reveal { stroke-dasharray: 780; stroke-dashoffset: 780; }
.is-active .floop-reveal { stroke-dashoffset: 0; transition: stroke-dashoffset 1000ms var(--ease-out-quart) 3900ms; }
@keyframes march { to { stroke-dashoffset: -26; } }
/* el rótulo entra al cerrar el lazo (revelación: 3900 + 1000ms) */
.floop-label { fill: var(--chart-2); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; text-anchor: middle; opacity: 0; }
.is-active .floop-label { opacity: 1; transition: opacity 420ms var(--ease-out-quart) 4900ms; }

/* =============================================================
   S8 · ESCALA
   ============================================================= */
.scale-wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 56px); align-items: center; }
.scale-hero { position: relative; padding: clamp(18px, 3vh, 32px) 0; }
.scale-num { display: block; font-family: var(--font-display); font-weight: 600; font-size: clamp(3rem, 7.5vw, 6rem); line-height: 1; letter-spacing: -0.03em; color: var(--fg); font-variant-numeric: tabular-nums; }
.scale-label { display: block; margin-top: 14px; font-size: clamp(13px, 1.25vw, 15px); color: var(--fg-muted); max-width: 34ch; line-height: 1.6; }
.scale-dots { position: absolute; inset: -10px -20px; z-index: -1; opacity: 0.5;
  background-image: radial-gradient(color-mix(in oklab, var(--accent-text) 35%, transparent) 1px, transparent 1.5px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 0%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 90% at 30% 50%, #000 0%, transparent 75%);
}
.scale-rules { list-style: none; margin: 0; padding: 0; }
.scale-rules li { display: flex; gap: 16px; align-items: flex-start; padding: 14px 0; border-top: var(--bw-hair) solid var(--line); font-size: clamp(13px, 1.2vw, 15px); line-height: 1.6; color: var(--fg-muted); }
.scale-rules .ic { color: var(--accent-text); margin-top: 3px; }
.scale-rules strong { color: var(--fg); font-weight: 600; }

/* =============================================================
   S9 · STACK
   ============================================================= */
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-layer {
  display: grid; grid-template-columns: 110px 1fr auto; gap: 18px; align-items: center;
  background: var(--bg-elev-1); border: var(--bw-1) solid var(--line); border-radius: var(--r-3);
  padding: clamp(10px, 1.6vh, 16px) clamp(14px, 1.8vw, 22px);
  font-size: clamp(13px, 1.2vw, 14.5px); color: var(--fg-muted); line-height: 1.5;
}
.stack-layer strong { color: var(--fg); font-weight: 600; }
.stack-layer.ia { border-color: color-mix(in oklab, var(--violet) 45%, var(--line)); }
.stack-k { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--fg-subtle); }
.stack-layer.ia .stack-k { color: var(--violet); }
.tag { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); border: var(--bw-1) solid color-mix(in oklab, var(--accent-text) 40%, transparent); border-radius: var(--r-pill); padding: 4px 10px; white-space: nowrap; }
.tag.soft { color: var(--fg-subtle); border-color: var(--line-strong); }

.ci { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; margin-top: clamp(14px, 2.5vh, 24px); }
.ci-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--fg-subtle); }
.ci-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ci-chips span { font-family: var(--font-mono); font-size: 11px; color: var(--fg-muted); background: var(--bg-sunken); border-radius: var(--r-1); padding: 5px 10px; }
.ci-chips span:not(:last-child)::after { content: ""; }
/* El retardo sale de --n declarado en el HTML, no de nth-child: así agregar
   o quitar etapas nunca deja una sin escalonar. */
.is-active .ci-chips span {
  animation: pop 320ms var(--ease-out-quart) backwards;
  animation-delay: calc(650ms + var(--n, 0) * 55ms);
}
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* =============================================================
   S10 · ROADMAP
   ============================================================= */
.road { position: relative; padding-top: 8px; }
.road-line { position: absolute; top: 36px; left: 2%; width: 96%; height: 10px; }
.is-active .road-line .cyl { transition: stroke-dashoffset 1500ms var(--ease-atelier) 300ms; }
.road-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: clamp(8px, 1vw, 14px); }
.road-steps li { padding-top: 58px; position: relative; }
/* la línea avanza 1500ms desde 300ms: hito al paso, texto después */
.road-steps li:nth-child(1) { --t: 340ms; }
.road-steps li:nth-child(2) { --t: 540ms; }
.road-steps li:nth-child(3) { --t: 740ms; }
.road-steps li:nth-child(4) { --t: 940ms; }
.road-steps li:nth-child(5) { --t: 1140ms; }
.road-steps li:nth-child(6) { --t: 1340ms; }
.road-steps li:nth-child(7) { --t: 1540ms; }
.road-steps li::before {
  /* centro del hito = padding .road (8) + top (26) + radio (7) = 41,
     igual que el eje de la línea (top 36 + 5) */
  content: ""; position: absolute; top: 26px; left: 2px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--bg); border: 2px solid var(--line-strong);
  box-shadow: 0 0 0 5px var(--bg);   /* separa la línea del círculo */
  opacity: 0; transform: scale(0.5);
}
.is-active .road-steps li::before { opacity: 1; transform: scale(1); transition: opacity 260ms var(--ease-out-quart) var(--t), transform 260ms var(--ease-out-quart) var(--t); }
.road-steps li.core::before { border-color: var(--accent-text); background: color-mix(in oklab, var(--accent) 14%, var(--bg)); }
.road-steps li > * { opacity: 0; transform: translateY(10px); }
.is-active .road-steps li > * { opacity: 1; transform: none; transition: opacity 420ms var(--ease-atelier) calc(var(--t) + 160ms), transform 420ms var(--ease-atelier) calc(var(--t) + 160ms); }
.road-steps b { font-family: var(--font-display); font-weight: 600; font-size: clamp(15px, 1.6vw, 20px); color: var(--fg-subtle); display: block; }
.road-steps li.core b { color: var(--accent-text); }
.road-steps h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(12.5px, 1.2vw, 15px); letter-spacing: -0.005em; color: var(--fg); margin: 4px 0 6px; }
.road-steps p { font-size: clamp(11px, 1vw, 12.5px); line-height: 1.5; color: var(--fg-muted); margin: 0 0 8px; }
.road-n { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }

/* =============================================================
   S11 · ECONÓMICO
   ============================================================= */
.econ { border: var(--bw-1) solid var(--line); border-radius: var(--r-3); overflow: hidden; background: var(--bg-elev-1); }
.econ-row { display: grid; grid-template-columns: 1.4fr 1fr 0.8fr; gap: 16px; padding: 13px 20px; border-top: var(--bw-hair) solid var(--line); font-size: clamp(13px, 1.2vw, 14.5px); color: var(--fg-muted); align-items: center; }
.econ-row:first-child { border-top: none; }
.econ-head { background: var(--bg-sunken); font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); }
.econ-row.total { border-top: var(--bw-1) solid var(--line-strong); color: var(--fg); font-weight: 600; }
.sk { display: block; height: 14px; border-radius: var(--r-1); max-width: 120px;
  background: linear-gradient(90deg, var(--sk-a) 25%, var(--sk-b) 50%, var(--sk-a) 75%);
  background-size: 200% 100%; animation: shimmer var(--dur-7) var(--ease-in-out) infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.econ-amount { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); white-space: nowrap; }
.econ-row.total .econ-amount { color: var(--accent-text); }
.econ-by { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--fg-subtle); white-space: nowrap; }
.econ-caption { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-text); margin: clamp(16px, 3vh, 26px) 0 2px; }
.econ-terms { list-style: none; margin: 6px 0 0; padding: 0; }
.econ-terms li { padding: 9px 0; border-top: var(--bw-hair) solid var(--line); font-size: clamp(12.5px, 1.15vw, 14px); color: var(--fg-muted); line-height: 1.55; max-width: 84ch; }
.econ-terms li::before { content: "· "; color: var(--accent-text); }

/* =============================================================
   S12 · ENTREGA
   ============================================================= */
.deliver { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 4vw, 64px); }
.deliver h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(16px, 1.6vw, 20px); letter-spacing: -0.008em; color: var(--fg); margin: 0 0 14px; }
.deliver p { font-size: clamp(12.5px, 1.15vw, 14px); line-height: 1.65; color: var(--fg-muted); margin: 16px 0 0; max-width: 52ch; }
.mini-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; counter-reset: ms; }
.mini-steps li { counter-increment: ms; display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11.5px; color: var(--fg); background: var(--bg-elev-1); border: var(--bw-1) solid var(--line); border-radius: var(--r-pill); padding: 8px 14px; }
.mini-steps li::before { content: counter(ms); font-size: 10px; color: var(--accent-text); }
.grow-list { list-style: none; margin: 0; padding: 0; }
.grow-list li { padding: 9px 0; border-top: var(--bw-hair) solid var(--line); font-size: clamp(12.5px, 1.15vw, 14px); color: var(--fg-muted); line-height: 1.55; }
.grow-list em { font-style: normal; color: var(--accent-text); }

/* =============================================================
   CHROME (navegación)
   ============================================================= */
.chrome {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: var(--z-sticky);
  /* Rejilla con laterales de ancho idéntico —minmax(0,1fr)— en vez de
     space-between: así el título, que cambia de largo en cada slide, no
     desplaza los dots ni los controles. */
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center; gap: 16px;
  padding: 10px 20px calc(10px + env(safe-area-inset-bottom, 0px));
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--bg) 82%, transparent) 45%, color-mix(in oklab, var(--bg) 96%, transparent));
  pointer-events: none;
}
.chrome > * { pointer-events: auto; }
.chrome-brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.chrome-brand img { width: 18px; height: 18px; }
.chrome-brand span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--fg-subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dots { display: flex; gap: 4px; }
.dots button { width: 26px; height: 30px; padding: 0; background: none; border: none; cursor: pointer; display: grid; place-items: center; }
.dots button::after { content: ""; width: 16px; height: 3px; border-radius: var(--r-pill); background: var(--line-strong); transition: background var(--dur-1) var(--ease-out-quart), transform var(--dur-1) var(--ease-out-quart); }
.dots button:hover::after { background: var(--fg-subtle); }
.dots button.is-on::after { background: var(--accent-text); transform: scaleX(1.3); }
.dots button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: var(--r-1); }

.chrome-ctrl { display: flex; align-items: center; gap: 8px; justify-self: end; }
.counter { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.08em; color: var(--fg-muted); font-variant-numeric: tabular-nums; margin-right: 6px; }
.nav-btn {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; cursor: pointer;
  background: var(--bg-elev-1); border: var(--bw-1) solid var(--line-strong); color: var(--fg-muted);
  transition: color var(--dur-1) var(--ease-out-quart), border-color var(--dur-1) var(--ease-out-quart), transform var(--dur-1) var(--ease-out-quart);
}
.nav-btn:hover { color: var(--fg); border-color: var(--fg-subtle); }
.nav-btn:active { transform: scale(0.95); }
.nav-btn:disabled { opacity: 0.4; cursor: default; }
.nav-btn:focus-visible, .atmos-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.atmos-toggle {
  height: 44px; padding: 0 16px; cursor: pointer; border-radius: var(--r-pill);
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  background: transparent; border: var(--bw-1) solid var(--line-strong); color: var(--fg-muted);
  transition: color var(--dur-1) var(--ease-out-quart), border-color var(--dur-1) var(--ease-out-quart);
}
.atmos-toggle:hover { color: var(--fg); border-color: var(--fg-subtle); }

/* =============================================================
   RESPONSIVE
   ============================================================= */
@media (max-width: 900px) {
  .dots { display: none; }
  .pains { grid-template-columns: 1fr; }
  .cycle-line, .road-line { display: none; }
  .cycle-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .cycle-steps li { padding-top: 0; padding-left: 58px; min-height: 48px; }
  .cycle-n { top: 0; box-shadow: none; }
  .road-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px; }
  .road-steps li { padding-top: 0; padding-left: 20px; }
  .road-steps li::before { top: 6px; left: 0; box-shadow: none; }
  .converge { grid-template-columns: 1fr; gap: 8px; }
  .converge-mid { display: none; }
  .scale-wrap { grid-template-columns: 1fr; gap: 10px; }
  .frontier { grid-template-columns: 1fr; }
  .frontier-axis { display: none; }
  .deliver { grid-template-columns: 1fr; }
  .stack-layer { grid-template-columns: 1fr; gap: 6px; }
  .econ-row { grid-template-columns: 1.3fr 1fr 0.7fr; gap: 8px; padding: 11px 14px; }
  .chrome-brand span { display: none; }
}
@media (max-width: 560px) {
  .slide-inner { padding: 40px 20px 92px; }
  .cover-chips { gap: 6px; }
  .ticket-dot small { display: none; }
  .inv-strip { gap: 6px 20px; }
  .bar-row { grid-template-columns: minmax(96px, 130px) 1fr 3ch; gap: 8px; }
  .bar-l { font-size: 10px; }
}

/* =============================================================
   ESTADO ASENTADO
   El motor marca .is-settled ~1.8s después de activar un slide:
   garantiza el estado final aunque el reloj de animación se haya
   congelado (pestaña oculta, render suspendido).
   ============================================================= */
.slide.is-settled [data-anim],
.slide.is-settled .pd,
.slide.is-settled .fnode,
.slide.is-settled .floop,
.slide.is-settled .ticket-dot,
.slide.is-settled .cycle-txt,
.slide.is-settled .road-steps li > *,
.slide.is-settled .cv-dot,
.slide.is-settled .cv-join { opacity: 1; transform: none; transition: none; }
.slide.is-settled .fedge { opacity: 1; stroke-dashoffset: 0; transition: none; }
.slide.is-settled .floop-reveal { stroke-dashoffset: 0; transition: none; }
.slide.is-settled .floop-label { opacity: 1; transition: none; }
.slide.is-settled .fhead { opacity: 1; transform: scale(1); transition: none; }
.slide.is-settled .cycle-n { opacity: 1; transform: none; transition: none; }
.slide.is-settled .road-steps li::before { opacity: 1; transform: scale(1); transition: none; }
.slide.is-settled .ticket-dot i { transform: translate(-50%, -50%) scale(1); transition: none; }
.slide.is-settled .bar i { clip-path: inset(0 -2% 0 0); transition: none; }
.slide.is-settled .ticket-bar { transform: scaleX(1); transition: none; }
.slide.is-settled .cvp, .slide.is-settled .cyl { stroke-dashoffset: 0 !important; transition: none; }
.slide.is-settled .ci-chips span { animation: none; opacity: 1; }

/* =============================================================
   REDUCED MOTION
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  .slide, .slide.is-active, .slide.is-leaving,
  [data-anim], .is-active [data-anim],
  .bar i, .is-active .bar i,
  .ticket-bar, .is-active .ticket-bar,
  .ticket-dot, .is-active .ticket-dot, .ticket-dot i, .is-active .ticket-dot i,
  .pd, .is-active .pd,
  .cvp, .is-active .cvp, .cyl, .is-active .cyl,
  .cv-dot, .is-active .cv-dot, .cv-join, .is-active .cv-join,
  .cycle-n, .is-active .cycle-n, .cycle-txt, .is-active .cycle-txt,
  .road-steps li::before, .is-active .road-steps li::before,
  .road-steps li > *, .is-active .road-steps li > *,
  .fnode, .is-active .fnode, .fedge, .is-active .fedge,
  .fhead, .is-active .fhead,
  .progress-fill {
    transition: none !important;
  }
  .fhead { opacity: 1; transform: scale(1); }
  .ticket-bar { transform: scaleX(1) !important; }
  [data-anim], .pd, .fnode, .cycle-txt, .road-steps li > *, .ticket-dot { opacity: 1; transform: none; }
  .cycle-n, .road-steps li::before { opacity: 1; transform: scale(1); }
  .ticket-dot i { transform: translate(-50%, -50%) scale(1); }
  .cv-dot { opacity: 1; transform: translate(-50%, -50%) scale(1); }
  .cv-join { opacity: 1; transform: translate(50%, -50%) scale(1); }
  .fedge { opacity: 1; stroke-dashoffset: 0 !important; }
  .bar i { clip-path: inset(0 0 0 0) !important; }
  .cvp, .cyl { stroke-dashoffset: 0 !important; }
  .pulse-dot, .pulse-dot::after, .pulse-dot::before { animation: none !important; }
  .pulse-dot-soft { opacity: 1; transform: none; }
  .floop-reveal { stroke-dashoffset: 0 !important; transition: none !important; }
  .floop-label { opacity: 1; transition: none !important; }
  /* radar fuera; el nodo conserva un ring estático como identidad */
  .cycle-steps li.is-user .cycle-n::before,
  .cycle-steps li.is-user .cycle-n::after { display: none; }
  .cycle-steps li.is-user .cycle-n { box-shadow: 0 0 0 6px var(--bg), 0 0 0 10px color-mix(in oklab, var(--accent) 22%, transparent); }
  .floop { animation: none !important; opacity: 1; transition: none !important; }
  .key-hint .ic { animation: none; }
  .s-cover .cover-atm::after { animation: none !important; opacity: 0.16; transform: none; }
  .sk { animation: none; background: var(--sk-a); }
  .is-active .ci-chips span { animation: none; }
}
