/* Orbypus · landing. Estática, sin build. Tokens alineados con el producto (azul eléctrico sobre azul noche). */
:root {
  --bg: #050b1d;
  --bg-2: #0a1431;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(160, 185, 255, 0.14);
  --line-2: rgba(160, 185, 255, 0.26);
  --text: #eaf0ff;
  --muted: #8d9bc2;
  --blue: #3b82ff;
  --blue-2: #2563eb;
  --cyan: #38d0ff;
  --ok: #34d399;
  --warn: #fbbf24;
  --display: "Bricolage Grotesque", "Plus Jakarta Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --r: 18px;
  --text-2: var(--text-2);
  --text-strong: #fff;
  --accent: #38d0ff;
  --fill: var(--fill);
  --fill-2: rgba(255, 255, 255, 0.07);
  --track: rgba(255, 255, 255, 0.1);
  --win-a: rgba(14, 26, 62, 0.92);
  --win-b: rgba(7, 14, 36, 0.96);
  --wa-bg: #0c1736;
  --nav-bg: rgba(5, 11, 29, 0.72);
  --dot: #2a3763;
  --chip-fg: #a9bbea;
  --ic: #8fbaff;
  --sb: #1d2c5e;
  --empty: rgba(141, 155, 194, 0.55);
  --sys-fg: #a7f3d0;
  --tag-fg: #8fe6ff;
  --b-hot-bg: rgba(248, 113, 113, 0.16); --b-hot: #fca5a5;
  --b-warm-bg: rgba(251, 191, 36, 0.16); --b-warm: #fde68a;
  --b-cool-bg: rgba(56, 208, 255, 0.16); --b-cool: #7fe3ff;
  --b-won-bg: rgba(52, 211, 153, 0.16); --b-won: #86efac;
  --g1: #6aa5ff; --g2: #38d0ff; --g3: #9be7ff;
  --no-a: rgba(122, 167, 255, 0.55);
  --o1: rgba(110, 160, 255, 0.28); --o2: rgba(110, 160, 255, 0.2);
  --glow-shadow: rgba(37, 99, 235, 0.55);
  --glow-shadow-2: rgba(37, 99, 235, 0.6);
  --quote-shadow: rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}
* { box-sizing: border-box; margin: 0; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Barra de avance de lectura */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; transform: scaleX(0); box-shadow: 0 0 14px rgba(56, 208, 255, 0.7); }

/* ── Tipografía ─────────────────────────────────────────────── */
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8.2vw, 6.4rem); font-weight: 800; }
h2 { font-size: clamp(2.1rem, 5vw, 3.7rem); }
h3 { font-size: 1.35rem; letter-spacing: -0.02em; }
.grad { background: linear-gradient(100deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 75%, var(--g1) 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 7s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--accent); }
.lede { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 60ch; }
.center { text-align: center; margin-inline: auto; }
.center .lede { margin-inline: auto; }
.center .eyebrow::before { display: none; }
.fine { font-size: 13px; color: var(--muted); line-height: 1.4; }
.center-fine { text-align: center; margin-top: 26px; }

/* ── Botones ────────────────────────────────────────────────── */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: 999px; font-weight: 700; font-size: 15.5px; transform: translate(var(--tx, 0px), var(--ty, 0px)); transition: transform 0.18s ease-out, box-shadow 0.2s, background 0.2s, border-color 0.2s; white-space: nowrap; }
.btn-primary { background: linear-gradient(180deg, #5b9dff, var(--blue-2)); color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18) inset, 0 12px 40px -8px rgba(59, 130, 255, 0.75); position: relative; overflow: hidden; }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, 0.35) 50%, transparent 65%); transform: translateX(-120%); animation: sweep 4.5s ease-in-out infinite 2s; pointer-events: none; }
@keyframes sweep { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.btn-primary:hover { transform: translate(var(--tx, 0px), calc(var(--ty, 0px) - 2px)); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.28) inset, 0 18px 50px -8px rgba(59, 130, 255, 0.95); }
.btn-ghost { border: 1px solid var(--line-2); background: var(--panel); }
.btn-ghost:hover { border-color: var(--cyan); background: var(--panel-2); }
.btn svg { width: 18px; height: 18px; transition: transform 0.2s; }
.btn:hover svg { transform: translateX(3px); }

/* ── Navegación ─────────────────────────────────────────────── */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s; border-bottom: 1px solid transparent; }
.nav.stuck { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav, footer .wrap { max-width: 100vw; }
.nav .wrap { display: flex; align-items: center; height: 72px; gap: 32px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 21px; letter-spacing: -0.03em; }
.brand svg { width: 34px; height: 34px; }
.links { display: flex; gap: 26px; margin-left: 24px; font-size: 15px; color: var(--muted); }
.links a { position: relative; transition: color 0.2s; padding: 4px 0; }
.links a:hover, .links a.on { color: var(--text); }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transition: right 0.3s; }
.links a.on::after { right: 0; }
.nav .btn { margin-left: 0; height: 42px; padding: 0 20px; font-size: 14.5px; }
@media (max-width: 960px) { .links { display: none; } }

/* ── Hero ───────────────────────────────────────────────────── */
.hero { position: relative; padding: 148px 0 0; overflow: clip; }
.hero-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-bg::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 64px 64px; opacity: 0.35; mask-image: radial-gradient(ellipse 70% 55% at 50% 30%, #000 20%, transparent 75%); }
.glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.glow.a { width: 760px; height: 480px; left: 50%; top: -120px; translate: -50% 0; background: radial-gradient(closest-side, rgba(59, 130, 255, 0.55), transparent); }
.glow.b { width: 520px; height: 420px; right: -120px; top: 360px; background: radial-gradient(closest-side, rgba(56, 208, 255, 0.28), transparent); }
.glow.c { width: 520px; height: 420px; left: -160px; top: 520px; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.3), transparent); }
/* Foco de luz que sigue al cursor */
.spot { position: absolute; inset: 0; background: radial-gradient(420px circle at var(--sx, 50%) var(--sy, 25%), rgba(56, 208, 255, 0.16), transparent 62%); opacity: 0; transition: opacity 0.4s; }
.hero.hot .spot { opacity: 1; }
.hero-copy { text-align: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px 7px 8px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); font-size: 14px; color: var(--text-2); margin-bottom: 28px; }
.pill b { padding: 2px 10px; border-radius: 999px; background: var(--blue-2); color: #fff; font-size: 11.5px; font-family: var(--mono); letter-spacing: 0.06em; }
.hero h1 { max-width: 14ch; margin-inline: auto; }
.hero .lede { margin: 26px auto 38px; }
.cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; color: var(--ok); }

/* Órbitas decorativas */
.orbits { position: absolute; left: 50%; top: 250px; translate: -50% 0; width: 1100px; height: 1100px; z-index: -1; pointer-events: none; opacity: 0.8; }
.ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid var(--line); }
.ring.r1 { width: 520px; height: 520px; }
.ring.r2 { width: 780px; height: 780px; }
.ring.r3 { width: 1060px; height: 1060px; border-style: dashed; opacity: 0.6; }
.sat { position: absolute; inset: 0; margin: auto; border-radius: 50%; animation: spin linear infinite; }
.sat::after { content: ""; position: absolute; top: -5px; left: 50%; width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px 4px rgba(56, 208, 255, 0.8); }
.sat.s1 { width: 520px; height: 520px; animation-duration: 26s; }
.sat.s2 { width: 780px; height: 780px; animation-duration: 42s; animation-direction: reverse; }
.sat.s2::after { background: #7aa7ff; box-shadow: 0 0 18px 4px rgba(90, 140, 255, 0.8); width: 8px; height: 8px; }
.sat.s3 { width: 1060px; height: 1060px; animation-duration: 70s; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Ventana del producto ───────────────────────────────────── */
.stage { margin-top: 72px; perspective: 1600px; }
.win { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--win-a), var(--win-b)); box-shadow: 0 60px 120px -30px var(--glow-shadow), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; overflow: hidden; transform: rotateX(6deg); transform-origin: 50% 0; transition: transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.stage.on .win { transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.stage.on.live .win { transition: transform 0.25s ease-out; }
.win-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.dot { width: 11px; height: 11px; border-radius: 50%; background: var(--dot); }
.win-title { margin-left: 14px; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.live { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--ok); }
.live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
.win-body { display: grid; grid-template-columns: 1fr 1.25fr; min-height: 470px; }
@media (max-width: 880px) { .win-body { grid-template-columns: 1fr; min-height: 0; } .win { transform: none !important; } .msgs { min-height: 250px; } }

.chat { padding: 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
@media (max-width: 880px) { .chat { border-right: 0; border-bottom: 1px solid var(--line); } }
.chat-head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 14px; background: linear-gradient(135deg, #3b82ff, #7c5cff); color: #fff; flex: none; }
.chat-head small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.2; }
.chat-head b { font-size: 15px; line-height: 1.3; }
.resp { margin-left: auto; font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; color: var(--ok); border: 1px solid rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.08); opacity: 0; transform: scale(0.8); transition: opacity 0.4s, transform 0.4s; white-space: nowrap; }
.resp.show { opacity: 1; transform: none; }
.msgs { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.m { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.45; opacity: 0; transform: translateY(8px) scale(0.98); transition: opacity 0.4s, transform 0.4s; overflow-wrap: anywhere; }
.m.show { opacity: 1; transform: none; }
.m.in { background: var(--panel-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; }
.m.out { color: #fff; background: linear-gradient(180deg, #3b82ff, #2563eb); border-bottom-right-radius: 4px; align-self: flex-end; }
.tag { display: inline-block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.18); margin-bottom: 4px; }
.sys { align-self: stretch; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 12px; border: 1px dashed rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.07); color: var(--sys-fg); font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s, transform 0.4s; }
.sys.show { opacity: 1; transform: none; }
.sys svg { width: 16px; height: 16px; flex: none; }
.typing { align-self: flex-start; display: none; gap: 4px; padding: 13px 16px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line); }
.typing.show { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: 0.2s; } .typing i:nth-child(3) { animation-delay: 0.4s; }
@keyframes blink { 0%, 60%, 100% { opacity: 0.25; } 30% { opacity: 1; } }

.board { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.board-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.board-top b { font-family: var(--display); font-size: 18px; letter-spacing: -0.02em; }
.chips { display: flex; gap: 8px; }
.chip { font-family: var(--mono); font-size: 11px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }
.cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; flex: 1; }
@media (max-width: 560px) { .cols { grid-template-columns: repeat(2, 1fr); } }
.col { border-radius: 14px; background: var(--fill); border: 1px solid var(--line); padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 250px; }
.col h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; font-weight: 500; }
.card { border-radius: 11px; padding: 10px; background: var(--panel-2); border: 1px solid var(--line); font-size: 12.5px; line-height: 1.35; transition: transform 0.2s, border-color 0.2s; }
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.card b { display: block; font-size: 13px; }
.card small { color: var(--muted); font-size: 11.5px; }
.card .row { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; gap: 6px; }
.badge { font-size: 10.5px; padding: 2px 8px; border-radius: 999px; font-weight: 700; transition: background 0.3s, color 0.3s; }
.badge.hot { background: var(--b-hot-bg); color: var(--b-hot); }
.badge.warm { background: var(--b-warm-bg); color: var(--b-warm); }
.badge.cool { background: var(--b-cool-bg); color: var(--b-cool); }
.badge.won { background: var(--b-won-bg); color: var(--b-won); }
.card.fresh { border-color: var(--cyan); box-shadow: 0 0 0 1px var(--cyan), 0 0 30px -4px rgba(56, 208, 255, 0.6); animation: land 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
@keyframes land { from { opacity: 0; transform: translate(-60px, -20px) scale(0.9); } to { opacity: 1; transform: none; } }

/* ── Secciones ──────────────────────────────────────────────── */
section { position: relative; padding: 120px 0; overflow-x: clip; }
.head { margin-bottom: 64px; }
.head h2 { margin: 18px 0 20px; max-width: 18ch; }
.head.center h2 { margin-inline: auto; }

/* Fuentes de leads */
.sources { padding: 70px 0 20px; }
.sources p { text-align: center; color: var(--muted); font-size: 14px; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.track { display: flex; gap: 14px; width: max-content; animation: slide 38s linear infinite; }
.marquee:hover .track { animation-play-state: paused; }
.src { display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-family: var(--display); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; white-space: nowrap; transition: border-color 0.2s, background 0.2s; }
.src:hover { border-color: var(--cyan); background: var(--panel-2); }
.src svg { width: 20px; height: 20px; color: var(--accent); }
@keyframes slide { to { transform: translateX(-50%); } }

/* Antes / Con Orbypus */
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 820px) { .vs { grid-template-columns: 1fr; } }
.vs > div { border-radius: 24px; padding: 38px; border: 1px solid var(--line); background: var(--panel); }
.vs .after { border-color: rgba(59, 130, 255, 0.5); background: linear-gradient(160deg, rgba(37, 99, 235, 0.22), rgba(56, 208, 255, 0.05) 70%); box-shadow: 0 30px 80px -30px var(--glow-shadow-2); }
.vs h3 { font-size: 1.6rem; margin-bottom: 22px; }
.vs .before h3 { color: var(--muted); }
.vs ul { list-style: none; padding: 0; display: grid; gap: 14px; }
.vs li { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.vs .before li { color: var(--muted); }
.vs li svg { width: 20px; height: 20px; flex: none; margin-top: 4px; }
.before li svg { color: #f87171; } .after li svg { color: var(--accent); }

/* Funciones con pestañas */
.feat { display: grid; grid-template-columns: 0.85fr 1.25fr; gap: 56px; align-items: start; }
@media (max-width: 940px) { .feat { grid-template-columns: 1fr; gap: 28px; } }
.tabs { position: sticky; top: 110px; display: grid; gap: 4px; }
@media (max-width: 940px) { .tabs { position: static; display: flex; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; } }
.tab { text-align: left; padding: 18px 22px; border-radius: 16px; border: 1px solid transparent; transition: background 0.3s, border-color 0.3s; position: relative; overflow: hidden; }
@media (max-width: 940px) { .tab { flex: none; width: 250px; border-color: var(--line); } }
.tab:hover h3 { color: var(--text-2); }
.tab .n { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.1em; }
.tab h3 { margin: 4px 0 0; color: var(--muted); transition: color 0.3s; font-size: 1.5rem; }
.tab p { color: var(--muted); font-size: 15px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.5s, opacity 0.4s, margin 0.4s; }
.tab[aria-selected="true"] { background: var(--panel); border-color: var(--line-2); }
.tab[aria-selected="true"] h3 { color: var(--text); }
.tab[aria-selected="true"] p { max-height: 140px; opacity: 1; margin-top: 10px; }
.tab[aria-selected="true"]::before { content: ""; position: absolute; left: -1px; top: 18px; bottom: 18px; width: 3px; border-radius: 3px; background: linear-gradient(var(--blue), var(--cyan)); }
/* Avance automático: una barra se llena y pasa a la siguiente función (se detiene al tocar) */
.tab::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform: scaleX(0); transform-origin: left; }
.tabs.run:not(.manual) .tab[aria-selected="true"]::after { animation: tabfill 7s linear forwards; }
@keyframes tabfill { to { transform: scaleX(1); } }
@media (max-width: 940px) { .tab p { display: none; } }
.panes { position: relative; }
.pane { display: none; border-radius: 24px; border: 1px solid var(--line-2); background: linear-gradient(180deg, var(--win-a), var(--win-b)); padding: 26px; min-height: 460px; box-shadow: 0 40px 100px -40px var(--glow-shadow-2); }
.pane.on { display: block; animation: paneIn 0.5s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes paneIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pane-note { display: none; }
@media (max-width: 940px) { .pane-note { display: block; color: var(--muted); font-size: 15px; margin-bottom: 18px; } }

/* Piezas de mockup reutilizables */
.ui-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.ui-title b { font-family: var(--display); font-size: 19px; letter-spacing: -0.02em; }
.ui-title span { font-family: var(--mono); font-size: 11.5px; color: var(--muted); }
.stack { display: grid; gap: 10px; }
.item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--panel); font-size: 14.5px; }
.item .grow { flex: 1; min-width: 0; }
.item small { display: block; color: var(--muted); font-size: 12.5px; }
.bar { height: 7px; border-radius: 99px; background: var(--fill-2); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--cyan)); transform-origin: left; animation: fill 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
@keyframes fill { from { transform: scaleX(0); } }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border-radius: 14px; border: 1px solid var(--line); background: var(--panel); padding: 14px; }
.kpi small { color: var(--muted); font-size: 12px; }
.kpi b { display: block; font-family: var(--display); font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.funnel { display: grid; gap: 12px; }
.f-row { display: grid; grid-template-columns: 110px 1fr 36px; align-items: center; gap: 12px; font-size: 13.5px; color: var(--text-2); }
.f-row em { font-style: normal; color: var(--muted); text-align: right; font-family: var(--mono); font-size: 12.5px; }
.brief { border-radius: 16px; padding: 18px; border: 1px solid rgba(56, 208, 255, 0.4); background: linear-gradient(160deg, rgba(56, 208, 255, 0.1), rgba(59, 130, 255, 0.06)); margin-top: 16px; font-size: 14.5px; }
.brief .tag { background: rgba(56, 208, 255, 0.2); color: var(--tag-fg); }
.brief p + p { margin-top: 8px; color: var(--text-2); }
.quote { border-radius: 18px; background: #f6f8ff; color: #0b1b3f; padding: 24px; max-width: 420px; margin-inline: auto; box-shadow: 0 30px 60px -20px var(--quote-shadow); }
.quote small { color: #64708c; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; }
.quote h4 { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin: 4px 0 16px; }
.quote .ln { display: flex; justify-content: space-between; padding: 9px 0; border-top: 1px solid #dde3f3; font-size: 14.5px; }
.quote .tot { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; color: #1d4ed8; }
.quote .go { display: block; text-align: center; margin-top: 16px; padding: 13px; border-radius: 12px; background: #2563eb; color: #fff; font-weight: 700; }
.link-chip { display: flex; align-items: center; gap: 10px; justify-content: center; margin: 18px auto 0; width: fit-content; padding: 9px 16px; border-radius: 999px; font-family: var(--mono); font-size: 12.5px; border: 1px solid var(--line-2); background: var(--panel); color: var(--chip-fg); }
.link-chip b { color: var(--ok); font-weight: 600; }
.wa { border-radius: 18px; background: var(--wa-bg); border: 1px solid var(--line); padding: 16px; display: grid; gap: 10px; font-size: 14px; }
.wa .m { max-width: 100%; opacity: 1; transform: none; align-self: stretch; background: var(--panel-2); border: 1px solid var(--line); border-radius: 14px; white-space: pre-line; }
.wa .m b { color: var(--text-strong); }

/* ── Simulador interactivo ──────────────────────────────────── */
.sim { max-width: 1040px; margin-inline: auto; transform: none; box-shadow: 0 60px 120px -30px var(--glow-shadow); }
.sim .win-body { min-height: 560px; }
.sim-log { overflow-y: auto; max-height: 330px; scroll-behavior: smooth; padding-right: 4px; }
.sim-log { scrollbar-width: thin; scrollbar-color: rgba(160,185,255,.3) transparent; }
.sim-log .m { opacity: 1; transform: none; animation: popin 0.3s ease-out both; }
@keyframes popin { from { opacity: 0; transform: translateY(8px) scale(0.98); } }
.sim-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.sim-chips button { font-size: 13px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--text-2); transition: border-color 0.2s, background 0.2s, transform 0.2s; }
.sim-chips button:hover { border-color: var(--cyan); background: var(--panel-2); transform: translateY(-1px); }
.say { display: flex; gap: 8px; margin-top: auto; }
.say input { flex: 1; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--fill); color: var(--text); font: inherit; font-size: 15px; }
.say input::placeholder { color: var(--muted); }
.say input:focus-visible { outline: none; border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(56, 208, 255, 0.2); }
.say button { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(180deg, #5b9dff, var(--blue-2)); transition: transform 0.2s; }
.say button:hover { transform: scale(1.08); }
.say button svg { width: 20px; height: 20px; }
.lead .again { font-size: 12.5px; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; }
.lead .again:hover { color: var(--text); }
.lead-head { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.lead-head .av { width: 46px; height: 46px; font-size: 18px; }
.lead-head b { font-size: 18px; display: block; line-height: 1.2; font-family: var(--display); letter-spacing: -0.02em; }
.lead-head small { color: var(--muted); font-size: 12.5px; }
.lead-head .badge { margin-left: auto; font-size: 12px; padding: 4px 12px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 20px; }
.fields .wide { grid-column: 1 / -1; }
.fields dt { font-size: 12px; color: var(--muted); font-family: var(--mono); letter-spacing: 0.04em; }
.fields dd { font-weight: 600; font-size: 15.5px; border-radius: 6px; margin-top: 2px; }
.fields dd.empty { color: var(--empty); font-weight: 400; }
.flash { animation: flash 1s ease-out; }
@keyframes flash { 0% { background: rgba(56, 208, 255, 0.35); box-shadow: 0 0 0 4px rgba(56, 208, 255, 0.35); } 100% { background: transparent; box-shadow: 0 0 0 4px transparent; } }
.lead .brief { margin-top: 0; }
.speed { color: var(--muted); font-family: var(--mono); font-size: 11.5px; margin-top: auto; }

/* ── Calculadora ────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; align-items: stretch; max-width: 1080px; margin-inline: auto; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.sliders { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: 34px; display: grid; gap: 30px; align-content: center; }
.sliders label { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; align-items: baseline; }
.sliders span { color: var(--text-2); font-size: 15px; line-height: 1.35; }
.sliders output { font-family: var(--display); font-weight: 700; font-size: 1.7rem; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.sliders input { --p: 30%; grid-column: 1 / -1; width: 100%; appearance: none; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--blue), var(--cyan)) 0 / var(--p) 100% no-repeat, var(--track); cursor: pointer; }
.sliders input::-webkit-slider-thumb { appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-2); box-shadow: 0 0 0 5px rgba(59, 130, 255, 0.25), 0 4px 14px rgba(0, 0, 0, 0.5); transition: box-shadow 0.2s; }
.sliders input::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--blue-2); box-shadow: 0 0 0 5px rgba(59, 130, 255, 0.25); }
.sliders input:active::-webkit-slider-thumb { box-shadow: 0 0 0 9px rgba(59, 130, 255, 0.3), 0 4px 14px rgba(0, 0, 0, 0.5); }
.result { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid rgba(59, 130, 255, 0.5); background: linear-gradient(160deg, rgba(37, 99, 235, 0.28), rgba(56, 208, 255, 0.06) 70%); box-shadow: 0 30px 80px -30px var(--glow-shadow-2); padding: 38px; display: flex; flex-direction: column; justify-content: center; }
.r-t { color: var(--text-2); }
.r-big { font-family: var(--display); font-weight: 800; font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 0.95; letter-spacing: -0.05em; margin: 12px 0 4px; font-variant-numeric: tabular-nums; }
.r-big small { font-size: 0.28em; letter-spacing: -0.02em; color: var(--text-2); font-weight: 600; }
.r-money { font-family: var(--display); font-weight: 800; font-size: clamp(2.2rem, 4.4vw, 3.4rem); letter-spacing: -0.04em; line-height: 1.1; font-variant-numeric: tabular-nums; width: fit-content; }
.r-d { color: var(--text-2); margin-bottom: 14px; }
.result .fine { margin-bottom: 24px; }
.result .btn { white-space: normal; text-align: left; height: auto; min-height: 50px; padding-block: 12px; }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bx { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: 30px; transition: border-color 0.3s, transform 0.3s; }
.bx:hover { border-color: var(--line-2); transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateY(-3px); }
.bx::after { content: ""; position: absolute; inset: 0; background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(59, 130, 255, 0.16), transparent 60%); opacity: 0; transition: opacity 0.3s; pointer-events: none; }
.bx:hover::after { opacity: 1; }
.bx .ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: rgba(59, 130, 255, 0.14); border: 1px solid rgba(59, 130, 255, 0.35); color: var(--ic); margin-bottom: 22px; }
.bx .ic svg { width: 22px; height: 22px; }
.bx p { color: var(--muted); margin-top: 10px; font-size: 15.5px; }
.s2 { grid-column: span 2; } .s3 { grid-column: span 3; } .s4 { grid-column: span 4; }
@media (max-width: 900px) { .s2, .s3, .s4 { grid-column: span 6; } }
@media (min-width: 901px) and (max-width: 1080px) { .s2 { grid-column: span 3; } }
.mini-list { display: grid; gap: 8px; margin-top: 20px; }
.mini-list div { display: flex; justify-content: space-between; padding: 9px 14px; border-radius: 10px; background: var(--fill); font-size: 13.5px; border: 1px solid var(--line); }
.mini-list em { font-style: normal; font-family: var(--mono); color: var(--accent); font-size: 12.5px; }

/* Cómo funciona */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 880px) { .steps { grid-template-columns: 1fr; } }
.step { border-radius: 24px; border: 1px solid var(--line); background: var(--panel); padding: 34px; position: relative; transition: border-color 0.3s, transform 0.3s; }
.step:hover { border-color: var(--line-2); transform: perspective(900px) rotateX(var(--trx, 0deg)) rotateY(var(--try, 0deg)) translateY(-4px); }
.step .no { font-family: var(--display); font-size: 5.5rem; font-weight: 800; line-height: 0.9; letter-spacing: -0.05em; background: linear-gradient(180deg, var(--no-a), transparent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.step h3 { margin: 12px 0 10px; }
.step p { color: var(--muted); font-size: 15.5px; }

/* Seguridad */
.secure { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .secure { grid-template-columns: 1fr; } }
.checks { display: grid; gap: 16px; margin-top: 30px; }
.checks div { display: flex; gap: 14px; align-items: flex-start; color: var(--text-2); }
.checks svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 3px; }
.checks b { color: var(--text-strong); }
.vault { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; display: grid; place-items: center; }
.vault .ring { border-color: var(--line-2); }
.vault .core { width: 38%; aspect-ratio: 1; border-radius: 28%; display: grid; place-items: center; background: linear-gradient(160deg, #4f8cff, #1d4ed8); box-shadow: 0 0 80px 10px rgba(59, 130, 255, 0.5); z-index: 1; }
.vault .core svg { width: 46%; color: #fff; }
.vault .ring.v1 { width: 62%; height: 62%; } .vault .ring.v2 { width: 82%; height: 82%; } .vault .ring.v3 { width: 100%; height: 100%; border-style: dashed; }
.vault .sat { animation-duration: 22s; } .vault .sat.v2 { animation-duration: 34s; animation-direction: reverse; } .vault .sat.v3 { animation-duration: 52s; }
.co { position: absolute; padding: 6px 12px; border-radius: 999px; font-family: var(--mono); font-size: 11.5px; background: var(--bg-2); border: 1px solid var(--line-2); color: var(--chip-fg); z-index: 2; }

/* FAQ */
.faq { max-width: 820px; margin-inline: auto; display: grid; gap: 12px; }
details { border-radius: 18px; border: 1px solid var(--line); background: var(--panel); padding: 0 26px; transition: border-color 0.3s, background 0.3s; }
details:hover { border-color: var(--line-2); }
details[open] { border-color: var(--line-2); background: var(--panel-2); }
summary { list-style: none; cursor: pointer; padding: 22px 0; font-family: var(--display); font-weight: 600; font-size: 1.2rem; letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; align-items: center; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 26px; color: var(--accent); transition: transform 0.3s; flex: none; line-height: 1; }
details[open] summary::after { transform: rotate(45deg); }
details p { color: var(--muted); padding-bottom: 24px; max-width: 64ch; }

/* CTA final */
.final { padding: 40px 0 120px; }
.final-box { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; border: 1px solid var(--line-2); padding: clamp(72px, 11vw, 150px) 24px; text-align: center; background: radial-gradient(ellipse 80% 90% at 50% 120%, rgba(59, 130, 255, 0.55), transparent 70%), linear-gradient(180deg, #0b1740, #060d26); }
.final-box { background: linear-gradient(180deg, #0a1538, #050b1f); }
.final-box h2 { max-width: 16ch; margin-inline: auto; }
.final-box .lede { margin: 22px auto 36px; }

footer { overflow-x: clip; border-top: 1px solid var(--line); padding: 44px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
footer nav { display: flex; gap: 26px; flex-wrap: wrap; }
footer a:hover { color: var(--text); }

/* Aparición al hacer scroll (mejora progresiva: sin JS todo se ve) */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); transition-delay: var(--d, 0ms); }
.js .rv.in { opacity: 1; transform: none; }

@media (max-width: 640px) {
  section { padding: 84px 0; }
  .btn { width: 100%; } .cta-row { width: 100%; } .nav .btn { width: auto; height: 38px; padding: 0 14px; font-size: 13.5px; }
  .nav .wrap { gap: 12px; } .brand { font-size: 19px; } .brand svg { width: 30px; height: 30px; }
  .vs > div { padding: 26px; } .orbits { top: 380px; }
  .kpis { grid-template-columns: 1fr 1fr 1fr; } .kpi b { font-size: 20px; }
  .sliders, .result { padding: 26px; } .fields { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::after, *::before { animation: none !important; transition: none !important; }
  .cursor-glow { display: none; }
  .js .rv { opacity: 1; transform: none; }
  .m, .sys, .resp { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ═════ Fondo orbital de toda la página ═════ */
.cosmos { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; filter: hue-rotate(calc(var(--sp, 0) * -32deg)); }
.cosmos svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.85; animation: drift 26s ease-in-out infinite alternate; will-change: transform; }
.blob.b1 { width: 62vw; height: 56vh; left: -18vw; top: 6vh; background: radial-gradient(closest-side, rgba(37, 99, 235, 0.5), transparent); }
.blob.b2 { width: 50vw; height: 50vh; right: -14vw; top: 34vh; background: radial-gradient(closest-side, rgba(56, 208, 255, 0.26), transparent); animation-duration: 32s; animation-delay: -8s; }
.blob.b3 { width: 56vw; height: 46vh; left: 26vw; bottom: -18vh; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.34), transparent); animation-duration: 38s; animation-delay: -14s; }
@keyframes drift { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(6vw, -5vh, 0) scale(1.15); } 100% { transform: translate3d(-5vw, 6vh, 0) scale(0.95); } }
.layer { transform: translate(calc(var(--mx, 0) * -34px), calc(var(--py, 0) * -0.1px + var(--my, 0) * -22px)); transition: transform 0.7s ease-out; }
.layer.l2 { transform: translate(calc(var(--mx, 0) * 52px), calc(var(--py, 0) * -0.22px + var(--my, 0) * 34px)); }
.cosmos ellipse { fill: none; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.cosmos .o1 { stroke: var(--o1); }
.cosmos .o2 { stroke: var(--o2); stroke-dasharray: 4 9; }
.cosmos .sat { fill: #38d0ff; filter: drop-shadow(0 0 8px rgba(56, 208, 255, 0.95)) drop-shadow(0 0 20px rgba(56, 208, 255, 0.6)); }
.cosmos .sat.s-b { fill: #7aa7ff; filter: drop-shadow(0 0 8px rgba(122, 167, 255, 0.95)); }
/* Las secciones se vuelven vidrio esmerilado para que el fondo se vea difuminado detrás */
.bx, .step, .vs > div, .sliders, details, .src, .pane, .win { -webkit-backdrop-filter: blur(14px) saturate(1.25); backdrop-filter: blur(14px) saturate(1.25); }
.sliders, .step, .bx { background: var(--fill); }

/* Luz que sigue al cursor, con retraso suave */
.cursor-glow { position: fixed; left: 0; top: 0; width: 460px; height: 460px; margin: -230px 0 0 -230px; z-index: 0; pointer-events: none; border-radius: 50%; background: radial-gradient(closest-side, rgba(59, 130, 255, 0.2), rgba(56, 208, 255, 0.06) 55%, transparent); filter: blur(30px); opacity: 0; transition: opacity 0.5s; mix-blend-mode: screen; will-change: transform; }
.cursor-glow.on { opacity: 1; }

/* ═════ Cierre: escena orbital ═════ */
.fscene { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.fcontent { position: relative; z-index: 1; }
.fglow { position: absolute; left: 50%; top: 42%; width: 80%; height: 90%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(59, 130, 255, 0.38), transparent); filter: blur(60px); animation: breathe 7s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: 0.55; transform: scale(1.12); } }
.forbits { position: absolute; inset: 0; width: 100%; height: 100%; }
.fl { transition: transform 0.5s ease-out; }
.fl1 { transform: translate(calc(var(--bx, 0) * -26px), calc(var(--by, 0) * -16px)); }
.fl2 { transform: translate(calc(var(--bx, 0) * 40px), calc(var(--by, 0) * 24px)); }
.fo { fill: none; stroke: rgba(140, 190, 255, 0.7); stroke-width: 1.8; vector-effect: non-scaling-stroke; }
.fo-d { stroke: rgba(140, 190, 255, 0.45); stroke-dasharray: 5 9; }
.fsat { fill: #fff; filter: drop-shadow(0 0 7px #38d0ff) drop-shadow(0 0 22px rgba(56, 208, 255, 0.9)); }
.fsat-b { fill: #9cc2ff; filter: drop-shadow(0 0 8px #3b82ff) drop-shadow(0 0 20px rgba(59, 130, 255, 0.9)); }
/* Horizonte de planeta con luz de borde */
.planet { position: absolute; left: 50%; top: 76%; width: 150%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: radial-gradient(circle at 50% 0%, rgba(90, 150, 255, 0.5), rgba(25, 50, 140, 0.35) 22%, rgba(5, 11, 31, 0.95) 48%); border-top: 1px solid rgba(160, 200, 255, 0.7); box-shadow: 0 -2px 60px rgba(80, 150, 255, 0.7), 0 -30px 140px rgba(59, 130, 255, 0.45); }
.stars { position: absolute; inset: 0; }
.stars i { position: absolute; width: var(--s, 2px); height: var(--s, 2px); border-radius: 50%; background: #cfe0ff; opacity: 0.2; animation: twinkle var(--t, 4s) ease-in-out infinite; animation-delay: var(--dl, 0s); }
@keyframes twinkle { 50% { opacity: 0.95; transform: scale(1.7); box-shadow: 0 0 8px rgba(160, 200, 255, 0.9); } }

/* ═════ Microinteracciones ═════ */
::selection { background: var(--blue-2); color: #fff; }
html { scrollbar-color: var(--sb) var(--bg); scrollbar-width: thin; interpolate-size: allow-keywords; }
.brand svg { transition: transform 0.5s cubic-bezier(0.3, 1.6, 0.5, 1); }
.brand:hover svg { transform: rotate(-14deg) scale(1.1); }
.ripple { position: absolute; border-radius: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; background: rgba(255, 255, 255, 0.55); pointer-events: none; animation: ripple 0.6s ease-out forwards; }
.btn-ghost .ripple, .sim-chips .ripple { background: rgba(56, 208, 255, 0.45); }
@keyframes ripple { to { transform: scale(34); opacity: 0; } }
.sim-chips button { position: relative; overflow: hidden; }
.bx .ic { transition: transform 0.4s cubic-bezier(0.3, 1.6, 0.5, 1), background 0.3s; }
.bx:hover .ic { transform: rotate(-8deg) scale(1.12); background: rgba(59, 130, 255, 0.28); }
.step .no { transition: filter 0.3s; } .step:hover .no { filter: brightness(1.7); }
.vs li { transition: transform 0.25s, color 0.25s; } .vs li:hover { transform: translateX(6px); color: var(--text-strong); }
.vs .before li:hover { color: var(--text-2); }
.src { transition: transform 0.25s, border-color 0.2s, background 0.2s; } .src:hover { transform: translateY(-4px); }
.trust span { transition: transform 0.2s, color 0.2s; } .trust span:hover { transform: translateY(-2px); color: var(--text); }
.checks div { transition: transform 0.25s; } .checks div:hover { transform: translateX(5px); }
.checks svg { transition: transform 0.35s cubic-bezier(0.3, 1.8, 0.5, 1); } .checks div:hover svg { transform: scale(1.3) rotate(-8deg); }
.f-row { transition: transform 0.2s; } .f-row:hover { transform: translateX(4px); }
.item { transition: transform 0.2s, border-color 0.2s; } .item:hover { transform: translateX(4px); border-color: var(--line-2); }
.vault:hover .co { border-color: var(--cyan); }
.result { transition: box-shadow 0.4s; } .result:hover { box-shadow: 0 30px 100px -20px rgba(56, 208, 255, 0.55); }
.pill b { animation: tagpulse 3s ease-in-out infinite; } @keyframes tagpulse { 50% { box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.25); } }
/* Preguntas: se abren con animación de altura (donde el navegador lo permite) */
details::details-content { block-size: 0; overflow: clip; transition: block-size 0.4s ease, content-visibility 0.4s allow-discrete; }
details[open]::details-content { block-size: auto; }
@media (prefers-reduced-motion: reduce) { .blob, .fglow, .stars i, .pill b { animation: none !important; } .layer, .fl { transition: none; } }

.fcontent .eyebrow, .fcontent h2, .fcontent .lede { text-shadow: 0 2px 26px rgba(5, 11, 31, 0.95), 0 0 8px rgba(5, 11, 31, 0.8); }

/* ═════ Tema claro ═════ */
html[data-theme="light"] {
  --bg: #f3f6fd; --bg-2: #ffffff;
  --panel: rgba(255, 255, 255, 0.72); --panel-2: rgba(255, 255, 255, 0.96);
  --line: rgba(25, 55, 140, 0.12); --line-2: rgba(25, 55, 140, 0.22);
  --text: #0a1535; --muted: #56658a; --text-2: #34446e; --text-strong: #050d26;
  --accent: #0a66d6; --ok: #059669;
  --fill: rgba(25, 55, 140, 0.04); --fill-2: rgba(25, 55, 140, 0.08); --track: rgba(25, 55, 140, 0.14);
  --win-a: rgba(255, 255, 255, 0.97); --win-b: rgba(241, 246, 255, 0.98);
  --wa-bg: #eaf1fe; --nav-bg: rgba(243, 246, 253, 0.78); --dot: #c5d2ee; --chip-fg: #46577f; --ic: #2563eb; --sb: #b6c6ea;
  --empty: rgba(86, 101, 138, 0.6); --sys-fg: #047857; --tag-fg: #0369a1;
  --b-hot-bg: rgba(239, 68, 68, 0.12); --b-hot: #b91c1c;
  --b-warm-bg: rgba(245, 158, 11, 0.16); --b-warm: #92580a;
  --b-cool-bg: rgba(14, 165, 233, 0.14); --b-cool: #0369a1;
  --b-won-bg: rgba(16, 185, 129, 0.14); --b-won: #047857;
  --g1: #1d4ed8; --g2: #0e7fd8; --g3: #3b82f6;
  --no-a: rgba(37, 99, 235, 0.4);
  --o1: rgba(37, 99, 235, 0.32); --o2: rgba(37, 99, 235, 0.24);
  --glow-shadow: rgba(37, 99, 235, 0.22); --glow-shadow-2: rgba(37, 99, 235, 0.2); --quote-shadow: rgba(20, 50, 130, 0.28);
  color-scheme: light;
}
[data-theme="light"] .blob { opacity: 0.55; }
[data-theme="light"] .glow { opacity: 0.5; }
[data-theme="light"] .hero-bg::before { opacity: 0.55; }
[data-theme="light"] .cursor-glow { mix-blend-mode: normal; background: radial-gradient(closest-side, rgba(59, 130, 255, 0.18), rgba(56, 208, 255, 0.05) 55%, transparent); }
[data-theme="light"] .cosmos .sat { fill: #0ea5e9; filter: drop-shadow(0 0 6px rgba(14, 165, 233, 0.7)); }
[data-theme="light"] .cosmos .sat.s-b { fill: #3b82f6; filter: drop-shadow(0 0 6px rgba(59, 130, 246, 0.7)); }
[data-theme="light"] .sat::after { background: #0ea5e9; box-shadow: 0 0 14px 3px rgba(14, 165, 233, 0.55); }
[data-theme="light"] .sat.s2::after { background: #3b82f6; box-shadow: 0 0 14px 3px rgba(59, 130, 246, 0.5); }
[data-theme="light"] .m.in, [data-theme="light"] .card { background: #fff; }
[data-theme="light"] .src { background: rgba(255, 255, 255, 0.85); }
[data-theme="light"] .result { background: linear-gradient(160deg, rgba(37, 99, 235, 0.14), rgba(14, 165, 233, 0.05) 70%); }
[data-theme="light"] .quote { border: 1px solid var(--line-2); }
[data-theme="light"] .btn-ghost { background: rgba(255, 255, 255, 0.8); }
[data-theme="light"] .sliders input::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(59, 130, 255, 0.22), 0 4px 12px rgba(20, 50, 130, 0.3); }
[data-theme="light"] .link-chip, [data-theme="light"] .chip { background: rgba(255, 255, 255, 0.8); }

/* El cierre es siempre una escena nocturna: conserva los colores oscuros en los dos temas */
.final-box {
  --text: #eaf0ff; --muted: #8d9bc2; --text-2: #c9d5f3; --text-strong: #fff; --accent: #38d0ff;
  --g1: #6aa5ff; --g2: #38d0ff; --g3: #9be7ff; --line-2: rgba(160, 185, 255, 0.26);
  color: var(--text);
}

/* ═════ Botón de tema ═════ */
.theme-btn { position: relative; margin-left: auto; flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; transition: border-color 0.2s, background 0.2s, transform 0.2s, box-shadow 0.3s; }
.theme-btn:hover { border-color: var(--accent); transform: rotate(18deg) scale(1.06); box-shadow: 0 0 22px -4px var(--accent); }
.theme-btn svg { position: absolute; width: 20px; height: 20px; transition: transform 0.6s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.35s; }
.theme-btn .i-sun { color: #fbbf24; } .theme-btn .i-moon { color: #3b82f6; }
html:not([data-theme="light"]) .theme-btn .i-moon { opacity: 0; transform: rotate(-120deg) scale(0.4); }
html[data-theme="light"] .theme-btn .i-sun { opacity: 0; transform: rotate(120deg) scale(0.4); }
@media (max-width: 640px) { .theme-btn { width: 38px; height: 38px; } }
html.switching *, html.switching *::before, html.switching *::after { transition: none !important; }

/* ═════ Transición: un planeta cruza la pantalla ═════ */
.warp { position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none; overflow: hidden; }
.warp.on { visibility: visible; pointer-events: auto; }
.wplanet { position: absolute; left: 0; top: 0; width: 1000px; height: 1000px; margin: -500px 0 0 -500px; will-change: transform; transform: translate(-999px, -999px) scale(0); }
.wsphere { position: absolute; inset: 0; border-radius: 50%; overflow: hidden; box-shadow: 0 0 140px 30px var(--wglow), inset -90px -80px 200px rgba(0, 0, 40, 0.55); }
.wsurface { position: absolute; inset: 0; background: var(--wsurf); }
.wtex { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: soft-light; opacity: 0.95; animation: wdrift 2.4s ease-in-out infinite alternate; }
@keyframes wdrift { from { transform: translateX(-3%) scale(1.06); } to { transform: translateX(3%) scale(1.06); } }
.wlights { position: absolute; inset: 0; opacity: var(--wlights, 0); background-image: radial-gradient(circle, #fff 0 1.4px, transparent 2px), radial-gradient(circle, #9fb6ff 0 1.2px, transparent 2px), radial-gradient(circle, #fff 0 1px, transparent 1.6px); background-size: 58px 51px, 83px 77px, 37px 41px; background-position: 0 0, 21px 30px, 11px 7px; mask-image: radial-gradient(circle at 70% 75%, #000, transparent 70%); -webkit-mask-image: radial-gradient(circle at 70% 75%, #000, transparent 70%); }
.wshade { position: absolute; inset: 0; background: radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.4), transparent 34%), radial-gradient(circle at 78% 82%, rgba(0, 4, 40, 0.55), transparent 62%); }
.wring { position: absolute; left: 50%; top: 50%; width: 2400px; height: 560px; margin: -280px 0 0 -1200px; transform: rotate(-20deg); pointer-events: none; }
.wring i { position: absolute; inset: 0; border-radius: 50%; border: 30px solid var(--wr1); box-shadow: inset 0 0 0 14px var(--wr2), 0 0 70px var(--wglow); }
.wring-back i { clip-path: inset(0 0 50% 0); } .wring-front i { clip-path: inset(50% 0 0 0); }
.warp.to-light { --wglow: rgba(170, 210, 255, 0.9); --wr1: rgba(255, 255, 255, 0.92); --wr2: rgba(150, 195, 255, 0.75); --wlights: 0;
  --wsurf: radial-gradient(circle at 30% 26%, #ffffff 0%, #e6f2ff 15%, #a3ceff 38%, #4a86ff 66%, #1c3fb8 100%); }
.warp.to-dark { --wglow: rgba(100, 120, 255, 0.85); --wr1: rgba(170, 185, 255, 0.85); --wr2: rgba(70, 90, 230, 0.8); --wlights: 0.9;
  --wsurf: radial-gradient(circle at 68% 30%, #8294ff 0%, #3a4fd0 22%, #121e6e 50%, #050a2c 100%); }
.wflash { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: radial-gradient(circle at var(--fx, 50%) var(--fy, 50%), var(--wflash, #fff), transparent 62%); }
.warp.to-dark .wflash { --wflash: #8aa0ff; }
.wstreaks { position: absolute; inset: -25%; opacity: 0; pointer-events: none; background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(255, 255, 255, 0.7) 0 0.35deg, transparent 0.35deg 3.1deg); -webkit-mask-image: radial-gradient(circle, transparent 14%, #000 72%); mask-image: radial-gradient(circle, transparent 14%, #000 72%); }

.r-big small { display: block; margin-top: 4px; line-height: 1.15; }
.fcontent .grad { text-shadow: none; filter: drop-shadow(0 2px 14px rgba(5, 11, 31, 0.9)); }
.fcontent .eyebrow { text-shadow: none; }
