/* =========================================================================
   CONTACTO STEREO 99.4 FM - ESTILOS PERSONALIZADOS PREMIUM
   ========================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

:root {
  --font-title: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;

  /* Paleta de Colores (Verde Esmeralda + Acentos Dorados/Amarillos) */
  --bg-dark-overlay: rgba(10, 25, 17, 0.85); /* Verde oscuro traslúcido */
  --primary-emerald: #10b981;
  --primary-emerald-hover: #059669;
  --primary-emerald-light: rgba(16, 185, 129, 0.2);
  --accent-gold: #fbbf24;
  --accent-gold-hover: #f59e0b;
  
  /* Glassmorphism */
  --glass-bg: rgba(15, 23, 42, 0.65); /* Azul/Gris oscuro traslúcido */
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 16px 40px 0 rgba(0, 0, 0, 0.45);
}

body {
  font-family: var(--font-body);
  background-color: #0c0f12;
  overflow-x: hidden;
  color: #f1f5f9;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
}

/* =========================================================================
   NAVBAR CUSTOMIZATIONS
   ========================================================================= */
.navbar {
  backdrop-filter: blur(12px);
  background-color: rgba(12, 15, 18, 0.8) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  padding: 0.8rem 1.5rem;
}

.navbar .nav-link {
  color: #94a3b8 !important;
  transition: color 0.3s ease, transform 0.2s ease;
}

.navbar .nav-link:hover {
  color: var(--primary-emerald) !important;
  transform: translateY(-2px);
}

/* Live Badge Indicator en Navbar */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #ef4444;
  letter-spacing: 0.05em;
}

.live-badge .blink-dot {
  width: 8px;
  height: 8px;
  background-color: #ef4444;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  animation: pulse-red 1.6s infinite;
}

@keyframes pulse-red {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* =========================================================================
   HERO / INTRO SECTION WITH PARALLAX
   ========================================================================= */
#intro {
  min-height: 100vh;
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: 0 !important; /* Desactivar margen de plantilla */
  padding-top: 130px; /* Suficiente espacio para el navbar fijo y evitar cubrir el logo */
  padding-bottom: 60px; /* Balance visual inferior */
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(12, 15, 18, 0.9) 0%,
    rgba(16, 44, 28, 0.8) 50%,
    rgba(12, 15, 18, 0.95) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: 1.5rem;
}

/* =========================================================================
   GLASS CARD CONTAINER
   ========================================================================= */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  border-radius: 24px;
  padding: 3rem 2.5rem;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.glass-card:hover {
  border-color: rgba(16, 185, 129, 0.25);
  transform: translateY(-4px);
}

.station-title {
  font-size: 2.8rem;
  background: linear-gradient(135deg, #ffffff 60%, var(--primary-emerald) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}

.station-subtitle {
  font-family: var(--font-body);
  color: #a0aec0;
  font-size: 1.1rem;
  margin-bottom: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
}

/* =========================================================================
   PREMIUM CUSTOM AUDIO PLAYER CARD
   ========================================================================= */
.player-container {
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 1.5rem 2rem;
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

/* Play/Pause Button */
.play-btn-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  width: 90px;
  height: 90px;
}

.play-btn-bg-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.4) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  transform: scale(1);
  transition: transform 0.3s ease;
  z-index: 1;
}

.play-btn-wrapper.playing .play-btn-bg-pulse {
  animation: pulse-ring 2s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.4);
    opacity: 0;
  }
}

.play-btn {
  position: relative;
  z-index: 2;
  width: 70px;
  height: 70px;
  background-color: var(--primary-emerald);
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(16, 185, 129, 0.4);
  font-size: 1.7rem;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.play-btn:hover {
  background-color: var(--primary-emerald-hover);
  transform: scale(1.08);
  box-shadow: 0 12px 30px rgba(16, 185, 129, 0.6);
}

.play-btn:active {
  transform: scale(0.95);
}

.play-btn i {
  transition: transform 0.2s ease;
}

/* Player Meta (Song text / Buffer status) */
.player-meta {
  text-align: center;
  width: 100%;
}

.player-status-text {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--primary-emerald);
  letter-spacing: 0.1em;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.song-title-display {
  font-size: 1.15rem;
  font-weight: 500;
  color: #f8fafc;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
  display: block;
}

/* Volume Control */
.volume-control-wrapper {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  width: 100%;
  max-width: 220px;
  margin-top: 0.3rem;
}

.volume-icon {
  color: #94a3b8;
  width: 20px;
  text-align: center;
  cursor: pointer;
  transition: color 0.2s ease;
}

.volume-icon:hover {
  color: white;
}

.volume-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 5px;
  background: #334155;
  outline: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--primary-emerald);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.volume-slider::-webkit-slider-thumb:hover {
  background: white;
  transform: scale(1.25);
}

.volume-slider::-moz-range-thumb {
  width: 13px;
  height: 13px;
  border: none;
  border-radius: 50%;
  background: var(--primary-emerald);
  cursor: pointer;
  transition: transform 0.1s ease, background-color 0.2s ease;
}

.volume-slider::-moz-range-thumb:hover {
  background: white;
  transform: scale(1.25);
}

/* =========================================================================
   DYNAMIC WAVE EQUALIZER
   ========================================================================= */
.eq-visualizer {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 32px;
  width: 100px;
  margin: 0.5rem auto 0 auto;
}

.eq-bar {
  width: 4px;
  background-color: var(--primary-emerald);
  border-radius: 2px;
  height: 4px;
  transition: height 0.2s ease;
}

/* Animaciones de ondas individuales */
.eq-visualizer.playing .eq-bar:nth-child(1) { animation: dance-1 1.2s ease infinite alternate; }
.eq-visualizer.playing .eq-bar:nth-child(2) { animation: dance-2 0.9s ease infinite alternate 0.1s; }
.eq-visualizer.playing .eq-bar:nth-child(3) { animation: dance-3 1.4s ease infinite alternate 0.2s; }
.eq-visualizer.playing .eq-bar:nth-child(4) { animation: dance-4 1.1s ease infinite alternate 0.05s; }
.eq-visualizer.playing .eq-bar:nth-child(5) { animation: dance-5 1.3s ease infinite alternate 0.15s; }

@keyframes dance-1 { 0% { height: 4px; } 100% { height: 28px; } }
@keyframes dance-2 { 0% { height: 4px; } 100% { height: 20px; } }
@keyframes dance-3 { 0% { height: 4px; } 100% { height: 32px; } }
@keyframes dance-4 { 0% { height: 4px; } 100% { height: 24px; } }
@keyframes dance-5 { 0% { height: 4px; } 100% { height: 18px; } }

/* =========================================================================
   COUNTDOWN TIMER Visual System
   ========================================================================= */
.countdown-box {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  max-width: 420px;
  margin: 1.5rem auto 2.5rem auto;
}

.countdown-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  padding: 0.8rem 0.5rem;
  text-align: center;
  transition: border-color 0.3s ease;
}

.countdown-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.countdown-value {
  font-family: var(--font-title);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
  margin-bottom: 0.2rem;
}

.countdown-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.notice-text {
  font-size: 0.95rem;
  color: #cbd5e1;
  max-width: 500px;
  margin: 0 auto 2rem auto;
  line-height: 1.6;
}

/* =========================================================================
   MODAL DIALOG GLASSMORPHISM
   ========================================================================= */
.modal-content {
  background: rgba(15, 23, 42, 0.9) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border) !important;
  border-radius: 20px !important;
  color: #f1f5f9;
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

.modal-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05) !important;
}

.modal .btn-close {
  filter: invert(1);
}

/* =========================================================================
   FOOTER STYLE
   ========================================================================= */
footer {
  background-color: #090c0e !important;
  border-top: 1px solid rgba(255, 255, 255, 0.03);
  color: #64748b;
  padding: 1.8rem 0;
  font-size: 0.85rem;
}

footer a {
  transition: color 0.2s ease;
  font-weight: 500;
}

footer a:hover {
  color: var(--primary-emerald) !important;
}

/* =========================================================================
   RESPONSIVENESS ADJUSTMENTS
   ========================================================================= */
@media (max-width: 768px) {
  .station-title {
    font-size: 2.2rem;
  }
  
  .glass-card {
    padding: 2rem 1.5rem;
  }
  
  .countdown-box {
    gap: 0.5rem;
  }

  .countdown-value {
    font-size: 1.4rem;
  }
  
  .navbar {
    padding: 0.6rem 1rem;
  }
}

/* =========================================================================
   CONTACT INFO SECTION
   ========================================================================= */
.contact-section {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 2.5rem;
  padding-top: 2rem;
}

.contact-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
  margin-top: 1.2rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  color: #cbd5e1;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.contact-item i {
  color: var(--primary-emerald);
  font-size: 1.25rem;
  transition: transform 0.3s ease;
}

.contact-item a {
  color: #cbd5e1;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.contact-item a:hover {
  color: var(--accent-gold);
}

.contact-item:hover i {
  transform: scale(1.2);
}

@media (max-width: 576px) {
  .contact-grid {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding-left: 1rem;
  }
}
