/* ═══════════════════════════════════════════
 * BOTÓN APAGAR TORMENTA + SPOTIFY STICKY
 * Símbolo: gota con rayo dentro · tachada cuando muteado
 * ═══════════════════════════════════════════ */

.boton-audio {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 60;
  width: 44px;
  height: 44px;
  background: rgba(7, 12, 24, 0.78);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(244, 200, 122, 0.4);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0;
  transition: all 0.35s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  animation: boton-audio-pulso 3s ease-in-out infinite;
  opacity: 0.72;
}

@keyframes boton-audio-pulso {
  0%, 100% { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 0 rgba(244, 200, 122, 0.4); }
  50%      { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 0 12px rgba(244, 200, 122, 0); }
}

.boton-audio:hover {
  transform: scale(1.08);
  border-color: var(--oro-vivo);
}

.icono-tormenta {
  width: 22px;
  height: 22px;
}

.icono-tormenta .gota {
  fill: none;
  stroke: var(--oro-vivo);
  stroke-width: 1.8;
  stroke-linejoin: round;
  transition: stroke 0.3s ease;
}

.icono-tormenta .rayito {
  fill: var(--oro-vivo);
  transition: fill 0.3s ease;
}

.icono-tormenta .tacha {
  stroke: #ff6868;
  stroke-width: 2.2;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.boton-audio.muteado {
  animation: none;
  border-color: rgba(255, 104, 104, 0.6);
}

.boton-audio.muteado .gota,
.boton-audio.muteado .rayito {
  opacity: 0.35;
}

.boton-audio.muteado .tacha {
  opacity: 1;
}

.boton-audio-txt {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--fuente-titulo);
  font-size: 0.55rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--oro-foil);
  opacity: 0.7;
  white-space: nowrap;
  pointer-events: none;
}

/* ═══ Spotify sticky · v13.8 colapsable + lazy iframe ═══ */
.spotify-marco-sticky {
  position: fixed;
  top: 76px;
  right: 12px;
  z-index: 55;
  width: 200px;
  background: rgba(7, 12, 24, 0.62);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 165, 116, 0.22);
  border-radius: 10px;
  padding: 4px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55);
  opacity: 0.42;
  transition: all 0.4s ease;
  overflow: hidden;
}

.spotify-marco-sticky:hover { opacity: 0.85; }

.spotify-marco-sticky iframe {
  border-radius: 8px;
  display: block;
}

.spotify-marco-sticky .sp-toggle {
  display: none;
  width: 36px;
  height: 36px;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--oro-vivo);
  font-size: 1.2rem;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.spotify-marco-sticky.colapsada {
  width: 44px;
  height: 44px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.72;
  border-radius: 50%;
}
.spotify-marco-sticky.colapsada .sp-toggle { display: inline-flex; }
.spotify-marco-sticky.colapsada .sp-slot { display: none; }
.spotify-marco-sticky.colapsada::before { display: none; }

.spotify-marco-sticky:not(.colapsada)::before {
  content: '♪ Encienda el sonido y baje al Faro';
  display: block;
  font-family: var(--fuente-editorial);
  font-style: italic;
  font-size: 0.65rem;
  color: var(--oro-foil);
  text-align: center;
  padding: 4px 0 6px;
  letter-spacing: 1px;
}

/* ═══ Mobile ═══ */
@media (max-width: 760px) {
  .boton-audio {
    top: 10px;
    right: 10px;
    width: 48px;
    height: 48px;
  }
  .icono-tormenta { width: 26px; height: 26px; }
  .boton-audio-txt { display: none; }

  .spotify-marco-sticky {
    top: 60px;
    right: 6px;
    width: 160px;
    padding: 3px;
  }
  .spotify-marco-sticky::before {
    font-size: 0.5rem;
    padding: 2px 0 3px;
  }
  .spotify-marco-sticky iframe {
    height: 72px !important;
  }
}

/* ═══════════════════════════════════════════
 * v13.7 · BOTÓN CORAZÓN "ESCUCHE" prioritario top-izq
 * activa lluvia + truenos + drone con un click visible
 * ═══════════════════════════════════════════ */
.faro-escuche {
  position: fixed;
  top: 78px;
  left: 14px;
  z-index: 70;
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(13, 20, 36, 0.92), rgba(7, 12, 24, 0.92));
  backdrop-filter: blur(14px);
  border: 1.5px solid rgba(244, 200, 122, 0.6);
  border-radius: 999px;
  padding: 9px 16px 9px 11px;
  cursor: pointer;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.55), 0 0 24px rgba(244, 200, 122, 0.18);
  transition: all 0.4s ease;
  font-family: var(--fuente-titulo);
}
.faro-escuche.compacta {
  opacity: 0.55;
  padding: 8px;
  gap: 0;
}
.faro-escuche.compacta .faro-escuche-texto { display: none; }
.faro-escuche:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--oro-vivo);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.7), 0 0 36px rgba(244, 200, 122, 0.4);
}
.faro-escuche.activado {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-10px);
}
.faro-corazon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  animation: faro-corazon-late 1.4s ease-in-out infinite;
}
.faro-corazon path {
  fill: var(--oro-vivo);
  filter: drop-shadow(0 0 8px var(--oro-vivo));
}
@keyframes faro-corazon-late {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.18); }
}
.faro-escuche-texto {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}
.faro-escuche-titulo {
  font-size: 0.78rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--oro-vivo);
  font-weight: 700;
}
.faro-escuche-bajada {
  font-size: 0.62rem;
  letter-spacing: 1.5px;
  color: var(--crema-suave);
  text-transform: none;
  font-style: italic;
  font-family: var(--fuente-editorial);
}

@media (max-width: 760px) {
  .faro-escuche {
    top: 70px;
    left: 10px;
    padding: 10px 18px 10px 12px;
    gap: 10px;
  }
  .faro-corazon { width: 28px; height: 28px; }
  .faro-escuche-titulo { font-size: 0.7rem; letter-spacing: 2px; }
  .faro-escuche-bajada { font-size: 0.56rem; }
}
