/* ============================================================
   Mark Twain · Tech Day '26 — Presentación interactiva
   Branding: crema #F2EBE9 · tinta #1A1A1A · azul #127FF7
   Fonts: Figtree (texto) + Geist Mono (mono)
   ============================================================ */

:root {
  --cream: #F2EBE9;
  --ink: #1A1A1A;
  --blue: #127FF7;
  --blue-soft: #127FF71a;
  --gray: #5A5560;
  --line: #1a1a1a1f;
  --card: #fffaf8;
  --maxw: 1180px;

  --sans: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Geist Mono', 'SF Mono', ui-monospace, 'Cascadia Code', monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

kbd {
  font-family: var(--mono);
  font-size: .82em;
  background: #1a1a1a12;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 1px 6px;
}

.hl { color: var(--blue); }
.hl-strike { position: relative; color: var(--gray); }
.hl-strike::after {
  content: ""; position: absolute; left: -2%; right: -2%; top: 52%; height: 3px;
  background: var(--blue); transform: rotate(-3deg); border-radius: 3px;
}
.muted { color: var(--gray); }
.small { font-size: .82em; }
s, .chip s { text-decoration-color: var(--blue); text-decoration-thickness: 2px; }

/* ============ DECK ============ */
.deck {
  position: fixed; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.slides { position: absolute; inset: 0; }

.slide {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(48px, 7vw, 120px);
  padding-top: clamp(72px, 9vh, 120px);
  padding-bottom: clamp(72px, 9vh, 110px);
  opacity: 0; visibility: hidden;
  transform: translateX(28px);
  transition: opacity .35s var(--ease), transform .4s var(--ease), visibility .35s;
}
/* la slida entrante aparece al instante (sin pantalla en blanco); el contenido lo anima .reveal */
.slide.is-active   { opacity: 1; visibility: visible; transform: translateX(0); z-index: 2;
  transition: opacity 0s, transform .35s var(--ease), visibility 0s; }
.slide.is-prev     { transform: translateX(-28px); }

.slide-inner { width: 100%; max-width: 880px; }
.slide-inner--wide { max-width: var(--maxw); }

/* ============ TIPOGRAFÍA ============ */
.eyebrow, .kicker {
  font-family: var(--mono);
  font-size: clamp(.7rem, 1.1vw, .85rem);
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 1.2rem;
}
.kicker { color: var(--gray); }

h1, .cover-title {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.02;
  font-size: clamp(2.6rem, 6.2vw, 5.4rem);
}
h2 {
  font-weight: 800; letter-spacing: -.02em; line-height: 1.07;
  font-size: clamp(2rem, 4.4vw, 3.6rem);
}
h2.tight { margin-bottom: 1.6rem; }

.lead {
  font-size: clamp(1.1rem, 1.9vw, 1.6rem);
  color: var(--gray); line-height: 1.4; margin-top: 1.3rem; max-width: 40ch;
  font-weight: 500;
}
.footnote {
  font-size: clamp(.92rem, 1.4vw, 1.12rem);
  color: var(--gray); line-height: 1.5; margin-top: 1.6rem; max-width: 52ch;
}
.footnote strong { color: var(--ink); }

/* ============ PORTADA / CIERRE (claro) ============ */
.slide--cover, .slide--closing { background: var(--cream); color: var(--ink); }
.cover-bg {
  position: absolute; inset: 0; overflow: hidden; opacity: 1; pointer-events: none;
  background:
    radial-gradient(55vw 55vw at 82% -12%, #127ff722, transparent 62%),
    radial-gradient(48vw 48vw at -12% 112%, #127ff71c, transparent 62%);
}
.slide--cover .slide-inner, .slide--closing .slide-inner { position: relative; z-index: 1; }
.cover-title { margin-bottom: 1.6rem; }
.cover-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.45rem); color: var(--gray);
  font-weight: 500; max-width: 46ch; line-height: 1.4;
}
.cover-hint {
  margin-top: 2.6rem; font-family: var(--mono);
  font-size: .82rem; color: var(--gray); letter-spacing: .04em;
}

.slide--closing h2 { margin-bottom: 1.4rem; }
.mail {
  display: inline-block; font-family: var(--mono);
  font-size: clamp(1rem, 2vw, 1.5rem); color: var(--blue);
  text-decoration: none; border-bottom: 2px solid #127ff755;
  padding-bottom: 2px; margin-bottom: 1.6rem; transition: border-color .2s;
}
.mail:hover { border-color: var(--blue); }

/* ============ BREAK (claro, distinto por tipografía) ============ */
.slide[data-variant="break"] { background: var(--cream); color: var(--ink); position: relative; }
.slide[data-variant="break"]::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60vw 50vw at 50% 120%, #127ff714, transparent 60%);
}
.slide[data-variant="break"] .slide-inner { position: relative; z-index: 1; text-align: center; }
.break-index {
  font-family: var(--mono); font-size: clamp(.8rem, 1.3vw, 1rem);
  letter-spacing: .25em; color: var(--blue); margin-bottom: 1.4rem;
}
.break-index::after { content: ""; display: block; width: 40px; height: 3px; background: var(--blue); border-radius: 3px; margin: 14px auto 0; }
.break-title {
  font-size: clamp(2.4rem, 5.6vw, 5rem); line-height: 1.05; font-weight: 800; margin-inline: auto; max-width: 18ch; color: var(--ink);
}
.break-title.huge { font-size: clamp(3.4rem, 9vw, 7rem); }
.slide[data-variant="break"] .cover-sub { color: var(--gray); margin: 1.6rem auto 0; }

/* ============ SPLIT (texto + imagen) ============ */
.slide--split { padding-left: clamp(40px, 6vw, 100px); padding-right: clamp(40px, 6vw, 100px); }
.split {
  width: 100%; max-width: var(--maxw);
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.split--reverse .split-text { order: 2; }
.split-media { width: 100%; }

.img-slot {
  width: 100%; aspect-ratio: 4/3; border-radius: 18px;
  background-size: cover; background-position: center;
  background-color: #e7dedb;
  border: 1.5px dashed #1a1a1a33;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 22px; position: relative; overflow: hidden;
  box-shadow: 0 20px 50px -28px #1a1a1a55;
}
.img-slot.has-img { border-style: solid; border-color: transparent; }
.img-slot.contain { background-size: contain; background-repeat: no-repeat; }
.img-slot.contain.has-img { background-color: #f3ece9; }
.img-slot.phone { aspect-ratio: 3/4; }
.img-slot.has-img .img-cap { display: none; }
.img-cap {
  font-family: var(--mono); font-size: .82rem; line-height: 1.5;
  color: var(--gray); max-width: 30ch;
}
.img-cap b { color: var(--blue); display: block; margin-bottom: .4rem; font-size: .9rem; }
.img-slot.has-img .slot-default { display: none; }
.slot-default { display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* ---- Visuales hechos a mano (SVG/CSS) ---- */
.visual {
  width: 100%; aspect-ratio: 4/3; border-radius: 18px; overflow: hidden;
  background: var(--card); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 26px; position: relative;
  box-shadow: 0 22px 55px -32px #1a1a1a66;
}
.visual--dark { background: #0f1115; border-color: #ffffff14; }
.img-slot.visual { border-style: solid; border-color: var(--line); }
.vsvg { width: clamp(150px, 70%, 230px); height: auto; }
.visual-cap {
  font-family: var(--mono); font-size: .8rem; line-height: 1.45; color: var(--gray); text-align: center;
}
.visual-cap b { display: block; color: var(--ink); font-size: .98rem; margin-bottom: .35rem; }
.visual-cap--dark { color: #9aa0aa; }
.visual-cap--dark b { color: #e8eaed; }

/* tarjeta tipo noticia (fallback Medvi) */
.newscard { align-items: flex-start; text-align: left; gap: 12px; width: 100%; padding: 6px 8px; }
.news-tag { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: #fff; background: var(--blue); padding: 4px 10px; border-radius: 6px; }
.news-head { font-size: clamp(1.1rem, 2vw, 1.5rem); font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.news-head b { color: var(--blue); }
.news-sub { font-size: clamp(.95rem, 1.6vw, 1.2rem); color: var(--gray); }
.news-sub b { color: var(--ink); }
.newscard .visual-cap { margin-top: 6px; }

/* escáner corporal */
.scanner { overflow: hidden; }
.scan-bar {
  position: absolute; left: 8%; right: 8%; height: 3px; top: 18%;
  background: linear-gradient(90deg, transparent, #8fc0ff, transparent);
  box-shadow: 0 0 16px 3px #8fc0ff99;
  animation: scan 2.6s var(--ease) infinite;
}
@keyframes scan { 0%,100% { top: 20%; } 50% { top: 78%; } }

/* burbujas 9/10 */
.bubbles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; width: 100%; max-width: 240px; }
.bub {
  aspect-ratio: 1; border-radius: 12px 12px 12px 3px; display: grid; place-items: center;
  font-family: var(--mono); font-size: .7rem; font-weight: 600;
  background: #e7dedb; color: var(--gray); border: 1px solid var(--line);
}
.bub.on { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ojo HAL */
.hal { justify-content: center; }
.hal-eye {
  width: clamp(90px, 40%, 140px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, #000 30%, #1a1a1a 60%, #2a2a2a 100%);
  display: grid; place-items: center; box-shadow: inset 0 0 30px #000;
}
.hal-core {
  width: 34%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 50% 45%, #ffd2cc, #ff3b30 45%, #7d0a02 100%);
  box-shadow: 0 0 26px 6px #ff3b3088, 0 0 60px 14px #ff3b3044;
  animation: halpulse 3s ease-in-out infinite;
}
@keyframes halpulse { 0%,100% { box-shadow: 0 0 22px 5px #ff3b3077, 0 0 50px 10px #ff3b3033; } 50% { box-shadow: 0 0 34px 9px #ff3b30aa, 0 0 80px 20px #ff3b3055; } }

@keyframes dash { to { stroke-dashoffset: 0; } }

/* ============ PATH (camino + bifurcación) ============ */
/* min-height reserva el espacio de la bifurcación para que el título no se mueva al avanzar */
.path { display: flex; align-items: center; margin: 2.4rem 0 1.2rem; min-height: clamp(12rem, 25vh, 15rem); }
.path-trunk { display: flex; align-items: center; flex-shrink: 0; }
.pnode { position: relative; display: flex; align-items: center; gap: .55rem; white-space: nowrap; padding-right: 1.7rem; font-size: clamp(.85rem, 1.35vw, 1.1rem); font-weight: 600; color: var(--gray); transition: color .3s var(--ease); }
.pnode::after { content: ""; position: absolute; right: .45rem; top: 50%; width: 1.15rem; height: 2px; background: var(--line); transform: translateY(-50%); transition: background .3s var(--ease); }
.pnode:last-child { padding-right: 0; }
.pnode:last-child::after { display: none; }
.pdot { width: 16px; height: 16px; border-radius: 50%; background: var(--cream); border: 3px solid #c9bfbb; flex-shrink: 0; transition: all .3s var(--ease); }
.pnode.is-done, .pnode.is-active { color: var(--ink); }
.pnode.is-done .pdot, .pnode.is-active .pdot { border-color: var(--blue); background: var(--blue); transform: scale(1.12); }
.pnode.is-done::after { background: var(--blue); }
.path-join { width: 1.8rem; height: 2px; background: var(--blue); flex-shrink: 0; }
.path-fork { position: relative; display: flex; flex-direction: column; gap: .5rem; padding-left: 1.7rem; border-left: 2px solid var(--blue); }
.path-fork[hidden] { display: none; }
.fbranch { position: relative; display: flex; align-items: center; gap: .55rem; white-space: nowrap; font-size: clamp(.82rem, 1.15vw, 1.02rem); font-weight: 600; color: var(--ink); }
.fbranch::before { content: ""; position: absolute; left: -1.7rem; top: 50%; width: 1.7rem; height: 2px; background: var(--blue); transform: translateY(-50%); }
.fbranch .pdot { width: 16px; height: 16px; border-radius: 50%; background: var(--blue); border: 3px solid var(--blue); flex-shrink: 0; }
.fbranch i { font-style: normal; color: var(--blue); }
.fbranch.is-main { font-weight: 800; color: var(--blue); font-size: clamp(.95rem, 1.35vw, 1.2rem); }
.fbranch.is-main::before { height: 3px; }
.fbranch.is-main .pdot { width: 18px; height: 18px; }
.fbranch.is-main em { font-style: normal; font-family: var(--mono); font-size: .6rem; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: var(--blue); padding: .14rem .42rem; border-radius: 999px; margin-left: .5rem; vertical-align: middle; }
.step-detail { margin-top: 1.6rem; min-height: 4.5em; font-size: clamp(1.05rem, 1.7vw, 1.4rem); line-height: 1.45; max-width: 52ch; color: var(--gray); }
.step-detail p { animation: fadeUp .4s var(--ease); }
@media (max-width: 820px) {
  .path { flex-direction: column; align-items: flex-start; gap: .7rem; min-height: 0; }
  .path-trunk { flex-wrap: wrap; }
  .path-join { display: none; }
  .path-fork { margin-left: .3rem; }
}

/* ============ MOORE CHART ============ */
.chart-wrap { margin: 1.8rem 0 .6rem; }
.chart-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; flex-wrap: wrap; gap: 10px; }
.chart-cap { font-family: var(--mono); font-size: .8rem; color: var(--gray); letter-spacing: .04em; }
.toggle { display: inline-flex; background: #1a1a1a0d; border-radius: 999px; padding: 3px; }
.toggle button {
  border: none; background: none; cursor: pointer; font-family: var(--mono);
  font-size: .78rem; padding: 6px 14px; border-radius: 999px; color: var(--gray); transition: all .25s;
}
.toggle button.is-active { background: var(--blue); color: #fff; }
.chart { width: 100%; height: clamp(220px, 34vh, 360px); }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-label { font-family: var(--mono); font-size: 10px; fill: var(--gray); }
.chart .moore-path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart .moore-pred { fill: none; stroke: var(--gray); stroke-width: 2.5; stroke-linecap: round; opacity: .8; }
.chart .moore-dot { fill: var(--blue); }
.chart .moore-area { fill: var(--blue-soft); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: .76rem; color: var(--gray); }
.legend-key { width: 22px; height: 0; border-top: 3px solid var(--blue); border-radius: 3px; }
.legend-key--pred { border-top: 3px dashed var(--gray); }
.legend-key--real { border-top: 3px solid var(--blue); }
.you-mini { font-family: var(--mono); font-weight: 400; font-size: .82em; color: #9aa0aa; }
.chart .annot { font-family: var(--sans); font-size: 12px; font-weight: 700; fill: var(--ink); }
.chart .annot-sub { font-family: var(--mono); font-size: 10px; fill: var(--gray); }

/* ============ AI DOUBLING ============ */
.ai-wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(24px, 4vw, 56px); align-items: center; margin: 1.6rem 0 .4rem; }
.ai-chart { width: 100%; height: clamp(200px, 30vh, 300px); }
.ai-chart svg { width: 100%; height: 100%; overflow: visible; }
.ai-chart .ai-area { fill: var(--blue-soft); }
.ai-chart .ai-path { fill: none; stroke: var(--blue); stroke-width: 3; stroke-linecap: round; }
.ai-chart .ai-dot { fill: #fff; stroke: var(--blue); stroke-width: 4; }
.ai-chart .ai-grid { stroke: var(--line); }
.ai-control label { font-family: var(--mono); font-size: .82rem; color: var(--gray); display: block; margin-bottom: 14px; letter-spacing: .04em; }
input[type=range] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px;
  background: #1a1a1a1f; border-radius: 999px; outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%;
  background: var(--blue); cursor: pointer; border: 4px solid var(--cream);
  box-shadow: 0 3px 10px -2px var(--blue);
}
input[type=range]::-moz-range-thumb {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue);
  cursor: pointer; border: 4px solid var(--cream);
}
.ai-readout { margin-top: 1.6rem; }
.ai-when { display: inline-block; font-family: var(--mono); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: #fff; background: var(--blue); padding: .28rem .62rem; border-radius: 999px; margin-bottom: 1rem; }
.ai-task, .ai-human { display: flex; flex-direction: column; margin-bottom: .85rem; }
.ai-task > span, .ai-human > span { font-size: .9rem; color: var(--gray); margin-bottom: .15rem; }
.ai-task strong { font-size: clamp(1.3rem, 2.5vw, 2.1rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.08; }
.ai-human strong { font-size: clamp(1rem, 1.7vw, 1.35rem); font-weight: 700; color: var(--ink); }

/* ============ COMPARADOR (antes/hoy) ============ */
.compare {
  position: relative; width: 100%; max-width: 980px;
  aspect-ratio: 16/7; border-radius: 18px; overflow: hidden;
  margin: 1.6rem auto .6rem; user-select: none;
  box-shadow: 0 30px 70px -40px #1a1a1a88; border: 1px solid var(--line);
}
.cmp-pane { position: absolute; inset: 0; padding: clamp(16px, 2.4vw, 30px); }
.cmp-after { background: #0f1115; color: #e8eaed; }
.cmp-before { background: #fffaf8; color: var(--ink); border-right: 3px solid var(--blue); }
.cmp-tag {
  position: absolute; top: 14px; left: 16px; font-family: var(--mono);
  font-size: .72rem; letter-spacing: .14em; padding: 4px 10px; border-radius: 999px;
}
.cmp-tag--before { background: var(--blue); color: #fff; }
.cmp-tag--after  { background: #ffffff1a; color: #fff; right: 16px; left: auto; }
.cmp-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 44px; transform: translateX(-50%);
  cursor: ew-resize; z-index: 5; display: flex; align-items: center; justify-content: center;
}
.cmp-line { position: absolute; top: 0; bottom: 0; left: 50%; width: 3px; transform: translateX(-50%); background: var(--blue); }
.cmp-grip {
  width: 40px; height: 40px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 1.1rem; box-shadow: 0 6px 18px -4px var(--blue);
}
.chat, .agent { margin-top: 30px; font-size: clamp(.78rem, 1.3vw, 1rem); }
.chat-top, .agent-title { font-family: var(--mono); font-weight: 600; }
.chat-top { color: var(--gray); margin-bottom: 12px; }
.agent-top { display: flex; align-items: center; gap: 7px; margin-bottom: 14px; }
.agent-top .dot { width: 10px; height: 10px; border-radius: 50%; }
.dot.r { background: #ff5f57; } .dot.y { background: #febc2e; } .dot.g { background: #28c840; }
.agent-title { color: #9aa0aa; margin-left: 6px; }
.you { font-weight: 700; margin-bottom: 10px; }
.bubble { background: #1a1a1a0d; border-radius: 10px; padding: 12px 14px; max-width: 30ch; }
.bubble code { font-family: var(--mono); color: var(--blue); }
.bubble-note { display: block; font-family: var(--mono); font-size: .72rem; color: var(--gray); margin-top: 8px; }
.agent-body .log { font-family: var(--mono); margin: 6px 0; color: #9aa0aa; }
.agent-body .log.ok { color: #28c840; }
.agent-body .log.done { color: #e8eaed; font-weight: 600; margin-top: 14px; }

/* ============ BIG NUMBERS ============ */
.bignum {
  font-weight: 900; letter-spacing: -.03em; line-height: .95; color: var(--blue);
  font-size: clamp(4rem, 11vw, 9rem); display: inline-flex; align-items: baseline;
}
.bignum.big { font-size: clamp(5rem, 14vw, 11rem); }
.bignum-pre { font-size: .5em; align-self: center; margin-right: .04em; font-weight: 800; }
.bignum-suf { font-size: .55em; font-weight: 800; }
.bignum.gold { color: #c8a02a; font-size: clamp(3.2rem, 8vw, 6rem); }

.vs { display: flex; align-items: center; gap: clamp(20px, 5vw, 64px); margin-bottom: 1rem; }
.vs-side { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.vs-side .count { font-weight: 900; font-size: clamp(3.4rem, 10vw, 8rem); color: var(--blue); letter-spacing: -.03em; }
.vs-side small { font-family: var(--mono); font-size: .8rem; color: var(--gray); margin-top: 6px; letter-spacing: .04em; }
.vs-side--muted .count { color: var(--gray); }
.vs-x { font-family: var(--mono); font-size: clamp(1rem, 2vw, 1.6rem); color: var(--ink); font-weight: 600; }

/* precio antes → hoy */
.price { display: flex; align-items: center; gap: clamp(18px, 4vw, 50px); margin-bottom: 1.4rem; flex-wrap: wrap; }
.price span { display: inline-flex; flex-direction: column; line-height: 1; font-weight: 900; letter-spacing: -.02em; }
.price small { font-family: var(--mono); font-size: .9rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; }
.price-old { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--gray); position: relative; }
.price-old small { color: var(--gray); }
.price-old::after { content: ""; position: absolute; left: -4%; right: -4%; top: 64%; height: 4px; background: var(--gray); transform: rotate(-6deg); border-radius: 3px; opacity: .7; }
.price-arrow { font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--ink); font-weight: 700; align-self: flex-end; }
.price-new { font-size: clamp(3.4rem, 9vw, 7rem); color: var(--blue); }
.price-new small { color: var(--blue); }

/* ============ BOTÓN ROJO ============ */
.redbutton-wrap { margin: 2.4rem 0 1.4rem; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.redbutton {
  position: relative; width: 150px; height: 150px; border-radius: 50%; cursor: pointer;
  border: none; background: radial-gradient(circle at 50% 35%, #ff6b6b, #c0392b 70%, #7d1f15);
  box-shadow: 0 16px 0 #6d1810, 0 26px 40px -16px #7d1f1599; transition: all .08s ease;
  color: #fff; font-family: var(--mono); font-weight: 600; letter-spacing: .1em; font-size: 1rem;
}
.redbutton .redbutton-cap {
  position: absolute; inset: 14px; border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, #ff8a8a55, transparent 60%); pointer-events: none;
}
.redbutton:active, .redbutton.pressed { transform: translateY(12px); box-shadow: 0 4px 0 #6d1810, 0 10px 20px -10px #7d1f1599; }
.redbutton-hint { font-family: var(--mono); font-size: .9rem; color: var(--gray); }
.shutdown-overlay {
  position: absolute; inset: 0; background: #0b0b0b; color: #ff5f57; z-index: 20;
  display: grid; place-items: center; opacity: 0; pointer-events: none; transition: opacity .12s;
  font-family: var(--mono); letter-spacing: .3em; font-size: clamp(1.4rem, 4vw, 3rem); font-weight: 600;
}
.shutdown-overlay.on { opacity: 1; }
.shutdown-overlay.flick { animation: flick .12s steps(2) 3; }
@keyframes flick { 50% { opacity: .2; } }

/* ============ TIMELINE ============ */
.timeline { position: relative; display: flex; justify-content: space-between; margin: 3rem 4% 0; }
.tl-line { position: absolute; left: 0; right: 0; top: 11px; height: 3px; background: var(--line); }
.tl-node {
  position: relative; background: none; border: none; cursor: pointer; z-index: 1;
  display: flex; flex-direction: column; align-items: center; gap: 14px; font-family: var(--sans);
}
.tl-node::before {
  content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--cream);
  border: 3px solid #c9bfbb; transition: all .3s var(--ease);
}
.tl-node.is-active::before { background: var(--blue); border-color: var(--blue); transform: scale(1.2); box-shadow: 0 0 0 6px var(--blue-soft); }
.tl-year { font-family: var(--mono); font-weight: 600; font-size: clamp(.9rem, 1.6vw, 1.2rem); color: var(--gray); }
.tl-node.is-active .tl-year { color: var(--ink); }
.tl-detail { margin-top: 2.2rem; font-size: clamp(1.05rem, 1.8vw, 1.45rem); line-height: 1.45; max-width: 50ch; }
.tl-detail p { animation: fadeUp .4s var(--ease); }

/* ============ CHIPS ============ */
.chips { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8rem; }
.chip {
  font-family: var(--mono); font-size: clamp(.85rem, 1.5vw, 1.05rem);
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; color: var(--gray);
}

/* ============ CHROME ============ */
.chrome { position: fixed; left: 0; right: 0; z-index: 30; display: flex; align-items: center; pointer-events: none; }
.chrome--top { top: 0; justify-content: space-between; padding: clamp(18px, 2.6vh, 30px) clamp(24px, 3vw, 48px); }
.chrome--bottom { bottom: 0; gap: 16px; padding: clamp(16px, 2.4vh, 26px) clamp(24px, 3vw, 48px); }
.wordmark {
  font-family: var(--mono); font-size: clamp(.62rem, 1vw, .78rem); letter-spacing: .14em;
  color: var(--gray); font-weight: 500;
}
.wordmark .dot { margin: 0 .5em; color: var(--blue); }

.logo-chip {
  pointer-events: auto; width: clamp(46px, 5.4vw, 62px); height: clamp(46px, 5.4vw, 62px);
  border-radius: 14px; background: #fff; overflow: hidden;
  box-shadow: 0 8px 22px -10px #1a1a1a66; border: 1px solid #ffffff;
  display: grid; place-items: center;
}
.logo-chip img { width: 100%; height: 100%; object-fit: contain; }
.logo-fallback { display: none; font-family: var(--mono); font-weight: 600; color: var(--ink); }
.logo-chip--empty { background: var(--ink); }
.logo-chip--empty .logo-fallback { display: block; color: var(--cream); }

/* color de chrome sobre slides oscuras */
.deck.on-dark .wordmark { color: #9b96a0; }
.deck.on-dark .counter { color: #9b96a0; }
.deck.on-dark .progress { background: #ffffff1f; }
.deck.on-dark .nav-btn { color: #d8d2d0; border-color: #ffffff2e; }
.deck.on-dark .nav-btn:hover { background: #ffffff14; }

.progress { flex: 1; height: 4px; background: #1a1a1a1a; border-radius: 999px; overflow: hidden; }
.progress-fill { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 999px; transition: width .45s var(--ease); }
.counter { font-family: var(--mono); font-size: .82rem; color: var(--gray); letter-spacing: .06em; min-width: 60px; text-align: center; }
.nav-arrows { display: flex; gap: 8px; }
.nav-btn {
  pointer-events: auto; width: 40px; height: 40px; border-radius: 11px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink); font-size: 1rem;
  display: grid; place-items: center; transition: all .2s; font-family: var(--sans);
}
.nav-btn:hover { background: #1a1a1a0d; }
.nav-btn:disabled { opacity: .3; cursor: default; }

/* ============ MENÚ ============ */
.menu {
  position: fixed; inset: 0; z-index: 50; background: #1a1a1af2; color: var(--cream);
  padding: clamp(40px, 7vh, 90px) clamp(32px, 8vw, 140px); overflow-y: auto;
  opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.menu.open { opacity: 1; visibility: visible; }
.menu-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2rem; font-family: var(--mono); letter-spacing: .14em; text-transform: uppercase; font-size: .8rem; color: #9b96a0; }
.menu-head .nav-btn { color: var(--cream); border-color: #ffffff2e; }
.menu-list { list-style: none; counter-reset: m; columns: 2; column-gap: clamp(28px, 5vw, 70px); }
.menu-list li {
  counter-increment: m; break-inside: avoid; padding: 11px 0; border-bottom: 1px solid #ffffff14;
  cursor: pointer; display: flex; gap: 16px; align-items: baseline; transition: color .15s; color: #d8d2d0;
}
.menu-list li::before { content: counter(m, decimal-leading-zero); font-family: var(--mono); font-size: .78rem; color: #6f6a74; min-width: 26px; }
.menu-list li:hover { color: #5aa6ff; }
.menu-list li.is-current { color: #5aa6ff; }
.menu-list li.is-section { font-weight: 700; }

/* ============ REVEAL ============ */
.reveal { opacity: 1; transform: none; transition: opacity .28s var(--ease), transform .28s var(--ease); }
.slide:not(.is-active) .reveal { opacity: 0; transform: translateY(10px); }
.slide.is-active .reveal { opacity: 1; transform: none; transition-delay: .02s; }
.split.is-active .reveal, .slide.is-active .split .reveal { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }

/* ============ RESPONSIVE ============ */
@media (max-width: 820px) {
  .split, .ai-wrap { grid-template-columns: 1fr; }
  .split--reverse .split-text { order: 0; }
  .split-media { max-width: 460px; }
  .menu-list { columns: 1; }
  .compare { aspect-ratio: 4/5; }
  .slide { padding-left: 24px; padding-right: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, .slide, .reveal { transition: none !important; animation: none !important; opacity: 1 !important; transform: none !important; }
}
