/* ==============================================================================
   LA ESTRELLA TV - MASTER GLOBAL STYLESHEET
   100% UNIFICADO PARA TODAS LAS PÁGINAS (INDEX, QUIÉNES SOMOS, EN VIVO, PROGRAMACIÓN, CONTACTO)
   ============================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  min-height: 100%;
  background-color: #07080b;
  color: #ffffff;
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
}

/* Contenedor general en todas las pantallas */
.tv-wrapper {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: #06070a;
}
/* ==========================================================================
       RESET & BASE DESIGN (LA ESTRELLA TV - 100% IDÉNTICO AL DISEÑO DE REFERENCIA)
       ========================================================================== */
    *, *::before, *::after {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    html, body {
      width: 100%;
      min-height: 100%;
      background-color: #07080b;
      color: #ffffff;
      font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
      overflow-x: hidden;
      -webkit-font-smoothing: antialiased;
    }

    a {
      text-decoration: none;
      color: inherit;
      transition: all 0.25s ease;
    }

    /* Contenedor general */
    .tv-wrapper {
      position: relative;
      width: 100%;
      min-height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      background: #06070a;
    }

    /* ==========================================================================
       1. HEADER IDÉNTICO
       ========================================================================== */
    .tv-header {
      width: 100%;
      background: #000000;
      border-bottom: 1px solid rgba(255, 255, 255, 0.08);
      position: sticky;
      top: 0;
      z-index: 100;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
    }

    .tv-header-inner {
      max-width: 1536px;
      margin: 0 auto;
      height: 78px;
      padding: 0 28px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
    }

    /* Logo Header */
    .tv-brand-link {
      display: flex;
      align-items: center;
      text-decoration: none;
      flex-shrink: 0;
    }

    .tv-brand-logo {
      height: 52px;
      width: auto;
      max-width: 260px;
      object-fit: contain;
      filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.3));
      transition: transform 0.3s ease;
    }

    .tv-brand-link:hover .tv-brand-logo {
      transform: scale(1.02);
    }

    /* Header Nav */
    .tv-nav {
      display: flex;
      align-items: center;
      gap: 28px;
    }

    /* Botón Inicio en Header con píldora roja */
    .tv-nav-pill-inicio {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      background: linear-gradient(135deg, #ffcc00 0%, #e6a800 100%);
      color: #000000;
      padding: 9px 22px;
      border-radius: 9999px;
      font-weight: 900;
      font-size: 0.82rem;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      box-shadow: 0 4px 15px rgba(255, 204, 0, 0.45);
      transition: all 0.25s ease;
    }

    .tv-nav-pill-inicio:hover {
      background: linear-gradient(135deg, #ff1a26 0%, #d10712 100%);
      box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
      transform: translateY(-1px);
    }

    .tv-nav-pill-inicio svg {
      width: 16px;
      height: 16px;
      fill: currentColor;
    }

    /* Enlaces estándar del Header */
    .tv-nav-link {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #cfd4dc;
      font-weight: 700;
      font-size: 0.82rem;
      letter-spacing: 0.8px;
      text-transform: uppercase;
      white-space: nowrap;
      position: relative;
    }

    .tv-nav-link:hover {
      color: #ffffff;
      text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
    }

    .tv-nav-link svg {
      width: 17px;
      height: 17px;
      fill: currentColor;
      opacity: 0.9;
    }

    /* LIVE badge en el menú */
    .live-badge-mini {
      background: #e50914;
      color: #ffffff;
      font-size: 0.65rem;
      font-weight: 900;
      padding: 2px 6px;
      border-radius: 3px;
      letter-spacing: 0.5px;
      margin-left: 2px;
      animation: pulse-live 1.8s infinite;
    }

    @keyframes pulse-live {
      0%, 100% { opacity: 1; }
      50% { opacity: 0.6; }
    }

    /* Iconos a la derecha: Búsqueda y Hamburguesa */
    .tv-header-tools {
      display: flex;
      align-items: center;
      gap: 18px;
    }

    .tv-icon-btn {
      background: transparent;
      border: none;
      color: #ffffff;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 6px;
      border-radius: 50%;
      transition: all 0.2s;
    }

    .tv-icon-btn:hover {
      color: #e50914;
      transform: scale(1.1);
    }

    .tv-icon-btn svg {
      width: 22px;
      height: 22px;
      stroke-width: 2.2;
    }

    /* ==========================================================================
       2. HERO SECTION CON EL DISEÑO TAL CUAL (1536 x 567 px AR)
       ========================================================================== */
    .tv-hero-section {
      position: relative;
      width: 100%;
      background: #000000;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: center;
    }

    .tv-hero-container {
      position: relative;
      width: 100%;
      max-width: 1536px;
      margin: 0 auto;
    }

    /* Imagen central del Hero exacto */
    .tv-hero-image-wrap {
      position: relative;
      width: 100%;
      line-height: 0;
    }

    .tv-hero-bg-img {
      width: 100%;
      height: auto;
      display: block;
      user-select: none;
      pointer-events: none;
    }

    /* Botón EN VIVO / TRANSMISIÓN 24/7 interactivo encima de la imagen */
    .tv-hero-envivo-hitbox {
      position: absolute;
      top: 30.9%;
      left: 58.8%;
      width: 32.1%;
      height: 38.1%;
      border-radius: 60px;
      cursor: pointer;
      z-index: 10;
      display: flex;
      align-items: center;
      text-decoration: none;
      background: transparent;
      transition: transform 0.25s ease, filter 0.25s ease;
    }

    .tv-hero-envivo-hitbox:hover {
      transform: scale(1.03);
      filter: drop-shadow(0 0 25px rgba(229, 9, 20, 0.7));
    }

    /* Efecto de pulso en el botón Play */
    .tv-play-pulse-ring {
      position: absolute;
      left: 1.5%;
      top: 5.5%;
      width: 32%;
      aspect-ratio: 1;
      border-radius: 50%;
      border: 3px solid rgba(229, 9, 20, 0.8);
      pointer-events: none;
      animation: ripple 2s infinite ease-out;
    }

    @keyframes ripple {
      0% {
        transform: scale(0.9);
        opacity: 0.9;
      }
      100% {
        transform: scale(1.35);
        opacity: 0;
      }
    }

    /* ==========================================================================
       3. SECCIÓN DE NAVEGACIÓN EN TARJETAS (5 BOTONES TRAPEZOIDALES EXACTOS)
       ========================================================================== */
    .tv-cards-section {
      width: 100%;
      background: #05070a;
      position: relative;
      padding: 16px 20px 24px 20px;
    }

    .tv-cards-container {
      max-width: 1536px;
      margin: 0 auto;
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 16px;
      align-items: stretch;
    }

    /* Tarjeta individual con estilo idéntico */
    .tv-nav-card {
      position: relative;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      min-height: 120px;
      padding: 20px 14px 18px;
      background: linear-gradient(180deg, #181c25 0%, #0d0f15 100%);
      border: 1px solid rgba(255, 255, 255, 0.08);
      border-radius: 10px;
      text-decoration: none;
      cursor: pointer;
      overflow: hidden;
      transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
      box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    }

    /* Efecto de bisel / brillo superior */
    .tv-nav-card::before {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      height: 3px;
      background: transparent;
      transition: all 0.3s ease;
    }

    /* Tarjeta Activa (INICIO) con barra roja luminosa en la base o borde */
    .tv-nav-card.active {
      background: linear-gradient(180deg, #1f2533 0%, #0f121a 100%);
      border-color: rgba(229, 9, 20, 0.5);
      box-shadow: 0 10px 30px rgba(229, 9, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    }

    .tv-nav-card.active::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 10%;
      right: 10%;
      height: 4px;
      background: #e50914;
      border-radius: 3px 3px 0 0;
      box-shadow: 0 -2px 10px #e50914;
    }

    .tv-nav-card:hover {
      transform: translateY(-5px);
      background: linear-gradient(180deg, #252c3c 0%, #121620 100%);
      border-color: rgba(229, 9, 20, 0.6);
      box-shadow: 0 14px 34px rgba(229, 9, 20, 0.3);
    }

    .tv-nav-card:hover::after {
      content: '';
      position: absolute;
      bottom: 0;
      left: 15%;
      right: 15%;
      height: 4px;
      background: #e50914;
      border-radius: 3px 3px 0 0;
      box-shadow: 0 -2px 12px #e50914;
    }

    .tv-card-icon {
      width: 44px;
      height: 44px;
      display: flex;
      align-items: center;
      justify-content: center;
      margin-bottom: 12px;
      transition: transform 0.3s ease;
    }

    .tv-nav-card:hover .tv-card-icon {
      transform: scale(1.12);
    }

    .tv-nav-card.active .tv-card-icon svg {
      fill: #e50914;
      filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.6));
    }

    .tv-nav-card:not(.active) .tv-card-icon svg {
      fill: #ffffff;
      opacity: 0.95;
    }

    .tv-card-title {
      font-size: 0.85rem;
      font-weight: 800;
      letter-spacing: 1.2px;
      text-transform: uppercase;
      text-align: center;
      color: #ffffff;
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
    }

    .tv-nav-card.active .tv-card-title {
      color: #ffffff;
    }

    .tv-card-badge-live {
      background: #e50914;
      color: #ffffff;
      font-size: 0.65rem;
      font-weight: 900;
      padding: 2px 7px;
      border-radius: 4px;
      letter-spacing: 0.5px;
      animation: pulse-live 1.8s infinite;
    }

    /* ==========================================================================
       4. FOOTER EXACTO (ONDAS ROJAS / LAESTRELLARTV.COM / SIEMPRE CONTIGO)
       ========================================================================== */
    .tv-footer {
      width: 100%;
      background: #000000;
      position: relative;
      overflow: hidden;
      border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .tv-footer-wrap {
      position: relative;
      max-width: 1536px;
      margin: 0 auto;
      line-height: 0;
    }

    .tv-footer-bg-img {
      width: 100%;
      height: auto;
      display: block;
      user-select: none;
    }

    /* Enlace interactivo a laestrellartv.com dentro del footer */
    .tv-footer-domain-link {
      position: absolute;
      top: 28%;
      left: 26%;
      width: 44%;
      height: 48%;
      z-index: 10;
      display: flex;
      align-items: center;
      justify-content: flex-start;
      text-decoration: none;
      cursor: pointer;
    }

    /* ==========================================================================
       MODAL DE BÚSQUEDA Y MENÚ MÓVIL
       ========================================================================== */
    .tv-mobile-drawer {
      display: none;
      background: #0b0d13;
      border-bottom: 2px solid #e50914;
      padding: 20px;
    }

    .tv-mobile-drawer.active {
      display: block;
    }

    .tv-drawer-links {
      display: flex;
      flex-direction: column;
      gap: 14px;
    }

    .tv-drawer-item {
      padding: 12px 16px;
      background: #141822;
      border-radius: 8px;
      font-weight: 700;
      font-size: 0.95rem;
      display: flex;
      align-items: center;
      justify-content: space-between;
      color: #fff;
    }

    .tv-drawer-item:hover, .tv-drawer-item.active {
      background: #e50914;
    }

    /* Search modal */
    .tv-search-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background: rgba(0, 0, 0, 0.85);
      z-index: 9999;
      align-items: center;
      justify-content: center;
      backdrop-filter: blur(5px);
    }

    .tv-search-modal.active {
      display: flex;
    }

    .tv-search-box {
      width: 90%;
      max-width: 520px;
      background: #141822;
      border: 1px solid rgba(229, 9, 20, 0.4);
      border-radius: 12px;
      padding: 24px;
      box-shadow: 0 10px 40px rgba(0,0,0,0.8);
      position: relative;
    }

    .tv-search-input {
      width: 100%;
      background: #090a0f;
      border: 1px solid #333;
      color: #fff;
      padding: 14px 18px;
      border-radius: 8px;
      font-size: 1rem;
      font-family: inherit;
      outline: none;
    }

    .tv-search-input:focus {
      border-color: #e50914;
    }

    .tv-search-close {
      position: absolute;
      top: 10px;
      right: 14px;
      background: transparent;
      border: none;
      color: #aaa;
      font-size: 24px;
      cursor: pointer;
    }

    /* ==========================================================================
       RESPONSIVE DESIGN (TABLETS Y MÓVILES)
       ========================================================================== */
    @media (max-width: 1024px) {
      .tv-header-inner {
        height: 70px;
        padding: 0 16px;
      }

      .tv-nav {
        gap: 16px;
      }

      .tv-nav-link {
        font-size: 0.75rem;
      }

      .tv-nav-pill-inicio {
        padding: 7px 14px;
        font-size: 0.75rem;
      }

      .tv-cards-container {
        gap: 10px;
      }

      .tv-nav-card {
        padding: 16px 10px;
        min-height: 105px;
      }

      .tv-card-icon {
        width: 36px;
        height: 36px;
        margin-bottom: 8px;
      }

      .tv-card-title {
        font-size: 0.75rem;
      }
    }

    @media (max-width: 820px) {
      .tv-nav {
        display: none;
      }

      .tv-cards-container {
        grid-template-columns: repeat(3, 1fr);
      }

      .tv-cards-container .tv-nav-card:nth-child(4),
      .tv-cards-container .tv-nav-card:nth-child(5) {
        grid-column: span 1;
      }
    }

    @media (max-width: 560px) {
      .tv-cards-container {
        grid-template-columns: repeat(2, 1fr);
      }

      .tv-cards-container .tv-nav-card:last-child {
        grid-column: span 2;
      }

      .tv-brand-logo {
        height: 42px;
      }
    }

/* ==========================================================================
   LA ESTRELLA TV - ESTILOS COMPARTIDOS (HEADER, NAVEGACIÓN Y FOOTER EXACTOS)
   ========================================================================== */

:root {
  --primary-red: #e50914;
  --primary-red-hover: #ff1a26;
  --bg-dark: #07080b;
  --bg-card: #121620;
  --bg-card-hover: #1a202c;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --text-muted: #9aa4b2;
}

/* ==========================================================================
   1. HEADER EXACTO
   ========================================================================== */
.tv-header {
  width: 100%;
  background: #000000;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.85);
}

.tv-header-inner {
  max-width: 1536px;
  margin: 0 auto;
  height: 78px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.tv-brand-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}

.tv-brand-logo {
  height: 52px;
  width: auto;
  max-width: 260px;
  object-fit: contain;
  filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.3));
  transition: transform 0.3s ease;
}

.tv-brand-link:hover .tv-brand-logo {
  transform: scale(1.02);
}

.tv-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.tv-nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd4dc;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  white-space: nowrap;
  position: relative;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tv-nav-link:hover {
  color: #ffffff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.4);
}

.tv-nav-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  opacity: 0.9;
}

/* Píldora activa del header */
.tv-nav-pill-active {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #e50914 0%, #b8050e 100%);
  color: #ffffff !important;
  padding: 9px 20px;
  border-radius: 9999px;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  box-shadow: 0 4px 15px rgba(229, 9, 20, 0.45);
  transition: all 0.25s ease;
  text-decoration: none;
}

.tv-nav-pill-active:hover {
  background: linear-gradient(135deg, #ff1a26 0%, #d10712 100%);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.7);
  transform: translateY(-1px);
}

.tv-nav-pill-active svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.live-badge-mini {
  background: #e50914;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  margin-left: 2px;
  animation: pulse-live 1.8s infinite;
}

@keyframes pulse-live {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.tv-header-tools {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tv-icon-btn {
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-radius: 50%;
  transition: all 0.2s;
}

.tv-icon-btn:hover {
  color: #e50914;
  transform: scale(1.1);
}

.tv-icon-btn svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.2;
}

/* ==========================================================================
   2. BARRA DE TARJETAS DE NAVEGACIÓN (5 MÓDULOS EXACTOS)
   ========================================================================== */
.tv-cards-section {
  width: 100%;
  background: #05070a;
  position: relative;
  padding: 16px 20px 24px 20px;
}

.tv-cards-container {
  max-width: 1536px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.tv-nav-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 115px;
  padding: 18px 12px 16px;
  background: linear-gradient(180deg, #181c25 0%, #0d0f15 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

.tv-nav-card.active {
  background: linear-gradient(180deg, #1f2533 0%, #0f121a 100%);
  border-color: rgba(229, 9, 20, 0.5);
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.tv-nav-card.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 10%;
  right: 10%;
  height: 4px;
  background: #ffcc00;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 12px #ffcc00;
}

.tv-nav-card:hover {
  transform: translateY(-5px);
  background: linear-gradient(180deg, #252c3c 0%, #121620 100%);
  border-color: rgba(229, 9, 20, 0.6);
  box-shadow: 0 14px 34px rgba(229, 9, 20, 0.3);
}

.tv-nav-card:hover::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 15%;
  right: 15%;
  height: 4px;
  background: #e50914;
  border-radius: 3px 3px 0 0;
  box-shadow: 0 -2px 12px #e50914;
}

.tv-card-icon {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  transition: transform 0.3s ease;
}

.tv-nav-card:hover .tv-card-icon {
  transform: scale(1.12);
}

.tv-nav-card.active .tv-card-icon svg {
  fill: #e50914;
  filter: drop-shadow(0 2px 8px rgba(229, 9, 20, 0.6));
}

.tv-nav-card:not(.active) .tv-card-icon svg {
  fill: #ffffff;
  opacity: 0.95;
}

.tv-card-title {
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  text-align: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.tv-card-badge-live {
  background: #e50914;
  color: #ffffff;
  font-size: 0.62rem;
  font-weight: 900;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.5px;
  animation: pulse-live 1.8s infinite;
}

/* ==========================================================================
   3. FOOTER EXACTO
   ========================================================================== */
.tv-footer {
  width: 100%;
  background: #000000;
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.tv-footer-wrap {
  position: relative;
  max-width: 1536px;
  margin: 0 auto;
  line-height: 0;
}

.tv-footer-bg-img {
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
}

.tv-footer-domain-link {
  position: absolute;
  top: 28%;
  left: 26%;
  width: 44%;
  height: 48%;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  cursor: pointer;
}

/* Menú móvil y modal de búsqueda */
.tv-mobile-drawer {
  display: none;
  background: #0b0d13;
  border-bottom: 2px solid #e50914;
  padding: 20px;
}

.tv-mobile-drawer.active {
  display: block;
}

.tv-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-drawer-item {
  padding: 12px 16px;
  background: #141822;
  border-radius: 8px;
  font-weight: 700;
  font-size: 0.92rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  text-decoration: none;
}

.tv-drawer-item:hover, .tv-drawer-item.active {
  background: #e50914;
}

.tv-search-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(5px);
}

.tv-search-modal.active {
  display: flex;
}

.tv-search-box {
  width: 90%;
  max-width: 520px;
  background: #141822;
  border: 1px solid rgba(229, 9, 20, 0.4);
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.8);
  position: relative;
}

.tv-search-input {
  width: 100%;
  background: #090a0f;
  border: 1px solid #333;
  color: #fff;
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
  outline: none;
}

.tv-search-input:focus {
  border-color: #e50914;
}

.tv-search-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: transparent;
  border: none;
  color: #aaa;
  font-size: 24px;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .tv-header-inner {
    height: 70px;
    padding: 0 16px;
  }
  .tv-nav {
    gap: 16px;
  }
  .tv-nav-link {
    font-size: 0.75rem;
  }
  .tv-nav-pill-active {
    padding: 7px 14px;
    font-size: 0.75rem;
  }
  .tv-cards-container {
    gap: 10px;
  }
  .tv-nav-card {
    padding: 14px 8px;
    min-height: 100px;
  }
  .tv-card-icon {
    width: 36px;
    height: 36px;
    margin-bottom: 6px;
  }
  .tv-card-title {
    font-size: 0.75rem;
  }
}

@media (max-width: 820px) {
  .tv-nav {
    display: none;
  }
  .tv-cards-container {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 560px) {
  .tv-cards-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .tv-cards-container .tv-nav-card:last-child {
    grid-column: span 2;
  }
  .tv-brand-logo {
    height: 42px;
  }
}



/* ==============================================================================
   MEJORAS RESPONSIVE TOTALES PARA MÓVILES (SMARTPHONES Y TABLETS)
   ============================================================================== */
@media (max-width: 900px) {
  .tv-nav {
    display: none !important;
  }
  
  #btnMobileToggle {
    display: flex !important;
  }
}

@media (max-width: 768px) {
  .tv-header-inner {
    height: 64px;
    padding: 0 16px;
  }

  .tv-brand-logo {
    height: 38px;
    max-width: 190px;
  }

  .tv-cards-section {
    padding: 12px 10px 20px 10px;
  }

  .tv-cards-container {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  /* El botón de EN VIVO o CONTACTO centrado en impar */
  .tv-cards-container .tv-nav-card:last-child {
    grid-column: span 2 !important;
  }

  .tv-nav-card {
    min-height: 80px !important;
    padding: 12px 8px !important;
    border-radius: 8px;
  }

  .tv-card-icon {
    width: 28px !important;
    height: 28px !important;
    margin-bottom: 6px !important;
  }

  .tv-card-icon svg {
    width: 24px !important;
    height: 24px !important;
  }

  .tv-card-title {
    font-size: 0.72rem !important;
    letter-spacing: 0.8px !important;
  }

  /* Ajustes de textos en páginas secundarias */
  .about-page-hero, .prog-page-hero, .contact-page-hero, .live-hero-wrap {
    padding: 30px 16px 20px !important;
  }

  .about-title, .prog-title, .contact-title, .live-title {
    font-size: 1.75rem !important;
    margin-bottom: 10px !important;
  }

  .about-subtitle, .prog-subtitle, .contact-subtitle, .live-subtitle {
    font-size: 0.9rem !important;
  }

  .programs-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .prog-content-area, .about-content-section, .contact-content-section, .live-stage-wrapper {
    padding: 0 12px !important;
    margin-top: 20px !important;
    margin-bottom: 30px !important;
  }

  .manifesto-box {
    padding: 24px 16px !important;
  }

  .manifesto-text {
    font-size: 1.05rem !important;
    line-height: 1.6 !important;
  }

  .contact-highlight-card {
    padding: 28px 16px !important;
  }

  .contact-phone-huge {
    font-size: 2.2rem !important;
    letter-spacing: 2px !important;
  }

  .contact-actions-row {
    flex-direction: column !important;
    gap: 10px !important;
  }

  .btn-action-wa, .btn-action-call {
    width: 100% !important;
    justify-content: center !important;
    padding: 13px 20px !important;
    font-size: 0.92rem !important;
  }

  .social-links-grid {
    grid-template-columns: 1fr !important;
  }

  .social-btn {
    padding: 12px 16px !important;
  }
}

@media (max-width: 420px) {
  .tv-header-inner {
    height: 58px;
    padding: 0 12px;
  }

  .tv-brand-logo {
    height: 32px;
    max-width: 160px;
  }

  .tv-cards-container {
    gap: 6px !important;
  }

  .tv-nav-card {
    min-height: 72px !important;
    padding: 10px 4px !important;
  }

  .tv-card-icon {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 4px !important;
  }

  .tv-card-icon svg {
    width: 20px !important;
    height: 20px !important;
  }

  .tv-card-title {
    font-size: 0.65rem !important;
    letter-spacing: 0.5px !important;
  }
}


/* ==============================================================================
   DISEÑO HERO ADAPTATIVO: ESCRITORIO VS MÓVIL/TABLET ULTRA LLAMATIVO
   ============================================================================== */
.tv-hero-desktop-view {
  display: block;
}

.tv-hero-mobile-view {
  display: none;
}

/* En dispositivos móviles y tablets (< 900px), ocultamos la imagen panorámica comprimida
   y activamos el diseño cinematográfico vertical con el logo en alta definición y el botón en vivo llamativo */
@media (max-width: 900px) {
  .tv-hero-desktop-view {
    display: none !important;
  }

  .tv-hero-mobile-view {
    display: block !important;
    position: relative;
    width: 100%;
    min-height: 480px;
    overflow: hidden;
    background: #000000;
  }

  .tv-mobile-hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
  }

  .tv-mobile-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.4) contrast(1.2);
    transform: scale(1.05);
  }

  .tv-mobile-hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 25%, rgba(0, 140, 255, 0.35) 0%, rgba(4, 8, 22, 0.95) 80%);
  }

  .tv-mobile-hero-content {
    position: relative;
    z-index: 2;
    padding: 36px 20px 42px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 16px;
  }

  .tv-mobile-badge-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(229, 9, 20, 0.2);
    border: 1px solid rgba(229, 9, 20, 0.5);
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    padding: 6px 16px;
    border-radius: 9999px;
    box-shadow: 0 4px 15px rgba(229, 9, 20, 0.35);
  }

  .live-dot-pulse {
    width: 8px;
    height: 8px;
    background-color: #e50914;
    border-radius: 50%;
    animation: ripple 1.8s infinite ease-out;
  }

  .tv-mobile-logo-wrap {
    width: 100%;
    max-width: 340px;
    display: flex;
    justify-content: center;
    filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 25px rgba(0, 150, 255, 0.45));
    margin: 8px 0;
  }

  .tv-mobile-logo-img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }

  .tv-mobile-slogan-box {
    margin-top: -6px;
    margin-bottom: 8px;
  }

  .tv-mobile-slogan-main {
    font-size: 1.05rem;
    font-weight: 900;
    letter-spacing: 2px;
    color: #ffffff;
    text-transform: uppercase;
  }

  .tv-mobile-slogan-sub {
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #cfd4dc;
    text-transform: uppercase;
    margin-top: 4px;
  }

  .highlight-red {
    color: #e50914;
    font-weight: 900;
  }

  /* Botón EN VIVO / TRANSMISIÓN 24/7 de Alto Impacto */
  .tv-mobile-btn-live-pulse {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, #e50914 0%, #b8050e 100%);
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    padding: 12px 28px 12px 14px;
    color: #ffffff;
    text-decoration: none;
    box-shadow: 0 10px 30px rgba(229, 9, 20, 0.6), 0 0 25px rgba(229, 9, 20, 0.4);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    margin-top: 8px;
  }

  .tv-mobile-btn-live-pulse:active {
    transform: scale(0.96);
  }

  .tv-mobile-btn-play-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  }

  .tv-mobile-btn-play-circle svg {
    margin-left: 3px;
  }

  .tv-mobile-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
  }

  .tv-btn-label-live {
    font-size: 1.3rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    line-height: 1;
    text-transform: uppercase;
  }

  .tv-btn-label-sub {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 1px;
    opacity: 0.92;
    text-transform: uppercase;
    margin-top: 3px;
  }
}
