/* ============================================================================
   Live Data Stream — Landing
   Concepto: sala de control broadcast. Negro = consola. Rojo = tally "EN VIVO".
   ========================================================================== */

/* ------------------------------- Tokens ---------------------------------- */
:root {
  /* Superficies (near-black con tinte rojo mínimo) */
  --bg:         oklch(0.14 0.008 25);
  --bg-2:       oklch(0.175 0.010 25);
  --surface:    oklch(0.205 0.012 25);
  --surface-2:  oklch(0.245 0.014 25);
  --line:       oklch(0.33 0.020 25);
  --line-soft:  oklch(0.27 0.015 25);

  /* Tinta */
  --ink:        oklch(0.97 0.004 60);
  --ink-2:      oklch(0.82 0.010 40);
  --ink-3:      oklch(0.66 0.015 30);

  /* Rojo tally (señal de vivo) */
  --red:        oklch(0.63 0.235 25);
  --red-2:      oklch(0.70 0.215 28);
  --red-ink:    oklch(0.74 0.185 28);
  --red-dim:    oklch(0.40 0.130 25);
  --red-glow:   oklch(0.63 0.235 25 / 0.45);

  /* Efectos */
  --radius:     18px;
  --radius-sm:  12px;
  --radius-lg:  26px;
  --shadow:     0 24px 60px -24px oklch(0 0 0 / 0.7);
  --shadow-red: 0 20px 60px -22px var(--red-glow);
  --ring:       0 0 0 3px oklch(0.63 0.235 25 / 0.35);

  --wrap: 1180px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);      /* ease-out-expo-ish */

  /* z-index semántico */
  --z-nav: 50;
  --z-mobile: 60;
}

/* ------------------------------- Reset ----------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Archivo', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--red); color: var(--ink); }

:focus-visible {
  outline: none;
  box-shadow: var(--ring);
  border-radius: 6px;
}

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 100;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 12px; }

/* ------------------------------ Layout ----------------------------------- */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(20px, 5vw, 40px); }

section { position: relative; }

.section-head { max-width: 640px; margin-bottom: clamp(36px, 6vw, 64px); }
.section-head h2 {
  font-size: clamp(1.9rem, 1rem + 3.4vw, 3.1rem);
  line-height: 1.05; letter-spacing: -0.03em; font-weight: 800;
  text-wrap: balance;
}
.section-head p { color: var(--ink-2); margin-top: 16px; font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); }

.ink-dim { color: var(--ink-3); }

/* ------------------------------ Typography -------------------------------- */
h1, h2, h3, h4 { font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
em { font-style: normal; color: var(--red-ink); }

/* Cifras / telemetría */
.mono, .tally__num, .board__metric b, .hero__trust dd, .ticker__val, .rank__val {
  font-family: 'Martian Mono', ui-monospace, monospace;
  font-feature-settings: "tnum" 1;
  letter-spacing: -0.03em;
}

/* ------------------------------ Buttons ---------------------------------- */
.btn {
  --btn-bg: transparent;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 11px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.95rem; letter-spacing: -0.01em;
  border: 1px solid transparent;
  background: var(--btn-bg);
  transition: transform .35s var(--ease), background-color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease), color .3s var(--ease);
  will-change: transform;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 15px 28px; font-size: 1.02rem; }

.btn--solid {
  --btn-bg: var(--red);
  color: #fff;
  box-shadow: 0 10px 30px -12px var(--red-glow);
}
.btn--solid:hover { --btn-bg: var(--red-2); box-shadow: 0 18px 44px -14px var(--red-glow); }
.btn--solid svg { transition: transform .35s var(--ease); }
.btn--solid:hover svg { transform: translateX(3px); }

.btn--ghost {
  color: var(--ink);
  border-color: var(--line);
  background: oklch(0.97 0.004 60 / 0.02);
}
.btn--ghost:hover { border-color: var(--red-dim); background: oklch(0.63 0.235 25 / 0.08); }

/* -------------------------------- Nav ------------------------------------ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  backdrop-filter: blur(14px);
  background: oklch(0.14 0.008 25 / 0.72);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background-color .3s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line-soft); background: oklch(0.13 0.008 25 / 0.9); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }

.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { display: block; height: 30px; width: auto; }
.foot .brand__logo { height: 34px; }

.nav__links { display: flex; gap: 28px; font-size: 0.95rem; color: var(--ink-2); }
.nav__links a { position: relative; padding: 6px 0; transition: color .25s var(--ease); }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px;
  background: var(--red); transition: width .3s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { width: 100%; }

.nav__cta { display: flex; gap: 10px; }

.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; }
.nav__burger span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease); }
.nav__burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile { display: none; flex-direction: column; gap: 4px; padding: 12px clamp(20px,5vw,40px) 22px; border-bottom: 1px solid var(--line-soft); background: var(--bg-2); }
.nav__mobile a { padding: 13px 0; color: var(--ink-2); border-bottom: 1px solid var(--line-soft); }
.nav__mobile a.btn { border-bottom: 0; justify-content: center; margin-top: 8px; }

/* -------------------------------- Hero ----------------------------------- */
.hero { padding-top: clamp(56px, 9vw, 110px); padding-bottom: 0; overflow: hidden; }
.hero__inner { position: relative; z-index: 2; text-align: center; max-width: 900px; }

.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.hero__grid {
  position: absolute; inset: -2px;
  background-image:
    linear-gradient(oklch(0.97 0.004 60 / 0.035) 1px, transparent 1px),
    linear-gradient(90deg, oklch(0.97 0.004 60 / 0.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
  animation: gridDrift 22s linear infinite;
}
@keyframes gridDrift { to { background-position: 46px 46px; } }
.hero__glow {
  position: absolute; top: -20%; left: 50%; transform: translateX(-50%);
  width: 900px; height: 700px; border-radius: 50%;
  background: radial-gradient(circle, var(--red-glow), transparent 62%);
  filter: blur(30px); opacity: 0.55;
  animation: glowPulse 7s var(--ease) infinite;
}
@keyframes glowPulse { 0%,100% { opacity: 0.4; } 50% { opacity: 0.62; } }
.hero__scan {
  position: absolute; inset: 0;
  background: linear-gradient(oklch(0.97 0.004 60 / 0.05), transparent 12%);
  background-size: 100% 5px; opacity: 0.4;
  animation: scan 8s linear infinite;
}
@keyframes scan { to { background-position: 0 100vh; } }
.hero__wave { position: absolute; left: 0; bottom: 0; width: 100%; height: 200px; opacity: 0.5; }
.hero__wave-line {
  fill: none; stroke: var(--red); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round;
  filter: drop-shadow(0 0 6px var(--red-glow));
  stroke-dasharray: 2400; stroke-dashoffset: 2400;
  animation: draw 3s var(--ease) forwards, wavePulse 3.5s ease-in-out 3s infinite;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes wavePulse { 0%,100% { opacity: 1; } 50% { opacity: 0.55; } }

/* Tally badge */
.tally {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--red-dim);
  background: oklch(0.63 0.235 25 / 0.08);
  font-size: 0.82rem; font-weight: 600; color: var(--ink-2);
}
.tally--sm { font-size: 0.72rem; }
.tally__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0.25; } }
.tally__label { letter-spacing: 0.14em; color: var(--red-ink); font-weight: 700; }
.tally__sep { width: 1px; height: 14px; background: var(--red-dim); }
.tally__num { color: var(--ink); font-weight: 700; }
.tally__unit { color: var(--ink-3); }

.hero__title {
  margin-top: 26px;
  font-size: clamp(2.6rem, 1rem + 6.4vw, 5.4rem);
  line-height: 0.98; letter-spacing: -0.04em; font-weight: 900;
  text-wrap: balance;
}
.hero__sub {
  margin: 24px auto 0; max-width: 620px;
  color: var(--ink-2); font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  line-height: 1.55; text-wrap: pretty;
}
.hero__actions { margin-top: 34px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.hero__trust {
  margin: 54px auto 0; max-width: 720px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-soft); border: 1px solid var(--line-soft);
  border-radius: var(--radius); overflow: hidden;
}
.hero__trust > div { background: var(--bg); padding: 22px 16px; }
.hero__trust dt { font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.01em; }
.hero__trust dd { margin-top: 6px; font-size: clamp(1.5rem, 1rem + 1.6vw, 2.1rem); font-weight: 700; color: var(--ink); }

/* Ticker */
.ticker {
  margin-top: clamp(48px, 7vw, 80px);
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2); overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; gap: 40px; width: max-content; padding: 15px 20px; animation: tickerMove 42s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes tickerMove { to { transform: translateX(-50%); } }
.ticker__item { display: inline-flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--ink-2); white-space: nowrap; }
.ticker__live { width: 7px; height: 7px; border-radius: 50%; background: var(--red); box-shadow: 0 0 8px var(--red); }
.ticker__name { font-weight: 600; color: var(--ink); }
.ticker__val { color: var(--red-ink); font-size: 0.85rem; }
.ticker__val::before { content: "▲ "; font-size: 0.7em; }

/* -------------------------------- About ---------------------------------- */
.about { padding-block: clamp(80px, 12vw, 150px); }
.about__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 80px); align-items: start; }
.about__title { font-size: clamp(1.8rem, 1rem + 3vw, 3rem); line-height: 1.06; letter-spacing: -0.03em; text-wrap: balance; }
.about__body { display: grid; gap: 20px; }
.about__body p { color: var(--ink-2); font-size: clamp(1rem, 0.97rem + 0.4vw, 1.16rem); max-width: 62ch; }
.about__body strong { color: var(--ink); }

/* -------------------------------- Bento ---------------------------------- */
.feat { padding-block: clamp(30px, 6vw, 70px) clamp(80px, 12vw, 140px); }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bento__tile {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(22px, 3vw, 32px);
  transition: border-color .4s var(--ease), transform .4s var(--ease), background-color .4s var(--ease);
}
.bento__tile:hover { border-color: var(--red-dim); transform: translateY(-4px); }
.bento__tile--wide { grid-column: span 2; display: flex; align-items: center; gap: 28px; justify-content: space-between; }
.bento__tile--accent {
  background:
    radial-gradient(120% 140% at 100% 0%, oklch(0.63 0.235 25 / 0.14), transparent 55%),
    var(--surface);
}
.bento__meta { max-width: 44ch; }
.bento__kicker { font-size: 0.72rem; letter-spacing: 0.14em; font-weight: 700; color: var(--red-ink); }
.bento__tile h3 { margin-top: 12px; font-size: clamp(1.2rem, 1rem + 0.9vw, 1.6rem); letter-spacing: -0.02em; }
.bento__tile p { margin-top: 10px; color: var(--ink-2); font-size: 0.98rem; line-height: 1.55; }
.bento__icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  color: var(--red-ink); background: oklch(0.63 0.235 25 / 0.1); border: 1px solid var(--red-dim);
}
.bento__icon svg { width: 24px; height: 24px; }

/* Barras de audiencia (equalizer) */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 96px; flex: 0 0 auto; }
.bars span {
  width: 6px; border-radius: 3px 3px 0 0;
  background: linear-gradient(var(--red-2), var(--red-dim));
  height: var(--h);
  transform-origin: bottom; animation: eq 1.5s var(--ease) infinite alternate; animation-delay: var(--d);
}
@keyframes eq { from { transform: scaleY(0.35); opacity: 0.55; } to { transform: scaleY(1); opacity: 1; } }

/* Pulso de alerta */
.pulsecard { position: relative; width: 92px; height: 92px; flex: 0 0 auto; display: grid; place-items: center; }
.pulsecard__core { width: 16px; height: 16px; border-radius: 50%; background: var(--red); box-shadow: 0 0 16px var(--red); }
.pulsecard__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--red); animation: ripple 2.2s var(--ease) infinite; }
@keyframes ripple { 0% { transform: scale(0.35); opacity: 0.9; } 100% { transform: scale(1); opacity: 0; } }

/* -------------------------------- Data ----------------------------------- */
.data { padding-block: clamp(20px, 4vw, 40px) clamp(80px, 12vw, 140px); }
.data__stamp { display: inline-flex; align-items: center; gap: 8px; margin-left: 6px; font-size: 0.82rem; color: var(--ink-3); }
.data__stamp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.data__stamp-dot.is-live { background: var(--red); box-shadow: 0 0 8px var(--red); animation: blink 1.6s steps(1) infinite; }

.data__grid { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 16px; align-items: start; }
.panel {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: clamp(18px, 2.2vw, 26px);
}
.panel--live { background: radial-gradient(140% 120% at 0 0, oklch(0.63 0.235 25 / 0.08), transparent 50%), var(--surface); }
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-soft); }
.panel__head h3 { font-size: 1.05rem; display: inline-flex; align-items: center; gap: 9px; }
.panel__live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 10px var(--red); animation: blink 1.4s steps(1) infinite; }
.panel__hint { font-size: 0.76rem; color: var(--ink-3); text-transform: capitalize; }

/* Board (canales en vivo) */
.board { list-style: none; padding: 0; display: grid; gap: 4px; }
.board__row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px; padding: 8px 6px; border-radius: 10px; transition: background-color .25s var(--ease); }
.board__row:hover { background: oklch(0.97 0.004 60 / 0.03); }
.board__rank { font-family: 'Martian Mono', monospace; font-size: 0.82rem; color: var(--ink-3); text-align: center; }
.board__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.avatar {
  width: 34px; height: 34px; border-radius: 9px; flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center; font-size: 0.72rem; font-weight: 700;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line-soft);
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.board__name { min-width: 0; }
.board__title { display: flex; align-items: center; gap: 5px; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.verif { width: 14px; height: 14px; color: var(--red-ink); flex: 0 0 auto; }
.board__sub { display: flex; align-items: center; gap: 6px; font-size: 0.76rem; color: var(--ink-3); margin-top: 2px; }
.board__metric { text-align: right; min-width: 84px; }
.board__metric b { font-size: 0.95rem; font-weight: 700; }
.board__bar { display: block; height: 3px; margin-top: 5px; background: var(--line-soft); border-radius: 3px; overflow: hidden; }
.board__bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--red-dim), var(--red)); border-radius: 3px; transform-origin: left; }
.flag { border-radius: 2px; flex: 0 0 auto; object-fit: cover; box-shadow: 0 0 0 1px oklch(0 0 0 / 0.35); }

/* Rank (categorías / países) */
.rank { list-style: none; padding: 0; display: grid; gap: 15px; }
.rank__row { display: grid; grid-template-columns: minmax(80px, 1fr) 1.4fr auto; align-items: center; gap: 12px; }
.rank--flags .rank__label { display: flex; align-items: center; gap: 8px; }
.rank__label { font-size: 0.9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rank__track { height: 8px; background: var(--surface-2); border-radius: 5px; overflow: hidden; }
.rank__track i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--red-dim), var(--red-2)); border-radius: 5px; box-shadow: 0 0 12px -2px var(--red-glow); }
.rank__val { font-size: 0.85rem; color: var(--ink-2); text-align: right; min-width: 48px; }

/* -------------------------------- CTA ------------------------------------ */
.cta { padding-block: clamp(30px, 6vw, 60px) clamp(80px, 12vw, 130px); }
.cta__inner { position: relative; overflow: hidden; border-radius: var(--radius-lg); border: 1px solid var(--red-dim);
  background: radial-gradient(120% 160% at 50% 0%, oklch(0.24 0.06 25), var(--bg-2));
  padding: clamp(44px, 8vw, 90px) clamp(24px, 5vw, 40px); text-align: center; }
.cta__glow { position: absolute; top: -40%; left: 50%; transform: translateX(-50%); width: 700px; height: 500px; border-radius: 50%; background: radial-gradient(circle, var(--red-glow), transparent 60%); filter: blur(40px); opacity: 0.6; pointer-events: none; }
.cta__body { position: relative; z-index: 1; max-width: 640px; margin-inline: auto; display: grid; justify-items: center; gap: 18px; }
.cta__body h2 { font-size: clamp(2rem, 1rem + 4vw, 3.4rem); letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.cta__body > p { color: var(--ink-2); font-size: clamp(1.02rem, 1rem + 0.4vw, 1.2rem); max-width: 52ch; }
.cta__actions { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.cta__contact { font-size: 0.9rem; color: var(--ink-3); margin-top: 6px; }
.cta__contact a { color: var(--red-ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------- Footer ---------------------------------- */
.foot { border-top: 1px solid var(--line-soft); background: var(--bg-2); padding-top: clamp(50px, 7vw, 80px); }
.foot__inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot__brand p { margin-top: 14px; color: var(--ink-3); font-size: 0.92rem; max-width: 40ch; }
.foot__col h4 { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.foot__col a { display: block; padding: 6px 0; color: var(--ink-2); font-size: 0.94rem; transition: color .25s var(--ease); }
.foot__col a:hover { color: var(--red-ink); }
.foot__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 22px; border-top: 1px solid var(--line-soft); font-size: 0.84rem; color: var(--ink-3); }
.foot__ver { font-family: 'Martian Mono', monospace; font-size: 0.76rem; }

/* ------------------------------- Motion ---------------------------------- */
.has-js [data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.has-js [data-reveal].is-in { opacity: 1; transform: none; }

/* stagger interno (board / rank / ticker rows) usan --d en línea */
.has-js .board__row, .has-js .rank__row { opacity: 0; transform: translateX(-10px); }
.has-js .is-in .board__row, .has-js .is-in .rank__row,
.has-js .board__row.is-in, .has-js .rank__row.is-in { opacity: 1; transform: none; }
.panel.is-in .board__row, .panel.is-in .rank__row { animation: rowIn .6s var(--ease) both; animation-delay: var(--d); }
@keyframes rowIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .has-js [data-reveal] { opacity: 1 !important; transform: none !important; }
  .hero__wave-line { stroke-dashoffset: 0; }
  .ticker__track { animation: none; }
}

/* ----------------------------- Responsive -------------------------------- */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__mobile.is-open { display: flex; }
  .about__inner { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento__tile--wide { grid-column: span 2; }
  .data__grid { grid-template-columns: 1fr 1fr; }
  .panel--live { grid-column: span 2; }
}

@media (max-width: 640px) {
  .hero__trust { grid-template-columns: 1fr; }
  .hero__trust > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; text-align: left; padding: 16px 20px; }
  .hero__trust dd { margin-top: 0; }
  .bento, .data__grid { grid-template-columns: 1fr; }
  .bento__tile--wide { grid-column: span 1; flex-direction: column; align-items: flex-start; }
  .panel--live { grid-column: span 1; }
  .bento__tile--wide .bars, .bento__tile--wide .pulsecard { align-self: center; }
  .foot__inner { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: span 2; }
  .foot__bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .tally { flex-wrap: wrap; justify-content: center; row-gap: 2px; }
  .tally__unit { width: 100%; text-align: center; }
}

/* ---------------------------- Ficha de canal ------------------------------ */
.chx { padding-block: clamp(22px, 4vw, 44px) clamp(40px, 7vw, 80px); }
.chx section { margin-top: clamp(40px, 6vw, 68px); }
.chx__crumbs { display: flex; gap: 8px; font-size: 0.84rem; color: var(--ink-3); }
.chx__crumbs a:hover { color: var(--red-ink); }

.chx__head { display: grid; grid-template-columns: auto 1fr auto; gap: clamp(16px, 3vw, 28px); align-items: center; margin-top: clamp(20px, 3vw, 34px); }
.chx__avatar {
  width: 96px; height: 96px; border-radius: 24px; overflow: hidden; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 1.8rem; font-weight: 800;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.chx__avatar img { width: 100%; height: 100%; object-fit: cover; }
.chx__id { min-width: 0; }
.chx__id h1 { display: flex; align-items: center; gap: 10px; font-size: clamp(1.9rem, 1.2rem + 3vw, 3.2rem); letter-spacing: -0.035em; font-weight: 900; overflow-wrap: anywhere; }
.chx__id h1 .verif { width: 0.62em; height: 0.62em; }
.chx__lead { color: var(--ink-2); font-size: clamp(1rem, 0.95rem + 0.3vw, 1.15rem); margin-top: 4px; }
.chx__tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chx__tags li {
  display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px;
  border: 1px solid var(--line-soft); background: var(--surface); font-size: 0.84rem; color: var(--ink-2);
}
.chx__tags .is-rank { border-color: var(--red-dim); }
.chx__tags .is-rank b { color: var(--ink); font-weight: 700; }
.chx__links { display: flex; flex-direction: column; gap: 10px; }
.chx__stamp { margin-top: 20px; font-size: 0.82rem; color: var(--ink-3); }
.chx__empty { margin-top: 40px; padding: 28px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--ink-2); }
.chx__h2 { font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); letter-spacing: -0.025em; margin-bottom: 18px; text-wrap: balance; }
.chx__h2 small { display: block; margin-top: 6px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; color: var(--ink-3); }
.chx__duo { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; align-items: stretch; }
.chx__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }
.chx--missing { padding-block: clamp(80px, 14vw, 170px); }
.chx--missing h1 { font-size: clamp(1.9rem, 1rem + 3.4vw, 3.1rem); letter-spacing: -0.03em; }
.chx--missing p { margin-top: 14px; color: var(--ink-2); max-width: 52ch; }

/* Tiles de cifras */
.kpis { display: grid; grid-template-columns: 1.35fr 1fr 1fr 1fr; gap: 16px; }
.kpis--3 { grid-template-columns: repeat(3, 1fr); }
.kpi { display: flex; flex-direction: column; gap: 6px; padding: clamp(18px, 2.2vw, 24px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); min-width: 0; }
.kpi--hero { border-color: var(--red-dim); background: radial-gradient(120% 140% at 0% 0%, oklch(0.26 0.06 25), var(--surface)); }
.kpi__label { font-size: 0.82rem; color: var(--ink-2); font-weight: 600; }
.kpi__num { font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.15rem); font-weight: 700; line-height: 1.1; color: var(--ink); }
.kpi--hero .kpi__num { font-size: clamp(1.9rem, 1.2rem + 2.6vw, 3rem); }
.kpi__num small { font-size: 0.5em; color: var(--ink-3); font-weight: 500; }
.kpi__num.is-off { color: var(--ink-3); }
.kpi__note { font-size: 0.8rem; color: var(--ink-3); line-height: 1.45; }
.delta { font-weight: 700; color: var(--ink); white-space: nowrap; }
.delta--down { color: var(--ink-2); }
.kpis + .chart { margin-top: 16px; }

/* Gráficos de barras (HTML: nítidos y responsivos sin librerías) */
.chart { margin: 0; }
.chart__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 26px; }
.chart__head h3 { font-size: 1.05rem; }
.chart__legend { list-style: none; padding: 0; display: flex; gap: 16px; font-size: 0.8rem; color: var(--ink-2); }
.chart__legend li { display: inline-flex; align-items: center; gap: 7px; }
.key { display: inline-block; }
.key--bar { width: 10px; height: 10px; border-radius: 3px; background: var(--red); }
.key--tick { width: 14px; height: 2px; background: var(--ink); }

.colchart { display: grid; grid-template-columns: auto 1fr; gap: 8px 10px; }
.colchart--hours { grid-template-columns: 1fr; }
.colchart__y { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 0.68rem; color: var(--ink-3); line-height: 1; }
.colchart__plot {
  position: relative; height: clamp(170px, 24vw, 240px);
  display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; align-items: end;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(var(--line-soft), var(--line-soft)) 0 0 / 100% 1px no-repeat,
              linear-gradient(var(--line-soft), var(--line-soft)) 0 50% / 100% 1px no-repeat;
}
.colchart--hours .colchart__plot { height: 170px; background: none; }
.colchart__col { position: relative; height: 100%; display: flex; align-items: flex-end; justify-content: center; }
.colchart__col:hover { background: oklch(0.97 0.004 60 / 0.05); }
.colchart__bar { display: block; width: min(100%, 22px); height: var(--p); min-height: 2px; background: var(--red); border-radius: 4px 4px 0 0; }
.colchart__col:hover .colchart__bar { background: var(--red-2); }
.colchart__avg { position: absolute; left: 50%; bottom: var(--a); width: min(100%, 22px); height: 2px; transform: translate(-50%, 50%); background: var(--ink); box-shadow: 0 0 0 1px var(--surface); }
.colchart__flag { position: absolute; bottom: calc(var(--p) + 5px); left: 50%; transform: translateX(-50%); font-size: 0.68rem; font-weight: 600; color: var(--ink); white-space: nowrap; pointer-events: none; }
.colchart__x { grid-column: -2 / -1; display: grid; grid-template-columns: repeat(var(--cols), 1fr); gap: 2px; font-size: 0.68rem; color: var(--ink-3); }
.colchart__x span { width: 0; justify-self: center; display: flex; justify-content: center; white-space: nowrap; }

.chart__table { margin-top: 18px; font-size: 0.86rem; }
.chart__table summary, .faq summary { cursor: pointer; }
.chart__table summary { color: var(--ink-2); font-weight: 600; width: fit-content; }
.chart__table summary:hover { color: var(--red-ink); }
.chart__scroll { max-height: 320px; overflow: auto; margin-top: 12px; }
.chart__table table { width: 100%; border-collapse: collapse; }
.chart__table caption { text-align: left; color: var(--ink-3); padding-bottom: 8px; }
.chart__table th, .chart__table td { padding: 7px 10px; border-bottom: 1px solid var(--line-soft); text-align: right; font-weight: 500; }
.chart__table th:first-child { text-align: left; }
.chart__table thead th { color: var(--ink-3); font-size: 0.78rem; position: sticky; top: 0; background: var(--surface); }

.tip {
  position: fixed; z-index: 80; pointer-events: none; max-width: 260px;
  padding: 7px 11px; border-radius: 9px; font-size: 0.8rem; line-height: 1.4; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); box-shadow: var(--shadow);
}

/* Transmisiones más vistas */
.tops { list-style: none; display: grid; gap: 2px; }
.tops__row { display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 14px; padding: 11px 6px; border-bottom: 1px solid var(--line-soft); }
.tops__row:last-child { border-bottom: 0; }
.tops__title { min-width: 0; font-weight: 600; font-size: 0.95rem; overflow-wrap: anywhere; }
.tops__title a:hover { color: var(--red-ink); }
.tops__title small, .tops__val small { display: block; font-size: 0.76rem; font-weight: 400; color: var(--ink-3); margin-top: 2px; }
.tops__val { text-align: right; }

/* Versus */
.vs { display: grid; gap: 4px; }
.vs__head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-bottom: 16px; margin-bottom: 8px; border-bottom: 1px solid var(--line-soft); }
.vs__who { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; }
.vs__who--b { justify-content: flex-end; text-align: right; }
a.vs__who:hover { color: var(--red-ink); }
.vs__x { font-family: 'Martian Mono', monospace; font-size: 0.74rem; font-weight: 700; color: var(--ink-3); letter-spacing: 0.1em; }
.vs__row { display: grid; grid-template-columns: minmax(84px, auto) 1fr minmax(84px, auto); align-items: center; gap: 4px 14px; padding: 10px 0; }
.vs__row b { font-size: 0.95rem; font-weight: 500; color: var(--ink-2); }
.vs__row b:last-of-type { text-align: right; }
.vs__row b.is-win { font-weight: 700; color: var(--ink); }
.vs__bars { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.vs__bars i { display: block; height: 8px; width: var(--w); min-width: 2px; }
.vs__a { justify-self: end; background: var(--red); border-radius: 5px 0 0 5px; }
.vs__b { background: var(--ink-3); border-radius: 0 5px 5px 0; }
.vs__label { grid-column: 1 / -1; text-align: center; font-size: 0.78rem; color: var(--ink-3); }
.vs__cta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 20px; margin-top: 12px; padding-top: 16px; border-top: 1px solid var(--line-soft); font-size: 0.9rem; font-weight: 600; }
.vs__cta a { color: var(--red-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Canales relacionados */
.rel { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.rel__card { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 11px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line-soft); transition: border-color .25s var(--ease), background-color .25s var(--ease); }
.rel__card:hover { border-color: var(--red-dim); background: var(--surface-2); }
.rel__name { min-width: 0; font-weight: 600; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rel__val { font-size: 0.8rem; color: var(--ink-2); }

/* Preguntas frecuentes */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { border: 1px solid var(--line-soft); border-radius: var(--radius-sm); background: var(--surface); padding: 0 20px; }
.faq summary { padding: 16px 0; font-weight: 700; font-size: 1rem; }
.faq summary:hover { color: var(--red-ink); }
.faq p { padding-bottom: 18px; color: var(--ink-2); max-width: 70ch; }

/* Filas de la home enlazadas a su ficha */
a.board__link { color: inherit; }
a.board__link:hover { color: var(--red-ink); }

@media (max-width: 940px) {
  .chx__head { grid-template-columns: auto 1fr; }
  .chx__links { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .kpis--3 { grid-template-columns: repeat(3, 1fr); }
  .chx__duo { grid-template-columns: 1fr; }
  .rel { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .chx__avatar { width: 68px; height: 68px; border-radius: 18px; }
  .kpis, .kpis--3 { grid-template-columns: 1fr; }
  .rel { grid-template-columns: 1fr; }
  .colchart__plot { gap: 1px; }
  .vs__row { grid-template-columns: auto 1fr auto; }
}
.chx .panel__hint { text-transform: none; }
@media (max-width: 640px) {
  .chx__head { align-items: start; }
  /* Eje de fechas: una etiqueta cada 10 días para que no se pisen. */
  .colchart:not(.colchart--hours) .colchart__x span:first-child,
  .colchart:not(.colchart--hours) .colchart__x span:nth-child(10n+5) { visibility: hidden; }
}
