/* =========================
/* =========================
   VARIABLES DE COLOR Y TEMAS
   ========================= */
:root {
  /* Paleta base (modo claro) */
  --primary-color: #6c22fc;
  --secondary-color: #061e2b;
  --accent-color: #b694f8;
  --text-color: #f8f8f8; /* Aumentado para que sea blanco y mejor contraste */
  --light-text: #cfcfcf;
  --bg-color: #121212; /* Fondo más oscuro para mayor contraste */
  --card-bg: rgba(0,0,0,0.6); /* Fondo de tarjetas con transparencia */
  --border-color: #5a5a5a;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  --transition: all 0.3s ease;
  --radius: 12px;
  --header-height: 64px;
  --player-height: 70px;
  --header-bg: rgba(248, 248, 248, 0.8); /* Gris clarito casi blanco */


  /* Tipografías y tamaños (puedes ajustar a tu gusto) */
  --font-family-base: 'Inter', sans-serif;
  --font-family-heading: 'Poppins', sans-serif;
  --font-size-base: 1rem; /* 16px */
  --font-size-heading: 1.5rem; /* 24px */
  --line-height-base: 1.6;
}

/* Modo oscuro */
[data-theme='dark'] {
  --primary-color: #b694f8;
  --secondary-color: #061e2b;
  --accent-color: #cbb3f9;
  --text-color: #ffffff;
  --light-text: #d9d9d9;
  --bg-color: #121212;
  --card-bg: rgba(0,0,0,0.6);
  --border-color: #333;
  --shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  --header-bg: rgba(248, 248, 248, 0.8); /* Mismo color en modo oscuro */

}


/* =========================
   RESETEO BÁSICO
   ========================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  line-height: var(--line-height-base);
  color: var(--text-color);

  background-color: #ffffff;   /* FONDO BLANCO */
  background-image: none;      /* SIN IMAGEN */

  transition: var(--transition);
  padding-bottom: var(--player-height);
}

/* Enlace para saltar contenido (solo visible al enfocar) */
.skip-link {
  position: absolute;
  top: -40px;
  left: -1000px;
  background: #000;
  color: #fff;
  padding: 8px 15px;
  z-index: 10000;
  border-radius: 4px;
  text-decoration: none;
}
.skip-link:focus {
  top: 10px;
  left: 10px;
  outline: 2px solid #fff;
}

/* =========================
   ESTILOS HEADER
   ========================= */
header {

  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--bg-color);
}
header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  min-height: var(--header-height);
}
.logo img {
  height: 80px;
  width: auto;
  display: block;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 1rem;
}
nav ul li a {
  color: var(--text-color);
  text-decoration: none;
  font-family: var(--font-family-heading);
  font-weight: 500;
  transition: var(--transition);
  padding: 8px 0;
}
nav ul li a:hover,
nav ul li a:focus {
  color: var(--primary-color);
  outline: none;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* Acciones en header (WhatsApp, botón dark mode) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.whatsapp-link {
  color: #25d366;
  text-decoration: none;
  font-size: 1.5rem;
}
.theme-toggle {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--text-color);
}

/* =========================
   CONTENIDO PRINCIPAL
   ========================= */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

/* Secciones que van apareciendo con fade-in */
.section {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.section.fade-in {
  opacity: 1;
  transform: translateY(0);
}
.section h2 {
  text-align: center;
  margin-bottom: 30px;
  font-family: var(--font-family-heading);
  font-size: var(--font-size-heading);
  font-weight: 600;
  color: var(--primary-color);
}

/* =========================
   LISTAS DE CARTAS: Locutores, Podcasts, etc.
   ========================= */
.announcer-list, .podcast-list, .collaborator-list, .event-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}

/* Estilo base para tarjetas (announcers, podcasts, events, etc.) */
.announcer-item,
.podcast-item,
.collaborator-item,
.event-item,
.day-card {
  background-color: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  transition: var(--transition);
  text-align: center;
  position: relative;
}
.announcer-item:hover,
.podcast-item:hover,
.collaborator-item:hover,
.event-item:hover,
.day-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* Ajuste de imágenes dentro de tarjetas */
.announcer-item img,
.podcast-item img,
.collaborator-item img,
.event-item img {
  width: 100%;
  height: auto;
  max-height: 240px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.day-card img {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 10px;
}
.announcer-item h3,
.podcast-item h3,
.collaborator-item h3,
.event-item h3,
.day-card h3 {
  margin: 0.5em 0;
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  color: var(--text-color);
}

/* =========================
   ESTILOS ESPECÍFICOS PODCASTS
   ========================= */
/* Sección Podcasts: ajustar el contenedor principal */
.podcast-list {
  /* Convertimos la lista en un grid fluido */
  display: grid;
  /* Ajusta el minmax para el ancho mínimo de cada tarjeta */
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  justify-items: center; /* Centrar las tarjetas */
}

/* Tarjeta de podcast: distribución vertical */
.podcast-item {
  /* Eliminamos el display:flex horizontal para que todo vaya en columna */
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Fondo y borde para destacar la tarjeta */
  background-color: var(--card-bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  width: 100%;  /* Se adaptará al tamaño del grid */
  max-width: 300px; /* Limita el ancho máximo para que no se distorsione */
  margin: 0 auto;
  transition: var(--transition);
  position: relative;
}

/* Imagen del podcast */
.podcast-item img {
  width: 100%;
  height: auto;
  max-height: 250px;  /* Ajusta si quieres recortar imágenes muy altas */
  border-radius: var(--radius);
  object-fit: cover;
  margin-bottom: 1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* Contenedor de texto y botón dentro de la tarjeta */
.podcast-content {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
}

/* Título del podcast */
.podcast-content h3 {
  font-family: var(--font-family-heading);
  font-size: 1.1rem;
  margin: 0.5rem 0;
  color: var(--text-color);
}

/* Sección de suscriptores */
.suscriptores {
  display: flex;
  align-items: center;
  justify-content: center; /* Centrar ícono + número */
  gap: 5px;
}

/* Botón de suscripción */
.btn-subscribe {
  background-color: #ff8000;
  padding: 0.6em 1em;
  border-radius: 2rem;
  display: inline-flex;
  align-items: center;
  color: #f7f7f7;
  font-weight: bold;
  text-decoration: none;
  justify-content: center;
  margin-top: 1rem; /* Espacio para separarlo del texto */
  transition: background-color 0.3s ease;
}
.btn-subscribe:hover {
  background-color: #ff9300; /* Un pequeño cambio de color al pasar el ratón */
}

/* Íconos dentro del botón de suscripción */
.btn-subscribe img,
.btn-subscribe svg,
.btn-subscribe i {
  width: 20px !important;
  height: 20px !important;
  font-size: 20px !important; /* Sólo aplica si es un icono de fuente */
  margin-right: 8px;
  /* Evita que escale si hay reglas previas */
  margin-top: 13px;
}

/* Íconos en la sección de 'suscriptores' */
.suscriptores img,
.suscriptores svg,
.suscriptores i {
  width: 13px !important;!i;!;
  height: 16px !important;
  font-size: 18px;
  margin-right: 5px;
  border-radius:unset;
  margin-top: 10px;
}

/* Si usas Bootstrap Icons */
.bi {
  font-size: 1.2rem;
  line-height: 1;
  width: auto;
  height: auto;
}


/* Ajustes responsive en caso de necesitarlos */
@media (max-width: 480px) {
  .podcast-list {
    grid-template-columns: 1fr;  /* Una columna en pantallas muy pequeñas */
  }
  .podcast-item {
    max-width: 100%;
  }
}

/* =========================
   PROGRAMACIÓN DIARIA / SEMANAL
   ========================= */
.daily-schedule-container {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 20px;
  margin-bottom: 2em;
  justify-content: center;
}
.daily-schedule-image {
  max-width: 400px;
  border-radius: var(--radius);
}
.daily-schedule-text table {
  width: 100%;
  border-collapse: collapse;
  color: #fff;
  background-color: rgba(0,0,0,0.4);
  border-radius: var(--radius);
  overflow: hidden;
}
.daily-schedule-text th,
.daily-schedule-text td {
  padding: 0.6em 1em;
  border-bottom: 1px solid var(--border-color);
  text-align: left;
}
.daily-schedule-text th {
  color: var(--primary-color);
}
.daily-schedule-text tbody tr:last-child td {
  border-bottom: none;
}

.weekly-schedule {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.day-card h3 {
  color: var(--primary-color);
  margin-bottom: 0.5em;
}
.day-schedule-list {
  text-align: left;
  margin-top: 10px;
  margin-left: 0.5em;
}
.day-schedule-list .time {
  font-weight: 600;
}
.day-schedule-list .program {
  font-weight: 500;
}

/* =========================
   EVENTOS
   ========================= */
.event-list {
     display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    gap: 20px;
}

/* =========================
   LIGHTBOX
   ========================= */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 2000;
}
.lightbox.active {
  display: flex;
}
.lightbox img {
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  border-radius: var(--radius);
}
.close-lightbox {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  z-index: 2001;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(0,0,0,0.5);
  border-radius: 50%;
}

        /* Footer */
        footer {
            background: rgba(0, 0, 0, 0.8);
            backdrop-filter: blur(10px);
            -webkit-backdrop-filter: blur(10px);
            padding: 40px 0 20px;
            margin-top: 60px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: white;
        }

        .footer-content {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
            gap: 40px;
            margin-bottom: 30px;
        }

        .footer-content h3 {
            margin-bottom: 20px;
            color: var(--primary-color);
            font-family: 'Quicksand', sans-serif;
            font-size: 1.3rem;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
            padding-bottom: 10px;
        }

        .social-links, .app-links {
            display: flex;
            gap: 20px;
            margin-top: 15px;
        }

        .social-links a, .app-links a {
            color: white;
            font-size: 1.4rem;
            text-decoration: none;
            transition: transform 0.3s ease, color 0.3s ease;
            display: flex;
            align-items: center;
            justify-content: center;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
        }

        .social-links a:hover, .app-links a:hover {
            transform: translateY(-5px);
            color: var(--primary-color);
            background: rgba(255, 255, 255, 0.2);
        }

        .footer-content p {
            margin-bottom: 12px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 0.95rem;
            line-height: 1.7;
        }

        .footer-content a {
            color: var(--primary-color);
            text-decoration: none;
            transition: color 0.3s ease;
        }

        .footer-content a:hover {
            text-decoration: underline;
        }

        .copyright {
            text-align: center;
            padding-top: 20px;
            border-top: 1px solid rgba(255, 255, 255, 0.1);
            color: rgba(255, 255, 255, 0.6);
            font-size: 0.9rem;
        }

        @media (max-width: 768px) {
            .footer-content {
                grid-template-columns: 1fr;
                gap: 30px;
                text-align: center;
            }

            .social-links, .app-links {
                justify-content: center;
            }
        }


/* =========================
   MENSAJES DE ESTADO
   ========================= */
.no-data-message {
  text-align: center;
  font-size: 1.2rem;
  color: #f0f0f0;
  margin: 50px 0;
  font-weight: bold;
  min-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.error-message {
  text-align: center;
  font-size: 1.1rem;
  color: #ff5555;
  margin: 50px 0;
  font-weight: bold;
}

/* =========================
   PAGINACIÓN
   ========================= */
.pagination-container {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}
.pagination {
  display: flex;
  gap: 15px;
  align-items: center;
}
.pagination-button {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  width: 40px; height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-color);
  font-size: 1.2rem;
  cursor: pointer;
  transition: var(--transition);
}
.pagination-button:hover:not(:disabled),
.pagination-button:focus-visible:not(:disabled) {
  background: var(--primary-color);
  border-color: var(--primary-color);
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(150, 50, 255, 0.3);
}
.pagination-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* =========================
   REPRODUCTOR DE RADIO
   ========================= */
#radio-player {
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 -8px 30px rgba(0,0,0,0.2);
  position: fixed;
  bottom: 0; left: 0; right: 0;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
  height: var(--player-height);
  flex-wrap: wrap;
}
.player-info {
  display: flex;
  flex-direction: column;
}
.station-name {
  font-weight: 700;
  color: var(--primary-color);
  font-size: 1.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.program-info {
  font-size: 0.85rem;
  color: var(--light-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.player-controls {
  display: flex;
  align-items: center;
}
.play-btn, .volume-btn {
  background: none;
  border: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--text-color);
  transition: var(--transition);
  margin: 0 10px;
}
.play-btn {
  background: var(--primary-color);
  width: 40px; height: 40px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 15px rgba(255, 51, 102, 0.3);
}
.play-btn:hover, .volume-btn:hover,
.play-btn:focus-visible, .volume-btn:focus-visible {
  transform: scale(1.1);
  opacity: 0.9;
}
.progress-bar {
  flex-grow: 1;
  height: 6px;
  background-color: rgba(255,255,255,0.1);
  border-radius: 10px;
  margin: 0 15px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.progress {
  height: 100%;
  background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
  width: 0%;
  border-radius: 10px;
  transition: width 0.1s linear;
}

/* Contenedor de audio flotante que aparece al reproducir */
#audio-player-container {
  display: none;
  position: fixed;
  bottom: 60px;
  left: 0; right: 0;
  background-color: rgba(0,0,0,0.8);
  border-top: 1px solid rgba(255,255,255,0.2);
  z-index: 999;
  padding: 10px 20px;
}
#audio-player {
  width: 100%;
  background-color: #1e1e1e;
  border: 1px solid #333;
  border-radius: 4px;
}
#metadata-container {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #444;
  font-size: 14px;
  color: #ddd;
}
#current-song, #current-presenter {
  margin: 5px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
  .mobile-menu-btn {
    display: block;
  }
  nav {
    position: fixed;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100vh;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px 20px;
    transition: left 0.3s ease;
    z-index: 2000;
  }
  nav.active {
    left: 0;
  }
  nav ul {
    flex-direction: column;
    gap: 25px;
    align-items: center;
  }
  nav ul li {
    margin: 0;
    text-align: center;
    width: 100%;
  }
  nav ul li a {
    font-size: 1.3rem;
    display: block;
    padding: 12px 20px;
    color: #fff;
    border-radius: 8px;
    background: rgba(255,255,255,0.05);
    width: 100%;
  }

  /* Reproductor adaptado */
  #radio-player {
    flex-direction: column;
    height: auto;
    padding: 8px 15px;
    gap: 10px;
  }
  .player-info {
    min-width: 140px;
  }

  /* Listas en una sola columna si no hay espacio */
  .announcer-list,
  .podcast-list,
  .collaborator-list,
  .event-list {
    grid-template-columns: 1fr;
  }
  .podcast-item {
    flex-direction: column;
    padding: 15px;
    gap: 20px;
    align-items: center;
    text-align: center;
  }
  .podcast-item img {
    width: 150px;
    height: 150px;
  }

  .daily-schedule-container {
    flex-direction: column;
    gap: 1.5rem;
  }
  .daily-schedule-image {
    max-width: 100%;
  }
  .weekly-schedule {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .section h2 {
    font-size: 1.3rem;
  }
  .announcer-item img,
  .podcast-item img,
  .collaborator-item img {
    max-height: 160px;
  }
  .podcast-content h3 {
    font-size: 1rem;
  }
  .btn-subscribe {
    width: 100%;
    justify-content: center;
    padding: 0.6em;
  }
}