/* --- Fondo general con cuadriculado --- */
body {
  margin: 0;
  padding-top: 70px;
  font-family: 'Segoe UI', sans-serif;
  background-color: #f8f8f8;
  background-image: 
    linear-gradient(to right, rgba(0,0,0,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0,0,0,0.03) 1px, transparent 1px);
  background-size: 12px 12px;
  text-align: center;
  box-sizing: border-box;
}

/* --- Encabezado fijo --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 70px;
  background-color: #333;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

header img {
  height: 80px;
  cursor: pointer;
}

/* --- Contenedor principal del reproductor --- */
.radio-box {
  background-color: #fff;
  padding: 70px;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  display: block;
  text-align: center;
  width: 100%;
  margin: 20px auto;
  box-sizing: border-box;
}

/* --- Logo y redes sociales --- */
.contenedor-radio {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.logo-radio {
  max-width: 150px;
  border-radius: 12px;
}

.redes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 4px;
}

.redes img {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  transition: transform 0.2s ease;
}

.redes img:hover {
  transform: scale(1.1);
}

/* --- Información de la emisora --- */
.info {
  font-size: 18px;
  margin-top: 15px;
  color: #333;
}

/* --- Botón de reproducción de audio --- */
.btn-audio {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 8px 18px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 35px auto 10px;
}

.btn-audio.play svg {
  fill: #2ecc71;
}

.btn-audio.stop svg {
  fill: #e74c3c;
}

.btn-audio:hover {
  transform: scale(1.08);
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
}

.btn-audio svg {
  width: 28px;
  height: 28px;
  transition: transform 0.3s ease;
}

/* --- Botón de WhatsApp --- */
.btn-whatsapp {
  margin-top: 25px;
  padding: 10px 20px;
  background: #25d366;
  color: white;
  font-weight: bold;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.btn-whatsapp:hover {
  background: #1ebe5d;
}

audio {
  display: none;
}

/* --- Diseño responsivo para móviles --- */
@media screen and (max-width: 480px) {
  body {
    padding-top: 60px;
    font-size: 16px;
  }

  header img {
    height: 60px;
  }

  .radio-box {
    padding: 20px;
    margin: 16px;
    border-radius: 12px;
  }

  .contenedor-radio {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .logo-radio {
    max-width: 160px;
  }

  .redes {
    flex-direction: row;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
  }

  .redes img {
    width: 28px;
    height: 28px;
  }

  .btn-whatsapp {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }

  .info {
    font-size: 18px;
  }

  .btn-audio {
    width: 65px;
    height: 65px;
  }

  .btn-audio svg {
    width: 32px;
    height: 32px;
  }
}
