/* ==========================================================================
   ENTUZONA.NET - SISTEMA DE DISEÑO PREMIUM (LANDING PAGE DE RADIOS)
   ========================================================================== */

/* Variables de Color e Identidad */
:root {
  --primary-glow: radial-gradient(circle, rgba(196, 216, 81, 0.15) 0%, rgba(0,0,0,0) 70%);
  --font-family-base: 'Inter', system-ui, -apple-system, sans-serif;
  --font-family-title: 'Outfit', 'Roboto', sans-serif;
  
  /* Colores de Estaciones */
  --color-radio1: #c4d851; /* LA967FM */
  --color-radio2: #ff9999; /* TU AMOR FM */
  --color-radio3: #ffd23f; /* C-Oye */
  --color-radio4: #00b4d8; /* Costera */
  --color-radio5: #ff5400; /* Invencible */
  --color-radio6: #a2d2ff; /* Puerto Mar Stereo */
  
  --accent-color: var(--color-radio1); /* Activa por defecto */
}

/* Transiciones Globales */
* {
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

body {
  font-family: var(--font-family-base);
  background-color: #030712;
  color: #f3f4f6;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* Video de Fondo */
.video-background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -2;
  overflow: hidden;
}

.video-background video {
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: cover;
}

/* Capa Oscura sobre el Video */
.video-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: linear-gradient(135deg, rgba(3, 7, 18, 0.9) 0%, rgba(17, 24, 39, 0.75) 50%, rgba(3, 7, 18, 0.95) 100%);
  z-index: -1;
}

/* Navbar de Cristal (Glassmorphism) */
.custom-navbar {
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(12px) saturate(160%);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 12px 0;
  z-index: 1000;
}

.navbar-brand img {
  max-height: 55px;
  width: auto;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.nav-link-custom {
  color: #9ca3af !important;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 8px 16px !important;
  border-radius: 30px;
  margin: 0 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link-custom:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05);
}

.nav-link-custom.active {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Hero & Sección Principal del Player */
.main-player-section {
  padding: 120px 0 60px 0;
  min-height: 85vh;
  display: flex;
  align-items: center;
}

.glass-card {
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.glass-card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: var(--primary-glow);
  z-index: 0;
  pointer-events: none;
}

.glass-card-content {
  position: relative;
  z-index: 1;
}

/* Detalles de la Estación Activa */
.active-station-logo {
  max-width: 180px;
  border-radius: 20px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
  margin-bottom: 25px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.badge-live {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
  padding: 4px 12px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-live span {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  display: inline-block;
  animation: pulse-live 1.5s infinite;
}

@keyframes pulse-live {
  0% { transform: scale(0.9); opacity: 1; }
  50% { transform: scale(1.3); opacity: 0.5; }
  100% { transform: scale(0.9); opacity: 1; }
}

.station-title {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 2.8rem;
  margin-top: 15px;
  background: linear-gradient(to right, #ffffff, #d1d5db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.station-freq {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: 0.05em;
}

.station-desc {
  color: #9ca3af;
  font-size: 1.05rem;
  line-height: 1.6;
  margin-top: 15px;
  max-width: 480px;
}

/* Contenedor del Player Iframe */
.player-iframe-container {
  width: 100%;
  max-width: 500px;
  height: 450px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
  background: #000;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .player-iframe-container {
    height: 450px; /* Keep original height for the iframe content */
    max-width: 100%;
    transform: scale(0.65);
    transform-origin: top center;
    margin-bottom: -150px; /* Remove empty space caused by scaling */
  }
  .player-card {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
  }
  .station-title {
    font-size: 2rem;
  }
}

.player-iframe-container iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Sección de la Cuadrícula de Radios */
.stations-section {
  padding: 60px 0 100px 0;
  background: linear-gradient(to bottom, transparent, rgba(15, 23, 42, 0.6));
}

.section-title {
  font-family: var(--font-family-title);
  font-weight: 800;
  font-size: 2.2rem;
  text-align: center;
  margin-bottom: 40px;
  color: #ffffff;
}

.station-card {
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 20px;
  padding: 25px;
  text-align: center;
  cursor: pointer;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.station-card:hover {
  transform: translateY(-8px);
  background: rgba(30, 41, 59, 0.55);
  border-color: var(--card-accent, rgba(255, 255, 255, 0.2));
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.station-card.active {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--card-accent);
  box-shadow: 0 0 25px rgba(var(--card-accent-rgb), 0.2);
}

.station-card-logo {
  width: 100px;
  height: 100px;
  object-fit: contain;
  border-radius: 12px;
  margin-bottom: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  background: rgba(0, 0, 0, 0.2);
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.station-card-title {
  font-weight: 700;
  font-size: 1.2rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.station-card-freq {
  font-size: 0.85rem;
  color: var(--card-accent);
  font-weight: 500;
  margin-bottom: 15px;
}

.btn-play-card {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 8px 20px;
  border-radius: 30px;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  justify-content: center;
}

.station-card:hover .btn-play-card {
  background: var(--card-accent);
  color: #030712;
  border-color: var(--card-accent);
}

.station-card.active .btn-play-card {
  background: var(--card-accent);
  color: #030712;
  border-color: var(--card-accent);
}

/* Footer elegante */
.custom-footer {
  background: rgba(3, 7, 18, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding: 40px 0;
  text-align: center;
  color: #6b7280;
  font-size: 0.9rem;
}

.footer-logo {
  max-height: 40px;
  width: auto;
  margin-bottom: 20px;
  filter: grayscale(100%) opacity(60%);
}

.footer-logo:hover {
  filter: none;
}

/* Ajuste del menú de navegación móvil */
.navbar-toggler {
  border: none;
  padding: 4px 8px;
}

.navbar-toggler:focus {
  box-shadow: none;
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Clases específicas para efectos de acento según la radio seleccionada */
.theme-radio1 { --accent-color: var(--color-radio1); --primary-glow: radial-gradient(circle, rgba(196, 216, 81, 0.15) 0%, rgba(0,0,0,0) 70%); }
.theme-radio2 { --accent-color: var(--color-radio2); --primary-glow: radial-gradient(circle, rgba(255, 153, 153, 0.15) 0%, rgba(0,0,0,0) 70%); }
.theme-radio3 { --accent-color: var(--color-radio3); --primary-glow: radial-gradient(circle, rgba(255, 210, 63, 0.15) 0%, rgba(0,0,0,0) 70%); }
.theme-radio4 { --accent-color: var(--color-radio4); --primary-glow: radial-gradient(circle, rgba(0, 180, 216, 0.15) 0%, rgba(0,0,0,0) 70%); }
.theme-radio5 { --accent-color: var(--color-radio5); --primary-glow: radial-gradient(circle, rgba(255, 84, 0, 0.15) 0%, rgba(0,0,0,0) 70%); }
.theme-radio6 { --accent-color: var(--color-radio6); --primary-glow: radial-gradient(circle, rgba(162, 210, 255, 0.15) 0%, rgba(0,0,0,0) 70%); }

/* ==========================================================================
   CAPA DE SEGURIDAD Y PROTECCIÓN DE CONTENIDO (CSS)
   ========================================================================== */

/* Desactivar selección de texto */
html, body, img, a, button, iframe, .glass-card, .station-card {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
  -webkit-user-drag: none !important;
}

/* Desactivar menús contextuales en dispositivos móviles (guardar imagen, etc.) */
img {
  -webkit-touch-callout: none !important;
  pointer-events: none !important;
}

/* Ocultar contenido al imprimir el sitio web */
@media print {
  html, body {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
  }
}

