* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: white;
  overflow-x: hidden;
  position: relative;
  height: 100vh;
  background: #1e003a;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('https://static.wixstatic.com/media/a59784_37feb1a82b6f4fd593bf3ab3105a1673~mv2.png') no-repeat center center;
  background-size: cover;
  z-index: -1;
  animation: sparkles 8s linear infinite;
}

@keyframes sparkles {
  0% { opacity: 1; }
  50% { opacity: 0.8; }
  100% { opacity: 1; }
}

.container {
  max-width: 400px;
  margin: 0 auto;
  padding: 20px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

/* Header centrado */
header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  margin-bottom: 20px;
}

.header-text {
  text-align: center;
}

.header-text p {
  font-size: 0.9rem;
  opacity: 0.8;
  letter-spacing: 0.5px;
}

.header-text h1 {
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 1px;
  text-shadow: 0 0 5px rgba(255,255,255,0.5);
}

.nav-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 20px;
  cursor: pointer;
  transition: transform 0.2s;
  color: white;
}

.nav-btn:hover {
  transform: scale(1.1);
  background: rgba(255,255,255,0.3);
}

/* Logo sin contorno, gira solo al reproducir */
.logo-container {
  width: 200px;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 20px 0;
}

#logo {
  width: 100%;
  height: auto;
  border-radius: 15px;
}

#logo.spinning {
  animation: spinScale 6s ease-in-out infinite;
}

@keyframes spinScale {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(10deg) scale(1.05); }
  100% { transform: rotate(0deg) scale(1); }
}

/* Slogan */
.slogan {
  text-align: center;
  margin: 20px 0;
  font-size: 1.4rem;
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* Botón de play (ahora con margen inferior para separar del volumen) */
.play-btn {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
  transition: transform 0.3s, box-shadow 0.3s;
  margin-bottom: 15px; /* ← clave: separa del volumen */
}

.play-btn svg {
  width: 40px;
  height: 40px;
  fill: #333;
}

.play-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(255,255,255,0.6);
}

/* Volumen */
.volume-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0 20px;
  width: 100%;
  justify-content: center;
}

.mute-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  transition: background 0.2s;
}

.mute-btn:hover {
  background: rgba(255,255,255,0.3);
}

.mute-btn svg {
  width: 20px;
  height: 20px;
  fill: white;
}

.volume-slider {
  -webkit-appearance: none;
  width: 120px;
  height: 6px;
  border-radius: 3px;
  background: rgba(255,255,255,0.2);
  outline: none;
}

.volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.volume-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: white;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

#volumePercent {
  font-size: 0.9rem;
  color: white;
  min-width: 40px;
  text-align: center;
}

/* Menú redes sociales */
.social-menu {
  position: absolute;
  top: 70px;
  right: 20px;
  background: rgba(20, 20, 40, 0.9);
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  display: none;
  z-index: 100;
  backdrop-filter: blur(5px);
}

.social-menu ul {
  list-style: none;
}

.social-menu li {
  margin: 10px 0;
}

.social-menu a {
  color: white;
  text-decoration: none;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  transition: background 0.2s;
}

.social-menu a:hover {
  background: rgba(255,255,255,0.1);
}

.social-menu svg {
  vertical-align: middle;
}

/* Banner instalación */
.install-banner {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 12px 20px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1000;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 300px;
  text-align: center;
}

.install-banner button {
  background: #ff00ff;
  color: white;
  border: none;
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  font-weight: bold;
}

.install-banner button#dismissBtn {
  background: #555;
}

/* Responsivo */
@media (max-width: 480px) {
  .container {
    padding: 10px;
  }

  .header-text h1 {
    font-size: 1.2rem;
  }

  .logo-container {
    width: 150px;
    height: 150px;
  }

  .slogan {
    font-size: 1.2rem;
  }

  .play-btn {
    width: 70px;
    height: 70px;
    margin-bottom: 12px;
  }

  .play-btn svg {
    width: 30px;
    height: 30px;
  }

  .volume-slider {
    width: 100px;
  }

  .social-menu {
    right: 10px;
    padding: 12px;
  }
}