/* ==============================================================================
   MENÚ HAMBURGUESA MODAL RESPONSIVE - LA ESTRELLA TV
   (Aparece únicamente en móviles y tablets, se sobrepone sobre todo con z-index alto)
   ============================================================================== */

/* El botón de hamburguesa solo es visible en móviles y tablets (<= 1024px) */
#btnMobileToggle {
  display: none !important;
}

@media (max-width: 1024px) {
  #btnMobileToggle {
    display: flex !important;
  }
}

/* ==============================================================================
   MODAL OVERLAY (TELA COMPLETA SOBREPUESTA CON BACKDROP BLUR)
   ============================================================================== */
.tv-mobile-modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-color: rgba(3, 4, 7, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

/* Estado abierto */
.tv-mobile-modal-overlay.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* ==============================================================================
   CONTENEDOR DE LA VENTANA MODAL
   ============================================================================== */
.tv-mobile-modal-window {
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  max-height: 90dvh;
  background: linear-gradient(180deg, #131722 0%, #090b10 100%);
  border: 1px solid rgba(229, 9, 20, 0.45);
  border-radius: 20px;
  box-shadow: 0 25px 70px rgba(0, 0, 0, 0.95),
              0 0 30px rgba(229, 9, 20, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: scale(0.92) translateY(20px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.tv-mobile-modal-overlay.is-active .tv-mobile-modal-window {
  transform: scale(1) translateY(0);
}

/* Franja decorativa superior roja */
.tv-mobile-modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #ff1a26, #e50914, #990000);
}

/* ==============================================================================
   HEADER DEL MODAL
   ============================================================================== */
.tv-modal-header {
  padding: 22px 24px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.tv-modal-logo {
  height: 42px;
  width: auto;
  object-fit: contain;
}

.tv-modal-close-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.25s ease;
}

.tv-modal-close-btn:hover {
  background: #e50914;
  border-color: #e50914;
  transform: rotate(90deg);
}

/* ==============================================================================
   CUERPO Y ENLACES DEL MODAL
   ============================================================================== */
.tv-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-modal-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  color: #cfd4dc;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.tv-modal-link-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tv-modal-link-icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: 0.85;
}

.tv-modal-link:hover {
  background: rgba(229, 9, 20, 0.15);
  border-color: rgba(229, 9, 20, 0.4);
  color: #ffffff;
  transform: translateX(4px);
}

.tv-modal-link.is-active {
  background: linear-gradient(135deg, #e50914 0%, #b8050e 100%);
  color: #ffffff;
  border-color: #e50914;
  box-shadow: 0 4px 18px rgba(229, 9, 20, 0.45);
}

.tv-modal-link.is-active .tv-modal-link-icon {
  opacity: 1;
}

.tv-modal-arrow {
  font-size: 1.1rem;
  opacity: 0.6;
  transition: transform 0.25s ease;
}

.tv-modal-link:hover .tv-modal-arrow {
  opacity: 1;
  transform: translateX(4px);
}

.tv-modal-live-tag {
  background: #e50914;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 900;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.8px;
  margin-left: 6px;
  animation: pulse-live 1.8s infinite;
}

.tv-modal-link.is-active .tv-modal-live-tag {
  background: #ffffff;
  color: #e50914;
}

/* ==============================================================================
   FOOTER DEL MODAL (WHATSAPP & CONTACTO RÁPIDO)
   ============================================================================== */
.tv-modal-footer {
  padding: 16px 24px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tv-modal-btn-wa {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 10px;
  font-weight: 800;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
  transition: all 0.25s ease;
}

.tv-modal-btn-wa:hover {
  background: #20ba5a;
  transform: translateY(-2px);
}

.tv-modal-tagline {
  text-align: center;
  color: #9aa4b2;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
}

.tv-modal-tagline strong {
  color: #ffffff;
}

/* En pantallas de escritorio grandes (> 1024px), el modal permanece oculto */
@media (min-width: 1025px) {
  .tv-mobile-modal-overlay {
    display: none !important;
  }
}

