/* Supernovo · estilos compartidos por el home y las páginas de módulo */
/* ── Tokens (src/app/globals.css · .theme-supernovo, modo claro) ───────────────── */
:root {
  --bg: #ffffff;
  --bg-soft: #faf9f4;
  --bg-raised: #f4f2eb;
  --bg-hover: #f0eee6;
  --panel: #ffffff;
  --text: #14140f;
  --muted: #6e6e62;
  --faint: #9c9686;
  --accent: #0a7d57;
  --accent-hover: #086949;
  --good: #0ea371;
  --lime: #84cc16;
  --warn: #c57a22;
  --hot: #c85046;
  --border: #e9e5db;
  --border-strong: #dbd5c8;
  --radius: 12px;
  --radius-card: 16px;
  --font: "Helvetica Neue", system-ui, -apple-system, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --gutter: clamp(16px, 4vw, 40px);
  --section-y: clamp(96px, 12vw, 160px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg.i { width: 1em; height: 1em; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); }
section { padding: var(--section-y) 0; }
.soft { background: var(--bg-soft); }
.hair { border-top: 1px solid var(--border); }

/* ── Tipografía ───────────────────────────────────────────────────────────────── */
.pre { font-size: 18px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
h1 { font-size: clamp(44px, 7.4vw, 88px); font-weight: 600; line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(36px, 4.8vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.03em; }
h3 { font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: -0.02em; }
.lead { color: var(--muted); max-width: 30ch; }
.lead-wide { color: var(--muted); max-width: 40ch; }
.muted { color: var(--muted); }
.big-num { font-size: clamp(56px, 8vw, 96px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.stack-s > * + * { margin-top: 16px; }
.stack-m > * + * { margin-top: 28px; }
.stack-l > * + * { margin-top: 48px; }

/* ── Botones ──────────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 56px; padding: 0 28px; border-radius: 999px;
  font: 500 19px/1 var(--font); text-decoration: none; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border: 1px solid var(--border-strong); color: var(--text); background: var(--panel); }
.btn-ghost:hover { background: var(--bg-hover); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 16px; }
.btn-light { background: #fff; color: var(--text); }
.btn-light:hover { background: #e9e7e0; }

/* ── Nav ──────────────────────────────────────────────────────────────────────── */
/* Flotante sobre el contenido; sobre una sección oscura (.dark / .foot) toma su color (.on-dark, ver script) */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 20;
  width: calc(100% - 2 * var(--gutter)); max-width: calc(1200px - 80px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 8px 24px;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgb(255 255 255 / .9); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  box-shadow: 0 1px 2px rgb(20 20 15 / .04), 0 8px 24px rgb(20 20 15 / .06);
  transition: background-color .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.wordmark { display: inline-flex; align-items: center; flex-shrink: 0; }
.wordmark img { height: 20px; width: auto; display: block; }
.wordmark .logo-white { display: none; }
.nav-links { display: flex; align-items: center; gap: 28px; font-size: 16px; color: var(--muted); }
.nav-links a { text-decoration: none; white-space: nowrap; transition: color .25s ease; }
.nav-links a:not(.btn):hover { color: var(--text); }
.nav.on-dark { background: var(--nav-bg, #000); border-color: rgb(255 255 255 / .1); box-shadow: none; }
.nav.on-dark .nav-links { color: #b0b6bf; }
.nav.on-dark .nav-links a:not(.btn):hover { color: #fff; }
.nav.on-dark .logo-black { display: none; }
.nav.on-dark .logo-white { display: block; }
/* Menú Módulos: se abre con hover/foco (desktop) o con clic/toque (.open, ver script) */
.mod { position: relative; }
.mod-btn { display: inline-flex; align-items: center; gap: 6px; padding: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; white-space: nowrap; transition: color .25s ease; }
.mod-btn svg { font-size: 14px; transition: transform .2s ease; }
.mod-btn:hover { color: var(--text); }
.mod-panel {
  position: absolute; top: calc(100% + 18px); left: 50%; transform: translate(-50%, -4px); width: 480px;
  padding: 8px; border-radius: 20px; border: 1px solid var(--border); background: #fff;
  box-shadow: 0 12px 40px rgb(20 20 15 / .12); opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.mod-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 20px; } /* puente para el hover */
.mod:hover .mod-panel, .mod:focus-within .mod-panel, .mod.open .mod-panel { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mod:hover .mod-btn svg, .mod.open .mod-btn svg { transform: rotate(180deg); }
.mod.suppress .mod-panel { opacity: 0; visibility: hidden; } /* recién elegido: no reabrir por hover hasta salir */
.nav-links .mod-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px; border-radius: 14px; text-decoration: none; color: var(--text); white-space: normal; }
.mod-item:hover, .mod-item:focus-visible { background: var(--bg-soft); }
.mod-ic { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px; background: rgb(14 163 113 / .08); color: var(--accent); font-size: 20px; }
.mod-item b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.mod-item small { display: block; margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.nav.on-dark .mod-btn:hover { color: #fff; }
.nav.on-dark .mod-panel { background: #101113; border-color: #23252a; box-shadow: 0 12px 40px rgb(0 0 0 / .5); }
.nav.on-dark .mod-item { color: #f7f8f8; }
.nav.on-dark .mod-item:hover, .nav.on-dark .mod-item:focus-visible { background: #18191b; }
.nav.on-dark .mod-item small { color: #b0b6bf; }
.nav.on-dark .mod-ic { background: rgb(16 185 129 / .12); color: #10b981; }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }
@media (max-width: 600px) { .nav { top: 12px; padding: 8px 8px 8px 20px; } }

/* ── Hero ─────────────────────────────────────────────────────────────────────── */
.hero { padding: calc(88px + clamp(16px, 2vw, 32px)) 0 clamp(32px, 4vw, 56px); min-height: 100svh; display: flex; align-items: center; background: var(--bg); }
.arc-bg { position: relative; overflow: hidden; }
.arc-bg > .arc { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; }
.arc-bg > .wrap { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(40px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(38px, 4.8vw, 64px); }
.hero .lead { max-width: 30ch; font-size: 20px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 12px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr); } }

/* ── UI recreada (recortes del producto) ──────────────────────────────────────── */
.ui {
  font-size: 15px; line-height: 1.4; color: var(--text);
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius-card);
  box-shadow: 0 1px 1px rgb(20 20 15 / .03), 0 24px 48px -32px rgb(20 20 15 / .18);
  overflow: hidden; min-width: 0;
}
.ui-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-bottom: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.ui-top b { color: var(--text); font-weight: 500; }
.ui-body { padding: 18px; }
.ui-title { font-size: 14px; font-weight: 600; }
.ui-meta { font-size: 13px; color: var(--muted); }
.ui-faint { font-size: 12px; color: var(--faint); }
.ui-rows > * + * { border-top: 1px solid var(--border); }
.ui-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; min-width: 0; }
.ui-row .grow { flex: 1; min-width: 0; }
.ui-row .name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-row .sub { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ui-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--border); font-size: 13px; color: var(--muted); background: var(--panel); white-space: nowrap; }
.ui-pill.on { border-color: var(--text); color: var(--text); background: var(--bg-raised); }
.ui-pill.green { color: var(--accent); border-color: rgb(14 163 113 / .35); background: rgb(14 163 113 / .07); }
.ui-pill.warn { color: #9a5d17; border-color: rgb(197 122 34 / .35); background: rgb(197 122 34 / .07); }
.ui-pill.hot { color: #a8392f; border-color: rgb(200 80 70 / .35); background: rgb(200 80 70 / .07); }
.ui-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; background: var(--faint); }
.ui-dot.good { background: var(--good); } .ui-dot.warn { background: var(--warn); } .ui-dot.hot { background: var(--hot); }
.ui-score { font-size: 22px; font-weight: 600; letter-spacing: -0.03em; color: var(--good); font-variant-numeric: tabular-nums; }
.ui-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; font-size: 14px; font-weight: 500; border: 1px solid var(--border-strong); background: var(--panel); white-space: nowrap; }
.ui-btn.solid { background: var(--accent); border-color: var(--accent); color: #fff; }
.ui-field { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px 18px; }
.ui-field > span:first-child { font-size: 14px; color: var(--muted); padding-top: 4px; }
.ui-input { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 12px; border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 15px; }
.ui-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ui-tabs { display: flex; gap: 4px; padding: 4px; background: var(--bg-raised); border-radius: 999px; width: max-content; max-width: 100%; }
.ui-tabs > * { padding: 5px 12px; border: 0; border-radius: 999px; background: none; font: inherit; font-size: 13px; color: var(--muted); }
.ui-tabs > .on { background: var(--panel); color: var(--text); box-shadow: 0 0 0 1px var(--border); }
.ui-num { font-variant-numeric: tabular-nums; }

/* stepper del wizard */
.ui-stepper { display: flex; gap: 6px; padding: 14px 18px; border-bottom: 1px solid var(--border); overflow: hidden; }
.ui-stepper span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--faint); white-space: nowrap; }
.ui-stepper span i { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border-strong); font-style: normal; font-size: 11px; }
.ui-stepper span.done { color: var(--muted); }
.ui-stepper span.done i { background: var(--bg-raised); }
.ui-stepper span.on { color: var(--text); font-weight: 500; }
.ui-stepper span.on i { background: var(--text); border-color: var(--text); color: #fff; }
.ui-stepper .sep { width: 14px; height: 1px; background: var(--border-strong); align-self: center; }

/* embudo */
.ui-funnel { display: grid; gap: 7px; }
.ui-funnel .f { display: grid; grid-template-columns: 84px minmax(0, 1fr) 48px; align-items: center; gap: 12px; font-size: 14px; }
.ui-funnel .f > span:first-child { color: var(--muted); }
.ui-funnel .bar { height: 10px; border-radius: 999px; background: var(--bg-raised); overflow: hidden; }
.ui-funnel .bar b { display: block; height: 100%; border-radius: 999px; background: var(--good); opacity: .85; }
.ui-funnel .bar.res b { background: var(--text); opacity: .75; }
.ui-funnel .n { text-align: right; font-variant-numeric: tabular-nums; font-weight: 500; }
.ui-funnel .bar.hot b { background: var(--hot); } .ui-funnel .bar.warn b { background: var(--warn); }
/* Planificación: alerta de la IA */
.ui-alert { border: 1px solid rgb(200 80 70 / .3); background: rgb(200 80 70 / .05); border-radius: 12px; padding: 14px 16px; }
.ui-alert .ui-title { display: flex; align-items: center; gap: 8px; }
.ui-action { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 10px 0; border-top: 1px solid var(--border); }
.ui-action:first-child { border-top: 0; }
.ui-action svg { color: var(--good); margin-top: 3px; }
.ui-cut { display: flex; align-items: center; gap: 10px; margin: 14px 0 12px; font-size: 12px; color: var(--faint); }
.ui-cut::before, .ui-cut::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* resultado de la oferta */
.ui-kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 6px 0; }
.ui-kv span:first-child { color: var(--muted); }
.ui-kv span:last-child { font-variant-numeric: tabular-nums; }
.ui-margin { position: relative; height: 10px; border-radius: 999px; background: var(--bg-raised); margin: 12px 0 6px; }
.ui-margin b { position: absolute; inset: 0 auto 0 0; width: 64%; border-radius: 999px; background: var(--good); }
.ui-margin i { position: absolute; top: -4px; bottom: -4px; left: 50%; width: 2px; background: var(--text); opacity: .5; }
.ui-msg { font-size: 15px; line-height: 1.5; padding: 14px; border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--panel); }

/* ── Puente: dos caminos ──────────────────────────────────────────────────────── */
.bridge-head { text-align: center; max-width: 820px; margin: 0 auto; }
.bridge-head .lead-wide { margin: 20px auto 0; }
.paths { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(0, .72fr); align-items: stretch; margin-top: 72px; }
.paths .result { align-self: center; }
.bridge-note { margin-top: 40px; text-align: center; font-size: 19px; color: var(--muted); }
.bridge-note a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.bridge-note a:hover { color: var(--accent); }
.path-list { display: grid; gap: 20px; }
.path {
  display: block; text-decoration: none; padding: 32px; border-radius: 20px;
  border: 1px solid var(--border); background: var(--panel); transition: border-color .15s ease;
}
.path:hover { border-color: rgb(14 163 113 / .45); }
.path .tag { font-size: 15px; font-weight: 500; color: var(--accent); }
.path h3 { margin-top: 10px; }
.path p { margin-top: 10px; color: var(--muted); font-size: 20px; }
.path .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 18px; font-size: 16px; font-weight: 500; }
.connector { width: 100%; height: 100%; min-height: 300px; }
.connector path { fill: none; stroke: var(--faint); stroke-width: 1.5; stroke-dasharray: 5 6; }
.connector circle { fill: var(--good); }
.result {
  padding: 40px 32px; border-radius: 24px; text-align: center;
  background: var(--text); color: #fff;
}
.result .pre { color: rgb(255 255 255 / .6); }
.result .big-num { margin-top: 12px; font-size: clamp(44px, 5vw, 64px); }
.result p.formula { margin-top: 18px; font-size: 17px; color: rgb(255 255 255 / .7); }
.result p.formula b { color: #fff; font-weight: 500; }
.result .btn { margin-top: 24px; }
@media (max-width: 900px) {
  .paths { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .connector { display: none; }
  .paths .down { display: flex; justify-content: center; padding: 20px 0; color: var(--faint); font-size: 28px; }
}
@media (min-width: 901px) { .paths .down { display: none; } }

/* ── Portada de motor ─────────────────────────────────────────────────────────── */
.motor { position: relative; }
.motor-cover { padding-top: var(--section-y); padding-bottom: clamp(56px, 7vw, 96px); }
.motor-cover .num { font-size: clamp(96px, 16vw, 200px); font-weight: 600; line-height: .85; letter-spacing: -0.06em; color: var(--border-strong); }
.motor-cover .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; color: var(--accent); }
.motor-cover .tag .ui-dot { width: 10px; height: 10px; }
.motor-cover h2 { max-width: 14ch; font-size: clamp(40px, 6vw, 72px); }
.motor-cover-grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: end; }
@media (max-width: 700px) { .motor-cover-grid { grid-template-columns: minmax(0, 1fr); } }
.motor-sub { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(56px, 7vw, 96px); }
/* Motor 2 en oscuro: los tokens dark de globals.css (.theme-supernovo.dark). .plan-dark: la tarjeta «A medida» del precio, sin oscurecer la barra */
.dark, .plan-dark {
  --bg: #08090b; --bg-soft: #0d0e10; --bg-raised: #18191b; --bg-hover: #18191b; --panel: #101113;
  --text: #f7f8f8; --muted: #b0b6bf; --faint: #8a8f98;
  --accent: #10b981; --accent-hover: #0c9568; --good: #10b981;
  --warn: rgb(224 162 60); --hot: rgb(232 139 136);
  --border: #23252a; --border-strong: #34343a;
  background: var(--bg); color: var(--text); color-scheme: dark;
}
.dark .ui { --panel: #141518; box-shadow: none; }
.dark .ui-pill.warn { color: var(--warn); border-color: rgb(224 162 60 / .35); background: rgb(224 162 60 / .08); }
.dark .ui-pill.hot { color: var(--hot); border-color: rgb(232 139 136 / .35); background: rgb(232 139 136 / .08); }
.dark .ui-btn.solid { background: #0c9568; border-color: #0c9568; }
.dark .ui-funnel .bar.res b { opacity: .6; }
.kicker { font-size: 15px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

/* ── Antes / después ──────────────────────────────────────────────────────────── */
.ba { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr); margin-top: 40px; border: 1px solid var(--border); border-radius: 24px; overflow: hidden; background: var(--panel); }
.ba-head { padding: 22px 32px; font-size: 16px; font-weight: 500; border-bottom: 1px solid var(--border); }
.ba-head.before { color: var(--faint); }
.ba-head.after { color: var(--accent); }
.ba-cell { display: flex; align-items: flex-start; gap: 14px; padding: 28px 32px; border-bottom: 1px solid var(--border); }
.ba-cell svg { margin-top: .22em; }
.ba-cell.before { color: var(--faint); }
.ba-cell.before svg { color: var(--hot); }
.ba-cell.after { color: var(--text); font-weight: 500; }
.ba-cell.after svg { color: var(--good); stroke-width: 2.2; }
.ba-mid { display: grid; place-items: center; border-bottom: 1px solid var(--border); color: var(--border-strong); font-size: 22px; }
.ba > :nth-last-child(-n + 3) { border-bottom: 0; }
@media (max-width: 760px) {
  .ba { grid-template-columns: minmax(0, 1fr); }
  .ba-head, .ba-mid { display: none; }
  .ba-cell { padding: 20px; }
  .ba-cell.before { border-bottom: 0; padding-bottom: 6px; font-size: 18px; }
  .ba-cell.after { padding-top: 6px; }
  .ba > :nth-last-child(-n + 3) { border-bottom: 1px solid var(--border); }
  .ba > .ba-cell.before { border-bottom: 0; }
  .ba > :last-child { border-bottom: 0; }
}

/* ── Beneficios ───────────────────────────────────────────────────────────────── */
.benefits { margin-top: 40px; border-top: 1px solid var(--border); }
.benefit { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 4vw, 64px); align-items: baseline; padding: 40px 0; border-bottom: 1px solid var(--border); }
.benefit .big-num.grad { background: linear-gradient(90deg, var(--good), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.benefit h3 { margin-bottom: 8px; }
@media (max-width: 760px) { .benefit { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 32px 0; } }

/* ── Cómo funciona ────────────────────────────────────────────────────────────── */
.steps { margin-top: 56px; display: grid; gap: clamp(72px, 9vw, 120px); }
.step { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.step:nth-child(even) .step-text { order: 2; }
.step-n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.step-sub { font-size: 19px; font-weight: 500; color: var(--accent); }
@media (max-width: 900px) {
  .step { grid-template-columns: minmax(0, 1fr); }
  .step:nth-child(even) .step-text { order: 0; }
}

/* ── Asistente ───────────────────────────────────────────────────────────────── */
.chat { display: grid; gap: 14px; padding: 20px 18px; }
.chat .q { justify-self: end; max-width: 80%; padding: 10px 14px; border-radius: 16px 16px 4px 16px; background: var(--bg-raised); font-size: 15px; }
.chat .q.next { color: var(--faint); }
.chat .a { max-width: 92%; display: grid; gap: 10px; font-size: 15px; }
.chat .a .who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--faint); }
.chat .a .who .ui-dot { width: 6px; height: 6px; background: var(--good); }
.chat .mini { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.chat .mini .ui-row { padding: 9px 12px; font-size: 14px; }
.chat-input { display: flex; align-items: center; gap: 10px; margin: 0 18px 18px; padding: 0 8px 0 14px; height: 44px; border: 1px solid var(--border-strong); border-radius: 999px; font-size: 15px; color: var(--faint); }
.chat-input .grow { flex: 1; }
.chat-input .send { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 15px; }

/* ── Cómo trabajamos ──────────────────────────────────────────────────────────── */
.how3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 64px; align-items: stretch; }
.how-col { display: flex; flex-direction: column; gap: 24px; }
.how-col .art { flex: 1; min-height: 260px; border-radius: 20px; border: 1px solid var(--border); background: var(--panel); padding: 24px; position: relative; overflow: hidden; }
.how-col h3 { font-size: clamp(24px, 2.2vw, 28px); }
.how-col p { color: var(--muted); font-size: 20px; margin-top: 8px; }
.how-arrow { display: none; }
/* 1 · lo que está en la cabeza del equipo */
.notes { position: relative; height: 100%; min-height: 236px; }
.note { position: absolute; max-width: 78%; font-size: 14px; line-height: 1.35; padding: 10px 12px; border-radius: 12px; background: var(--bg-soft); border: 1px solid var(--border); color: var(--text); }
.note small { display: block; font-size: 12px; color: var(--faint); margin-bottom: 2px; }
.note:nth-child(1) { top: 0; left: 0; rotate: -2deg; }
.note:nth-child(2) { top: 82px; right: 0; rotate: 2.5deg; }
.note:nth-child(3) { top: 162px; left: 6%; rotate: -1deg; }
/* 2 · manual operativo */
.doc { font-size: 14px; }
.doc .doc-h { position: relative; font-size: 15px; font-weight: 600; padding-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.doc .doc-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--border); transform-origin: left; }
.doc ol { margin-top: 12px; display: grid; gap: 10px; counter-reset: d; }
.doc li { counter-increment: d; display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 6px; }
.doc li::before { content: counter(d) "."; color: var(--faint); font-variant-numeric: tabular-nums; }
.doc li b { font-weight: 500; display: block; }
.doc li span { color: var(--muted); font-size: 13px; }
/* 3 · plataforma configurada */
.cfg { margin: -24px; }
.cfg .ui-row { padding: 12px 18px; font-size: 14px; }
.cfg .ui-row > span:first-child { color: var(--muted); flex: 1; }
@media (max-width: 900px) { .how3 { grid-template-columns: minmax(0, 1fr); } }

/* ── Lo hacemos nosotros ──────────────────────────────────────────────────────── */
.dfy { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.dfy-list { border-top: 1px solid var(--border); }
.dfy-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.dfy-list li .who { font-size: 16px; font-weight: 500; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.dfy-list li .who.us { background: var(--text); color: #fff; }
.dfy-list li .who.you { border: 1px solid var(--border-strong); color: var(--muted); }
@media (max-width: 900px) { .dfy { grid-template-columns: minmax(0, 1fr); } }

/* ── Secuencia ────────────────────────────────────────────────────────────────── */
.seq { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 56px; position: relative; }
.seq::before { content: ""; position: absolute; top: 22px; left: 22px; right: 12%; height: 1px; background: var(--border-strong); }
.seq li { position: relative; padding-right: 24px; }
.seq .step-n { background: var(--panel); position: relative; }
.seq li:last-child .step-n { background: var(--text); color: #fff; border-color: var(--text); }
.seq h3 { margin-top: 24px; font-size: clamp(22px, 2vw, 26px); }
.seq p { margin-top: 8px; color: var(--muted); font-size: 19px; }
@media (max-width: 900px) {
  .seq { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .seq::before { top: 22px; bottom: 22px; left: 22px; right: auto; width: 1px; height: auto; }
  .seq li { display: grid; grid-template-columns: 44px minmax(0, 1fr); column-gap: 20px; }
  .seq li > :not(.step-n) { grid-column: 2; }
  .seq h3 { margin-top: 6px; }
}

/* ── Calculadora de retorno (oscuro) ──────────────────────────────────────────── */
/* Series del gráfico: paleta validada contra el panel oscuro (#101113) para daltonismo y contraste */
.calc-sec {
  --s1: #199e70; --s2: #3987e5; --s3: #d55181;
  position: relative; overflow: clip; /* clip y no hidden: hidden rompe los sticky de adentro */
  background:
    radial-gradient(60% 40% at 78% 8%, rgb(16 185 129 / .10), transparent 70%),
    radial-gradient(40% 30% at 8% 90%, rgb(57 135 229 / .06), transparent 70%),
    var(--bg);
}
.calc-head { max-width: 760px; }
.calc-head h2 { margin-top: 12px; }
.calc-head .lead-wide { margin-top: 20px; }
.calc { display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr); gap: 20px; margin-top: 56px; align-items: start; }
.calc-in, .calc-out { display: grid; gap: 20px; min-width: 0; }
@media (min-width: 961px) and (min-height: 940px) { .calc-out { position: sticky; top: 96px; } }
@media (max-width: 960px) { .calc { grid-template-columns: minmax(0, 1fr); } }
.calc-card { border: 1px solid var(--border); border-radius: 24px; background: var(--panel); padding: clamp(20px, 2.4vw, 28px); min-width: 0; }
.calc-card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.calc-card-h h3 { font-size: 22px; }
.calc-card-h .h-sm { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.calc-lbl { font-size: 15px; font-weight: 500; color: var(--muted); }
.calc-lbl .faint { color: var(--faint); font-weight: 400; }

/* selector segmentado (moneda, escenario) */
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--bg-raised); border: 1px solid var(--border); }
.seg button { font: 500 14px/1 var(--font); color: var(--muted); background: none; border: 0; padding: 9px 14px; border-radius: 999px; cursor: pointer; transition: background-color .15s ease, color .15s ease; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button[aria-checked="true"] { background: var(--text); color: var(--bg); }
.seg button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.seg-wide { display: flex; margin-top: 18px; }
.seg-wide button { flex: 1; padding: 11px 8px; }
.seg-note { margin-top: 10px; font-size: 13px; color: var(--faint); min-height: 1.4em; }

/* controles: etiqueta + valor editable + slider */
.cc-list { display: grid; gap: 22px; margin-top: 20px; }
.cc-group { display: flex; align-items: center; gap: 8px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 14px; font-weight: 600; color: var(--text); }
.cc-group + .cc-list { margin-top: 16px; }
.cc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cc-top label { font-size: 15px; color: var(--text); line-height: 1.3; display: inline-flex; align-items: center; gap: 8px; }
.cc-val { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border-strong); background: var(--bg-raised); font-size: 15px; font-variant-numeric: tabular-nums; transition: border-color .15s ease; }
.cc-val:focus-within { border-color: var(--accent); }
.cc-val span { color: var(--muted); }
.cc-val input { width: 7ch; border: 0; outline: 0; background: none; color: var(--text); font: 600 15px/1 var(--font); font-variant-numeric: tabular-nums; text-align: right; padding: 0; }
.cc-hint { margin-top: 8px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.cc-hint b { color: var(--muted); font-weight: 500; }
.cc-hint:empty { display: none; }
.cc-fx { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--bg-soft); border: 1px dashed var(--border-strong); font-size: 14px; color: var(--muted); }
.cc-fx[hidden] { display: none; }
.sw { width: 10px; height: 10px; border-radius: 3px; flex-shrink: 0; background: var(--sw, var(--faint)); }
.sw.s1 { --sw: var(--s1); } .sw.s2 { --sw: var(--s2); } .sw.s3 { --sw: var(--s3); }

.calc input[type=range] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 6px 0 0; background: none; cursor: pointer; --p: 50%; --fill: var(--accent); }
.calc input[type=range]:focus { outline: none; }
.calc input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--fill) var(--p), var(--border-strong) var(--p)); }
.calc input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--fill) var(--p), var(--border-strong) var(--p)); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgb(255 255 255 / .08), 0 2px 8px rgb(0 0 0 / .5); transition: box-shadow .15s ease, transform .15s ease; }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 0; box-shadow: 0 0 0 4px rgb(255 255 255 / .08), 0 2px 8px rgb(0 0 0 / .5); }
.calc input[type=range]:hover::-webkit-slider-thumb { transform: scale(1.08); }
.calc input[type=range]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 6px rgb(16 185 129 / .35); }
.calc input[type=range]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 6px rgb(16 185 129 / .35); }

/* resultado principal */
.calc-hero { position: relative; overflow: hidden; }
.calc-hero::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; aspect-ratio: 1; background: radial-gradient(circle, rgb(16 185 129 / .16), transparent 65%); pointer-events: none; }
.calc-hero > * { position: relative; }
.calc-big { margin-top: 8px; font-size: clamp(52px, 6.6vw, 88px); font-weight: 600; line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; white-space: nowrap;
  background: linear-gradient(90deg, var(--good), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .08em; }
.calc-big.neg { background: none; color: var(--hot); }
.calc-stats { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 16px 20px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--border); }
.calc-stats .calc-lbl { font-size: 13px; }
.calc-stats .n { margin-top: 6px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-stats .n small { font-size: .55em; font-weight: 500; color: var(--faint); letter-spacing: 0; }
.calc-stats .n.good { color: var(--good); }
@media (max-width: 560px) { .calc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.calc-note { margin-top: 16px; font-size: 14px; color: var(--faint); }
.calc-mix { display: flex; gap: 2px; height: 10px; margin-top: 20px; border-radius: 999px; overflow: hidden; background: var(--bg-raised); }
.calc-mix i { display: block; height: 100%; transition: flex-grow .45s cubic-bezier(.2, .7, .2, 1); min-width: 0; }
.calc-mix i:nth-child(1) { background: var(--s1); } .calc-mix i:nth-child(2) { background: var(--s2); } .calc-mix i:nth-child(3) { background: var(--s3); }
.calc-legend { display: grid; gap: 2px; margin-top: 14px; }
.calc-legend li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto 48px; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; }
.calc-legend li + li { border-top: 1px solid var(--border); }
.calc-legend .v { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-legend .pc { text-align: right; color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* gráfico */
.calc-keys { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.calc-keys span { display: inline-flex; align-items: center; gap: 6px; }
.calc-keys .dash { width: 16px; height: 0; border-top: 2px dashed var(--muted); }
.calc-chart { position: relative; margin-top: 16px; height: 260px; touch-action: pan-y; }
.calc-chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.calc-chart .grid { stroke: var(--border); stroke-width: 1; }
.calc-chart .ax { fill: var(--faint); font: 12px var(--font); font-variant-numeric: tabular-nums; }
.calc-chart .cost { stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; fill: none; }
.calc-chart .cost-l { fill: var(--muted); font: 500 12px var(--font); paint-order: stroke; stroke: var(--panel); stroke-width: 4px; stroke-linejoin: round; }
.calc-chart .col { transition: opacity .15s ease; }
.calc-chart.hovering .col { opacity: .35; }
.calc-chart.hovering .col.on { opacity: 1; }
.calc-tip { position: absolute; top: 0; left: 0; z-index: 2; min-width: 200px; padding: 12px 14px; border-radius: 12px; background: #1b1c1f; border: 1px solid var(--border-strong); box-shadow: 0 12px 32px rgb(0 0 0 / .5); font-size: 13px; pointer-events: none; transition: transform .08s linear; }
.calc-tip[hidden] { display: none; }
.calc-tip p { display: flex; align-items: center; gap: 8px; padding: 2px 0; }
.calc-tip p span:nth-child(2) { flex: 1; color: var(--muted); }
.calc-tip p b { font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-tip .t { font-weight: 600; margin-bottom: 4px; }
.calc-tip .tot { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--border-strong); }
details.calc-table { margin-top: 16px; font-size: 14px; }
details.calc-table summary { cursor: pointer; color: var(--muted); list-style: none; display: inline-flex; align-items: center; gap: 6px; }
details.calc-table summary::-webkit-details-marker { display: none; }
details.calc-table summary:hover { color: var(--text); }
details.calc-table[open] summary svg { transform: rotate(180deg); }
.calc-table-scroll { overflow-x: auto; margin-top: 12px; }
.calc-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-table th, .calc-table td { padding: 7px 10px; text-align: right; border-bottom: 1px solid var(--border); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table th { font-weight: 500; color: var(--faint); }

/* indicadores */
/* desplegables: supuestos finos y detalle del resultado */
details.calc-more { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
details.calc-more > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; color: var(--text); }
details.calc-more > summary::-webkit-details-marker { display: none; }
details.calc-more > summary .faint { color: var(--faint); font-weight: 400; }
details.calc-more > summary svg { margin-left: auto; color: var(--muted); transition: transform .2s ease; }
details.calc-more > summary:hover svg { color: var(--text); }
details.calc-more > summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
details.calc-more[open] > summary svg { transform: rotate(180deg); }
.calc-adv > .cc-group:first-of-type { margin-top: 16px; padding-top: 0; border-top: 0; }
.calc-detail .calc-legend { margin-top: 10px; }
.calc-venta { display: flex; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 15px; color: var(--muted); }
.calc-venta b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; }
.calc-chart-h { margin-top: 24px; }
.calc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.calc-foot p { font-size: 14px; color: var(--faint); max-width: 44ch; }
/* resumen fijo mientras se tocan los controles (solo cuando los resultados quedan abajo) */
.calc-peek { display: none; }
@media (max-width: 960px) {
  .calc-in:not(:has(.calc-adv[open])) .calc-peek { display: none !important; }
  .calc-peek { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; margin-top: -4px; padding: 12px 18px; border-radius: 999px; text-decoration: none;
    background: rgb(16 17 19 / .92); border: 1px solid var(--border-strong); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 12px 32px rgb(0 0 0 / .5); font-size: 15px; color: var(--muted); }
  .calc-peek b { color: var(--good); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-left: auto; }
  .calc-peek svg { color: var(--faint); }
}
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
@media (max-width: 480px) {
  .calc-legend li { grid-template-columns: 10px minmax(0, 1fr) auto; }
  .calc-legend .pc { display: none; }
  .cc-top { align-items: flex-end; }
}

/* ── Precio ───────────────────────────────────────────────────────────────────── */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; align-items: start; }
.plan { display: flex; flex-direction: column; gap: 20px; padding: clamp(24px, 3vw, 40px); border: 1px solid var(--border); border-radius: 28px; background: var(--panel); }
.plan-featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), 0 24px 60px rgb(10 125 87 / .12); }
.plan-head { display: flex; align-items: center; height: 30px; justify-content: space-between; gap: 12px; }
.plan-name { font-size: 24px; line-height: 30px; font-weight: 600; }
.plan-badge { font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--accent); background: rgb(14 163 113 / .1); padding: 4px 12px; border-radius: 999px; line-height: 1.4; }
.plan-credits { font-size: 17px; color: var(--muted); padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.plan-credits b { color: var(--text); font-weight: 600; }
.plan .btn { align-self: flex-start; }
.plan-plus { font-size: 16px; font-weight: 600; margin-bottom: -6px; }
.plan .price-amount { min-height: 64px; }
.price-amount:has(.plan-talk) { align-items: center; }
.plan-talk { font-size: clamp(36px, 3.4vw, 50px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.plan ul { display: grid; gap: 14px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; font-size: 17px; }
.plan li svg { color: var(--accent); margin-top: 4px; font-size: 18px; flex-shrink: 0; }
.price-amount { display: flex; align-items: baseline; flex-wrap: nowrap; gap: 8px 10px; }
.price-amount .big-num { font-size: clamp(44px, 4.2vw, 64px); }
.price-amount .big-num { background: linear-gradient(90deg, var(--good), var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.price-amount .per { font-size: 22px; color: var(--muted); }
@media (max-width: 960px) {
  .plans { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-inline: auto; }
}
details.credits { margin-top: 20px; border: 1px solid var(--border); border-radius: 20px; background: var(--panel); }
details.credits summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 24px clamp(20px, 3vw, 32px); font-size: 21px; font-weight: 500; }
details.credits summary::-webkit-details-marker { display: none; }
details.credits summary svg { transition: transform .2s ease; color: var(--muted); }
details.credits[open] summary svg { transform: rotate(180deg); }
.credit-table { padding: 0 clamp(20px, 3vw, 32px) 24px; }
.credit-row { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 20px; padding: 14px 0; border-top: 1px solid var(--border); font-size: 20px; align-items: baseline; }
.credit-group { font-size: 20px; font-weight: 600; padding: 20px 0 8px; }
.credit-row-3 { grid-template-columns: 290px minmax(0, 1fr) minmax(0, 1fr); }
.credit-col { font-size: 15px; font-weight: 600; color: var(--muted); }
.credit-row .credit-tag { font-size: 15px; font-weight: 500; color: var(--accent); }
.tbc { font-family: var(--mono); font-size: .8em; color: var(--warn); background: rgb(197 122 34 / .08); padding: 1px 6px; border-radius: 6px; }
@media (max-width: 600px) { .credit-row { grid-template-columns: minmax(0, 1fr); gap: 4px; } }
@media (max-width: 600px) {
  .credit-row-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4px 16px; font-size: 17px; }
  .credit-row-3 .credit-tag { grid-column: 1 / -1; }
  .credit-row-3 > span:empty { display: none; }
}

/* ── Preguntas frecuentes ─────────────────────────────────────────────────────── */
.faq { margin-top: 48px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 26px 0; font-size: clamp(20px, 1.8vw, 24px); font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--muted); transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 48px 28px 0; color: var(--muted); max-width: 52ch; }

/* ── Cierre · horizonte (de Supernovo Web, supernovo-v7) ─────────────────────── */
.foot { background: #000; color: #9db3a7; padding: 0; overflow: hidden; }
.horizon {
  position: relative; width: 100%; height: clamp(680px, 98vh, 1160px);
  /* Respaldo estático del eclipse si no hay WebGL (el canvas, opaco, lo tapa cuando anda) */
  background:
    radial-gradient(ellipse 260% 110% at 50% 125%, #000 49.6%, rgb(33 33 33 / .5) 49.85%, transparent 51%),
    radial-gradient(circle at 50% 70%, rgb(105 105 105 / .95) 0, rgb(105 105 105 / .6) 4%, rgb(33 33 33 / .28) 12%, rgb(33 33 33 / .08) 26%, transparent 44%),
    #000;
}
.horizon #bh { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.horizon-content { position: absolute; left: 0; right: 0; top: clamp(72px, 16vh, 200px); z-index: 2; text-align: center; padding: 0 var(--gutter); color: #fff; }
.horizon-content h2 { color: #fff; font-size: clamp(48px, 8vw, 104px); letter-spacing: -0.045em; }
.horizon-content .lead-wide { color: rgb(255 255 255 / .72); margin: 24px auto 40px; max-width: 34ch; }
.horizon-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.bigmark-wrap { position: relative; z-index: 3; margin-top: clamp(-280px, -14vh, -90px); line-height: 0; }
.bigmark { display: block; width: 100%; height: auto; }
.foot-row { position: relative; z-index: 3; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding: 20px var(--gutter) 28px; font-size: 15px; color: rgb(255 255 255 / .5); }
.foot-row a { text-decoration: none; }
.foot-row a:hover { color: #fff; }
.foot-cred { flex: 1 1 0; min-width: min(100%, 320px); display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.foot-row > a[href="#top"] { white-space: nowrap; }
.foot-tp { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.foot-tp svg { color: #10b981; }
.foot-tp b { color: rgb(255 255 255 / .85); font-weight: 600; }
.foot-press { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.foot-press a { display: inline-flex; opacity: var(--op, .5); transition: opacity .15s ease; }
.foot-press a:hover { opacity: 1; }
.foot-press img { display: block; height: 13px; width: auto; }
.foot-row a.brand-link { text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* ── Módulo en el home: una pantalla por módulo ───────────────────────────────── */
/* Texto, tres números y el link a la página del módulo; al lado, los 4 pasos como pestañas que avanzan solas */
.ms { min-height: 100svh; display: flex; align-items: center; padding: clamp(96px, 12vh, 140px) 0 clamp(64px, 9vh, 112px); }
.ms-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.ms-text { display: flex; flex-direction: column; gap: 24px; }
.ms-tag { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; color: var(--accent); }
.ms-tag b { font-weight: 600; color: var(--faint); font-variant-numeric: tabular-nums; }
.ms-tag .ui-dot { width: 10px; height: 10px; }
.ms-text h2 { max-width: 14ch; font-size: clamp(36px, 4.6vw, 60px); text-wrap: balance; }
.ms-text .lead { font-size: clamp(18px, 1.5vw, 21px); max-width: 34ch; }
.ms-stats { margin: 4px 0 8px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.ms-stats > div { padding: 16px 16px 0 0; }
.ms-stats > div + div { padding-left: 16px; border-left: 1px solid var(--border); }
.ms-stats dt { font-size: clamp(28px, 2.8vw, 38px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ms-stats dt small { font-size: .45em; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; }
.ms-stats dd { margin: 8px 0 0; font-size: 15px; line-height: 1.35; color: var(--muted); }
.ms-more {
  display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%;
  font-size: 18px; font-weight: 500; color: var(--text); text-decoration: none;
  padding-bottom: 4px; border-bottom: 1px solid var(--border-strong); transition: border-color var(--d-fast) var(--ease);
}
.ms-more svg { color: var(--accent); transition: translate var(--d-fast) var(--ease); }
.ms-more:hover { border-color: var(--text); }
.ms-more:hover svg { translate: 3px 0; }

.ms-demo { display: grid; gap: 14px; min-width: 0; }
.ms-tabs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ms-tabs button {
  position: relative; display: flex; align-items: center; gap: 8px; min-width: 0;
  padding: 10px 10px 14px; border: 0; border-radius: 10px; background: none; cursor: pointer;
  font: 500 14px/1.1 var(--font); color: var(--faint); text-align: left;
  transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease);
}
.ms-tabs button:hover { color: var(--text); background: var(--bg-hover); }
.ms-tabs button:focus-visible, .ms-more:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.ms-tabs button.on { color: var(--text); }
.ms-tabs .n { display: inline-grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border-strong); font-size: 12px; font-variant-numeric: tabular-nums; }
.ms-tabs button.on .n { background: var(--text); border-color: var(--text); color: var(--bg); }
.ms-tabs .bar { position: absolute; left: 10px; right: 10px; bottom: 4px; height: 2px; border-radius: 2px; background: var(--border); overflow: hidden; }
.ms-tabs .bar i { position: absolute; inset: 0; background: var(--accent); transform-origin: left; scale: 0 1; }
.ms-tabs button.done .bar i, .ms-demo.manual .ms-tabs button.on .bar i { scale: 1 1; }
.ms-demo:not(.manual) .ms-tabs button.on .bar i { animation: ms-fill 6s linear forwards; }
.ms-demo:hover .ms-tabs button.on .bar i, .ms-demo:focus-within .ms-tabs button.on .bar i, .ms-demo.off .ms-tabs button.on .bar i { animation-play-state: paused; }
@keyframes ms-fill { from { scale: 0 1; } to { scale: 1 1; } }
.ms-stage { display: grid; }
.ms-stage > figure { grid-area: 1 / 1; align-self: start; transition: opacity .45s var(--ease), translate .45s var(--ease), visibility 0s; }
.ms-stage > figure:not(.on) { opacity: 0; translate: 0 10px; visibility: hidden; transition: opacity .3s var(--ease), translate .3s var(--ease), visibility 0s .3s; }
.ms-cap { font-size: 15px; line-height: 1.45; color: var(--muted); min-height: 3em; margin-top: -2px; }
.ms-cap b { color: var(--text); font-weight: 600; }
@media (max-width: 960px) {
  .ms { min-height: 0; }
  .ms-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .ms-stats { grid-template-columns: minmax(0, 1fr); }
  .ms-stats > div { padding: 14px 0; display: flex; align-items: baseline; gap: 14px; }
  .ms-stats > div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--border); }
  .ms-stats dd { margin: 0; }
  .ms-tabs button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .ms-demo .ms-tabs button.on .bar i { animation: none; scale: 1 1; }
}

/* ── Páginas de módulo ────────────────────────────────────────────────────────── */
.mod-item[aria-current="page"] { background: var(--bg-soft); }
.nav.on-dark .mod-item[aria-current="page"] { background: #18191b; }
/* Portada: el mismo fondo y la misma estructura que el hero del home, sin imagen */
.mp-hero .tag { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 500; color: var(--accent); }
.mp-hero .tag .ui-dot { width: 10px; height: 10px; }
.mp-hero h1 { max-width: 15ch; font-size: clamp(44px, 6.4vw, 80px); text-wrap: balance; }
.mp-hero .lead { max-width: 38ch; }

/* Un ejemplo: el embudo de una corrida, con las barras a escala (alto = valor sobre 1.240) */
.ex-funnel { --max: clamp(140px, 24vh, 240px); position: relative; margin: 48px 0 92px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; align-items: end; border-bottom: 1px solid var(--border-strong); }
.ex-funnel li { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ex-funnel b { font-size: clamp(28px, 3.4vw, 48px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ex-bar { display: block; height: calc(var(--max) * var(--h)); min-height: 6px; }
.ex-bar i { display: block; height: 100%; border-radius: 6px 6px 0 0; background: var(--bg-raised); border: 1px solid var(--border-strong); border-bottom: 0; transform-origin: bottom; }
.ex-funnel li.hi b { color: var(--accent); }
.ex-funnel li.hi .ex-bar i { background: var(--good); border-color: var(--good); }
html.js .ex-funnel.in .ex-bar i { animation: rv-grow-y 1s var(--ease) calc(var(--rv-delay, 0ms) + 120ms) backwards; }
.ex-l { position: absolute; top: 100%; display: flex; flex-direction: column; gap: 2px; padding: 12px 0 14px; width: calc((100% - 48px) / 5); font-size: 16px; font-weight: 500; }
.ex-l small { font-size: 13px; font-weight: 400; color: var(--muted); line-height: 1.3; }
.ex-funnel li:nth-child(1) .ex-l { left: 0; }
.ex-funnel li:nth-child(2) .ex-l { left: calc((100% - 48px) / 5 + 12px); }
.ex-funnel li:nth-child(3) .ex-l { left: calc(2 * ((100% - 48px) / 5 + 12px)); }
.ex-funnel li:nth-child(4) .ex-l { left: calc(3 * ((100% - 48px) / 5 + 12px)); }
.ex-funnel li:nth-child(5) .ex-l { left: calc(4 * ((100% - 48px) / 5 + 12px)); }
.ex-out { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 20px 40px; align-items: center; }
.ex-out .ui-row { padding: 16px 18px; }
.ex-out .ui-row .sub { white-space: normal; }
.ex-res { margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ex-res dt { font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ex-res dd { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.ex-res .win dt { color: var(--accent); }
@media (max-width: 860px) {
  .ex-out { grid-template-columns: minmax(0, 1fr); }
  /* en celular el embudo pasa a barras horizontales */
  .ex-funnel { grid-template-columns: minmax(0, 1fr); gap: 14px; border-bottom: 0; margin-bottom: 40px; }
  .ex-funnel li { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-areas: "n bar" "n l"; gap: 4px 12px; align-items: center; }
  .ex-funnel b { grid-area: n; font-size: 26px; }
  .ex-funnel .ex-bar { grid-area: bar; height: 10px; width: calc(100% * var(--h)); min-width: 6px; }
  .ex-funnel .ex-bar i { border-radius: 0 4px 4px 0; border: 1px solid var(--border-strong); border-left: 0; transform-origin: left; }
  html.js .ex-funnel.in .ex-bar i { animation-name: rv-grow-x; }
  .ex-funnel .ex-l { grid-area: l; position: static; width: auto; padding: 0; flex-direction: row; flex-wrap: wrap; gap: 0 8px; font-size: 15px; }
}
@media (max-width: 520px) { .ex-res { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ex-res dt small { font-size: .5em; letter-spacing: -0.01em; color: var(--muted); font-weight: 500; }

/* Cartera: las cuentas repartidas por estado (ancho de cada tramo = su parte del total) */
.ex-split { margin: 48px 0 56px; }
.ex-split-head { font-size: 18px; color: var(--muted); }
.ex-split-head b { display: block; margin-bottom: 6px; font-size: clamp(36px, 4vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; color: var(--text); }
.ex-split-bar { display: flex; gap: 3px; height: 56px; margin-top: 24px; }
.ex-split-bar i { flex: 0 0 calc(var(--w) * 1% - 3px); min-width: 6px; border-radius: 6px; }
.s-ok { background: var(--bg-raised); box-shadow: inset 0 0 0 1px var(--border-strong); }
.s-up { background: var(--good); }
.s-risk { background: var(--hot); }
.s-sleep { background: var(--warn); }
html.js .ex-split.in .ex-split-bar i { transform-origin: left; animation: rv-grow-x 1s var(--ease) calc(var(--rv-delay, 0ms) + 200ms) backwards; }
.ex-split-legend { margin: 20px 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.ex-split-legend dt { display: flex; align-items: center; gap: 10px; font-size: clamp(26px, 2.4vw, 34px); font-weight: 600; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.ex-split-legend .sw { width: 12px; height: 12px; border-radius: 3px; flex-shrink: 0; }
.ex-split-legend dd { margin: 8px 0 0; font-size: 15px; line-height: 1.35; color: var(--muted); }
.ex-split-legend dd b { display: block; color: var(--text); font-weight: 500; }
@media (max-width: 760px) { .ex-split-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Planificación: la proyección de cierre del mes. El trazo es SVG estirado; puntos y textos van en HTML,
   ubicados con los mismos porcentajes (x: día 1 a 31; y: 105% arriba, 85% abajo) */
.ex-chart { margin: 48px 0 56px; }
.ex-chart-t { font-size: 15px; font-weight: 500; color: var(--muted); }
.ex-plot { position: relative; height: clamp(220px, 32vh, 300px); margin: 28px 24px 0 52px; }
.ex-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ex-plot .grid line { stroke: var(--border); stroke-width: 1; }
.ex-plot .meta { stroke: var(--accent); stroke-width: 1.5; stroke-dasharray: 6 5; }
.ex-plot .mark { stroke: var(--border-strong); stroke-width: 1; stroke-dasharray: 3 4; }
.ex-plot polyline { fill: none; stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.ex-plot .before { stroke: var(--muted); }
.ex-plot .after { stroke: var(--good); }
.ex-plot .yl { position: absolute; right: calc(100% + 12px); translate: 0 -50%; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-plot .tag-meta { position: absolute; left: 8px; translate: 0 -130%; font-size: 13px; font-weight: 500; color: var(--accent); }
.ex-plot .tag-mark { position: absolute; top: -26px; translate: -50% 0; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; }
.ex-plot .pt { position: absolute; width: 0; height: 0; }
.ex-plot .pt::before { content: ""; position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2.5px solid var(--muted); box-sizing: border-box; }
.ex-plot .pt.warn::before { border-color: var(--hot); }
.ex-plot .pt.hi::before { border-color: var(--good); background: var(--good); }
.ex-plot .pt b { position: absolute; bottom: 10px; left: 0; translate: -50% 0; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ex-plot .pt.warn b { color: var(--hot); }
.ex-plot .pt.warn b, .ex-plot .pt.below b { top: 12px; bottom: auto; }
.ex-plot .pt.hi b { color: var(--accent); }
.ex-plot .pt.last b { translate: -100% 0; left: 8px; }
.ex-xl { position: relative; height: 20px; margin: 12px 24px 0 52px; font-size: 13px; color: var(--faint); font-variant-numeric: tabular-nums; }
.ex-xl span { position: absolute; translate: -50% 0; white-space: nowrap; }
.ex-xl span:first-child { translate: 0 0; }
.ex-xl span:last-child { translate: -100% 0; }
/* el trazo se dibuja de izquierda a derecha y después aparecen los puntos */
html.js .ex-chart.in .ex-plot svg { animation: rv-draw 1.6s var(--ease) calc(var(--rv-delay, 0ms) + 200ms) backwards; }
html.js .ex-chart.in .ex-plot .pt { animation: rv-fade var(--d) var(--ease) calc(var(--rv-delay, 0ms) + 1400ms) backwards; }

/* Asistente: la conversación con Supernovo en el celular del vendedor (sin marca de WhatsApp) */
.wa { display: grid; gap: 10px; padding: 18px; font-size: 15px; line-height: 1.45; background: var(--bg-soft); }
.wa-in, .wa-out { position: relative; max-width: 88%; padding: 10px 14px 22px; border-radius: 14px; }
.wa-in { justify-self: start; background: var(--panel); border: 1px solid var(--border); border-top-left-radius: 4px; }
.wa-out { justify-self: end; background: rgb(16 185 129 / .14); border: 1px solid rgb(16 185 129 / .28); border-top-right-radius: 4px; }
.wa p + ul, .wa p + blockquote { margin-top: 8px; }
.wa ul { display: grid; gap: 5px; font-size: 14px; }
.wa ul li { display: flex; align-items: baseline; gap: 8px; }
.wa ul li .ui-dot { translate: 0 -1px; }
.wa-in ul li:not(:has(.ui-dot))::before { content: ""; flex-shrink: 0; width: 4px; height: 4px; border-radius: 50%; background: var(--faint); translate: 0 -3px; }
.wa blockquote { margin: 8px 0 0; padding: 10px 12px; border-left: 2px solid var(--accent); border-radius: 0 8px 8px 0; background: var(--bg-raised); font-size: 14px; }
.wa-t { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: var(--faint); font-variant-numeric: tabular-nums; }
.wa-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.wa-audio { display: flex; align-items: center; gap: 10px; min-width: 220px; padding-right: 54px; padding-bottom: 10px; font-size: 13px; color: var(--muted); }
.wa-ply { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); }
.wa-play { width: 14px; height: 14px; fill: #fff; translate: 1px 0; }
.wa-wave { display: flex; align-items: center; gap: 2px; height: 24px; flex: 1; }
.wa-wave i { width: 3px; height: calc(var(--h) * 1.6px); border-radius: 2px; background: var(--muted); opacity: .7; }
.wa-input { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-top: 1px solid var(--border); font-size: 14px; color: var(--faint); }
.wa-input svg { color: var(--accent); }

/* Asistente: el día del vendedor, hora por hora */
.ex-day { position: relative; margin: 48px 0 56px; display: grid; gap: 28px; max-width: 760px; }
.ex-day::before { content: ""; position: absolute; left: 75px; top: 8px; bottom: 8px; width: 1px; background: var(--border-strong); }
.ex-day li { position: relative; display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 40px; align-items: baseline; }
.ex-day li::before { content: ""; position: absolute; left: 71px; top: .45em; width: 9px; height: 9px; border-radius: 50%; background: var(--good); }
.ex-day time { font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.ex-day b { display: block; font-size: clamp(19px, 1.7vw, 22px); font-weight: 600; letter-spacing: -0.01em; }
.ex-day span { display: block; margin-top: 4px; font-size: 16px; color: var(--muted); }
.ex-res-wide { max-width: 760px; }

/* Con los otros módulos: tarjetas como las de «Dos caminos» */
.mp-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 48px; }
.mp-links.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 960px) { .mp-links.three { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .mp-links { grid-template-columns: minmax(0, 1fr); } }

/* ── Rutas comerciales ────────────────────────────────────────────────────────── */
/* El recorrido en un mapa esquemático: calles, trazo, paradas numeradas y locales de paso */
.rt-map { position: relative; background: var(--bg-soft); border-bottom: 1px solid var(--border); }
.rt-map svg { display: block; width: 100%; height: auto; }
.rt-map .st { stroke: var(--border); stroke-width: 6; stroke-linecap: round; fill: none; }
.rt-map .av { stroke: var(--border-strong); stroke-width: 9; stroke-linecap: round; fill: none; }
.rt-map .park { fill: rgb(14 163 113 / .08); }
.rt-map .path { stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.rt-map .stop circle { fill: var(--text); stroke: var(--panel); stroke-width: 2.5; }
.rt-map .stop.hot circle { fill: var(--hot); }
.rt-map .stop.up circle { fill: var(--good); }
.rt-map .stop.warn circle { fill: var(--warn); }
.rt-map .stop text { fill: #fff; font: 600 10px/1 var(--font); text-anchor: middle; }
.rt-map .stop:not(.hot):not(.up):not(.warn) text { fill: var(--panel); }
.rt-map .near circle { fill: var(--panel); stroke: var(--accent); stroke-width: 1.8; stroke-dasharray: 3 2.5; }
.rt-map .near path { stroke: var(--accent); stroke-width: 1.8; stroke-linecap: round; }
.rt-map .start rect { fill: var(--text); }
.rt-map .start text { fill: var(--bg); font: 600 9px/1 var(--font); text-anchor: middle; }
.rt-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 18px; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--border); }
.rt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.rt-legend .near { width: 9px; height: 9px; border-radius: 50%; border: 1.5px dashed var(--accent); }
html.js .ui.on .rt-map .path, html.js .rt-map.in .path { stroke-dasharray: 1000; animation: rt-draw 1.8s var(--ease) .2s backwards; }
@keyframes rt-draw { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { html.js .ui.on .rt-map .path { animation: none; } }
/* Un ejemplo: las paradas de una salida, por motivo */
.s-new { background: var(--text); opacity: .78; }

/* ── Movimiento ───────────────────────────────────────────────────────────────── */
/* Un solo lenguaje: entra de abajo con fundido, en cascada, con la misma curva. El script «Movimiento»
   marca los elementos (data-rv = uno solo, data-rv-group = sus hijos en cascada) y agrega .in al entrar
   en pantalla; cada elemento recibe --rv-kf (gesto) y --rv-delay (cuándo). Sin JS, todo queda visible. */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --d-fast: .35s; --d: .7s; --d-slow: 1.1s; }
html.js [data-rv]:not(.in), html.js [data-rv-group]:not(.in) > *, html.js [data-fx]:not(.fx-on) { opacity: 0; }
html.js [data-rv].in, html.js [data-rv-group].in > * { animation: var(--rv-kf, rv-up) var(--rv-dur, var(--d)) var(--ease) var(--rv-delay, 0ms) backwards; }
@keyframes rv-up { from { opacity: 0; translate: 0 18px; } }
@keyframes rv-down { from { opacity: 0; translate: 0 -18px; } }
@keyframes rv-left { from { opacity: 0; translate: -24px 0; } }
@keyframes rv-pop { from { opacity: 0; scale: .9; } }
@keyframes rv-fade { from { opacity: 0; } }
@keyframes rv-none { from { opacity: 1; } }
@keyframes rv-draw { from { clip-path: inset(0 100% 0 0); } }
@keyframes rv-grow-x { from { scale: 0 1; } }
@keyframes rv-grow-y { from { scale: 1 0; } }
@keyframes rv-mask { from { translate: 0 110%; } }
/* destello: una banda clara que cruza en diagonal y descansa antes de volver */
@keyframes sheen { 0% { translate: -120% 0; } 60%, 100% { translate: 120% 0; } }
@keyframes text-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
@keyframes flow { to { stroke-dashoffset: -22; } }
@keyframes dot-run { from { stroke-dashoffset: 10; } to { stroke-dashoffset: -112; } }
@keyframes ring { from { box-shadow: 0 0 0 0 rgb(200 80 70 / .5); } to { box-shadow: 0 0 0 8px rgb(200 80 70 / 0); } }
@keyframes nudge { 0%, 100% { translate: 0 0; } 50% { translate: 0 6px; } }
@keyframes caret { 50% { opacity: 0; } }
@keyframes dots { 0%, 80%, 100% { opacity: .25; translate: 0 0; } 40% { opacity: 1; translate: 0 -3px; } }
@keyframes ok-flash { 0% { opacity: 0; scale: .4; } 20%, 70% { opacity: 1; scale: 1; } 100% { opacity: 0; scale: 1; } }
@keyframes nav-in { from { opacity: 0; translate: 0 -16px; } }

html.js .nav { animation: nav-in var(--d) var(--ease) backwards; }
.btn svg, .path .go svg, .ui-btn svg { transition: translate var(--d-fast) var(--ease); }
.btn:hover svg:has(use[href="#i-arrow"]), .ui-btn:hover svg:has(use[href="#i-arrow"]), .path:hover .go svg { translate: 3px 0; }
.faq details[open] > :not(summary), details.credits[open] > :not(summary) { animation: rv-up var(--d-fast) var(--ease); }

/* Números grandes: conteo o letras que suben por máscara, y un destello verde que los cruza una vez */
.split .ch { display: inline-block; overflow: hidden; vertical-align: bottom; padding: .1em 0 .14em; margin: -.1em 0 -.14em; }
.split .ch > span { display: inline-block; animation: rv-mask .8s var(--ease) var(--cd, 0ms) backwards; }
.shine {
  --sh-a: var(--text);
  background-image: linear-gradient(100deg, var(--sh-a) 40%, var(--good) 46%, var(--lime) 50%, var(--good) 54%, var(--sh-a) 60%);
  background-size: 320% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: text-sheen 1.4s var(--ease) forwards;
}
.price-amount .big-num.shine {
  background-image: linear-gradient(100deg, transparent 42%, rgb(255 255 255 / .9) 50%, transparent 58%), linear-gradient(90deg, var(--good), var(--lime));
  background-size: 320% 100%, 100% 100%;
}

/* Dos caminos: líneas que se dibujan y fluyen, puntos que viajan al resultado, destello en «Más ventas» */
.connector .dot { stroke: var(--good); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 0 300; stroke-dashoffset: 10; }
.connector.live .line { animation: flow 1.4s linear infinite; }
.connector.live .dot { animation: dot-run 2.8s var(--ease) infinite; }
.connector.live .dot + .dot { animation-delay: 1.4s; }
.result { position: relative; overflow: hidden; isolation: isolate; }
.result > * { position: relative; z-index: 1; }
.result::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; translate: -120% 0;
  background: linear-gradient(105deg, transparent 20%, rgb(255 255 255 / .07) 38%, rgb(255 255 255 / .3) 50%, rgb(255 255 255 / .07) 62%, transparent 80%);
}
.result.live::after { animation: sheen 4.2s cubic-bezier(.45, 0, .25, 1) infinite; }
.paths .down.live svg { animation: nudge 1.6s var(--ease) infinite; }

/* Ilustraciones: barras que crecen, alertas que laten, pasos del wizard, mensaje que se escribe */
html.js [data-rv-group].in > .f .bar b { transform-origin: left; animation: rv-grow-x 1s var(--ease) calc(var(--rv-delay) + 120ms) backwards; }
html.js .ui-margin.in b, html.js [data-rv-group].in > .ui-margin b { transform-origin: left; animation: rv-grow-x var(--d-slow) var(--ease) calc(var(--rv-delay) + 120ms) backwards; }
html.js .ui-margin.in i, html.js [data-rv-group].in > .ui-margin i { animation: rv-fade var(--d) var(--ease) calc(var(--rv-delay) + 700ms) backwards; }
.ui-alert.live .ui-dot { animation: ring 1.6s var(--ease) infinite; }
.ui-stepper span, .ui-stepper span i { transition: color var(--d-fast) var(--ease), background-color var(--d-fast) var(--ease), border-color var(--d-fast) var(--ease); }
.ui-msg { white-space: pre-line; }
.ui-msg.typing::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -3px; background: var(--accent); animation: caret 1s steps(1) infinite; }
.bump { animation: rv-pop var(--d-fast) var(--ease); }
.chat .typing-dots { display: inline-flex; gap: 4px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: var(--bg-raised); width: max-content; }
.chat .typing-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: dots 1s var(--ease) infinite; }
.chat .typing-dots i:nth-child(2) { animation-delay: .15s; } .chat .typing-dots i:nth-child(3) { animation-delay: .3s; }
.chat .a { animation: rv-up var(--d) var(--ease) backwards; }
html.js .chat .a.wait { display: none; }

/* Micro-demos: lo que se puede tocar */
[data-demo] { cursor: pointer; }
[data-demo]:focus-visible, .ui button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
button.ui-btn, button.ui-pill { font-family: inherit; cursor: pointer; }
button.ui-btn:not(.solid) { color: var(--text); }
button.ui-btn.solid:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.ui-pill:not(.on):hover { color: var(--text); border-color: var(--border-strong); }
.ui-tabs > button { cursor: pointer; transition: background-color var(--d-fast) var(--ease), color var(--d-fast) var(--ease); }
.hero .ui-row[data-demo] { transition: background-color var(--d-fast) var(--ease); }
.hero .ui-row[data-demo]:hover { background: var(--bg-soft); }
.chat button.q { border: 0; font: inherit; font-size: 15px; text-align: left; cursor: pointer; transition: color var(--d-fast) var(--ease); }
.chat button.q.next:hover { color: var(--text); }
[data-hint] { position: relative; }
[data-hint]::after {
  content: attr(data-hint); position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  font-size: 12px; font-weight: 500; line-height: 1; color: var(--muted); padding: 6px 10px; border-radius: 999px;
  background: var(--panel); border: 1px solid var(--border); opacity: 0; translate: 0 4px;
  transition: opacity var(--d-fast) var(--ease), translate var(--d-fast) var(--ease);
}
[data-hint]:hover::after, [data-hint]:focus-visible::after { opacity: 1; translate: 0 0; }
@media (hover: none) { [data-hint]::after { opacity: 1; translate: 0 0; } }

/* Cómo trabajamos: notas que caen (y se pasan al manual), manual que se escribe, ajustes que se guardan */
.note { transition: rotate var(--d) var(--ease), border-color var(--d) var(--ease); transition-delay: calc(var(--n, 0) * 90ms); }
.note:nth-child(2) { --n: 1; } .note:nth-child(3) { --n: 2; }
.note-ok { position: absolute; top: -9px; right: 10px; font-size: 11px; font-weight: 500; line-height: 1; padding: 4px 8px; border-radius: 999px; background: var(--accent); color: #fff; opacity: 0; scale: .8; transition: opacity var(--d-fast) var(--ease), scale var(--d-fast) var(--ease); transition-delay: inherit; }
.notes.tidy .note { rotate: 0deg; border-color: rgb(14 163 113 / .4); }
.notes.tidy .note-ok { opacity: 1; scale: 1; }
html.js .doc-h.in::after { animation: rv-grow-x var(--d-slow) var(--ease) calc(var(--rv-delay) + 150ms) backwards; }
html.js .doc ol.in > li::before { animation: rv-pop var(--d-fast) var(--ease) var(--rv-delay) backwards; }
html.js .doc ol.in > li > div { animation: rv-up var(--d) var(--ease) calc(var(--rv-delay) + 120ms) backwards; }
.cfg .ui-row { position: relative; }
.cfg-ok { position: absolute; left: 3px; top: 50%; margin-top: -6px; width: 12px; height: 12px; color: var(--good); stroke-width: 2.6; opacity: 0; }
html.js .cfg .ui-rows.in > .ui-row > :nth-child(2) { animation: rv-pop var(--d-fast) var(--ease) calc(var(--rv-delay) + 220ms) backwards; }
html.js .cfg .ui-rows.in .cfg-ok { animation: ok-flash 1.5s var(--ease) calc(var(--rv-delay) + 280ms) both; }

/* Vos no configurás nada: filas de arriba hacia abajo, cada una con su línea y su responsable */
html.js .dfy-list li { position: relative; border-bottom-color: transparent; }
html.js .dfy-list li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: var(--border); transform-origin: left; }
html.js .dfy-list.in li::after { animation: rv-grow-x var(--d-slow) var(--ease) var(--rv-delay) backwards; }
html.js .dfy-list.in .who { animation: rv-pop var(--d) var(--ease) calc(var(--rv-delay) + 240ms) backwards; }
html.js .dfy-list.in .who.you { animation-delay: calc(var(--rv-delay) + 480ms); }

/* Cuatro pasos: la línea se dibuja de izquierda a derecha y los pasos se despliegan con ella */
html.js .seq:not(.in)::before { scale: 0 1; }
html.js .seq.in::before { transform-origin: left; animation: rv-grow-x 1.3s var(--ease) backwards; }
html.js .seq.in > li .step-n { animation: rv-pop var(--d) var(--ease) calc(var(--rv-delay) + 60ms) backwards; }
.seq li:last-child .step-n { overflow: hidden; }
.seq li:last-child .step-n::after { content: ""; position: absolute; inset: 0; translate: -120% 0; background: linear-gradient(105deg, transparent 25%, rgb(255 255 255 / .45) 50%, transparent 75%); }
.seq.live li:last-child .step-n::after { animation: sheen 3.4s cubic-bezier(.45, 0, .25, 1) 1.4s infinite; }
@media (max-width: 900px) {
  html.js .seq:not(.in)::before { scale: 1 0; }
  html.js .seq.in::before { transform-origin: top; animation-name: rv-grow-y; }
  html.js .seq > li { --rv-kf: rv-up !important; }
}

@media (prefers-reduced-motion: reduce) {
  html.js *, html.js *::before, html.js *::after { animation-duration: 0s !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: 0s !important; transition-delay: 0s !important; }
}

@media (max-width: 480px) {
  .btn { height: 52px; padding: 0 22px; font-size: 18px; }
  .btn.btn-sm { height: 40px; padding: 0 18px; font-size: 16px; }
  .ui-field { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ui-funnel .f { grid-template-columns: 70px minmax(0, 1fr) 42px; gap: 8px; }
}
