/* Pantalla La Timba — modo agencia / TV (sin interacción, loop) */
/* Exclusivo PRO: overlay mientras se comprueba sesión o si no califica */
.tv-pro-gate-overlay[hidden] {
  display: none !important;
}
.tv-pro-gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 4vw, 2.5rem);
  /* Misma base que la web + capa un poco más opaca para el diálogo */
  background: linear-gradient(rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.9)), #0a1a0f
    url('../images/fondo_body.png') no-repeat center center;
  background-size: cover;
}
.tv-pro-gate-box {
  max-width: 42rem;
  text-align: center;
  padding: 0 0.5rem;
}
.tv-pro-gate-hint {
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  color: var(--tv-muted);
  margin: 0.85rem 0 1.1rem;
  line-height: 1.4;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}
.tv-pro-gate-hint code {
  color: #cbd5e1;
  font-size: 0.92em;
}
a.tv-pro-gate-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.02rem, 2vw, 1.2rem);
  font-weight: 700;
  color: var(--tv-text);
  text-decoration: none;
  background: rgba(34, 197, 94, 0.15);
  border: 2px solid var(--tv-accent2);
  border-radius: 12px;
  padding: 0.7rem 1.5rem;
  margin-top: 0.25rem;
}
a.tv-pro-gate-cta:hover,
a.tv-pro-gate-cta:focus-visible {
  background: rgba(34, 197, 94, 0.28);
  outline: none;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.3);
}
:root {
  /* Mismo fondo que index.html: images/fondo_body.png + velo (ruta relativa a este CSS en css/) */
  --tv-page-bg: linear-gradient(rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.8)), #0a1a0f
    url('../images/fondo_body.png') no-repeat center center fixed;
  --tv-bg0: #050a08;
  --tv-bg1: #0a1a12;
  --tv-accent: #4ade80;
  --tv-accent2: #22c55e;
  --tv-text: #f1f5f9;
  --tv-muted: #94a3b8;
  --tv-warn: #fbbf24;
  --tv-slide-sec: 12s;
  --tv-text-scale: 1.2;
  font-size: 106%;
}
@media (min-width: 1200px) {
  :root { font-size: 112%; }
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  background: var(--tv-page-bg);
  background-size: cover;
  color: var(--tv-text);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body.tv-standby {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.tv-standby-msg {
  text-align: center;
  color: var(--tv-muted);
  max-width: 32rem;
  line-height: 1.5;
  padding: 1rem;
}

.tv-root {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* Brillo suave encima de la imagen (ya en html/body), no tapa el fondo */
  background: radial-gradient(ellipse 120% 80% at 50% 0%, rgba(74, 222, 128, 0.1), transparent 55%);
}

/* Bloque central: el carrusel necesita padre flex + altura real. Sin esto, .tv-slides colapsa
   (hijos absolutos no aportan alto) y el contenido flex centrado se desborda hacia arriba y pisa el header. */
.tv-main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-height: 100dvh;
}

.tv-topbar {
  flex-shrink: 0;
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr) minmax(0, 1fr);
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.55rem 1.1rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(4px);
  overflow: visible;
}
@media (max-width: 720px) {
  .tv-topbar {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }
  .tv-topbar__right {
    justify-content: space-between;
  }
}
.tv-topbar__left {
  grid-column: 1;
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-start;
}
.tv-topbar__brandcol {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.15rem;
  min-width: 0;
}
.tv-topbar__center {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  max-width: 100%;
  text-align: center;
  padding: 0 0.15rem;
  overflow: visible;
}
/* Mismo arte que .header-banner en la web: cabecera_banner */
a.tv-cabecera {
  display: block;
  flex: 0 0 auto;
  min-width: 0;
  height: clamp(44px, 5.4vh, 60px);
  width: min(100%, 360px);
  max-width: min(92vw, 420px);
  text-decoration: none;
  background: url('../images/cabecera_banner.png') no-repeat left center;
  background-size: contain;
}
a.tv-cabecera:hover,
a.tv-cabecera:focus-visible {
  opacity: 0.95;
  outline: 2px solid rgba(74, 222, 128, 0.35);
  outline-offset: 2px;
  border-radius: 4px;
}
.tv-updated {
  font-size: clamp(0.8rem, 1.5vw, 0.95rem);
  font-weight: 500;
  color: var(--tv-muted);
  margin: 0;
  font-variant-numeric: tabular-nums;
}
.tv-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(74, 222, 128, 0.15);
  color: var(--tv-accent);
  font-size: clamp(0.78rem, 1.55vw, 1.05rem);
  font-weight: 600;
  border: 1px solid rgba(74, 222, 128, 0.3);
  max-width: min(100%, 38rem);
  line-height: 1.3;
  white-space: normal;
  text-align: center;
  justify-content: center;
  hyphens: auto;
  word-break: break-word;
  overflow: visible;
}
.tv-topbar__right {
  grid-column: 3;
  display: flex;
  flex-shrink: 0;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  align-self: center;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}
html:fullscreen .tv-top-actions,
html:-webkit-full-screen .tv-top-actions {
  display: none !important;
}
/* Solo el badge (sin texto "pulsá para…") en pantalla completa */
.tv-fs-hint {
  display: none;
  font: inherit;
  font-size: clamp(0.78rem, 1.15vw, 0.9rem);
  font-weight: 600;
  line-height: 1;
  padding: 0.3em 0.55em;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: #e2e8f0;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: default;
}
html:fullscreen .tv-fs-hint,
html:-webkit-full-screen .tv-fs-hint {
  display: inline-block;
  vertical-align: middle;
}
.tv-dm-header {
  display: inline-flex;
  align-items: center;
  line-height: 0;
  border-radius: 6px;
  padding: 0.1rem 0.15rem 0.1rem 0;
  min-height: 0;
  flex: 0 1 auto;
  max-width: min(100%, 100%);
  opacity: 0.95;
  transition: opacity 0.15s;
}
.tv-dm-header img {
  display: block;
  /* Legible a distancia en TV / proyector (antes quedaba diminuto). */
  height: clamp(52px, 7.5vh, 96px);
  width: auto;
  min-height: 52px;
  max-width: min(100%, 380px, 60vw);
  object-fit: contain;
}
@media (max-width: 600px) {
  .tv-dm-header img {
    min-height: 44px;
    height: clamp(44px, 6vh, 72px);
    max-width: 85vw;
  }
}
.tv-dm-header:hover,
.tv-dm-header:focus-visible { opacity: 1; }
.tv-dm-header:focus-visible { outline: 2px solid rgba(74, 222, 128, 0.4); }
.tv-top-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.tv-top-actions a,
.tv-top-actions button {
  font: inherit;
  color: var(--tv-muted);
  text-decoration: none;
  background: none;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 0.3rem 0.65rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.95rem;
}
.tv-top-actions a:hover,
.tv-top-actions button:hover {
  color: var(--tv-text);
  border-color: var(--tv-accent);
}

.tv-slides {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  z-index: 0;
  width: 100%;
}

.tv-slide {
  position: absolute;
  inset: 0;
  padding: clamp(0.75rem, 2.5vh, 1.75rem) clamp(0.75rem, 3vw, 2.5rem) clamp(0.75rem, 2.5vh, 1.75rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 0;
  /* Sin barra: el bucle de TV debe caber en el viewport; la diapositiva de resultados ajusta su grilla. */
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.98);
  transition: opacity 0.85s ease, transform 0.85s ease, visibility 0.85s;
  pointer-events: none;
}
.tv-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  z-index: 1;
  pointer-events: auto;
}

.tv-eyebrow {
  display: block;
  font-size: clamp(0.9rem, 1.7vw, 1.1rem);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--tv-accent2);
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.tv-h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.7rem, 4.5vw, 2.8rem);
  font-weight: 800;
  margin: 0 0 0.35rem;
  line-height: 1.1;
  max-width: 22ch;
}

.tv-sub {
  font-size: clamp(1.1rem, 2.3vw, 1.4rem);
  color: var(--tv-muted);
  max-width: 48rem;
  line-height: 1.45;
  margin: 0;
}

/* Hook — número gigante */
.tv-hero-num {
  font-family: "Poppins", sans-serif;
  font-size: clamp(5rem, 20vw, 12rem);
  font-weight: 800;
  line-height: 1;
  color: #fff;
  text-shadow: 0 0 60px rgba(74, 222, 128, 0.35);
  margin: 0.25rem 0 0.5rem;
}
.tv-hook-tag {
  display: inline-block;
  font-size: clamp(1.1rem, 3.5vw, 2rem);
  color: var(--tv-warn);
  font-weight: 700;
  margin-top: 0.25rem;
}
.tv-hook-sig {
  font-size: clamp(1.1rem, 2.5vw, 1.5rem);
  color: #cbd5e1;
  max-width: 40rem;
  margin: 0.5rem 0 0;
  font-style: italic;
}

/* Tres columnas sugerida */
.tv-tri {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.75rem, 4vw, 2.5rem);
  margin-top: 1.25rem;
  width: 100%;
  max-width: 52rem;
}
.tv-tri-box {
  flex: 1 1 7rem;
  min-width: 5.5rem;
  max-width: 12rem;
  padding: 1rem 0.75rem 1.25rem;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(74, 222, 128, 0.2);
}
/* Mismos pictos Phosphor thin + colores que el hub (free-hub-insight-icon) */
.tv-tri-ico {
  margin-bottom: 0.35rem;
  line-height: 1;
}
.tv-tri-ico .ph-thin {
  display: block;
  font-size: 2.4rem;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
}
.tv-tri-box--caliente .tv-tri-ico .ph-thin { color: #fb923c; }
.tv-tri-box--tendencia .tv-tri-ico .ph-thin { color: #4ade80; }
.tv-tri-box--atrasado .tv-tri-ico .ph-thin { color: #7dd3fc; }
.tv-tri-label { font-size: 1rem; color: var(--tv-muted); font-weight: 600; margin: 0 0 0.4rem; }
.tv-tri-num {
  font-family: "Poppins", sans-serif;
  font-size: clamp(2.9rem, 8.5vw, 4.4rem);
  font-weight: 800;
  color: var(--tv-accent);
  line-height: 1.1;
}

/* Oráculo pino */
.tv-pino {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  margin: 0.75rem 0;
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  line-height: 1.05;
}
.tv-pino .l2 { font-size: clamp(1.5rem, 4.5vw, 2.5rem); color: #86efac; }
.tv-pino .l3 { font-size: clamp(2rem, 5.5vw, 3.2rem); color: #4ade80; }
.tv-pino .l4 { font-size: clamp(2.4rem, 7vw, 4.2rem); color: #fff; text-shadow: 0 0 40px rgba(74, 222, 128, 0.3); }
.tv-pino .sig { font-size: clamp(1.1rem, 2.3vw, 1.4rem); color: #cbd5e1; font-weight: 500; max-width: 36rem; margin-top: 0.75rem; }

/* Cazador */
.tv-caz-num {
  font-size: clamp(3rem, 10vw, 5rem);
  font-weight: 800;
  color: #fff;
  text-shadow: 0 0 32px rgba(34, 197, 94, 0.45);
  margin: 0.4rem 0 0.25rem;
}
.tv-caz-line { font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: #e2e8f0; max-width: 44rem; }
.tv-bonus { font-size: clamp(1.05rem, 2.1vw, 1.25rem); color: var(--tv-warn); margin: 0.5rem 0 0; font-style: italic; }
.tv-bonus-ico { margin-right: 0.3em; vertical-align: -0.12em; color: #fde047; font-size: 1.15em; }

/* Bola grid frecuencias */
.tv-balls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(0.5rem, 1.2vw, 0.9rem);
  margin-top: 1rem;
  max-width: 50rem;
}
.tv-ball {
  width: clamp(2.8rem, 7vw, 4rem);
  height: clamp(2.8rem, 7vw, 4rem);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: clamp(0.95rem, 1.9vw, 1.2rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, #0f4d32, #0a1f14);
  border: 2px solid #4ade80;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  animation: tvPop 0.45s ease backwards;
}
.tv-ball:nth-child(1) { animation-delay: 0.04s; }
.tv-ball:nth-child(2) { animation-delay: 0.1s; }
.tv-ball:nth-child(3) { animation-delay: 0.16s; }
.tv-ball:nth-child(4) { animation-delay: 0.22s; }
.tv-ball:nth-child(5) { animation-delay: 0.28s; }
.tv-ball:nth-child(6) { animation-delay: 0.34s; }
.tv-ball:nth-child(7) { animation-delay: 0.4s; }
.tv-ball:nth-child(8) { animation-delay: 0.46s; }

@keyframes tvPop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Contenedor de resultados: encaja en la altura del carrusel sin barra de desplazamiento */
.tv-slide:has(.tv-results-slide) {
  justify-content: flex-start;
  padding-top: clamp(0.35rem, 1.3vh, 0.9rem);
  padding-bottom: clamp(0.35rem, 1.3vh, 0.9rem);
  align-items: center;
  overflow: hidden;
}
.tv-results-slide {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(96vw, 1500px);
  min-height: 0;
  flex: 0 1 auto;
  max-height: 100%;
  box-sizing: border-box;
  align-items: center;
  overflow: hidden;
}
.tv-results-slide .tv-eyebrow,
.tv-results-slide .tv-h1,
.tv-results-slide .tv-sub {
  flex: 0 0 auto;
}
.tv-results-slide .tv-h1 {
  max-width: none;
  font-size: clamp(1.2rem, 2.6vw, 1.95rem);
  margin: 0.1rem 0 0.2rem;
}
.tv-results-slide .tv-eyebrow {
  margin-bottom: 0.22rem;
  font-size: clamp(0.72rem, 1.35vw, 0.95rem);
}
.tv-results-slide .tv-sub {
  font-size: clamp(0.88rem, 1.45vw, 1.12rem);
  line-height: 1.32;
  max-width: 52rem;
}
.tv-results-bounded {
  min-height: 0;
  flex: 1 1 auto;
  width: 100%;
  max-height: min(58vh, calc(100dvh - 9.5rem));
  overflow: hidden;
  display: block;
  margin-top: 0.35rem;
  padding-bottom: 0.1rem;
}

/* Últimos resultados: varias columnas a lo ancho */
.tv-results-wide {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(0.55rem, 1.4vw, 1.1rem);
  width: 100%;
  text-align: left;
  margin-top: 0;
  align-items: start;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}
/* Quini: dos columnas de tarjetas en lugar de un solo tren vertical (evita que “se escape”) */
.tv-result-col--quini .tv-result-tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.55rem;
  align-content: start;
  align-items: stretch;
}
@media (max-width: 800px) {
  .tv-result-col--quini .tv-result-tiles {
    grid-template-columns: 1fr;
  }
}
.tv-result-col--quini .tv-pozo-monto {
  font-size: clamp(1.25rem, 2.6vw, 2.1rem) !important;
  line-height: 1.05;
}
.tv-result-col--quini .tv-pozo-block {
  margin: 0.3rem 0 0.2rem;
}
.tv-result-col--quini .tv-result-tile {
  padding: 0.55rem 0.6rem;
}
.tv-result-col--quini .tv-nums--quini {
  gap: 0.28rem 0.35rem;
  margin: 0.3rem 0 0.05rem;
}
.tv-result-col--quini .tv-q-ball {
  min-width: 2.1rem;
  min-height: 2.1rem;
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
}
.tv-result-col--quini .tv-meta {
  font-size: 0.82em;
  margin: 0.2rem 0 0;
}
.tv-result-col--quini .tv-result-h {
  font-size: clamp(0.82rem, 1.25vw, 0.95rem);
  margin: 0 0 0.2rem;
}
.tv-result-col--quini .tv-result-h img {
  width: 24px;
  height: 24px;
}
.tv-result-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.tv-col-title {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  font-weight: 800;
  color: #e2e8f0;
  margin: 0 0 0.15rem;
  padding-bottom: 0.35rem;
  border-bottom: 1px solid rgba(74, 222, 128, 0.25);
}
.tv-result-tiles {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  flex: 1;
}
.tv-result-tile {
  padding: 0.9rem 1.05rem;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(74, 222, 128, 0.22);
}
.tv-result-tile--empty {
  color: var(--tv-muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
  text-align: center;
  padding: 1.2rem 0.75rem;
}
.tv-result-h {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  color: var(--tv-accent2);
  font-size: clamp(0.95rem, 1.6vw, 1.1rem);
  margin: 0 0 0.45rem;
}
.tv-result-h img { width: 32px; height: 32px; border-radius: 4px; flex-shrink: 0; }
.tv-cabeza,
.tv-nums {
  font-weight: 800;
  color: #fff;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  word-break: break-word;
  line-height: 1.25;
}

/* Quiniela — cabeza bien grande (proyección / lejanía) */
.tv-result-tile--quiniela .tv-cabeza-block {
  margin: 0.15rem 0 0.35rem;
  text-align: center;
}
.tv-cabeza-label {
  font-size: clamp(0.78rem, 1.4vw, 0.95rem);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--tv-accent2);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tv-cabeza-digits {
  font-family: "Poppins", sans-serif;
  font-size: clamp(3rem, 11.5vw, 7.25rem);
  font-weight: 800;
  line-height: 0.95;
  color: #fff;
  text-shadow: 0 0 48px rgba(74, 222, 128, 0.4);
  letter-spacing: 0.06em;
}
.tv-cabeza-digits + .tv-pozo-block { margin-top: 0.75rem; }

/* Pozo próximo — mismo peso visual que en agencia, para TV */
.tv-pozo-block {
  margin: 0.5rem 0 0.35rem;
  text-align: center;
}
.tv-pozo-label {
  font-size: clamp(0.72rem, 1.25vw, 0.88rem);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--tv-muted);
  font-weight: 700;
  margin-bottom: 0.2rem;
}
.tv-pozo-monto {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.85rem, 5.2vw, 3.75rem);
  font-weight: 800;
  color: #fde047;
  line-height: 1.02;
  text-shadow: 0 0 28px rgba(253, 224, 71, 0.3);
}
.tv-result-tile--pozo .tv-pozo-block { margin-top: 0.35rem; }
.tv-result-tile--pozo .tv-nums--poceada { margin-top: 0.45rem; }

.tv-nums--quini {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(0.45rem, 1.2vw, 0.8rem);
  margin: 0.5rem 0 0.1rem;
}
.tv-q-ball {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: clamp(2.5rem, 5.8vw, 3.4rem);
  min-height: clamp(2.5rem, 5.8vw, 3.4rem);
  padding: 0 0.3rem;
  font-size: clamp(1.2rem, 3.1vw, 1.85rem);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(150deg, #0f4d32, #0a1f14);
  border: 2px solid rgba(74, 222, 128, 0.6);
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
}
.tv-nums--poceada {
  font-size: clamp(1.35rem, 2.6vw, 2.05rem) !important;
  line-height: 1.4;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.tv-meta { font-size: clamp(0.95rem, 1.6vw, 1.1rem); color: var(--tv-muted); margin-top: 0.4rem; line-height: 1.3; }
.tv-meta strong { color: #cbd5e1; font-weight: 600; }

/* Pantallas "bajas" (altura limitada): compactar bloque de resultados para evitar corte vertical. */
@media (max-height: 900px) {
  .tv-results-slide .tv-h1 {
    font-size: clamp(1.05rem, 2.1vw, 1.55rem);
    margin: 0 0 0.12rem;
  }
  .tv-results-slide .tv-eyebrow {
    font-size: clamp(0.66rem, 1.1vw, 0.82rem);
    margin-bottom: 0.15rem;
  }
  .tv-results-slide .tv-sub {
    font-size: clamp(0.78rem, 1.15vw, 0.95rem);
    line-height: 1.2;
  }
  .tv-results-bounded {
    max-height: min(61vh, calc(100dvh - 11.2rem));
    margin-top: 0.2rem;
  }
  .tv-results-wide {
    gap: clamp(0.42rem, 0.9vw, 0.7rem);
  }
  .tv-result-col {
    gap: 0.4rem;
  }
  .tv-col-title {
    font-size: clamp(0.92rem, 1.5vw, 1.08rem);
    margin: 0 0 0.05rem;
    padding-bottom: 0.2rem;
  }
  .tv-result-tiles {
    gap: 0.4rem;
  }
  .tv-result-tile {
    padding: 0.55rem 0.65rem;
  }
  .tv-cabeza-digits {
    font-size: clamp(2.2rem, 7.7vw, 4.8rem);
  }
  .tv-pozo-label {
    font-size: clamp(0.62rem, 0.95vw, 0.78rem);
  }
  .tv-pozo-monto {
    font-size: clamp(1.25rem, 3.4vw, 2.55rem);
  }
  .tv-nums--poceada {
    font-size: clamp(1.02rem, 1.95vw, 1.45rem) !important;
    line-height: 1.2;
  }
  .tv-result-col--quini .tv-q-ball {
    min-width: 1.8rem;
    min-height: 1.8rem;
    font-size: clamp(0.82rem, 1.2vw, 0.98rem);
  }
  .tv-meta {
    font-size: clamp(0.74rem, 0.95vw, 0.88rem);
    margin-top: 0.2rem;
    line-height: 1.2;
  }
}

/* CTA */
.tv-qr-wrap { margin-top: 0.5rem; }
.tv-qr-wrap img {
  display: block;
  margin: 0 auto 0.75rem;
  width: min(280px, 48vw);
  max-width: 280px;
  height: auto;
  border-radius: 12px;
  background: #fff;
  padding: 8px;
}
.tv-playlink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem;
  color: var(--tv-accent);
  text-decoration: none;
  font-weight: 600;
  font-size: clamp(1.05rem, 1.8vw, 1.2rem);
  margin-top: 0.25rem;
}
.tv-playlink .ph-thin {
  font-size: 1.25em;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  opacity: 0.95;
}
.tv-playlink:hover { text-decoration: underline; }
.tv-playlink:hover .ph-thin { opacity: 1; }

/* Dots */
.tv-dots {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 0.35rem 0.75rem 0.5rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(74, 222, 128, 0.12);
}
.tv-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.4);
  transition: background 0.3s, transform 0.3s;
}
.tv-dot.is-active { background: var(--tv-accent); transform: scale(1.25); }

/* Bucle de pozo: grilla 2×2; logo y nombre en fila para no apilar (ante: Quini 6 se veía en columna). */
.tv-pozo-hero-head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin: 0.35rem 0 0.2rem;
}
.tv-pozo-hero-logo {
  object-fit: contain;
  max-width: min(120px, 32vw);
  width: 72px;
  height: auto;
}
.tv-pozo-hero-h1 {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.3rem, 3.2vw, 1.8rem);
  font-weight: 800;
  margin: 0;
  line-height: 1.15;
  text-align: center;
  color: #e2e8f0;
}
.tv-pozo-hero-sub {
  font-size: clamp(0.95rem, 1.5vw, 1.1rem);
  color: var(--tv-muted);
  max-width: 32rem;
  margin: 0.25rem 0 0.5rem;
  line-height: 1.35;
}
.tv-pozo-hero-monto {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.75rem, 5.5vw, 3.2rem);
  font-weight: 800;
  color: #fde047;
  line-height: 1.1;
  text-shadow: 0 0 28px rgba(253, 224, 71, 0.3);
  margin: 0.2rem 0 0.35rem;
}
.tv-pozo-hero-foot {
  font-size: clamp(0.8rem, 1.2vw, 0.9rem);
  color: var(--tv-muted);
  max-width: 36rem;
  line-height: 1.3;
  margin: 0.5rem auto 0;
  text-align: center;
  font-style: italic;
}
.tv-pozo-screen {
  width: 100%;
  max-width: min(100%, 1100px);
  margin: 0 auto;
}
.tv-pozo-screen > .tv-eyebrow {
  font-size: clamp(1.02rem, 1.9vw, 1.2rem);
  margin-bottom: 0.4rem;
}
.tv-pozo-grid-title {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(1.1rem, 2.1vw, 1.4rem);
  font-weight: 800;
  margin: 0.2rem 0 0.25rem;
  line-height: 1.2;
  text-align: center;
  color: #e2e8f0;
}
.tv-pozo-screen .tv-pozo-grid-title {
  font-size: clamp(1.4rem, 2.7vw, 1.85rem);
  margin: 0.25rem 0 0.3rem;
}
.tv-pozo-grid-sub {
  font-size: clamp(0.8rem, 1.2vw, 0.95rem);
  color: var(--tv-muted);
  max-width: 40rem;
  margin: 0.15rem auto 0.65rem;
  line-height: 1.35;
  text-align: center;
}
.tv-pozo-screen .tv-pozo-grid-sub {
  font-size: clamp(0.95rem, 1.45vw, 1.1rem);
  max-width: 44rem;
  margin: 0.2rem auto 0.75rem;
  line-height: 1.4;
}
.tv-pozo-screen .tv-pozo-hero-foot {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  margin-top: 0.6rem;
}
.tv-pozo-grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(0.55rem, 1.2vw, 0.9rem);
  width: 100%;
  max-width: min(960px, 100%);
  margin: 0.25rem auto 0;
  align-items: stretch;
}
.tv-pozo-screen .tv-pozo-grid2 {
  max-width: min(1040px, 100%);
  gap: clamp(0.65rem, 1.4vw, 1.05rem);
  margin: 0.4rem auto 0;
}
.tv-pozo-cell {
  min-width: 0;
  border-radius: 12px;
  border: 1px solid rgba(74, 222, 128, 0.22);
  background: rgba(0, 0, 0, 0.42);
  padding: 0.45rem 0.55rem 0.4rem;
  text-align: center;
}
.tv-pozo-screen .tv-pozo-cell {
  border-radius: 14px;
  padding: 0.55rem 0.6rem 0.5rem;
}
.tv-pozo-cell__row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.4rem;
  min-height: 0;
  margin-bottom: 0.15rem;
}
.tv-pozo-screen .tv-pozo-cell__row {
  margin-bottom: 0.2rem;
  gap: 0.4rem 0.5rem;
}
.tv-pozo-cell__logo {
  display: block;
  width: 40px;
  height: 40px;
  max-height: 40px;
  object-fit: contain;
  flex-shrink: 0;
}
.tv-pozo-screen .tv-pozo-cell__logo {
  width: 56px;
  height: 56px;
  max-height: 56px;
}
.tv-pozo-cell__name {
  font-family: "Poppins", "Inter", sans-serif;
  font-size: clamp(0.85rem, 1.45vw, 1rem);
  font-weight: 700;
  color: #e2e8f0;
  line-height: 1.1;
  text-align: left;
  flex: 1 1 auto;
  min-width: 0;
  word-break: break-word;
}
.tv-pozo-screen .tv-pozo-cell__name {
  font-size: clamp(0.95rem, 1.7vw, 1.2rem);
}
.tv-pozo-cell__monto {
  font-family: "Poppins", sans-serif;
  font-size: clamp(1.05rem, 2.4vw, 1.6rem);
  font-weight: 800;
  color: #fde047;
  line-height: 1.1;
  text-shadow: 0 0 18px rgba(253, 224, 71, 0.32);
  margin: 0.1rem 0 0;
}
/* Enteros con puntos: puede ocupar ancho; tipografía clara a distancia. */
.tv-pozo-screen .tv-pozo-cell__monto {
  font-size: clamp(1.15rem, 2.65vw, 2.15rem);
  line-height: 1.12;
  text-shadow: 0 0 24px rgba(253, 224, 71, 0.38);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.015em;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
  hyphens: none;
  padding: 0 0.1rem;
}
@media (max-width: 520px) {
  .tv-pozo-grid2 {
    grid-template-columns: 1fr;
  }
  .tv-pozo-cell__name { text-align: center; }
}

@media (max-width: 520px) {
  .tv-tri { flex-direction: column; align-items: stretch; }
  .tv-tri-box { max-width: 100%; }
}
