@font-face {
  font-family: 'Figtree';
  font-style: normal;
  font-weight: 300 800;
  font-display: block;
  src: url(assets/figtree-latin.woff2) format('woff2');
}

:root {
  --bg: #f3f4f6;
  --card: #ffffff;
  --ink: #16181d;
  --ink-2: #5b606b;
  --ink-3: #9aa0aa;
  --line: #e6e8ec;
  --line-strong: #d3d6dc;
  --accent: #00a843;
  --accent-ink: #007a30;
  --accent-tint: #e5f6ec;
  --bad: #d92d20;
  --bad-ink: #b42318;
  --bad-tint: #fdecea;
  --warn: #9a6200;
  --warn-tint: #fdf3df;
  --night: #111316;

  --n-bg: #191919;
  --n-panel: #202020;
  --n-line: #2c2c2c;
  --n-text: #e6e6e4;
  --n-text-2: #9b9b97;
  --n-hover: #2a2a2a;

  --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 10px 30px rgba(16, 24, 40, .07);
  --shadow-lift: 0 4px 10px rgba(16, 24, 40, .08), 0 30px 60px rgba(16, 24, 40, .14);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-in: cubic-bezier(.7, 0, .84, 0);
  --font: 'Figtree', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body {
  font: 400 24px/1.4 var(--font);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .7s var(--ease);
  cursor: default;
}
body[data-theme="dark"] { background: var(--night); }
body[data-theme="notion"] { background: #0e0f11; }
body.idle, body.idle * { cursor: none !important; }
::selection { background: var(--accent); color: #fff; }
img { display: block; max-width: 100%; }
svg { width: 24px; height: 24px; flex: none; }
b { font-weight: 650; }

/* ---------- Escenario 16:9 ---------- */
.viewport { position: fixed; inset: 0; overflow: hidden; }
.stage {
  position: absolute; left: 50%; top: 50%;
  width: 1920px; height: 1080px;
  transform-origin: 0 0;
}
.slide {
  position: absolute; inset: 0;
  visibility: hidden;
  contain: layout paint;
}
.slide.active, .slide.leaving { visibility: visible; }
.slide.leaving { pointer-events: none; z-index: 0; }
.slide.active { z-index: 1; }
.slide.light { color: var(--ink); }
.slide.dark { color: #fff; }

/* Elementos que entran con un clic */
[data-at] { opacity: 0; transform: translateY(18px); filter: blur(6px); transition: opacity .6s var(--ease), transform .7s var(--ease), filter .6s var(--ease); }
[data-at].on { opacity: 1; transform: none; filter: none; }

.title { margin: 0; font-size: 68px; font-weight: 650; letter-spacing: -0.035em; line-height: 1.04; text-wrap: balance; }
.sub { margin: 18px 0 0; font-size: 28px; color: var(--ink-2); max-width: 30ch; text-wrap: pretty; }
.sub b { color: var(--ink); }
.hl { color: var(--accent); }

/* ---------- Celular ---------- */
.phone {
  position: absolute; width: 428px;
  padding: 13px; border-radius: 66px;
  background: linear-gradient(145deg, #2a2d33, #0c0d0f 40%, #1c1e22);
  box-shadow: 0 0 0 1.5px #3a3d44 inset, 0 40px 80px -20px rgba(16, 24, 40, .45), 0 12px 24px rgba(16, 24, 40, .18);
}
.phone::after {
  content: ""; position: absolute; top: 25px; left: 50%; width: 118px; height: 34px;
  transform: translateX(-50%); border-radius: 20px; background: #050506; z-index: 4;
}
.phone-screen {
  position: relative; overflow: hidden; border-radius: 53px;
  background: var(--bg); aspect-ratio: 1170 / 2542;
}
.phone-screen img { position: absolute; left: 0; bottom: 0; width: 100%; }
.status {
  position: absolute; top: 0; left: 0; right: 0; height: 52px; z-index: 3;
  display: flex; align-items: center; justify-content: space-between;
  padding: 6px 34px 0 42px; font-size: 17px; font-weight: 650; color: var(--ink);
  background: var(--bg);
}
.status-i { display: flex; gap: 6px; align-items: center; }
.status-i i { display: block; background: var(--ink); border-radius: 2px; }
.tap {
  position: absolute; z-index: 6; width: 64px; height: 64px; margin: -32px 0 0 -32px;
  border-radius: 50%; background: rgba(22, 24, 29, .22); border: 2px solid rgba(255, 255, 255, .85);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .2); opacity: 0; pointer-events: none;
}

/* ---------- 1 · Portada ---------- */
.s-portada .portada-logos { position: absolute; left: 128px; top: 104px; display: flex; align-items: center; gap: 34px; }
.logo-loreal { height: 34px; width: auto; }
.logo-cv { height: 74px; width: auto; }
.logo-sep { width: 1.5px; height: 46px; background: var(--line-strong); }
.portada-copy { position: absolute; left: 128px; top: 340px; width: 860px; }
.mega { margin: 0; font-size: 124px; font-weight: 700; letter-spacing: -0.045em; line-height: .96; }
.mask { display: block; overflow: hidden; padding-bottom: .06em; }
.mask > span { display: inline-block; }
.lead { margin: 40px 0 0; font-size: 32px; line-height: 1.35; color: var(--ink-2); max-width: 26ch; }
.lead b { color: var(--ink); }
.portada-foto {
  position: absolute; right: 120px; top: 130px; width: 760px; height: 600px; margin: 0;
  border-radius: 40px; overflow: hidden; box-shadow: var(--shadow-lift);
}
.portada-foto img { width: 100%; height: 100%; object-fit: cover; object-position: 30% 40%; filter: saturate(1.05); }
.portada-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(17, 19, 22, 0) 45%, rgba(17, 19, 22, .45)); }
.phone-portada { right: 560px; top: 300px; width: 360px; padding: 11px; border-radius: 56px; transform: rotate(-4deg); }
.phone-portada .phone-screen { border-radius: 45px; }
.phone-portada::after { top: 21px; width: 100px; height: 29px; }
.phone-portada .status { height: 44px; font-size: 14px; padding: 4px 28px 0 36px; }
.pulse-line { position: absolute; left: 0; right: 0; bottom: 0; height: 6px; background: var(--accent); transform-origin: left; transform: scaleX(0); }

/* ---------- Cadenas de proceso (2 y 4) ---------- */
.s-hoy .title, .s-ahora .title { position: absolute; left: 160px; top: 110px; }
.s-hoy .sub { position: absolute; left: 160px; top: 200px; max-width: 46ch; }
.chain { position: absolute; left: 160px; top: 300px; width: 1600px; height: 560px; }
.chain-path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.chain-path path { fill: none; stroke: var(--ink-3); stroke-width: 4.5; stroke-dasharray: 3 11; stroke-linecap: round; }
.node {
  position: absolute; left: 0; top: 0; width: 340px; min-height: 150px;
  padding: 22px 24px 24px; border-radius: 28px; background: var(--card); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 16px;
  font-size: 23px; font-weight: 600; line-height: 1.22; letter-spacing: -0.01em;
  will-change: transform;
}
.node .ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.node .ic svg { width: 28px; height: 28px; }
.node.is-hot.show-hot .ic { background: var(--bad-tint); color: var(--bad); }
.node .ic { transition: background .5s var(--ease), color .5s var(--ease); }
.node .txt { display: grid; }
.node .txt > span { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .6s var(--ease); }
.node .txt .t-new { opacity: 0; transform: translateY(10px); }
.node.final { background: var(--ink); color: #fff; box-shadow: 0 30px 60px -20px rgba(22, 24, 29, .5); }
.node.final .ic { background: rgba(255, 255, 255, .1); color: #7ee2a8; }
.node.final .t-old { opacity: 0; transform: translateY(-10px); }
.node.final .t-new { opacity: 1; transform: none; }
.friction .tag-bad {
  position: absolute; left: var(--x); top: var(--y); transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 10px 18px 10px 14px; border-radius: 999px;
  background: var(--bad-tint); color: var(--bad-ink); font-size: 20px; font-weight: 600;
}
.friction .tag-bad svg { width: 22px; height: 22px; }
.friction.on .tag-bad { animation: tag-in .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 110ms); }
@keyframes tag-in { from { opacity: 0; transform: translate(-50%, 14px) scale(.94); } }
.friction { transform: none !important; filter: none !important; }

.s-ahora .title { display: grid; }
.s-ahora .title > span { grid-area: 1 / 1; transition: opacity .5s var(--ease), transform .7s var(--ease), filter .5s; }
.s-ahora .swap-b { opacity: 0; transform: translateY(20px); filter: blur(6px); }
.s-ahora.step-1 .swap-a { opacity: 0; transform: translateY(-20px); filter: blur(6px); }
.s-ahora.step-1 .swap-b { opacity: 1; transform: none; filter: none; }
.arrow-ok { position: absolute; height: 4px; background: var(--accent); border-radius: 4px; transform-origin: left; transform: scaleX(0); }
.arrow-ok::after { content: ""; position: absolute; right: -2px; top: -8px; border: 10px solid transparent; border-left: 14px solid var(--accent); border-right: 0; }
.ahora-badges { position: absolute; left: 160px; bottom: 120px; display: flex; gap: 18px; }
.badge-ok {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px 14px 18px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-ink); font-size: 22px; font-weight: 600;
}

/* ---------- 3 · Frase ---------- */
.s-frase { display: flex; flex-direction: column; justify-content: center; padding: 0 180px; gap: 34px; }
.frase { margin: 0; font-size: 96px; font-weight: 650; letter-spacing: -0.04em; line-height: 1.04; max-width: 17ch; text-wrap: balance; }
.f1 { color: rgba(255, 255, 255, .9); }
.f2 { color: #fff; }
.strike { position: relative; display: inline-block; color: #fff; transition: color .6s var(--ease); }
.strike::after {
  content: ""; position: absolute; left: -4px; right: -4px; top: 54%; height: 8px; border-radius: 6px;
  background: var(--bad); transform: scaleX(0); transform-origin: left; transition: transform .7s var(--ease);
}
.s-frase.step-1 .strike { color: rgba(255, 255, 255, .4); }
.s-frase.step-1 .strike::after { transform: scaleX(1); }
.s-frase .hl { color: #4fd48a; }

/* ---------- Demos con celular (5 y 7) ---------- */
.phone-demo { left: 250px; top: 84px; }
.demo-copy { position: absolute; left: 830px; top: 120px; width: 960px; }
.demo-steps { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 4px; }
.demo-steps li {
  position: relative; padding: 14px 0 14px 46px;
  font-size: 27px; line-height: 1.28; color: var(--ink-3);
  transition: color .45s var(--ease), transform .55s var(--ease);
}
.demo-steps li::before {
  content: ""; position: absolute; left: 6px; top: 24px; width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid var(--line-strong); background: var(--bg);
  transition: background .4s, border-color .4s, transform .5s var(--ease);
}
.demo-steps li::after { content: ""; position: absolute; left: 13px; top: 46px; bottom: -14px; width: 2px; background: var(--line); }
.demo-steps li:last-child::after { display: none; }
.demo-steps li.done { color: var(--ink-2); }
.demo-steps li.done::before { background: var(--accent); border-color: var(--accent); }
.demo-steps li.now { color: var(--ink); font-weight: 600; transform: translateX(8px); }
.demo-steps li.now::before { background: var(--ink); border-color: var(--ink); transform: scale(1.35); box-shadow: 0 0 0 7px rgba(22, 24, 29, .08); }
.lupa {
  position: absolute; left: 70px; top: 520px; width: 270px; margin: 0; z-index: 5;
  padding: 10px 10px 14px; border-radius: 26px; background: var(--card); box-shadow: var(--shadow-lift);
  transform: rotate(-4deg) translateY(30px) scale(.92); opacity: 0; transition: opacity .5s var(--ease), transform .7s var(--ease);
}
.lupa img { width: 100%; border-radius: 18px; }
.lupa figcaption { margin-top: 10px; text-align: center; font-size: 18px; font-weight: 600; }
.lupa.on { opacity: 1; transform: rotate(-4deg); }

/* ---------- Mundo Notion (6, 8, 9, 10) ---------- */
.notion-world { color: var(--n-text); }
.n-window {
  position: absolute; inset: 64px 84px 96px; overflow: hidden;
  border-radius: 22px; background: var(--n-bg); border: 1px solid #262626;
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7);
}
.n-top { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 26px; font-size: 17px; color: var(--n-text-2); border-bottom: 1px solid #222; }
.n-crumb.strong { color: var(--n-text); }
.n-body { padding: 34px 54px; }
.n-h { margin: 0 0 22px; font-size: 22px; font-weight: 600; color: var(--n-text); display: flex; align-items: center; gap: 10px; }
.n-table { border-top: 1px solid var(--n-line); font-size: 18px; }
.n-tr { display: grid; grid-template-columns: 220px 280px 160px 270px 160px 190px 150px 190px; align-items: center; height: 52px; border-bottom: 1px solid var(--n-line); position: relative; }
.n-tr > span { padding: 0 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-right: 1px solid var(--n-line); height: 100%; display: flex; align-items: center; }
.n-th { color: var(--n-text-2); font-size: 16px; height: 46px; }
.n-th svg { width: 17px; height: 17px; margin-right: 8px; opacity: .8; }
.n-name { font-weight: 600; gap: 8px; }
.n-name img { width: 22px; height: 22px; object-fit: contain; }
.n-open {
  position: absolute; left: 150px; top: 12px; padding: 3px 8px; border-radius: 6px;
  background: #2f2f2f; border: 1px solid #3a3a3a; font-size: 13px; letter-spacing: .04em; color: var(--n-text-2);
  opacity: 0; transition: opacity .25s;
}
.n-tr.hover { background: var(--n-hover); }
.n-tr.hover .n-open { opacity: 1; }
.n-tr.fresh { animation: row-in .9s var(--ease) both; }
.n-tr.fresh::before {
  content: ""; position: absolute; inset: 0; background: rgba(0, 168, 67, .16); pointer-events: none;
  animation: row-glow 3.2s .4s var(--ease) both;
}
@keyframes row-in { from { opacity: 0; transform: translateY(-26px); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes row-glow { 0% { opacity: 1; } 100% { opacity: 0; } }

.n-tag {
  display: inline-flex; align-items: center; gap: 7px; padding: 2px 9px; border-radius: 5px;
  font-size: 16px; line-height: 1.45; white-space: nowrap; color: #e8e8e6; background: #373737;
}
.n-tag i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .9; }
.t-purple { background: #49305f; } .t-yellow { background: #6b5320; } .t-green { background: #24503a; } .t-red { background: #6b2f2b; }
.t-orange { background: #6b3f1e; color: #ffb27a; } .t-blue { background: #23436b; color: #9cc4ff; } .t-gray { background: #3a3a3a; color: #c9c9c7; }
.t-gold { background: #5c4a1e; }
.t-brown { background: #5e3a2c; }

.n-peek {
  position: absolute; top: 54px; right: 0; bottom: 0; width: 900px; overflow: hidden;
  background: var(--n-panel); border-left: 1px solid #2e2e2e; box-shadow: -40px 0 80px rgba(0, 0, 0, .45);
  transform: translateX(105%); transition: transform .75s var(--ease);
}
.n-peek.open { transform: none; }
.pk-in { padding: 26px 56px 40px; position: relative; }
.pk-icon { width: 40px; height: 40px; object-fit: contain; }
.pk-title { margin: 12px 0 22px; font-size: 38px; font-weight: 700; letter-spacing: -0.02em; color: #f2f2f0; }
.pk-head { display: flex; flex-wrap: wrap; gap: 14px 30px; padding-bottom: 22px; }
.pk-hcol { display: grid; gap: 8px; align-content: start; }
.pk-hk { display: flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: var(--n-text-2); }
.pk-hk svg { width: 16px; height: 16px; }
.pk-hv { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 500; color: var(--n-text); }
.pk-more-n { color: var(--n-text-2); font-size: 15px; }
.pk-block { padding: 6px 0 18px; }
.pk-block p { margin: 8px 0 0; font-size: 17px; font-weight: 500; color: var(--n-text); }
.pk-map { position: relative; margin-top: 12px; height: 150px; border-radius: 8px; overflow: hidden; background: #2a2d2b; }
.pk-map img { width: 100%; height: 100%; object-fit: cover; }
.pk-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 30px; margin: -30px 0 0 -11px; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .5)); }
.pk-sec { display: block; margin: 4px 0 8px; font-size: 15px; font-weight: 600; color: var(--n-text-2); }
.pk-props { display: grid; gap: 2px; font-size: 17px; }
.pk-row { display: grid; grid-template-columns: 180px 1fr; align-items: center; min-height: 38px; border-radius: 6px; position: relative; }
.pk-k { display: flex; align-items: center; gap: 10px; color: var(--n-text-2); padding-left: 4px; min-width: 0; }
.pk-k > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pk-k svg { width: 18px; height: 18px; }
.pk-no { width: 18px; font-size: 13px; font-weight: 700; text-align: center; }
.pk-v { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--n-text); min-height: 30px; font-weight: 500; }
.pk-v .empty { color: #5c5c5a; font-weight: 400; }
.pk-id { color: var(--n-text-2); font-weight: 400; }
.pk-photos { display: flex; gap: 7px; }
.pk-photos img { width: 26px; height: 34px; object-fit: cover; border-radius: 4px; border: 1px solid #3a3a3a; }
.pk-more { display: flex; align-items: center; gap: 6px; margin: 10px 0 0 2px; padding-bottom: 22px; border-bottom: 1px solid #333; font-size: 15px; color: var(--n-text-2); }
.pk-more svg { width: 16px; height: 16px; }
.pk-row.flash::before {
  content: ""; position: absolute; inset: -2px -8px; border-radius: 8px; background: rgba(0, 168, 67, .2);
  animation: row-glow 2.4s var(--ease) both;
}
.pk-scroll { will-change: transform; }
.pk-callout {
  margin-top: 30px; padding: 22px 26px 26px; border-radius: 10px; background: #2f2f2f;
  display: flex; gap: 12px; font-size: 17px; line-height: 1.6; color: var(--n-text); font-weight: 500;
}
.pk-callout > svg { width: 22px; height: 22px; color: #4fb37a; margin-top: 2px; }
.pk-callout b { color: #4fb37a; display: block; font-weight: 650; }
.pk-callout .typed { white-space: pre-wrap; min-height: 1.5em; }
.caret { display: inline-block; width: 2px; height: 1.1em; vertical-align: -3px; background: #4fd48a; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

.n-lightbox {
  position: absolute; inset: 54px 0 0; z-index: 8; display: flex; align-items: center; justify-content: center; gap: 40px;
  background: rgba(10, 10, 11, .86); opacity: 0; pointer-events: none; transition: opacity .5s var(--ease);
}
.n-lightbox img { height: 470px; width: auto; border-radius: 12px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.9); transition: transform .7s var(--ease); }
.n-lightbox.on { opacity: 1; }
.n-lightbox.on img { transform: none; }

.arrival {
  position: absolute; left: 84px; bottom: 30px; display: inline-flex; align-items: center; gap: 10px;
  font-size: 21px; font-weight: 600; color: #7ee2a8;
}
.arrival svg { width: 22px; height: 22px; }
.cursor { position: absolute; left: 0; top: 0; width: 34px; height: 34px; z-index: 20; opacity: 0; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .5)); pointer-events: none; }
.click-ring { position: absolute; z-index: 19; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .8); pointer-events: none; }

/* Tablero */
.n-board-wrap { width: 860px; }
.n-board { display: grid; grid-template-columns: repeat(3, 250px); gap: 14px; }
.n-col { min-height: 640px; border-radius: 12px; padding: 10px; background: #1f1f1f; }
.n-col:nth-child(2) { background: #1b2230; }
.n-col:nth-child(3) { background: #2a2019; }
.n-col-h { margin-bottom: 12px; }
.n-card {
  border-radius: 10px; background: #2b2b2b; border: 1px solid #353535; overflow: hidden; margin-bottom: 10px;
  font-size: 15px; box-shadow: 0 4px 12px rgba(0, 0, 0, .25); will-change: transform;
}
.n-card img { width: 100%; height: 96px; object-fit: cover; }
.n-card-b { padding: 10px 12px 12px; display: grid; gap: 7px; }
.n-card-b b { font-size: 16px; color: #f0f0ee; display: flex; gap: 6px; align-items: center; }
.n-card-b b img { width: 18px; height: 18px; object-fit: contain; }
.n-card .n-tag { font-size: 13px; justify-self: start; }
.n-card.lifted { box-shadow: 0 30px 60px rgba(0, 0, 0, .55); }

/* Mapa */
.map { position: absolute; top: 54px; left: 0; right: 0; bottom: 0; background: #1d1f22; }
.map-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map.live .map-fallback { display: none; }
.map .leaflet-container { background: #1d1f22; }
.pin { position: relative; width: 30px; height: 38px; }
.pin svg { width: 30px; height: 38px; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.pin.drop { animation: pin-drop .7s var(--ease) both; animation-delay: var(--d); }
.pin.big svg { transform: scale(1.35); transform-origin: 50% 100%; }
@keyframes pin-drop { 0% { opacity: 0; transform: translateY(-60px); } 60% { opacity: 1; } 100% { opacity: 1; transform: none; } }
.pin-ring { position: absolute; left: 50%; bottom: -4px; width: 60px; height: 22px; margin-left: -30px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ring 2s var(--ease) infinite; animation-delay: calc(var(--d) + .6s); }
@keyframes ring { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.4); } }
.map-legend { position: absolute; left: 24px; bottom: 22px; z-index: 500; display: flex; gap: 18px; padding: 10px 16px; border-radius: 10px; background: rgba(25, 25, 25, .88); font-size: 16px; color: var(--n-text-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.d-ok { background: #ff9a52; } .d-pend { background: #5aa0ff; } .d-todo { background: #a3a3a0; }
.map-card {
  position: absolute; right: 140px; top: 170px; z-index: 30; width: 420px;
  display: grid; gap: 8px; padding: 22px 24px; border-radius: 16px; background: #202020; border: 1px solid #333;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .55); font-size: 19px; color: var(--n-text-2);
}
.map-card b { font-size: 26px; color: #f2f2f0; }
.mc-k { font-size: 16px; letter-spacing: .02em; color: #9cc4ff; }
.map-card .n-tag { justify-self: start; margin-top: 6px; }
.attrib { position: absolute; right: 10px; bottom: 6px; z-index: 500; font-size: 12px; color: #77787a; }

/* Panel */
.dash { padding: 34px 40px; display: grid; grid-template-rows: auto 1fr; gap: 26px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.kpi { display: grid; gap: 10px; }
.kpi-l { display: flex; align-items: center; gap: 8px; font-size: 17px; color: var(--n-text); }
.kpi-l svg { width: 18px; height: 18px; color: var(--n-text-2); }
.kpi b { display: grid; place-items: center; height: 168px; border-radius: 14px; border: 1px solid #2d2d2d; background: #1d1d1d; font-size: 92px; font-weight: 500; line-height: 1; }
.c-blue { color: #4b8ff0; } .c-green { color: #3fae6e; } .c-orange { color: #e57a2c; } .c-red { color: #e5534b; }
.charts { display: grid; grid-template-columns: 1fr 1.25fr 1fr; gap: 22px; }
.chart { position: relative; border-radius: 14px; border: 1px solid #2d2d2d; background: #1d1d1d; padding: 22px 26px; display: flex; flex-direction: column; }
.chart-t { font-size: 17px; color: var(--n-text); }
.donut { width: 240px; height: 240px; margin: 34px auto 0; transform: rotate(-90deg); }
.donut circle { fill: none; stroke-width: 13; }
.d-track { stroke: #2a2a2a; }
.donut-c { position: absolute; left: 0; right: 0; top: 152px; text-align: center; display: grid; }
.donut-c b { font-size: 54px; font-weight: 600; color: #f2f2f0; line-height: 1; }
.donut-c span { font-size: 16px; color: var(--n-text-2); }
.legend { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 18px; margin-top: auto; font-size: 15px; color: var(--n-text-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 7px; }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 22px; padding: 30px 6px 0; border-bottom: 1px solid #333; margin-bottom: 44px; }
.bar { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.bar i { display: block; width: 44px; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #e5675c, #b3463f); transform-origin: bottom; transform: scaleY(0); }
.bar b { font-size: 17px; font-weight: 500; color: var(--n-text); margin-bottom: 6px; opacity: 0; }
.bar span { position: absolute; bottom: -34px; font-size: 15px; color: var(--n-text-2); white-space: nowrap; }
.dash-note { position: absolute; left: 84px; bottom: 30px; margin: 0; font-size: 21px; font-weight: 600; color: #7ee2a8; }

/* ---------- 11 · Antes y ahora ---------- */
.s-vs { padding: 110px 160px 0; }
.vs { margin-top: 56px; display: grid; }
.vs-h, .vs-row { display: grid; grid-template-columns: 300px 1fr 1fr; align-items: center; gap: 40px; }
.vs-h { padding-bottom: 14px; font-size: 21px; font-weight: 650; color: var(--ink-3); }
.vs-h span:first-child { grid-column: 2; }
.vs-row { padding: 22px 0; border-top: 1px solid var(--line-strong); font-size: 27px; }
.vs-k { font-weight: 650; }
.vs-a { color: var(--ink-3); position: relative; justify-self: start; }
.vs-a::after { content: ""; position: absolute; left: 0; right: 0; top: 55%; height: 2px; background: var(--ink-3); transform: scaleX(0); transform-origin: left; transition: transform .6s var(--ease); }
.vs-b { display: flex; align-items: center; gap: 14px; font-weight: 600; opacity: 0; transform: translateX(-16px); transition: opacity .55s var(--ease), transform .6s var(--ease); }
.vs-b::before { content: ""; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%23007a30' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 22px no-repeat; }
.vs-row.on .vs-a::after { transform: scaleX(1); }
.vs-row.on .vs-b { opacity: 1; transform: none; }

/* ---------- 12 · Costos ---------- */
.costos-copy { position: absolute; left: 160px; top: 200px; width: 620px; }
.costos-copy .sub { max-width: 24ch; }
.slip {
  position: absolute; right: 160px; top: 140px; width: 860px; overflow: hidden;
  border-radius: 34px; background: var(--card); box-shadow: var(--shadow-lift);
}
.slip-head { background: var(--ink); color: #fff; padding: 34px 44px 30px; display: grid; gap: 4px; }
.slip-head strong { font-size: 36px; font-weight: 650; letter-spacing: -0.02em; }
.slip-head span { font-size: 19px; color: rgba(255, 255, 255, .65); }
.slip-sec { padding: 14px 44px; border-top: 1.5px dashed var(--line-strong); }
.slip-sec:nth-of-type(2) { border-top: 0; }
.cost { display: flex; justify-content: space-between; align-items: center; gap: 30px; padding: 22px 0; }
.cost + .cost { border-top: 1px solid var(--line); }
.cost-n { display: grid; gap: 4px; font-size: 27px; font-weight: 650; }
.cost-n small { font-size: 18px; font-weight: 400; color: var(--ink-2); max-width: 40ch; }
.cost-v { font-size: 30px; font-weight: 650; white-space: nowrap; }
.slip-total { display: flex; justify-content: space-between; align-items: baseline; padding: 28px 44px 34px; background: var(--accent-tint); }
.slip-total span { font-size: 22px; font-weight: 600; color: var(--accent-ink); }
.slip-total b { font-size: 46px; font-weight: 700; letter-spacing: -0.02em; color: var(--accent-ink); }
.slip-total small { font-size: 28px; font-weight: 650; }

/* ---------- 13 · Cierre ---------- */
.s-cierre { padding: 0 180px; }
.cierre-t { position: absolute; left: 180px; top: 320px; margin: 0; font-size: 128px; font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.s-cierre .hl { color: #4fd48a; }
.cierre-logos { position: absolute; right: 180px; bottom: 120px; display: flex; align-items: center; gap: 34px; }
.cierre-logos img:first-child { height: 30px; width: auto; }
.cierre-logos img:last-child { height: 66px; width: auto; }
.s-cierre .logo-sep { background: rgba(255, 255, 255, .2); }

/* ---------- Indicadores ---------- */
.hud { position: fixed; right: 26px; bottom: 18px; font-size: 15px; font-weight: 600; color: var(--ink-3); z-index: 50; transition: opacity .4s; }
body[data-theme="dark"] .hud, body[data-theme="notion"] .hud { color: rgba(255, 255, 255, .35); }
.progress { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 50; }
.progress i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); transition: transform .6s var(--ease); }
body.idle .hud { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .2s !important; }
}
