/*
 * Innobox Growth — sitio público
 * Sistema visual derivado del logotipo (ver docs/MARCA.md).
 *
 * Regla de color: el cian es el sistema (datos en movimiento), el magenta es el
 * resultado (paciente, ingreso). El degradado cian → magenta sólo aparece donde
 * algo se convierte: la acción principal, la línea del recorrido y los ingresos.
 */

/* ───────────────────────── Tokens ───────────────────────── */
:root {
  --night-950: #0b0518;
  --night-900: #120826;
  --night-850: #170a31;
  --night-800: #1f0d41;   /* fondo del logotipo */
  --night-700: #2c1658;
  --paper: #f6f4fb;
  --paper-2: #ece8f5;
  --white: #ffffff;

  --ink: #140a2b;
  --ink-2: #463d5f;       /* 9.6:1 sobre papel */
  --ink-3: #685f80;       /* 5.9:1 sobre papel */
  --on-night: #f3f0fa;
  --on-night-2: #bfb6d8;  /* 9.4:1 sobre night-900 */
  --on-night-3: #8f86ad;  /* 5.3:1 sobre night-900 */

  --cyan: #2bdfff;
  --cyan-ink: #08718c;    /* cian legible sobre papel (5.2:1) */
  --lilac: #8f84f0;
  --magenta: #f02bd0;
  --magenta-ink: #a8128f; /* magenta legible sobre papel (6.3:1) */
  --grad: linear-gradient(90deg, var(--cyan), var(--lilac) 50%, var(--magenta));

  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);
  --line-ink: rgba(20, 10, 43, 0.11);
  --line-ink-2: rgba(20, 10, 43, 0.2);

  --f-display: 'Sora', 'Avenir Next', system-ui, sans-serif;
  --f-body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-hero: clamp(2.9rem, 1.3rem + 5.4vw, 6.1rem);
  --fs-h2: clamp(2.2rem, 1.2rem + 3.8vw, 4.6rem);
  --fs-h3: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --fs-lead: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);

  --wrap: 1320px;
  --gutter: clamp(1rem, 0.4rem + 3vw, 3.5rem);
  --section: clamp(6rem, 3.5rem + 10vw, 12rem);
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
  --hdr: 68px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ───────────────────────── Base ───────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--hdr); }
body {
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  background: var(--night-900);
  color: var(--on-night);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ol, ul { list-style: none; }
b, strong { font-weight: 600; }
small { font-size: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.paper :focus-visible { outline-color: var(--cyan-ink); }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.night { background: var(--night-900); color: var(--on-night); }
.paper { background: var(--paper); color: var(--ink); }

.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--white); color: var(--ink); padding: .6rem 1rem; border-radius: var(--r-sm); }
.skip:focus { top: 1rem; }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-text--ink { background: linear-gradient(90deg, var(--cyan-ink), #5a4fc4 50%, var(--magenta-ink)); -webkit-background-clip: text; background-clip: text; }

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-family: var(--f-mono); font-size: .78rem; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-2);
}
.eyebrow--ink { color: var(--ink-2); }
.eyebrow__mark { width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #c9f7ff, var(--cyan) 45%, var(--magenta)); flex: none; }

.note { font-family: var(--f-mono); font-size: .75rem; letter-spacing: .02em; color: var(--ink-3); margin-top: 1.25rem; }
.night .note { color: var(--on-night-3); }

/* ───────────────────────── Botones ───────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7rem;
  height: 52px; padding: 0 1.5rem; border-radius: 12px;
  font-family: var(--f-display); font-weight: 600; font-size: .98rem; letter-spacing: -.005em;
  white-space: nowrap; transition: transform .35s var(--ease), background-color .2s, border-color .2s, color .2s;
}
.btn:active { transform: scale(.98); }
.btn--sm { height: 40px; padding: 0 1rem; font-size: .88rem; border-radius: 10px; }
.btn--lg { height: 60px; padding: 0 2rem; font-size: 1.05rem; }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: #efeafc; }
.btn--dark { background: var(--night-800); color: #fff; }
.btn--dark:hover { background: var(--night-700); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--on-night); }
.btn--ghost:hover { border-color: rgba(255,255,255,.4); }
.btn--outline-ink { border: 1px solid var(--line-ink-2); color: var(--ink); }
.btn--outline-ink:hover { border-color: var(--ink); }
.btn__dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #c9f7ff, var(--cyan) 45%, var(--magenta));
  box-shadow: 0 0 0 0 rgba(240, 43, 208, .5);
  transition: transform .35s var(--ease);
}
.btn:hover .btn__dot { transform: scale(1.35); }

/* ───────────────────────── Elementos de interfaz ───────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: .35rem; height: 24px; padding: 0 .6rem;
  border-radius: 999px; font-family: var(--f-mono); font-size: .72rem; font-weight: 500; white-space: nowrap;
  color: var(--on-night-2); border: 1px solid var(--line-2);
}
.pill--sys { color: var(--cyan); border-color: rgba(43, 223, 255, .4); background: rgba(43, 223, 255, .08); }
.pill--result { color: #ff8be9; border-color: rgba(240, 43, 208, .45); background: rgba(240, 43, 208, .1); }
.pill--result::before { content: '✓'; }
.pill--alt { color: var(--lilac); border-color: rgba(143, 132, 240, .45); }
.pill--off { color: var(--on-night-3); text-decoration: line-through; }
.paper .pill { color: var(--ink-2); border-color: var(--line-ink-2); }
.paper .pill--result { color: var(--magenta-ink); border-color: rgba(168, 18, 143, .35); background: rgba(240, 43, 208, .07); }

.chip { font-family: var(--f-mono); font-size: .72rem; padding: .2rem .55rem; border: 1px solid var(--line-2); border-radius: 6px; color: var(--on-night-3); transition: all .3s; }
.chip.is-on { color: var(--on-night); border-color: var(--cyan); background: rgba(43,223,255,.1); }

.tag { display: inline-flex; align-items: center; height: 30px; padding: 0 .8rem; border-radius: 8px; border: 1px solid var(--line-2); font-size: .86rem; color: var(--on-night-2); }
.tag--result { color: #ff8be9; border-color: rgba(240, 43, 208, .45); }

.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-family: var(--f-mono); font-size: .66rem; font-weight: 500; background: var(--night-700); color: var(--on-night); }
.avatar--sys { background: var(--white); color: var(--night-800); }

/* ───────────────────────── Header ───────────────────────── */
.hdr { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--hdr); transition: background-color .3s, border-color .3s; border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(18, 8, 38, .92); border-bottom-color: var(--line); }
.hdr__in { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { display: inline-flex; align-items: center; gap: .6rem; }
.brand__iso { width: 30px; height: 30px; }
.brand__word { font-family: var(--f-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -.02em; }
.brand__tag { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-3); border-left: 1px solid var(--line-2); padding-left: .6rem; }
.nav { display: flex; gap: 2rem; margin-left: auto; }
.nav a { font-size: .92rem; color: var(--on-night-2); position: relative; padding: .4rem 0; transition: color .2s; }
.nav a:hover, .nav a.is-on { color: var(--on-night); }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.nav a.is-on::after { transform: scaleX(1); }
.hdr.is-light .brand__word { color: var(--ink); }
.hdr.is-light .brand__tag { color: var(--ink-3); border-color: var(--line-ink-2); }
.hdr.is-light .nav a { color: var(--ink-2); }
.hdr.is-light .nav a:hover, .hdr.is-light .nav a.is-on { color: var(--ink); }
.hdr.is-light .btn--light { background: var(--night-800); color: #fff; }
.hdr.is-light.is-solid { background: rgba(255, 255, 255, .92); border-bottom-color: var(--line-ink); }
.hdr__progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--grad); transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 860px) {
  .nav { display: none; }
  .hdr__in { justify-content: space-between; }
  .brand__tag { display: none; }
}

/* ───────────────────────── Encabezados de sección ───────────────────────── */
.shead { margin-bottom: clamp(3rem, 2rem + 4vw, 6rem); }
.shead__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-h2); line-height: 1; letter-spacing: -.045em; margin-top: 1.4rem; text-wrap: balance; }
.shead--split { display: grid; grid-template-columns: 1fr; gap: 1.5rem; align-items: end; }
.shead__aside { font-size: var(--fs-lead); color: var(--on-night-2); max-width: 30ch; }
.paper .shead__aside { color: var(--ink-2); }
.shead__aside--strong { font-family: var(--f-display); font-weight: 500; color: var(--on-night); }
.paper .shead__aside--strong { color: var(--ink); }
@media (min-width: 960px) {
  .shead--split { grid-template-columns: minmax(0, 1fr) minmax(14rem, 24rem); gap: 4rem; }
  .shead--split > :last-child { justify-self: end; text-align: right; margin-bottom: .4rem; }
}

section { position: relative; padding-block: var(--section); }

/* Aparición con el scroll. El contenido es visible si no hay JS. */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform 1.1s var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }

/* ═════════════════════════ HERO ═════════════════════════ */
.hero { min-height: 100svh; padding: calc(var(--hdr) + clamp(2rem, 5vh, 4rem)) 0 clamp(3.5rem, 7vh, 6rem); display: flex; align-items: center; overflow: hidden;
  background: radial-gradient(ellipse 60% 70% at 85% 40%, rgba(143,132,240,.16), transparent 70%), linear-gradient(180deg, #fff 0%, var(--paper) 100%); }
.hero__in { position: relative; display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: 1.05fr .95fr; } }

.hero__title { font-family: var(--f-display); font-weight: 600; font-size: var(--fs-hero); line-height: .98; letter-spacing: -.055em; margin: 1.5rem 0 1.6rem; color: var(--ink); }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.hero__title .line > span { display: inline-block; }
.js .hero__title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
.js .hero__title .line:nth-child(2) > span { animation-delay: .1s; }
.js .hero__title .line:nth-child(3) > span { animation-delay: .2s; }
@keyframes rise { to { transform: none; } }
.hero__sub { font-size: var(--fs-lead); color: var(--ink-2); max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2.2rem; }
.hero__spec { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.2rem; max-width: 34rem; }
.hero__spec li { font-family: var(--f-mono); font-size: .72rem; padding: .3rem .65rem; border-radius: 99px; border: 1px solid var(--line-ink-2); color: var(--ink-2); background: rgba(255,255,255,.6); }
.js .hero__sub, .js .hero__ctas, .js .hero .eyebrow, .js .hero__spec { opacity: 0; animation: fade 1s var(--ease) .45s forwards; }
.js .hero .eyebrow { animation-delay: 0s; }
.js .hero__ctas { animation-delay: .6s; }
.js .hero__spec { animation-delay: .8s; }
@keyframes fade { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

/* Foto con el sistema trabajando encima */
.hero__fig { position: relative; margin: 0; width: min(520px, 100%); justify-self: center; aspect-ratio: 4 / 5; }
@media (min-width: 1000px) { .hero__fig { justify-self: end; margin-right: 2.5rem; } }
.hero__fig picture, .hero__fig img { display: block; width: 100%; height: 100%; }
.hero__fig img { object-fit: cover; border-radius: 28px; background: linear-gradient(160deg, #e9e4fb, #d4cbf2); box-shadow: 0 50px 100px -50px rgba(31,13,65,.55); }
.js .hero__fig { opacity: 0; animation: liveIn 1.4s var(--ease) .3s forwards; }
@keyframes liveIn { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }

.fl { position: absolute; z-index: 1; background: #fff; color: var(--ink); border-radius: 14px; padding: .75rem .9rem; font-size: .85rem; line-height: 1.35;
  box-shadow: 0 24px 50px -20px rgba(20,10,43,.4), 0 0 0 1px rgba(20,10,43,.06); }
.fl b { display: block; font-weight: 600; }
.fl small { display: block; font-size: .74rem; color: var(--ink-3); }
.fl__k { display: block; font-family: var(--f-mono); font-size: .62rem; letter-spacing: .08em; text-transform: uppercase; color: var(--cyan-ink); margin-bottom: .25rem; }
.fl__k--wa { color: #0f7a43; }
[data-fl] { opacity: 0; transform: translateY(14px) scale(.96); transition: opacity .5s var(--ease), transform .7s var(--ease); }
[data-fl].is-on { opacity: 1; transform: none; }
html:not(.js) [data-fl] { opacity: 1; transform: none; }
.fl--ad { left: -2.75rem; top: 7%; width: 14.5rem; }
.fl--ad b { font-family: var(--f-display); font-size: 1.02rem; letter-spacing: -.02em; }
.fl--lead { right: -2.5rem; top: 30%; display: flex; align-items: center; gap: .6rem; }
.fl--lead .avatar { background: var(--night-800); }
.fl--wa { left: -3.25rem; top: 50%; width: 15.5rem; }
.fl--wa p { font-size: .86rem; }
.fl__btn { display: inline-block; margin-top: .5rem; padding: .3rem .7rem; border-radius: 8px; background: var(--night-800); color: #fff; font-weight: 600; font-size: .76rem; }
.fl--done { right: -2rem; bottom: 18%; display: flex; align-items: center; gap: .7rem; }
.fl__money { font-family: var(--f-display); font-size: 1.5rem !important; letter-spacing: -.03em; background: linear-gradient(90deg, var(--cyan-ink), #5a4fc4, var(--magenta-ink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fl--month { left: 1rem; bottom: 1rem; background: rgba(18,8,38,.88); color: var(--on-night); box-shadow: none; }
.fl--month .fl__k { color: var(--cyan); }
.fl__row { display: flex; align-items: baseline; gap: .35rem; font-size: .8rem; color: var(--on-night-2); }
.fl__row b { display: inline; font-family: var(--f-display); font-size: 1.1rem; color: #fff; }
.fl__row b + b { margin-left: .6rem; color: #ff8be9; }
.fl__row b.bump { animation: bump .6s var(--ease); }
@keyframes bump { 40% { color: #ff8be9; } }
.hero .pill--result, .fl .pill--result { color: var(--magenta-ink); border-color: rgba(168,18,143,.35); background: rgba(240,43,208,.07); }
@media (max-width: 1240px) and (min-width: 1000px) { .fl--ad, .fl--wa { left: -1.5rem; } .fl--lead, .fl--done { right: -1.5rem; } }
@media (max-width: 999px) {
  .hero { min-height: 0; }
  .hero__fig { width: 100%; max-width: 520px; aspect-ratio: 4 / 4.6; }
  .fl { font-size: .76rem; padding: .6rem .7rem; }
  .fl--ad { left: .8rem; top: .8rem; width: 12.5rem; }
  .fl--ad b { font-size: .9rem; }
  .fl--lead { right: .8rem; top: 30%; }
  .fl--wa { left: .8rem; top: 50%; width: 13rem; }
  .fl--wa p { font-size: .76rem; }
  .fl--done { right: .8rem; bottom: 4.6rem; }
  .fl__money { font-size: 1.2rem !important; }
  .fl--month { left: .8rem; bottom: .8rem; }
}

/* ═════════════════════════ DEL LADO DEL PACIENTE ═════════════════════════ */
.story { background: var(--paper); }
.story__row { display: grid; gap: clamp(1rem, 2vw, 2rem); }
@media (min-width: 900px) { .story__row { grid-template-columns: repeat(3, 1fr); } }
.story__card { min-width: 0; }
.js .story__card:nth-child(2) { transition-delay: .12s; }
.js .story__card:nth-child(3) { transition-delay: .24s; }
.story__fig { position: relative; margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; background: linear-gradient(160deg, #e9e4fb, #d4cbf2); }
.story__fig img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.story__card:hover .story__fig img { transform: scale(1.03); }
.story__ui { position: absolute; left: 1rem; bottom: 1rem; max-width: calc(100% - 2rem); background: #fff; color: var(--ink); border-radius: 12px; padding: .7rem .85rem; font-size: .84rem; line-height: 1.35; box-shadow: 0 20px 40px -18px rgba(20,10,43,.5); }
.js .story__ui { opacity: 0; transform: translateY(12px); transition: opacity .6s var(--ease) .5s, transform .8s var(--ease) .5s; }
.js .story__card.in .story__ui { opacity: 1; transform: none; }
.story__ui small { display: block; font-family: var(--f-mono); font-size: .62rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.story__ui b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1rem; letter-spacing: -.02em; margin: .15rem 0 .5rem; }
.story__ui span:not(.pill) { display: inline-block; padding: .3rem .7rem; border-radius: 8px; background: var(--night-800); color: #fff; font-weight: 600; font-size: .76rem; }
.story__ui--wa { background: #dcf8d4; }
.story__ui--wa p { margin-bottom: .45rem; }
.story__ui--done { display: flex; align-items: center; gap: .7rem; }
.story__ui--done b { margin: 0; font-size: 1.3rem; color: var(--magenta-ink); }
.story__step { display: flex; align-items: baseline; gap: .7rem; margin-top: 1.2rem; font-family: var(--f-display); font-weight: 600; font-size: clamp(1.25rem, 1.05rem + .6vw, 1.6rem); letter-spacing: -.035em; }
.story__step span { font-family: var(--f-mono); font-size: .74rem; font-weight: 500; letter-spacing: 0; color: var(--cyan-ink); }
.story__card:nth-child(2) .story__step span { color: #5a4fc4; }
.story__card:nth-child(3) .story__step span { color: var(--magenta-ink); }
.story__line { color: var(--ink-2); margin-top: .3rem; max-width: 30ch; }
@media (max-width: 899px) {
  .story__row { grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }
  .story__row::-webkit-scrollbar { display: none; }
  .story__card { scroll-snap-align: start; }
}

/* ═════════════════════════ RECORRIDO ═════════════════════════ */
.journey { padding: 0; height: 640svh; background: var(--night-900); }
.journey__sticky { position: sticky; top: 0; height: 100svh; display: flex; align-items: center; padding-top: var(--hdr); overflow: hidden; }
.journey__in { display: grid; gap: 1.2rem; height: 100%; align-content: center; padding-block: 1.2rem; }
.journey__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2rem, 1.2rem + 3vw, 4rem); line-height: 1; letter-spacing: -.045em; margin: 1rem 0 2.2rem; }
.steps { position: relative; padding-left: 1.4rem; }
.steps::before, .steps::after { content: ''; position: absolute; left: 0; top: .4rem; bottom: .4rem; width: 1px; background: var(--line-2); }
.steps::after { background: linear-gradient(var(--cyan), var(--lilac), var(--magenta)); bottom: auto; height: calc((100% - .8rem) * var(--jp, 0)); }
.steps li { display: grid; grid-template-columns: 2.2rem 1fr; padding: .38rem 0; font-family: var(--f-display); font-size: 1.12rem; font-weight: 500; color: var(--on-night-3); transition: color .4s; }
.steps li span { font-family: var(--f-mono); font-size: .72rem; padding-top: .35rem; }
.steps em { grid-column: 2; font-style: normal; font-family: var(--f-body); font-size: .92rem; font-weight: 400; color: var(--on-night-2); display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--ease), opacity .4s; }
.steps li.is-on { color: var(--on-night); }
.steps li.is-on span { color: var(--cyan); }
.steps li.is-on em { grid-template-rows: 1fr; opacity: 1; padding-top: .15rem; }
.steps li.is-past { color: var(--on-night-2); }

.stage { position: relative; display: flex; flex-direction: column; min-height: 0; height: min(660px, calc(100svh - var(--hdr) - 2.4rem)); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden;
  background:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,.07) 1px, transparent 0) 0 0 / 22px 22px,
    linear-gradient(180deg, var(--night-850), var(--night-950)); }
.stage__head { display: flex; align-items: center; gap: .8rem; padding: .9rem 1.2rem; border-bottom: 1px solid var(--line); font-family: var(--f-mono); font-size: .74rem; }
.stage__n { color: var(--cyan); }
.stage__label { color: var(--on-night); text-transform: uppercase; letter-spacing: .1em; }
.stage__demo { margin-left: auto; color: var(--on-night-3); }
.scenes { position: relative; flex: 1; min-height: 0; container-type: size; }
.scene { position: absolute; inset: 0; display: grid; place-items: center; opacity: 0; visibility: hidden; transform: translateY(18px) scale(.97); transition: opacity .55s var(--ease), transform .7s var(--ease), visibility 0s .7s; font-size: clamp(11px, 3.6cqmin, 16px); }
.scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s var(--ease) .1s, transform .8s var(--ease) .1s, visibility 0s; }
.scene.is-gone { transform: translateY(-18px) scale(.97); }
.scene > * { font-size: 1em; }

/* 0 · Anuncio */
.ad { position: relative; width: 23em; background: #fff; color: var(--ink); border-radius: 1em; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.ad__top { display: flex; gap: .7em; align-items: center; padding: .8em .9em; font-size: .9em; }
.ad__top small { display: block; color: var(--ink-3); font-size: .85em; }
.ad__av { width: 2.4em; height: 2.4em; border-radius: 50%; background: var(--night-800); color: #fff; display: grid; place-items: center; font-family: var(--f-mono); font-size: .8em; }
.ad__art { position: relative; height: 15em; background: #e9e4fb; overflow: hidden; padding: 1.3em; display: flex; flex-direction: column; justify-content: space-between; }
.ad__art p { position: relative; font-family: var(--f-display); font-size: 1.85em; line-height: 1.02; letter-spacing: -.04em; color: var(--night-800); font-weight: 500; }
.ad__art strong { font-weight: 700; }
.ad__arc { position: absolute; right: -4em; bottom: -5em; width: 14em; height: 14em; border-radius: 50%; border: 1.6em solid rgba(143,132,240,.35); }
.ad__arc--2 { right: -1em; bottom: -2em; width: 8em; height: 8em; border-width: 1px; border-color: rgba(31,13,65,.3); }
.ad__tag { position: relative; align-self: flex-start; font-family: var(--f-mono); font-size: .78em; background: #fff; padding: .35em .7em; border-radius: 99px; }
.ad__cta { display: flex; justify-content: space-between; align-items: center; padding: .75em .9em; background: #f4f2f8; font-size: .85em; color: var(--ink-3); }
.ad__btn { background: var(--night-800); color: #fff; padding: .45em 1em; border-radius: .5em; font-weight: 600; transition: transform .2s; }
.cursor { position: absolute; right: -2em; bottom: -2em; width: 1.4em; height: 1.4em; border-radius: 50%; border: 2px solid var(--night-800); background: rgba(255,255,255,.7); opacity: 0; }
.scene--ad.is-on .cursor { animation: cursorTo 2.2s var(--ease) .6s forwards; }
.scene--ad.is-on .ad__btn { animation: press .3s ease 2.4s; }
@keyframes cursorTo { 0% { opacity: 0; transform: translate(0,0); } 20% { opacity: 1; } 75% { transform: translate(-3.6em, -3.6em); opacity: 1; } 85% { transform: translate(-3.6em, -3.6em) scale(.75); } 100% { transform: translate(-3.6em, -3.6em) scale(1); opacity: 1; } }
@keyframes press { 50% { transform: scale(.92); } }
.badge-float { position: absolute; padding: .6em .85em; border-radius: .7em; background: var(--night-800); border: 1px solid var(--line-2); font-size: .85em; opacity: 0; transition: opacity .5s, transform .6s var(--ease); }
.badge-float small { display: block; font-family: var(--f-mono); font-size: .8em; color: var(--cyan); text-transform: uppercase; letter-spacing: .08em; }
.badge-float--1 { left: 4%; top: 12%; transform: translateX(-10px); }
.badge-float--2 { right: 4%; bottom: 14%; transform: translateX(10px); }
.scene.is-on .badge-float { opacity: 1; transform: none; transition-delay: .5s; }
.scene.is-on .badge-float--2 { transition-delay: .8s; }
@container (max-width: 520px) { .badge-float { display: none; } }

/* 1 · Landing */
.landing { width: 25em; background: #fff; color: var(--ink); border-radius: .9em; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.landing__bar { display: flex; align-items: center; gap: .35em; padding: .6em .8em; background: #eeeaf6; font-family: var(--f-mono); font-size: .75em; color: var(--ink-3); }
.landing__bar i { width: .65em; height: .65em; border-radius: 50%; background: #d4cde6; }
.landing__bar span { margin-left: .6em; background: #fff; border-radius: 99px; padding: .15em .8em; }
.landing__body { padding: 1.4em; }
.landing__body small { font-family: var(--f-mono); font-size: .75em; color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.landing__body h3 { font-family: var(--f-display); font-size: 1.7em; letter-spacing: -.035em; line-height: 1.1; margin: .2em 0 .8em; }
.landing__body p { font-size: .9em; color: var(--ink-2); margin-bottom: .6em; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: .45em; }
.slots span { text-align: center; padding: .6em 0; border: 1px solid var(--line-ink-2); border-radius: .5em; font-family: var(--f-mono); font-size: .8em; transition: all .4s; }
.slots .is-off { color: #b7b0c9; text-decoration: line-through; }
.scene.is-on .slots .is-pick { background: var(--night-800); border-color: var(--night-800); color: #fff; transition-delay: .9s; }
.landing__go { display: block; text-align: center; margin-top: 1em; padding: .75em; border-radius: .6em; background: #eeeaf6; font-weight: 600; font-size: .9em; transition: all .4s; }
.scene.is-on .landing__go { background: var(--night-800); color: #fff; transition-delay: 1.4s; }
.ripple { position: absolute; width: 3em; height: 3em; border-radius: 50%; border: 2px solid var(--cyan); left: 50%; top: 50%; margin: -1.5em; opacity: 0; }
.scene--landing.is-on .ripple { animation: ripple 1s var(--ease) .15s; }
@keyframes ripple { from { opacity: 1; transform: scale(.5); } to { opacity: 0; transform: scale(6); } }

/* 2 · Lead */
.scene--lead { grid-template-columns: auto; }
.form { position: absolute; left: 50%; top: 50%; width: 19em; translate: -88% -66%; background: #fff; color: var(--ink); border-radius: .9em; padding: 1em; display: grid; gap: .7em; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.form label { display: grid; gap: .2em; }
.form small { font-family: var(--f-mono); font-size: .72em; color: var(--ink-3); text-transform: uppercase; letter-spacing: .06em; }
.form label > span { border: 1px solid var(--line-ink-2); border-radius: .45em; padding: .45em .6em; font-size: .92em; min-height: 2.2em; }
.type span { display: inline-block; overflow: hidden; white-space: nowrap; vertical-align: bottom; max-width: 0; border-right: 1px solid var(--ink); }
.scene.is-on .type span { animation: typing .9s steps(12) .4s forwards; }
.scene.is-on .type--2 span { animation-delay: 1.3s; }
@keyframes typing { to { max-width: 12em; border-color: transparent; } }
.leadcard { position: absolute; left: 50%; top: 50%; width: 20em; translate: -18% -18%; background: var(--night-800); border: 1px solid rgba(43,223,255,.45); border-radius: .9em; padding: 1em; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9), 0 0 0 6px rgba(43,223,255,.06); opacity: 0; transform: translateY(1.5em); transition: opacity .6s, transform .8s var(--ease); }
.scene.is-on .leadcard { opacity: 1; transform: none; transition-delay: 2.1s; }
@container (max-width: 560px) {
  .form { translate: -72% -72%; }
  .leadcard { translate: -38% -12%; }
}
.leadcard__h { display: flex; align-items: center; gap: .6em; margin-bottom: .8em; }
.leadcard__h b { font-family: var(--f-display); }
.leadcard__h .pill { margin-left: auto; }
.leadcard dl { display: grid; grid-template-columns: auto 1fr; gap: .45em 1em; font-size: .9em; }
.leadcard dt { font-family: var(--f-mono); font-size: .8em; color: var(--on-night-3); text-transform: uppercase; letter-spacing: .06em; padding-top: .15em; }
.leadcard mark { background: rgba(43,223,255,.14); color: var(--cyan); padding: 0 .3em; border-radius: .25em; }

/* 3 · Calendario */
.cal { width: 27em; background: #fff; color: var(--ink); border-radius: .9em; overflow: hidden; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.cal__h { display: flex; justify-content: space-between; align-items: baseline; padding: .8em 1em; border-bottom: 1px solid var(--line-ink); font-size: .9em; }
.cal__h span { font-family: var(--f-mono); font-size: .8em; color: var(--ink-3); }
.cal__grid { display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: auto repeat(4, 3.6em); gap: .3em; padding: .6em; }
.cal__day { text-align: center; font-family: var(--f-mono); font-size: .75em; color: var(--ink-3); padding: .2em 0 .4em; }
.cal__day.is-today { color: var(--night-800); font-weight: 500; }
.ev { grid-column: var(--c); grid-row: calc(var(--r) + 1); background: #f0edf7; border-radius: .4em; padding: .35em .45em; font-size: .72em; color: var(--ink-3); overflow: hidden; }
.ev--new { background: var(--night-800); color: #c9c1e6; line-height: 1.25; box-shadow: 0 0 0 2px var(--cyan); opacity: 0; transform: translateY(-2.5em) scale(1.1); transition: all .8s var(--ease); }
.ev--new b { display: block; color: #fff; font-weight: 600; }
.scene.is-on .ev--new { opacity: 1; transform: none; transition-delay: .6s; }

/* 4 · WhatsApp */
.phone { width: 21em; background: #ece5dd; color: #111; border-radius: 1.4em; overflow: hidden; border: .4em solid #0c0618; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.phone__h { display: flex; align-items: center; gap: .6em; padding: .7em .9em; background: #1f0d41; color: #fff; font-size: .9em; }
.phone__h small { display: block; font-size: .78em; color: #bfb6d8; }
.chat { padding: .9em .8em; display: flex; flex-direction: column; gap: .5em; min-height: 16em; }
.msg { position: relative; max-width: 82%; padding: .55em .7em 1.1em; border-radius: .7em; font-size: .9em; line-height: 1.35; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.msg time { position: absolute; right: .6em; bottom: .25em; font-size: .7em; color: #7a7489; }
.msg--out { align-self: flex-end; background: #d9fdd3; }
.msg--sys { align-self: center; max-width: 92%; background: #fff7d6; font-size: .76em; padding: .35em .7em; color: #5d5470; }
.msg-actions { display: flex; gap: .4em; max-width: 82%; }
.msg-actions span { flex: 1; text-align: center; background: #fff; border-radius: .6em; padding: .5em; font-size: .85em; font-weight: 600; color: #1f0d41; transition: all .3s; }
.scene--wa .msg, .scene--wa .msg-actions { opacity: 0; transform: translateY(.8em); transition: opacity .4s, transform .5s var(--ease); }
.scene--wa.is-on .msg--in { opacity: 1; transform: none; transition-delay: .4s; }
.scene--wa.is-on .msg-actions { opacity: 1; transform: none; transition-delay: .8s; }
.scene--wa.is-on .msg-actions .is-tap { background: var(--night-800); color: #fff; transition-delay: 1.6s; }
.scene--wa.is-on .msg--out { opacity: 1; transform: none; transition-delay: 2s; }
.scene--wa.is-on .msg--sys { opacity: 1; transform: none; transition-delay: 2.5s; }
.status-swap { position: absolute; right: 6%; top: 14%; display: grid; }
.status-swap .pill { grid-area: 1 / 1; transition: opacity .4s, transform .5s var(--ease); }
.status-swap .pill--sys { opacity: 0; transform: translateY(.5em); }
.scene.is-on .status-swap .pill:first-child { opacity: 0; transition-delay: 2.6s; }
.scene.is-on .status-swap .pill--sys { opacity: 1; transform: none; transition-delay: 2.7s; }
@container (max-width: 520px) { .status-swap { display: none; } }

/* 5 · Asistencia */
.day { width: 26em; background: var(--night-800); border: 1px solid var(--line-2); border-radius: .9em; padding: .4em 0; box-shadow: 0 30px 80px -30px rgba(0,0,0,.9); }
.day__h { display: flex; justify-content: space-between; padding: .7em 1.1em; font-size: .92em; }
.day__h span { font-family: var(--f-mono); font-size: .8em; color: var(--on-night-3); }
.day__row { display: grid; grid-template-columns: 3.6em 1fr auto; align-items: center; padding: .75em 1.1em; border-top: 1px solid var(--line); font-size: .92em; color: var(--on-night-2); }
.day__row time { font-family: var(--f-mono); font-size: .85em; color: var(--on-night-3); }
.day__row--focus { background: rgba(240,43,208,.06); color: var(--on-night); }
.swap { display: grid; justify-items: end; }
.swap .pill { grid-area: 1 / 1; transition: opacity .4s, transform .5s var(--ease); }
.swap .pill--result { opacity: 0; transform: scale(.85); }
.scene.is-on .swap .pill--sys { opacity: 0; transition-delay: .9s; }
.scene.is-on .swap .pill--result { opacity: 1; transform: none; transition-delay: 1s; }
.day__note { padding: .6em 1.1em 0; font-family: var(--f-mono); font-size: .75em; color: var(--on-night-3); border-top: 1px solid var(--line); opacity: 0; transition: opacity .5s 1.4s; }
.scene.is-on .day__note { opacity: 1; }

/* 6 · Ingreso */
.scene--rev { align-content: center; gap: 1.6em; }
.receipt { display: grid; justify-items: center; text-align: center; gap: .3em; }
.receipt small { font-family: var(--f-mono); font-size: .8em; color: var(--on-night-3); text-transform: uppercase; letter-spacing: .1em; }
.receipt__amt { font-family: var(--f-display); font-weight: 600; font-size: 4.6em; line-height: 1; letter-spacing: -.05em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.receipt > span { color: var(--on-night-2); font-size: .95em; }
.receipt__trace { font-family: var(--f-mono); font-size: .78em !important; color: var(--cyan) !important; }
.equation { display: flex; align-items: center; gap: 1em; padding: 1em 1.4em; border: 1px solid var(--line-2); border-radius: .9em; background: rgba(11,5,24,.6); opacity: 0; transform: translateY(1em); transition: all .7s var(--ease); }
.scene.is-on .equation { opacity: 1; transform: none; transition-delay: .7s; }
.equation small { display: block; font-family: var(--f-mono); font-size: .72em; color: var(--on-night-3); text-transform: uppercase; letter-spacing: .08em; }
.equation b { font-family: var(--f-display); font-size: 1.5em; font-weight: 600; letter-spacing: -.03em; }
.equation i { font-style: normal; color: var(--on-night-3); }
.equation__end b { color: #ff8be9; }

/* Traza */
.trace { position: relative; padding: .9rem 1.2rem 1rem; border-top: 1px solid var(--line); }
.trace__line { display: block; height: 2px; background: var(--line); border-radius: 2px; margin-bottom: .75rem; overflow: hidden; }
.trace__line span { display: block; height: 100%; width: 100%; background: var(--grad); transform-origin: left; transform: scaleX(var(--tp, 0)); transition: transform .6s var(--ease); }
.trace ol { display: flex; justify-content: space-between; gap: .4rem; font-family: var(--f-mono); font-size: .68rem; }
.trace li { color: var(--on-night-3); opacity: .45; white-space: nowrap; transition: all .4s; }
.trace li.is-lit { opacity: 1; color: var(--on-night-2); }
.trace li.is-cur { color: var(--cyan); }
.trace li:last-child.is-lit { color: #ff8be9; }

@media (min-width: 1000px) {
  .journey__in { grid-template-columns: minmax(280px, .75fr) 1.6fr; gap: clamp(2.5rem, 5vw, 6rem); align-items: center; }
}
@media (max-width: 999px) {
  .journey { height: 700svh; }
  .journey__in { grid-template-rows: auto 1fr; align-content: stretch; gap: .9rem; padding-block: .9rem; }
  .journey__side .eyebrow, .journey__title { display: none; }
  .steps { padding-left: 0; min-height: 4.6rem; }
  .steps::before, .steps::after { display: none; }
  .steps li { display: none; font-size: 1.35rem; }
  .steps li.is-on { display: grid; }
  .stage { height: auto; }
  .trace ol li { display: none; }
  .trace ol li.is-cur { display: block; margin-inline: auto; }
}

/* ═════════════════════════ ATRIBUCIÓN ═════════════════════════ */
.attr__body { display: grid; gap: clamp(3rem, 6vw, 6rem); }
@media (min-width: 1080px) { .attr__body { grid-template-columns: 1.35fr 1fr; align-items: start; } }
.funnel li { position: relative; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); grid-template-areas: 'k num' 'k bar'; column-gap: 1.5rem; padding: .85rem 0; border-top: 1px solid var(--line-ink); }
.funnel__k { grid-area: k; font-family: var(--f-mono); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); padding-top: .9rem; }
.funnel b { grid-area: num; font-family: var(--f-display); font-weight: 600; font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.funnel__bar { grid-area: bar; height: 6px; margin-top: .9rem; border-radius: 4px; width: calc(var(--w) * 1%);
  background: color-mix(in oklab, var(--cyan-ink) calc((1 - var(--hue)) * 100%), var(--magenta) calc(var(--hue) * 100%));
  transform-origin: left; transition: transform 1.4s var(--ease); }
.js .funnel__bar { transform: scaleX(0); }
.funnel.in .funnel__bar { transform: none; }
.funnel li:nth-child(2) .funnel__bar { transition-delay: .12s; }
.funnel li:nth-child(3) .funnel__bar { transition-delay: .24s; }
.funnel li:nth-child(4) .funnel__bar { transition-delay: .36s; }
.funnel li:nth-child(5) .funnel__bar { transition-delay: .48s; }
.funnel li:nth-child(6) .funnel__bar { transition-delay: .6s; }
.funnel__rate { position: absolute; right: 0; top: 1.25rem; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); }
.funnel__rate::before { content: '↓ '; color: var(--cyan-ink); }
.funnel__end { border-top: 1px solid var(--ink) !important; padding-top: 1.6rem !important; }
.funnel__end b { font-size: clamp(3rem, 1.6rem + 5.5vw, 6.5rem); color: var(--magenta-ink); }
.funnel__end .funnel__bar { background: linear-gradient(90deg, var(--cyan-ink), #5a4fc4, var(--magenta)); height: 3px; }
.funnel__end .funnel__k { color: var(--magenta-ink); padding-top: 1.6rem; }

.attr__aside { position: relative; }
@media (min-width: 1080px) { .attr__aside { position: sticky; top: calc(var(--hdr) + 2rem); } }
.attr__quote { font-family: var(--f-display); font-weight: 500; font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.5rem); line-height: 1.12; letter-spacing: -.035em; margin-bottom: 2rem; text-wrap: balance; }
.thread { position: relative; background: var(--white); border: 1px solid var(--line-ink); border-radius: var(--r-lg); padding: .6rem 1.4rem; box-shadow: 0 30px 60px -40px rgba(20,10,43,.35); }
.thread::before { content: ''; position: absolute; left: calc(1.4rem + 3.5px); top: 1.9rem; bottom: 1.9rem; width: 1px; background: linear-gradient(var(--magenta), var(--lilac), var(--cyan-ink)); }
.thread__row { position: relative; display: grid; grid-template-columns: 6.2rem 1fr auto; align-items: center; gap: .6rem; padding: .85rem 0 .85rem 1.4rem; font-size: .92rem; color: var(--ink-2); }
.thread__row + .thread__row { border-top: 1px dashed var(--line-ink); }
.thread__row::before { content: ''; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: var(--white); border: 1.5px solid var(--lilac); }
.thread__row:first-child::before { background: var(--magenta); border-color: var(--magenta); }
.thread__row--src::before { background: var(--cyan-ink); border-color: var(--cyan-ink); }
.thread__row--src b { color: var(--cyan-ink); }
.thread__k { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.thread b { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .funnel li { grid-template-columns: 1fr; grid-template-areas: 'k' 'num' 'bar'; }
  .funnel__k, .funnel__end .funnel__k { padding-top: 0; margin-bottom: .35rem; }
  .funnel__rate { top: 1.1rem; }
  .thread__row { grid-template-columns: 1fr auto; }
  .thread__k { grid-column: 1 / -1; }
}

/* ═════════════════════════ SISTEMA ═════════════════════════ */
.sys { background: var(--night-950); overflow: hidden; }
.sys__body { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .sys__body { grid-template-columns: 1.1fr 1fr; } }
.stack { position: relative; height: 560px; display: grid; place-items: center; --gap: 64px; }
.stack__iso { position: relative; width: 300px; height: 300px; transform-style: preserve-3d; transform: translateY(70px) rotateX(58deg) rotateZ(-45deg); }
.plane { position: absolute; inset: 0; border: 1px solid var(--line-2); border-radius: 18px; background: rgba(23, 10, 49, .82);
  transform: translateZ(calc((4 - var(--i)) * var(--gap))); transition: transform .7s var(--ease), border-color .4s, background-color .4s, box-shadow .4s; }
.plane[data-layer="0"] { --i: 0; } .plane[data-layer="1"] { --i: 1; } .plane[data-layer="2"] { --i: 2; } .plane[data-layer="3"] { --i: 3; } .plane[data-layer="4"] { --i: 4; }
.plane::after { content: ''; position: absolute; inset: 18px; border: 1px dashed var(--line); border-radius: 10px; }
.plane__name { position: absolute; left: 22px; bottom: 18px; font-family: var(--f-display); font-weight: 600; font-size: 22px; letter-spacing: -.03em; color: var(--on-night-3); transition: color .4s; }
.plane__chips { position: absolute; right: 22px; top: 22px; display: flex; gap: 6px; }
.plane__chips i { font-style: normal; font-family: var(--f-mono); font-size: 12px; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--on-night-3); transition: all .4s; }
.plane.is-on { border-color: var(--cyan); background: rgba(43, 223, 255, .1); box-shadow: 0 0 0 1px rgba(43,223,255,.4), 0 0 60px rgba(43,223,255,.15); transform: translateZ(calc((4 - var(--i)) * var(--gap) + 18px)); }
.plane.is-on .plane__name { color: var(--on-night); }
.plane.is-on .plane__chips i { color: var(--cyan); border-color: rgba(43,223,255,.5); }
.plane--result.is-on { border-color: var(--magenta); background: rgba(240,43,208,.12); box-shadow: 0 0 0 1px rgba(240,43,208,.45), 0 0 60px rgba(240,43,208,.2); }
.plane--result.is-on .plane__chips i, .plane--result.is-on .plane__name { color: #ff8be9; }
.stack__beam { position: absolute; left: 50%; top: 50%; width: 2px; height: calc(var(--gap) * 4); transform-origin: top; transform: translate(-50%, 0) rotateZ(45deg) rotateX(-90deg); background: linear-gradient(var(--cyan), var(--magenta)); opacity: .8; }
.stack__beam::after { content: ''; position: absolute; left: -3px; top: 0; width: 8px; height: 20px; border-radius: 4px; background: #fff; box-shadow: 0 0 14px var(--cyan); animation: beam 2.4s var(--ease-io) infinite; }
@keyframes beam { from { transform: translateY(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { transform: translateY(calc(var(--gap) * 4 - 20px)); opacity: 0; } }
@media (max-width: 999px) { .stack { height: 420px; --gap: 48px; } .stack__iso { width: 230px; height: 230px; transform: translateY(54px) rotateX(58deg) rotateZ(-45deg); } .plane__name { font-size: 18px; } .plane__chips i { font-size: 10px; } }
@media (max-width: 420px) { .stack { height: 360px; --gap: 40px; } .stack__iso { width: 190px; height: 190px; transform: translateY(46px) rotateX(58deg) rotateZ(-45deg); } .plane__chips { display: none; } }

.layers { position: relative; counter-reset: l; }
.layers::before { content: ''; position: absolute; left: 1.05rem; top: 2.2rem; bottom: 2.2rem; width: 1px; background: linear-gradient(var(--cyan), var(--lilac), var(--magenta)); opacity: .45; }
.layer { position: relative; border-top: 1px solid var(--line); }
.layer:last-child { border-bottom: 1px solid var(--line); }
.layer__h { display: flex; align-items: center; gap: 1.4rem; width: 100%; text-align: left; padding: 1.2rem 0; }
.layer__n { position: relative; z-index: 1; width: 2.1rem; height: 2.1rem; display: grid; place-items: center; border-radius: 50%; background: var(--night-950); border: 1px solid var(--line-2); font-family: var(--f-mono); font-size: .72rem; color: var(--on-night-3); transition: all .4s; flex: none; }
.layer__name { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.4rem); letter-spacing: -.04em; color: var(--on-night-3); transition: color .4s; }
.layer__body { display: flex; flex-wrap: wrap; gap: .5rem; padding-left: 3.5rem; overflow: hidden; max-height: 0; opacity: 0; transition: max-height .6s var(--ease), opacity .4s, padding .5s var(--ease); }
.layer.is-on .layer__body { max-height: 12rem; opacity: 1; padding-bottom: 1.4rem; }
.layer.is-on .layer__name, .layer__h:hover .layer__name { color: var(--on-night); }
.layer.is-on .layer__n { border-color: var(--cyan); color: var(--night-950); background: var(--cyan); }
.layer--result.is-on .layer__n { border-color: var(--magenta); background: var(--magenta); color: #fff; }

/* ═════════════════════════ CREATIVOS ═════════════════════════ */
.board { position: relative; border: 1px solid var(--line-ink-2); border-radius: var(--r-lg); padding: clamp(1rem, 2.5vw, 2rem); background: radial-gradient(circle at 1px 1px, rgba(20,10,43,.14) 1px, transparent 0) 0 0 / 20px 20px, var(--paper-2); }
.board__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); padding-bottom: 1.2rem; }
.board__bar b { color: var(--ink); font-weight: 500; }
.board__state { display: inline-flex; align-items: center; gap: .5rem; }
.board__state::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan-ink); animation: blink 1.4s infinite; }
.board.is-done .board__state::before { animation: none; background: var(--magenta); }

.board__scatter { display: flex; gap: 1rem; align-items: center; margin-bottom: 1.4rem; overflow-x: auto; scrollbar-width: none; padding: .4rem .2rem 1rem; }
.board__scatter::-webkit-scrollbar { display: none; }
.sticky-note { flex: none; width: 13rem; padding: .8rem .9rem; background: #fff6c9; color: #5d4f1c; font-family: var(--f-mono); font-size: .7rem; line-height: 1.45; border-radius: 4px; box-shadow: 0 10px 20px -12px rgba(20,10,43,.4); }
.sticky-note b { font-family: var(--f-body); font-weight: 500; font-size: .88rem; color: #3b3210; }
.sn--1 { rotate: -2deg; } .sn--2 { rotate: 1.5deg; background: #e7f9fd; color: #1e5563; } .sn--2 b { color: #0f3a45; }
.fmt { flex: none; font-family: var(--f-mono); font-size: .72rem; padding: .35rem .6rem; border: 1px dashed var(--line-ink-2); border-radius: 6px; color: var(--ink-3); }
.mini-landing { flex: none; width: 10rem; padding: .6rem; background: #fff; border-radius: 8px; border: 1px solid var(--line-ink); display: grid; gap: .3rem; rotate: 1deg; }
.mini-landing i { height: 4px; width: 30%; background: var(--paper-2); border-radius: 2px; }
.mini-landing b { font-family: var(--f-display); font-size: .78rem; }
.mini-landing span { height: 4px; background: var(--paper-2); border-radius: 2px; }
.mini-landing span + span { width: 70%; }
.mini-landing em { font-style: normal; font-size: .62rem; text-align: center; padding: .25rem; border-radius: 4px; background: var(--night-800); color: #fff; }

.variants { display: grid; gap: 1rem; }
@media (min-width: 900px) { .variants { grid-template-columns: repeat(3, 1fr); } }
.variant { position: relative; background: #fff; border: 1px solid var(--line-ink); border-radius: var(--r); padding: 1rem; transition: opacity .6s, border-color .4s, box-shadow .4s, transform .6s var(--ease); }
.variant__h { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; font-size: .82rem; color: var(--ink-3); }
.variant__h b { width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 6px; background: var(--paper-2); color: var(--ink); font-family: var(--f-mono); }
.variant__win { margin-left: auto; font-family: var(--f-mono); font-size: .7rem; padding: .2rem .5rem; border-radius: 99px; color: #fff; background: linear-gradient(90deg, #5a4fc4, var(--magenta-ink)); opacity: 0; transform: scale(.8); transition: all .5s var(--ease); }
.variant.is-win { border-color: var(--magenta-ink); box-shadow: 0 0 0 1px var(--magenta-ink), 0 24px 50px -28px rgba(168,18,143,.55); transform: translateY(-4px); }
.variant.is-win .variant__win { opacity: 1; transform: none; }
.variant.is-lose { opacity: .55; }
.creative { position: relative; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; padding: 1rem; display: flex; flex-direction: column; justify-content: space-between; }
.creative__brand { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .08em; opacity: .7; }
.creative p { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.05rem, .9rem + .5vw, 1.35rem); line-height: 1.1; letter-spacing: -.035em; max-width: 13ch; position: relative; }
.creative--a { background: #e9e4fb; color: var(--night-800); }
.creative__shape { position: absolute; right: -2.5rem; bottom: -2.5rem; width: 9rem; height: 9rem; border-radius: 50%; border: 1.2rem solid rgba(143,132,240,.4); }
.creative--b { background: var(--night-800); color: #fff; }
.creative__btn { align-self: flex-start; font-size: .72rem; font-weight: 600; padding: .35rem .7rem; border-radius: 6px; background: var(--cyan); color: var(--night-950); }
.creative--c { background: linear-gradient(160deg, #3a2a63, #160a2f); color: #fff; justify-content: center; align-items: center; }
.creative__play { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35); position: relative; }
.creative__play::after { content: ''; position: absolute; left: 53%; top: 50%; translate: -40% -50%; border: .55rem solid transparent; border-left: .85rem solid #fff; border-right: 0; }
.creative__cap { position: absolute; left: 50%; bottom: 1.6rem; translate: -50% 0; font-size: .7rem; background: rgba(0,0,0,.55); padding: .2rem .5rem; border-radius: 4px; white-space: nowrap; }
.creative__time { position: absolute; left: .8rem; right: .8rem; bottom: .8rem; height: 3px; background: rgba(255,255,255,.25); border-radius: 2px; overflow: hidden; }
.creative__time span { display: block; height: 100%; width: 100%; background: #fff; transform-origin: left; animation: vid 6s linear infinite; }
@keyframes vid { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.variant__copy { font-size: .86rem; color: var(--ink-2); margin: .8rem 0; min-height: 2.8em; }
.variant__m { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-ink); padding-top: .7rem; }
.variant__m dt { font-family: var(--f-mono); font-size: .64rem; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); }
.variant__m dd { font-family: var(--f-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.variant.is-win .variant__m dd { color: var(--magenta-ink); }
.variant__meter { display: block; height: 3px; margin-top: .8rem; background: var(--paper-2); border-radius: 2px; overflow: hidden; }
.variant__meter span { display: block; height: 100%; width: 100%; background: var(--ink-3); transform-origin: left; transform: scaleX(var(--m, 0)); transition: transform .3s linear; }
.variant.is-win .variant__meter span { background: linear-gradient(90deg, #5a4fc4, var(--magenta)); }
@media (max-width: 899px) {
  .variant { display: grid; grid-template-columns: 7.5rem 1fr; column-gap: 1rem; align-items: start; }
  .variant__h { grid-column: 1 / -1; }
  .creative { grid-row: 2 / span 3; aspect-ratio: 3 / 4; padding: .7rem; }
  .creative p { font-size: .9rem; }
  .creative__brand, .creative__cap { display: none; }
  .variant__copy { margin: 0 0 .6rem; font-size: .8rem; min-height: 0; }
  .variant__m dd { font-size: 1.1rem; }
}

.budget { margin-top: 1.4rem; }
.budget__h { display: flex; justify-content: space-between; gap: 1rem; font-family: var(--f-mono); font-size: .74rem; color: var(--ink-3); margin-bottom: .6rem; }
.budget__msg { color: var(--ink); transition: color .3s; }
.board.is-done .budget__msg { color: var(--magenta-ink); }
.budget__bar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; gap: 3px; }
.budget__seg { display: flex; align-items: center; padding-left: .8rem; font-family: var(--f-mono); font-size: .76rem; color: #fff; flex: 0 0 calc(var(--s, 33.33%) - 2px); transition: flex-basis 1.6s var(--ease-io); white-space: nowrap; overflow: hidden; }
.budget__seg[data-seg="a"] { background: #8a82a3; }
.budget__seg[data-seg="b"] { background: linear-gradient(90deg, #5a4fc4, var(--magenta-ink)); }
.budget__seg[data-seg="c"] { background: #b1abc2; }

/* ═════════════════════════ SEGUIMIENTO ═════════════════════════ */
.flow { display: flex; flex-wrap: wrap; gap: .5rem 0; margin-bottom: 2.4rem; }
.flow li { position: relative; display: flex; align-items: center; font-family: var(--f-mono); font-size: .78rem; color: var(--on-night-3); padding: .45rem .8rem; border: 1px solid var(--line); border-radius: 99px; transition: all .4s; }
.flow li + li { margin-left: 1.8rem; }
.flow li + li::before { content: ''; position: absolute; right: 100%; width: 1.8rem; height: 1px; background: var(--line-2); }
.flow li.is-done { color: var(--on-night-2); border-color: var(--line-2); }
.flow li.is-on { color: var(--night-950); background: var(--cyan); border-color: var(--cyan); }
.flow li:last-child.is-on { background: var(--magenta); border-color: var(--magenta); color: #fff; }
@media (max-width: 700px) {
  .flow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .flow::-webkit-scrollbar { display: none; }
  .flow li { flex: none; }
  .flow li + li { margin-left: 1.2rem; } .flow li + li::before { width: 1.2rem; }
}

.auto__body { display: grid; gap: 1.5rem; align-items: start; }
@media (min-width: 980px) { .auto__body { grid-template-columns: 1.35fr 1fr; gap: 2.5rem; } }
.app { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--night-850); overflow: hidden; }
.app__h { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.app__title { color: var(--on-night-2); }
.app__title b { color: var(--on-night); }
.app__tabs { display: inline-flex; padding: 3px; border-radius: 8px; border: 1px solid var(--line); font-size: .76rem; }
.app__tabs span { padding: .2rem .6rem; border-radius: 6px; color: var(--on-night-3); }
.app__tabs .is-on { background: var(--night-700); color: var(--on-night); }
.appts li { display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); transition: background-color .6s; }
.appts time { font-family: var(--f-mono); font-size: .82rem; color: var(--on-night-3); }
.appts__who b { display: block; font-weight: 500; }
.appts__who small { display: block; font-size: .78rem; color: var(--on-night-3); }
.appts li.flash { background: rgba(43,223,255,.08); }
.appts li.flash-result { background: rgba(240,43,208,.09); }
.appts__new { opacity: 0; transform: translateY(-10px); transition: opacity .6s, transform .6s var(--ease), background-color .6s; }
.appts__new.is-in { opacity: 1; transform: none; }
.no-js .appts__new, html:not(.js) .appts__new { opacity: 1; transform: none; }
.app__foot { display: flex; justify-content: space-between; align-items: baseline; padding: 1.1rem 1.3rem; font-size: .86rem; color: var(--on-night-2); }
.app__foot b { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; letter-spacing: -.03em; color: #ff8be9; }
.app__foot.bump b { animation: bump .8s var(--ease); }

.phone--big { width: 100%; max-width: 380px; justify-self: center; font-size: 15px; }
.phone--big .chat { height: 330px; overflow-y: auto; scroll-behavior: smooth; scrollbar-width: none; }
.phone--big .chat::-webkit-scrollbar { display: none; }
.phone--big .msg { animation: msgIn .45s var(--ease); }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.typing { align-self: flex-start; background: #fff; border-radius: .7em; padding: .7em .8em; display: flex; gap: .25em; }
.typing i { width: .4em; height: .4em; border-radius: 50%; background: #9a93ab; animation: dots 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 50% { transform: translateY(-3px); opacity: .5; } }
.chat__replies { display: flex; flex-wrap: wrap; gap: .4rem; padding: .7rem .8rem .9rem; min-height: 3.6rem; background: #ece5dd; border-top: 1px solid rgba(0,0,0,.06); }
.chat__replies button { flex: 1; min-height: 40px; padding: .45rem .7rem; border-radius: .7rem; background: #fff; color: var(--night-800); font-weight: 600; font-size: .88rem; transition: transform .2s, background-color .2s, color .2s; }
.chat__replies button:hover { background: var(--night-800); color: #fff; }
.chat__replies button.is-hint { box-shadow: 0 0 0 2px var(--cyan); }
.chat__replies .replay { flex: none; background: transparent; color: #5d5470; font-weight: 500; }

/* ═════════════════════════ LOOP ═════════════════════════ */
.loop__body { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 980px) { .loop__body { grid-template-columns: 1.3fr 1fr; gap: 5rem; } }
.ring { position: relative; width: min(560px, 100%); aspect-ratio: 1; margin-inline: auto; container-type: inline-size; }
.ring__svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: var(--line-ink-2); stroke-width: 1; stroke-dasharray: 2 5; }
.ring__run { fill: none; stroke: url(#g-ring); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: var(--run, 0) 100; transition: stroke-dasharray .9s var(--ease); }
.ring__nodes li { position: absolute; left: 50%; top: 50%; width: 0; height: 0; }
.ring__nodes button {
  position: absolute; translate: -50% -50%; white-space: nowrap;
  transform: rotate(calc(var(--a) * 360deg / 7)) translateY(-37.5cqw) rotate(calc(var(--a) * -360deg / 7));
  font-family: var(--f-mono); font-size: clamp(.64rem, 2.2cqw, .8rem); letter-spacing: .06em; text-transform: uppercase;
  padding: .45rem .7rem; border-radius: 99px; background: var(--paper); border: 1px solid var(--line-ink-2); color: var(--ink-3); transition: all .4s var(--ease);
}
.ring__nodes button:hover { color: var(--ink); border-color: var(--ink-3); }
.ring__nodes button.is-done { color: var(--ink-2); border-color: var(--lilac); }
.ring__nodes button.is-on { color: #fff; background: var(--ink); border-color: var(--ink); }
.ring__core { position: absolute; inset: 22%; display: grid; place-content: center; text-align: center; gap: .4rem; }
.ring__n { font-family: var(--f-mono); font-size: .78rem; color: var(--cyan-ink); }
.ring__stage { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.6rem, 6.5cqw, 2.6rem); letter-spacing: -.045em; line-height: 1; }
.ring__ex { font-size: clamp(.82rem, 2.9cqw, 1rem); color: var(--ink-2); max-width: 22ch; margin: .3rem auto 0; min-height: 3.2em; }
.ring__ex.swap-in, .ring__stage.swap-in { animation: fade .5s var(--ease); }
.ring__glyph { font-size: 1.1rem; color: var(--ink-3); }
.vars__h { font-family: var(--f-mono); font-size: .76rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 1rem; }
.vars ul { border-top: 1px solid var(--line-ink); }
.vars li { display: flex; align-items: center; justify-content: space-between; padding: .9rem 0; border-bottom: 1px solid var(--line-ink); font-family: var(--f-display); font-weight: 500; font-size: clamp(1.3rem, 1rem + 1vw, 1.9rem); letter-spacing: -.035em; color: #b2abc4; transition: color .4s, padding .5s var(--ease); }
.vars li::after { content: ''; width: 10px; height: 10px; border-radius: 50%; border: 1px solid var(--line-ink-2); transition: all .4s; }
.vars li.is-on { color: var(--ink); padding-left: .6rem; }
.vars li.is-on::after { background: radial-gradient(circle at 35% 35%, #c9f7ff, var(--cyan) 45%, var(--magenta)); border-color: transparent; }

/* ═════════════════════════ MÉTRICAS ═════════════════════════ */
.metrics { background: var(--night-950); }
.metrics__body { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1080px) { .metrics__body { grid-template-columns: .55fr 1.45fr; gap: 4rem; } }
.vanity { display: flex; flex-wrap: wrap; gap: .3rem 1.4rem; }
@media (min-width: 1080px) { .vanity { flex-direction: column; padding-top: 1rem; } }
.vanity li { position: relative; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.4rem, 1rem + 1.6vw, 2.4rem); letter-spacing: -.04em; color: var(--on-night-3); width: fit-content; }
.vanity li::after { content: ''; position: absolute; left: -.1em; right: -.1em; top: 55%; height: 2px; background: var(--magenta); transform-origin: left; transform: scaleX(0); transition: transform .7s var(--ease); }
.vanity.in li::after { transform: scaleX(1); }
.vanity li:nth-child(2)::after { transition-delay: .12s; } .vanity li:nth-child(3)::after { transition-delay: .24s; } .vanity li:nth-child(4)::after { transition-delay: .36s; } .vanity li:nth-child(5)::after { transition-delay: .48s; }
html:not(.js) .vanity li::after { transform: scaleX(1); }

.dash { border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--night-850); overflow: hidden; }
.dash__h { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.dash__h span { font-family: var(--f-mono); font-size: .72rem; color: var(--on-night-3); }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .kpis { grid-template-columns: repeat(4, 1fr); } .kpis .kpi--result { grid-column: span 2; } }
.kpis > div { padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.kpis dt { font-family: var(--f-mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .07em; color: var(--on-night-3); }
.kpis dd { font-family: var(--f-display); font-weight: 600; font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.2rem); letter-spacing: -.045em; margin-top: .2rem; font-variant-numeric: tabular-nums; }
.kpi--result dd { color: #ff8be9; font-size: clamp(2rem, 1.3rem + 2vw, 3.2rem); }
.kpi--key dt { color: var(--cyan); }
@media (max-width: 699px) { .kpis .kpi--result { grid-column: span 2; } }
.chart { position: relative; padding: 1.2rem 1.3rem 1rem; }
.chart__legend { display: flex; gap: 1.2rem; font-family: var(--f-mono); font-size: .7rem; color: var(--on-night-3); margin-bottom: .8rem; }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: .4rem; vertical-align: -1px; }
.lg--inv::before { background: rgba(43,223,255,.45); }
.lg--rev::before { background: var(--magenta); height: 3px; vertical-align: 2px; }
.chart svg { width: 100%; height: clamp(150px, 22vw, 220px); overflow: visible; }
.chart__x { display: flex; justify-content: space-around; font-family: var(--f-mono); font-size: .66rem; color: var(--on-night-3); margin-top: .5rem; }
.chart .bar { fill: rgba(43,223,255,.3); transform-origin: bottom; transform-box: fill-box; transform: scaleY(0); transition: transform 1s var(--ease); }
.chart .rev { fill: none; stroke: var(--magenta); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2s var(--ease-io) .4s; }
.chart .area { fill: url(#g-area); opacity: 0; transition: opacity 1s 1.4s; }
.chart .dot { fill: var(--magenta); opacity: 0; transition: opacity .4s 2.2s; }
.chart .grid { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart.in .bar { transform: none; }
.chart.in .rev { stroke-dashoffset: 0; }
.chart.in .area { opacity: .25; }
.chart.in .dot { opacity: 1; }

/* ═════════════════════════ TRANSPARENCIA ═════════════════════════ */
.trust__body { display: grid; gap: 3rem; align-items: start; }
@media (min-width: 1000px) { .trust__body { grid-template-columns: 1fr 1fr; gap: 5rem; } }
.tenets { display: grid; border-top: 1px solid var(--line-ink); }
@media (min-width: 640px) { .tenets { grid-template-columns: 1fr 1fr; } .tenets li:nth-child(odd) { border-right: 1px solid var(--line-ink); padding-right: 1.5rem; } .tenets li:nth-child(even) { padding-left: 1.5rem; } }
.tenets li { padding: 1.4rem 0 1.6rem; border-bottom: 1px solid var(--line-ink); color: var(--ink-2); font-size: .95rem; }
.tenets span { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--cyan-ink); margin-bottom: 1.2rem; }
.tenets b { display: block; font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.03em; line-height: 1.15; color: var(--ink); margin-bottom: .4rem; }
.log { background: var(--white); border: 1px solid var(--line-ink); border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(20,10,43,.35); }
.log__h { display: flex; justify-content: space-between; gap: 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-ink); font-size: .92rem; }
.log__h span { font-family: var(--f-mono); font-size: .72rem; color: var(--ink-3); }
.log li { display: grid; grid-template-columns: 4.2rem 1fr; gap: .15rem 1rem; padding: 1rem 1.3rem; border-bottom: 1px solid var(--line-ink); }
.log li:last-child { border-bottom: 0; }
.log time { grid-row: span 2; font-family: var(--f-mono); font-size: .76rem; color: var(--ink-3); padding-top: .15rem; }
.log__what { font-weight: 600; color: var(--ink); }
.log__why { font-size: .88rem; color: var(--ink-2); }
.log__why::before { content: 'Motivo · '; font-family: var(--f-mono); font-size: .72rem; color: var(--cyan-ink); }

/* ═════════════════════════ OFERTA ═════════════════════════ */
.offer { border-top: 1px solid var(--line); }
.offer__in { display: grid; justify-items: center; text-align: center; }
.offer__name { font-family: var(--f-display); font-weight: 500; font-size: var(--fs-h3); letter-spacing: -.03em; margin-top: 1.6rem; color: var(--on-night-2); }
.offer__price { display: flex; align-items: flex-start; font-family: var(--f-display); font-weight: 600; font-size: clamp(4.5rem, 1.5rem + 13vw, 12rem); line-height: .9; letter-spacing: -.065em; margin: 1.4rem 0 3.5rem; font-variant-numeric: tabular-nums; }
.offer__cur { font-size: .38em; margin-top: .14em; margin-right: .06em; color: var(--on-night-2); letter-spacing: 0; }
.offer__unit { font-family: var(--f-mono); font-size: max(.75rem, .09em); font-weight: 400; letter-spacing: .04em; line-height: 1.4; text-align: left; color: var(--on-night-2); margin: .5em 0 0 .9em; }
.sum { display: grid; width: 100%; max-width: 1080px; margin-bottom: 3.5rem; text-align: left; border-top: 1px solid var(--line-2); }
.sum__item { padding: 1.4rem 0; display: grid; gap: .25rem; }
.sum__item small { font-family: var(--f-mono); font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: var(--on-night-3); }
.sum__item b { font-family: var(--f-display); font-weight: 600; font-size: 1.3rem; letter-spacing: -.03em; }
.sum__item span { font-size: .92rem; color: var(--on-night-2); }
.sum__item--var b { color: #ff8be9; }
.sum__op { font-style: normal; font-family: var(--f-display); font-size: 1.6rem; color: var(--on-night-3); display: grid; place-items: center; }
@media (min-width: 860px) {
  .sum { grid-template-columns: 1fr auto 1fr auto 1fr; gap: 1.6rem; }
  .sum__item { padding-top: 1.6rem; }
}
@media (max-width: 859px) { .sum__op { justify-content: start; line-height: 1; border-top: 1px solid var(--line); padding-top: 1rem; } .sum__item { padding-top: .4rem; } }

/* ═════════════════════════ CIERRE ═════════════════════════ */
.final { overflow: hidden; background: var(--night-950); padding-bottom: clamp(6rem, 12vw, 10rem); }
.final__iso { position: absolute; width: min(760px, 120vw); height: min(760px, 120vw); right: -14%; top: 50%; translate: 0 -50%; opacity: .12; pointer-events: none; }
.final__in { position: relative; }
.final__in { display: grid; gap: clamp(3rem, 6vw, 5rem); align-items: center; }
@media (min-width: 1000px) { .final__in { grid-template-columns: 1fr 1fr; } }
.final .call { grid-template-columns: 1fr !important; margin: 2.4rem 0; }
.final .call li { border-left: 0 !important; padding-left: 0 !important; display: grid; grid-template-columns: 2.4rem 1fr; }
.final .call span { margin: .2rem 0 0; }
.final__photo { position: relative; margin: 0; }
.final__photo img { width: 100%; height: auto; aspect-ratio: 3 / 2.2; object-fit: cover; border-radius: 22px; background: var(--night-800); }
.fl--photo { left: -1.5rem; bottom: -1.5rem; }
.fl--photo b { font-family: var(--f-display); font-size: 1.6rem; letter-spacing: -.03em; }
@media (max-width: 999px) { .fl--photo { left: .8rem; bottom: .8rem; } }
.final__title { font-family: var(--f-display); font-weight: 600; font-size: clamp(2.2rem, 1.2rem + 3vw, 3.8rem); line-height: 1.02; letter-spacing: -.05em; max-width: 16ch; text-wrap: balance; }
.call { display: grid; gap: 0; margin: 3rem 0; max-width: 980px; border-top: 1px solid var(--line-2); }
@media (min-width: 860px) { .call { grid-template-columns: repeat(3, 1fr); } .call li + li { border-left: 1px solid var(--line); padding-left: 1.4rem; } }
.call li { padding: 1.2rem 1.4rem 1.2rem 0; color: var(--on-night-2); border-bottom: 1px solid var(--line); }
.call span { display: block; font-family: var(--f-mono); font-size: .72rem; color: var(--cyan); margin-bottom: .7rem; }
.final__meta { margin-top: 1rem; font-family: var(--f-mono); font-size: .74rem; color: var(--on-night-3); }
.final__meta:empty { display: none; }

/* ═════════════════════════ PIE ═════════════════════════ */
.foot { border-top: 1px solid var(--line); padding: 3rem 0 calc(3rem + env(safe-area-inset-bottom)); background: var(--night-950); }
.foot__in { display: grid; gap: 1.6rem; }
@media (min-width: 900px) { .foot__in { grid-template-columns: auto 1fr; } .foot__links { justify-self: end; } }
.foot__links { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; font-size: .9rem; color: var(--on-night-2); }
.foot__links a:hover { color: var(--on-night); }
.foot__note, .foot__copy { font-family: var(--f-mono); font-size: .72rem; color: var(--on-night-3); }
@media (min-width: 900px) { .foot__copy { justify-self: end; } }

/* Barra fija en móvil */
.dock { position: fixed; z-index: 40; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); display: none; align-items: center; justify-content: space-between; gap: .8rem; padding: .5rem .5rem .5rem 1rem; border-radius: 14px; background: rgba(18,8,38,.96); border: 1px solid var(--line-2); box-shadow: 0 20px 40px -10px rgba(0,0,0,.6); font-family: var(--f-mono); font-size: .72rem; color: var(--on-night-2); transform: translateY(140%); transition: transform .5s var(--ease); }
.dock.is-on { transform: none; }
@media (max-width: 760px) { .dock { display: flex; } .foot { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); } }

/* ═════════════════════════ Movimiento reducido ═════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .stack__beam::after, .creative__time span, .hero__scroll span { display: none; }
}
