/* ============================================================================
   HOME 2 — rediseño de estructura (sep-2026)
   Idea: "corillo" es un grupo de panas. La portada es sobre las personas,
   no sobre una parrilla de canales. Nombre gigante sobre imagen a sangre,
   rostros grandes, VODs en formato editorial (uno grande + cola).

   Scopeado a body.page-home. Paleta = identidad neón vigente (corillo.css):
   azul bandera + flamboyán/sol. El degradado acento→acento 2 se usa SOLO para marcar
   "está en vivo" (aro de los rostros, aro del hero). Todo lo demás es hueso
   sobre negro.
   ============================================================================ */

body.page-home {
  --h2-gutter: clamp(18px, 4vw, 56px);
  --h2-display: 'Bricolage Grotesque', 'DM Sans', system-ui, sans-serif;
  --h2-body:    'DM Sans', system-ui, sans-serif;
  background: var(--h2-ink);
  color: var(--h2-bone);
  font-family: var(--h2-body);
}

/* ═════════ HERO ═════════ */
.h2-stage { position: relative; }
.h2-stage .featured {
  border: 0; border-radius: 0; background: var(--h2-ink); overflow: visible;
}
.h2-stage .featured-video {
  height: clamp(460px, calc(100svh - var(--nv-top) - 24px), 820px);
  background: var(--h2-ink);
  overflow: hidden;
}
.h2-stage .featured-video video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.h2-stage .sim-stream {
  position: absolute; inset: 0; display: block;
  background: radial-gradient(120% 90% at 20% 30%, #12303a 0%, var(--h2-ink) 65%);
  background-size: cover; background-position: center 30%;
}
.h2-stage .sim-stream.offline { background-color: var(--h2-ink); }
.h2-stage .sim-stream.has-thumb { background-size: cover; background-position: center; transform-origin: 62% 42%; animation: h2-drift 16s ease-in-out infinite alternate; }
@keyframes h2-drift { from { transform: scale(1); } to { transform: scale(1.07); } }
@media (prefers-reduced-motion: reduce) { .h2-stage .sim-stream.has-thumb { animation: none; } }
.h2-stage .sim-stream.has-thumb::before { display: none; }
.h2-stage .sim-stream-grid { display: none; }

/* oscurece abajo-izquierda donde va el texto; deja respirar el resto de la imagen */
.h2-scrim {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background:
    linear-gradient(to top, rgba(6,20,63,.96) 0%, rgba(6,20,63,.55) 32%, rgba(6,20,63,0) 62%),
    linear-gradient(to right, rgba(6,20,63,.9) 0%, rgba(6,20,63,.62) 38%, rgba(6,20,63,0) 72%),
    linear-gradient(to bottom, rgba(6,20,63,.55) 0%, rgba(6,20,63,0) 22%);
}
.h2-stage .featured-video:not(.playing) .sim-stream.offline { filter: saturate(.85) brightness(.85); }

.h2-hero {
  position: absolute; z-index: 3; left: var(--h2-gutter); right: var(--h2-gutter);
  bottom: clamp(28px, 6vh, 64px);
  display: grid; gap: 14px; justify-items: start;
  max-width: 1200px;
}
.h2-status { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.h2-stage .live-badge {
  border-radius: 999px; padding: 7px 14px 7px 12px;
  background: var(--h2-live); color: #fff;
  font: 700 .82rem/1 var(--h2-body); letter-spacing: .01em; text-transform: none;
}
.h2-stage .live-badge.offline {
  background: rgba(245,248,255,.10); color: var(--h2-bone); border: 0;
  backdrop-filter: blur(10px);
}
.h2-stage .featured-meta {
  border-radius: 999px; padding: 7px 13px;
  background: rgba(245,248,255,.10); border: 0; backdrop-filter: blur(10px);
  font: 500 .82rem/1 var(--h2-body); letter-spacing: 0; color: var(--h2-bone);
  font-variant-numeric: tabular-nums;
}
.h2-stage .featured-meta i { color: var(--h2-bone); opacity: .7; }

.h2-stage .sim-title {
  font-family: var(--h2-display); font-weight: 800;
  font-size: clamp(4rem, 14.5vw, 13rem);
  line-height: .82; letter-spacing: -.035em; text-align: left; text-transform: none;
  color: var(--h2-bone); text-shadow: none; margin: 0 0 0 -.04em;
  font-variation-settings: 'opsz' 96;
  max-width: 100%; overflow-wrap: anywhere;
}
.h2-stage .sim-stream.offline ~ .h2-hero .sim-title { font-size: clamp(4rem, 14.5vw, 13rem); }
.h2-stage .sim-sub {
  font: 500 clamp(1rem, 1.6vw, 1.35rem)/1.3 var(--h2-body);
  letter-spacing: 0; text-transform: none; color: var(--h2-bone); opacity: .85;
  margin: 2px 0 0;
  /* reserva 2 líneas: el subtítulo cambia con el destacado y no debe empujar el resto del hero */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.6em;
}
.h2-who { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.h2-stage .featured-streamer { gap: 12px; }
.h2-stage .featured-ava {
  width: 46px; height: 46px; border-radius: 50%; font: 700 1.1rem var(--h2-display);
  box-shadow: 0 0 0 2px var(--h2-ink), 0 0 0 4px var(--h2-bone);
}
.h2-stage .featured-name { display: none; }         /* el nombre ya es el titular gigante */
.h2-stage .featured-sub  { font: 500 .95rem/1.3 var(--h2-body); color: rgba(245,248,255,.72); letter-spacing: 0; text-transform: none; }
.h2-stage .featured-sub .host-tag { font-family: var(--h2-body); letter-spacing: .02em; }
.h2-stage .featured-actions { display: flex; gap: 10px; align-items: center; }
.h2-stage .play-btn {
  border-radius: 999px; padding: 15px 28px;
  background: var(--h2-bone); color: var(--h2-ink); border: 0; box-shadow: none;
  font: 700 1rem/1 var(--h2-body); letter-spacing: 0; text-transform: none;
}
.h2-stage .play-btn:hover { transform: none; background: #fff; box-shadow: 0 0 0 4px rgba(255,106,61,.35); }
.h2-stage .icon-btn {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(245,248,255,.10); border: 0; color: var(--h2-bone);
  backdrop-filter: blur(10px);
}
.h2-stage .icon-btn:hover { background: rgba(245,248,255,.2); }

@keyframes h2-spin { to { transform: rotate(360deg); } }

.h2-stage .rotate-bar { height: 3px; background: var(--h2-bone); opacity: .55; z-index: 4; }
.h2-stage .featured-dots { display: none !important; }

/* ═════════ CUERPO ═════════ */
.h2-main { padding: 0 var(--h2-gutter); max-width: 1680px; margin: 0 auto; }
.h2-sec  { padding-top: clamp(56px, 9vw, 112px); }
.h2-sec-hd {
  display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap;
  margin-bottom: clamp(20px, 3vw, 32px);
}
.h2-sec-hd h2 {
  margin: 0; font: 700 clamp(1.9rem, 3.6vw, 3rem)/1 var(--h2-display);
  letter-spacing: -.03em; text-transform: none; color: var(--h2-bone);
}
.h2-sec-hd .h2-count { color: var(--h2-mute); font: 500 1rem var(--h2-body); font-variant-numeric: tabular-nums; }
.h2-sec-hd .h2-more-link {
  margin-left: auto; color: var(--h2-bone); font: 600 .95rem var(--h2-body);
  text-decoration: none; border-bottom: 1px solid var(--h2-line); padding-bottom: 3px;
  transition: border-color .15s;
}
.h2-sec-hd .h2-more-link:hover { border-color: var(--h2-cyan); }

/* ── En vivo ahora ── */
.h2-live-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 34%);
  gap: 18px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px;
  scrollbar-width: none;
}
.h2-live-rail::-webkit-scrollbar { display: none; }
.h2-live { display: block; text-decoration: none; color: inherit; scroll-snap-align: start; }
.h2-live-thumb {
  position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden;
  background: var(--h2-panel);
  box-shadow: 0 0 0 2px var(--h2-ink), 0 0 0 4px var(--h2-live);
}
.h2-live-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.h2-live:hover .h2-live-thumb img { transform: scale(1.04); }
.h2-chip {
  position: absolute; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px; font: 700 .78rem/1 var(--h2-body);
  font-variant-numeric: tabular-nums; backdrop-filter: blur(8px);
}
.h2-chip.live   { left: 12px; background: var(--h2-live); color: #fff; }
.h2-chip.viewers{ right: 12px; background: rgba(6,20,63,.65); color: var(--h2-bone); }
.h2-live-meta { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.h2-live-meta strong { display: block; font: 700 1.15rem/1.15 var(--h2-display); letter-spacing: -.02em; }
.h2-live-meta small  { display: block; color: var(--h2-mute); font: 400 .9rem/1.3 var(--h2-body); margin-top: 3px; }
.h2-mini-face {
  flex: none; width: 42px; height: 42px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center; font: 800 1rem var(--h2-display); color: var(--h2-ink);
}
.h2-mini-face img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Ponte al día (VODs): uno grande + cola ── */
.h2-vods { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.h2-vod  { display: block; color: inherit; text-decoration: none; }
.h2-vod-thumb {
  position: relative; overflow: hidden; background: var(--h2-panel);
  aspect-ratio: 16 / 9; border-radius: 18px;
}
.h2-vod-thumb img, .h2-vod-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.h2-vod:hover .h2-vod-thumb img { transform: scale(1.035); }
.h2-vod-initial {
  position: absolute; inset: 0; display: grid; place-items: center;
  font: 800 4rem var(--h2-display); color: rgba(255,255,255,.85);
}
.h2-vod .h2-dur {
  position: absolute; right: 10px; bottom: 10px; z-index: 2;
  padding: 5px 9px; border-radius: 8px; background: rgba(6,20,63,.78);
  font: 600 .78rem/1 var(--h2-body); font-variant-numeric: tabular-nums;
}
.h2-vod-body { display: flex; gap: 12px; align-items: center; margin-top: 14px; }
.h2-vod-body strong { display: block; font: 700 1.1rem/1.15 var(--h2-display); letter-spacing: -.02em; }
.h2-vod-body small  { display: block; color: var(--h2-mute); font: 400 .9rem/1.3 var(--h2-body); margin-top: 3px; }

.h2-vod.is-lead .h2-vod-thumb { border-radius: 24px; }
.h2-vod.is-lead .h2-vod-body strong { font-size: clamp(1.6rem, 2.6vw, 2.3rem); letter-spacing: -.035em; line-height: 1; }
.h2-vod.is-lead .h2-vod-body small  { font-size: 1rem; }
.h2-vod.is-lead .h2-mini-face { width: 52px; height: 52px; }
.h2-vod.is-lead .h2-dur { font-size: .9rem; padding: 7px 11px; }

.h2-vods.is-even { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); }
.h2-vods.is-even .h2-vod .h2-vod-thumb { border-radius: 22px; }
.h2-vods.is-even .h2-vod .h2-vod-body strong { font-size: clamp(1.35rem, 2.2vw, 1.9rem); letter-spacing: -.035em; line-height: 1; }
.h2-vods.is-even .h2-vod .h2-mini-face { width: 48px; height: 48px; }
.h2-vod-list { display: grid; gap: 6px; }
.h2-vod-list .h2-vod {
  display: grid; grid-template-columns: minmax(130px, 44%) 1fr; gap: 16px; align-items: center;
  padding: 10px; margin: 0 -10px; border-radius: 16px; transition: background .15s;
}
.h2-vod-list .h2-vod:hover { background: rgba(245,248,255,.05); }
.h2-vod-list .h2-vod-thumb { border-radius: 12px; }
.h2-vod-list .h2-vod-body { margin: 0; }
.h2-vod-list .h2-mini-face { display: none; }
.h2-vod-list .h2-dur { right: 6px; bottom: 6px; font-size: .7rem; padding: 4px 7px; }

/* ── El corillo (rostros) ── */
.h2-people { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 16px; }
.h2-person {
  position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 24px; overflow: hidden;
  text-decoration: none; color: var(--h2-bone); isolation: isolate;
  background: var(--h2-panel);
  transition: transform .25s ease;
}
.h2-person:hover, .h2-person:focus-visible { transform: translateY(-4px); }
.h2-person-img { position: absolute; inset: 0; display: grid; place-items: center; z-index: 0; }
.h2-person-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.h2-person-img .h2-initial { font: 800 clamp(5rem, 10vw, 8rem) var(--h2-display); color: rgba(255,255,255,.9); letter-spacing: -.05em; }
.h2-person::after {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to top, rgba(6,20,63,.94) 0%, rgba(6,20,63,.4) 38%, rgba(6,20,63,0) 62%);
}
.h2-person-txt { position: absolute; z-index: 2; left: 18px; right: 18px; bottom: 16px; }
.h2-person-txt strong {
  display: block; font: 800 clamp(1.35rem, 2vw, 1.75rem)/1 var(--h2-display); letter-spacing: -.04em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h2-person-txt small {
  display: block; margin-top: 6px; font: 500 .88rem/1.25 var(--h2-body); color: rgba(245,248,255,.72);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.h2-person:not(.is-live) .h2-person-img { filter: grayscale(1) brightness(.72); transition: filter .3s; }
.h2-person:not(.is-live):hover .h2-person-img,
.h2-person:not(.is-live):focus-visible .h2-person-img { filter: none; }
.h2-person.is-live { box-shadow: 0 0 0 2px var(--h2-ink), 0 0 0 5px var(--h2-cyan), 0 0 0 7px var(--h2-ink), 0 0 0 9px var(--h2-mag); }
.h2-person .h2-chip.live { top: 14px; left: 14px; z-index: 3; }
.h2-person.is-soon { background: transparent; border: 2px dashed var(--h2-line); }
.h2-person.is-soon::after { display: none; }
.h2-person.is-soon .h2-person-img .h2-initial { color: var(--h2-line); }
.h2-person.is-join { background: var(--h2-bone); color: var(--h2-ink); }
.h2-person.is-join::after { display: none; }
.h2-person.is-join .h2-person-txt small { color: rgba(6,20,63,.65); }
.h2-person.is-join .h2-plus { font: 300 6rem/1 var(--h2-display); }
.h2-empty { grid-column: 1 / -1; padding: 48px 0; color: var(--h2-mute); }

/* ── Reels ── */
.h2-reels { display: grid; grid-auto-flow: column; grid-auto-columns: clamp(150px, 15vw, 220px); gap: 14px; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 8px; scrollbar-width: none; }
.h2-reels::-webkit-scrollbar { display: none; }
.h2-reel { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: var(--h2-panel) center / cover no-repeat; scroll-snap-align: start; color: var(--h2-bone); text-decoration: none; }
.h2-reel::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(6,20,63,.85), rgba(6,20,63,0) 45%); }
.h2-reel span { position: absolute; z-index: 1; left: 12px; bottom: 12px; font: 700 .95rem var(--h2-display); letter-spacing: -.02em; }
.h2-reel em { position: absolute; z-index: 1; right: 10px; top: 10px; font: 600 .75rem/1 var(--h2-body); font-style: normal; padding: 5px 8px; border-radius: 8px; background: rgba(6,20,63,.7); font-variant-numeric: tabular-nums; }

/* ── Invitación ── */
.h2-join {
  margin-top: clamp(64px, 10vw, 128px); margin-bottom: clamp(48px, 8vw, 96px);
  padding: clamp(32px, 6vw, 80px); border-radius: 32px;
  background: var(--h2-bone);
  color: var(--h2-ink); display: grid; gap: 22px; justify-items: start;
}
.h2-join h2 { margin: 0; font: 800 clamp(2.4rem, 7vw, 6rem)/.9 var(--h2-display); letter-spacing: -.045em; max-width: 14ch; text-transform: none; color: var(--h2-ink); }
.h2-join p { margin: 0; max-width: 46ch; font: 500 clamp(1rem, 1.4vw, 1.2rem)/1.45 var(--h2-body); }
.h2-join a {
  display: inline-block; padding: 16px 30px; border-radius: 999px; background: var(--h2-ink); color: var(--h2-bone);
  font: 700 1rem/1 var(--h2-body); text-decoration: none; transition: transform .15s;
}
.h2-join a:hover { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255,106,61,.55); }

/* ── Accesibilidad ── */
.h2-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.page-home a:focus-visible, body.page-home button:focus-visible { outline: 3px solid var(--h2-cyan); outline-offset: 3px; }

/* Transición nativa entre páginas (sin JS): el fondo negro no parpadea */
@view-transition { navigation: auto; }

@media (prefers-reduced-motion: reduce) {
  .h2-person, .h2-vod-thumb img, .h2-live-thumb img { transition: none; }
}

/* ═════════ TABLET / MÓVIL ═════════ */
@media (max-width: 1000px) {
  .h2-vods, .h2-vods.is-even { grid-template-columns: 1fr; }
  .h2-vod-list { grid-template-columns: 1fr 1fr; gap: 18px; }
  .h2-vod-list .h2-vod { display: block; padding: 0; margin: 0; }
  .h2-vod-list .h2-vod-thumb { border-radius: 14px; }
  .h2-vod-list .h2-vod-body { margin-top: 10px; }
}
@media (max-width: 720px) {
  .h2-stage .featured-video { height: clamp(430px, calc(100svh - var(--nv-top) - var(--nv-tabs) - 28px), 720px); }
  .h2-hero { bottom: 28px; }
  .h2-status { min-height: 62px; align-content: flex-end; }   /* reserva 2 filas de chips: no empuja el titular al llegar la fecha/duración */
  .h2-who { flex-direction: column; align-items: flex-start; gap: 14px; }   /* siempre 2 filas: no salta al cargar los datos */
  .h2-stage .play-btn { padding: 14px 22px; }
  .h2-live-rail { grid-auto-columns: 82%; }
  .h2-people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .h2-person { border-radius: 18px; }
  .h2-person-txt { left: 14px; right: 14px; bottom: 12px; }
  .h2-vod-list { grid-template-columns: 1fr; }
  .h2-vod-list .h2-vod { display: grid; grid-template-columns: 42% 1fr; gap: 14px; }
  .h2-vod-list .h2-vod-body { margin: 0; }
  .h2-sec-hd .h2-more-link { margin-left: 0; }
}

.h2-stage .sim-sub:empty { display: none; }

/* Footer: misma voz que el resto del home (sentence case, DM Sans) */
body.page-home .site-footer { background: var(--h2-ink); border-top: 1px solid var(--h2-line); }
body.page-home .site-footer h4,
body.page-home .site-footer .foot-col-title,
body.page-home .site-footer [class*="title"],
body.page-home .site-footer [class*="tagline"],
body.page-home .site-footer [class*="sub"] { font-family: var(--h2-body); text-transform: none; letter-spacing: 0; }
body.page-home .site-footer a { font-family: var(--h2-body); }

/* El home es siempre oscuro: el toggle de tema no aplica aquí */
body.page-home .theme-btn { display: none; }
body.page-home .site-footer .foot-col-title { font-size: .95rem; font-weight: 700; }
body.page-home .site-footer .foot-tagline { font-size: .85rem; line-height: 1.5; color: var(--h2-mute); }
