/* Marca Supernovo: copia de los estilos del sitio (styles.css) que usa la presentación.
   Es una copia: si cambia el sitio, no se actualiza sola. */
/* ── 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; }


/* ── 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); }

/* 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; }

.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; }

/* ── Chat de WhatsApp (recortes del Asistente) ───────────────────────────────── */
.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); }

/* ── Movimiento ───────────────────────────────────────────────────────────────── */
:root { --ease: cubic-bezier(.2, .7, .2, 1); --d-fast: .35s; --d: .7s; --d-slow: 1.1s; }
@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; } }
