/* ---------------------------
   RADIO EDUCATIC LIVE
   Diseño moderno responsive
   Autor: Frank’s Arias
----------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #000000, #1a1a1a);
  color: #fff;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

/* ---------------------------
   BANNER ANIMADO CON LOGO
----------------------------*/
.banner {
  position: relative;
  text-align: center;
  color: #fff;
  background: linear-gradient(90deg, #ff4500, #ffcc00, #0099ff, #00cc66);
  background-size: 400% 400%;
  animation: gradientMove 12s ease infinite;
  padding: 60px 15px;
  overflow: hidden;
}

@keyframes gradientMove {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.banner .overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  z-index: 1;
}

.banner .logo {
  width: 220px;
  height: 220px;
  border-radius: 15px;
  border: 3px solid #fff;
  object-fit: contain;
  position: relative;
  z-index: 2;
  margin-bottom: 10px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.banner .logo:hover {
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(255,255,255,0.4);
}

.banner h1 {
  font-size: 2.5rem;
  margin: 5px 0;
  z-index: 2;
  position: relative;
  text-shadow: 2px 2px 6px rgba(0,0,0,0.5);
}

.banner .slogan {
  font-size: 1.2rem;
  font-style: italic;
  color: #fff;
  margin-bottom: 20px;
  z-index: 2;
  position: relative;
}

/* ANIMACIÓN DE ONDAS SONORAS */
.soundwaves {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 40px;
  gap: 4px;
  position: relative;
  z-index: 2;
}

.soundwaves span {
  display: block;
  width: 6px;
  height: 10px;
  background: #fff;
  border-radius: 4px;
  animation: wave 1s infinite ease-in-out;
}

.soundwaves span:nth-child(odd) { background: #ffcc00; }
.soundwaves span:nth-child(even) { background: #ff4500; }

.soundwaves span:nth-child(1) { animation-delay: 0s; }
.soundwaves span:nth-child(2) { animation-delay: 0.1s; }
.soundwaves span:nth-child(3) { animation-delay: 0.2s; }
.soundwaves span:nth-child(4) { animation-delay: 0.3s; }
.soundwaves span:nth-child(5) { animation-delay: 0.4s; }
.soundwaves span:nth-child(6) { animation-delay: 0.5s; }
.soundwaves span:nth-child(7) { animation-delay: 0.6s; }
.soundwaves span:nth-child(8) { animation-delay: 0.7s; }
.soundwaves span:nth-child(9) { animation-delay: 0.8s; }
.soundwaves span:nth-child(10) { animation-delay: 0.9s; }

@keyframes wave {
  0%, 100% { height: 10px; opacity: 0.6; }
  50% { height: 35px; opacity: 1; }
}

/* ---------------------------
   SECCIÓN PLAYER
----------------------------*/
.player {
  text-align: center;
  margin: 40px auto;
  padding: 25px;
  max-width: 800px;
  background: rgba(255,255,255,0.05);
  border-radius: 15px;
  box-shadow: 0 0 15px rgba(255,255,255,0.1);
}

.player h2 {
  color: #ffcc00;
  margin-bottom: 15px;
}

audio {
  width: 90%;
  outline: none;
  border-radius: 10px;
}

.status {
  margin-top: 10px;
  font-size: 1rem;
  color: #00cc66;
  font-weight: 500;
}

/* ---------------------------
   SECCIÓN NOTICIAS
----------------------------*/
.noticias {
  max-width: 850px;
  margin: 40px auto;
  background: rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

.noticias h2 {
  text-align: center;
  color: #ffcc00;
  font-size: 1.5rem;
}

.noticias-frame {
  width: 100%;
  height: 350px;
  border: none;
  border-radius: 10px;
  margin-top: 10px;
}

/* ---------------------------
   PIE DE PÁGINA
----------------------------*/
footer {
  text-align: center;
  background: #111;
  padding: 20px;
  color: #ccc;
  font-size: 0.9rem;
}

footer a {
  color: #ffcc00;
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  color: #ffffff;
}

.footer-links {
  margin-top: 8px;
  font-size: 0.95rem;
}

/* ---------------------------
   RESPONSIVE
----------------------------*/
@media (max-width: 768px) {
  .banner .logo {
    width: 140px;
    height: 140px;
  }

  .banner h1 {
    font-size: 1.6rem;
  }

  .banner .slogan {
    font-size: 0.95rem;
  }

  .noticias-frame {
    height: 280px;
  }
}
