/* ================= RESET ================= */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ================= BODY ================= */
body {
  font-family: 'Segoe UI', sans-serif;
  background: linear-gradient(135deg, #0a0f1a, #111c2e);
  color: #ffffff;
  min-height: 100vh;
  overflow-x: hidden; /* evita scroll horizontal global */
}

/* ================= HEADER / NAV ================= */
.nav {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding: 12px 15px;
  flex-wrap: nowrap;
}

.nav a {
  text-align: center;
  font-size: 0.85rem;
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  position: relative;
  padding: 0 6px;
  transition: color 0.3s;
}

/* Separador | para todos menos el último */
.nav a:not(:last-child)::after {
  content: "|";
  margin-left: 10px;
  opacity: 0.6;
}

.nav a:hover {
  color: #4da3ff;
}

/* ================= LOGO ================= */
.logo-container {
  text-align: center;
  margin: 40px 0 20px 0;
}

.logo {
  max-width: 180px;
  height: auto;
  margin-bottom: 12px;
}

.main-title {
  font-size: 2rem;
  font-weight: 600;
  text-align: center;
}

.main-title .radio {
  font-style: italic;
  color: #4da3ff; /* azul del botón de radio */
}

.sub-title {
  font-size: 1rem;
  color: #9aa7c0;
  text-align: center;
}

/* ================= PLAYER ================= */
.player-section {
  display: flex;
  justify-content: center;
  padding: 20px;
}

.player-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 25px;
  width: 100%;
  max-width: 600px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(77, 163, 255, 0.2);
  text-align: center;
}

button#playRadio {
  background: #4da3ff;
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 15px;
  font-size: 1rem;
}

button#playRadio:hover {
  background: #3a8bd8;
}

.waves-container {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.wave {
  width: 6px;
  height: 20px;
  background: #4da3ff;
  margin: 0 3px;
  animation: wave 1s infinite ease-in-out;
}

@keyframes wave {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2.2); }
}

audio {
  width: 100%;
  margin-bottom: 20px;
}

/* ================= NOW PLAYING BOX ================= */
.now-playing-box {
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #121212, #1f1f1f);
  padding: 12px;
  border-radius: 12px;
  color: #fff;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  justify-content: center;
}

.now-playing-box img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-right: 12px;
  object-fit: cover;
}

.nowInfo p {
  margin: 2px 0;
  font-weight: 500;
  text-align: left;
}

.nowInfo p:first-child {
  font-size: 0.80rem;
  font-weight: 800;
}

.nowInfo p:last-child {
  font-size: 0.78rem;
  font-weight: 400;
  opacity: 0.85;
}

/* ================= IFRAME WRAPPERS ================= */
.iframe-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 20px auto;
  padding: 0 15px;
  display: flex;
  justify-content: center;
  overflow-x: hidden;
}

.iframe-wrapper iframe {
  width: 100%;
  max-width: 100%;
  height: 600px;
  border: 0;
}

/* ================= FOOTER ================= */
footer {
  text-align: center;
  padding: 40px 20px;
  font-size: 0.85rem;
  color: #9aa7c0;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ================= SECCIONES ================= */
.section {
  display: none;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
  box-sizing: border-box;
  text-align: center;
}

.section.active {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}

.section h1,
.section h2,
.section h3 {
  text-align: center;
  margin-bottom: 15px;
}

/* ================= CONTACTO ================= */
#contacto {
  text-align: center;
}

#contacto p,
#contacto a {
  text-align: center;
  word-break: break-word;
}

/* ================= WHATSAPP FLOTANTE ================= */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #25D366;
  border-radius: 50%;
  box-shadow: 0 4px 6px rgba(0,0,0,0.3);
  transition: transform 0.2s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

.whatsapp-float img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {

  .logo {
    max-width: 140px;
  }

  .main-title {
    font-size: 1.6rem;
  }

  .player-card {
    padding: 20px;
  }

  .iframe-wrapper iframe {
    height: 400px;
  }

  .now-playing-box img {
    width: 60px;
    height: 60px;
  }

  .section {
    padding: 15px 12px;
  }

  #contacto p {
    font-size: 0.95rem;
  }

  .section h2 {
    font-size: 1.4rem;
  }

  /* Menú móvil en una línea, sin segunda línea */
  .nav {
    flex-wrap: nowrap;
    gap: 12px;
    padding: 10px 5px;
  }

  .nav a {
    font-size: 0.8rem;
    padding: 8px 5px;
  }
}





