:root {
  --neon: #38bdf8;
}

body {
  margin: 0;
  background: radial-gradient(circle, #020617, #000);
  font-family: 'Orbitron', sans-serif;
  color: var(--neon);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.app {
  max-width: 420px;
  margin: auto;
  width: 100%;
  padding: 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* LOGO */
.app-logo {
  text-align: center;
  margin-bottom: 10px;
}

.app-logo img {
  filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.6));
}

/* PANTALLA */
.screen {
  background: #001100;
  border: 2px solid #0f0;
  border-radius: 15px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 0 30px #0f0 inset;
}

.screen h1 {
  margin: 0;
}

.screen p {
  margin: 5px 0;
}

/* ECUALIZADOR */
#eqCanvas {
  width: 100%;
  height: 80px;
  margin-top: 10px;
  background: black;
  border-radius: 10px;
}

/* AUDIO */
audio {
  width: 100%;
  margin-top: 10px;
}

/* BOTONES */
.controls {
  display: flex;
  justify-content: space-around;
  margin-top: 20px;
}

button {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  font-size: 24px;
  background: #111;
  color: var(--neon);
  box-shadow: 0 0 15px #0f0;
  transition: 0.15s;
  cursor: pointer;
}

button:active {
  transform: scale(0.9);
  box-shadow: 0 0 30px #0f0 inset;
}

.btnText {
  font-size: 10px;
  margin-top: 4px;
  opacity: 0.8;
}

/* SLIDER */
.sliderBox {
  margin-top: 20px;
  text-align: center;
  color: var(--neon);
}

input[type=range] {
  width: 100%;
  accent-color: #0f0;
}

/* LUCES */
.lights {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.lights span {
  width: 12px;
  height: 12px;
  background: #022;
  border-radius: 50%;
}

.lights.active span {
  animation: blink 0.5s infinite alternate;
}

/* DESCARGA */
#download {
  display: block;
  margin-top: 20px;
  text-align: center;
  color: #00ffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 0.3s ease;
}

#download:hover {
  color: #fff;
  text-shadow: 0 0 20px #0ff;
}

/* FOOTER MARCA */
.brand-footer {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(56, 189, 248, 0.15);
}

.brand-footer p {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.35);
  margin: 0;
}

.brand-footer a {
  color: var(--neon);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.brand-footer a:hover {
  color: #fff;
}

/* ===== ANIMACIÓN NEÓN ===== */
@keyframes neon {
  0% {
    box-shadow: 0 0 14px #38bdf8;
    border-color: #38bdf8;
  }
  20% {
    box-shadow: 0 0 14px #a78bfa;
    border-color: #a78bfa;
  }
  40% {
    box-shadow: 0 0 14px #fb7185;
    border-color: #fb7185;
  }
  60% {
    box-shadow: 0 0 14px #fbbf24;
    border-color: #fbbf24;
  }
  80% {
    box-shadow: 0 0 14px #22d3ee;
    border-color: #22d3ee;
  }
  100% {
    box-shadow: 0 0 14px #38bdf8;
    border-color: #38bdf8;
  }
}

.screen,
button,
#eqCanvas {
  animation: neon 6s infinite linear;
  border: 2px solid #38bdf8;
}

button {
  animation: neon 6s infinite linear;
  border: 2px solid #0f0;
}

@keyframes blink {
  0% { opacity: 0.2; }
  100% { opacity: 1; }
}