/* ═══════════════════════════════════════════════════════
   NHOA NAVAS — Audio Ambiental
   Archivo: /assets/css/nhoa-audio.css
   La barra vive EN EL FLUJO del documento (no fixed):
   ocupa su propio espacio encima del header y no lo tapa.
═══════════════════════════════════════════════════════ */

/* ─── BARRA ─── */
#nn-audio-bar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 9px 32px;
  background: #2E2822;
  border-bottom: 0.5px solid rgba(230, 221, 212, 0.07);
  box-sizing: border-box;
  z-index: 10;
}

/* Play / Pause */
#nn-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 0.5px solid rgba(230, 221, 212, 0.25);
  background: none;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
  transition: border-color .3s, background .3s;
}
#nn-play-btn:hover {
  border-color: rgba(230, 221, 212, 0.6);
  background: rgba(230, 221, 212, 0.05);
}
.nn-icon-play {
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 4px 0 4px 7px;
  border-color: transparent transparent transparent #E6DDD4;
  margin-left: 2px;
}
.nn-icon-pause {
  display: flex;
  gap: 2.5px;
  align-items: center;
}
.nn-icon-pause span {
  display: block;
  width: 1.5px;
  height: 8px;
  background: #E6DDD4;
  border-radius: 1px;
}

/* Visualizer */
.nn-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 13px;
  flex-shrink: 0;
}
.nn-bar {
  width: 1.5px;
  border-radius: 2px;
  background: #E6DDD4;
  height: 3px;
  opacity: .18;
  transform-origin: bottom;
}
#nn-audio-bar.playing .nn-bar:nth-child(1) { animation: nnB 1.05s ease-in-out infinite 0s;   opacity:.7; }
#nn-audio-bar.playing .nn-bar:nth-child(2) { animation: nnB 0.85s ease-in-out infinite .14s; opacity:.7; }
#nn-audio-bar.playing .nn-bar:nth-child(3) { animation: nnB 1.30s ease-in-out infinite .28s; opacity:.7; }
#nn-audio-bar.playing .nn-bar:nth-child(4) { animation: nnB 0.95s ease-in-out infinite .06s; opacity:.7; }
#nn-audio-bar.playing .nn-bar:nth-child(5) { animation: nnB 1.15s ease-in-out infinite .20s; opacity:.7; }

@keyframes nnB {
  0%, 100% { height: 2px;  opacity: .15; }
  50%      { height: 12px; opacity: .65; }
}

.nn-sep {
  width: 0.5px;
  height: 10px;
  background: rgba(230, 221, 212, 0.12);
  flex-shrink: 0;
}

.nn-bar-text {
  font-family: "Switzer Variable", Arial, Helvetica, sans-serif;
  letter-spacing: 0.1px;
  text-transform: uppercase;
  font-size: 10px;
  font-weight: 300;
  color: rgba(230, 221, 212, 0.35);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  max-width: 0;
  opacity: 0;
  transition: max-width 1.4s cubic-bezier(.16,1,.3,1) .1s,
              opacity 1s ease .2s;
}
#nn-audio-bar.playing .nn-bar-text {
  max-width: 400px;
  opacity: 1;
}

@media (max-width: 600px) {
  #nn-audio-bar { padding: 8px 16px; gap: 12px; }
  .nn-bar-text  { font-size: 9px; }
}

/* ─── MINI BOTÓN FLOTANTE ─── */
#nn-audio-mini {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 99990;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-radius: 40px;
  background: rgba(46, 40, 34, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 0.5px solid rgba(230, 221, 212, 0.12);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .5s ease, transform .5s ease, border-color .3s;
}
#nn-audio-mini.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#nn-audio-mini:hover {
  border-color: rgba(230, 221, 212, 0.35);
}
#nn-audio-mini .nn-icon-play {
  border-width: 4px 0 4px 7px;
}
#nn-audio-mini .nn-icon-pause span {
  height: 8px;
}
.nn-mini-bars {
  display: flex;
  align-items: flex-end;
  gap: 2.5px;
  height: 12px;
}
.nn-mini-bars .nn-bar {
  width: 1.5px;
  height: 3px;
  opacity: .18;
}
#nn-audio-mini.playing .nn-mini-bars .nn-bar:nth-child(1) { animation: nnB 1.05s ease-in-out infinite 0s;   opacity:.7; }
#nn-audio-mini.playing .nn-mini-bars .nn-bar:nth-child(2) { animation: nnB 0.85s ease-in-out infinite .15s; opacity:.7; }
#nn-audio-mini.playing .nn-mini-bars .nn-bar:nth-child(3) { animation: nnB 1.25s ease-in-out infinite .30s; opacity:.7; }

@media (max-width: 600px) {
  #nn-audio-mini { bottom: 20px; right: 20px; padding: 10px 14px; }
}

/* ─── OVERLAY (solo home) ─── */
#nn-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999999;
  background: #2E2822;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity 1.2s ease, visibility 1.2s ease;
}
#nn-overlay.hide {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
/* Estado inicial oculto por JS si ya se entró en la sesión */
#nn-overlay.nn-skip {
  display: none;
}

.nn-ov-logo {
  margin-bottom: 40px;
  animation: nnOvFade 1.8s ease .2s both;
}
.nn-ov-logo img {
  height: 20px;
  width: auto;
  opacity: .75;
  filter: brightness(0) invert(1);
}

.nn-ov-sub {
  font-family: "Switzer Variable", Arial, Helvetica, sans-serif;
  letter-spacing: 0.1px;
  font-size: 15px;
  font-weight: 300;
  color: rgba(230, 221, 212, 0.45);
  text-align: center;
  margin: 0 0 56px;
  animation: nnOvFade 1.8s ease .5s both;
}

#nn-enter-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  animation: nnOvFade 1.8s ease .8s both;
}
#nn-enter-btn:hover .nn-enter-circle {
  border-color: rgba(230, 221, 212, 0.55);
  background: rgba(230, 221, 212, 0.04);
}
#nn-enter-btn:hover .nn-enter-text { opacity: .8; }

.nn-enter-circle {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0.5px solid rgba(230, 221, 212, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color .4s, background .4s;
}
.nn-enter-circle svg {
  width: 13px;
  height: 13px;
  fill: #E6DDD4;
  margin-left: 2px;
  opacity: .65;
}
.nn-enter-text {
  font-family: "Switzer Variable", Arial, Helvetica, sans-serif;
  letter-spacing: 0.1px;
  font-size: 11px;
  font-weight: 300;
  color: rgba(230, 221, 212, 0.35);
  transition: opacity .4s;
}

@keyframes nnOvFade {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}