/* =============================================================
   Wide Agentic — Deck horizontal
   HTML/CSS/JS vanilla. Diseño editorial / VC pitch / consultoría boutique.
   ============================================================= */

/* -------------------------------------------------------------
   1. Fuentes self-hosted
   ------------------------------------------------------------- */
/* Fraunces (display serif, variable, OFL). El archivo puede no estar
   presente en assets/fonts/ — en ese caso se usa la fallback del sistema.
   TODO: añadir woff2 variable a assets/fonts/Fraunces-VariableFont.woff2 */
@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-VariableFont.woff2") format("woff2-variations"),
       url("/assets/fonts/Fraunces-VariableFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

/* Inter (sans body, variable, OFL).
   TODO: añadir woff2 variable a assets/fonts/Inter-VariableFont.woff2 */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/Inter-VariableFont.woff2") format("woff2-variations"),
       url("/assets/fonts/Inter-VariableFont.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF;
}

/* -------------------------------------------------------------
   2. Design tokens
   ------------------------------------------------------------- */
:root {
  /* Paleta — del spec §3.1 */
  --ink: #0A1F2D;            /* tinta principal — azul-noche */
  --ink-soft: #1F3445;
  --accent: #C8A24B;         /* oro mate — métricas + callouts */
  --accent-deep: #A88634;
  --accent-2: #3D7A8C;       /* azul-petróleo apagado */
  --paper: #F7F5F0;          /* fondo por defecto — papel cálido */
  --paper-2: #FFFFFF;
  --muted: #5C6670;          /* gris medio — texto secundario */
  --sand: #E5E1D8;           /* separadores / fondos de tabla */
  --line: #D8D3C7;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", "Source Serif 4", "Palatino Linotype", Palatino, Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Escala tipográfica modular 1.25, base 16 */
  --t-100: 16px;
  --t-200: 20px;
  --t-300: 25px;
  --t-400: 31px;
  --t-500: 39px;
  --t-600: 49px;
  --t-700: 61px;
  --t-800: 76px;
  --t-900: clamp(56px, 6.5vw, 96px);

  /* Spacing scale */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Padding interno de slide */
  --slide-px: 6vw;
  --slide-py: 8vh;

  /* Misc */
  --radius: 4px;
  --radius-lg: 10px;
  --hairline: 1px solid var(--line);
}

/* -------------------------------------------------------------
   3. Reset mínimo
   ------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--paper);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--t-100);
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  overflow: hidden; /* el deck horizontal controla el scroll */
}

p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding-left: 1.2em; }
li { margin: var(--s-2) 0; }
em { font-style: italic; color: var(--accent-deep); font-feature-settings: "ss01" on; }
strong { font-weight: 600; color: var(--ink); }
img, svg { display: block; max-width: 100%; }

/* Visually hidden (accesibilidad — tablas equivalentes, captions) */
.vh {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip link */
.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--ink); color: var(--paper-2);
  padding: var(--s-3) var(--s-4);
  font-family: var(--font-body); font-size: 14px;
  z-index: 100; text-decoration: none;
}
.skip-link:focus { left: var(--s-4); top: var(--s-4); }

/* -------------------------------------------------------------
   4. Deck horizontal + scroll-snap
   ------------------------------------------------------------- */
.deck {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100vw;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;            /* Firefox */
}
.deck::-webkit-scrollbar { display: none; } /* WebKit */

.slide {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: var(--paper);
  overflow: hidden;
  outline: none;
}

.slide__inner {
  position: relative;
  width: 100%;
  height: 100%;
  padding: var(--slide-py) var(--slide-px);
  display: flex;
  flex-direction: column;
  gap: var(--s-6);
  /* Permitir scroll vertical interno cuando el contenido excede el viewport
     (común en tablet / laptop chico). Scrollbar invisible para preservar
     el feel editorial — el affordance es el corte del contenido. */
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;        /* Firefox */
}
.slide__inner::-webkit-scrollbar { display: none; }  /* WebKit */

/* Header común de cada slide */
.slide__head {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  max-width: 56ch;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-deep);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1.5px;
  background: var(--accent);
}

/* -------------------------------------------------------------
   5. Display / títulos
   ------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.012em;
  margin: 0;
  color: var(--ink);
  font-size: clamp(var(--t-500), 4.2vw, var(--t-700));
  max-width: 28ch;
}
.display--xl {
  font-size: var(--t-900);
  font-weight: 500;
  line-height: 1.02;
  max-width: 18ch;
}

.dek {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(var(--t-200), 1.8vw, var(--t-300));
  line-height: 1.4;
  color: var(--muted);
  margin: 0;
  max-width: 56ch;
}

.lede {
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0;
}

.kicker {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(var(--t-200), 1.7vw, var(--t-300));
  line-height: 1.4;
  color: var(--ink);
  max-width: 70ch;
  margin: 0;
  padding-left: var(--s-5);
  border-left: 2px solid var(--accent);
}

.src {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.footnote {
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  padding: var(--s-4) var(--s-5);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
  margin: 0;
  max-width: 80ch;
}

.note {
  display: flex;
  align-items: flex-start;
  gap: var(--s-4);
  font-size: 14px;
  color: var(--ink-soft);
  background: var(--paper-2);
  border: var(--hairline);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-lg);
  margin: 0;
  max-width: 88ch;
}
.note__tag {
  flex: none;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper-2);
  background: var(--accent-deep);
  padding: 2px 8px;
  border-radius: 4px;
}

/* TBD placeholders visibles */
.tbd {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-deep);
  border: 1.5px dashed var(--accent);
  background: rgba(200, 162, 75, 0.08);
  padding: 2px 8px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}
.tbd--lg {
  font-size: 15px;
  padding: var(--s-3) var(--s-5);
  letter-spacing: 0.04em;
}

/* -------------------------------------------------------------
   6. Slide 1 — Cover
   ------------------------------------------------------------- */
.slide--cover {
  background: var(--paper);
}
.slide--cover .slide__inner {
  justify-content: center;
}

.cover__grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--s-9);
  align-items: center;
}
.cover__main { display: flex; flex-direction: column; gap: var(--s-5); }

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1;
  margin: 0 0 var(--s-3) 0;
  color: var(--ink);
}
.wordmark__wide { color: var(--ink); }
.wordmark__agentic {
  color: var(--accent-deep);
  font-style: italic;
  font-feature-settings: "ss01" on;
}

.cover__metric {
  border-left: 2px solid var(--accent);
  padding-left: var(--s-7);
}

/* Keyboard hint */
.kb-hint {
  position: absolute;
  left: var(--slide-px);
  bottom: calc(var(--slide-py) / 2);
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
}
.kb-hint__keys { display: inline-flex; gap: 4px; }
.kb-hint kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  background: var(--paper-2);
  border: var(--hairline);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 2px 6px;
  color: var(--ink);
}

/* -------------------------------------------------------------
   7. Metric / Stat components
   ------------------------------------------------------------- */
.metric { display: flex; flex-direction: column; gap: var(--s-2); }

.metric__value {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-size: clamp(48px, 4.5vw, 72px);
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}
.metric__unit, .metric__currency {
  font-size: 0.6em;
  font-weight: 500;
  color: var(--muted);
  align-self: flex-start;
  margin-top: 0.12em;
}
.metric__label {
  font-size: 15px;
  color: var(--ink-soft);
  max-width: 28ch;
  line-height: 1.4;
}
.metric__source {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.metric--hero .metric__value {
  font-size: clamp(64px, 7vw, 112px);
  color: var(--accent-deep);
}
.metric--hero .metric__label {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 22px);
  color: var(--ink);
  max-width: 22ch;
}
.metric--xl .metric__value { font-size: clamp(56px, 5.8vw, 88px); }
.metric--lg .metric__value { font-size: clamp(40px, 4.2vw, 64px); }
.metric--accent .metric__value { color: var(--accent-deep); }

/* Slide 2 — tres stats */
.stats3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-7);
  border-top: var(--hairline);
  border-bottom: var(--hairline);
  padding: var(--s-6) 0;
}
.stat { display: flex; flex-direction: column; gap: var(--s-2); }
.stat__value {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 0.95;
  font-size: clamp(56px, 6vw, 88px);
  letter-spacing: -0.02em;
}
.stat__unit { font-size: 0.55em; color: var(--muted); }
.stat__label { font-size: 15px; color: var(--ink-soft); max-width: 24ch; }
.stat__source {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em;
}
.stat--mid .stat__value { color: var(--accent-2); }
.stat--accent .stat__value { color: var(--accent-deep); }

/* -------------------------------------------------------------
   8. Figures / Charts genéricos
   ------------------------------------------------------------- */
.figure {
  margin: 0;
  padding: 0;
}
.figure--full { width: 100%; }

/* Chart text classes used inside SVGs */
.chart-num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  fill: var(--ink);
}
.chart-num--accent { fill: var(--accent-deep); }
.chart-num-inv { font-family: var(--font-display); font-weight: 600; font-size: 18px; fill: var(--paper-2); }
.chart-cap {
  font-family: var(--font-body);
  font-size: 13px; fill: var(--muted);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.chart-lbl {
  font-family: var(--font-body);
  font-size: 14px; fill: var(--ink); font-weight: 500;
}
.chart-gap-label {
  font-family: var(--font-display);
  font-weight: 600; font-size: 22px; fill: var(--accent-deep);
}
.chart-gap-sub {
  font-family: var(--font-body); font-size: 13px; fill: var(--ink-soft);
}
.axis-label {
  font-family: var(--font-mono); font-size: 12px; fill: var(--muted);
  letter-spacing: 0.04em;
}
.m-name { font-family: var(--font-display); font-weight: 600; font-size: 15px; fill: var(--ink); }
.m-name--accent { fill: var(--ink); font-size: 17px; }
.m-sub { font-family: var(--font-mono); font-size: 11px; fill: var(--muted); letter-spacing: 0.04em; }
.m-sub--accent { fill: var(--ink-soft); }
.m-tag {
  font-family: var(--font-mono); font-size: 11px;
  fill: var(--accent-deep); letter-spacing: 0.06em; text-transform: uppercase;
}

/* -------------------------------------------------------------
   9. Slide 3 — Mercado: grids + growth + badge + bullets
   ------------------------------------------------------------- */
.grid-2 { display: grid; gap: var(--s-7); }
.grid-2--metric-chart {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.metric-stack { display: flex; flex-direction: column; gap: var(--s-6); }

.growth {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}
.growth__arrow { width: 56px; height: 36px; flex: none; }
.growth__copy { display: flex; flex-direction: column; }
.growth__pct {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(36px, 3.5vw, 52px); line-height: 1;
  color: var(--accent-deep);
}
.growth__cap {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--muted); margin-top: 4px;
}

.badge {
  background: var(--paper-2);
  border: var(--hairline);
  padding: var(--s-4) var(--s-5);
  border-radius: var(--radius-lg);
  font-size: 14px; line-height: 1.45;
  color: var(--ink-soft);
}
.badge--accent {
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.badge__small { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.badge strong { color: var(--ink); }

.bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.bullets--lg li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--s-5);
  align-items: baseline;
  padding-bottom: var(--s-4);
  border-bottom: var(--hairline);
  font-size: 15px;
  color: var(--ink-soft);
}
.bullets--lg li:last-child { border-bottom: none; padding-bottom: 0; }
.bullets__pct {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 3vw, 44px);
  color: var(--ink);
  line-height: 1;
}
.bullets__sub { font-size: 0.5em; color: var(--muted); }

/* -------------------------------------------------------------
   10. Slide 4 — Gap chart
   ------------------------------------------------------------- */
.figure--gap { width: 100%; max-width: 1100px; }

/* -------------------------------------------------------------
   11. Slide 5 — Heatmap
   ------------------------------------------------------------- */
.heat {
  display: flex;
  flex-direction: column;
  border-top: var(--hairline);
}
.heat__row {
  display: grid;
  grid-template-columns: minmax(280px, 1.4fr) 1.2fr minmax(180px, 0.8fr);
  gap: var(--s-5);
  align-items: center;
  padding: var(--s-4) 0;
  border-bottom: var(--hairline);
}
.heat__label { font-size: 15px; color: var(--ink); line-height: 1.4; }
.heat__label em { color: var(--muted); font-size: 13px; font-style: italic; }
.heat__cell {
  display: flex; align-items: center; gap: var(--s-3);
}
.heat__pill {
  font-family: var(--font-mono); font-size: 11px;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 3px 8px; border-radius: 4px;
  min-width: 84px; text-align: center; flex: none;
}
.heat__row--hi .heat__pill { background: var(--ink); color: var(--paper); }
.heat__row--mid .heat__pill { background: var(--accent-2); color: var(--paper); }
.heat__row--lo .heat__pill { background: var(--sand); color: var(--ink); border: 1px solid var(--line); }

.heat__bar {
  display: block; flex: 1;
  height: 8px; background: var(--sand); border-radius: 999px; overflow: hidden;
}
.heat__bar > span {
  display: block; height: 100%; background: var(--ink);
}
.heat__row--mid .heat__bar > span { background: var(--accent-2); }
.heat__row--lo .heat__bar > span { background: var(--accent); }

.heat__verdict {
  font-size: 13px; color: var(--muted); text-align: right;
  font-family: var(--font-mono); letter-spacing: 0.02em;
}
.heat__verdict--gap {
  color: var(--accent-deep);
  font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}

/* -------------------------------------------------------------
   12. Slide 6 — Pillars
   ------------------------------------------------------------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  border-top: var(--hairline);
  padding-top: var(--s-6);
}
.pillar {
  display: flex; flex-direction: column;
  gap: var(--s-3);
}
.pillar__icon { width: 64px; height: 64px; margin-bottom: var(--s-2); }
.pillar__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-200); line-height: 1.2;
  margin: 0; color: var(--ink);
}
.pillar__body {
  font-size: 14px; color: var(--ink-soft); line-height: 1.45;
  margin: 0; max-width: 28ch;
}

/* -------------------------------------------------------------
   13. Slide 7 — Matrix
   ------------------------------------------------------------- */
.figure--matrix {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}
.chart-matrix { width: 100%; height: auto; max-height: 60vh; }

/* -------------------------------------------------------------
   14. Slide 8 — Funnel
   ------------------------------------------------------------- */
.funnel {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  position: relative;
}
.funnel__step {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--paper-2);
  border: var(--hairline);
  border-radius: var(--radius-lg);
  position: relative;
  min-height: 200px;
}
.funnel__step::after {
  /* flecha entre escalones */
  content: "";
  position: absolute;
  right: -14px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px; height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  z-index: 2;
}
.funnel__step:last-child::after { display: none; }

.funnel__step--1 { background: var(--paper-2); border-left: 3px solid var(--accent); }
.funnel__step--2 { background: var(--paper-2); }
.funnel__step--3 { background: var(--paper-2); }
.funnel__step--4 { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.funnel__step--4 .funnel__code,
.funnel__step--4 .funnel__title { color: var(--paper); }
.funnel__step--4 .funnel__role,
.funnel__step--4 .funnel__ticket,
.funnel__step--4 .funnel__time { color: var(--sand); }
.funnel__step--4::after {
  border-color: var(--accent);
}

.funnel__code {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-deep); font-weight: 600;
}
.funnel__title {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-200); line-height: 1.2;
  color: var(--ink);
  margin: 0;
}
.funnel__role {
  font-size: 13px; color: var(--ink-soft); font-style: italic;
  margin-top: var(--s-1);
}
.funnel__ticket {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-300); color: var(--accent-deep);
  margin-top: auto;
}
.funnel__step--4 .funnel__ticket { color: var(--accent); }
.funnel__time {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase;
}

.retainer {
  display: flex; align-items: center; gap: var(--s-4);
  padding: var(--s-4) var(--s-5);
  background: var(--paper-2);
  border: 1.5px dashed var(--accent);
  border-radius: var(--radius-lg);
  font-size: 14px; color: var(--ink-soft);
}
.retainer__badge {
  flex: none;
  font-family: var(--font-mono); font-weight: 600;
  font-size: 12px; letter-spacing: 0.08em;
  background: var(--accent); color: var(--ink);
  padding: 6px 12px; border-radius: 4px;
}
.retainer__cap { color: var(--muted); font-style: italic; }

/* -------------------------------------------------------------
   15. Slide 9 — Economía
   ------------------------------------------------------------- */
.grid-3 {
  display: grid;
  gap: var(--s-7);
  grid-template-columns: repeat(3, 1fr);
}
.grid-3--econ {
  padding: var(--s-5) 0;
  border-top: var(--hairline);
  border-bottom: var(--hairline);
}

.figure--donut { display: flex; justify-content: center; }
.donut-wrap {
  display: flex; align-items: center; gap: var(--s-7);
  flex-wrap: wrap; justify-content: center;
}
.chart-donut {
  width: clamp(160px, 22vw, 220px);
  height: clamp(160px, 22vw, 220px);
}
.donut-center {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase;
  fill: var(--muted);
}
.donut-center-sub {
  font-family: var(--font-display); font-weight: 600;
  font-size: 18px; fill: var(--ink);
}

.donut-legend {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: var(--s-3);
  font-size: 15px; color: var(--ink-soft);
}
.donut-legend li { display: flex; align-items: center; gap: var(--s-3); margin: 0; }
.dot {
  display: inline-block; width: 14px; height: 14px;
  border-radius: 4px; flex: none;
}
.dot--ink { background: var(--ink); }
.dot--gold { background: var(--accent); }
.dot--teal { background: var(--accent-2); }

/* -------------------------------------------------------------
   16. Slide 10 — Cierre
   ------------------------------------------------------------- */
.slide--close { background: var(--paper); }

.checklist {
  list-style: none; padding: 0; margin: 0;
  display: grid; grid-template-columns: repeat(5, 1fr);
  gap: var(--s-5);
  border-top: var(--hairline); border-bottom: var(--hairline);
  padding: var(--s-6) 0;
}
.checklist__item {
  display: flex; flex-direction: column; gap: var(--s-3);
  margin: 0;
}
.checklist__code {
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-500); line-height: 1;
  color: var(--accent-deep);
}
.checklist__item strong {
  display: block;
  font-family: var(--font-display); font-weight: 600;
  font-size: var(--t-200); color: var(--ink); line-height: 1.2;
  margin-bottom: var(--s-2);
}
.checklist__desc {
  display: block;
  font-size: 13px; color: var(--muted); line-height: 1.45;
}

.cta {
  text-align: center;
  padding: var(--s-6) 0;
}
.cta__line {
  font-family: var(--font-display); font-style: italic;
  font-size: clamp(var(--t-300), 2.2vw, var(--t-400));
  color: var(--ink); margin: 0 0 var(--s-4);
}
.cta__contact { margin: 0; }

.slide__footer {
  margin-top: auto;
  padding-top: var(--s-5);
  border-top: var(--hairline);
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}

/* -------------------------------------------------------------
   17. Progress overlay (dots + counter)
   ------------------------------------------------------------- */
.progress {
  position: fixed;
  right: var(--s-7);
  bottom: var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  z-index: 50;
  pointer-events: none;
}
.progress__dots {
  list-style: none; margin: 0; padding: 0;
  display: flex; gap: var(--s-2);
  pointer-events: auto;
}
.progress__dots li { margin: 0; }
.progress__dots a {
  display: block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--sand);
  border: 1.5px solid var(--line);
  font-size: 0;            /* hide number visually */
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.progress__dots a:hover {
  transform: scale(1.25);
  border-color: var(--ink);
}
.progress__dots a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.progress__dots a.is-active {
  background: var(--accent);
  border-color: var(--accent-deep);
  transform: scale(1.3);
}

.progress__counter {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.08em;
  color: var(--muted); text-transform: uppercase;
}
.progress__counter #progress-current { color: var(--ink); font-weight: 600; }

/* -------------------------------------------------------------
   18. Responsive
   ------------------------------------------------------------- */
@media (max-width: 960px) {
  :root {
    --slide-px: 5vw;
    --slide-py: 5vh;
  }
  .cover__grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .cover__metric { border-left: none; border-top: 2px solid var(--accent); padding-left: 0; padding-top: var(--s-5); }
  .grid-2--metric-chart { grid-template-columns: 1fr; }
  .stats3 { grid-template-columns: 1fr; gap: var(--s-5); }
  .pillars { grid-template-columns: repeat(2, 1fr); }
  .funnel { grid-template-columns: 1fr 1fr; }
  .funnel__step { min-height: 0; }
  .funnel__step::after { display: none; }
  .bullets--lg li { grid-template-columns: 80px 1fr; gap: var(--s-4); }
  .grid-3--econ { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr 1fr; }
  .heat__row { grid-template-columns: 1fr; gap: var(--s-2); }
  .heat__verdict { text-align: left; }
  .display--xl { font-size: clamp(40px, 9vw, 64px); }
  .progress { right: var(--s-4); bottom: var(--s-4); }
}

@media (max-width: 560px) {
  .pillars { grid-template-columns: 1fr; }
  .funnel { grid-template-columns: 1fr; }
  .checklist { grid-template-columns: 1fr; }
  .slide__inner { gap: var(--s-5); }
}

/* Landscape phones / shallow viewports — scroll vertical interno por slide */
@media (max-height: 600px) {
  .slide__inner { overflow-y: auto; }
}

/* -------------------------------------------------------------
   19. Reduced motion
   ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .deck { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* -------------------------------------------------------------
   20. Print — PDF export del browser
   ------------------------------------------------------------- */
@media print {
  body, html { overflow: visible; height: auto; background: var(--paper-2); }
  .deck {
    display: block;
    width: 100%; height: auto;
    overflow: visible;
  }
  .slide {
    width: 100%;
    height: auto;
    min-height: 100vh;
    page-break-after: always;
    break-after: page;
  }
  .progress, .kb-hint, .skip-link { display: none !important; }
  .slide__inner { padding: 24mm 18mm; }
}

/* -------------------------------------------------------------
   21. Focus visible
   ------------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.slide:focus-visible {
  outline: none;
}
