/* ==================================================
RESET GENERAL
================================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==================================================
BODY
================================================== */
body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;

  background-image: url("/img/fondo.webp");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-color: #000;
}

/* ==================================================
HEADER
================================================== */
.top-bar {
  background: rgba(0, 0, 130, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 40px;
  color: white;
  backdrop-filter: blur(6px); /* 🔥 PRO */
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo img {
  height: 70px;
}

.logo span {
  font-size: 26px;
  font-weight: bold;
  letter-spacing: 2px;
}

/* ==================================================
BOTONES DE NAVEGACIÓN
================================================== */
.menu {
  display: flex;
  gap: 25px;
}

.menu a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  padding: 8px 18px;
  border: 2px solid white;
  border-radius: 25px;
  transition: all .3s ease;
}

.menu a:hover {
  background: white;
  color: #000082;
  transform: translateY(-2px); /* 🔥 PRO */
}

.menu .dot {
  width: 8px;
  height: 8px;
  background: #ff007f;
  border-radius: 50%;
  display: inline-block;
  margin-left: 6px;
}

/* ==================================================
MARCA DATAJHIN
================================================== */
.datajhin-sign {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 2500;

  display: flex;
  flex-direction: column;
  align-items: flex-start;

  font-size: 12px;
  color: rgba(255,255,255,0.6);

  transition: all 0.3s ease;
}

.datajhin-sign span {
  font-size: 10px;
  opacity: 0.6;
}

.datajhin-sign a {
  text-decoration: none;
  color: white;
  font-weight: bold;
  letter-spacing: 1px;
}

.datajhin-sign a:hover {
  color: #ff007f;
}

/* ==================================================
ICONOS SOCIALES (🔥 ARREGLADO)
================================================== */
.social-icons {
  display: flex;
  gap: 15px;
  font-size: 22px;

  background: rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: 30px;

  border: 2px solid white; /* 🔥 SOLUCIÓN */
  transition: all 0.3s ease;
}

.social-icons:hover {
  background: white;
  color: #000082;
}

.social-icons a {
  text-decoration: none;
  color: inherit;
}

.social-icons i {
  cursor: pointer;
  transition: all .3s ease;
}

.social-icons i:hover {
  color: #ff007f;
  transform: scale(1.2); /* 🔥 PRO */
}

/* ==================================================
HERO PRINCIPAL
================================================== */
.hero {
  display: flex;
  justify-content: space-around;
  align-items: center;
  min-height: calc(100vh - 80px);
  text-align: center;
  position: relative;
}

.center-logo {
  font-size: 38px;
  font-weight: bold;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

/* ==================================================
REPRODUCTOR RADIO
================================================== */
.radio-player {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 40px;
}

.player-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  text-align: center;
  color: white;
}

#play-btn {
  background: transparent;
  border: none;
  cursor: pointer;
}

#play-icon {
  width: 0;
  height: 0;
  border-left: 40px solid #ffffff;
  border-top: 24px solid transparent;
  border-bottom: 24px solid transparent;
}

.playing #play-icon {
  width: 40px;
  height: 40px;
  border: none;
  background: linear-gradient(
    to right,
    #ffffff 45%,
    transparent 45%,
    transparent 55%,
    #ffffff 55%
  );
}

/* ==================================================
SONIDO
================================================== */
.sound-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 25px;
}

.bar {
  width: 4px;
  height: 10px;
  background: white;
  animation: sound 1s infinite ease-in-out;
}

.bar:nth-child(2) { animation-delay: 0.2s; }
.bar:nth-child(3) { animation-delay: 0.4s; }
.bar:nth-child(4) { animation-delay: 0.6s; }

@keyframes sound {
  0% { height: 6px }
  50% { height: 25px }
  100% { height: 6px }
}

/* ==================================================
WHATSAPP PRO
================================================== */
.whatsapp-support {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 3000;

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 12px 18px;

  background: #25D366;
  color: white;

  border-radius: 30px;
  text-decoration: none;

  font-weight: bold;
  font-size: 14px;

  box-shadow: 0 5px 20px rgba(0,0,0,0.4);

  animation: pulse 2s infinite;
  transition: all 0.3s ease;
}

.whatsapp-support:hover {
  transform: scale(1.1);
  background: #1ebe5d;
}

/* ==================================================
MODAL
================================================== */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  inset: 0;
  background: rgba(0,0,0,0.7);

  justify-content: center;
  align-items: center;
  padding: 15px;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: rgba(0, 0, 130, 0.95);
  padding: 25px;
  border-radius: 15px;

  width: 100%;
  max-width: 500px;

  color: white;
  text-align: center;

  box-shadow: 0 10px 25px rgba(0,0,0,0.6);
  position: relative;
}

#twitchModal .modal-content {
  max-width: 900px;
}

/* ==================================================
CERRAR
================================================== */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;

  font-size: 28px;
  color: white;
  cursor: pointer;

  background: rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 40px;
  height: 40px;

  display: flex;
  align-items: center;
  justify-content: center;

  transition: all 0.3s ease;
}

.modal-close:hover {
  background: #ff007f;
  transform: rotate(90deg);
}

/* ==================================================
RESPONSIVE
================================================== */
@media (max-width: 768px) {
  .top-bar {
    flex-direction: column;
    gap: 15px;
  }

  .hero {
    flex-direction: column;
    gap: 40px;
    min-height: auto;
    padding: 40px 0;
  }

  .center-logo {
    font-size: 28px;
  }

  .logo img {
    height: 60px;
  }

  .modal-content {
    padding: 20px;
  }
}