/* GenOdds · portada
   Gama azul marino (como la terminal de Pacifica), un acento cian (botones y selección) y verde sólo para el valor positivo. */
:root {
  --sunk: #040d15;
  --bg: #061420;
  --panel: #071722;
  --panel-2: #0f2232;
  --line: rgba(255, 255, 255, .06);
  --line-2: rgba(255, 255, 255, .1);
  --text: #f2f6f9;
  --muted: #8898a8;
  --dim: #6d7e8f;
  --accent: #61d7ef;
  --accent-ink: #031e2a;
  --accent-soft: rgba(97, 215, 239, .14);
  --green: #02c77b;
  --green-bg: rgba(2, 199, 123, .12);
  --red: #eb365a;
  --font: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.65, 0, .35, 1);
  --wrap: min(1200px, calc(100% - 64px));
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
svg { width: 16px; height: 16px; flex: none; }
h1, h2, h3 { margin: 0; font-weight: 500; }
p { margin: 0; }
.muted { color: var(--dim); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; font-weight: 500; white-space: nowrap; transition: background-color .15s var(--ease), color .15s var(--ease), transform .12s var(--ease); }
.btn:active { transform: scale(.98); }
.btn svg { transition: transform .15s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22); }
.btn-primary:hover { background: #82e1f3; }
.btn-ghost { color: var(--text); background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.btn-ghost:hover { background: #13283a; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-lg { height: 48px; padding: 0 20px; font-size: 16px; }

/* ---------- Navegación ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 64px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 0 32px; transition: background-color .2s var(--ease), box-shadow .2s var(--ease); }
.nav.scrolled { background: rgba(6, 20, 32, .9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--line); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 17px; }
.brand svg { width: 24px; height: 24px; color: var(--accent); }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 6px 12px; border-radius: 8px; font-size: 14px; color: var(--muted); transition: color .15s var(--ease), background-color .15s var(--ease); }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-end { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.nav-text { font-size: 14px; color: var(--muted); transition: color .15s var(--ease); }
.nav-text:hover { color: var(--text); }

/* Logotipo: el nombre en una sola tinta */
.wordmark { color: var(--text); font-weight: 600; }
.wordmark em { font-style: normal; color: inherit; }

/* ---------- Portada ---------- */
.hero { padding: 176px 0 0; }
.hero-inner { width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; }
.hero h1 { font-size: clamp(44px, 5.4vw, 72px); line-height: 1.04; letter-spacing: -.03em; max-width: 12ch; }
.hero-sub { font-size: 18px; line-height: 28px; color: var(--muted); max-width: 36rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.rise { opacity: 0; transform: translateY(8px); animation: rise .5s var(--ease) forwards; animation-delay: calc(var(--d) * 50ms + 60ms); }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- Producto: una ventana, sin halo ---------- */
.showcase { position: relative; margin: 64px auto 0; width: min(1280px, calc(100% - 64px)); }
.frame { padding: 8px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line-2), 0 40px 120px -40px rgba(0, 0, 0, .8); }

/* ---------- Escenas: la interfaz animada ---------- */
.stage { position: relative; width: 100%; overflow: hidden; border-radius: 12px; background: var(--sunk); aspect-ratio: var(--ar, 16 / 10); }
.stage .cam { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.stage .app { position: absolute; inset: 0; }
/* Cursor de las escenas: un punto neutro que se encoge al hacer clic */
.cursor { position: absolute; left: 0; top: 0; width: 28px; height: 28px; margin: -14px 0 0 -14px; z-index: 20; border-radius: 50%; pointer-events: none;
  background: rgba(237, 237, 237, .22); box-shadow: inset 0 0 0 1.5px rgba(237, 237, 237, .7), 0 4px 12px rgba(0, 0, 0, .4);
  transition: transform 1.1s var(--ease-io); }
.cursor::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(237, 237, 237, .6); opacity: 0; }
.cursor.click { animation: press .3s var(--ease); }
.cursor.click::after { animation: ripple .5s var(--ease); }
@keyframes press { 40% { scale: .8; } }
@keyframes ripple { 0% { opacity: .7; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.8); } }

.app { font: 15px/1.4 var(--font); color: var(--text); background: var(--bg); }
.app svg { width: 16px; height: 16px; }
.app-bar { height: 60px; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; gap: 24px; padding: 0 24px; border-bottom: 1px solid var(--line); background: var(--sunk); }
.app-logo { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.app-logo svg { width: 20px; height: 20px; color: var(--accent); }
.seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 10px; background: var(--sunk); box-shadow: inset 0 0 0 1px var(--line); font-size: 14px; color: var(--muted); }
.seg > * { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 12px; border-radius: 8px; }
.seg b { font-weight: 500; color: var(--text); background: var(--panel-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.seg.sm { font-size: 13px; }
.seg.sm > * { height: 26px; padding: 0 10px; }
.cnt { font: 500 12px var(--mono); font-style: normal; color: var(--dim); }
.cnt.bump { color: var(--text); }
.app-search { justify-self: center; width: 520px; height: 36px; display: flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--dim); font-size: 14px; }
.app-search kbd { margin-left: auto; font: 500 11px var(--mono); padding: 2px 6px; border-radius: 4px; box-shadow: inset 0 0 0 1px var(--line-2), inset 0 -1px 0 var(--line-2); color: var(--dim); }
.app-live { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); font-variant-numeric: tabular-nums; }
.app-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.app-body { display: grid; grid-template-columns: 248px 1fr; height: calc(100% - 60px); }
.app-side { padding: 16px 12px; border-right: 1px solid var(--line); background: var(--sunk); }
.app-side h6 { margin: 24px 12px 8px; font-size: 12px; font-weight: 500; color: var(--dim); }
.app-side h6:first-child { margin-top: 4px; }
.nav-i { display: flex; align-items: center; gap: 10px; height: 32px; margin-bottom: 2px; padding: 0 10px; border: 1px solid transparent; border-radius: 8px; font-size: 14px; color: var(--muted); }
/* Elemento activo en relieve: paso de tono dentro del gris, línea fina, brillo arriba y sombra corta */
.nav-i.on { color: var(--text); background: linear-gradient(180deg, #13283a, var(--panel)); border-color: rgba(237, 237, 237, .1); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), 0 1px 2px rgba(0, 0, 0, .35), 0 6px 14px -6px rgba(0, 0, 0, .55); }
.nav-i svg { color: var(--dim); }
.nav-i.on svg { color: var(--text); }
.nav-i em { margin-left: auto; font: 400 12px var(--mono); font-style: normal; color: var(--dim); }
/* Fiabilidad: la A rellena, la B en contorno y la C punteada (como en el panel) */
.lv { width: 20px; height: 20px; display: inline-grid; place-items: center; border-radius: 6px; font: 500 11px var(--mono); font-style: normal; flex: none; }
.l-A { color: var(--bg); background: var(--text); }
.l-B { color: var(--text); box-shadow: inset 0 0 0 1px rgba(237, 237, 237, .35); }
.l-C { color: var(--dim); border: 1px dashed rgba(237, 237, 237, .25); }
.app-main { padding: 24px; overflow: hidden; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { padding: 16px 20px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.kpi span { display: block; font-size: 13px; color: var(--dim); }
.kpi b { display: block; margin-top: 4px; font-size: 28px; font-weight: 500; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi b.g, .g { color: var(--green); }
.toolbar { display: flex; justify-content: space-between; margin: 16px 0; }
.ev-card { border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.ev-card + .ev-card { margin-top: 12px; }
.ev-card.dim { opacity: .55; }
.ev-head { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.ev-head > svg { color: var(--dim); width: 18px; height: 18px; }
.ev-head b { display: block; font-weight: 500; }
.ev-head span { font-size: 13px; color: var(--dim); }
.chip { margin-left: auto; font: 500 13px var(--mono); font-style: normal; color: var(--green); }
.grid { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.grid th { text-align: left; font-size: 12px; font-weight: 400; color: var(--dim); padding: 8px 20px; }
.grid td { padding: 0 20px; height: 44px; border-top: 1px solid var(--line); white-space: nowrap; transition: background-color .2s var(--ease); }
.grid .r { text-align: right; }
.grid tr.hl td { background: var(--panel-2); }
.grid .mk { color: var(--muted); }
.grid .per { margin-left: 8px; font-size: 12px; color: var(--dim); }
.grid .sel { font-weight: 500; }
.odd { display: inline-block; min-width: 56px; text-align: center; padding: 4px 8px; border-radius: 6px; font: 500 15px var(--mono); color: var(--green); background: var(--green-bg); transition: background-color .3s, color .3s; }
.odd.up { animation: flashUp 1.2s ease; }
.odd.down { animation: flashDown 1.2s ease; }
@keyframes flashUp { 0% { background: rgba(2, 199, 123, .4); } }
@keyframes flashDown { 0% { background: rgba(235, 54, 90, .4); color: var(--text); } }
.grid .fair { color: var(--dim); font-family: var(--mono); font-size: 14px; }
.grid .ev { color: var(--green); font-family: var(--mono); font-size: 14px; }
.grid .k { color: var(--muted); font-family: var(--mono); font-size: 14px; }
.lvtag { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }

.drawer { position: absolute; top: 60px; right: 0; bottom: 0; width: 472px; padding: 24px; background: var(--panel); box-shadow: -1px 0 0 var(--line-2), -40px 0 80px -20px rgba(0, 0, 0, .6); transform: translateX(105%); transition: transform .5s var(--ease); z-index: 5; }
.drawer.open { transform: none; }
.dr-head b { display: block; font-size: 20px; font-weight: 500; }
.dr-head span { font-size: 14px; color: var(--dim); }
.dr-pick { margin: 20px 0 12px; padding: 12px 16px; border-radius: 12px; background: var(--panel-2); }
.dr-pick span { font-size: 13px; color: var(--dim); }
.dr-pick b { display: block; margin-top: 2px; font-size: 17px; font-weight: 500; }
.dr-odds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dr-odds > div { padding: 12px 16px; border-radius: 12px; background: var(--panel-2); }
.dr-odds > div.best { background: var(--green-bg); }
.dr-odds span { font-size: 13px; color: var(--dim); }
.dr-odds b { display: block; font-size: 32px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.dr-odds .best b { color: var(--green); }
.dr-ev { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 16px 0; font-size: 15px; color: var(--muted); }
.dr-ev b { color: var(--green); font-weight: 500; }
.dr-conf { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.dr-conf .bar, .meter { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.dr-conf .bar i, .meter i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--green); transition: width 1s var(--ease); }
.meter i { background: var(--muted); }
.dr-conf b { font: 500 14px var(--mono); color: var(--green); min-width: 64px; text-align: right; }
.drawer dl { display: grid; grid-template-columns: 1fr auto; gap: 12px 16px; margin: 20px 0 0; font-size: 14px; }
.drawer dt { color: var(--dim); }
.drawer dd { margin: 0; color: var(--text); text-align: right; font-variant-numeric: tabular-nums; }
.drawer dd em { font-style: normal; color: var(--dim); }
.dr-btn { margin-top: 20px; height: 40px; display: flex; align-items: center; justify-content: center; gap: 8px; border-radius: 10px; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.toast { position: absolute; right: 24px; bottom: 24px; z-index: 8; width: 472px; display: flex; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2), 0 20px 60px -10px rgba(0, 0, 0, .7); transform: translateY(12px); opacity: 0; transition: transform .4s var(--ease), opacity .3s var(--ease); }
.toast.show { transform: none; opacity: 1; }
.toast > i { width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--red); flex: none; }
.toast b { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; }
.toast b svg { color: var(--red); width: 14px; height: 14px; }
.toast span { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }

/* Escena: valor esperado */
.app-lite { padding: 32px; background: var(--bg); }
.ev-card.big .grid td { height: 56px; font-size: 16px; }
.ev-card.big .grid th { font-size: 13px; }
.scan td { background: var(--panel-2) !important; }

/* Escena: fiabilidad */
.rel { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: center; }
.rel-card { padding: 28px; border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.rel-meter { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; margin-top: 24px; font-size: 15px; color: var(--muted); }
.rel-meter b { font: 500 16px var(--mono); color: var(--text); min-width: 72px; text-align: right; }
.ring { position: relative; width: 228px; height: 228px; margin: 0 auto; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 8; }
.ring-bg { stroke: rgba(255, 255, 255, .06); }
.ring-fg { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: 314.16; transition: stroke-dashoffset 1.2s var(--ease); }
.ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring b { font-size: 44px; font-weight: 500; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring span { font-size: 14px; color: var(--dim); }
.grades { display: grid; gap: 8px; margin-top: 24px; }
.grades > div { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; font-size: 15px; background: var(--panel); opacity: .5; transition: opacity .3s var(--ease), background-color .3s var(--ease); }
.grades > div span { margin-left: auto; font-size: 13px; color: var(--dim); }
.grades > div.on { opacity: 1; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line-2); }

/* Escena: alertas */
.al-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.al-rule { font: 400 13px var(--mono); color: var(--dim); }
.al-list { display: grid; gap: 8px; }
.al { display: grid; grid-template-columns: 1fr auto auto auto; align-items: center; gap: 24px; padding: 12px 20px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); animation: slideIn .4s var(--ease); }
.al.urgent { box-shadow: inset 2px 0 0 var(--red), inset 0 0 0 1px var(--line); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } }
.al b { display: flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 500; }
.al b svg { color: var(--red); width: 14px; height: 14px; }
.al small { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
.al .num { text-align: right; font-variant-numeric: tabular-nums; }
.al .num span { display: block; font-size: 12px; color: var(--dim); }
.al .num em { font: 500 15px var(--mono); font-style: normal; }
.al .go { height: 32px; padding: 0 12px; display: flex; align-items: center; gap: 6px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Escena: gráfica. El momento de la página: la cuota de Winamax (en el color de acento) frente a la justa */
.ch-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ch-top > div { padding: 16px 20px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.ch-top > div.best { background: var(--green-bg); box-shadow: none; }
.ch-top span { font-size: 13px; color: var(--dim); }
.ch-top b { display: block; font-size: 32px; font-weight: 500; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ch-top .best b { color: var(--green); }
.ch-legend { display: flex; gap: 20px; margin: 24px 0 8px; font-size: 14px; color: var(--muted); }
.ch-legend span { display: inline-flex; align-items: center; gap: 8px; }
.ch-legend i { width: 16px; height: 2px; border-radius: 2px; }
.ch-legend .k1 { background: var(--accent); }
.ch-legend .k2 { background: repeating-linear-gradient(90deg, var(--dim) 0 4px, transparent 4px 7px); }
.ch-legend .k3 { height: 8px; width: 12px; background: rgba(2, 199, 123, .3); }
.app .ch-svg { display: block; width: 100%; height: 330px; overflow: visible; }
.ch-grid line { stroke: rgba(255, 255, 255, .05); stroke-width: 1; }
.ch-wina, .ch-fair { fill: none; stroke-width: 3; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.ch-wina { stroke: var(--accent); stroke-dasharray: 2000; stroke-dashoffset: 2000; }
.ch-fair { stroke: var(--dim); stroke-width: 2; stroke-dasharray: 8 6; opacity: 0; transition: opacity .4s; }
.ch-band { fill: rgba(2, 199, 123, .16); clip-path: inset(0 100% 0 0); }
.ch-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 4; }
.ch-x { display: flex; justify-content: space-between; font: 400 12px var(--mono); color: var(--dim); margin-top: 8px; }
.ch.play .ch-wina { animation: draw 4.5s var(--ease-io) forwards; }
.ch.play .ch-fair { opacity: 1; }
.ch.play .ch-band { animation: reveal 4.5s var(--ease-io) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes reveal { to { clip-path: inset(0 0 0 0); } }

/* ---------- Cifras ---------- */
.stats { width: var(--wrap); margin: 96px auto 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stat { padding: 32px 24px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: 44px; font-weight: 500; letter-spacing: -.02em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat b small { font-size: 24px; margin-left: 4px; color: var(--muted); }
.stat > span { display: block; margin-top: 12px; font-size: 14px; color: var(--muted); max-width: 220px; }

/* ---------- Secciones ---------- */
section { position: relative; }
.section-head { max-width: 720px; }
.section-head h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; }
.section-head p { margin-top: 12px; font-size: 18px; line-height: 28px; color: var(--muted); }

/* ---------- Funciones ---------- */
.features { width: var(--wrap); margin: 128px auto 0; }
.tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 48px; }
.tab { position: relative; text-align: left; padding: 16px 0 0; border-top: 2px solid var(--line-2); }
.tab-bar { position: absolute; left: 0; top: -2px; height: 2px; width: 0; background: var(--text); }
.tab.active .tab-bar { animation: tabfill var(--tab-ms, 9000ms) linear forwards; }
.tab.paused .tab-bar { animation-play-state: paused; }
@keyframes tabfill { to { width: 100%; } }
.tab b { display: block; font-size: 16px; font-weight: 500; color: var(--muted); transition: color .15s var(--ease); }
.tab span { display: block; margin-top: 4px; font-size: 14px; color: var(--dim); transition: color .15s var(--ease); }
.tab:hover b { color: var(--text); }
.tab.active b { color: var(--text); }
.tab.active span { color: var(--muted); }
.feature-card { position: relative; margin-top: 24px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.feature-panel { display: grid; grid-template-columns: 360px 1fr; min-height: 600px; }
.feature-panel[hidden] { display: none; }
.feature-panel:not([hidden]) .acc, .feature-panel:not([hidden]) .media { animation: fade .4s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } }
.acc { list-style: none; margin: 0; padding: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; }
.acc li { border-bottom: 1px solid var(--line); }
.acc li:last-child { border-bottom: 0; }
.acc li.open { flex: 1; }
.acc button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 20px 24px; text-align: left; }
.acc button svg { width: 18px; height: 18px; color: var(--dim); }
.acc button svg.red { color: var(--red); width: 16px; height: 16px; }
.acc li.open button svg { color: var(--text); }
.acc li.open button svg.red { color: var(--red); }
.acc button b { font-size: 16px; font-weight: 500; color: var(--muted); }
.acc li.open button b { color: var(--text); }
.acc li > div { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.acc li.open > div { grid-template-rows: 1fr; }
.acc li > div > * { overflow: hidden; min-height: 0; }
.acc p { padding: 0 24px 0 54px; font-size: 15px; line-height: 24px; color: var(--muted); }
.media { position: relative; display: grid; place-items: center; padding: 40px; background: var(--sunk); }
.media .stage { border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line), 0 24px 64px -24px rgba(0, 0, 0, .8); }
.card-link { position: absolute; right: 24px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); transition: color .15s var(--ease); }
.card-link:hover { color: var(--text); }

/* ---------- En acción ---------- */
.now { width: var(--wrap); margin: 128px auto 0; }
.now-wrap { margin-top: 48px; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.now-grid { display: grid; grid-template-columns: 1.35fr 1fr; grid-template-areas: "feed levels" "kelly bars"; }
.n-feed { grid-area: feed; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.n-levels { grid-area: levels; border-bottom: 1px solid var(--line); }
.n-kelly { grid-area: kelly; border-right: 1px solid var(--line); }
.n-bars { grid-area: bars; }
.ncard { padding: 32px; min-height: 320px; display: flex; flex-direction: column; }
.ncard h3 { font-size: 20px; }
.ncard header p { margin-top: 4px; font-size: 15px; color: var(--muted); }
.ncard > :last-child { padding-top: 24px; }
.feed { display: grid; gap: 8px; height: 236px; overflow: hidden; align-content: start; mask-image: linear-gradient(180deg, #000 70%, transparent); }
.fd { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 20px; padding: 12px 16px; border-radius: 12px; background: var(--panel-2); animation: slideIn .4s var(--ease); }
.fd.urgent { box-shadow: inset 2px 0 0 var(--red); }
.fd b { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 500; }
.fd b svg { color: var(--red); width: 13px; height: 13px; }
.fd small { display: block; font-size: 13px; color: var(--dim); margin-top: 2px; }
/* Firma: cada cuota lleva su precio justo al lado */
.fd .o { display: inline-flex; align-items: baseline; gap: 8px; font: 500 15px var(--mono); color: var(--text); }
.fd .o small { margin: 0; font: 400 12px var(--mono); color: var(--dim); }
.fd .v { font: 500 15px var(--mono); color: var(--green); min-width: 68px; text-align: right; }
.levels { display: grid; gap: 8px; }
.lvl { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--panel-2); }
.lvl .lv { width: 28px; height: 28px; font-size: 13px; border-radius: 8px; }
.lvl b { display: block; font-size: 15px; font-weight: 500; }
.lvl span { display: block; font-size: 13px; color: var(--dim); }
.lvl em { margin-left: auto; font: 500 16px var(--mono); font-style: normal; color: var(--muted); }
.bars { display: grid; gap: 16px; }
.bar { display: grid; grid-template-columns: 168px 1fr 56px; align-items: center; gap: 16px; font-size: 14px; color: var(--muted); }
.bar span { display: flex; align-items: center; gap: 8px; }
.bar span svg { color: var(--dim); }
.bar i { height: 6px; border-radius: 4px; background: rgba(255, 255, 255, .05); position: relative; overflow: hidden; }
.bar i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: #2c4153; transition: width 1s var(--ease); }
.bar:first-child i::after { background: var(--accent); }
.bars.in .bar i::after { width: calc(var(--w) * 1%); }
.bar b { text-align: right; font: 500 14px var(--mono); color: var(--text); }
.kelly { display: grid; gap: 4px; padding: 16px 20px; border-radius: 12px; background: var(--panel-2); }
.k-row { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; font-size: 14px; color: var(--muted); border-bottom: 1px dashed var(--line-2); }
.k-row b { font: 500 15px var(--mono); color: var(--text); text-align: right; }
.k-row b[data-k="sel"] { font-family: var(--font); }
.k-stake { display: flex; justify-content: space-between; align-items: baseline; padding-top: 16px; }
.k-stake span { font-size: 14px; color: var(--muted); }
.k-stake b { font-size: 32px; font-weight: 500; font-variant-numeric: tabular-nums; color: var(--text); }

/* ---------- Cómo funciona ---------- */
.how { width: var(--wrap); margin: 128px auto 0; }
.how-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 48px; }
.hcard { padding: 32px 32px 0; border-radius: 20px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; display: flex; flex-direction: column; }
.hcard h3 { font-size: 20px; }
.hcard > p { margin-top: 8px; font-size: 15px; line-height: 24px; color: var(--muted); }
.diagram { margin: 40px -32px 0; padding: 48px 32px; display: flex; align-items: center; background: var(--sunk); border-top: 1px solid var(--line); }
.dnode { flex: none; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 20px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.dnode b { font-size: 15px; font-weight: 500; }
.dnode span { font-size: 12px; color: var(--dim); }
.dnode.core { box-shadow: inset 0 0 0 1px var(--line-2), inset 0 1px 0 rgba(255, 255, 255, .06); }
.dnode.core svg { width: 24px; height: 24px; color: var(--accent); }
.dline { flex: 1; height: 1px; margin: 0 12px; position: relative; background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.dline i { position: absolute; top: -3px; right: -2px; width: 7px; height: 7px; border-top: 1px solid var(--dim); border-right: 1px solid var(--dim); transform: rotate(45deg); }
.dline.rev i { right: auto; left: -2px; transform: rotate(-135deg); }
.local { margin: 40px -32px 0; padding: 40px 32px; display: flex; align-items: center; gap: 32px; background: var(--sunk); border-top: 1px solid var(--line); }
.lbox { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px 24px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.lbox svg { width: 24px; height: 24px; color: var(--muted); }
.lbox b { font-size: 15px; font-weight: 500; }
.lbox span { font: 400 12px var(--mono); color: var(--dim); }
.local ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.local li { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.ok { width: 16px; height: 16px; position: relative; flex: none; }
.ok::after { content: ""; position: absolute; left: 5px; top: 2px; width: 4px; height: 9px; border: solid var(--green); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* ---------- Preguntas ---------- */
.faq { width: var(--wrap); margin: 128px auto 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.faq h2 { font-size: clamp(32px, 3.4vw, 44px); letter-spacing: -.02em; position: sticky; top: 112px; }
.faq-list { display: grid; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; transition: color .15s var(--ease); }
.faq summary:hover { color: #fff; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--dim); transition: transform .2s var(--ease); }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { padding: 0 48px 24px 0; font-size: 15px; line-height: 24px; color: var(--muted); }

/* ---------- Cierre ---------- */
.final { width: var(--wrap); margin: 128px auto 0; padding: 64px 0 96px; border-top: 1px solid var(--line); }
.final-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.final h2 { font-size: clamp(32px, 3.4vw, 44px); line-height: 1.1; letter-spacing: -.02em; max-width: 18ch; }

/* ---------- Pie ---------- */
.foot { border-top: 1px solid var(--line); background: var(--sunk); padding: 24px 32px; }
.foot-row { display: flex; align-items: center; gap: 24px; }
.foot-row .brand { font-size: 16px; }
.foot-row .brand svg { width: 18px; height: 18px; }
.foot-row span { font-size: 13px; }
.foot-row nav { margin-left: auto; display: flex; gap: 24px; font-size: 14px; color: var(--muted); }
.foot-row nav a { transition: color .15s var(--ease); }
.foot-row nav a:hover { color: var(--text); }
.foot-note { margin-top: 16px; font-size: 12px; color: var(--dim); }

/* ---------- Aparición al bajar ---------- */
.reveal { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.reveal.waiting { opacity: 0; transform: translateY(8px); }

@media (prefers-reduced-motion: reduce) {
  .rise, .reveal, .reveal.waiting { animation: none; opacity: 1; transform: none; transition: none; }
}

/* ---------- Pantallas estrechas ---------- */
@media (max-width: 900px) {
  :root { --wrap: calc(100% - 32px); }
  .nav { grid-template-columns: 1fr auto; padding: 0 16px; }
  .nav-links { display: none; }
  .nav-end { gap: 16px; }
  .hero { padding-top: 112px; }
  .hero-inner { grid-template-columns: 1fr; gap: 20px; }
  .hero h1 { font-size: 40px; line-height: 1.08; }
  .hero-sub { font-size: 17px; line-height: 26px; }
  .showcase { width: calc(100% - 32px); margin-top: 40px; }
  .frame { padding: 4px; border-radius: 12px; }
  .stage { border-radius: 8px; }
  .stats { margin-top: 64px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat, .stat:first-child { padding: 24px 16px 24px 0; border-left: 0; }
  .stat:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .stat b { font-size: 36px; }
  .features, .now, .how, .faq { margin-top: 96px; }
  .tabs { grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 32px; }
  .feature-panel { grid-template-columns: 1fr; min-height: 0; }
  .acc { border-right: 0; border-bottom: 1px solid var(--line); }
  .media { padding: 16px 16px 40px; }
  .now-wrap { margin-top: 32px; }
  .now-grid { grid-template-columns: 1fr; grid-template-areas: "feed" "kelly" "levels" "bars"; }
  .n-feed, .n-kelly { border-right: 0; }
  .n-kelly, .n-levels { border-bottom: 1px solid var(--line); }
  .ncard { padding: 24px 20px; min-height: 0; }
  .fd { gap: 12px; }
  .fd .o small { display: none; }
  .bar { grid-template-columns: 128px 1fr 40px; gap: 12px; }
  .how-grid { grid-template-columns: 1fr; margin-top: 32px; }
  .hcard { padding: 24px 20px 0; }
  .diagram, .local { margin: 32px -20px 0; padding: 32px 20px; }
  .diagram { gap: 0; }
  .dnode { padding: 12px; }
  .local { flex-direction: column; align-items: flex-start; gap: 20px; }
  .faq { grid-template-columns: 1fr; gap: 24px; }
  .faq h2 { position: static; }
  .final { padding: 48px 0 64px; }
  .final-inner { flex-direction: column; align-items: flex-start; }
  .foot { padding: 24px 16px; }
  .foot-row { flex-wrap: wrap; gap: 12px 24px; }
  .foot-row nav { margin-left: 0; width: 100%; }
}

/* «Docs» sin dirección todavía: se ve, pero atenuado y sin cambiar al pasar el ratón */
.nav-links a.pending { color: var(--dim); cursor: default; }
.nav-links a.pending:hover { color: var(--dim); background: none; }

/* Sólo el nombre del logo lleva una letra gruesa y compacta (Plus Jakarta Sans): es la pieza de marca.
   Menú y textos siguen en Geist, como el resto de la interfaz. */
:root { --display: "Plus Jakarta Sans", var(--font); }
.wordmark { font-family: var(--display); font-weight: 800; letter-spacing: -.035em; }
.brand { font-size: 20px; gap: 9px; }
.app-logo { font-size: 18px; }

/* ---------- Fondo de océano ----------
   La portada es una inmersión: arriba la superficie, con luz y rayos de sol entrando en el agua; al bajar el azul se
   oscurece hasta el fondo, donde flota la «nieve marina». El degradado ocupa toda la altura de la página, así que cuanto
   más bajas, más profundo estás. Las capas son decorativas (sin eventos ni animación) y no tapan el contenido. */
html { background: #01060c; }
body {
  position: relative;
  background: linear-gradient(180deg,
    #1b6386 0px,      /* superficie iluminada */
    #145173 420px,
    #0e3c58 1100px,
    #0a2b43 2000px,
    #071d30 3100px,
    #04111f 4300px,
    #01060c 100%);    /* abismo */
}
/* Luz que entra desde la superficie y rayos de sol que se apagan con la profundidad */
body::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1500px; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(205, 245, 255, .16), transparent 140px),
    radial-gradient(90% 55% at 50% -8%, rgba(160, 228, 255, .26), transparent 70%),
    repeating-linear-gradient(103deg, transparent 0 70px, rgba(190, 238, 255, .045) 70px 96px, transparent 96px 190px),
    repeating-linear-gradient(97deg, transparent 0 130px, rgba(190, 238, 255, .035) 130px 150px, transparent 150px 310px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 35%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .7) 35%, transparent 100%);
}
/* Nieve marina: partículas finas que aparecen al bajar y se hacen más visibles en lo profundo */
body::after {
  content: ""; position: absolute; left: 0; right: 0; top: 1000px; bottom: 0; z-index: 0; pointer-events: none;
  background-image:
    radial-gradient(1.4px 1.4px at 18% 22%, rgba(205, 232, 255, .55), transparent),
    radial-gradient(1px 1px at 63% 48%, rgba(205, 232, 255, .45), transparent),
    radial-gradient(1.8px 1.8px at 38% 76%, rgba(205, 232, 255, .35), transparent),
    radial-gradient(1.1px 1.1px at 84% 12%, rgba(205, 232, 255, .5), transparent),
    radial-gradient(1.3px 1.3px at 8% 64%, rgba(205, 232, 255, .4), transparent);
  background-size: 260px 300px, 340px 280px, 420px 380px, 210px 250px, 300px 340px;
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 20%, #000 60%, rgba(0, 0, 0, .8) 100%);
          mask-image: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, .55) 20%, #000 60%, rgba(0, 0, 0, .8) 100%);
}
main, .foot { position: relative; z-index: 1; }
.foot { background: rgba(1, 6, 12, .6); }
/* Arriba el agua es más clara: los textos secundarios se aclaran para leerse bien */
.hero-sub { color: #c3d8e5; }
.nav:not(.scrolled) .nav-links a:not(.pending), .nav:not(.scrolled) .nav-text { color: #c3d8e5; }
.nav:not(.scrolled) .nav-links a.pending { color: #8fb0c4; }
.nav.scrolled { background: rgba(10, 40, 60, .82); }

/* ---------- Océano, más reconocible ----------
   Capa decorativa .ocean (en index.html), detrás del contenido: la superficie vista desde abajo, las cáusticas (la red
   de luz que se forma bajo el agua), rayos de sol, burbujas que suben, un banco de peces, una ballena lejana y el fondo
   marino con rocas y algas. Sólo se animan transformaciones y opacidad (no recolocan la página). */
body {
  background: linear-gradient(180deg,
    #2a93c4 0px, #1d78a6 260px, #155c84 800px, #0f4464 1600px,
    #0a2f48 2500px, #061d30 3500px, #031220 4300px, #01070e 100%);
}
body::before { display: none; }
.ocean { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ocean > * { position: absolute; }

/* Superficie: el agua vista desde abajo, con dos ondas brillantes */
.oc-surface { left: 0; right: 0; top: 0; height: 140px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='70'%3E%3Cpath d='M0 0H640V22Q600 10 560 22T480 22T400 22T320 22T240 22T160 22T80 22T0 22Z' fill='rgba(215,248,255,0.16)'/%3E%3Cpath d='M0 22Q40 10 80 22T160 22T240 22T320 22T400 22T480 22T560 22T640 22' fill='none' stroke='rgba(235,253,255,0.6)' stroke-width='2'/%3E%3Cpath d='M0 38Q40 28 80 38T160 38T240 38T320 38T400 38T480 38T560 38T640 38' fill='none' stroke='rgba(235,253,255,0.22)' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x 0 0 / 640px 70px,
    linear-gradient(180deg, rgba(220, 250, 255, .3), transparent);
  animation: oc-surface 14s linear infinite; }
@keyframes oc-surface { to { background-position: -640px 0, 0 0; } }

/* Cáusticas: red de luz generada con ruido (SVG), muy visible arriba y apagándose con la profundidad */
.oc-caustics { left: -12%; right: -12%; top: -40px; height: 1000px; opacity: .5; mix-blend-mode: screen;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='560' height='560'%3E%3Cfilter id='f' x='0' y='0'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.010 0.014' numOctaves='2' seed='8' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.80 0 0 0 0 0.97 0 0 0 0 1 -7 0 0 0 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") repeat 0 0 / 560px 560px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .6) 40%, transparent 100%);
  animation: oc-caustics 22s ease-in-out infinite alternate; will-change: transform; }
@keyframes oc-caustics { to { transform: translate3d(-60px, 24px, 0) scale(1.05); } }

/* Rayos de sol, más marcados, con un leve vaivén */
.oc-rays { left: -10%; right: -10%; top: 0; height: 1700px; transform-origin: 50% 0;
  background:
    radial-gradient(70% 40% at 50% -5%, rgba(175, 235, 255, .28), transparent 70%),
    repeating-linear-gradient(102deg, transparent 0 80px, rgba(200, 242, 255, .09) 80px 120px, transparent 120px 230px),
    repeating-linear-gradient(95deg, transparent 0 150px, rgba(200, 242, 255, .06) 150px 175px, transparent 175px 360px);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  animation: oc-rays 16s ease-in-out infinite alternate; will-change: transform; }
@keyframes oc-rays { from { transform: skewX(-2deg); } to { transform: skewX(2deg); } }

/* Burbujas que suben por los laterales */
.oc-bubbles { width: 70px; height: 560px; }
.oc-bubbles.b1 { left: 5%; top: 360px; }
.oc-bubbles.b2 { right: 6%; top: 1350px; }
.oc-bubbles.b3 { left: 9%; top: 2450px; }
.oc-bubbles i { position: absolute; bottom: 0; width: 10px; height: 10px; border-radius: 50%; opacity: 0;
  border: 1px solid rgba(215, 247, 255, .55);
  background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, .75) 0 16%, transparent 22%), rgba(190, 238, 255, .07);
  animation: oc-bubble 11s linear infinite; will-change: transform, opacity; }
.oc-bubbles i:nth-child(1) { left: 6px; width: 12px; height: 12px; animation-delay: 0s; }
.oc-bubbles i:nth-child(2) { left: 30px; width: 7px; height: 7px; animation-delay: 1.8s; animation-duration: 9s; }
.oc-bubbles i:nth-child(3) { left: 18px; width: 16px; height: 16px; animation-delay: 3.6s; animation-duration: 13s; }
.oc-bubbles i:nth-child(4) { left: 44px; width: 9px; height: 9px; animation-delay: 5.4s; }
.oc-bubbles i:nth-child(5) { left: 12px; width: 6px; height: 6px; animation-delay: 7.2s; animation-duration: 8s; }
.oc-bubbles i:nth-child(6) { left: 36px; width: 11px; height: 11px; animation-delay: 9s; animation-duration: 12s; }
@keyframes oc-bubble {
  0% { transform: translate3d(0, 0, 0); opacity: 0; }
  10% { opacity: 1; }
  50% { transform: translate3d(10px, -270px, 0); }
  90% { opacity: .8; }
  100% { transform: translate3d(-4px, -540px, 0); opacity: 0; }
}

/* Banco de peces a media profundidad y una ballena lejana, como siluetas */
.oc-fish { right: 7%; top: 1680px; width: 280px; fill: #072a40; opacity: .75; animation: oc-swim 18s ease-in-out infinite alternate; will-change: transform; }
.oc-whale { left: 4%; top: 3050px; width: 460px; fill: #03192a; opacity: .85; animation: oc-swim 30s ease-in-out infinite alternate-reverse; will-change: transform; }
@keyframes oc-swim { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-70px, 14px, 0); } }

/* Fondo marino: rocas y algas al final de la página */
.oc-floor { left: 0; right: 0; bottom: 0; width: 100%; height: 300px; }
.oc-floor .rock { fill: #0a2233; }
.oc-floor .kelp { fill: none; stroke: #0c2c3f; stroke-width: 7; stroke-linecap: round; }

/* Océano, ajustes:
   - cáusticas en una sola pieza grande (sin repetir, así no se ven cortes verticales) y algo más suaves;
   - superficie con las ondas pegadas arriba del todo y un velo bajo el menú, para que los enlaces se lean bien;
   - tamaños propios para las siluetas (la regla general de iconos las dejaba en 16 px) y la ballena en la zona
     libre junto a «Preguntas», ya en lo profundo. */
.oc-caustics { opacity: .36;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1800' height='1000'%3E%3Cfilter id='f' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='turbulence' baseFrequency='0.009 0.013' numOctaves='2' seed='8'/%3E%3CfeColorMatrix values='0 0 0 0 0.80 0 0 0 0 0.97 0 0 0 0 1 -7 0 0 0 1.3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23f)'/%3E%3C/svg%3E") no-repeat 0 0 / 1800px 1000px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 80%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .5) 35%, transparent 80%); }
.oc-surface { height: 90px;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='640' height='30'%3E%3Cpath d='M0 0H640V9Q600 2 560 9T480 9T400 9T320 9T240 9T160 9T80 9T0 9Z' fill='rgba(215,248,255,0.22)'/%3E%3Cpath d='M0 9Q40 2 80 9T160 9T240 9T320 9T400 9T480 9T560 9T640 9' fill='none' stroke='rgba(235,253,255,0.65)' stroke-width='1.6'/%3E%3Cpath d='M0 17Q40 11 80 17T160 17T240 17T320 17T400 17T480 17T560 17T640 17' fill='none' stroke='rgba(235,253,255,0.25)' stroke-width='1.2'/%3E%3C/svg%3E") repeat-x 0 0 / 640px 30px,
    linear-gradient(180deg, rgba(220, 250, 255, .22), transparent); }
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(12, 60, 92, .55), rgba(12, 60, 92, 0)); }
.oc-fish { height: 133px; top: 1640px; }
.oc-whale { height: 164px; width: 400px; top: auto; bottom: 500px; left: 8%; opacity: .9; fill: #062236; }

/* ---------- Océano, versión limpia y estática (sustituye a la anterior) ----------
   Como en Pacifica: el agua es luz y profundidad, no dibujos encima. Azul vivo arriba con luz que entra desde la
   superficie y rayos anchos y suaves; al bajar, azul profundo y después casi negro, con partículas repartidas al azar
   (más finas y brillantes en lo profundo). Nada se mueve. Arriba queda un hueco (.oc-art) para una ilustración. */
body {
  background: linear-gradient(180deg,
    #176aa6 0px, #12588f 600px, #0d4277 1300px, #092f5c 2200px,
    #061f43 3100px, #03122b 3900px, #020916 4600px, #010409 100%);
}
body::before, body::after { display: none; }
.oc-art { left: 0; right: 0; top: 0; height: 980px; background: var(--ocean-art, none) center top / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent 100%); mask-image: linear-gradient(180deg, #000 60%, transparent 100%); }
.oc-light { left: -10%; right: -10%; top: -60px; height: 1900px; filter: blur(22px);
  background:
    radial-gradient(55% 38% at 50% 0%, rgba(175, 228, 255, .42), transparent 72%),
    linear-gradient(101deg, transparent 14%, rgba(195, 236, 255, .13) 18%, transparent 24%),
    linear-gradient(97deg, transparent 33%, rgba(195, 236, 255, .10) 36%, transparent 41%),
    linear-gradient(104deg, transparent 52%, rgba(195, 236, 255, .14) 56%, transparent 61%),
    linear-gradient(99deg, transparent 70%, rgba(195, 236, 255, .09) 73%, transparent 79%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0, 0, 0, .55) 40%, transparent 100%); }
.oc-particles { left: 0; right: 0; top: 0; bottom: 0; background: url("media/oceano-particulas.svg") center top / 1440px 5200px repeat-x; }
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(10, 55, 95, .5), rgba(10, 55, 95, 0)); }
.nav.scrolled { background: rgba(8, 36, 66, .85); }
.hero-sub { color: #e2eff8; }

/* Ilustración submarina de arriba (media/oceano-ilustracion.webp, pintada por código): ocupa todo el ancho en 16:9
   y su parte de abajo ya está fundida en el azul de la página. */
.oc-art { --ocean-art: url("media/oceano-ilustracion.webp"); height: auto; aspect-ratio: 16 / 9; background-size: 100% auto;
  -webkit-mask-image: linear-gradient(180deg, #000 75%, transparent 100%); mask-image: linear-gradient(180deg, #000 75%, transparent 100%); }
.oc-light { opacity: .45; }
/* Sobre la superficie brillante de la ilustración: velo azul bajo el menú y una sombra suave en los textos de arriba */
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(6, 42, 74, .78) 0%, rgba(6, 42, 74, .45) 70%, rgba(6, 42, 74, 0) 100%); }
.hero h1, .hero-sub { text-shadow: 0 1px 18px rgba(4, 34, 62, .45); }

/* Océano más oscuro: el agua empieza en el azul con que termina la ilustración (#0b355e) y baja hasta casi negro */
body {
  background: linear-gradient(180deg,
    #0b355e 0px, #0a3056 600px, #08284b 1300px, #061f3e 2200px,
    #041631 3100px, #030e23 3900px, #020814 4600px, #010409 100%);
}
.oc-light { opacity: .3; }
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(4, 26, 48, .8) 0%, rgba(4, 26, 48, .45) 70%, rgba(4, 26, 48, 0) 100%); }
.nav.scrolled { background: rgba(5, 26, 48, .88); }
.hero-sub { color: #d5e6f2; }

/* Gama de Pacifica: azules puros e intensos que bajan hasta el negro absoluto.
   Empieza en el azul con que termina la ilustración (#0464d1). */
body {
  background: linear-gradient(180deg,
    #0464d1 0px, #0353bd 700px, #0144ac 1400px, #012f80 2200px,
    #002369 3000px, #00133d 3700px, #00060f 4400px, #000000 100%);
}
html { background: #000; }
.oc-light { opacity: .35; }
.nav:not(.scrolled) { background: linear-gradient(180deg, rgba(2, 48, 120, .7) 0%, rgba(2, 48, 120, .35) 70%, rgba(2, 48, 120, 0) 100%); }
.nav.scrolled { background: rgba(1, 30, 80, .85); }
.hero-sub { color: #eef7fd; }
.hero h1, .hero-sub { text-shadow: 0 1px 18px rgba(1, 30, 90, .5); }
.foot { background: rgba(0, 0, 0, .6); }

/* Titular en dos tonos, como en Pacifica: la segunda parte en un cian claro (color sólido, sin degradado) */
.hero h1 .h1-tone { color: #a9e8ff; }
/* Detalles del fondo ya nítidos (puntos, peces y corrientes): el SVG se ve tal cual, sin desenfoques */
.oc-particles { opacity: 1; }
.oc-light { opacity: .25; }

/* Menú como en Pacifica: barra flotante redondeada, azul translúcida con desenfoque detrás.
   Se lee igual sobre la espuma blanca de arriba que sobre el azul profundo de abajo. */
@media (min-width: 901px) {
  .nav, .nav.scrolled, .nav:not(.scrolled) { inset: 14px 24px auto; height: 58px; padding: 0 12px 0 20px; border-radius: 18px;
    background: rgba(8, 62, 140, .5); -webkit-backdrop-filter: blur(14px) saturate(130%); backdrop-filter: blur(14px) saturate(130%);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), 0 8px 24px -12px rgba(0, 10, 40, .5); }
  .nav.scrolled { background: rgba(4, 34, 86, .7); }
}
.nav:not(.scrolled) .nav-links a:not(.pending), .nav:not(.scrolled) .nav-text, .nav-links a:not(.pending), .nav-text { color: #e4f2fb; }
.nav-links a:hover { background: rgba(255, 255, 255, .1); }
/* El borde de arriba de la página continúa el brillo con que empieza la ilustración (sin corte) */
html { background: linear-gradient(180deg, #c4efff 0, #c4efff 200px, #000 200px); }

/* Ya bajo el agua, como en Pacifica: la ilustración llena el borde de arriba con la cara inferior de la superficie
   (manchas y espuma vistas desde abajo), así que no hay corte; el titular vuelve a su sitio y el borde de arriba
   de la página continúa el azul con que empieza el dibujo. */
html { background: linear-gradient(180deg, #6fc6f0 0, #6fc6f0 200px, #000 200px); }
.oc-art { -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent 100%); mask-image: linear-gradient(180deg, #000 80%, transparent 100%); }
.oc-light { opacity: .15; }

/* ===================================================================================
   Maqueta del panel al día (nov 2026): pestañas Valor · Alertas · Arbitraje · Middles · Mis apuestas,
   los diez deportes, casas con su logo, filtros nuevos y las vistas de arbitraje y de tus apuestas.
   =================================================================================== */
/* Casas con su logo, como en el panel */
.book { box-sizing: border-box; display: inline-flex; align-items: center; gap: 5px; width: 92px; height: 22px; padding: 0 8px 0 3px; border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, .1); font-size: 11px; font-weight: 700; font-style: normal; line-height: 1; white-space: nowrap; overflow: hidden; vertical-align: middle; }
.book::before { content: ""; flex: none; width: 16px; height: 16px; border-radius: 4px; background: center / cover no-repeat; }
.b-winamax { background: #d7141f; border-color: #d7141f; color: #fff; font-weight: 800; letter-spacing: .03em; text-transform: uppercase; font-size: 10.5px; }
.b-winamax::before { background-image: url("casas/winamax.png"); box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.b-leovegas { background: #f47a20; border-color: #f47a20; color: #fff; }
.b-leovegas::before { background-image: url("casas/leovegas.png"); border-radius: 50%; }
.b-paf { background: #fff; border-color: #fff; color: #ff6a00; font-size: 12px; font-weight: 900; }
.b-paf::before { background-image: url("casas/paf.png"); }
.b-enracha { background: #26272b; border-color: rgba(255, 122, 47, .5); color: #ff7a2f; }
.b-enracha::before { background-image: url("casas/enracha.png"); border-radius: 50%; }
.b-codere { background: #7ac143; border-color: #7ac143; color: #1d2a12; text-transform: lowercase; font-size: 12px; font-weight: 900; }
.b-codere::before { background-image: url("casas/codere.png"); }

/* Barra de arriba: cinco pestañas; la activa como en el panel */
.app-bar { grid-template-columns: auto auto 1fr auto; gap: 20px; }
.app-search { width: 400px; }
.seg > .on { font-weight: 500; color: var(--text); background: var(--panel-2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.app-tabs > * { transition: background-color .25s var(--ease), color .25s var(--ease); }

/* Menú lateral: solo deportes y, abajo, «Ocultar menú» */
.app-side { display: flex; flex-direction: column; padding-top: 16px; }
.app-side .nav-i { height: 34px; }
.app-side .side-foot { margin-top: auto; font-size: 13px; color: var(--dim); }

/* Vistas */
.pane { display: none; }
.pane.on { display: block; animation: paneIn .35s var(--ease); }
@keyframes paneIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pane-title { margin: 0 0 16px; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.pane-sub { margin: -10px 0 16px; font-size: 13px; color: var(--dim); }
.kpis.k5 { grid-template-columns: repeat(5, 1fr); }
.kpis.k4 { grid-template-columns: repeat(4, 1fr); }
.kpis.k5 .kpi b { font-size: 26px; }
.toolbar { flex-wrap: wrap; justify-content: flex-start; gap: 8px; }
.seg .lab { color: var(--dim); font-size: 12px; padding-right: 2px; }
.seg.pick b svg { width: 12px; height: 12px; margin-left: 2px; color: var(--dim); }
.app .grid td { height: 46px; }
.app .grid th { padding-top: 10px; }

/* Arbitraje en la maqueta */
.grid.sb td { height: 64px; vertical-align: middle; }
.grid.sb tbody tr { opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.grid.sb tbody tr.in { opacity: 1; transform: none; }
.sb-pct b { display: block; font: 600 16px var(--mono); }
.sb-pct small, .sb-ev small, .sb-leg small { display: block; margin-top: 3px; font-size: 12px; color: var(--dim); }
.sb-ev b { font-weight: 500; }
.sb-leg div { display: flex; align-items: center; gap: 10px; }
.sb-leg div b { font: 500 15px var(--mono); }
.grid .go, .sbc .go { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 8px; font-size: 13px; font-weight: 500; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }

/* Mis apuestas en la maqueta */
.bets-row { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; margin-top: 12px; }
.bcard { border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.bcard-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.bcard-head b { font-weight: 500; }
.bcard .curve { display: block; width: 100%; height: 470px; padding: 8px 4px; box-sizing: border-box; }
.curve .zero { stroke: rgba(255, 255, 255, .14); stroke-dasharray: 4 5; }
.curve .line { fill: none; stroke: var(--green); stroke-width: 2.4; stroke-linejoin: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.curve .exp { fill: none; stroke: var(--dim); stroke-width: 1.4; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; opacity: 0; transition: opacity .8s .6s var(--ease); }
.curve .area { opacity: 0; transition: opacity 1s 1.2s var(--ease); }
.curve.play .line { animation: drawLine 2.2s var(--ease) forwards; }
.curve.play .exp, .curve.play .area { opacity: 1; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
:root.no-motion .curve .line { stroke-dashoffset: 0; animation: none; }

/* Funciones · Arbitraje y middles */
.sb-list { display: grid; gap: 10px; }
.sbc { padding: 14px 20px; border-radius: 12px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); animation: slideIn .4s var(--ease); }
.sbc-head { display: flex; align-items: center; gap: 16px; }
.sbc-head b { font-size: 16px; font-weight: 500; }
.sbc-head small { display: block; margin-top: 2px; font-size: 13px; color: var(--dim); }
.sbc-legs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.sbc-legs > div { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--panel-2); }
.sbc-legs span:not(.book) { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sbc-legs b { font: 500 15px var(--mono); }
.sbc-legs em { font: 400 13px var(--mono); font-style: normal; color: var(--green); min-width: 64px; text-align: right; }
.sbc-foot { display: block; margin-top: 10px; font-size: 12px; color: var(--dim); }

/* Funciones · Mis apuestas */
.curve.big { display: block; width: 100%; height: 300px; margin-top: 4px; }
.ch-legend { align-items: center; justify-content: space-between; }
.bt-keys { display: inline-flex; gap: 16px; }
.bt-keys i { width: 14px; height: 3px; border-radius: 2px; background: var(--green); }
.bt-keys i.k2.dash { background: repeating-linear-gradient(90deg, var(--dim) 0 4px, transparent 4px 7px); }

/* Alertas con la casa */
.al { grid-template-columns: 1fr auto auto auto auto; }

/* Detalle: «He apostado» junto a «Abrir en …» */
.dr-btns { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px; margin-top: 20px; }
.dr-btns .dr-btn { margin-top: 0; }
.dr-btn.ghost { background: transparent; }
.dr-btn svg { width: 14px; height: 14px; }

/* Cinco pestañas de funciones */
@media (min-width: 901px) { .tabs { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.dnode span { text-align: center; line-height: 1.5; }

/* Grabaciones del panel real (tools/grabar_panel.py): sustituyen a las maquetas animadas */
video.rec { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 12px; background: var(--sunk); object-fit: cover; }
.media video.rec { aspect-ratio: 5 / 3; box-shadow: inset 0 0 0 1px var(--line), 0 24px 64px -24px rgba(0, 0, 0, .8); }

/* Cursor de las escenas, dentro de la cámara: la posición va en «translate» (con su propia curva) y la escala que
   compensa el zoom en el hijo (con la curva de la cámara). El punto visible es el nieto, que encoge al hacer clic. */
.stage .cursor { width: 0; height: 0; margin: 0; padding: 0; background: none; box-shadow: none; border-radius: 0; transform: none;
  z-index: 30; transition: translate 1.1s var(--ease-io); animation: none; }
.stage .cursor::after { content: none; }
.stage .cursor > i { position: absolute; left: 0; top: 0; width: 0; height: 0; scale: 1; transition: scale 1.6s cubic-bezier(.65, 0, .35, 1); }
.stage .cursor > i > b { position: absolute; left: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%;
  background: rgba(237, 237, 237, .22); box-shadow: inset 0 0 0 1.5px rgba(237, 237, 237, .7), 0 4px 12px rgba(0, 0, 0, .4); }
.stage .cursor > i > b::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(237, 237, 237, .6); opacity: 0; }
.stage .cursor.click > i > b { animation: pressDot .3s var(--ease); }
.stage .cursor.click > i > b::after { animation: ripple .5s var(--ease); }
@keyframes pressDot { 40% { transform: scale(.8); } }
