/* === VARIABLES DE COLOR Y SOMBRA === */
:root {
  --primary: #ff0040;       /* Color principal (rojo fuerte) */
  --accent: #ffffff;        /* Color de acento (blanco) */
  --text: #222;             /* Color de texto base (gris oscuro) */
  --bg: #fefefe;            /* Color de fondo general (casi blanco) */
  --shadow: rgba(0, 0, 0, 0.1); /* Sombra suave para elementos */
}

/* === ESTILO GENERAL DEL CUERPO === */
body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: var(--bg); /* Fondo general */
  color: var(--text);          /* Color de texto general */
  transition: background 0.3s ease, color 0.3s ease; /* Transiciones suaves */
}

/* === ENCABEZADO FIJO SUPERIOR === */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to right, #00a8ff, #ff6a00); /* Degradado rojo a naranja */
  color: white;
  padding: 15px 20px;
  box-shadow: 0 2px 5px var(--shadow);
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

/* === TÍTULO DE LA RADIO EN EL HEADER === */
header h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: bold;
  display: flex;
  align-items: center;
}

/* === PUNTO VERDE ANIMADO EN VIVO === */
.live-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  background: lime;
  border-radius: 50%;
  margin-right: 8px;
  animation: pulse 1s infinite;
}

/* === ANIMACIÓN DEL PUNTO EN VIVO === */
@keyframes pulse {
  0% { opacity: 1; }
  50% { opacity: 0.3; }
  100% { opacity: 1; }
}

/* === NAVEGACIÓN SUPERIOR CON ÍCONOS === */
.top-nav {
  display: flex;
  gap: 15px;
  margin-top: 10px;
  padding-right: 10px;
}

/* === ESTILO DE LOS ÍCONOS DE NAVEGACIÓN === */
.top-nav a img {
  width: 18px;
  height: 18px;
  border-radius: 35%;
  background-color: var(--accent);
  box-shadow: 0 2px 5px var(--shadow);
  padding: 5px;
  transition: transform 0.2s;
}

/* === EFECTO AL PASAR EL MOUSE SOBRE ÍCONOS === */
.top-nav a:hover img {
  transform: scale(1.1);
}

/* === CONTENIDO PRINCIPAL === */
main {
  padding: 100px 20px 120px; /* Espacio para header y footer */
  max-width: 900px;
  margin: auto;
}

/* === TARJETAS DE CONTENIDO (Inicio, Novedades) === */
.card {
  background-color: var(--accent);
  border-radius: 0px;
  padding: 20px;
  margin-bottom: 0px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* === LOGO DE LA RADIO === */
.logo {
  width: 135px;
  display: block;
  margin: 0 auto 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px var(--shadow);
}

/* === REPRODUCTOR DE AUDIO === */
audio {
  width: 100%;
  max-width: 240px;
  display: block;
  margin: auto;
  border-radius: 8px;
}

/* === EFECTO DE ENTRADA SUAVE === */
.fade-in {
  animation: fadeIn 1s ease forwards;
  opacity: 0;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

/* === SECCIÓN DE CONTACTO === */
.contact-section {
  text-align: center;
  margin-top: 20px;
  font-size: 1rem;
}

/* === ENLACES EN CONTACTO === */
.contact-section a {
  color: var(--primary);
  text-decoration: none;
  font-weight: bold;
}

/* === BARRA DE REDES SOCIALES FIJA === */
.social-bar {
  position: fixed;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 15px;
}

/* === ÍCONOS DE REDES SOCIALES === */
.social-bar a img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 45%;
  background-color: var(--accent);
  box-shadow: 0 2px 5px var(--shadow);
  transition: transform 0.2s;
  padding: 5px;
}

/* === EFECTO AL PASAR MOUSE SOBRE REDES === */
.social-bar a:hover img {
  transform: scale(1.1);
}

/* === PIE DE PÁGINA FIJO === */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--primary);
  color: white;
  text-align: center;
  padding: 15px 10px;
  box-shadow: 0 -2px 5px var(--shadow);
}

/* === RESPONSIVE PARA CELULARES === */
@media (max-width: 600px) {
  header {
    flex-direction: column;
    align-items: flex-start;
  }

  .top-nav {
    justify-content: flex-start;
    padding-left: 10px;
    padding-right: 10px;
  }

  .social-bar {
    right: 10px;
  }
}

/* === GRID DE NOVEDADES === */
.novedades-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

/* === TARJETA INDIVIDUAL DE NOVEDAD === */
.novedad {
  width: 220px;
  text-align: center;
}

/* === IMAGEN DE NOVEDAD === */
.novedad img {
  width: 100%;
  height: auto;
  max-height: 300px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 2px 5px var(--shadow);
}

/* === NOVEDAD CON COMENTARIO POÉTICO === */
.novedad-item {
  display: flex;
  align-items: center;
  margin-top: 20px;
}

/* === IMAGEN LATERAL EN COMENTARIO === */
.novedad-img {
  width: 200px;
  height: auto;
  border-radius: 8px;
  margin-right: 15px;
}

/* === TEXTO DEL COMENTARIO POÉTICO === */
.novedad-comentario p {
  font-size: 16px;
  color: #333;
  line-height: 1.5;
}

/* === MODO CLARO GENERAL === */
body.light-mode {
  background-color: white;
  color: black;
}

/* === MODO OSCURO GENERAL === */
body.dark-mode {
  background-color: black;
  color: white;
}

/* === TRANSICIÓN GLOBAL PARA ELEMENTOS CLAVE === */
.card, .contact-section, .top-nav a img {
  transition: background-color 0.3s, color 0.3s, filter 0.3s;
}

/* ❌ ESTE BLOQUE TIENE ERRORES Y NO FUNCIONA CORRECTAMENTE */
body.dark-mode .inicio a inicio,
body.dark-mode .novedades novedad-comentario,
body.dark-mode .contacto contact-section {
  filter: invert(1);
}
/* Puedes eliminarlo o corregirlo si lo necesitas */

/* === MODO CLARO PARA TARJETAS Y CONTACTO === */
body.light-mode .card,
body.light-mode .contact-section {
  background-color: #ffffff;
  color: #000000;
}

/* === MODO OSCURO PARA TARJETAS Y CONTACTO === */
body.dark-mode .card,
body.dark-mode .contact-section {
  background-color: #000000;
  color: #ffffff;
}

/* === TRANSICIÓN SUAVE PARA TARJETAS Y CONTACTO === */
.card, .contact-section {
  transition: background-color 0.3s, color 0.3s;
}

/* === TEXTO DE COMENTARIOS EN MODO CLARO === */
body.light-mode .novedad-comentario p {
  color: #000000;
}

/* === TEXTO DE COMENTARIOS EN MODO OSCURO === */
body.dark-mode .novedad-comentario p {
  color: #ffffff;
}

/* ===