/* Fuentes propias (variables, subconjunto latino) precargadas desde el mismo sitio */
@font-face { font-family: "Inter"; src: url("fonts/inter.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 500 700; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Fuentes de respaldo con las métricas de Inter y Space Grotesk: el cambio de fuente no mueve el texto */
@font-face { font-family: "Inter Fallback"; src: local("Arial"), local("Helvetica Neue"), local("Roboto"); size-adjust: 105.6%; ascent-override: 91.8%; descent-override: 22.7%; line-gap-override: 0%; }
@font-face { font-family: "Grotesk Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"), local("Arial"); font-weight: 500 700; size-adjust: 101.5%; ascent-override: 96.6%; descent-override: 28.6%; line-gap-override: 0%; }

/* ============ Tokens ============ */
:root {
  --bg: #070b14;
  --bg-2: #0a1020;
  --surface: rgba(14, 22, 38, .9);
  --surface-solid: #0f1829;
  --surface-2: #131e33;
  --sub: #16233b;
  --line: rgba(148, 163, 184, .14);
  --line-2: rgba(148, 163, 184, .24);
  --text: #e8eef8;
  --text-2: #b6c2d6;
  --muted: #8392ab;
  --green: #2ee6a6;
  --green-d: #10b981;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --amber: #fbbf24;
  --red: #f87171;
  --grad: linear-gradient(92deg, #2ee6a6 0%, #38bdf8 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 20px 50px -20px rgba(0,0,0,.6);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --head-h: 64px;
  --f-head: "Space Grotesk", "Grotesk Fallback", "Inter Fallback", system-ui, sans-serif;
  --f-body: "Inter", "Inter Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--f-head); line-height: 1.12; margin: 0; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(46, 230, 166, .3); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 200; background: var(--green); color: #04130d; padding: 8px 14px; border-radius: 8px; font-weight: 600; }
.skip:focus { left: 8px; }
[hidden] { display: none !important; }

/* Palabras clave resaltadas */
.k { color: var(--green); font-weight: 600; font-style: normal; }
.kc { color: var(--cyan); font-weight: 600; }
.kw { color: var(--amber); font-weight: 600; }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cap { text-transform: capitalize; }
.num { font-variant-numeric: tabular-nums; }
.micro { font-size: .78rem; color: var(--muted); margin-top: 14px; }
.right { text-align: right; }

/* ============ Fondo ============ */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; transform: translateZ(0); }
.bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(148,163,184,.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
/* Halos con degradé radial: mismo efecto que un blur, sin filtro (se pinta una sola vez) */
.glow { position: absolute; border-radius: 50%; }
.g1 { width: 900px; height: 900px; top: -400px; right: -340px; background: radial-gradient(closest-side, rgba(14,165,164,.32), rgba(14,165,164,.12) 55%, transparent); }
.g2 { width: 760px; height: 760px; top: 170px; left: -390px; background: radial-gradient(closest-side, rgba(29,78,216,.2), rgba(29,78,216,.07) 55%, transparent); }

/* ============ Barra demo ============ */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .76rem; color: var(--text-2); padding: 6px 16px; background: rgba(251,191,36,.07); border-bottom: 1px solid rgba(251,191,36,.18); text-align: center; }
/* El pulso anima solo transform y opacity (lo resuelve la GPU, sin repintar) */
.dot-live { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--green); flex: none; display: inline-block; }
.dot-live::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: rgba(46,230,166,.55); animation: pulse 2s 3; }
.demo-bar .dot-live { background: var(--amber); }
.demo-bar .dot-live::after { content: none; }
.saber { animation: saber 2s ease-in-out infinite; }
@keyframes saber { 50% { opacity: .6; } }
@keyframes pulse { 0% { transform: scale(1); opacity: .9; } 70%, 100% { transform: scale(3.2); opacity: 0; } }
/* Animaciones infinitas en pausa cuando no se ven */
[data-anim]:not(.en-vista), [data-anim]:not(.en-vista) *, [data-anim]:not(.en-vista) *::before, [data-anim]:not(.en-vista) *::after { animation-play-state: paused !important; }

/* ============ Cabecera ============ */
.site-header { position: sticky; top: 0; z-index: 50; }
.nav-main {
  display: flex; align-items: center; gap: 20px;
  height: var(--head-h);
  padding: 0 max(24px, calc((100% - 1152px) / 2));
  background: rgba(7, 11, 20, .94);
  border-bottom: 1px solid var(--line);
  transition: background .2s;
}
.scrolled .nav-main { background: rgba(7, 11, 20, .97); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--f-head); font-size: 1.25rem; letter-spacing: -.02em; flex: none; }
.brand svg { width: 30px; height: 30px; }
.brand b { font-weight: 700; }
.brand span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

.nav-links { display: flex; gap: 2px; margin: 0 auto; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 10px; font-size: .94rem; font-weight: 500; color: var(--text-2); transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--text); background: rgba(148,163,184,.08); }
.nav-links a.active { color: var(--text); background: rgba(46,230,166,.1); box-shadow: inset 0 0 0 1px rgba(46,230,166,.25); }

.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.search-btn { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(148,163,184,.06); color: var(--muted); font-size: .88rem; transition: border-color .15s, color .15s; }
.search-btn:hover { border-color: var(--line-2); color: var(--text); }
.search-btn svg, .ex-search svg, .faq-search svg, .pal-input svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; flex: none; }
kbd { font: 500 .7rem var(--f-body); padding: 2px 6px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(0,0,0,.25); }

/* Segundo renglón: claro y de lado a lado */
.nav-sub { background: var(--sub); border-bottom: 1px solid var(--line-2); box-shadow: 0 10px 30px -18px rgba(0,0,0,.8); animation: drop .25s var(--ease); }
.nav-sub ul { display: flex; justify-content: center; gap: 6px; padding: 0 16px; }
.nav-sub a { display: flex; align-items: center; gap: 8px; padding: 13px 20px; font-weight: 600; font-size: .93rem; color: var(--text-2); border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.nav-sub a i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.nav-sub a:hover { color: var(--text); }
.nav-sub a.active { color: var(--text); border-bottom-color: var(--green); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

/* ============ Botones ============ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 600; font-size: .95rem; white-space: nowrap; transition: transform .15s var(--ease), box-shadow .2s, background .2s, border-color .2s; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad); color: #03140e; box-shadow: 0 8px 24px -8px rgba(46,230,166,.55); }
.btn-primary:hover { box-shadow: 0 10px 30px -6px rgba(46,230,166,.7); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn-ghost { background: rgba(148,163,184,.08); border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(148,163,184,.14); }
.btn-wa { background: #25d366; color: #052e16; }
.btn-wa svg { fill: #052e16; stroke: none; }
.btn-wa:hover { background: #3be07a; transform: translateY(-1px); }
.btn-lg { height: 52px; padding: 0 26px; font-size: 1rem; border-radius: 14px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: .86rem; border-radius: 10px; }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 0; color: var(--cyan); font-weight: 500; font-size: .88rem; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.link-arrow { color: var(--green); font-weight: 600; white-space: nowrap; }
.link-arrow:hover { text-decoration: underline; }
.icon-btn { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(7,11,20,.6); color: var(--text-2); transition: color .15s, background .15s, border-color .15s, transform .15s; flex: none; }
.icon-btn svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linejoin: round; }
.icon-btn:hover { color: var(--text); border-color: var(--line-2); background: rgba(148,163,184,.12); }
.icon-btn.on { color: var(--amber); border-color: rgba(251,191,36,.5); background: rgba(251,191,36,.12); }
.icon-btn.on svg { fill: currentColor; }
.icon-btn[data-cmp].on { color: var(--cyan); border-color: rgba(56,189,248,.5); background: rgba(56,189,248,.12); }
.icon-btn[data-cmp].on svg { fill: none; }
.icon-btn.lg { width: 44px; height: 44px; border-radius: 12px; }

/* ============ Comunes ============ */
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.eyebrow { display: inline-block; font: 600 .74rem var(--f-body); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-bottom: 12px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border-radius: 999px; border: 1px solid rgba(46,230,166,.3); background: rgba(46,230,166,.07); font-size: .8rem; color: var(--text-2); margin-bottom: 22px; }
.lead { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--text-2); max-width: 58ch; margin-top: 18px; line-height: 1.65; }
.sec-head { margin-bottom: 36px; max-width: 760px; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.sec-lead { color: var(--text-2); margin-top: 12px; font-size: 1.04rem; max-width: 62ch; }
.sec-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; max-width: none; flex-wrap: wrap; }
.block { padding: 96px 0; position: relative; }
.block-alt { background: linear-gradient(180deg, rgba(15,24,41,.55), rgba(15,24,41,.25)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block-tight { padding-top: 0; }
.legend { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: .76rem; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--c, var(--green)); margin-right: -8px; }
.legend .l-base { background: var(--green); height: 3px; border-radius: 2px; width: 14px; }
.legend .l-band { background: rgba(46,230,166,.25); }

/* Secciones largas: al abrir la vista se saltean las lejanas y se dibujan de a una en ratos libres (app.js) */
.view > .block:not(.visto), .view > .cta-final:not(.visto) { content-visibility: auto; contain-intrinsic-size: auto 760px; }
.ex-results.cards > .card { content-visibility: auto; contain-intrinsic-size: auto 470px; }
/* Tarjetas del panel: la primera vez se dibujan recién al acercarse; después quedan fijas (sin recalcular al scrollear) */
.dash-grid > .dcard:not(.visto), .acct > .dcard:not(.visto), .timebox:not(.visto) { content-visibility: auto; contain-intrinsic-size: auto 420px; }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } }


/* ============ Hero ============ */
.hero { padding: 72px 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 700; letter-spacing: -.035em; max-width: 18ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.trust-row { display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 12px 28px; margin-top: 32px; font-size: .9rem; color: var(--text-2); }
.trust-row li { display: flex; align-items: center; gap: 10px; }
.trust-row svg { width: 20px; height: 20px; stroke: var(--green); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.hero-panel { padding: 22px; position: relative; overflow: hidden; }
.hero-panel::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(46,230,166,.6), transparent 40%, transparent 60%, rgba(56,189,248,.5)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.hp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hp-label { font-size: .8rem; color: var(--muted); }
.hp-value { font: 700 2rem var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.badge-up::before { content: ""; display: inline-block; border: 4.5px solid transparent; border-top: 0; border-bottom: 7px solid currentColor; margin-right: 6px; vertical-align: 1px; }
.badge-up { font-size: .78rem; font-weight: 600; color: var(--green); background: rgba(46,230,166,.12); border: 1px solid rgba(46,230,166,.3); padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.hp-chart { position: relative; margin: 8px -6px 6px; min-height: 220px; }
/* Espacio reservado para que el panel no salte cuando el script dibuja gráfico y lista */
#hero-list { min-height: 191px; }
@media (max-width: 480px) { .hp-chart { min-height: 200px; } }
.hp-list li { display: flex; align-items: center; gap: 12px; padding: 10px 8px; border-radius: 10px; cursor: pointer; transition: background .15s; }
.hp-list li:hover { background: rgba(148,163,184,.07); }
.hp-list i { width: 8px; height: 30px; border-radius: 4px; background: var(--c); flex: none; }
.hp-list span { flex: 1; font-weight: 600; font-size: .92rem; }
.hp-list small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.hp-next { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(56,189,248,.08); border: 1px solid rgba(56,189,248,.2); font-size: .86rem; color: var(--text-2); }
.hp-next svg { width: 16px; height: 16px; stroke: var(--cyan); stroke-width: 2; fill: none; }
.hp-note { font-size: .7rem; color: var(--muted); text-align: right; margin-top: 8px; }

.partners { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 32px; margin-top: 64px; padding-top: 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; }
.partners li { display: flex; align-items: center; gap: 8px; }
.partners svg { width: 18px; height: 18px; stroke: var(--text-2); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-top: 8px; }
.stat { padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19,30,51,.8), rgba(15,24,41,.4)); }
.stat strong { display: block; font: 700 clamp(1.4rem, 2.4vw, 1.9rem) var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { font-size: .84rem; color: var(--muted); }

/* ============ Gráficos ============ */
.chart { position: relative; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.grid { stroke: rgba(148,163,184,.1); stroke-width: 1; }
.ax { fill: var(--muted); font: 500 11px var(--f-body); }
.ax-t { fill: var(--text-2); font: 600 11px var(--f-body); }
.draw { stroke-dasharray: 2000; stroke-dashoffset: 2000; animation: draw 1.2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.cross { stroke: rgba(148,163,184,.4); stroke-dasharray: 3 3; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; transform: translate(-50%, calc(-100% - 14px)); background: #0b1324; border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: .78rem; white-space: nowrap; opacity: 0; transition: opacity .12s; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.chart-tip.on { opacity: 1; }
.chart-tip b { display: block; color: var(--muted); font-weight: 500; font-size: .72rem; }
.chart-tip small { display: block; color: var(--muted); }
.donut { max-width: 220px; margin: 0 auto; }
.donut circle[data-l] { transition: stroke-dasharray .5s var(--ease), stroke-dashoffset .5s var(--ease); }
.donut-c { fill: var(--text); font: 700 17px var(--f-head); }
.donut-s { fill: var(--muted); font: 500 7.5px var(--f-body); }
.gauge { max-width: 190px; margin: 0 auto; }
.gauge-v { fill: var(--text); font: 700 18px var(--f-head); }
.gauge-l { fill: var(--muted); font: 500 8px var(--f-body); }
.scatter .pt { cursor: pointer; transition: opacity .2s; }
.scatter .pt:hover .halo, .scatter .pt:focus .halo { opacity: .4; }
.scatter .pt.dim { opacity: .15; }
.scatter .pt:focus { outline: none; }

/* ============ Cómo funciona ============ */
.how { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.how-steps { display: grid; gap: 10px; }
.how-steps button { width: 100%; text-align: left; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 14px; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(15,24,41,.5); transition: border-color .2s, background .2s; position: relative; overflow: hidden; }
.how-steps button span { grid-row: span 2; font: 700 1.05rem var(--f-head); color: var(--muted); align-self: center; }
.how-steps b { font: 600 1.05rem var(--f-head); }
.how-steps small { color: var(--muted); font-size: .9rem; }
.how-steps button[aria-selected="true"] { border-color: rgba(46,230,166,.45); background: rgba(46,230,166,.06); }
.how-steps button[aria-selected="true"] span { color: var(--green); }
.how-steps button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; background: var(--grad); animation: fill 3.2s linear; width: 100%; transform-origin: left; }
@keyframes fill { from { transform: scaleX(0); } }
.how-visual { padding: 24px; display: flex; flex-direction: column; justify-content: center; gap: 20px; }
.how-cap { padding: 18px 20px; border-radius: 14px; background: rgba(7,11,20,.5); border: 1px solid var(--line); animation: viewIn .3s var(--ease); }
.how-cap span { font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.how-cap b { display: block; font: 600 1.25rem var(--f-head); margin: 4px 0 6px; }
.how-cap p { color: var(--text-2); }

/* Diagramas */
.diagram { width: 100%; height: auto; }
.dg-t { fill: var(--text); font: 600 13px var(--f-head); }
.dg-s { fill: var(--muted); font: 500 10.5px var(--f-body); }
.dg-l { fill: var(--text-2); font: 500 11px var(--f-body); }
.dg-ic { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-in { display: inline-block; width: 1.1em; height: 1.1em; vertical-align: -.18em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dg-n { font: 700 15px var(--f-head); }
.dg-op { fill: var(--muted); font: 700 22px var(--f-head); }
.dg-yes { fill: var(--green); font: 700 12px var(--f-head); }
.dg-no { fill: var(--red); font: 700 12px var(--f-head); }
.dg-node { transition: opacity .3s, transform .3s; transform-box: fill-box; transform-origin: center; }
[data-step] .dg-node { opacity: .5; }
[data-step] .dg-node.on { opacity: 1; transform: scale(1.06); }
.dg-anim { stroke-dashoffset: 0; animation: dash 1.4s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.dg-progress { stroke-dasharray: 520; stroke-dashoffset: 520; animation: draw 2s var(--ease) forwards; }

/* ============ Videos ============ */
.videos { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.video-main { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #000; }
.video-main iframe { width: 100%; height: 100%; border: 0; display: block; }
.yt { position: relative; width: 100%; height: 100%; padding: 0; border: 0; background: #000; display: block; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .75; transition: opacity .2s, transform .4s var(--ease); }
.yt:hover img { opacity: .9; transform: scale(1.02); }
.yt-play { position: absolute; inset: 0; display: grid; place-items: center; }
.yt-play svg { width: 72px; filter: drop-shadow(0 6px 20px rgba(0,0,0,.6)); transition: transform .2s; }
.yt:hover .yt-play svg { transform: scale(1.08); }
.yt-meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 20px 16px; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.yt-meta b { display: block; font: 600 1.05rem var(--f-head); }
.yt-meta small { color: var(--text-2); }
.video-list { display: grid; gap: 10px; align-content: start; }
.video-list button { width: 100%; display: grid; grid-template-columns: 128px 1fr; gap: 14px; align-items: center; padding: 10px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15,24,41,.5); text-align: left; transition: border-color .2s, background .2s; }
.video-list img { width: 128px; height: auto; aspect-ratio: 16/9; object-fit: cover; border-radius: 8px; background: #000; }
.video-list b { display: block; font-size: .92rem; font-weight: 600; line-height: 1.3; }
.video-list small { color: var(--muted); font-size: .8rem; }
.video-list li.on button, .video-list button:hover { border-color: rgba(46,230,166,.4); background: rgba(46,230,166,.05); }

/* ============ Constructor de cartera ============ */
.builder { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 0; overflow: hidden; }
.builder > *, .how > *, .videos > *, .layers > *, .hero-grid > * { min-width: 0; }
.b-controls { padding: 28px; border-right: 1px solid var(--line); display: grid; gap: 20px; align-content: start; }
.b-output { padding: 28px; display: grid; gap: 20px; align-content: start; background: rgba(7,11,20,.35); }
.seg { display: inline-flex; padding: 4px; border-radius: 12px; background: rgba(7,11,20,.6); border: 1px solid var(--line); gap: 4px; }
.seg button { border: 0; background: none; padding: 9px 16px; border-radius: 9px; font-weight: 600; font-size: .88rem; color: var(--muted); transition: background .15s, color .15s; }
.seg button[aria-checked="true"] { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px rgba(46,230,166,.35); }
.seg-sm button { padding: 6px 12px; font-size: .82rem; }
.field { display: grid; gap: 10px; font-size: .9rem; font-weight: 600; color: var(--text-2); }
.field > span { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.field output { color: var(--text); font: 700 1.05rem var(--f-head); font-variant-numeric: tabular-nums; }

input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 99px; background: linear-gradient(90deg, var(--c, var(--green)), var(--c, var(--cyan))) 0 / var(--fill, 0%) 100% no-repeat, rgba(148,163,184,.18); outline-offset: 6px; cursor: pointer; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--green); box-shadow: 0 0 0 4px rgba(46,230,166,.15); cursor: grab; transition: transform .15s; }
input[type=range]::-webkit-slider-thumb:active { transform: scale(1.15); cursor: grabbing; }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--green); cursor: grab; }

.alloc { display: grid; gap: 14px; padding-top: 6px; border-top: 1px solid var(--line); }
.alloc-row { display: grid; grid-template-columns: 1fr 120px 44px; gap: 12px; align-items: center; }
.ar-name { display: flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; }
.ar-name i { width: 10px; height: 10px; border-radius: 3px; background: var(--c); flex: none; }
.ar-name small { display: block; font-weight: 400; color: var(--muted); font-size: .76rem; }
.alloc-row input[type=range]::-webkit-slider-thumb { border-color: var(--c); width: 16px; height: 16px; border-width: 3px; }
.alloc-row output { font: 700 .95rem var(--f-head); text-align: right; font-variant-numeric: tabular-nums; }

.b-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.kpi { padding: 14px; border-radius: 12px; background: rgba(15,24,41,.7); border: 1px solid var(--line); min-width: 0; }
.kpi span { display: block; font-size: .76rem; color: var(--muted); }
.kpi strong { display: block; font: 700 clamp(1.15rem, 2vw, 1.5rem) var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin: 2px 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi:first-child strong { color: var(--green); }
.kpi small { font-size: .74rem; color: var(--muted); }
.b-charts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: center; }
.b-gauge { text-align: center; }
.b-gauge > p:first-of-type { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.b-div { font-size: .82rem; color: var(--text-2); margin-top: 8px; }
.b-area-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; font-size: .9rem; }
.b-suggest { padding-top: 18px; border-top: 1px solid var(--line); }
.b-suggest > b { font-size: .9rem; }
.sug { display: grid; gap: 8px; margin-top: 10px; }
.sug button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(15,24,41,.6); text-align: left; transition: border-color .15s, transform .15s; }
.sug button:hover { border-color: var(--c); transform: translateX(3px); }
.sug i { width: 6px; height: 28px; border-radius: 3px; background: var(--c); flex: none; }
.sug span { flex: 1; font-weight: 600; font-size: .9rem; }
.sug small { display: block; color: var(--muted); font-weight: 400; font-size: .78rem; }

/* ============ Tarjetas ============ */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.card { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, rgba(19,30,51,.85), rgba(12,19,34,.85)); overflow: hidden; cursor: pointer; transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--c) 45%, transparent); box-shadow: 0 24px 50px -24px color-mix(in srgb, var(--c) 45%, transparent); }
.card-art { width: 100%; height: 84px; display: block; border-bottom: 1px solid var(--line); }
.card-actions { position: absolute; top: 10px; right: 10px; display: flex; gap: 6px; z-index: 2; }
.card-in { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.card h3 { font-size: 1.16rem; }
.card-link { background: none; border: 0; padding: 0; text-align: left; font: inherit; color: var(--text); }
.card-link:hover { color: var(--green); }
.place { display: flex; align-items: center; gap: 5px; font-size: .84rem; color: var(--muted); margin-top: 4px; }
.place svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; flex: none; }
.desc { font-size: .9rem; color: var(--text-2); margin: 12px 0 16px; flex: 1; }
.tag { font-size: .72rem; font-weight: 600; color: var(--text-2); background: rgba(148,163,184,.1); border: 1px solid var(--line); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.risk { display: inline-block; font-size: .72rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; border: 1px solid; }
.risk-bajo { color: var(--green); background: rgba(46,230,166,.1); border-color: rgba(46,230,166,.3); }
.risk-medio { color: var(--amber); background: rgba(251,191,36,.1); border-color: rgba(251,191,36,.3); }
.risk-alto { color: var(--red); background: rgba(248,113,113,.1); border-color: rgba(248,113,113,.3); }
.kpis { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.kpis strong { display: block; font: 700 1rem var(--f-head); font-variant-numeric: tabular-nums; }
.kpis span { display: block; font-size: .72rem; line-height: 1.3; color: var(--muted); margin-top: 2px; }
.k-rent { color: var(--green) !important; }
.kpis .k-rent { font-size: 1.25rem; }
.progress { height: 6px; background: rgba(148,163,184,.14); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--w); background: var(--grad); border-radius: inherit; box-shadow: 0 0 12px rgba(46,230,166,.5); animation: grow .9s var(--ease); transform-origin: left; }
/* Crece con transform (lo resuelve la GPU, sin recalcular el layout en cada cuadro) */
@keyframes grow { from { transform: scaleX(0); } }
.progress.sm { height: 4px; width: 80px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.progress.lg { height: 8px; margin-top: 18px; }
.progress-meta { display: flex; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); margin-top: 8px; }
.progress-meta b { color: var(--text); }
.progress-meta span:last-child { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.progress-meta svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2; fill: none; }
.guarantee { display: flex; gap: 8px; align-items: flex-start; font-size: .82rem; line-height: 1.4; color: var(--text-2); margin-top: 14px; min-height: 2.8em; }
.guarantee svg { width: 16px; height: 16px; flex: none; margin-top: 1px; stroke: var(--green); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }
.guarantee.big { font-size: .95rem; min-height: 0; padding: 14px; border-radius: 12px; background: rgba(46,230,166,.06); border: 1px solid rgba(46,230,166,.2); }

/* ============ Seguridad ============ */
.layers { display: grid; grid-template-columns: .7fr 1.3fr; gap: 24px; }
.layer-list { display: grid; gap: 8px; align-content: start; }
.layer-list button { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(15,24,41,.5); font: 600 1rem var(--f-head); text-align: left; transition: border-color .2s, background .2s, transform .2s; }
.layer-list button span { font-size: .8rem; color: var(--muted); font-family: var(--f-body); }
.layer-list button[aria-selected="true"] { border-color: var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); transform: translateX(4px); }
.layer-list button[aria-selected="true"] span { color: var(--c); }
.layer-panel { display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: center; padding: 28px; animation: viewIn .3s var(--ease); }
.rings { width: 100%; max-width: 240px; }
.rings circle { transition: all .35s var(--ease); }
.lp-txt h3 { font-size: 1.4rem; margin-bottom: 10px; }
.lp-txt > p:not(.eyebrow) { color: var(--text-2); }
.lp-txt ul { margin-top: 16px; display: grid; gap: 8px; }
.lp-txt li, .rg li { position: relative; padding-left: 26px; color: var(--text-2); font-size: .94rem; }
.lp-txt li::before, .rg li::before { content: ""; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: rgba(46,230,166,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12l4 4 8-8' stroke='%232ee6a6' stroke-width='3' fill='none'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* ============ Historial y tablas ============ */
.hist { padding: 6px; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.track { min-width: 720px; }
th { text-align: left; font: 600 .7rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--line); }
td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
td small { display: block; font-weight: 400; color: var(--muted); font-size: .78rem; }
.up { color: var(--green); font-weight: 700; }
.up::before { content: "▲ "; font-size: .65rem; }
.down { color: var(--amber); font-weight: 700; }
.down::before { content: "▼ "; font-size: .65rem; }
.eq { font-weight: 700; }
.hist-chart { padding: 18px; }
.list { min-width: 760px; }
.list tbody tr { cursor: pointer; transition: background .15s; }
.list tbody tr:hover { background: rgba(148,163,184,.05); }
.dotc { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 8px; }

/* ============ FAQ ============ */
.faq-tools { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.faq-search, .ex-search { display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7,11,20,.6); color: var(--muted); min-width: min(380px, 100%); flex: 1; transition: border-color .15s, box-shadow .15s; }
.faq-search:focus-within, .ex-search:focus-within { border-color: rgba(46,230,166,.5); box-shadow: 0 0 0 4px rgba(46,230,166,.1); }
.faq-search input, .ex-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; color: var(--text); font: inherit; outline: none; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.tabs button { border: 1px solid var(--line); background: rgba(15,24,41,.5); padding: 8px 14px; border-radius: 999px; font-size: .86rem; font-weight: 600; color: var(--text-2); transition: all .15s; }
.tabs button:hover { color: var(--text); }
.tabs button[aria-selected="true"] { color: #03140e; background: var(--grad); border-color: transparent; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: rgba(15,24,41,.5); overflow: hidden; transition: border-color .2s; }
.faq details[open] { border-color: rgba(46,230,166,.3); background: rgba(15,24,41,.8); }
.faq summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 18px 52px 18px 20px; cursor: pointer; list-style: none; font: 600 1.02rem var(--f-head); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 20px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fq-cat { font: 600 .68rem var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--cyan); background: rgba(56,189,248,.1); padding: 3px 8px; border-radius: 6px; }
.fq-dg { font: 500 .72rem var(--f-body); color: var(--violet); }
.fq-dg::before { content: ""; display: inline-block; width: .5em; height: .5em; background: currentColor; transform: rotate(45deg); margin-right: .45em; vertical-align: .08em; }
.fq-a { padding: 0 20px 20px; color: var(--text-2); animation: viewIn .25s var(--ease); }
.fq-a > p { max-width: 75ch; font-size: .98rem; line-height: 1.7; }
.fq-diagram { margin-top: 18px; padding: 16px; border-radius: 12px; background: rgba(7,11,20,.55); border: 1px solid var(--line); max-width: 760px; }
.empty { padding: 32px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--text-2); }

/* ============ CTA ============ */
.cta-final { padding: 80px 0; background: radial-gradient(800px 300px at 20% 0%, rgba(46,230,166,.15), transparent 60%), radial-gradient(700px 300px at 90% 100%, rgba(56,189,248,.12), transparent 60%); border-top: 1px solid var(--line); }
.cta-grid { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta-final h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); max-width: 20ch; }
.cta-final p { color: var(--text-2); margin-top: 10px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ============ Páginas internas ============ */
.page-head { padding: 72px 0 88px; position: relative; }
.page-head::after { content: ""; position: absolute; inset: auto 0 0 0; height: 1px; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--c, #2ee6a6) 50%, transparent), transparent); }
.page-head-sm { padding: 56px 0 84px; }
.page-head h1 { font-size: clamp(2rem, 4.4vw, 3.2rem); max-width: 22ch; letter-spacing: -.03em; }
.page-head .eyebrow { color: var(--c, var(--green)); }

.story { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; }
.story h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 16px; }
.story p { color: var(--text-2); font-size: 1.04rem; line-height: 1.75; margin-top: 12px; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--green), var(--cyan), transparent); }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--green); }
.timeline span { font: 700 1.2rem var(--f-head); color: var(--green); }
.timeline p { color: var(--text-2); margin-top: 2px; font-size: .95rem; }

.team { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.member { padding: 26px 22px; text-align: center; transition: transform .25s var(--ease), border-color .25s; }
.member:hover { transform: translateY(-4px); border-color: rgba(46,230,166,.35); }
.avatar { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(46,230,166,.25), 0 0 0 7px rgba(46,230,166,.06); }
.member h3 { font-size: 1.2rem; }
.role { color: var(--green); font-weight: 600; font-size: .84rem; margin: 4px 0 12px; }
.member > p:not(.role) { color: var(--text-2); font-size: .9rem; line-height: 1.6; }
.member blockquote { margin: 14px 0 0; padding: 10px 12px; border-radius: 10px; background: rgba(46,230,166,.07); border-left: 3px solid var(--green); font-style: italic; font-size: .88rem; color: var(--text); text-align: left; }

.gov, .fees { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fees { grid-template-columns: repeat(3, 1fr); }
.gov > div, .fees > div { padding: 24px; }
.gov svg { width: 28px; height: 28px; stroke: var(--green); stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 14px; }
.gov h3, .fees h3 { font-size: 1.05rem; margin-bottom: 6px; }
.gov p, .fees p { color: var(--text-2); font-size: .9rem; }
.fees strong { display: block; font: 700 2rem var(--f-head); background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 8px; }

/* ============ Explorador ============ */
.cat-tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: -44px; margin-bottom: 28px; position: relative; }
.cat-tile { display: flex; align-items: center; gap: 14px; padding: 18px; transition: transform .2s var(--ease), border-color .2s; }
.cat-tile:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.ct-ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); flex: none; }
.ct-ic svg { width: 24px; height: 24px; stroke: var(--c); stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile h2 { font-size: 1.15rem; }
.cat-tile p { font-size: .84rem; color: var(--muted); }
.cat-tile p b { color: var(--text); }
.cat-tile div { flex: 1; }
.cat-tile .arrow { color: var(--c); font-size: 1.2rem; transition: transform .2s; }
.cat-tile:hover .arrow { transform: translateX(4px); }

.sum-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 28px; }
[data-explorer]:not([data-explorer=""]) .sum-grid { margin-top: -44px; position: relative; }
.sum-grid > div { padding: 18px 20px; }
.sum-grid strong { display: block; font: 700 1.4rem var(--f-head); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum-grid span { font-size: .82rem; color: var(--muted); }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.why div { padding-left: 16px; border-left: 2px solid var(--green); }
.why h3 { font-size: 1rem; margin-bottom: 4px; }
.why p { font-size: .9rem; color: var(--text-2); }
.warn { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; margin-bottom: 28px; border-radius: 14px; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.3); color: #fde68a; font-size: .92rem; }
.warn svg { width: 22px; height: 22px; flex: none; stroke: var(--amber); stroke-width: 2; fill: none; stroke-linejoin: round; stroke-linecap: round; }

.explorer { display: grid; grid-template-columns: 1fr; gap: 20px; }
.ex-map { padding: 20px 20px 12px; }
.ex-map-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: 6px; font-size: .92rem; }
.ex-map .chart { max-width: 780px; margin: 0 auto; }
.ex-bar { display: grid; gap: 12px; margin-bottom: 14px; }
.ex-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips-f { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-f button, .chip-tog { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: rgba(15,24,41,.5); padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--text-2); transition: all .15s; }
.chips-f button i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chips-f button[aria-pressed="true"], .chip-tog[aria-pressed="true"] { color: var(--text); border-color: rgba(46,230,166,.5); background: rgba(46,230,166,.1); }
.chip-tog svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 2; fill: none; }
.chip-tog[aria-pressed="true"] svg { fill: var(--amber); stroke: var(--amber); }
select { height: 38px; padding: 0 34px 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: rgba(7,11,20,.6) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 9l6 6 6-6' stroke='%238392ab' stroke-width='2' fill='none'/%3E%3C/svg%3E") right 10px center / 16px no-repeat; color: var(--text); font: 500 .86rem var(--f-body); -webkit-appearance: none; appearance: none; cursor: pointer; }
select option { background: var(--surface-solid); }
.ex-row .seg { margin-left: auto; }
.ex-count { font-size: .88rem; color: var(--muted); margin-bottom: 14px; }
.ex-count b { color: var(--text); }

/* ============ Modales ============ */
dialog { color: var(--text); }
.modal { border: 1px solid var(--line-2); padding: 0; border-radius: 20px; width: min(760px, calc(100% - 24px)); max-height: min(92vh, 900px); background: #0b1222; box-shadow: 0 40px 120px rgba(0,0,0,.7); overflow: hidden; }
.modal[open] { animation: pop .28s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.modal::backdrop { background: rgba(3,6,12,.8); }
.modal-wide { width: min(980px, calc(100% - 24px)); }
.modal-sm { width: min(480px, calc(100% - 24px)); }
.modal-body { max-height: min(92vh, 900px); overflow-y: auto; overscroll-behavior: contain; position: relative; }
#compare-body, #quiz-body { padding: 32px; }
.m-hero { position: relative; }
.m-hero .card-art { height: 110px; }
.m-close { position: absolute; top: 14px; right: 14px; }
.m-close-abs { position: absolute; top: 16px; right: 16px; z-index: 2; }
.m-in { padding: 24px 32px 32px; }
.m-in h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 20px; }
.facts div { padding: 12px 14px; border-radius: 12px; background: rgba(19,30,51,.8); border: 1px solid var(--line); }
.facts span { display: block; font-size: .72rem; color: var(--muted); }
.facts strong { display: block; font: 700 1.1rem var(--f-head); margin-top: 2px; }
.facts small { display: block; font-size: .7rem; color: var(--muted); line-height: 1.3; margin-top: 2px; }
.m-tabs { margin: 24px 0 18px; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
.m-panel { animation: viewIn .25s var(--ease); }
.m-panel > p { color: var(--text-2); margin-bottom: 12px; line-height: 1.7; }
.m-flujo-txt { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: rgba(46,230,166,.06); border: 1px solid rgba(46,230,166,.2); color: var(--text-2); font-size: .94rem; }
.m-panel .chart { margin-top: 14px; }
.rg { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.rg h4 { font-size: .95rem; margin-bottom: 10px; }
.rg ul { display: grid; gap: 8px; }
.kw-h { color: var(--amber); }
.k-h { color: var(--green); }
.rg div:first-child li::before { background: rgba(251,191,36,.15) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 7v6m0 4v.01' stroke='%23fbbf24' stroke-width='3' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") center / 11px no-repeat; }
.docs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.docs li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(19,30,51,.6); font-size: .88rem; }
.docs svg { width: 16px; height: 16px; stroke: var(--muted); stroke-width: 1.8; fill: none; flex: none; }
.docs span { margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--green); }
.m-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--line); }
.m-cta .btn:first-child { flex: 1; min-width: 160px; }

.cmp { min-width: 600px; }
.cmp th { text-transform: none; letter-spacing: 0; font: 600 .86rem var(--f-body); color: var(--muted); }
.cmp thead th { font: 600 1rem var(--f-head); color: var(--text); vertical-align: bottom; }
.cmp thead small { display: block; font: 400 .78rem var(--f-body); color: var(--muted); }
.cmp td { font-weight: 500; }
.cmp td small { display: block; font-size: .72rem; }
.cmp td.best { background: rgba(46,230,166,.08); box-shadow: inset 2px 0 0 var(--green); }
#compare-body h2 { font-size: 1.6rem; padding-right: 40px; }

.quiz-prog { height: 4px; border-radius: 4px; background: rgba(148,163,184,.15); margin-bottom: 24px; overflow: hidden; }
.quiz-prog span { display: block; height: 100%; background: var(--grad); transition: width .3s; }
#quiz-body h2 { font-size: 1.45rem; margin-bottom: 20px; padding-right: 30px; }
#quiz-body > p:not(.eyebrow) { color: var(--text-2); margin-bottom: 22px; }
.quiz-ops { display: grid; gap: 10px; }
.quiz-ops button { padding: 16px 18px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(19,30,51,.7); text-align: left; font-weight: 600; transition: border-color .15s, background .15s, transform .15s; }
.quiz-ops button:hover { border-color: var(--green); background: rgba(46,230,166,.08); transform: translateX(3px); }

/* Buscador */
.palette { border: 1px solid var(--line-2); padding: 0; border-radius: 18px; width: min(640px, calc(100% - 24px)); margin-top: 12vh; background: #0b1222; box-shadow: 0 40px 120px rgba(0,0,0,.7); }
.palette[open] { animation: pop .2s var(--ease); }
.palette::backdrop { background: rgba(3,6,12,.72); }
.pal-input { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.pal-input input { flex: 1; height: 58px; border: 0; background: none; color: var(--text); font: 500 1.05rem var(--f-body); outline: none; min-width: 0; }
.pal-list { max-height: 50vh; overflow-y: auto; padding: 8px; }
.pal-list li { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: 10px; cursor: pointer; }
.pal-list li[aria-selected="true"] { background: rgba(46,230,166,.1); }
.pal-list li span:nth-child(2) { flex: 1; min-width: 0; }
.pal-list b { display: block; font-weight: 600; font-size: .94rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-list small { color: var(--muted); font-size: .8rem; }
.pk { font: 600 .66rem var(--f-body); letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); background: rgba(56,189,248,.1); padding: 3px 7px; border-radius: 6px; width: 74px; text-align: center; flex: none; }
.pal-list li kbd { opacity: 0; }
.pal-list li[aria-selected="true"] kbd { opacity: 1; }
.pal-empty { color: var(--muted); justify-content: center; cursor: default !important; }

/* ============ Comparación (bandeja) ============ */
.compare-tray { position: fixed; z-index: 60; left: 50%; bottom: 20px; transform: translateX(-50%); width: max-content; display: flex; align-items: center; gap: 10px; padding: 10px 10px 10px 14px; max-width: calc(100% - 24px); background: rgba(11,18,34,.92); animation: up .3s var(--ease); }
@keyframes up { from { opacity: 0; transform: translate(-50%, 20px); } }
.ct-items { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.ct-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: 999px; background: rgba(56,189,248,.12); border: 1px solid rgba(56,189,248,.3); font-size: .82rem; font-weight: 600; white-space: nowrap; }
.ct-chip button { border: 0; background: rgba(0,0,0,.25); width: 20px; height: 20px; border-radius: 50%; font-size: .7rem; color: var(--text-2); }
.ct-hint { font-size: .78rem; color: var(--muted); padding: 0 4px; }
.ct-count { display: none; font-size: .88rem; color: var(--text-2); white-space: nowrap; }
.ct-count b { color: var(--cyan); }

/* ============ Botones flotantes y chat ============ */
.fabs { position: fixed; right: 20px; bottom: 20px; z-index: 70; display: grid; gap: 12px; justify-items: end; transition: bottom .3s var(--ease); }
.has-tray .fabs { bottom: 92px; }
.fab { display: flex; align-items: center; gap: 10px; height: 56px; min-width: 56px; padding: 0 16px; border-radius: 999px; border: 0; box-shadow: 0 12px 30px -8px rgba(0,0,0,.6); transition: transform .2s var(--ease), box-shadow .2s, padding .3s var(--ease); justify-content: center; }
.fab:hover { transform: translateY(-2px) scale(1.03); }
.fab-wa { background: #25d366; color: #052e16; font-weight: 700; }
.fab-wa svg { width: 28px; height: 28px; }
.fab-wa svg path { fill: #fff; }
.fab-chat { background: var(--grad); color: #03140e; width: 56px; padding: 0; }
.fab-chat svg { width: 26px; height: 26px; stroke: #03140e; stroke-width: 2; fill: none; stroke-linejoin: round; }
.fab-label { white-space: nowrap; overflow: hidden; max-width: 120px; transition: max-width .3s var(--ease), opacity .2s; }
.fab-compact .fab-wa { padding: 0; width: 56px; }
.chat-open .fab-wa { opacity: 0; pointer-events: none; transform: scale(.8); }
.fab-compact .fab-label { max-width: 0; opacity: 0; }

.chat { position: fixed; z-index: 80; right: 20px; bottom: 88px; width: min(390px, calc(100% - 24px)); height: min(600px, calc(100vh - 120px)); height: min(600px, calc(100dvh - 120px)); display: flex; flex-direction: column; overflow: hidden; background: rgba(11,18,34,.96); opacity: 0; transform: translateY(16px) scale(.98); pointer-events: none; visibility: hidden; transition: opacity .22s var(--ease), transform .22s var(--ease), visibility 0s .22s; transform-origin: bottom right; }
.chat.open { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition: opacity .22s var(--ease), transform .22s var(--ease); }
.has-tray .chat { bottom: 160px; height: min(560px, calc(100dvh - 190px)); }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.chat-head > div { flex: 1; }
.chat-head b { display: block; font-family: var(--f-head); }
.chat-head small { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: .76rem; }
.chat-av { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--grad); color: #03140e; font: 700 .85rem var(--f-head); }
.chat-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; overscroll-behavior: contain; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.5; animation: viewIn .2s var(--ease); }
.msg-bot { background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--text-2); }
.msg-bot b { color: var(--text); }
.msg-user { background: rgba(46,230,166,.15); border: 1px solid rgba(46,230,166,.3); border-bottom-right-radius: 4px; align-self: flex-end; }
.msg .btn { margin-top: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button { border: 1px solid rgba(56,189,248,.35); background: rgba(56,189,248,.08); color: var(--cyan); padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 600; transition: background .15s; }
.chips button:hover { background: rgba(56,189,248,.18); }
.typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 50% { opacity: .2; transform: translateY(-2px); } }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form input { flex: 1; min-width: 0; height: 42px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7,11,20,.7); color: var(--text); font: inherit; font-size: .92rem; outline: none; }
.chat-form input:focus { border-color: rgba(46,230,166,.5); }
.chat-form .btn { width: 42px; height: 42px; padding: 0; }
.chat-form .btn svg { fill: #03140e; stroke: none; }

/* Toasts */
.toasts { position: fixed; z-index: 90; left: 50%; top: 84px; transform: translateX(-50%); display: grid; gap: 8px; width: max-content; max-width: calc(100% - 24px); }
.toast { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-radius: 12px; background: #13203a; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0,0,0,.5); font-size: .9rem; animation: viewIn .25s var(--ease); transition: opacity .3s, transform .3s; }
.toast.out { opacity: 0; transform: translateY(-8px); }
.toast button { border: 0; background: var(--grad); color: #03140e; font-weight: 700; padding: 6px 12px; border-radius: 8px; font-size: .82rem; flex: none; }

/* ============ Pie ============ */
.site-footer { border-top: 1px solid var(--line); background: rgba(5,8,15,.8); padding: 56px 0 28px; font-size: .9rem; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--line); }
.footer-grid > div p { margin: 12px 0 16px; max-width: 34ch; }
.site-footer h4 { font: 600 .74rem var(--f-body); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.site-footer nav { display: grid; gap: 8px; align-content: start; }
.site-footer nav a:hover { color: var(--text); }
.foot-wa { display: inline-flex; align-items: center; gap: 8px; color: #4ade80; font-weight: 600; }
.foot-wa svg { width: 18px; height: 18px; fill: #4ade80; }
.legal { padding-top: 22px; display: grid; gap: 10px; font-size: .78rem; line-height: 1.6; }
.legal b { color: var(--text-2); }

/* ============ Responsive ============ */
@media (min-width: 1600px) {
  .wrap { max-width: 1320px; }
  .nav-main { padding: 0 max(24px, calc((100% - 1272px) / 2)); }
}

@media (max-width: 1100px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stats .stat:nth-child(n+4) { grid-column: span 1; }
  .team { grid-template-columns: repeat(2, 1fr); }
  .gov { grid-template-columns: repeat(2, 1fr); }
  .search-btn span, .search-btn kbd { display: none; }
  .search-btn { width: 38px; padding: 0; justify-content: center; }
}

@media (max-width: 960px) {
  .hero-grid, .how, .videos, .builder, .layers, .story { grid-template-columns: minmax(0, 1fr); }
  .hero-panel { max-width: none; }
  .b-controls { border-right: 0; border-bottom: 1px solid var(--line); }
  .layer-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .layer-list button[aria-selected="true"] { transform: none; }
  .cat-tiles, .sum-grid { grid-template-columns: repeat(2, 1fr); }
  .why { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .video-list { grid-template-columns: repeat(3, 1fr); }
  .video-list button { grid-template-columns: 1fr; }
  .video-list img { width: 100%; }
}

@media (max-width: 720px) {
  :root { --head-h: auto; }
  html { scroll-padding-top: 112px; }
  .wrap { padding: 0 16px; }
  .nav-main { flex-wrap: wrap; gap: 6px 10px; padding: 10px 16px 0; }
  .nav-links { order: 3; width: 100%; margin: 0; justify-content: space-between; border-top: 1px solid var(--line); padding: 4px 0; }
  .nav-links a { padding: 9px 10px; font-size: .9rem; }
  .nav-actions { margin-left: auto; }
  .nav-sub ul { padding: 0 4px; gap: 0; justify-content: space-around; }
  .nav-sub a { padding: 11px 8px; font-size: .86rem; gap: 6px; }
  .hero { padding: 40px 0 24px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .trust-row { grid-template-columns: 1fr; }
  .partners { justify-content: flex-start; gap: 10px 20px; margin-top: 40px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats .stat:last-child { grid-column: span 2; }
  .block { padding: 64px 0; }
  .b-controls, .b-output { padding: 20px; }
  .b-controls .seg { display: flex; width: 100%; }
  .b-controls .seg button { flex: 1; padding: 9px 6px; font-size: .84rem; }
  .b-kpis { grid-template-columns: 1fr 1fr; }
  .b-kpis .kpi:first-child { grid-column: span 2; }
  .alloc-row { grid-template-columns: 1fr 44px; }
  .alloc-row input { grid-column: 1 / -1; grid-row: 2; }
  .layer-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .layer-list button { padding: 12px; gap: 8px; font-size: .9rem; }
  .layer-panel { grid-template-columns: 1fr; padding: 20px; justify-items: center; text-align: left; }
  .rings { max-width: 180px; }
  .video-list { grid-template-columns: 1fr; }
  .video-list button { grid-template-columns: 112px 1fr; }
  .video-list img { width: 112px; }
  .cards { grid-template-columns: 1fr; }
  .team, .gov, .fees { grid-template-columns: 1fr; }
  .cat-tiles { grid-template-columns: 1fr; margin-top: -48px; }
  .sum-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .sum-grid strong { font-size: 1.15rem; }
  .ex-row select { flex: 1; min-width: 140px; }
  .ex-row .seg { margin-left: 0; }
  .facts { grid-template-columns: 1fr 1fr; }
  .m-in .progress-meta { flex-direction: column; gap: 2px; }
  .m-in .progress-meta span:last-child { white-space: normal; }
  .modal, .modal-wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 20px 20px 0 0; max-height: 94dvh; border-bottom: 0; }
  .modal .modal-body { max-height: 94dvh; }
  .modal[open] { animation: sheet .3s var(--ease); }
  @keyframes sheet { from { transform: translateY(40px); opacity: 0; } }
  .rg, .docs { grid-template-columns: 1fr; }
  .m-in { padding: 20px 18px 24px; }
  #compare-body, #quiz-body { padding: 24px 18px; }
  .footer-grid { grid-template-columns: 1fr; }
  .cta-actions { width: 100%; }
  .cta-actions .btn { flex: 1 1 100%; }
  .fabs { right: 14px; bottom: 14px; }
  .fab { height: 50px; min-width: 50px; }
  .fab-chat { width: 50px; }
  .fab-wa svg { width: 26px; height: 26px; }
  .chat { right: 12px; bottom: 76px; }
  .compare-tray { bottom: 14px; left: 12px; right: 78px; transform: none; max-width: none; padding: 8px 8px 8px 14px; }
  .ct-items { flex: 1; }
  .ct-chip, .ct-hint { display: none; }
  .ct-count { display: inline; }
  .fab-wa { padding: 0; width: 50px; }
  .fab-label { display: none; }
  .has-tray .fabs { bottom: 76px; }
  .has-tray .chat { bottom: 200px; height: min(520px, calc(100dvh - 230px)); }
  @keyframes up { from { opacity: 0; transform: translateY(20px); } }
  .toasts { top: 120px; }
  .demo-bar { font-size: .7rem; }
}

/* Celular en horizontal: menos alto */
@media (max-height: 500px) and (orientation: landscape) {
  .site-header { position: relative; }
  .fab-wa { padding: 0; width: 50px; }
  .fab-label { display: none; }
  .fab { height: 50px; min-width: 50px; }
  .fab-chat { width: 50px; }
  .fabs { right: 14px; bottom: 14px; gap: 10px; }
  .has-tray .fabs { bottom: 14px; right: 14px; }
  .compare-tray { bottom: 12px; left: 12px; transform: none; padding: 8px 8px 8px 14px; animation: none; }
  .ct-chip, .ct-hint { display: none; }
  .ct-count { display: inline; }
  html { scroll-padding-top: 20px; }
  .hero { padding: 28px 0 16px; }
  .chat { height: calc(100dvh - 24px); bottom: 12px; right: 84px; }
  .modal, .modal-body { max-height: 96vh; }
  .palette { margin-top: 4vh; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ============ Cuenta demo, bonos y pagos ============ */
.chart-tip small i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.chart-tip.tip-l { transform: translate(calc(-100% + 18px), calc(-100% - 14px)); }
.chart-tip.tip-r { transform: translate(-18px, calc(-100% - 14px)); }
.bars rect { transition: opacity .15s; }
.bars rect.lo { opacity: .35; }
.bars-i { cursor: pointer; }
.donut-i circle[data-i] { cursor: pointer; transition: stroke-width .15s, opacity .15s, stroke-dasharray .5s var(--ease), stroke-dashoffset .5s var(--ease); outline: none; }
.donut-i circle[data-i].hi, .donut-i circle[data-i]:focus-visible { stroke-width: 18; }
.donut.has-hi circle[data-i]:not(.hi) { opacity: .4; }
.legend .l-dash { width: 16px; height: 0; border-top: 2px dashed #94a3b8; border-radius: 0; background: none; }
.legend .l-goal { width: 16px; height: 0; border-top: 2px dashed var(--amber); border-radius: 0; background: none; }
.legend .l-fut { background: rgba(148,163,184,.35); }
.center { text-align: center; }
.muted { color: var(--text-2); }

/* Cabecera: botón de cuenta */
.acct-btn svg { width: 16px; height: 16px; }
.acct-btn.logged { background: rgba(46,230,166,.1); color: var(--text); border: 1px solid rgba(46,230,166,.35); box-shadow: none; padding-left: 6px; }
.acct-btn.logged:hover { background: rgba(46,230,166,.16); transform: none; box-shadow: none; }
.acct-btn.active:not(.logged) { box-shadow: 0 0 0 2px rgba(46,230,166,.35); }
.avatar-i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--grad); color: #03140e; font: 700 1rem var(--f-head); flex: none; }
.avatar-i.sm { width: 26px; height: 26px; border-radius: 8px; font-size: .72rem; }

/* Bonos */
.bonos-sec { padding-top: 40px; }
.bonos-box { position: relative; padding: 40px; border-radius: 24px; border: 1px solid rgba(46,230,166,.25); background: radial-gradient(700px 260px at 0% 0%, rgba(46,230,166,.14), transparent 60%), radial-gradient(600px 260px at 100% 100%, rgba(167,139,250,.14), transparent 60%), rgba(11,18,34,.75); overflow: hidden; }
.bonos-box::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(180deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%); pointer-events: none; }
.bonos-head { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 28px; }
.bonos-head > div { max-width: 720px; }
.bonos-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.bonos-head .sec-lead { margin-top: 12px; }
.bonos-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.bono { position: relative; padding: 20px; border-radius: 18px; background: rgba(15,24,41,.8); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; transition: transform .2s var(--ease), border-color .2s; overflow: hidden; }
.bono::after { content: ""; position: absolute; right: -40px; top: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .12; filter: blur(20px); pointer-events: none; }
.bono:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 50%, transparent); }
.bono-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); margin-bottom: 6px; }
.bono-ic svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.bono-t { font-size: .78rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .06em; }
.bono-v { font: 700 1.9rem var(--f-head); color: var(--c); letter-spacing: -.02em; line-height: 1.1; }
.bono-d { font-size: .88rem; color: var(--text-2); line-height: 1.5; flex: 1; }
.bono-ej { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: rgba(7,11,20,.6); border: 1px dashed color-mix(in srgb, var(--c) 40%, transparent); font-size: .84rem; color: var(--text-2); }
.bono-ej span { display: block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--c); margin-bottom: 2px; }
.bono-ej b { color: var(--text); }
.bono-calc { position: relative; margin-top: 18px; padding: 20px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; align-items: center; }
.bc-res { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.bc-res > div { padding: 10px 14px; border-radius: 12px; background: rgba(7,11,20,.6); border: 1px solid var(--line); }
.bc-res span { display: block; font-size: .72rem; color: var(--muted); }
.bc-res b { font: 700 1.15rem var(--f-head); font-variant-numeric: tabular-nums; }
.bc-res > i { font-style: normal; color: var(--muted); font-weight: 700; }
.bc-res .bc-tot { border-color: rgba(46,230,166,.45); background: rgba(46,230,166,.08); }
.bc-res .bc-tot b { color: var(--green); }
.bc-res p { flex-basis: 100%; font-size: .86rem; color: var(--text-2); }
.medios-row { position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; }
.mr-l { font-size: .82rem; color: var(--muted); margin-right: 4px; }
.medio-tag { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 7px; border-radius: 12px; background: rgba(15,24,41,.8); border: 1px solid var(--line); }
.medio-tag i { display: grid; place-items: center; min-width: 30px; height: 30px; padding: 0 5px; border-radius: 8px; background: var(--c); color: #fff; font: 700 .7rem var(--f-head); font-style: normal; letter-spacing: .02em; }
.medio-tag b { display: block; font-size: .86rem; font-weight: 600; line-height: 1.2; }
.medio-tag small { display: block; font-size: .72rem; color: var(--muted); line-height: 1.2; }
.medios-row.mini { margin-top: 0; gap: 8px; }
.medios-row.mini .medio-tag { padding: 4px 10px 4px 4px; gap: 8px; }
.medios-row.mini .medio-tag i { min-width: 24px; height: 24px; font-size: .6rem; }
.medios-row.mini b { font-size: .8rem; font-weight: 500; color: var(--text-2); }
.foot-medios { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-top: 22px; font-size: .78rem; color: var(--muted); }

/* Acceso */
.gate { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.gate h1 { font-size: clamp(2rem, 4.2vw, 3rem); max-width: 18ch; letter-spacing: -.03em; }
.gate-list { display: grid; gap: 10px; margin-top: 24px; }
.gate-list li { display: flex; gap: 10px; align-items: center; color: var(--text-2); }
.gate-list svg { width: 22px; height: 22px; padding: 4px; border-radius: 50%; background: rgba(46,230,166,.14); stroke: var(--green); stroke-width: 3; fill: none; flex: none; }
.auth { padding: 28px; display: grid; gap: 18px; }
.auth-tabs { background: rgba(7,11,20,.6); border: 1px solid var(--line); border-radius: 999px; padding: 4px; flex-wrap: nowrap; }
.auth-tabs button { flex: 1; border: 0; background: none; padding: 10px 14px; }
.auth form { display: grid; gap: 14px; animation: viewIn .25s var(--ease); }
.auth .btn { white-space: normal; text-align: center; line-height: 1.25; }
.auth .btn-ghost { height: auto; min-height: 44px; padding: 10px 16px; }
.auth h2 { font-size: 1.4rem; }
.inp { display: grid; gap: 6px; font-size: .84rem; font-weight: 600; color: var(--text-2); }
.inp input { height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: rgba(7,11,20,.7); color: var(--text); font: 500 1rem var(--f-body); outline: none; transition: border-color .15s, box-shadow .15s; min-width: 0; }
.inp input:focus { border-color: rgba(46,230,166,.6); box-shadow: 0 0 0 3px rgba(46,230,166,.15); }
.inp input::placeholder { color: #5b6a84; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--green); margin: 2px 0 0; flex: none; }
.auth-demo { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(251,191,36,.07); border: 1px solid rgba(251,191,36,.25); font-size: .8rem; color: var(--text-2); line-height: 1.5; }
.auth-demo svg { width: 18px; height: 18px; stroke: var(--amber); stroke-width: 2; fill: none; flex: none; margin-top: 1px; }
.auth-demo b { color: var(--amber); }
.spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid rgba(3,20,14,.3); border-top-color: #03140e; animation: rot .7s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }

.nav-links a { white-space: nowrap; }
@media (max-width: 1100px) {
  .nav-cta { display: none; }
  .bonos-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .gate { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .bono-calc { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
@media (max-width: 720px) {
  .nav-cta { display: none; }
  .acct-btn:not(.logged) span { display: none; }
  .acct-btn:not(.logged) { width: 38px; padding: 0; }
  .bonos-box { padding: 24px 18px; border-radius: 20px; }
  .bonos-head .btn { width: 100%; }
  .bonos-grid { grid-template-columns: minmax(0, 1fr); }
  .bono { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; align-items: center; }
  .bono-ic { grid-row: span 2; margin: 0; }
  .bono-d, .bono-ej { grid-column: 1 / -1; }
  .bono-d { margin-top: 8px; }
  .bono-v { font-size: 1.5rem; }
  .bono-calc { padding: 18px; }
  .bc-res > div { flex: 1 1 40%; }
  .bc-res > i { display: none; }
  .medios-row { gap: 8px; }
  .mr-l { flex-basis: 100%; }
  .auth { padding: 20px 18px; }
  .foot-medios { padding-top: 18px; }
}
