/* ── PANTALLA DE CARGA ── */
#loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

#loader.hidden {
  opacity: 0;
  visibility: hidden;
}

/* ── CONTENEDOR CENTRAL ── */
.loader-scene {
  position: relative;
  width: 600px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── CÍRCULO BLANCO CON BORDE ── */
.logo-circle {
  position: relative;
  z-index: 2;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 3px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 25px rgba(0, 164, 228, 0.25), inset 0 0 15px rgba(0, 164, 228, 0.05);
  animation: pulse-circle 2s infinite ease-in-out;
}

/* ── LOGO PNG DENTRO DEL CÍRCULO ── */
.logo-loader-img {
  width: 125px;
  height: auto;
  object-fit: contain;
  animation: pulse-logo 2s infinite ease-in-out;
}

@keyframes pulse-circle {
  0%, 100% {
    box-shadow: 0 0 25px rgba(0, 164, 228, 0.25), inset 0 0 15px rgba(0, 164, 228, 0.05);
    border-color: var(--color-accent);
  }
  50% {
    box-shadow: 0 0 40px rgba(0, 164, 228, 0.45), inset 0 0 25px rgba(0, 164, 228, 0.15);
    border-color: var(--color-primary-light);
  }
}

@keyframes pulse-logo {
  0%, 100% {
    transform: scale(1);
    filter: drop-shadow(0 2px 5px rgba(0, 75, 135, 0.05));
  }
  50% {
    transform: scale(1.04);
    filter: drop-shadow(0 4px 15px rgba(0, 164, 228, 0.2));
  }
}

/* ── CANVAS DE LA ONDA (ocupa toda la escena) ── */
#waveCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
