/* ===== Cinematic enhancements ===== */

/* --- Aurora background layer --- */
.aurora {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.aurora-blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55;
  mix-blend-mode: screen;
  will-change: transform;
}
.aurora-blob.a {
  width: 720px; height: 720px;
  background: radial-gradient(circle at 30% 30%, oklch(0.82 0.13 78 / 0.55), transparent 70%);
  top: -200px; right: -120px;
  animation: aurora-drift-a 24s ease-in-out infinite alternate;
}
.aurora-blob.b {
  width: 640px; height: 640px;
  background: radial-gradient(circle, oklch(0.55 0.18 280 / 0.45), transparent 70%);
  bottom: -160px; left: -180px;
  animation: aurora-drift-b 32s ease-in-out infinite alternate;
}
.aurora-blob.c {
  width: 540px; height: 540px;
  background: radial-gradient(circle, oklch(0.65 0.16 200 / 0.30), transparent 70%);
  top: 40%; left: 45%;
  animation: aurora-drift-c 28s ease-in-out infinite alternate;
}
/* 16-oct-2026 · EN PANTALLAS TÁCTILES, EL MISMO HALO SIN LO QUE CUESTA.
   Tres manchas de 540-720 px con desenfoque de 80 px y mezcla «screen»:
   Safari las vuelve a componer en cada fotograma con todo lo de debajo, y en
   un iPhone, junto con las capas de la aparición, la portada dejaba de
   pintarse (vídeo del dueño del 16-oct). Lo caro es el filtro y la mezcla,
   no el movimiento: aquí el borde difuso lo da un degradado de varios pasos
   del mismo color, sin filtro, y la deriva lenta se queda (una capa ya
   pintada que solo se desplaza). Algo más pequeñas, porque la pantalla
   también lo es. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
  .aurora-blob {
    filter: none !important;
    mix-blend-mode: normal !important;
    will-change: auto !important;
    opacity: .7 !important;
  }
  .aurora-blob.a {
    width: 560px; height: 560px; top: -190px; right: -210px;
    background: radial-gradient(circle at 50% 50%,
      oklch(0.82 0.13 78 / 0.34) 0%, oklch(0.82 0.13 78 / 0.20) 24%,
      oklch(0.82 0.13 78 / 0.08) 46%, oklch(0.82 0.13 78 / 0.02) 60%, transparent 70%) !important;
    animation-duration: 36s !important;
  }
  .aurora-blob.b {
    width: 520px; height: 520px; bottom: -170px; left: -220px;
    background: radial-gradient(circle,
      oklch(0.55 0.18 280 / 0.30) 0%, oklch(0.55 0.18 280 / 0.16) 26%,
      oklch(0.55 0.18 280 / 0.06) 48%, transparent 70%) !important;
    animation-duration: 44s !important;
  }
  .aurora-blob.c {
    width: 440px; height: 440px;
    background: radial-gradient(circle,
      oklch(0.65 0.16 200 / 0.20) 0%, oklch(0.65 0.16 200 / 0.10) 28%,
      oklch(0.65 0.16 200 / 0.03) 50%, transparent 70%) !important;
    animation-duration: 40s !important;
  }
  .hero .glow, .glow { animation: none !important; }
  .topbar, .eyebrow, .pulse {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
  /* Sin el desenfoque de detrás, la barra algo más opaca para verse igual. */
  .topbar { background: color-mix(in oklab, var(--bg) 94%, transparent); }
}
@keyframes aurora-drift-a {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-60px,80px) scale(1.1); }
}
@keyframes aurora-drift-b {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(80px,-60px) scale(1.15); }
}
@keyframes aurora-drift-c {
  0%   { transform: translate(0,0) scale(1); }
  100% { transform: translate(-100px,40px) scale(0.95); }
}

.aurora-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black 30%, transparent 75%);
}
.aurora-noise {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0naHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmcnIHdpZHRoPScxNjAnIGhlaWdodD0nMTYwJz48ZmlsdGVyIGlkPSduJz48ZmVUdXJidWxlbmNlIHR5cGU9J2ZyYWN0YWxOb2lzZScgYmFzZUZyZXF1ZW5jeT0nMC44NScgbnVtT2N0YXZlcz0nMicgc3RpdGNoVGlsZXM9J3N0aXRjaCcvPjxmZUNvbG9yTWF0cml4IHZhbHVlcz0nMCAwIDAgMCAwLjk1ICAwIDAgMCAwIDAuOTIgIDAgMCAwIDAgMC44OCAgMCAwIDAgMC4wNyAwJy8+PC9maWx0ZXI+PHJlY3Qgd2lkdGg9JzEwMCUnIGhlaWdodD0nMTAwJScgZmlsdGVyPSd1cmwoI24pJy8+PC9zdmc+");
  opacity: 0.4; mix-blend-mode: overlay;
}

/* --- Hero typography upgrade --- */
/* 30-sep-2026: era clamp(56px, 8.4vw, 132px). El titular vive en una columna
   de ~676 px (a 1366) y a 114 px se partía en CINCO líneas —«Un / terminal /
   para / cada / ventaja.»—: 545 px de alto, el párrafo empezaba en el píxel
   733 y el botón de alta en el 952, fuera de la pantalla de un portátil. Quien
   llegaba veía un eslogan y una esfera, sin saber qué es ni dónde pulsar. Con
   5,4vw (máx. 80) caben «Un terminal para» y «cada convicción.» en dos líneas
   y el primer pantallazo lleva titular, explicación y botones. */
.hero h1 {
  font-size: clamp(44px, 5.4vw, 80px);
  line-height: 0.95;
  letter-spacing: -0.04em;
}
.hero h1 .accent {
  background: linear-gradient(110deg,
    oklch(0.92 0.10 80) 0%,
    var(--accent) 40%,
    oklch(0.78 0.18 60) 70%,
    oklch(0.92 0.10 80) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}
@keyframes shimmer {
  0%   { background-position: 0% 0; }
  100% { background-position: 200% 0; }
}

/* --- Glowing primary CTA --- */
.btn-primary {
  position: relative;
  box-shadow:
    0 0 0 1px oklch(1 0 0 / 0.15) inset,
    0 10px 30px -8px oklch(0.82 0.13 78 / 0.55),
    0 0 40px -8px oklch(0.82 0.13 78 / 0.6);
  transition: box-shadow .35s ease, transform .15s ease, filter .15s ease;
}
.btn-primary::before {
  content: ""; position: absolute; inset: -2px;
  border-radius: 10px;
  background: conic-gradient(from 180deg, transparent, oklch(0.82 0.13 78 / 0.7), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
  z-index: -1; filter: blur(10px);
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-primary:hover::before { opacity: 1; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Live pulse (concentric breathing rings) --- */
.live-pulse {
  position: relative; display: inline-block;
  width: 8px; height: 8px;
}
.live-pulse i {
  position: absolute; inset: 0; border-radius: 50%;
  background: var(--c, var(--up));
  box-shadow: 0 0 12px var(--c, var(--up));
}
.live-pulse i:nth-child(2) {
  animation: live-ring 1.8s ease-out infinite;
}
@keyframes live-ring {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(3.6); opacity: 0; }
}

/* --- TradingView live ticker tape --- */
.ticker-tape-wrap {
  position: relative;
  margin: 36px 0 24px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(180deg, oklch(0 0 0 / 0.2), transparent);
}
.ticker-tape-wrap .tradingview-widget-container {
  min-height: 46px;
}
/* 30-sep-2026: empezaba a 14 px del borde y el degradado se volvía
   transparente al 60 %: las cotizaciones pasaban por los dos huecos y se leía
   «34 ● EN VIVO · GENERG$246,72». Ahora cubre desde el borde y el fundido va
   después del texto. */
.ticker-tape-badge {
  position: absolute; top: 50%; left: 0;
  transform: translateY(-50%);
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
  display: flex; align-items: center;
  background: linear-gradient(90deg, var(--bg) 82%, transparent);
  padding: 8px 32px 8px 14px;
  pointer-events: none;
  z-index: 2;
}

/* --- Press / "as featured in" strip --- */
.press-strip {
  margin: 36px 0 0;
  display: grid; gap: 18px;
}
.press-strip .label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3); text-align: center;
}
.press-strip .row {
  display: grid; grid-template-columns: repeat(7, 1fr);
  align-items: center; justify-items: center;
  gap: 24px;
  padding: 22px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  opacity: 0.65;
}
.press-strip .row > * {
  font-size: 17px; color: var(--ink-2);
  filter: grayscale(0.4); transition: filter .3s ease, opacity .3s ease, color .3s ease;
}
.press-strip .row > *:hover { filter: grayscale(0); color: var(--ink); }

/* --- Testimonials --- */
.quotes {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
  margin-top: 24px;
}
.quote-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border-radius: 14px;
  padding: 26px;
  position: relative;
  display: flex; flex-direction: column; gap: 18px;
}
.quote-card::before {
  content: "“";
  position: absolute; top: 8px; left: 18px;
  font-family: Georgia, serif;
  font-size: 80px;
  line-height: 1;
  color: var(--accent);
  opacity: 0.25;
}
.quote-card .body {
  font-family: var(--font-display);
  font-size: 17px; line-height: 1.5;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 8px 0 0;
  text-wrap: pretty;
}
.quote-card .who {
  display: grid; grid-template-columns: 40px 1fr; gap: 12px;
  align-items: center;
  border-top: 1px solid var(--line-soft);
  padding-top: 16px;
  margin-top: auto;
}
.quote-card .who .av {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), oklch(0.42 0.12 280));
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 14px;
  color: oklch(0.18 0.02 80);
  box-shadow: 0 0 0 2px var(--bg), 0 0 0 3px var(--line-soft);
}
.quote-card .who .name { font-size: 13px; font-weight: 600; color: var(--ink); }
.quote-card .who .title { font-size: 11px; color: var(--ink-3); font-family: var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 2px; }

/* --- Stat with animated counter --- */
.metrics-strip .k { display: inline-flex; align-items: baseline; }

/* --- CTA cinematic block --- */
.cta-cinematic {
  position: relative;
  margin-top: 96px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  padding: 72px 56px;
  overflow: hidden;
  background:
    radial-gradient(800px 360px at 0% 0%, oklch(0.82 0.13 78 / 0.18), transparent 60%),
    radial-gradient(700px 320px at 100% 100%, oklch(0.55 0.18 280 / 0.18), transparent 60%),
    linear-gradient(180deg, oklch(0.20 0.008 260), oklch(0.13 0.005 260));
  isolation: isolate;
}
.cta-cinematic::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 20%, transparent 75%);
  pointer-events: none;
}
.cta-cinematic h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: -0.03em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}
.cta-cinematic .row {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative;
}
.cta-cinematic .stats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.cta-cinematic .stats > div {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 16px;
}
.cta-cinematic .stats .k {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; letter-spacing: -0.02em;
}
.cta-cinematic .stats .l {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.08em; text-transform: uppercase;
  margin-top: 4px;
}

/* --- Section heading enhancement --- */
.section-head h2 {
  font-size: clamp(28px, 3.2vw, 44px);
}

@media (max-width: 1080px) {
  .quotes { grid-template-columns: 1fr; }
  .press-strip .row { grid-template-columns: repeat(3, 1fr); gap: 14px 24px; }
  .cta-cinematic .row { grid-template-columns: 1fr; }
}

/* ===== How it works ===== */
.how-it-works {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.howit-card {
  border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border-radius: 14px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative; overflow: hidden;
  min-height: 320px;
}
.howit-card .num {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.18em; color: var(--accent);
}
.howit-card h3 {
  font-family: var(--font-display); font-weight: 600;
  font-size: 22px; letter-spacing: -0.015em;
  margin: 0; text-wrap: balance;
}
.howit-card p {
  color: var(--ink-3); font-size: 13px; line-height: 1.55; margin: 0;
}
.howit-glyph {
  margin: 0; height: 120px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%), var(--bg);
  border: 1px dashed var(--line-soft);
}
.cmdbar {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 12px 18px; border-radius: 10px;
  border: 1px solid var(--accent-line);
  background: var(--bg-1);
  box-shadow: 0 0 0 4px var(--accent-soft), 0 20px 40px -10px oklch(0 0 0 / 0.5);
  font-family: var(--font-mono); font-size: 13px;
  min-width: 220px;
}
.fanout {
  position: relative; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
}
.fanout .hub {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent), 0 0 0 4px var(--accent-soft);
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  z-index: 2;
}
.fanout .leaf {
  position: absolute; left: 50%; top: 50%;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.06em;
  padding: 4px 8px; border-radius: 999px;
  background: var(--bg-1); border: 1px solid var(--line-soft);
  color: var(--ink-2);
  transform-origin: -50% center;
  /* El reparto sale del NUMERO de hojas, no de un angulo escrito a mano.
     Estaba fijo en 72deg (360/5) y el comentario de landing.js decia que con
     cuatro quedaba un hueco en la corona; con seis, la sexta habria caido en
     360deg, encima de la primera. `--n` lo pone landing.js desde la longitud
     del propio array, asi que anadir una fuente ya no puede descuadrarlo.
     El respaldo de 5 mantiene el reparto de siempre si `--n` no llegara. */
  transform: translate(-50%, -50%) rotate(calc(var(--i) * (360deg / var(--n, 5)))) translateX(80px) rotate(calc(var(--i) * (-360deg / var(--n, 5))));
  animation: fanout-pulse 3s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.3s);
}
@keyframes fanout-pulse {
  0%, 100% { box-shadow: 0 0 0 0 var(--accent-soft); }
  50%      { box-shadow: 0 0 0 6px transparent; }
}
.verdict-glyph {
  display: flex; flex-direction: column; align-items: center; gap: 12px;
}
.verdict-glyph .badge {
  font-family: var(--font-display); font-weight: 700; font-size: 28px;
  color: var(--up); letter-spacing: 0.04em;
  text-shadow: 0 0 18px oklch(0.78 0.16 152 / 0.4);
}
.verdict-glyph .score {
  display: flex; align-items: center; gap: 10px;
  font-size: 11px;
}
.verdict-glyph .score .bar {
  width: 120px; height: 5px; border-radius: 99px; background: var(--bg-3); overflow: hidden;
}
.verdict-glyph .score .bar > div {
  width: 84%; height: 100%;
  background: linear-gradient(90deg, var(--down), var(--accent) 50%, var(--up));
  border-radius: 99px;
}

/* ===== Comparison table ===== */
.compare {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-1);
}
.compare-row {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line-soft);
}
.compare-row:last-child { border-bottom: 0; }
.compare-row .cell {
  padding: 14px 18px;
  display: flex; align-items: center;
  font-size: 13px;
  border-right: 1px solid var(--line-soft);
  min-height: 52px;
}
.compare-row .cell:last-child { border-right: 0; }
.compare-row .cell.label { color: var(--ink-2); font-size: 13px; }
.compare-row .cell.prod {
  font-family: var(--font-display); font-weight: 600;
  font-size: 14px; letter-spacing: -0.01em;
  color: var(--ink-3);
}
.compare-row .cell.featured {
  background: linear-gradient(180deg, var(--accent-soft), transparent);
  color: var(--ink);
}
.compare-row.compare-head .cell {
  background: var(--bg-2);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.compare-row.compare-head .cell.featured {
  background: linear-gradient(180deg, oklch(0.82 0.13 78 / 0.28), oklch(0.82 0.13 78 / 0.08));
  color: var(--accent);
  font-weight: 700;
}
.compare-row .cell.featured.price-feat,
.compare-row .cell.featured .price-feat {
  color: var(--accent); font-weight: 700;
}

/* ===== FAQ ===== */
.faq {
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--bg-1);
  overflow: hidden;
}
.faq-item { border-bottom: 1px solid var(--line-soft); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
  appearance: none; border: 0; background: transparent;
  width: 100%; text-align: left; cursor: pointer;
  padding: 20px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  font-family: var(--font-display); font-weight: 500;
  font-size: 17px; letter-spacing: -0.01em;
  color: var(--ink);
  transition: background .2s ease;
}
.faq-q:hover { background: var(--bg-2); }
.faq-chev {
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--line-soft);
  color: var(--ink-2);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .2s ease, color .2s ease;
}
.faq-item[data-open="true"] .faq-chev {
  transform: rotate(180deg);
  background: var(--accent);
  color: oklch(0.18 0.02 80);
  border-color: var(--accent);
}
.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .4s cubic-bezier(.2,.7,.2,1);
}
.faq-item[data-open="true"] .faq-a { grid-template-rows: 1fr; }
/* 15-oct-2026 · Las respuestas iban en líneas de ~130 caracteres (900 px a
   14 px) y en el gris de las notas: la de la puntuación (1.251 caracteres) se
   leía como un muro. Medida de lectura (~68 caracteres), 15 px y el gris del
   texto, no el de las notas. No se parten en párrafos: cada respuesta es una
   sola clave del diccionario de traducción revisado. */
.faq-a-inner {
  overflow: hidden;
  padding: 0 24px;
  color: var(--ink-2);
  font-size: 15px; line-height: 1.7;
  max-width: calc(68ch + 48px);
  text-wrap: pretty;
}
.faq-item[data-open="true"] .faq-a-inner {
  padding: 0 24px 22px;
}

@media (max-width: 1080px) {
  .how-it-works { grid-template-columns: 1fr; }
  .compare-row { grid-template-columns: 1.6fr 1fr 1fr; }
  .compare-row .cell:nth-child(5), .compare-row .cell:nth-child(6) { display: none; }
}

/* === Global toast === */
.gen-toast {
  position: fixed; bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(20px);
  padding: 12px 18px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px; color: var(--ink);
  box-shadow: 0 20px 40px -8px oklch(0 0 0 / 0.6);
  z-index: 200;
  opacity: 0;
  transition: opacity .25s ease, transform .25s cubic-bezier(.2,.7,.2,1);
  pointer-events: none;
}
.gen-toast.visible {
  opacity: 1; transform: translateX(-50%) translateY(0);
}
.gen-toast .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up); box-shadow: 0 0 10px var(--up);
}

/* ===== Onboarding ===== */
.onb-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: oklch(0.08 0.005 260 / 0.7);
  backdrop-filter: blur(14px);
  display: grid; place-items: center;
  padding: 20px;
  animation: fadein 0.25s ease;
}
.onb-card {
  width: min(880px, 100%);
  background: linear-gradient(180deg, var(--bg-1), var(--bg));
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 60px 120px -20px oklch(0 0 0 / 0.7), 0 0 0 1px var(--accent-line);
  overflow: hidden;
  display: grid; grid-template-columns: 1fr 1fr;
  animation: onb-pop .35s cubic-bezier(.2,.7,.2,1);
}
@keyframes onb-pop {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.onb-art-wrap {
  background:
    radial-gradient(400px 280px at 30% 30%, var(--accent-soft), transparent 70%),
    radial-gradient(400px 280px at 80% 80%, oklch(0.55 0.18 280 / 0.18), transparent 70%),
    linear-gradient(180deg, oklch(0.20 0.008 260), oklch(0.12 0.005 260));
  position: relative; min-height: 380px;
  display: grid; place-items: center;
  overflow: hidden;
  border-right: 1px solid var(--line-soft);
}
.onb-art-wrap::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, oklch(1 0 0 / 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, oklch(1 0 0 / 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 40%, transparent 80%);
}
.onb-art {
  position: relative; z-index: 1;
  width: 80%; height: 80%;
  display: grid; place-items: center;
}
.brand-orb {
  position: relative; width: 200px; height: 200px;
}
.brand-orb span {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1px solid var(--accent-line);
  animation: onb-spin 18s linear infinite;
}
.brand-orb span:nth-child(2) { inset: 12%; animation-duration: 14s; animation-direction: reverse; }
.brand-orb span:nth-child(3) { inset: 26%; animation-duration: 10s; }
.brand-orb .core {
  position: absolute; inset: 38%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, oklch(1 0 0 / 0.6), transparent 50%),
    radial-gradient(circle at 70% 70%, oklch(0.82 0.13 78 / 0.6), transparent 60%),
    oklch(0.32 0.04 260);
  box-shadow: 0 0 40px oklch(0.82 0.13 78 / 0.4), inset 0 -20px 40px oklch(0 0 0 / 0.4);
  border: 0;
}
@keyframes onb-spin { to { transform: rotate(360deg); } }

.onb-cmd {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 18px; min-width: 280px;
  background: var(--bg-1); border: 1px solid var(--accent-line);
  border-radius: 10px;
  box-shadow: 0 0 0 4px var(--accent-soft), 0 24px 40px -10px oklch(0 0 0 / 0.5);
  font-family: var(--font-mono); font-size: 14px;
  animation: onb-slide-in .4s cubic-bezier(.2,.7,.2,1);
}
.onb-result {
  display: flex; gap: 14px; align-items: center;
  padding: 12px 18px; min-width: 280px;
  background: var(--bg-2); border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 8px;
  font-size: 13px;
  animation: onb-slide-in .5s cubic-bezier(.2,.7,.2,1) backwards;
}
.onb-result .sym { font-family: var(--font-display); font-weight: 700; color: var(--ink); }
@keyframes onb-slide-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.onb-verdict {
  display: flex; gap: 22px; align-items: center;
  padding: 22px 28px;
  background: var(--bg-1); border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 24px 40px -10px oklch(0 0 0 / 0.5);
}
.onb-verdict .badge {
  font-family: var(--font-display); font-weight: 800; font-size: 36px;
  color: var(--up); letter-spacing: 0.04em;
  text-shadow: 0 0 24px oklch(0.78 0.16 152 / 0.4);
  padding: 6px 18px; border-radius: 8px;
  background: oklch(0.78 0.16 152 / 0.08);
  border: 1px solid oklch(0.78 0.16 152 / 0.3);
}
.onb-verdict .meta {
  display: flex; flex-direction: column; gap: 8px;
}
.onb-verdict .meta .bar {
  width: 200px; height: 6px; background: var(--bg-3); border-radius: 99px; overflow: hidden;
}
.onb-verdict .meta .bar > div {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--down), var(--accent) 50%, var(--up));
  animation: onb-fill 1.2s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: .2s;
}
@keyframes onb-fill { to { width: 84%; } }

.onb-confetti {
  position: relative; width: 100%; height: 100%;
  display: grid; place-items: center;
}
.onb-confetti .conf {
  position: absolute; width: 6px; height: 14px; border-radius: 1px;
  background: var(--c);
  left: 50%; top: 50%;
  --angle: calc(var(--i) * 15deg);
  transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-20px);
  animation: conf-burst 1.4s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: calc(var(--i) * 0.04s);
  opacity: 0;
}
@keyframes conf-burst {
  0%   { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-10px) scale(0.6); opacity: 1; }
  100% { transform: translate(-50%, -50%) rotate(var(--angle)) translateY(-140px) scale(1); opacity: 0; }
}

.onb-body {
  padding: 36px 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
}
.onb-body h2 {
  font-family: var(--font-display); font-weight: 700;
  font-size: 32px; letter-spacing: -0.025em; line-height: 1.1;
  margin: 4px 0 0; text-wrap: balance;
}
.onb-body p {
  color: var(--ink-3); font-size: 14px; line-height: 1.55; margin: 0;
  max-width: 380px;
}
.onb-dots {
  display: flex; gap: 6px; margin-top: auto; padding-top: 22px;
}
.onb-dots span {
  width: 22px; height: 4px; border-radius: 99px;
  background: var(--bg-3);
  transition: background .3s ease, width .3s ease;
}
.onb-dots span[data-on="true"] {
  background: var(--accent);
  width: 32px;
}
.onb-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px;
}
@media (max-width: 760px) {
  .onb-card { grid-template-columns: 1fr; }
  .onb-art-wrap { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--line-soft); }
}

/* ═══ El embudo de esta noche (17-sep-2026) ═══════════════════════════════
   De todo el mercado a una acción, con las cifras reales del cribado
   (landing.js → EmbudoDeEstaNoche). Todo sale de los tokens de la casa, así
   que vale igual en el tema oscuro y en el claro. */
/* El número manda el ancho de su columna (1-oct-2026): «10.461» a 46 px mide
   249 px y la columna era de 180, así que pisaba 47 px del texto de al lado en
   1280, 1366 y 1920. La columna sale ahora del mismo tamaño de letra (un
   número de cinco cifras con su punto mide 5,4 veces el cuerpo). */
.embudo { display: grid; gap: 10px; margin: 0 0 12px; --embudo-cuerpo: clamp(28px, 3.1vw, 42px); }
.embudo-fila {
  display: grid;
  grid-template-columns: calc(var(--embudo-cuerpo) * 5.6) minmax(0, 1fr) minmax(150px, 32%);
  align-items: center; gap: 22px;
  padding: 16px 20px;
  border: 1px solid var(--line-soft); border-radius: 14px;
  background: var(--bg-1);
}
.embudo-num {
  font-family: var(--font-display); font-weight: 800;
  font-size: var(--embudo-cuerpo); letter-spacing: -0.035em; line-height: 1;
  color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap;
}
.embudo-t { font-weight: 600; font-size: 15px; color: var(--ink); letter-spacing: -0.005em; }
.embudo-s { font-size: 12.5px; color: var(--ink-3); line-height: 1.55; margin-top: 3px; text-wrap: pretty; }
.embudo-medida { display: grid; gap: 6px; min-width: 0; }
.embudo-prop {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--ink-3); text-align: right; white-space: nowrap;
}
.embudo-fila.final .embudo-prop { color: var(--accent); }
.embudo-barra { height: 10px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.embudo-barra > span {
  display: block; height: 100%; width: 0; border-radius: inherit;
  background: linear-gradient(90deg, color-mix(in oklab, var(--accent) 45%, transparent), var(--accent));
  transition: width .9s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 130ms);
}
.embudo.visto .embudo-barra > span { width: var(--w); }
.embudo-fila.final {
  border-color: var(--accent-line);
  background: linear-gradient(90deg, var(--accent-soft), var(--bg-1) 72%);
}
.embudo-fila.final .embudo-num { color: var(--accent); }
/* 15-oct-2026: era un párrafo entero en mono a 10,5 px y en el gris más
   tenue. Es la frase que dice que las cifras son reales y de dónde salen:
   va en la letra del texto, como las explicaciones de cada escalón. */
.embudo-pie {
  font-size: 12.5px;
  color: var(--ink-3); line-height: 1.6; margin: 6px 2px 0; max-width: 72ch; text-wrap: pretty;
}
@media (max-width: 760px) {
  .embudo-fila { grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding: 14px; }
  .embudo-num { font-size: 30px; }
  .embudo-medida { grid-column: 1 / -1; }
  .embudo-prop { text-align: left; font-size: 11px; }
  .p13f-chips .p13f-chips-t { font-size: 11px; } /* con el padre: su regla general va más abajo y ganaría */
  .embudo-barra { height: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .embudo-barra > span { transition: none; }
}

/* ═══ Pregúntale al 13F (17-sep-2026) ═══════════════════════════════════════
   Buscador de gestoras y acciones sobre las declaraciones 13F (landing.js →
   Preguntale13F). Mismos tokens que el resto de la portada. */
.p13f { display: grid; gap: 14px; margin-bottom: 12px; }
.p13f-intro { margin: 0; font-size: 15px; color: var(--ink-2); max-width: 62ch; }
.p13f-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.p13f-form { display: flex; gap: 10px; flex-wrap: wrap; }
.p13f-input {
  flex: 1 1 280px; min-width: 0;
  font: inherit; font-size: 16px; color: var(--ink);
  background: var(--bg-1); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px 16px;
}
.p13f-input::placeholder { color: var(--ink-4); }
.p13f-input:focus-visible { outline: none; border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
.p13f-boton { flex: 0 0 auto; }
.p13f-chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.p13f-chips-t { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); }
.p13f-chip {
  font: inherit; font-size: 12.5px; color: var(--ink-2); cursor: pointer;
  background: var(--bg-1); border: 1px solid var(--line-soft); border-radius: 999px; padding: 6px 12px;
  min-height: 32px;
}
.p13f-chip:hover { border-color: var(--accent-line); color: var(--ink); }
.p13f-chip:focus-visible, .p13f-pos:focus-visible, .p13f-gest:focus-visible, .p13f-enlace:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 2px;
}
.p13f-aviso {
  padding: 16px 18px; border: 1px dashed var(--line-soft); border-radius: 12px;
  color: var(--ink-3); font-size: 14px;
}
.p13f-resultado {
  border: 1px solid var(--line-soft); border-radius: 14px; background: var(--bg-1);
  padding: 20px 22px; display: grid; gap: 12px;
}
.p13f-eyebrow { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.p13f-titulo {
  margin: 0; font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2.6vw, 30px);
  letter-spacing: -0.02em; line-height: 1.15; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 10px;
}
.p13f-sub { font-family: inherit; font-weight: 500; font-size: 15px; color: var(--ink-3); letter-spacing: 0; }
.p13f-tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-3); border: 1px solid var(--line-soft); border-radius: 999px; padding: 3px 9px;
}
.p13f-resumen { margin: 0; font-size: 13px; color: var(--ink-3); }
.p13f-lista { display: grid; gap: 2px; }
.p13f-pos {
  display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(90px, 28%) 86px; align-items: center; gap: 14px;
  font: inherit; text-align: left; color: var(--ink); cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); padding: 10px 4px;
}
.p13f-pos:hover { background: var(--bg-2); }
.p13f-sym { font-family: var(--font-mono); font-weight: 600; font-size: 13px; }
.p13f-emp { font-size: 12.5px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.p13f-barra { height: 8px; border-radius: 999px; background: var(--bg-2); overflow: hidden; }
.p13f-barra > span { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.p13f-peso { font-family: var(--font-mono); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.p13f-sube { color: var(--up); }
.p13f-baja { color: var(--down); }
.p13f-otras { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 12.5px; color: var(--ink-3); }
.p13f-cifras { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.p13f-cifra { background: var(--bg-1); padding: 14px 12px; }
.p13f-cifra-n { font-family: var(--font-display); font-weight: 800; font-size: 26px; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.p13f-cifra-l { font-size: 11.5px; color: var(--ink-3); margin-top: 5px; line-height: 1.35; }
.p13f-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.p13f-col-t { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-4); margin-bottom: 6px; }
.p13f-gest {
  display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: transparent; border: 0; border-bottom: 1px solid var(--line-soft); padding: 9px 4px;
}
.p13f-gest:hover { background: var(--bg-2); }
.p13f-gest-n { font-size: 13.5px; font-weight: 600; }
.p13f-gest-m { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.p13f-vacio { font-size: 13px; color: var(--ink-4); padding: 9px 4px; }
.p13f-nota { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; }
.p13f-enlace { font: inherit; font-size: 12.5px; color: var(--accent); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
/* 15-oct-2026: un párrafo explicativo en mono a 10,5 px y en --ink-4, igual
   que el pie del embudo: pasa a la letra del texto. */
.p13f-pie { margin: 0; font-size: 12.5px; color: var(--ink-3); line-height: 1.6; max-width: 72ch; text-wrap: pretty; }
@media (max-width: 760px) {
  .p13f-pos { grid-template-columns: 52px minmax(0, 1fr) 76px; gap: 6px 10px; }
  .p13f-barra { grid-column: 1 / -1; grid-row: 2; }
  .p13f-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .p13f-cols { grid-template-columns: 1fr; }
  .p13f-resultado { padding: 16px 14px; }
}
