/* La IA en 2026 · presentación v2
   Lienzo fijo de 1920×1080 que se escala al tamaño de la ventana.
   Criterio: una idea por diapositiva, letra grande, sin cajas. Las líneas finas
   y el espacio ordenan; el acento (azul) marca solo el dato que importa. */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/Archivo-var.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: block;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: block;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next";
  src: url("../fonts/AtkinsonHyperlegibleNext-Italic-var.woff2") format("woff2");
  font-weight: 200 800;
  font-style: italic;
  font-display: block;
}

:root {
  --papel: #fbf9f4;
  --hueso: var(--papel);
  --tinta: #17150f;
  --tinta-suave: #5c564a;     /* 6,9 : 1 sobre el papel */
  --regla: #d3ccbc;
  --barra: #6f695b;           /* dato sin foco, 5,4 : 1 con texto blanco */
  --azul: #1d3a8a;            /* único acento */

  --display: "Archivo", "Arial", sans-serif;
  --texto: "Atkinson Hyperlegible Next", "Helvetica Neue", Arial, sans-serif;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --margen: 120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--papel); }
body {
  overflow: hidden;
  font-family: var(--texto);
  font-weight: 500;
  color: var(--tinta);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ---------- Escenario ---------- */
#stage {
  position: fixed;
  left: 50%;
  top: 50%;
  width: 1920px;
  height: 1080px;
  transform-origin: center center;
  transform: translate(-50%, -50%) scale(var(--escala, 0.5));
  background: var(--papel);
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  background: var(--papel);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s var(--ease-out), visibility 0s linear 0.18s;
  overflow: hidden;
}
.slide.is-active {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s var(--ease-out);
}
.slide .notes { display: none; }

#progreso { position: absolute; left: 0; bottom: 0; height: 6px; width: 100%; z-index: 5; }
#progreso i {
  display: block; height: 100%; width: 100%;
  transform: scaleX(0); transform-origin: left;
  background: var(--regla);
  transition: transform 0.3s var(--ease-out);
}

#apagado {
  position: fixed; inset: 0; background: #000; z-index: 50;
  opacity: 0; visibility: hidden; transition: opacity 0.15s;
}
body.apagado #apagado { opacity: 1; visibility: visible; }
body.sin-cursor { cursor: none; }

/* entrada breve de contenido */
.slide.is-active .sube {
  animation: sube 0.5s var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes sube {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes aparece { from { opacity: 0; } to { opacity: 1; } }

/* ================================================================
   Tipografía y componentes
   Criterio: cada diapositiva se entiende sola. Titular que afirma,
   una frase que explica el contexto, el dato y su lectura. La fuente
   va pequeña al pie; el acento (azul) marca solo lo que importa.
   ================================================================ */
.tit, .portada, .gran, .n, .num, .hitos b, .indice b, .bloque h2 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
.acento { color: var(--azul); }
.suave { color: var(--tinta-suave); }

/* contenedor de la diapositiva con contenido */
.pg {
  position: absolute;
  left: var(--margen); right: var(--margen);
  top: 56px; bottom: 130px;
  display: flex; flex-direction: column;
}
.cap {
  font-size: 28px; line-height: 1; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--azul); margin-bottom: 22px;
}
.tit { font-size: 88px; line-height: 1.05; max-width: 1680px; margin-bottom: 34px; }
.tit em { font-style: italic; font-weight: 800; }
.lede { font-size: 64px; line-height: 1.22; font-weight: 500; max-width: 1560px; margin-bottom: 34px; }
.sub-t { font-size: 44px; line-height: 1.2; color: var(--tinta-suave); font-weight: 600; margin-bottom: 14px; }
.cierre {
  margin-top: auto; padding-top: 22px;
  font-size: 42px; line-height: 1.26; font-weight: 700; max-width: 1660px;
}

.fuente {
  position: absolute; left: var(--margen); right: var(--margen); bottom: 40px;
  font-size: 28px; line-height: 1.3; color: var(--tinta-suave);
}

/* ---------- bloques en columnas ---------- */
.cols { display: grid; gap: 56px; margin-bottom: 30px; }
.cols.c2 { grid-template-columns: 1fr 1fr; }
.cols.c3 { grid-template-columns: 1fr 1fr 1fr; }
.bl { border-top: 3px solid var(--regla); padding-top: 22px; }
.bl.foco { border-top-color: var(--azul); }
.bl h3 { font-size: 66px; line-height: 1.12; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 12px; }
.bl p { font-size: 60px; line-height: 1.3; margin-bottom: 14px; }
.bl p b { font-weight: 800; }
.bl .num { font-family: var(--display); font-weight: 800; font-size: 110px; line-height: 1; color: var(--azul); margin-bottom: 8px; }
.bl.verbo h3 { font-family: var(--display); font-size: 140px; line-height: 1; color: var(--azul); margin-bottom: 14px; }
.bl.verbo p { font-size: 58px; font-weight: 600; }

.ejemplo {
  margin-top: 6px; padding: 8px 0 8px 32px; border-left: 8px solid var(--azul);
  font-size: 46px; line-height: 1.28; font-weight: 600; max-width: 1560px;
}
.ejemplo span { display: block; font-size: 26px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--tinta-suave); font-weight: 700; margin-bottom: 6px; }

/* ---------- lista de cifras con explicación ---------- */
.datos-lista { display: flex; flex-direction: column; margin-bottom: 26px; }
.datos-lista .f {
  display: grid; grid-template-columns: 370px 1fr; column-gap: 40px; align-items: center;
  padding: 14px 0; border-top: 2px solid var(--regla);
}
.datos-lista .n { font-size: 110px; line-height: 1; white-space: nowrap; }
.datos-lista .t { font-size: 40px; line-height: 1.28; }
.datos-lista .f.foco .n { color: var(--azul); }
.datos-lista.corta { margin-bottom: 14px; }
.datos-lista.corta .f { grid-template-columns: 270px 1fr; column-gap: 20px; padding: 12px 0; }
.datos-lista.corta .n { font-size: 80px; }
.datos-lista.corta .t { font-size: 34px; line-height: 1.24; }
.s-estudio .bl p:last-child { margin-bottom: 0; }

/* ---------- tablas ---------- */
.tabla { display: grid; grid-template-columns: 170px 1fr 1fr 1fr; margin-bottom: 26px; font-size: 42px; line-height: 1.2; }
.tabla.t4 { grid-template-columns: 1fr 190px 190px 190px; font-size: 36px; }
.tabla.t4 > div { padding-top: 8px; padding-bottom: 8px; }
.tabla > div { padding: 12px 18px 12px 0; border-top: 2px solid var(--regla); }
.tabla .th { font-size: 30px; font-weight: 700; color: var(--tinta-suave); border-top: 0; border-bottom: 3px solid var(--tinta); padding-top: 0; }
.tabla .r { text-align: right; font-variant-numeric: tabular-nums; padding-right: 24px; }
.tabla .foco { font-weight: 800; color: var(--azul); }
.tabla .tot { font-weight: 800; border-top: 3px solid var(--tinta); }

/* ---------- comparación ---------- */
.comparar { display: grid; grid-template-columns: 300px 1fr 1fr; margin-bottom: 26px; font-size: 40px; line-height: 1.25; }
.comparar > div { padding: 18px 28px 18px 0; border-top: 2px solid var(--regla); }
.comparar .cab { font-family: var(--display); font-size: 50px; font-weight: 800; border-top: 0; border-bottom: 3px solid var(--tinta); padding-top: 0; }
.comparar .cab.ag, .comparar .ag { color: var(--azul); font-weight: 700; }
.comparar .et { font-size: 30px; font-weight: 700; color: var(--tinta-suave); text-transform: uppercase; letter-spacing: 0.06em; padding-top: 24px; }

/* ---------- gráficos de barras horizontales ---------- */
.barras { position: relative; display: flex; flex-direction: column; gap: 34px; margin-bottom: 28px; }
.barras .barra { display: grid; grid-template-columns: var(--et, 360px) 1fr; column-gap: 24px; align-items: center; }
.barras .et { font-size: 54px; line-height: 1.15; font-weight: 600; }
.barras .tira { position: relative; display: block; height: 116px; }
.barras .tira i { display: block; height: 100%; width: calc(var(--v) * var(--k)); background: var(--barra); }
.barras .barra.foco .tira i { background: var(--azul); }
/* el valor va dentro de la barra, pegado a su final */
.barras .tira b {
  position: absolute; left: calc(var(--v) * var(--k) - 20px); top: 50%;
  transform: translate(-100%, -50%);
  font-family: var(--display); font-weight: 800; font-size: 62px; letter-spacing: -0.01em;
  line-height: 1; white-space: nowrap; color: #fff;
}
.barras.con-ref { padding-top: 62px; }
.barras .ref { position: absolute; left: calc(var(--et, 360px) + 24px + var(--ref) * var(--k)); top: 48px; bottom: 0; border-left: 3px dashed var(--tinta); }
.barras .ref-et { position: absolute; left: calc(var(--et, 360px) + 24px + var(--ref) * var(--k)); top: 0; transform: translateX(-50%); font-size: 30px; font-weight: 700; white-space: nowrap; }

/* ---------- listas numeradas ---------- */
.items { list-style: none; display: flex; flex-direction: column; margin-bottom: 20px; }
.items li { display: grid; grid-template-columns: 200px 1fr; column-gap: 20px; align-items: start; padding: 40px 0; border-top: 2px solid var(--regla); }
.items .num { font-family: var(--display); font-weight: 800; font-size: 140px; line-height: 0.95; letter-spacing: -0.03em; color: var(--azul); }
.items h3 { font-size: 68px; line-height: 1.14; font-weight: 800; letter-spacing: -0.015em; margin-bottom: 10px; }
.items p { font-size: 56px; line-height: 1.3; }
.items.verbos li { grid-template-columns: 520px 1fr; align-items: center; padding: 44px 0; }
.items.verbos .num { font-size: 116px; }
.items.verbos p { font-size: 60px; line-height: 1.22; font-weight: 600; }

/* ---------- filas texto (mapa) ---------- */
.filas-txt .f { display: grid; grid-template-columns: 700px 1fr; column-gap: 30px; align-items: baseline; padding: 22px 0; border-top: 2px solid var(--regla); }
.filas-txt h3 { font-family: var(--display); font-size: 62px; line-height: 1.1; font-weight: 800; letter-spacing: -0.02em; color: var(--azul); }
.filas-txt p { font-size: 60px; line-height: 1.3; }

/* ---------- cadena (meat proxy) ---------- */
.cadena { display: flex; flex-wrap: wrap; align-items: baseline; gap: 18px 24px; font-size: 92px; line-height: 1.25; margin-top: 30px; font-weight: 600; white-space: nowrap; margin-bottom: 40px; }
.cadena i { font-style: normal; color: var(--tinta-suave); font-weight: 400; }
.cadena .tu { color: var(--azul); font-weight: 800; border-bottom: 5px solid var(--azul); }

/* ---------- hitos (de dónde venimos) ---------- */
.hitos { list-style: none; display: flex; flex-direction: column; }
.hitos li { display: grid; grid-template-columns: 290px 1fr; column-gap: 30px; align-items: baseline; padding: 12px 0; border-top: 2px solid var(--regla); }
.hitos b { font-size: 92px; line-height: 1; }
.hitos p { font-size: 54px; line-height: 1.25; }
.hitos .ahora b { color: var(--azul); }
.hitos .ahora p { font-weight: 700; }

/* ---------- índice ---------- */
.indice { list-style: none; display: flex; flex-direction: column; }
.indice li { display: grid; grid-template-columns: 130px 1400px; align-items: baseline; padding: 10px 0; border-top: 2px solid var(--regla); }
.indice b { font-size: 76px; line-height: 1; color: var(--azul); }
.indice .n { font-family: var(--texto); font-size: 60px; font-weight: 800; letter-spacing: -0.01em; }
.indice .q { font-size: 36px; color: var(--tinta-suave); }

/* ---------- número grande con una línea de contexto ---------- */
.num-big.largo { font-size: 230px; }
.barras.densa { gap: 20px; }
.barras.densa .tira { height: 84px; }
.barras.densa .tira b { font-size: 50px; }
.barras.densa .et { font-size: 48px; }
.num-big { font-family: var(--display); font-weight: 800; font-size: 280px; line-height: 1; letter-spacing: -0.04em; color: var(--azul); white-space: nowrap; margin: 10px 0 30px; }
.dos { display: grid; grid-template-columns: 1fr 1fr; gap: 90px; margin-top: 10px; }
.dos .d { border-top: 4px solid var(--regla); padding-top: 24px; }
.dos .d.foco { border-top-color: var(--azul); }
.dos .d .n { font-family: var(--display); font-weight: 800; font-size: 200px; line-height: 1; letter-spacing: -0.035em; white-space: nowrap; }
.dos .d.foco .n { color: var(--azul); }
.dos .d .t { margin-top: 18px; font-size: 58px; line-height: 1.2; font-weight: 600; }
.cita { margin-top: 30px; padding: 12px 0 12px 44px; border-left: 12px solid var(--azul); font-size: 84px; line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; max-width: 1640px; }
.cita.grande { font-size: 140px; line-height: 1.08; margin-top: 60px; }
.barras .tira.fuera b { left: calc(var(--v) * var(--k) + 20px); transform: translate(0, -50%); color: var(--tinta); }

/* ================================================================
   Diapositivas especiales
   ================================================================ */
.portada { font-size: 300px; line-height: 0.9; letter-spacing: -0.04em; }
.portada span { display: block; }

.s-titulo .portada { position: absolute; left: calc(var(--margen) - 16px); top: 120px; font-size: 330px; line-height: 0.88; }
.s-titulo .pie { position: absolute; left: var(--margen); bottom: 92px; }
.s-titulo .nombre { font-size: 56px; font-weight: 700; line-height: 1.1; }
.s-titulo .nombre span { color: var(--tinta-suave); font-weight: 500; }
.s-titulo .evento { margin-top: 14px; font-size: 38px; color: var(--tinta-suave); }

.s-mano .pregunta {
  position: absolute; left: calc(var(--margen) - 4px); right: var(--margen); top: 0; bottom: 0;
  display: flex; align-items: center;
  font-family: var(--display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; font-size: 130px; text-wrap: balance;
}

.s-quien .portada { position: absolute; left: calc(var(--margen) - 10px); top: 100px; font-size: 230px; line-height: 0.9; }
/* marco: bloque azul desplazado detrás y filete fino en la esquina opuesta */
.s-quien .marco { position: absolute; right: calc(var(--margen) + 36px); top: 96px; width: 560px; height: 700px; margin: 0; }
.s-quien .marco::before { content: ""; position: absolute; inset: 0; transform: translate(36px, 36px); background: var(--azul); }
.s-quien .marco::after { content: ""; position: absolute; inset: 0; transform: translate(-22px, -22px); border: 4px solid var(--tinta); }
.s-quien .foto { position: relative; z-index: 1; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 15%; }
.s-quien .datos { position: absolute; left: var(--margen); top: 600px; max-width: 1080px; }
.s-quien .datos p { font-size: 54px; line-height: 1.2; font-weight: 700; letter-spacing: -0.015em; margin-bottom: 8px; }
.s-quien .datos .suave { font-weight: 500; }
.s-quien .datos .suave:last-child { font-size: 44px; white-space: nowrap; }
.s-quien .web { position: absolute; left: var(--margen); bottom: 92px; font-size: 46px; font-weight: 700; color: var(--azul); }

/* ================================================================
   Ilustraciones: un lenguaje gráfico (puntos, personas, cajas, barras)
   en gris con un único acento azul. Rellenan el espacio bajo el titular.
   ================================================================ */
.vis { flex: 1; min-height: 0; display: flex; align-items: center; gap: 36px; padding-bottom: 8px; }
.vis > * { flex: none; }
.pg.centro { justify-content: center; }
.nota { font-size: 40px; line-height: 1.2; color: var(--tinta-suave); font-weight: 500; }
.op { font-family: var(--display); font-weight: 800; font-size: 120px; line-height: 1; color: var(--tinta-suave); padding: 0 10px; }
.mini { font-size: 56px; font-weight: 600; color: var(--tinta-suave); margin-left: 12px; }
.fila-p { display: inline-flex; align-items: flex-end; }
.fl { font-family: var(--display); font-weight: 800; font-size: 110px; color: var(--azul); line-height: 1; }
.chipia { display: inline-flex; align-items: center; justify-content: center; background: var(--azul); color: #fff; font-family: var(--display); font-weight: 800; padding: 0 24px; border-radius: 18px; letter-spacing: 0.02em; }

/* cajas con icono */
.caja { display: inline-flex; align-items: center; gap: 22px; border: 4px solid var(--regla); background: #fff; border-radius: 24px; padding: 26px 34px; font-size: 54px; line-height: 1.12; font-weight: 700; }
.caja.foco { border-color: var(--azul); color: var(--azul); }
.caja .ci { display: inline-flex; flex: none; }
.caja.col { flex-direction: column; gap: 10px; }
.caja .iconos { display: inline-flex; gap: 18px; }
.flujo { display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.flujo { gap: 18px; }
.flujo .caja { font-size: 40px; max-width: 470px; padding: 22px 24px; gap: 16px; }
.flujo .fl { font-size: 70px; }
.ecu { display: flex; align-items: center; gap: 20px; }
.ecu .caja { font-size: 64px; padding: 32px 40px; gap: 24px; border-radius: 30px; }
.ecu .caja svg { width: 100px; height: 100px; }
.ecu .caja.col svg { width: 84px; height: 84px; }

/* tarjetas de tres columnas con icono */
.bl .bi { margin: 6px 0 18px; }

/* número grande con gráfico a la derecha */
.bigrow { flex: 1; display: grid; grid-template-columns: 1fr auto; gap: 80px; align-items: center; min-height: 0; padding-bottom: 12px; }
.bigl .num-big { margin-bottom: 20px; }
.bigv { display: flex; justify-content: flex-end; }
.wf { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.wf .waffle { display: block; }
.wcap { font-size: 34px; line-height: 1.2; color: var(--tinta-suave); font-weight: 600; max-width: 520px; }
.bigl .lede { max-width: 900px; }

/* dos columnas con gráfico */
.dos .d .dv .fl { font-size: 70px; }
.dos .d .dv { margin-top: 30px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.dos.cvis .d .n { font-size: 130px; }
.dos.cvis .d .t { font-size: 48px; margin-top: 12px; }
.dos.cvis .d .dv { margin-top: 20px; }

/* mini barras */
.mb { display: flex; flex-direction: column; gap: 18px; width: 100%; }
.mb .r { display: flex; align-items: center; gap: 18px; }
.mb .l { font-size: 44px; font-weight: 600; flex: none; }
.mb .b { height: 84px; background: var(--barra); flex: none; }
.mb .b.foco { background: var(--azul); }
.mb .v { font-family: var(--display); font-weight: 800; font-size: 56px; white-space: nowrap; }

/* 7 · siguiente palabra */
.sigp { display: flex; flex-direction: column; gap: 30px; width: 100%; }
.sigp .fr { font-size: 100px; line-height: 1.15; font-weight: 700; }
.sigp .hueco { display: inline-block; min-width: 130px; border-bottom: 8px solid var(--azul); text-align: center; color: var(--azul); }
.cand { display: flex; flex-direction: column; gap: 22px; }
.cand .r { display: grid; grid-template-columns: 420px 1fr; align-items: center; gap: 24px; }
.cand .w { font-size: 64px; font-weight: 600; }
.cand .b { height: 80px; background: var(--barra); }
.cand .b.foco { background: var(--azul); }
.cand .r:first-child .w { color: var(--azul); font-weight: 800; }

/* 11 · pasos del agente */
.pag { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-top: 30px; }
.pag svg { width: 68px; height: 68px; }
.pag li { display: flex; align-items: center; gap: 24px; font-size: 58px; font-weight: 600; }
.pag li.av { color: var(--azul); font-weight: 800; }

/* 17 · jornada */
.jor { width: 100%; }
.jor .segs { display: flex; gap: 14px; }
.jor .seg { flex: 1; height: 96px; background: var(--regla); }
.jor .seg.on { background: var(--azul); }
.jl { margin-top: 26px; font-size: 54px; font-weight: 600; color: var(--tinta-suave); }
.jl b { color: var(--azul); font-family: var(--display); font-weight: 800; }

/* 31 · grupos de personas */
.grupos { display: flex; align-items: center; gap: 56px; }
.grupos p { font-size: 64px; font-weight: 700; margin-top: 16px; }
.grupos .op { padding: 0 10px 60px; }

/* 34 · conversación */
.chat { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 1500px; }
.bub { font-size: 62px; line-height: 1.25; font-weight: 600; padding: 26px 36px; border-radius: 30px; max-width: 1150px; }
.bub.cli { background: #fff; border: 4px solid var(--regla); align-self: flex-start; }
.bub.ia { background: var(--azul); color: #fff; align-self: flex-end; }
.bub .tag { display: block; font-size: 34px; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; opacity: 0.8; margin-bottom: 6px; }

/* 36 · tareas */
.tareas { display: flex; gap: 110px; align-items: flex-end; }
.tareas p { font-size: 54px; line-height: 1.2; font-weight: 600; margin-top: 18px; max-width: 700px; }
.tareas .sqs { display: grid; grid-template-columns: repeat(9, 84px); gap: 12px; }
.tareas .sqs.one { grid-template-columns: 84px; }
.tareas .sq { height: 84px; background: var(--barra); }
.tareas .sq.foco { background: var(--azul); }

/* 41 · correo sin leer */
.mail { position: relative; width: 940px; background: #fff; border: 4px solid var(--regla); border-radius: 20px; padding: 36px 44px 44px; display: flex; flex-direction: column; gap: 28px; }
.mail .mh { font-size: 52px; font-weight: 800; padding-bottom: 14px; border-bottom: 4px solid var(--regla); }
.mail .ml { display: block; height: 22px; background: var(--regla); border-radius: 11px; }
.mail .sello { position: absolute; right: -4px; bottom: 36px; transform: rotate(-6deg); background: var(--azul); color: #fff; font-family: var(--display); font-weight: 800; font-size: 64px; padding: 16px 34px; border-radius: 10px; }

/* 44 · cartas */
.cartas { display: flex; gap: 40px; }
.carta { width: 520px; background: #fff; border: 4px solid var(--regla); border-radius: 24px; padding: 34px 38px; display: flex; flex-direction: column; gap: 22px; }
.carta .ct { font-size: 78px; font-weight: 800; font-family: var(--display); }
.carta .cq { align-self: flex-start; font-size: 52px; font-weight: 700; background: var(--azul); color: #fff; padding: 6px 22px; border-radius: 40px; }

/* 45 · lista de comprobación */
.chk { list-style: none; display: flex; flex-direction: column; gap: 28px; }
.chk svg { width: 80px; height: 80px; }
.chk li { display: flex; align-items: center; gap: 36px; font-size: 100px; font-weight: 800; font-family: var(--display); }
.chk .cb { display: inline-flex; align-items: center; justify-content: center; width: 120px; height: 120px; border: 6px solid var(--azul); border-radius: 18px; }

/* 46 · atribución de cita */
.atrib { margin-top: 40px; font-size: 56px; font-weight: 600; color: var(--tinta-suave); padding-left: 56px; }

/* 47 · filas de personas */
.dosfilas { display: flex; flex-direction: column; gap: 46px; width: 100%; }
.dosfilas .fr { display: flex; align-items: flex-end; gap: 28px; }
.dosfilas .lab { width: 600px; font-size: 60px; font-weight: 700; align-self: center; }
.dosfilas .fr svg { flex: none; }

/* 53 · prohibir / autorizar */
.pares { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; width: 100%; margin-top: 20px; }
.car { border: 4px solid var(--regla); background: #fff; border-radius: 28px; padding: 56px 56px 64px; }
.car.si { border-color: var(--azul); }
.car .t { font-family: var(--display); font-weight: 800; font-size: 100px; margin-top: 14px; }
.car .s { font-size: 60px; line-height: 1.2; font-weight: 600; color: var(--tinta-suave); margin-top: 8px; }
.car.si .t { color: var(--azul); }

/* ================================================================
   Movimiento que explica (solo al entrar la diapositiva)
   Propósito: explicación. Se ve una vez por diapositiva, así que puede
   durar más que en un producto. Solo transform, opacity y trazo (SVG).
   Todos los fotogramas inicial parten del estado final: sin movimiento
   (?vista, ?print, movimiento reducido) se ve la diapositiva terminada.
   ================================================================ */
@keyframes crece-x { from { transform: scaleX(0); } }
@keyframes crece-y { from { transform: scaleY(0); } }
@keyframes pop { from { opacity: 0; transform: scale(0.6); } }
@keyframes aparece-pop { from { opacity: 0; transform: scale(0.85); } }
@keyframes dibuja { from { stroke-dashoffset: 1; opacity: 0; } 2% { opacity: 1; } }
@keyframes pulso { 40% { transform: scale(1.07); } }
@keyframes empuja { 50% { transform: translateX(14px); } }
@keyframes vaiven { 50% { transform: translateX(16px); } }
@keyframes sale { from { opacity: 1; } }
@keyframes sello { from { opacity: 0; transform: rotate(-6deg) scale(1.6); } }
@keyframes reparte { from { transform: translate(var(--dx), var(--dy)); color: var(--barra); } }
@keyframes escribe { 0% { opacity: 0; } 12%, 85% { opacity: 1; } 100% { opacity: 0; } }
@keyframes bota { 0%, 60%, 100% { transform: translateY(0); } 30% { transform: translateY(-10px); } }
@keyframes viaja { to { offset-distance: 100%; } }
@keyframes nodo-on { 0%, 14% { border-color: var(--azul); } 24%, 100% { border-color: var(--regla); } }
@keyframes marco-a { from { transform: translate(0, 0); } }

/* barras que crecen una tras otra y el valor al final */
.barras .barra:nth-of-type(1) { --r: 0; } .barras .barra:nth-of-type(2) { --r: 1; } .barras .barra:nth-of-type(3) { --r: 2; } .barras .barra:nth-of-type(4) { --r: 3; }
.barras .barra:nth-of-type(5) { --r: 4; } .barras .barra:nth-of-type(6) { --r: 5; } .barras .barra:nth-of-type(7) { --r: 6; } .barras .barra:nth-of-type(8) { --r: 7; }
.mb .r:nth-child(1), .cand .r:nth-child(1) { --r: 0; } .mb .r:nth-child(2), .cand .r:nth-child(2) { --r: 1; } .mb .r:nth-child(3), .cand .r:nth-child(3) { --r: 2; }
.slide.is-active .barras .tira i { transform-origin: left center; animation: crece-x 0.7s var(--ease-out) both; animation-delay: calc(var(--r, 0) * 130ms + 350ms); }
.slide.is-active .barras .tira b { animation: aparece 0.3s ease-out both; animation-delay: calc(var(--r, 0) * 130ms + 850ms); }
.slide.is-active .barras .ref { transform-origin: top center; animation: crece-y 0.5s var(--ease-out) both; animation-delay: 1100ms; }
.slide.is-active .barras .ref-et { animation: aparece 0.3s ease-out both; animation-delay: 1100ms; }
.slide.is-active .mb .b { transform-origin: left center; animation: crece-x 0.7s var(--ease-out) both; animation-delay: calc(var(--r, 0) * 130ms + 450ms); }
.slide.is-active .mb .v { animation: aparece 0.3s ease-out both; animation-delay: calc(var(--r, 0) * 130ms + 950ms); }

/* puntos que se rellenan */
.waffle .on { transform-box: fill-box; transform-origin: center; }
.slide.is-active .waffle .on { animation: pop 0.35s var(--ease-out) both; animation-delay: calc(var(--k) * 9ms + 350ms); }

/* secuencia de piezas: cada hijo entra tras el anterior */
.seqr > :nth-child(1) { --j: 0; } .seqr > :nth-child(2) { --j: 1; } .seqr > :nth-child(3) { --j: 2; } .seqr > :nth-child(4) { --j: 3; } .seqr > :nth-child(5) { --j: 4; }
.seqr > :nth-child(6) { --j: 5; } .seqr > :nth-child(7) { --j: 6; } .seqr > :nth-child(8) { --j: 7; } .seqr > :nth-child(9) { --j: 8; }
.dv.seq > :nth-child(1) { --j: 0; } .dv.seq > :nth-child(2) { --j: 1; } .dv.seq > :nth-child(3) { --j: 2; } .dv.seq > :nth-child(4) { --j: 3; } .dv.seq > :nth-child(5) { --j: 4; }
.slide.is-active .seqr > *, .slide.is-active .dv.seq > * { animation: aparece-pop 0.5s var(--ease-out) both; animation-delay: calc(var(--b, 600ms) + var(--j, 0) * 200ms); }
.cadena.seqr { --b: 400ms; }
.slide.is-active .cadena.seqr > * { animation-delay: calc(400ms + var(--j) * 230ms); }
.slide.is-active .dos .d:first-child .dv .fl { animation: aparece-pop 0.5s var(--ease-out) calc(var(--b, 600ms) + var(--j, 0) * 200ms) both, vaiven 0.9s ease-in-out 1.6s 4; }
.slide.is-active .flujo .fl { animation: aparece-pop 0.5s var(--ease-out) calc(var(--b, 600ms) + var(--j, 0) * 200ms) both, empuja 0.9s ease-in-out 2.6s 3; }
.ecu .iconos svg:nth-child(1) { --q: 0; } .ecu .iconos svg:nth-child(2) { --q: 1; } .ecu .iconos svg:nth-child(3) { --q: 2; }
.slide.is-active .ecu .iconos svg { animation: pop 0.35s var(--ease-out) both; animation-delay: calc(1200ms + var(--q, 0) * 140ms); }
.slide.is-active .ecu .caja.foco { animation: aparece-pop 0.5s var(--ease-out) 1400ms both, pulso 0.6s ease-in-out 2.3s; }

/* trazo que se dibuja */
.dib * { stroke-dasharray: 1; }
.slide.is-active .dib * { animation: dibuja 0.5s var(--ease-out) var(--t, calc(var(--b, 600ms) + 250ms)) both; }

/* 7 · la palabra más probable rellena el hueco */
.hueco { position: relative; min-width: 5.2em; }
.hueco .pt { position: absolute; inset: 0; opacity: 0; }
.hueco .ll { display: inline-block; }
.slide.is-active.p1 .cand .b { transform-origin: left center; animation: crece-x 0.7s var(--ease-out) both; animation-delay: calc(var(--r, 0) * 140ms + 1000ms); }
.slide.is-active.p1 .cand .w { animation: aparece 0.3s ease-out both; animation-delay: calc(var(--r, 0) * 140ms + 900ms); }
.slide.is-active.p1 .hueco .pt { animation: sale 0.25s ease-out 1.3s both; }
.slide.is-active.p1 .hueco .ll { animation: sube 0.45s var(--ease-out) 1.4s both; }

/* 10 · bucle del agente: un paquete recorre cerebro, manos y resultado */
.ciclo { position: relative; width: 1680px; height: 640px; }
.ciclo .pista { position: absolute; inset: 0; }
.ciclo .paquete { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--azul); z-index: 3;
  offset-path: path("M 240 300 H 1440 V 510 H 240 Z"); offset-rotate: 0deg; offset-distance: 0%; }
.ciclo .nodo { position: absolute; top: 0; width: 480px; height: 300px; box-sizing: border-box; background: #fff; border: 5px solid var(--regla); border-radius: 28px; padding: 34px 30px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 2; }
.ciclo .nodo b { font-family: var(--display); font-weight: 800; font-size: 62px; line-height: 1.1; }
.ciclo .nodo span:last-child { font-size: 42px; line-height: 1.15; font-weight: 500; color: var(--tinta-suave); }
.ciclo .bucle-l { position: absolute; left: 50%; top: 476px; transform: translateX(-50%); z-index: 3; background: var(--papel); padding: 6px 30px; font-size: 54px; font-weight: 700; white-space: nowrap; color: var(--azul); }
.slide.is-active .ciclo .paquete { animation: viaja 7s linear 1.2s infinite; }
.slide.is-active .ciclo .nodo { animation: nodo-on 7s linear var(--t) infinite; }

/* 11 · pasos del encargo, uno a uno */
.pag li:nth-child(1) { --k: 0; } .pag li:nth-child(2) { --k: 1; } .pag li:nth-child(3) { --k: 2; } .pag li:nth-child(4) { --k: 3; }
.slide.is-active .pag li { animation: sube 0.5s var(--ease-out) both; animation-delay: calc(900ms + var(--k) * 650ms); }
.slide.is-active .pag li svg * { animation: dibuja 0.45s var(--ease-out) calc(1100ms + var(--k) * 650ms) both; }
.slide.is-active .pag li.av svg { transform-origin: center; animation: pulso 0.6s ease-in-out 3.6s 2; }

/* 17 · la jornada se llena */
.slide.is-active .jor .seg { transform-origin: left center; animation: crece-x 0.45s var(--ease-out) both; animation-delay: calc(var(--k) * 110ms + 500ms); }
.slide.is-active .jor .jl { animation: aparece 0.4s ease-out 1500ms both; }

/* 31 · reparto al azar */
.azar { position: relative; width: 1680px; height: 390px; }
.azar .pp { position: absolute; display: block; line-height: 0; }
.azar .pp.a { color: var(--azul); }
.azar .pp.b { color: var(--barra); }
.azar .gl { position: absolute; top: 312px; font-size: 64px; font-weight: 700; }
.azar .gl.a { left: 150px; color: var(--azul); }
.azar .gl.b { left: 1030px; }
.azar .azl { position: absolute; left: 840px; top: 130px; transform: translateX(-50%); font-size: 60px; font-weight: 600; color: var(--tinta-suave); white-space: nowrap; }
.slide.is-active .azar .pp { animation: reparte 0.8s cubic-bezier(0.77, 0, 0.175, 1) calc(var(--k) * 55ms + 900ms) both; }
.slide.is-active .azar .gl, .slide.is-active .azar .azl { animation: aparece 0.4s ease-out 2.2s both; }

/* 34 · la conversación */
.iaw { position: relative; align-self: flex-end; }
.bub.typing { position: absolute; right: 0; top: 0; display: flex; gap: 14px; padding: 40px 50px; background: var(--azul); opacity: 0; }
.bub.typing i { width: 22px; height: 22px; border-radius: 50%; background: #fff; display: block; }
.chat > .bub.cli, .chat .nota { }
.slide.is-active .chat > .bub.cli { animation: sube 0.45s var(--ease-out) 600ms both; }
.slide.is-active .bub.typing { animation: escribe 1.3s ease-out 1.3s both; }
.slide.is-active .bub.typing i { animation: bota 0.9s ease-in-out 1.3s 2; }
.slide.is-active .bub.typing i:nth-child(2) { animation-delay: 1.45s; } .slide.is-active .bub.typing i:nth-child(3) { animation-delay: 1.6s; }
.slide.is-active .iaw .bub.ia { transform-origin: right bottom; animation: aparece-pop 0.45s var(--ease-out) 2.6s both; }

/* 36 · 18 tareas y una trampa */
.tareas > div:nth-child(1) p { }
.slide.is-active .tareas .sq { animation: pop 0.3s var(--ease-out) both; animation-delay: calc(var(--k) * 35ms + 450ms); }
.slide.is-active .tareas .sq.foco { animation: pop 0.3s var(--ease-out) 1500ms both, pulso 0.6s ease-in-out 2.1s 2; }
.slide.is-active .tareas > div:nth-child(1) p { animation: aparece 0.4s ease-out 1200ms both; }
.slide.is-active .tareas > div:nth-child(2) p { animation: aparece 0.4s ease-out 1800ms both; }

/* 41 · correo sin leer */
.slide.is-active .mail .ml { transform-origin: left center; animation: crece-x 0.5s var(--ease-out) both; animation-delay: calc(var(--k) * 140ms + 500ms); }
.slide.is-active .mail .sello { animation: sello 0.35s var(--ease-out) 1.9s both; }

/* 44 · cartas */
.cartas .carta:nth-child(1) { --j: 0; } .cartas .carta:nth-child(2) { --j: 1; } .cartas .carta:nth-child(3) { --j: 2; }
.slide.is-active .cartas .carta { animation: aparece-pop 0.5s var(--ease-out) calc(400ms + var(--j) * 180ms) both; }
.slide.is-active .cartas .cq { animation: pulso 0.6s ease-in-out calc(1500ms + var(--j) * 250ms); }

/* 45 · lista de comprobación */
.chk li:nth-child(1) { --k: 0; } .chk li:nth-child(2) { --k: 1; } .chk li:nth-child(3) { --k: 2; }
.slide.is-active .chk li { animation: sube 0.45s var(--ease-out) calc(500ms + var(--k) * 450ms) both; }
.chk .dib { --t: calc(700ms + var(--k) * 450ms); }

/* 47 · quién sabe verlo */
.dosfilas .fr:nth-child(1) { --b: 500ms; } .dosfilas .fr:nth-child(2) { --b: 1500ms; }
.dosfilas .fila-p svg:nth-child(1) { --q: 0; } .dosfilas .fila-p svg:nth-child(2) { --q: 1; } .dosfilas .fila-p svg:nth-child(3) { --q: 2; }
.dosfilas .fila-p svg:nth-child(4) { --q: 3; } .dosfilas .fila-p svg:nth-child(5) { --q: 4; } .dosfilas .fr > svg { --q: 6; }
.slide.is-active .dosfilas .fila-p svg, .slide.is-active .dosfilas .fr > svg { animation: pop 0.35s var(--ease-out) calc(var(--b) + var(--q) * 110ms) both; }
.slide.is-active .dosfilas .lab { animation: aparece 0.4s ease-out var(--b) both; }

/* 53 · prohibir frente a autorizar */
.car.no { --b: 400ms; } .car.si { --b: 1300ms; }
.slide.is-active .car { animation: sube 0.5s var(--ease-out) var(--b) both; }

/* 3 · el marco se coloca */
.slide.is-active.s-quien .marco::before { animation: marco-a 0.8s var(--ease-out) 0.35s both; }
.slide.is-active.s-quien .marco::after { animation: marco-a 0.8s var(--ease-out) 0.35s both; }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active *, .slide.is-active *::before, .slide.is-active *::after { animation: none !important; }
}

/* reparto vertical: listas y barras ocupan el alto disponible en vez de quedarse arriba */
.items, .hitos, .filas-txt { flex: 1; max-height: 760px; margin-bottom: 0; }
.filas-txt { display: flex; flex-direction: column; }
.items li, .hitos li, .filas-txt .f { flex: 1 1 0; align-content: center; align-items: center; padding-top: 0; padding-bottom: 0; }
.barras { flex: 1; max-height: 740px; justify-content: space-evenly; margin-bottom: 0; }
.barras.grande .tira { height: 140px; }
.barras.con-ref { flex: none; max-height: none; justify-content: flex-start; }
.barras.con-ref.grande .tira { height: 116px; }
.barras.con-ref.grande .et { font-size: 54px; }
.barras.con-ref.grande .tira b { font-size: 60px; }
.barras.grande .et { font-size: 60px; }
.barras.grande .tira b { font-size: 72px; }
.barras.densa { justify-content: space-between; }



/* FASE2 ================================================================
   Pasos dentro de una diapositiva, ventana flotante y componentes nuevos
   ================================================================ */
.slide[data-pasos] [data-p] { visibility: hidden; opacity: 0; transition: opacity 0.25s var(--ease-out), visibility 0s linear 0.25s; }
.slide.p1 [data-p="1"], .slide.p2 [data-p="2"], .slide.p3 [data-p="3"] { visibility: visible; opacity: 1; transition: opacity 0.25s var(--ease-out); }
.slide[data-pasos]:not(.p1) .hueco .ll { opacity: 0; }
.slide[data-pasos]:not(.p1) .hueco .pt { opacity: 1; }
html.modo-vista .slide[data-pasos] [data-p], html.modo-print .slide[data-pasos] [data-p] { visibility: visible; opacity: 1; transition: none; }
html.modo-vista .modal, html.modo-print .modal { display: none; }

.modal { position: absolute; inset: 0; z-index: 20; background: rgba(23, 21, 15, 0.5); display: flex; align-items: center; justify-content: center; }
.modal .tarjeta { background: var(--papel); border: 4px solid var(--tinta); border-radius: 36px; padding: 56px 72px 64px; width: 1560px; }
.slide.is-active.p1 .modal .tarjeta { animation: aparece-pop 0.3s var(--ease-out) both; }
.modal h3 { font-family: var(--display); font-weight: 800; font-size: 76px; line-height: 1.05; letter-spacing: -0.02em; margin-bottom: 36px; }

.vis.col { flex-direction: column; align-items: flex-start; justify-content: center; gap: 50px; }
.slide.is-active .tl .linea i { animation: crece-x 2s var(--ease-out) 0.4s both; }
.slide.is-active .tl .hito { animation: sube 0.5s var(--ease-out) both; animation-delay: calc(0.5s + var(--k) * 0.4s); }
.slide.is-active .tl .tramo { animation: aparece 0.3s ease-out both; animation-delay: calc(0.9s + var(--k) * 0.4s); }

/* divisor de capítulo */
.slide.s-capitulo .bloque { flex-direction: row; align-items: center; justify-content: flex-start; gap: 70px; }
.slide.s-capitulo .num { font-family: var(--display); font-weight: 800; font-size: 340px; line-height: 0.8; color: var(--azul); letter-spacing: -0.05em; }
.slide.s-capitulo .txt { display: flex; flex-direction: column; }
.slide.s-capitulo h2 { font-size: 104px; }
.slide.s-capitulo .sub { max-width: 1180px; font-size: 58px; margin-top: 30px; }

/* linea de tiempo */
.tl { position: relative; margin-top: 110px; flex: 1; }
.tl .linea { position: absolute; left: 160px; right: 160px; top: 226px; height: 8px; background: var(--regla); }
.tl .linea i { display: block; height: 100%; width: 100%; background: var(--azul); transform-origin: left; }
.tl .hitos5 { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.tl .hito { display: flex; flex-direction: column; align-items: center; text-align: center; }
.tl .hito b { font-family: var(--display); font-weight: 800; font-size: 104px; line-height: 1; letter-spacing: -0.03em; height: 160px; display: flex; align-items: flex-end; }
.tl .hito .pt { width: 40px; height: 40px; border-radius: 50%; background: var(--papel); border: 8px solid var(--barra); margin: 50px 0 40px; position: relative; z-index: 2; box-sizing: border-box; }
.tl .hito h3 { font-size: 58px; line-height: 1.1; font-weight: 800; margin-bottom: 14px; }
.tl .hito p { font-size: 44px; line-height: 1.25; font-weight: 500; color: var(--tinta-suave); }
.tl .hito.ahora b, .tl .hito.ahora h3 { color: var(--azul); }
.tl .hito.ahora .pt { background: var(--azul); border-color: var(--azul); width: 56px; height: 56px; margin: 42px 0 32px; }
.tl .hito.ahora p { color: var(--tinta); font-weight: 600; }
.tl .tramo { position: absolute; top: 204px; transform: translateX(-50%); background: var(--papel); padding: 0 14px; font-size: 38px; font-weight: 600; color: var(--tinta-suave); white-space: nowrap; z-index: 1; }

/* dos mundos */
.mundos { display: flex; align-items: center; justify-content: center; gap: 30px; width: 100%; }
.mundos .lado { width: 470px; border: 4px solid var(--regla); background: #fff; border-radius: 28px; padding: 36px 36px 40px; display: flex; flex-direction: column; gap: 14px; }
.mundos .lado .ic { display: flex; gap: 22px; }
.mundos .lado b { font-family: var(--display); font-weight: 800; font-size: 60px; line-height: 1.05; }
.mundos .lado span.d { font-size: 42px; line-height: 1.2; color: var(--tinta-suave); font-weight: 500; }
.mundos .lado.cerrado { border-style: dashed; }
.mundos .cer { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 280px; }
.mundos .cer b { font-family: var(--display); font-weight: 800; font-size: 54px; color: var(--azul); }
.mundos .paso { position: relative; width: 150px; height: 150px; display: flex; align-items: center; justify-content: center; }
.mundos .paso .ban { position: absolute; }
.mundos svg { flex: none; }
.cierre-txt { font-size: 60px; line-height: 1.2; font-weight: 600; margin-top: 10px; max-width: 1500px; }

/* agente: piezas con pie */
.ecu .pieza { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.ecu .pieza > p { font-size: 46px; line-height: 1.15; font-weight: 500; color: var(--tinta-suave); text-align: center; }

/* bucle del agente */
.bucle2 { position: relative; width: 1680px; height: 640px; }
.bucle2 svg.fl2 { position: absolute; inset: 0; }
.bucle2 .caja2 { position: absolute; box-sizing: border-box; background: #fff; border: 5px solid var(--regla); border-radius: 28px; z-index: 2; }
.bucle2 .tarj { top: 190px; width: 440px; height: 250px; padding: 28px 32px; display: flex; flex-direction: column; gap: 4px; }
.bucle2 .tarj b { font-family: var(--display); font-weight: 800; font-size: 58px; line-height: 1.1; }
.bucle2 .tarj span { font-size: 40px; line-height: 1.15; font-weight: 500; color: var(--tinta-suave); }
.bucle2 .pill { top: 0; width: 440px; height: 112px; display: flex; align-items: center; gap: 18px; padding: 0 26px; font-size: 46px; white-space: nowrap; font-weight: 700; }
.bucle2 .pill svg { flex: none; }
.bucle2 .pill.fin { border-color: var(--azul); color: var(--azul); }
.bucle2 .etq { position: absolute; z-index: 3; background: var(--papel); padding: 4px 22px; font-size: 42px; font-weight: 600; color: var(--tinta-suave); white-space: nowrap; }
.bucle2 .tarj > svg { width: 76px; height: 76px; flex: none; }
.bucle2 .paquete { position: absolute; left: 0; top: 0; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--azul); z-index: 1; offset-path: path("M 220 315 H 1460 V 540 H 220 Z"); offset-rotate: 0deg; offset-distance: 0%; }
.slide.is-active .bucle2 .paquete { animation: viaja 7s linear 1.2s infinite; }
.slide.is-active .bucle2 .tarj { animation: nodo-on 7s linear var(--t) infinite; }

/* encargo: conversación */
.chat.grande .bub { font-size: 70px; max-width: 1350px; }

/* carriles: quién hace cada cosa */
.carriles { display: flex; flex-direction: column; gap: 56px; margin-top: 24px; flex: 1; justify-content: center; padding-bottom: 20px; }
.carriles .fila { display: grid; grid-template-columns: 430px 1fr; gap: 40px; align-items: center; }
.carriles .et b { display: block; font-family: var(--display); font-weight: 800; font-size: 62px; line-height: 1.05; }
.carriles .et span { font-size: 46px; color: var(--tinta-suave); font-weight: 500; }
.carriles .pasos { display: flex; align-items: stretch; gap: 22px; }
.carriles .pasos .fl { align-self: center; font-size: 80px; }
.carriles .p { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px 18px; border-radius: 24px; text-align: center; font-size: 46px; line-height: 1.12; font-weight: 700; min-height: 220px; box-sizing: border-box; }
.carriles .p.yo { background: #fff; border: 4px solid var(--regla); }
.carriles .p.ia { background: var(--azul); color: #fff; }
.carriles .p.ancho { flex: 2.6; }
.carriles .p svg { flex: none; }

/* IndesIA: de la web a la ficha */
.tubo { display: flex; align-items: center; gap: 28px; margin-top: 26px; }
.tubo { gap: 22px; }
.tubo .caja { font-size: 42px; padding: 22px 26px; gap: 18px; }
.tubo .ficha { background: #fff; border: 4px solid var(--azul); border-radius: 24px; padding: 24px 30px; display: flex; flex-direction: column; gap: 6px; font-size: 40px; line-height: 1.15; font-weight: 600; }
.tubo .ficha span { color: var(--tinta-suave); font-weight: 500; }
.tubo .ficha b { color: var(--azul); }
.tubo .caja .ci svg { width: 64px; height: 64px; }
.tubo .ia-caja { max-width: 470px; }
.pie-txt { font-size: 62px; line-height: 1.2; font-weight: 600; margin-top: 56px; max-width: 1560px; }

/* tres tarjetas: web, IA, ficha */
.tubo3 { display: grid; grid-template-columns: 1fr 90px 1fr 90px 1fr; align-items: stretch; width: 100%; }
.tubo3 .fl { align-self: center; text-align: center; font-size: 96px; }
.t3 { border: 4px solid var(--regla); background: #fff; border-radius: 28px; padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; gap: 22px; font-size: 52px; line-height: 1.12; font-weight: 700; }
.t3.foco { border-color: var(--azul); }
.t3 svg { flex: none; }
.t3 > span:not(.chipia) { font-weight: 500; color: var(--tinta-suave); font-size: 44px; line-height: 1.1; }
.t3 .chipia { align-self: flex-start; }
.t3 b.v { color: var(--azul); font-size: 56px; margin-top: -10px; }
.t3.ficha3 { gap: 8px; }

/* tijera */
.tijera { width: 1680px; height: 590px; }
.tijera text { font-family: var(--texto); font-weight: 700; }
.tijera .t-a { fill: var(--azul); } .tijera .t-b { fill: var(--tinta-suave); }
.tijera .anio { fill: var(--tinta); font-size: 46px; font-weight: 600; }
.slide.is-active .tijera .ln { stroke-dasharray: 1; animation: dibuja 1.1s var(--ease-out) 0.5s both; }
.slide.is-active .tijera .pto { transform-box: fill-box; transform-origin: center; animation: pop 0.35s var(--ease-out) both; animation-delay: calc(0.6s + var(--j) * 0.35s); }
.slide.is-active .tijera .val { animation: aparece 0.3s ease-out both; animation-delay: calc(0.7s + var(--j) * 0.35s); }

/* 5 horas */
.filas2 { display: flex; flex-direction: column; gap: 60px; margin-top: 30px; width: 100%; }
.filas2 .f { display: grid; grid-template-columns: 460px 1fr; gap: 40px; align-items: center; }
.filas2 .et { display: flex; align-items: center; gap: 24px; font-size: 54px; font-weight: 700; line-height: 1.1; }
.filas2 .segs { display: flex; gap: 12px; }
.filas2 .seg { width: 120px; height: 100px; background: var(--regla); }
.filas2 .seg.on { background: var(--azul); }
.filas2 .nota-f { font-size: 44px; font-weight: 600; color: var(--tinta-suave); margin-top: 14px; }
.moneda { display: flex; align-items: center; gap: 24px; }
.moneda .m { width: 150px; height: 150px; border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.moneda .m.si { background: var(--azul); }
.moneda .m.no { background: #fff; border: 4px solid var(--regla); }
.moneda p { font-size: 54px; font-weight: 700; margin-left: 20px; }
.slide.is-active .filas2 .seg { transform-origin: left; animation: crece-x 0.45s var(--ease-out) both; animation-delay: calc(var(--k) * 110ms + 500ms); }
.slide.is-active .filas2 .moneda .m { animation: pop 0.35s var(--ease-out) both; animation-delay: calc(1500ms + var(--k) * 200ms); }
.slide.is-active .filas2 .moneda p { animation: aparece 0.4s ease-out 2s both; }

/* relojes que se duplican */
.relojes { display: flex; align-items: flex-end; justify-content: center; gap: 56px; margin-top: 40px; width: 100%; }
.relojes .r { display: flex; flex-direction: column; align-items: center; gap: 16px; font-size: 54px; font-weight: 700; }
.relojes .x2 { font-family: var(--display); font-weight: 800; font-size: 120px; color: var(--azul); padding-bottom: 150px; }
.slide.is-active .relojes > * { animation: aparece-pop 0.5s var(--ease-out) both; animation-delay: calc(500ms + var(--j) * 380ms); }
.cola { font-size: 56px; font-weight: 600; margin-top: 50px; color: var(--tinta-suave); text-align: center; width: 100%; }

/* globo */
.globrow { flex: 1; display: flex; align-items: center; gap: 110px; min-height: 0; }
.globt .num-big { font-size: 330px; margin: 0 0 10px; }
.globt .unidad { font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 1; letter-spacing: -0.02em; margin-bottom: 36px; }
.globo { color: var(--azul); }
.slide.is-active .globo svg { animation: aparece-pop 0.7s var(--ease-out) 0.3s both; }

/* anillo de gasto (ventana) */
.gasto { display: flex; align-items: center; gap: 90px; }
.gasto .etqs { display: flex; flex-direction: column; gap: 22px; font-size: 56px; font-weight: 600; line-height: 1.1; }
.gasto .etqs .l { display: flex; align-items: center; gap: 22px; }
.gasto .etqs .s { width: 36px; height: 36px; border-radius: 8px; flex: none; }
.gasto .etqs b { font-family: var(--display); font-weight: 800; margin-left: auto; padding-left: 40px; }
.gasto .etqs .l.foco { color: var(--azul); font-weight: 800; }

/* mensaje */
.s-mensaje .pg { justify-content: center; }
.s-mensaje .pre { font-size: 56px; font-weight: 700; color: var(--azul); margin-bottom: 34px; }
.s-mensaje .m1 { font-family: var(--display); font-weight: 800; font-size: 150px; line-height: 1.02; letter-spacing: -0.03em; max-width: 1640px; text-wrap: balance; }
.s-mensaje .m2 { font-size: 84px; line-height: 1.15; font-weight: 700; color: var(--tinta-suave); margin-top: 44px; max-width: 1500px; }

/* tres verbos explicados */
.cols .bl.verbo p { font-size: 54px; line-height: 1.22; font-weight: 500; }

/* lollipop: España frente a Europa */
.lolli { position: relative; display: flex; flex-direction: column; gap: 0; margin-top: 16px; width: 100%; }
.lolli .fila { display: grid; grid-template-columns: 330px 1fr; align-items: center; height: 86px; }
.lolli .pais { font-size: 52px; font-weight: 600; }
.lolli .pista { position: relative; height: 100%; }
.lolli .pista i { position: absolute; left: 0; top: 50%; height: 8px; width: calc(var(--v) * var(--k)); background: var(--barra); transform: translateY(-50%); transform-origin: left; }
.lolli .pista u { position: absolute; top: 50%; left: calc(var(--v) * var(--k)); width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%; background: var(--barra); }
.lolli .pista b { position: absolute; top: 50%; left: calc(var(--v) * var(--k) + 32px); transform: translateY(-50%); background: var(--papel); padding: 0 12px; z-index: 2; font-family: var(--display); font-weight: 800; font-size: 52px; }
.lolli .fila.es .pais { color: var(--azul); font-weight: 800; }
.lolli .fila.es .pista i, .lolli .fila.es .pista u { background: var(--azul); }
.lolli .fila.es .pista b { color: var(--azul); }
.lolli .ref { position: absolute; left: calc(330px + var(--v) * var(--k)); top: 44px; bottom: 0; border-left: 4px dashed var(--tinta); }
.lolli .ref-et { position: absolute; left: calc(330px + var(--v) * var(--k)); top: 0; transform: translateX(-50%); font-size: 36px; font-weight: 700; white-space: nowrap; }
.slide.is-active .lolli .pista i { animation: crece-x 0.7s var(--ease-out) both; animation-delay: calc(var(--r) * 110ms + 300ms); }
.slide.is-active .lolli .pista u { animation: pop 0.35s var(--ease-out) both; animation-delay: calc(var(--r) * 110ms + 800ms); }
.slide.is-active .lolli .pista b { animation: aparece 0.3s ease-out both; animation-delay: calc(var(--r) * 110ms + 900ms); }
.slide.is-active .lolli .ref { transform-origin: top; animation: crece-y 0.5s var(--ease-out) 1.2s both; }
.lolli .fila:nth-of-type(1) { --r: 0; } .lolli .fila:nth-of-type(2) { --r: 1; } .lolli .fila:nth-of-type(3) { --r: 2; }
.lolli .fila:nth-of-type(4) { --r: 3; } .lolli .fila:nth-of-type(5) { --r: 4; } .lolli .fila:nth-of-type(6) { --r: 5; }

/* tres empresas */
.edif3 { display: flex; gap: 36px; }
.slide.is-active .edif3 svg { animation: aparece-pop 0.5s var(--ease-out) both; animation-delay: calc(500ms + var(--j) * 250ms); }
.edif3 svg:nth-child(1) { --j: 0; } .edif3 svg:nth-child(2) { --j: 1; } .edif3 svg:nth-child(3) { --j: 2; }

/* skyline por sector */
.sky { position: relative; width: 1680px; height: 580px; }
.sky .base { position: absolute; left: 0; right: 0; bottom: 120px; border-top: 6px solid var(--tinta); }
.sky .torre { position: absolute; bottom: 126px; width: 300px; background-color: var(--barra); box-sizing: border-box; padding: 26px 22px;
  background-image: linear-gradient(rgba(251, 249, 244, 0.38), rgba(251, 249, 244, 0.38)); background-size: 34px 44px; background-repeat: space; background-origin: content-box; background-clip: content-box;
  transform-origin: bottom; }
.sky .torre.foco { background-color: var(--azul); }
.sky .val { position: absolute; width: 300px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 62px; }
.sky .val.foco, .sky .nom.foco { color: var(--azul); }
.sky .nom { position: absolute; bottom: 0; width: 360px; text-align: center; font-size: 46px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 14px; line-height: 1.1; }
.sky .grua { position: absolute; width: 200px; }
.sky .media { position: absolute; left: 0; right: 0; border-top: 4px dashed var(--tinta); }
.sky .media span { position: absolute; left: 0; top: -54px; font-size: 38px; font-weight: 700; background: var(--papel); padding-left: 12px; }
.slide.is-active .sky .torre { animation: crece-y 0.9s var(--ease-out) both; animation-delay: calc(var(--j) * 200ms + 300ms); }
.slide.is-active .sky .val, .slide.is-active .sky .grua { animation: aparece 0.35s ease-out both; animation-delay: calc(var(--j) * 200ms + 1000ms); }
.slide.is-active .sky .media { transform-origin: left; animation: crece-x 0.6s var(--ease-out) 1.3s both; }

/* escalera: de la prueba a varias áreas */
.escal { display: flex; align-items: flex-end; gap: 0; height: 480px; }
.escal .e { width: 270px; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: var(--regla); font-size: 44px; font-weight: 700; line-height: 1.1; text-align: center; padding: 20px 14px; box-sizing: border-box; }
.escal .e:nth-child(1) { height: 150px; } .escal .e:nth-child(2) { height: 300px; background: #bdb6a5; }
.escal .e:nth-child(3) { height: 450px; background: var(--azul); color: #fff; font-size: 52px; }
.escal .e b { font-family: var(--display); font-weight: 800; font-size: 100px; line-height: 1; margin-bottom: 12px; }
.slide.is-active .escal .e { transform-origin: bottom; animation: crece-y 0.7s var(--ease-out) both; animation-delay: calc(var(--j) * 300ms + 400ms); }
.escal .e:nth-child(1) { --j: 0; } .escal .e:nth-child(2) { --j: 1; } .escal .e:nth-child(3) { --j: 2; }

/* dos columnas con icono grande */
.dos .d .dv.ic { margin-top: 28px; }
.dos.icos .d .n { font-size: 150px; }
.dos.icos .d .t { font-size: 50px; }
.dos.icos .d .dv.ic svg { width: 110px; height: 110px; }

/* fuentes */
.fuentes-l { columns: 2; column-gap: 90px; margin-top: 10px; }
.fuentes-l p { break-inside: avoid; font-size: 34px; line-height: 1.22; margin-bottom: 20px; }
.fuentes-l b { display: block; font-size: 38px; font-weight: 800; }
.fuentes-l span { color: var(--tinta-suave); }

/* pregunta final: mensaje repetido */
.s-preguntas .repite { position: absolute; left: var(--margen); right: var(--margen); top: 640px; font-size: 62px; line-height: 1.18; font-weight: 700; color: var(--tinta-suave); max-width: 1500px; }

/* REESTRUCTURA: expediente, mensaje final */
.docs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 22px; width: 100%; }
.doc { background: #fff; border: 4px solid var(--regla); border-radius: 24px; padding: 34px 18px 38px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; text-align: center; font-size: 46px; font-weight: 700; line-height: 1.1; min-height: 380px; box-sizing: border-box; }
.doc svg { flex: none; }
.doc.falta { border-style: dashed; border-color: var(--azul); color: var(--azul); }
.cierre-msg { position: absolute; left: 0; right: 0; bottom: 20px; font-size: 52px; line-height: 1.15; font-weight: 700; color: var(--tinta-suave); }
.s-lista .items { max-height: 640px; }
.s-lista .items.verbos li { padding: 22px 0; }
.s-lista .items.verbos p { font-size: 52px; }

/* capítulos */
.s-capitulo .bloque { position: absolute; left: var(--margen); right: var(--margen); top: 0; bottom: 0; display: flex; flex-direction: column; justify-content: center; }
.s-capitulo .cap { font-size: 40px; margin-bottom: 30px; }
.s-capitulo h2 { font-size: 132px; line-height: 1; max-width: 1650px; }
.s-capitulo .sub { margin-top: 40px; font-size: 60px; line-height: 1.25; color: var(--tinta-suave); max-width: 1450px; border-top: 3px solid var(--regla); padding-top: 30px; }

/* frase de la charla */
.s-frase .pg { justify-content: center; }
.s-frase .gran { font-size: 140px; line-height: 1.03; margin-bottom: 36px; max-width: 1650px; }
.s-frase .lede { font-size: 44px; font-weight: 700; color: var(--tinta-suave); }

.s-preguntas .portada { position: absolute; left: calc(var(--margen) - 14px); top: 230px; font-size: 270px; line-height: 0.9; }
.s-preguntas .web { position: absolute; left: var(--margen); bottom: 120px; font-size: 60px; font-weight: 700; color: var(--azul); }

/* ================================================================
   Vista de orador (segunda ventana)
   ================================================================ */
html.modo-orador, html.modo-orador body { background: #14110f; color: #f2eee5; overflow: hidden; }
html.modo-orador #stage, html.modo-orador #apagado { display: none; }
#orador { display: none; }
html.modo-orador #orador { display: grid; height: 100vh; grid-template-rows: auto 1fr; gap: 14px; padding: 16px 20px 20px; font-family: var(--texto); }
#orador .barra-sup { display: flex; align-items: center; gap: 28px; }
#orador .reloj, #orador .crono { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 44px; line-height: 1; letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
#orador .etq { font-size: 13px; text-transform: uppercase; letter-spacing: 0.12em; color: #a79f90; display: block; margin-bottom: 4px; }
#orador .crono.corre { color: #f2eee5; }
#orador .crono.para { color: #a79f90; }
#orador button { font: inherit; font-size: 15px; font-weight: 600; background: #2a2622; color: #f2eee5; border: 1px solid #4a443c; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
#orador button:hover { background: #3a342e; }
#orador .contador { margin-left: auto; font-size: 22px; font-weight: 700; text-align: right; }
#orador .contador small { display: block; font-size: 14px; font-weight: 500; color: #a79f90; }
#orador .cols { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; min-height: 0; }
#orador .izq { display: grid; grid-template-rows: auto 1fr; gap: 14px; min-height: 0; }
#orador .vista { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #f2eee5; border-radius: 10px; overflow: hidden; }
#orador .vista iframe { position: absolute; left: 0; top: 0; width: 1920px; height: 1080px; border: 0; transform-origin: 0 0; pointer-events: none; }
#orador .sig-wrap { min-height: 0; display: flex; flex-direction: column; }
#orador .sig-wrap .vista { width: 52%; }
#orador .der { overflow-y: auto; padding-right: 8px; font-size: var(--nota, 26px); line-height: 1.34; }
#orador .der p { margin-bottom: 0.7em; }
#orador .der ul { margin: 0 0 0.7em 1.2em; }
#orador .der li { margin-bottom: 0.3em; }
#orador .aviso { background: #2a2622; border: 1px solid #5a5348; border-radius: 8px; padding: 12px 18px 6px; margin-top: 14px; font-size: 0.86em; color: #ddd6c6; }
#orador .respuestas { margin-top: 14px; font-size: 0.86em; color: #ddd6c6; }
#orador .vacio { color: #a79f90; font-size: 0.8em; }

/* ================================================================
   Impresión y capturas (PDF: una diapositiva por página)
   ================================================================ */
@page { size: 1920px 1080px; margin: 0; }
html.modo-print, html.modo-print body { height: auto; overflow: visible; background: #fff; }
html.modo-print #stage {
  position: static; transform: none; width: 1920px; height: auto; overflow: visible;
}
html.modo-print .slide {
  position: relative; display: block; width: 1920px; height: 1080px;
  opacity: 1; visibility: visible; transition: none;
  break-after: page; page-break-after: always; break-inside: avoid;
}
html.modo-print #progreso, html.modo-print #apagado { display: none; }
html.modo-print *, html.modo-vista * { animation: none !important; transition: none !important; }
html.modo-vista body { background: var(--hueso); }
html.modo-vista #progreso { display: none; }

@media (prefers-reduced-motion: reduce) {
  .slide.is-active .sube { animation-name: aparece; animation-duration: 0.2s; }
  .slide, .slide.is-active { transition-duration: 0.12s; }
}
