/* ==========================================================================
   CENTINELA · Anteproyecto — web de la presentación
   Diseño: lenguaje Apple con materiales Liquid Glass. Lienzo de referencia
   1920 × 1080: en escritorio todo se mide en «píxeles de diseño» (--px) para
   que cada diapositiva ocupe una pantalla; en móvil el contenido fluye.
   ========================================================================== */

@font-face {
  font-family: "SFPD";
  src: local("SF Pro Display Regular"), local("SFProDisplay-Regular"),
       url("fonts/sf-pro-display-regular.otf") format("opentype");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SFPD";
  src: local("SF Pro Display Medium"), local("SFProDisplay-Medium"),
       url("fonts/sf-pro-display-medium.otf") format("opentype");
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "SFPD";
  src: local("SF Pro Display Bold"), local("SFProDisplay-Bold"),
       url("fonts/sf-pro-display-bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  color-scheme: dark;

  /* Color (paleta del sistema de Apple en modo oscuro) */
  --bg: #0a0a0c;
  --l1: #f5f5f7;
  --l2: #d1d1d6;
  --l3: #a1a1a6;
  --l4: #8e8e93;
  --l5: #636366;
  --red: #ff453a;
  --red-2: #ff6961;
  --green: #32d74b;
  --yellow: #ffd60a;
  --hair: rgba(255, 255, 255, .12);
  --wire: rgba(255, 255, 255, .42);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --font: "SFPD", -apple-system, BlinkMacSystemFont, "SF Pro Display", system-ui, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono", Consolas, monospace;

  /* 1 píxel de diseño: el lienzo 1920 × 1080 encaja en la ventana */
  --px: min(calc(100vw / 1920), calc(100vh / 1080));
  --pad-x: calc(128 * var(--px));

  /* Escala tipográfica (12 pt = 24 px de diseño) */
  --fs-hero: calc(144 * var(--px));
  --fs-title: calc(72 * var(--px));
  --fs-lead: max(17px, calc(40 * var(--px)));
  --fs-card: max(15px, calc(30 * var(--px)));
  --fs-body: max(14px, calc(28 * var(--px)));
  --fs-small: max(12.5px, calc(24 * var(--px)));

  --r-lg: calc(32 * var(--px));
  --r-md: calc(28 * var(--px));
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  background: var(--bg);
  scroll-snap-type: y proximity;
  scroll-behavior: auto;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html.is-gliding { scroll-snap-type: none; }

body {
  margin: 0;
  background: transparent; /* el fondo vive en <html> para que .ambient quede detrás */
  color: var(--l1);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.4;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button { font: inherit; color: inherit; }
em { font-style: normal; color: var(--red); }
strong { font-weight: 500; color: var(--l1); }
hr { border: 0; height: 1px; margin: 0; background: var(--hair); }
kbd {
  display: inline-grid; place-items: center;
  min-width: 1.7em; height: 1.7em; padding: 0 .35em;
  border-radius: .5em;
  font: 500 .9em/1 var(--font);
  color: var(--l2);
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .18);
}
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.mono { font-family: var(--mono); letter-spacing: 0; }
.dim { color: var(--l3); }
.light { color: var(--l2); }

.icon {
  width: 1em; height: 1em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible {
  outline: 2px solid var(--red-2);
  outline-offset: 3px;
}

/* ---------- Barras de desplazamiento: píldora fina ------------------------
   Chromium y Safari usan ::-webkit-scrollbar (el borde transparente con
   background-clip separa la píldora del canto); Firefox solo admite las
   propiedades estándar, que se limitan a él porque en Chromium anularían
   la píldora. */

::-webkit-scrollbar { width: 10px; height: 10px; background: transparent; }
::-webkit-scrollbar-track,
::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-thumb {
  min-height: 40px;
  border: 3px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, .22) padding-box;
}
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .38); }
::-webkit-scrollbar-thumb:active { background-color: rgba(255, 255, 255, .5); }

@supports (-moz-appearance: none) {
  * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .25) transparent; }
}

/* La página no reserva carril: la barra nativa se oculta y una píldora
   propia (.rail) flota sobre el fondo. Sin JS queda la barra fina de arriba. */
.has-rail { scrollbar-width: none; }
.has-rail::-webkit-scrollbar { display: none; }

.rail {
  position: fixed;
  top: 8px; bottom: 8px; right: 2px;
  z-index: 60;
  width: 14px;
  touch-action: none;
}
.rail[hidden] { display: none; }
/* Dentro de un panel (índice): JS fija top y height sobre la lista */
.rail--inset { position: absolute; bottom: auto; right: 3px; z-index: 2; }
.rail-thumb {
  position: absolute;
  top: 0; right: 3px;
  width: 6px;
  height: var(--h, 40px);
  border-radius: 999px;
  background: rgba(255, 255, 255, .3);
  box-shadow: 0 0 0 .5px rgba(0, 0, 0, .25);
  transform: translateY(var(--y, 0));
  opacity: 0;
  cursor: grab;
  transition: opacity .45s var(--ease), width .2s var(--ease), background-color .2s;
}
.rail:hover .rail-thumb,
.rail.is-active .rail-thumb { opacity: 1; transition-duration: .15s, .2s, .2s; }
.rail:hover .rail-thumb,
.rail.is-dragging .rail-thumb { width: 8px; background: rgba(255, 255, 255, .45); }
.rail.is-dragging .rail-thumb { cursor: grabbing; background: rgba(255, 255, 255, .55); }

/* ---------- Fondo ambiental ------------------------------------------- */

.ambient {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(110% 80% at 0% 100%, #1d1d22 0%, rgba(29, 29, 34, 0) 58%),
    var(--bg);
  --gx: 74; --gy: 44; --ga: 1;
}
.ambient .glow {
  position: absolute;
  left: 0; top: 0;
  width: 112vmax; height: 112vmax;
  border-radius: 50%;
  background: radial-gradient(closest-side,
    rgba(255, 69, 58, .22) 0%,
    rgba(255, 69, 58, .095) 38%,
    rgba(255, 69, 58, .03) 66%,
    rgba(255, 69, 58, 0) 100%);
  transform: translate3d(calc(var(--gx) * 1vw - 56vmax), calc(var(--gy) * 1vh - 56vmax), 0);
  opacity: var(--ga);
  transition: transform 1.6s var(--ease), opacity 1.6s var(--ease);
}
.ambient::after { /* grano muy sutil contra el banding del degradado */
  content: "";
  position: absolute; inset: 0;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ---------- Materiales Liquid Glass ------------------------------------
   .glass        cristal claro: tarjetas, pastillas, paneles
   .glass--red   cristal teñido de rojo: veredictos, avisos
   .glass--dashed contorno discontinuo: lo pendiente o de apoyo
   .glass-heavy  cristal grueso: la barra de navegación y el índice
   ------------------------------------------------------------------------ */

.glass {
  position: relative;
  border-radius: var(--r, var(--r-lg));
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .075) 0%, rgba(255, 255, 255, .022) 42%, rgba(255, 255, 255, .04) 100%);
  -webkit-backdrop-filter: blur(22px) saturate(170%);
  backdrop-filter: blur(22px) saturate(170%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .16),
    inset 0 -1px 0 0 rgba(255, 255, 255, .04),
    0 1px 2px rgba(0, 0, 0, .22),
    0 22px 50px -26px rgba(0, 0, 0, .7);
}
/* Borde de luz: brilla arriba a la izquierda y abajo a la derecha */
.glass::before,
.glass-heavy::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(135deg,
    rgba(255, 255, 255, .42) 0%,
    rgba(255, 255, 255, .1) 20%,
    rgba(255, 255, 255, .035) 50%,
    rgba(255, 255, 255, .09) 80%,
    rgba(255, 255, 255, .26) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Reflejo especular que sigue al puntero */
.glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 55%);
  opacity: 0;
  transition: opacity .5s var(--ease);
}
.glass:hover::after { opacity: 1; }

.glass--red {
  background:
    linear-gradient(180deg, rgba(255, 69, 58, .12) 0%, rgba(255, 69, 58, .035) 45%, rgba(255, 69, 58, .07) 100%);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 150, 140, .22),
    inset 0 -1px 0 0 rgba(255, 69, 58, .08),
    0 1px 2px rgba(0, 0, 0, .22),
    0 22px 50px -26px rgba(0, 0, 0, .7),
    0 0 60px -30px rgba(255, 69, 58, .45);
}
.glass--red::before {
  background: linear-gradient(135deg,
    rgba(255, 140, 130, .8) 0%,
    rgba(255, 69, 58, .32) 22%,
    rgba(255, 69, 58, .16) 52%,
    rgba(255, 69, 58, .28) 80%,
    rgba(255, 150, 140, .6) 100%);
}

.glass--dashed {
  position: relative;
  border-radius: var(--r, var(--r-lg));
  background: rgba(255, 255, 255, .025);
  border: max(1px, calc(2 * var(--px))) dashed rgba(255, 255, 255, .3);
}

.glass-heavy {
  position: relative;
  background: linear-gradient(180deg, rgba(58, 58, 66, .5) 0%, rgba(28, 28, 32, .42) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(190%) brightness(1.1);
  backdrop-filter: blur(18px) saturate(190%) brightness(1.1);
  box-shadow:
    inset 0 1px 0 0 rgba(255, 255, 255, .24),
    inset 0 -1px 0 0 rgba(255, 255, 255, .06),
    0 2px 6px rgba(0, 0, 0, .28),
    0 18px 50px rgba(0, 0, 0, .5);
}
/* Refracción líquida (solo motores Chromium, que admiten filtros SVG en backdrop-filter) */
html.refract .dock {
  -webkit-backdrop-filter: url(#lg-refract) blur(7px) saturate(190%) brightness(1.1);
  backdrop-filter: url(#lg-refract) blur(7px) saturate(190%) brightness(1.1);
}

/* ---------- Estructura de diapositiva --------------------------------- */

.slide {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  scroll-snap-align: start;
}
.stage {
  position: relative;
  width: calc(1920 * var(--px));
  height: calc(1080 * var(--px));
  padding: calc(128 * var(--px)) var(--pad-x) calc(161 * var(--px));
  display: flex;
  flex-direction: column;
}

.slide-head {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: calc(54 * var(--px)) auto;
  align-items: center;
  row-gap: calc(17 * var(--px));
}
.eyebrow {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: .125em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow--muted { color: var(--l3); }
.status { justify-self: end; }
.slide-title {
  grid-column: 1 / -1;
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.021em;
  text-wrap: balance;
}
.slide-body {
  position: relative;
  flex: 1;
  min-height: 0;
  margin-top: calc(44 * var(--px));
}

.sub-label {
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .083em;
  text-transform: uppercase;
  color: var(--l4);
}
.sub-label--light { color: var(--l3); }

/* Pastillas */
.pill {
  --r: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  height: calc(54 * var(--px));
  min-height: 30px;
  padding: 0 max(13px, calc(28 * var(--px)));
  border-radius: 999px;
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1;
  color: var(--l2);
  white-space: nowrap;
}
.pill--mono { font-family: var(--mono); font-weight: 400; color: var(--l1); }
.pill--red {
  color: var(--red-2);
  background: linear-gradient(180deg, rgba(255, 69, 58, .16), rgba(255, 69, 58, .08));
  box-shadow: inset 0 1px 0 rgba(255, 150, 140, .25), 0 0 40px -16px rgba(255, 69, 58, .6);
}
.pill--red::before {
  background: linear-gradient(135deg, rgba(255, 140, 130, .85), rgba(255, 69, 58, .35) 35%, rgba(255, 69, 58, .25) 65%, rgba(255, 150, 140, .6));
}
.pill--dashed {
  background: none;
  border: max(1px, calc(2 * var(--px))) dashed rgba(255, 255, 255, .45);
}

/* Tarjetas */
.card {
  --r: var(--r-lg);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: calc(14 * var(--px));
  padding: calc(33 * var(--px));
}
.card h3 {
  font-size: var(--fs-body);
  font-weight: 500;
  line-height: 1.3;
}
.card p { font-size: var(--fs-small); line-height: 1.45; color: var(--l3); }
.card p.light { color: var(--l2); }
.num {
  font-family: var(--mono);
  font-size: var(--fs-small);
  line-height: 1.2;
  color: var(--red);
}

.tile {
  --r: calc(20 * var(--px));
  display: grid;
  place-items: center;
  width: calc(63 * var(--px));
  height: calc(63 * var(--px));
  min-width: 34px; min-height: 34px;
  border-radius: var(--r);
  font-size: max(20px, calc(40 * var(--px)));
  color: var(--l1);
}
.tile--red {
  color: var(--red);
  background: linear-gradient(180deg, rgba(255, 69, 58, .2), rgba(255, 69, 58, .12));
  box-shadow: inset 0 0 0 1px rgba(255, 69, 58, .4), inset 0 1px 0 rgba(255, 160, 150, .3);
}

/* Conectores. --p (0 → 1) es el avance del trazo: la línea crece desde su
   origen y la punta viaja en el extremo, apuntando a su destino. */
@property --p { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --dl { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --dh { syntax: "<number>"; inherits: true; initial-value: 0; }

.wire {
  --c: var(--wire);
  --hs: max(8px, calc(13 * var(--px)));
  position: relative;
  display: block;
  width: 100%;
  height: 2px;
}
.wire::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: calc(var(--p) * 100%);
  height: 100%;
  border-radius: 2px;
  background: var(--c);
}
.wire::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(var(--p) * 100% - var(--hs) * 1.2071);
  width: var(--hs);
  height: var(--hs);
  border: solid var(--c);
  border-width: 2px 2px 0 0;
  border-radius: 0 2px 0 0;
  transform: translateY(-50%) rotate(45deg);
  opacity: min(1, calc(var(--p) * 8));
}
.wire--red { --c: var(--red); }
.wire--red::before { box-shadow: 0 0 14px rgba(255, 69, 58, .55); }
.wire--plain::after { display: none; }
/* En vertical crece hacia abajo */
.wire--v { width: 2px; height: 100%; }
.wire--v::before { width: 100%; height: calc(var(--p) * 100%); }
.wire--v::after {
  left: 50%;
  top: calc(var(--p) * 100% - var(--hs) * 1.2071);
  transform: translateX(-50%) rotate(135deg);
}

/* Versión SVG (la crea centinela.js). El trazo es opaco y la transparencia
   se aplica al conector entero: donde línea y punta se solapan no aparece
   una junta más oscura, y el conjunto se lee como una sola flecha. */
.wire.is-svg { --stroke: #fff; --o: .42; opacity: var(--o); }
.wire--red.is-svg { --stroke: var(--red); --o: 1; }
.wire.is-svg::before,
.wire.is-svg::after { display: none; }
.wire-body,
.wire-head {
  position: absolute;
  overflow: visible;
  fill: none;
  stroke: var(--stroke);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wire-head path { vector-effect: non-scaling-stroke; }
.wire-body { left: 0; top: 0; width: calc(var(--p) * 100%); height: 100%; }
.wire-head {
  left: calc(var(--p) * 100% - var(--hs) * .7071);
  top: 50%;
  width: calc(var(--hs) * .7071);
  height: calc(var(--hs) * 1.4142);
  transform: translateY(-50%);
  opacity: min(1, calc(var(--p) * 8));
}
.wire-v { display: none; }
.wire--red .wire-body { filter: drop-shadow(0 0 6px rgba(255, 69, 58, .6)); }
.wire--plain .wire-head { display: none; }
/* En vertical crece hacia abajo */
.wire--v .wire-body { width: 100%; height: calc(var(--p) * 100%); }
.wire--v .wire-head {
  left: 50%;
  top: calc(var(--p) * 100% - var(--hs) * .7071);
  width: calc(var(--hs) * 1.4142);
  height: calc(var(--hs) * .7071);
  transform: translateX(-50%);
}
.wire--v .wire-h { display: none; }
.wire--v .wire-v { display: inline; }


/* ---------- Animación: estado inicial --------------------------------- */
/* Lo marcado con data-fx empieza oculto y lo revela centinela.js.
   Sin JS (o si falla) todo se ve tal cual. */
.js [data-fx],
.js [data-grow] { opacity: 0; }
.js [data-draw] { --dl: 1; --dh: 1; }

.caret {
  display: none;
  width: max(2px, calc(3 * var(--px)));
  height: 1.15em;
  margin-left: 2px;
  border-radius: 1px;
  background: var(--red);
  vertical-align: -0.18em;
}
.is-typing .caret { display: inline-block; animation: caret-blink 1.06s steps(1, end) infinite; }
@keyframes caret-blink { 50% { opacity: 0; } }

/* Transición entre diapositivas: la que sale se aleja hacia el fondo, ligada
   al propio desplazamiento (solo escritorio). Solo usa transformaciones: si se
   animara la opacidad de la diapositiva, el cristal dejaría de desenfocar lo
   que tiene detrás. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) and (min-width: 1000px) and (min-aspect-ratio: 1/1) {
    .stage {
      transform-origin: 50% 100%;
      animation: stage-out linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }
    @keyframes stage-out {
      to { transform: scale(.92); }
    }
  }
}

/* ==========================================================================
   01 · Portada
   ========================================================================== */

.slide--cover .stage { display: block; }
/* Bajo los nombres y el ciclo, como etiqueta del trabajo */
/* Mismo cuerpo, interlineado y separación que la línea del ciclo; las
   mayúsculas se reducen un poco para que no parezcan más grandes */
.cover-kicker {
  margin-top: calc(11 * var(--px)); /* misma distancia entre líneas base que nombres → ciclo */
  font-size: calc(var(--fs-small) * .84);
  line-height: calc(1.4 / .84);
  letter-spacing: .1em;
  color: var(--l4);
}
.cover-copy {
  position: absolute;
  left: var(--pad-x);
  top: calc(400 * var(--px));
  width: calc(927 * var(--px));
  z-index: 1;
}
.cover-title {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.028em;
}
/* Logotipo SVG: 1 em = 100 unidades, la misma altura y línea base que tenía
   el texto (1,03 em de alto, base a 0,865 em), así nada se mueve */
.wordmark { display: block; width: 5.14em; height: 1.03em; overflow: visible; }
.wm-word { font: 700 100px var(--font); letter-spacing: -2.8px; fill: var(--l1); }
.wm-echo { fill-opacity: .38; }
/* Piezas que anima centinela.js al escanear: crecen desde la izquierda */
.wm-win, .wm-line { transform-box: fill-box; transform-origin: 0 50%; }
.cover-sub {
  margin-top: calc(28 * var(--px));
  max-width: calc(860 * var(--px));
  font-size: var(--fs-lead);
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--l3);
  text-wrap: pretty;
}
.cover-authors {
  position: absolute;
  left: var(--pad-x);
  top: calc(850 * var(--px));
}
.cover-names { font-size: max(14px, calc(27.5 * var(--px))); font-weight: 500; }
.cover-course { margin-top: calc(8 * var(--px)); font-size: var(--fs-small); color: var(--l4); }
.cover-radar {
  position: absolute;
  left: calc(1000 * var(--px));
  top: calc(140 * var(--px));
  width: calc(800 * var(--px));
  aspect-ratio: 1;
}
.scroll-hint {
  position: absolute;
  right: var(--pad-x);
  bottom: calc(58 * var(--px));
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-size: var(--fs-small);
  color: var(--l4);
  text-decoration: none;
}
.scroll-hint:hover { color: var(--l2); }

/* Radar */
.radar { position: absolute; inset: 0; }
.radar-grid { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Cada pieza del radar gira y escala sobre el centro (para el encendido) */
.radar-grid circle, .radar-grid path { transform-box: view-box; transform-origin: 50% 50%; }
.radar-sweep {
  position: absolute;
  inset: 2.5%;
  border-radius: 50%;
  background: conic-gradient(from 0deg,
    rgba(255, 69, 58, 0) 0deg,
    rgba(255, 69, 58, 0) 280deg,
    rgba(255, 69, 58, .08) 312deg,
    rgba(255, 69, 58, .3) 345deg,
    rgba(255, 90, 80, .62) 360deg);
  animation: sweep 5s linear infinite;
  animation-play-state: paused;
}
.radar-sweep::after { /* borde de ataque del barrido */
  content: "";
  position: absolute;
  left: calc(50% - 1px);
  top: 0;
  width: 2px;
  height: 50%;
  border-radius: 2px;
  background: linear-gradient(to top, rgba(255, 105, 97, 0), rgba(255, 105, 97, .95));
  box-shadow: 0 0 12px rgba(255, 69, 58, .8);
}
.is-live .radar-sweep,
.is-live .ping { animation-play-state: running; }
@keyframes sweep { to { transform: rotate(360deg); } }

.radar-pin {
  position: absolute;
  left: var(--l);
  top: var(--t);
  transform: translate(-50%, -50%);
}
.radar-pill {
  --r: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: calc(80 * var(--px));
  min-height: 38px;
  padding: 0 max(18px, calc(40 * var(--px)));
  border-radius: 999px;
  font-size: max(15px, calc(34 * var(--px)));
  letter-spacing: .04em;
  color: var(--l1);
}
/* El pulso se dispara justo cuando el barrido pasa por encima de la pastilla */
.ping {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: 0 0 0 1px rgba(255, 120, 110, .85), 0 0 28px rgba(255, 69, 58, .6), inset 0 0 18px rgba(255, 69, 58, .35);
  opacity: 0;
  animation: ping 5s linear infinite;
  animation-delay: calc(var(--angle) / 360 * 5s - 5s);
  animation-play-state: paused;
}
@keyframes ping {
  0% { opacity: 1; }
  22% { opacity: 0; }
  100% { opacity: 0; }
}

/* ==========================================================================
   02 · El fraude digital en cifras
   ========================================================================== */

.figures {
  display: grid;
  grid-template-columns: calc(700 * var(--px)) 1fr;
  column-gap: calc(28 * var(--px));
}
.stats {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(110 * var(--px));
}
.stat-num {
  font-size: var(--fs-hero);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: -.028em;
  font-variant-numeric: tabular-nums;
}
.stat-num--red { color: var(--red); text-shadow: 0 0 60px rgba(255, 69, 58, .35); }
.stat-label { margin-top: calc(8 * var(--px)); color: var(--l3); }

.panel { --r: var(--r-lg); }
.channels {
  display: flex;
  flex-direction: column;
  padding: calc(51 * var(--px)) calc(49 * var(--px)) calc(40 * var(--px));
}
.channels .sub-label { color: var(--l3); letter-spacing: .083em; }
.bars {
  display: grid;
  gap: calc(25 * var(--px));
  margin-top: calc(20 * var(--px));
}
.bar-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  row-gap: calc(6 * var(--px));
}
.bar-value { font-weight: 500; font-variant-numeric: tabular-nums; }
.bar-track {
  grid-column: 1 / -1;
  display: block;
  height: max(6px, calc(12 * var(--px)));
  border-radius: 999px;
  background: rgba(255, 255, 255, .07);
}
.bar-fill {
  display: block;
  width: var(--v);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(180deg, #f4f4f8, #d5d5db);
  box-shadow: 0 0 16px rgba(255, 255, 255, .14);
}
.panel-foot {
  margin-top: auto;
  padding-top: calc(24 * var(--px));
  border-top: 1px solid var(--hair);
  color: var(--l2);
  line-height: 1.45;
  text-wrap: pretty;
}
.footnote {
  position: absolute;
  left: 0;
  top: calc(100% + 18 * var(--px));
  font-size: var(--fs-small);
  color: var(--l4);
}

/* ==========================================================================
   03 · El problema técnico
   ========================================================================== */

.techniques {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: calc(25 * var(--px));
  margin-top: calc(14 * var(--px));
}
/* Icono y título centrados en vertical: el mismo aire arriba y abajo, tenga el título una o dos líneas */
.technique {
  justify-content: center;
  height: calc(203 * var(--px));
  padding: calc(24 * var(--px)) calc(33 * var(--px));
  font-size: max(22px, calc(48 * var(--px)));
  color: var(--l1);
}
.technique .card-title {
  font-size: var(--fs-card);
  font-weight: 500;
  line-height: 1.3;
  color: var(--l1);
}
.consequence-label { margin-top: calc(49 * var(--px)); }
.consequences {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: calc(25 * var(--px));
  margin-top: calc(14 * var(--px));
}
.statement {
  --r: var(--r-lg);
  display: flex;
  align-items: center;
  height: calc(239 * var(--px));
  padding: 0 calc(52 * var(--px));
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: pretty;
}

/* ==========================================================================
   04 · Lo que ya existe
   ========================================================================== */

.compare-head,
.compare-row {
  display: grid;
  grid-template-columns: calc(432 * var(--px)) calc(592 * var(--px)) 1fr;
  align-items: center;
  padding: 0 calc(24 * var(--px));
}
.compare-head {
  height: calc(48 * var(--px));
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .083em;
  text-transform: uppercase;
  color: var(--l4);
}
.compare-row {
  min-height: calc(84 * var(--px));
  border-top: 1px solid var(--hair);
  font-size: var(--fs-small);
}
.compare-row:last-child { border-bottom: 1px solid var(--hair); }
.compare-row > :first-child { font-size: var(--fs-body); font-weight: 500; }
.compare-row > * { padding-right: calc(24 * var(--px)); }
.c-what { color: var(--l3); }
.band {
  --r: calc(27 * var(--px));
  display: grid;
  grid-template-columns: calc(432 * var(--px)) 1fr;
  align-items: center;
  min-height: calc(103 * var(--px));
  margin-top: calc(24 * var(--px));
  padding: calc(14 * var(--px)) calc(24 * var(--px));
}
.band-name {
  font-size: var(--fs-body);
  font-weight: 700;
  letter-spacing: .036em;
  color: var(--red);
}
.band-text { line-height: 1.45; text-wrap: pretty; }

/* ==========================================================================
   05 · Qué es CENTINELA
   ========================================================================== */

.lead {
  max-width: calc(1360 * var(--px));
  font-size: var(--fs-lead);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -.01em;
  text-wrap: pretty;
}
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: calc(18 * var(--px));
  margin-top: calc(23 * var(--px));
}
.chip {
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .035));
  font-weight: 400;
}
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(25 * var(--px));
  height: calc(375 * var(--px));
  margin-top: calc(39 * var(--px));
}
.feature {
  gap: calc(16 * var(--px));
  padding: calc(56 * var(--px)) calc(41 * var(--px));
}
.feature h3 {
  margin-top: calc(4 * var(--px));
  font-size: var(--fs-lead);
  letter-spacing: -.01em;
}
.feature p { font-size: var(--fs-body); }

/* ==========================================================================
   06 · Cómo funciona
   ========================================================================== */

.flow {
  display: grid;
  grid-template-columns: 1fr calc(67 * var(--px)) 1fr calc(67 * var(--px)) 1fr calc(67 * var(--px)) 1fr calc(67 * var(--px)) 1fr;
  align-items: center;
  height: calc(339 * var(--px));
}
/* Contenido centrado en vertical: el mismo aire arriba y abajo en cada paso */
.flow-step {
  --r: var(--r-lg);
  justify-content: center;
  height: 100%;
  gap: calc(10 * var(--px));
  padding: calc(24 * var(--px)) calc(29 * var(--px));
}
.flow-step h3 { font-size: var(--fs-body); }
.flow-arrow { padding: 0 calc(4 * var(--px)); }
.notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(25 * var(--px));
  height: calc(207 * var(--px));
  margin-top: calc(49 * var(--px));
}
.note {
  flex-direction: row;
  align-items: center;
  gap: calc(20 * var(--px));
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--l2);
}
.note .icon { font-size: max(22px, calc(48 * var(--px))); color: var(--l1); }

/* ==========================================================================
   07 · Arquitectura del sistema
   ========================================================================== */

.arch { height: calc(595 * var(--px)); }
.arch > *,
.region > * { position: absolute; }

.node {
  --r: var(--r-md);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: calc(5 * var(--px));
  padding: calc(22 * var(--px)) calc(26 * var(--px));
  font-size: var(--fs-small);
  line-height: 1.4;
}
.node h3 { font-size: var(--fs-body); font-weight: 500; line-height: 1.25; }
.node hr { margin: calc(8 * var(--px)) 0; }

.a-nav { left: 0; top: calc(177.5 * var(--px)); width: calc(236 * var(--px)); height: calc(240 * var(--px)); padding-inline: calc(22 * var(--px)); }
.a-pwa { left: calc(286 * var(--px)); top: calc(132.5 * var(--px)); width: calc(310 * var(--px)); height: calc(330 * var(--px)); padding-inline: calc(22 * var(--px)); }
.link { display: block; height: 2px; top: calc(297.5 * var(--px) - 1px); }
.a-link1 { left: calc(236 * var(--px)); width: calc(50 * var(--px)); padding: 0 calc(8 * var(--px)); }
/* El tramo HTTPS deja su rótulo fuera de la nube: la región empieza en 716 */
.a-link2 { left: calc(596 * var(--px)); width: calc(150 * var(--px)); padding: 0 calc(6 * var(--px)) 0 calc(8 * var(--px)); z-index: 2; }
.link-label {
  position: absolute;
  left: calc(12 * var(--px));
  bottom: calc(14 * var(--px));
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.3;
  color: var(--red-2);
}

/* La nube: un recinto que agrupa la pasarela y los servicios a los que llama */
.region {
  left: calc(716 * var(--px));
  top: 0;
  width: calc(948 * var(--px));
  height: 100%;
  border-radius: calc(40 * var(--px));
  border: max(1px, calc(2 * var(--px))) dashed rgba(255, 255, 255, .2);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .012));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}
.region-head {
  left: calc(44 * var(--px));
  top: calc(-22 * var(--px));
  display: flex;
  align-items: center;
  gap: calc(12 * var(--px));
  height: calc(42 * var(--px));
  min-height: 26px;
  padding: 0 max(12px, calc(20 * var(--px))) 0 max(10px, calc(16 * var(--px)));
  border-radius: 999px;
  background: rgba(22, 22, 26, .88);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  backdrop-filter: blur(14px) saturate(160%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .16), 0 8px 24px -10px rgba(0, 0, 0, .7);
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .083em;
  text-transform: uppercase;
  color: var(--l4);
}
.region-head .icon { font-size: max(16px, calc(28 * var(--px))); color: var(--l2); }

/* Alto según el contenido (mínimo 392), siempre centrado en el conector */
.gateway {
  left: calc(30 * var(--px));
  top: 0;
  bottom: 0;
  width: calc(300 * var(--px));
  height: fit-content;
  min-height: calc(392 * var(--px));
  margin-block: auto;
  justify-content: flex-start;
  padding: calc(26 * var(--px));
}
.duties {
  display: grid;
  gap: calc(4 * var(--px));
  margin-top: calc(12 * var(--px));
  padding-top: calc(14 * var(--px));
  border-top: 1px solid rgba(255, 120, 110, .22);
}
.duties li { position: relative; padding-left: calc(20 * var(--px)); }
.duties li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(.7em - 3px);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red-2);
  opacity: .85;
}
.gateway-foot {
  display: flex;
  flex-direction: column;
  gap: calc(4 * var(--px));
  margin-top: auto;
  padding-top: calc(14 * var(--px));
  border-top: 1px solid rgba(255, 120, 110, .22);
  line-height: 1.35;
}
.gateway-foot .mono { color: var(--red-2); }

.fan {
  left: calc(330 * var(--px));
  top: 0;
  width: calc(150 * var(--px));
  height: 100%;
  overflow: visible;
}
.fan path {
  fill: none;
  stroke: #7d7d83; /* opaco: los tramos compartidos no se aclaran al superponerse */
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
}

.services {
  left: calc(480 * var(--px));
  top: calc(30 * var(--px));
  width: calc(444 * var(--px));
  height: calc(535 * var(--px));
  display: grid;
  grid-template-rows: repeat(4, 1fr);
  gap: calc(13 * var(--px));
}
.service-item { position: relative; min-height: 0; }
.service {
  --r: calc(24 * var(--px));
  height: 100%;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: calc(18 * var(--px));
  padding: calc(14 * var(--px)) calc(22 * var(--px));
}
.service .tile {
  --r: calc(14 * var(--px));
  flex: none;
  width: calc(48 * var(--px));
  height: calc(48 * var(--px));
  min-width: 30px;
  min-height: 30px;
  font-size: max(16px, calc(26 * var(--px)));
}
.service p { margin-top: calc(3 * var(--px)); line-height: 1.3; }
.service--support h3 .dim { font-weight: 400; }
.tile--ghost { color: var(--l2); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }

/* Conectores que solo existen en el modo móvil */
.a-link3, .bus, .branch { display: none; }

/* ==========================================================================
   08 · 09 · 10 · Análisis
   ========================================================================== */

.split {
  display: grid;
  grid-template-columns: calc(759 * var(--px)) 1fr;
  column-gap: calc(49 * var(--px));
}
.demo {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: calc(40 * var(--px)) calc(41 * var(--px));
}
.demo > .sub-label + * { margin-top: calc(12 * var(--px)); }
.demo hr { margin: calc(17 * var(--px)) 0; }
.field {
  display: flex;
  align-items: center;
  height: calc(72 * var(--px));
  min-height: 40px;
  padding: 0 calc(24 * var(--px));
  border-radius: calc(18 * var(--px));
  background: rgba(0, 0, 0, .35);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 2px 8px rgba(0, 0, 0, .35);
  font-size: var(--fs-body);
  white-space: nowrap;
  overflow: hidden;
}
.hop {
  display: flex;
  align-items: center;
  gap: calc(16 * var(--px));
  margin: calc(15 * var(--px)) 0 calc(15 * var(--px)) calc(24 * var(--px));
  font-size: var(--fs-small);
  color: var(--l3);
}
.hop .icon { font-size: max(16px, calc(30 * var(--px))); color: var(--l2); }
.flags li {
  position: relative;
  padding-left: calc(28 * var(--px));
  line-height: calc(55 * var(--px));
}
.flags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: calc(50% - max(3px, 6 * var(--px)));
  width: max(6px, calc(12 * var(--px)));
  height: max(6px, calc(12 * var(--px)));
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 69, 58, .7);
}

/* Conversación de Mensajes de iOS: cabecera del remitente y burbuja recibida con cola.
   Colores de iMessage (modo oscuro) solo en este bloque. */
.thread {
  --imsg-blue: #0a84ff;
  --imsg-label: #fff;
  --imsg-meta: #98989f;
  margin-top: calc(14 * var(--px));
}
.thread-head {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--px));
  margin-bottom: calc(16 * var(--px));
}
.thread-avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: calc(50 * var(--px));
  height: calc(50 * var(--px));
  min-width: 28px;
  min-height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, #a6a6ad, #6c6c73); /* contacto sin foto */
  font-size: max(13px, calc(23 * var(--px)));
  font-weight: 500;
  color: #fff;
}
/* Foto de contacto: logo de Correos centrado sobre su amarillo */
.thread-avatar--correos {
  background: #fecd00 url("img/correos.png") center / auto 150% no-repeat;
}
.thread-head p { display: flex; flex-direction: column; line-height: 1.25; }
.thread-name { font-size: var(--fs-body); font-weight: 500; color: var(--imsg-label); }
.thread-meta { font-size: var(--fs-small); color: var(--imsg-meta); }
.imsg {
  --bubble: var(--imsg-blue);
  position: relative;
  width: fit-content;
  max-width: calc(580 * var(--px));
  margin-left: calc(7 * var(--px));
  padding: calc(15 * var(--px)) calc(24 * var(--px)) calc(16 * var(--px));
  border-radius: calc(38 * var(--px)) calc(38 * var(--px)) calc(38 * var(--px)) calc(8 * var(--px));
  background: var(--bubble);
  color: #fff;
  font-size: var(--fs-body);
  line-height: 1.35;
  transform-origin: 0 100%; /* crece desde la cola, como al recibirse */
}
.imsg em { color: #fff; font-weight: 500; }
.imsg-link { text-decoration: underline; text-underline-offset: .15em; overflow-wrap: anywhere; }
.imsg-tail {
  position: absolute;
  left: calc(-7 * var(--px));
  bottom: 0;
  width: calc(20 * var(--px));
  height: calc(22 * var(--px));
  fill: var(--bubble);
}

.verdict-pill { margin-top: calc(2 * var(--px)); }
.verdict-pill .pill { height: calc(64 * var(--px)); font-size: var(--fs-body); }
.demo .panel-foot { margin-top: calc(17 * var(--px)); padding-top: calc(17 * var(--px)); font-size: var(--fs-small); color: var(--l3); }

.indicators { display: flex; flex-direction: column; }
.indicators > .sub-label { height: calc(52 * var(--px)); }
.ind {
  display: grid;
  grid-template-columns: calc(364 * var(--px)) 1fr;
  align-items: center;
  min-height: calc(90 * var(--px));
  padding: calc(8 * var(--px)) 0;
  border-top: 1px solid var(--hair);
}
.ind:last-child { border-bottom: 1px solid var(--hair); }
.ind dt { font-weight: 500; padding-right: calc(16 * var(--px)); }
.ind dd { font-size: var(--fs-small); color: var(--l3); line-height: 1.45; }
.ind-list--sms .ind { min-height: calc(96 * var(--px)); }
.ind-list--num .ind { min-height: calc(88 * var(--px)); }

.privacy {
  flex-direction: row;
  align-items: center;
  gap: calc(28 * var(--px));
  height: calc(207 * var(--px));
  margin-top: calc(48 * var(--px));
  padding: 0 calc(38 * var(--px));
}
.privacy .tile {
  --r: calc(20 * var(--px));
  flex: none;
  width: calc(76 * var(--px));
  height: calc(76 * var(--px));
  font-size: max(20px, calc(38 * var(--px)));
}
.privacy .privacy-title { font-size: var(--fs-body); font-weight: 500; color: var(--l1); margin-bottom: calc(6 * var(--px)); }
.notice {
  flex-direction: row;
  align-items: center;
  gap: calc(20 * var(--px));
  height: calc(151 * var(--px));
  margin-top: calc(40 * var(--px));
  font-size: var(--fs-small);
  line-height: 1.45;
  color: var(--l1);
}
.notice .icon { font-size: max(20px, calc(40 * var(--px))); color: var(--red); }

/* ==========================================================================
   11 · Sistema de puntuación
   ========================================================================== */

.scoring-intro { color: var(--l3); line-height: 1.45; }
.scale {
  display: grid;
  grid-template-columns: 30fr 40fr 31fr;
  column-gap: calc(24 * var(--px));
  row-gap: calc(12 * var(--px));
  margin-top: calc(38 * var(--px));
}
.seg {
  grid-row: 1;
  height: calc(28 * var(--px));
  min-height: 12px;
  border-radius: 999px;
}
.seg--safe { background: linear-gradient(180deg, #5be472, #2ac845); box-shadow: 0 0 30px -6px rgba(50, 215, 75, .55); }
.seg--warn { background: linear-gradient(180deg, #ffe14d, #f5c800); box-shadow: 0 0 30px -6px rgba(255, 214, 10, .5); }
.seg--risk { background: linear-gradient(180deg, #ff6b61, #f4372c); box-shadow: 0 0 30px -6px rgba(255, 69, 58, .6); }
.mark {
  grid-row: 2;
  font-family: var(--mono);
  font-size: var(--fs-small);
  color: var(--l4);
}
.mark--pair { display: flex; justify-content: space-between; }
.levels {
  display: grid;
  grid-template-columns: 30fr 40fr 31fr;
  gap: calc(24 * var(--px));
  height: calc(283 * var(--px));
  margin-top: calc(26 * var(--px));
}
.level { padding: calc(46 * var(--px)) calc(37 * var(--px)); gap: calc(10 * var(--px)); }
.level h3 { font-size: var(--fs-lead); letter-spacing: -.01em; }
.level .mono { font-size: var(--fs-small); }
.level p.light { font-size: var(--fs-body); }
.lv-safe { color: var(--green); }
.lv-warn { color: var(--yellow); }
.lv-risk { color: var(--red); }
.response {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: calc(17 * var(--px));
  margin-top: calc(36 * var(--px));
}
.response-label { font-size: var(--fs-small); color: var(--l4); margin-right: calc(4 * var(--px)); }
.response .pill { height: calc(50 * var(--px)); }

/* ==========================================================================
   12 · Tecnologías e integraciones
   ========================================================================== */

.tech { display: flex; gap: calc(49 * var(--px)); }
.tech-group--defined { flex: 0 0 calc(1015 * var(--px)); }
.tech-group--pending { flex: 1; min-width: 0; }
.tech-chip { height: calc(50 * var(--px)); margin-bottom: calc(23 * var(--px)); }
.tech-chip .pill { height: 100%; }
.tech-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: calc(159 * var(--px));
  gap: calc(23 * var(--px)) calc(25 * var(--px));
}
.tech-group--pending .tech-grid { grid-template-columns: 1fr; }
/* Texto centrado en vertical: el mismo aire arriba y abajo, tenga una o dos líneas */
.tech-card { justify-content: center; padding: calc(24 * var(--px)) calc(29 * var(--px)); gap: calc(4 * var(--px)); }
.tech-card.glass--dashed { --r: calc(28 * var(--px)); }

/* ==========================================================================
   13 · Interfaz y funcionalidades
   ========================================================================== */

.interface {
  display: grid;
  grid-template-columns: calc(325 * var(--px)) 1fr;
  column-gap: calc(105 * var(--px));
}

/* iPhone: proporción real (71,5 × 146,6 mm), esquinas concéntricas, marco
   metálico, botones laterales e isla dinámica. Por dentro todo se mide en cqw
   (ancho del teléfono), así escala como una sola pieza en escritorio y móvil. */
.phone {
  position: relative;
  width: calc(325 * var(--px));
  aspect-ratio: 71.5 / 146.6;
  align-self: start;
  padding: calc(3.5 * var(--px));
  border-radius: calc(50 * var(--px));
  background: linear-gradient(150deg, #8f8f95 0%, #3b3b40 20%, #1d1d21 50%, #3b3b40 80%, #9a9aa0 100%);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, .55),
    0 40px 90px -30px rgba(0, 0, 0, .85),
    0 0 90px -40px rgba(255, 69, 58, .35);
  container-type: inline-size;
}
.phone-btn {
  position: absolute;
  width: max(2px, calc(4 * var(--px)));
  border-radius: 2px;
  background: linear-gradient(90deg, #2a2a2e, #8c8c92 50%, #2a2a2e);
}
.phone-btn--action { left: calc(-3 * var(--px)); top: 18.5%; height: 3.2%; }
.phone-btn--up     { left: calc(-3 * var(--px)); top: 25.5%; height: 8.5%; }
.phone-btn--down   { left: calc(-3 * var(--px)); top: 36%; height: 8.5%; }
.phone-btn--power  { right: calc(-3 * var(--px)); top: 28%; height: 13%; }
.phone-body {
  height: 100%;
  padding: 3.1cqw;
  border-radius: 15.9cqw;
  background: #030304;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .07);
}
.phone-screen {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 0 5.6cqw;
  border-radius: 12.8cqw;
  overflow: hidden;
  background: radial-gradient(130% 55% at 50% 0%, #1e1e24 0%, #0c0c0f 70%);
  line-height: 1.3;
}
.status-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: none;
  height: 14.1cqw;
  /* Hora e iconos centrados en las «orejas» a ambos lados de la isla */
  padding: 0 1cqw 0 3.6cqw;
}
.sb-time { font-size: 5.4cqw; font-weight: 700; letter-spacing: .01em; }
.sb-icons { display: flex; align-items: center; gap: 1.3cqw; }
.sb-icons svg { height: 3.3cqw; width: auto; fill: currentColor; }
.battery {
  position: relative;
  width: 7.6cqw;
  height: 3.6cqw;
  padding: .55cqw;
  margin-right: .8cqw;
  border-radius: 1.2cqw;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5);
}
.battery i { display: block; width: 80%; height: 100%; border-radius: .5cqw; background: #fff; }
.battery::after {
  content: "";
  position: absolute;
  right: -1cqw;
  top: 50%;
  width: .6cqw;
  height: 1.4cqw;
  margin-top: -.7cqw;
  border-radius: 0 1px 1px 0;
  background: rgba(255, 255, 255, .5);
}
.island {
  position: absolute;
  left: 50%;
  top: 2.65cqw;
  width: 27cqw;
  height: 8.4cqw;
  margin-left: -13.5cqw;
  border-radius: 999px;
  background: #000;
}
.island::after { /* cámara frontal */
  content: "";
  position: absolute;
  right: 2.6cqw;
  top: 50%;
  width: 2.9cqw;
  height: 2.9cqw;
  margin-top: -1.45cqw;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #2b3653, #090c15 62%);
}
.app-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2.4cqw;
  height: 10cqw;
  margin-top: 3cqw;
  font-size: 5.2cqw;
  font-weight: 700;
  letter-spacing: .09em;
}
.app-dot {
  width: 2.8cqw;
  height: 2.8cqw;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 10px rgba(255, 69, 58, .8);
}
.segmented {
  --i: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  flex: none;
  height: 14.8cqw;
  margin-top: 4.6cqw;
  padding: 1.25cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}
.seg-thumb {
  position: absolute;
  top: 1.25cqw;
  bottom: 1.25cqw;
  left: 1.25cqw;
  width: calc((100% - 2.5cqw) / 3);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .26), rgba(255, 255, 255, .14));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 0 0 1px rgba(255, 255, 255, .12), 0 3px 10px rgba(0, 0, 0, .35);
  transform: translateX(calc(var(--i) * 100%));
  transition: transform .5s var(--ease), scale .3s var(--ease);
}
.segmented.is-moving .seg-thumb { scale: 1.12 1.18; }
.segmented button {
  position: relative;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  font-size: 4.9cqw;
  color: var(--l3);
  cursor: pointer;
  transition: color .3s var(--ease), scale .12s ease-out;
}
.segmented button[aria-selected="true"] { color: var(--l1); font-weight: 500; }
.segmented button:active { scale: .95; }
.app-input {
  flex: none;
  height: 30cqw;
  margin-top: 4.6cqw;
  padding: 4.4cqw 5cqw;
  border-radius: 6cqw;
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1);
  font-size: 4.8cqw;
  color: var(--l4);
}
.app-cta {
  display: grid;
  place-items: center;
  flex: none;
  height: 16.5cqw;
  margin-top: 4.6cqw;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff5a50, #f43a2f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 10px 30px -10px rgba(255, 69, 58, .7);
  font-size: 5.6cqw;
  font-weight: 500;
  color: #fff;
  border: 0;
  padding: 0;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: scale .12s ease-out;
}
/* Mientras se mantiene pulsado se hunde; al soltar, centinela.js lo hace rebotar */
.app-cta:active { scale: .92; }
.app-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 3.2cqw; flex: none; margin-top: 3.6cqw; }
.app-actions span {
  display: grid;
  place-items: center;
  height: 15cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12);
  font-size: 5.2cqw;
}
.app-hint {
  display: grid;
  place-items: center;
  flex: 1;
  margin: 4.6cqw 0 11cqw;
  padding: 0 6cqw;
  border-radius: 6cqw;
  border: 1px dashed rgba(255, 255, 255, .14);
  text-align: center;
  font-size: 4.6cqw;
  line-height: 1.4;
  color: var(--l5);
}
.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 2.4cqw;
  width: 32cqw;
  height: 1.3cqw;
  margin-left: -16cqw;
  border-radius: 999px;
  background: rgba(255, 255, 255, .6);
}

.capabilities {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(4 * var(--px)) 0;
}
.capability {
  display: grid;
  grid-template-columns: calc(63 * var(--px)) 1fr;
  column-gap: calc(29 * var(--px));
  align-items: start;
}
.capability .tile { margin-top: calc(10 * var(--px)); }
.capability h3 { font-size: var(--fs-lead); font-weight: 500; line-height: 1.3; letter-spacing: -.01em; }
.capability p { margin-top: calc(4 * var(--px)); color: var(--l3); line-height: 1.45; max-width: calc(1100 * var(--px)); }
.capability .warn { color: var(--red-2); }

/* ==========================================================================
   14 · Objetivos
   ========================================================================== */

.objectives {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: calc(285 * var(--px));
  gap: calc(25 * var(--px));
}
.objective { gap: calc(8 * var(--px)); padding: calc(42 * var(--px)) calc(33 * var(--px)); }
.objective .num { margin-bottom: calc(2 * var(--px)); }

/* ==========================================================================
   15 · Alcance y limitaciones
   ========================================================================== */

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: calc(25 * var(--px));
}
.scope-panel {
  display: flex;
  flex-direction: column;
  padding: calc(60 * var(--px)) calc(49 * var(--px));
}
.scope-panel h3 {
  padding-bottom: calc(18 * var(--px));
  border-bottom: 1px solid var(--hair);
  font-size: var(--fs-lead);
  font-weight: 500;
  letter-spacing: -.01em;
}
.scope-panel--limits h3 { border-bottom-color: rgba(255, 69, 58, .3); }
.checks, .limits { display: grid; margin-top: calc(22 * var(--px)); }
.checks { gap: calc(18 * var(--px)); }
.limits { gap: calc(24 * var(--px)); }
.checks li, .limits li {
  display: grid;
  grid-template-columns: calc(36 * var(--px)) 1fr;
  column-gap: calc(16 * var(--px));
  align-items: start;
  line-height: 1.45;
}
.checks .icon, .limits .icon { width: 100%; height: auto; min-width: 18px; aspect-ratio: 1; margin-top: calc(2 * var(--px)); }
.checks .icon { color: var(--l2); }
.limits .icon { color: var(--red); }
.limit-title { font-weight: 500; }
.limits .light { font-size: var(--fs-small); margin-top: calc(4 * var(--px)); }

/* ==========================================================================
   16 · Planificación
   ========================================================================== */

.gantt { display: grid; row-gap: calc(10 * var(--px)); }
.gantt-head,
.gantt-row {
  display: grid;
  grid-template-columns: calc(384 * var(--px)) 1fr;
  align-items: center;
}
.gantt-head { margin-bottom: calc(-1 * var(--px)); }
.gantt-year {
  font-size: var(--fs-small);
  font-weight: 500;
  letter-spacing: .083em;
  color: var(--l4);
}
.gantt-months {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 calc(4 * var(--px));
  text-align: center;
  font-size: var(--fs-small);
  color: var(--l3);
}
.gantt-months .jun { color: var(--red-2); }
.gantt-name b { font-weight: 400; color: var(--l4); margin-right: .3em; }
.gantt-lane {
  position: relative;
  display: block;
  height: calc(48 * var(--px));
  min-height: 24px;
  border-radius: calc(14 * var(--px));
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 calc((100% - 8 * var(--px)) / 7 - 1px), rgba(255, 255, 255, .035) 0 calc((100% - 8 * var(--px)) / 7)) calc(4 * var(--px)) 0 / calc(100% - 8 * var(--px)) 100% no-repeat,
    rgba(255, 255, 255, .03);
}
.gantt-bar {
  position: absolute;
  top: calc(8 * var(--px));
  bottom: calc(8 * var(--px));
  left: calc(4 * var(--px) + (100% - 8 * var(--px)) * var(--m) / 7 + 4 * var(--px));
  width: calc((100% - 8 * var(--px)) * var(--n) / 7 - 8 * var(--px));
  border-radius: 999px;
  background: linear-gradient(180deg, #f2f2f6, #d6d6dc);
}
.gantt-bar--dashed {
  background: rgba(255, 255, 255, .1);
  border: max(1px, calc(2 * var(--px))) dashed rgba(255, 255, 255, .42);
}
.gantt-bar--red {
  background: linear-gradient(180deg, #ff6259, #f43a2f);
  box-shadow: 0 4px 18px -2px rgba(255, 69, 58, .5);
}
.gantt-notes {
  display: grid;
  grid-template-columns: calc(1046 * var(--px)) 1fr;
  column-gap: calc(18 * var(--px));
  margin-top: calc(26 * var(--px));
  font-size: var(--fs-small);
  color: var(--l3);
  line-height: 1.45;
}
.gantt-notes b { font-weight: 500; color: var(--l1); }

/* ==========================================================================
   17 · Relación con el ciclo formativo
   ========================================================================== */

.modules { margin-top: calc(4 * var(--px)); }
.module {
  display: grid;
  grid-template-columns: calc(672 * var(--px)) 1fr;
  align-items: center;
  min-height: calc(84 * var(--px));
  padding: calc(8 * var(--px)) 0;
  border-top: 1px solid var(--hair);
}
.module:last-child { border-bottom: 1px solid var(--hair); }
.module dt { font-weight: 500; padding-right: calc(24 * var(--px)); }
.module dd { font-size: var(--fs-small); color: var(--l3); line-height: 1.45; }

/* ==========================================================================
   18 · Conclusión
   ========================================================================== */

.slide--end .stage { display: block; }
.end-radar {
  position: absolute;
  left: calc(1160 * var(--px));
  top: calc(100 * var(--px));
  width: calc(640 * var(--px));
  aspect-ratio: 1;
}
.end-label { position: absolute; left: var(--pad-x); top: calc(128 * var(--px)); }
.end-title {
  position: absolute;
  left: var(--pad-x);
  top: calc(208 * var(--px));
  width: calc(1071 * var(--px));
  font-size: var(--fs-title);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: -.021em;
  text-wrap: balance;
  z-index: 1;
}
.end-cards {
  position: absolute;
  left: var(--pad-x);
  top: calc(580 * var(--px));
  width: calc(1663 * var(--px));
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(25 * var(--px));
}
.end-card {
  height: calc(209 * var(--px));
  padding: calc(40 * var(--px)) calc(37 * var(--px));
  gap: calc(8 * var(--px));
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
}
.end-card h3 { font-size: var(--fs-lead); letter-spacing: -.01em; }
.end-card p { font-size: var(--fs-body); }
.end-foot {
  position: absolute;
  left: var(--pad-x);
  right: var(--pad-x);
  top: calc(841 * var(--px));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}
.end-authors { color: var(--l2); }
.end-thanks { margin-top: calc(8 * var(--px)); font-size: var(--fs-lead); font-weight: 700; letter-spacing: -.01em; }

/* ==========================================================================
   Barra de navegación (cristal grueso) e índice
   ========================================================================== */

.dock {
  --pad: 6px;
  --h: 56px;
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--h);
  padding: var(--pad);
  border-radius: 999px;
  transform: translateX(-50%);
  opacity: 0;
  translate: 0 20px;
  transition: opacity .7s var(--ease), translate .8s var(--ease);
  font-family: var(--font);
}
.dock.is-ready { opacity: 1; translate: 0 0; }
.dock-inner { display: flex; align-items: center; gap: 2px; flex: none; }

/* ---------- Barra de gestos ----------------------------------------------
   Con ratón (lo activa centinela.js con .has-morph), la píldora se pliega en
   una barra fina como la de gestos del iPhone mientras se usa la rueda o el
   puntero está lejos, y crece con un rebote elástico al acercarlo. El ancho
   sigue al contenido (--inner-w) y solo se anima durante el cambio de forma
   (.is-morphing), para que el cambio de título no arrastre retraso. */
.dock.has-morph {
  --spring: cubic-bezier(.34, 1.5, .64, 1);
  width: calc(var(--inner-w, 0px) + 2 * var(--pad));
  overflow: hidden;
  transition:
    opacity .7s var(--ease), translate .8s var(--ease),
    height .62s var(--spring), padding .62s var(--spring),
    box-shadow .5s var(--ease);
}
.dock.has-morph.is-morphing {
  transition:
    opacity .7s var(--ease), translate .8s var(--ease),
    width .62s var(--spring), height .62s var(--spring), padding .62s var(--spring),
    box-shadow .5s var(--ease);
}
.dock.has-morph::after { /* la barra blanca, encima del cristal */
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: rgba(240, 240, 245, .72);
  opacity: 0;
  transition: opacity .16s ease-out;
}
.dock.has-morph::before { transition: opacity .3s var(--ease); }
.dock-inner {
  transition: opacity .3s ease-out .12s, scale .62s var(--spring) .04s, filter .35s ease-out .1s;
}
.dock.is-collapsed {
  --pad: 0px;
  width: 134px;
  height: 5px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .45);
}
/* Al plegarse, la curva de iOS: rápida al principio y sin rebote */
.dock.is-collapsed,
.dock.is-collapsed.is-morphing {
  transition:
    opacity .7s var(--ease), translate .8s var(--ease),
    width .48s cubic-bezier(.32, .72, 0, 1), height .48s cubic-bezier(.32, .72, 0, 1),
    padding .48s cubic-bezier(.32, .72, 0, 1), box-shadow .4s var(--ease);
}
.dock.is-collapsed::after { opacity: 1; transition: opacity .3s ease-out .12s; }
.dock.is-collapsed::before { opacity: 0; }
.dock.is-collapsed .dock-inner {
  opacity: 0;
  scale: .6;
  filter: blur(6px);
  pointer-events: none;
  transition: opacity .14s ease-in, scale .3s ease-in, filter .2s ease-in;
}
.dock-btn,
.dock-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--l1);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .25s var(--ease), scale .12s ease-out, opacity .25s;
}
.dock-btn { width: 44px; font-size: 22px; }
.dock-btn:hover,
.dock-index:hover,
.dock-index[aria-expanded="true"] { background: rgba(255, 255, 255, .1); }
.dock-btn:active,
.dock-index:active { scale: .93; transition-duration: .06s; }
.dock-btn:disabled { opacity: .3; cursor: default; background: transparent; scale: 1; }
.dock-index { gap: 10px; padding: 0 14px 0 10px; }
.dock-ring { width: 20px; height: 20px; transform: rotate(-90deg); }
.dock-ring circle { fill: none; stroke-width: 2.4; stroke: rgba(255, 255, 255, .18); }
.dock-ring .dock-ring-fill {
  stroke: var(--red);
  stroke-linecap: round;
  stroke-dasharray: 50.27;
  stroke-dashoffset: var(--ring, 47.48);
  transition: stroke-dashoffset .7s var(--ease);
}
.dock-count { font: 500 13px/1 var(--mono); color: var(--l1); font-variant-numeric: tabular-nums; }
.dock-total { color: var(--l4); }
.dock-title {
  position: relative;
  display: block;
  height: 20px;
  overflow: hidden;
  transition: width .55s var(--ease);
}
.dock-title-text {
  position: absolute;
  left: 0; top: 0;
  max-width: 46vw;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
}
.dock-sep { width: 1px; height: 22px; margin: 0 4px; background: rgba(255, 255, 255, .14); }

.sheet {
  position: fixed;
  left: 50%;
  bottom: calc(max(18px, env(safe-area-inset-bottom)) + 66px);
  z-index: 49;
  width: min(460px, calc(100vw - 24px));
  max-height: calc(100vh - 100px);
  max-height: calc(100dvh - 100px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 10px;
  border-radius: 28px;
  transform-origin: 50% 100%;
  transform: translateX(-50%) translateY(16px) scale(.9);
  opacity: 0;
  filter: blur(8px);
  transition: transform .45s var(--ease), opacity .3s var(--ease), filter .45s var(--ease);
  font-family: var(--font);
}
.sheet.is-open { transform: translateX(-50%); opacity: 1; filter: none; }
.sheet-list { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.sheet-list::-webkit-scrollbar { width: 8px; }
.sheet-list::-webkit-scrollbar-thumb { min-height: 32px; border-width: 2px; }
.sheet-head {
  padding: 8px 12px 6px;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--l4);
}
.sheet-list a {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: baseline;
  gap: 10px;
  /* Las 18 filas caben enteras: el relleno se encoge con el alto de la
     ventana (10 px a partir de ~1080 px, 2 px hacia los 600 px) */
  padding: clamp(2px, calc((100vh - 180px) / 36 - 10px), 10px) 12px;
  padding-block: clamp(2px, calc((100dvh - 180px) / 36 - 10px), 10px);
  border-radius: 16px;
  color: var(--l1);
  text-decoration: none;
  font-size: 15px;
  line-height: 1.3;
  -webkit-tap-highlight-color: transparent;
  transition: background-color .2s var(--ease), scale .12s ease-out;
}
.sheet-list a:hover { background: rgba(255, 255, 255, .08); }
.sheet-list a:active { scale: .98; }
.sheet-list a[aria-current="true"] { background: rgba(255, 69, 58, .14); }
.sheet-n { font: 12px/1 var(--mono); color: var(--l4); }
.sheet-list a[aria-current="true"] .sheet-n { color: var(--red); }
.sheet-s { font-size: 12px; color: var(--l4); text-align: right; white-space: nowrap; }

/* ==========================================================================
   Versión fluida: móvil, tableta en vertical y ventanas estrechas
   ========================================================================== */

@media (max-width: 999px), (max-aspect-ratio: 1/1) {
  :root {
    --px: clamp(.5px, calc(100vw / 820), .62px);
    --pad-x: clamp(20px, 5vw, 48px);
    --r-lg: 22px;
    --r-md: 20px;
  }
  html { scroll-snap-type: none; }

  .slide { display: block; min-height: 0; }
  .stage {
    width: auto;
    height: auto;
    padding: 76px var(--pad-x) 40px;
  }
  .slide + .slide .stage { padding-top: 56px; }
  .slide:last-child .stage { padding-bottom: 130px; }
  .slide-head { row-gap: 10px; }
  .slide-body { margin-top: 26px; }
  .status { justify-self: start; grid-row: 3; grid-column: 1 / -1; margin-top: 4px; }

  /* Portada */
  .slide--cover { min-height: 100svh; }
  .slide--cover .stage { display: flex; flex-direction: column; min-height: 100svh; padding-top: max(56px, env(safe-area-inset-top)); padding-bottom: 110px; }
  .cover-copy, .cover-authors, .cover-radar, .scroll-hint { position: relative; left: auto; top: auto; right: auto; bottom: auto; }
  .cover-radar { width: min(100%, 440px); margin: 18px auto 8px; }
  .cover-copy { width: auto; }
  .cover-title { font-size: min(calc(144 * var(--px)), 15vw); }
  .cover-sub { max-width: none; margin-top: 12px; }
  .cover-authors { margin-top: 28px; }
  .scroll-hint { margin-top: auto; padding-top: 24px; align-self: flex-start; }

  /* Rejillas a una o dos columnas */
  .figures, .split, .interface, .scope { grid-template-columns: 1fr; row-gap: 22px; }
  .stats { flex-direction: row; flex-wrap: wrap; gap: 18px 36px; }
  .stat-num { font-size: clamp(52px, 15vw, 96px); }
  .footnote { position: static; margin-top: 4px; }

  .techniques, .features, .notes, .objectives, .levels, .consequences, .end-cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); height: auto; grid-auto-rows: auto; }
  .technique, .statement, .feature, .note, .privacy, .notice, .level, .end-card, .flow-step { height: auto; min-height: 0; }
  .technique { padding: 22px; }
  .statement { padding: 24px; }
  .feature, .level, .end-card { padding: 24px; }
  .note, .notice { padding: 20px; }
  .privacy { padding: 22px; }

  /* Tabla comparativa a fichas */
  .compare-head { display: none; }
  .compare-row { grid-template-columns: 1fr; row-gap: 6px; padding: 16px 4px; }
  .compare-row > [data-label]::before {
    content: attr(data-label) " · ";
    color: var(--l4);
    font-size: .92em;
  }
  .band { grid-template-columns: 1fr; row-gap: 6px; padding: 18px 20px; }

  /* Flujo en vertical */
  .flow { grid-template-columns: 1fr; height: auto; row-gap: 0; }
  .flow-step { padding: 20px 22px; }
  .flow-arrow { display: flex; justify-content: center; height: 36px; padding: 6px 0; }
  .flow-arrow .wire, .link .wire { width: 2px; height: 100%; }
  .flow-arrow .wire::before, .link .wire::before { width: 100%; height: calc(var(--p) * 100%); }
  .flow-arrow .wire::after, .link .wire::after {
    left: 50%;
    top: calc(var(--p) * 100% - var(--hs) * 1.2071);
    transform: translateX(-50%) rotate(135deg);
  }
  .flow-arrow .wire-body, .link .wire-body { width: 100%; height: calc(var(--p) * 100%); }
  .flow-arrow .wire-head, .link .wire-head {
    left: 50%;
    top: calc(var(--p) * 100% - var(--hs) * .7071);
    width: calc(var(--hs) * 1.4142);
    height: calc(var(--hs) * .7071);
    transform: translateX(-50%);
  }
  .flow-arrow .wire-h, .link .wire-h { display: none; }
  .flow-arrow .wire-v, .link .wire-v { display: inline; }

  /* Arquitectura en vertical */
  .arch { height: auto; display: flex; flex-direction: column; }
  .arch > *, .region > * { position: relative; left: auto; top: auto; width: auto; height: auto; }
  .node { padding: 18px 20px; }
  .link { align-self: center; width: 2px; height: 46px; padding: 6px 0; top: auto; }
  .link-label { left: 18px; bottom: auto; top: 50%; transform: translateY(-50%); white-space: nowrap; }
  .region { display: flex; flex-direction: column; padding: 34px 14px 16px; border-radius: 26px; margin-top: 18px; }
  .gateway { bottom: auto; min-height: 0; margin-block: 0; }
  .region-head { position: absolute; left: 14px; top: -16px; height: 32px; }
  .fan { display: none; }
  .a-link3 { display: block; }
  .services { display: flex; flex-direction: column; gap: 12px; padding-left: 28px; }
  .bus { display: block; position: absolute; left: 0; top: 40px; bottom: 40px; width: 2px; }
  .branch { display: block; position: absolute; left: -28px; top: calc(50% - 1px); width: 28px; height: 2px; }
  .branch .wire { --hs: 8px; }
  .service { padding: 14px 16px; gap: 14px; }

  /* Análisis */
  .demo { padding: 22px 18px; }
  .field { font-size: 14px; }
  .ind { grid-template-columns: 1fr; row-gap: 2px; padding: 12px 0; min-height: 0 !important; }

  /* Puntuación */
  .levels { margin-top: 18px; }

  /* Tecnologías */
  .tech { flex-direction: column; gap: 28px; }
  .tech-group--defined { flex: none; }
  .tech-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)) !important; grid-auto-rows: auto; }
  .tech-card { padding: 20px 22px; min-height: 92px; }

  /* Interfaz */
  .phone { width: min(280px, 72vw); margin: 0 auto; padding: 3px; border-radius: 43px; }
  .phone-btn--action, .phone-btn--up, .phone-btn--down { left: -2px; }
  .phone-btn--power { right: -2px; }
  .imsg { max-width: none; }
  .privacy { height: auto; gap: 16px; }
  .privacy .tile { width: 48px; height: 48px; font-size: 24px; }
  .capabilities { gap: 22px; padding: 6px 0 0; }
  .capability { grid-template-columns: 44px 1fr; column-gap: 16px; }
  .capability .tile { margin-top: 2px; width: 44px; height: 44px; font-size: 22px; }

  /* Objetivos y alcance */
  .objective { padding: 22px; }
  .scope-panel { padding: 24px 22px; }
  .checks li, .limits li { grid-template-columns: 22px 1fr; column-gap: 12px; }

  /* Gantt: nombre encima del carril */
  .gantt-head, .gantt-row { grid-template-columns: 1fr; row-gap: 6px; }
  .gantt-year { display: none; }
  .gantt-row { margin-top: 4px; }
  .gantt-months { font-size: 11px; }
  .gantt-notes { grid-template-columns: 1fr; row-gap: 10px; }

  /* Módulos */
  .module { grid-template-columns: 1fr; row-gap: 4px; padding: 14px 0; }

  /* Conclusión */
  .slide--end .stage { display: flex; flex-direction: column; }
  .end-radar, .end-label, .end-title, .end-cards, .end-foot { position: relative; left: auto; top: auto; right: auto; width: auto; }
  .end-radar { order: -1; width: min(70%, 320px); align-self: flex-end; margin: -20px -10px -120px 0; opacity: .8; }
  .end-title { margin-top: 12px; }
  .end-cards { margin-top: 26px; }
  .end-foot { margin-top: 28px; flex-direction: column; align-items: flex-start; gap: 18px; }

  .dock { --h: 52px; --pad: 4px; }
  .dock-btn { width: 44px; }
  .dock-title-text { max-width: 38vw; }
}

@media (max-width: 420px) {
  .dock-sep, .dock [data-action="fullscreen"] { display: none; }
  .dock-index { padding: 0 10px 0 8px; gap: 8px; }
}

/* ==========================================================================
   Preferencias de accesibilidad
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .radar-sweep { animation: none; transform: rotate(48deg); }
  .ping { animation: none; }
  .is-typing .caret { animation: none; }
  .ambient .glow, .dock-title, .seg-thumb, .sheet { transition-duration: .2s; }
  .sheet { transform: translateX(-50%); filter: none; }
  /* La píldora cambia de forma sin rebote ni desenfoque */
  .dock.has-morph { --spring: ease-out; }
  .dock.is-collapsed .dock-inner { scale: 1; filter: none; }
}

@media (prefers-reduced-transparency: reduce) {
  .glass, .glass-heavy, .pill {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: #1c1c1f;
  }
  .glass--red { background: #2a1615; }
  .glass-heavy { background: #232327; }
  html.refract .dock { backdrop-filter: none; }
}

@media (prefers-contrast: more) {
  :root { --hair: rgba(255, 255, 255, .3); --wire: rgba(255, 255, 255, .7); --l3: #c7c7cc; --l4: #aeaeb2; }
  .wire.is-svg:not(.wire--red) { --o: .7; }
  .glass, .glass-heavy { background: #1c1c1f; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45); }
  .glass::before, .glass-heavy::before { display: none; }
}

@media print {
  .dock, .sheet, .ambient, .rail { display: none; }
  .js [data-fx], .js [data-grow] { opacity: 1 !important; }
  .slide { break-after: page; }
}
