/* ─────────────────────────────────────────
   DEMO DE VOZ
   ───────────────────────────────────────── */

.voz {
  background: var(--texto);
  padding: 100px 6%;
  position: relative;
  overflow: hidden;
}

.voz-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: center;
}

/* ── Visual decorativo izquierdo ── */
.voz-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
}

.voz-mic {
  font-size: 4.5rem;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 0 24px rgba(240, 78, 78, 0.4));
  animation: micFloat 3s ease-in-out infinite;
}
@keyframes micFloat {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-8px); }
}

.voz-watermark {
  position: absolute;
  font-size: 9rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.025);
  letter-spacing: -3px;
  user-select: none;
  pointer-events: none;
}

/* Ondas de audio animadas */
.voz-ondas {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 60px;
  opacity: 0.35;
}
.voz-ondas span {
  display: block;
  width: 4px;
  border-radius: 2px;
  background: var(--rojo-vivo);
  animation: onda 1.2s ease-in-out infinite;
}
.voz-ondas span:nth-child(1)  { height: 16px; animation-delay: 0s; }
.voz-ondas span:nth-child(2)  { height: 32px; animation-delay: 0.1s; }
.voz-ondas span:nth-child(3)  { height: 48px; animation-delay: 0.2s; }
.voz-ondas span:nth-child(4)  { height: 36px; animation-delay: 0.3s; }
.voz-ondas span:nth-child(5)  { height: 56px; animation-delay: 0.1s; }
.voz-ondas span:nth-child(6)  { height: 44px; animation-delay: 0.2s; }
.voz-ondas span:nth-child(7)  { height: 60px; animation-delay: 0s; }
.voz-ondas span:nth-child(8)  { height: 44px; animation-delay: 0.15s; }
.voz-ondas span:nth-child(9)  { height: 52px; animation-delay: 0.25s; }
.voz-ondas span:nth-child(10) { height: 36px; animation-delay: 0.05s; }
.voz-ondas span:nth-child(11) { height: 24px; animation-delay: 0.1s; }
.voz-ondas span:nth-child(12) { height: 14px; animation-delay: 0.2s; }

/* Las ondas se activan solo cuando se reproduce */
.voz-ondas span {
  animation-play-state: paused;
}
.voz.reproduciendo .voz-ondas { opacity: 0.7; }
.voz.reproduciendo .voz-ondas span {
  animation-play-state: running;
}

@keyframes onda {
  0%, 100% { transform: scaleY(0.4); }
  50%       { transform: scaleY(1); }
}

/* ── Contenido derecho ── */
.voz-contenido .eyebrow { color: rgba(255, 255, 255, 0.38); }
.voz-contenido .eyebrow::after { background: rgba(255, 255, 255, 0.18); }
.voz-contenido h2.titulo { color: var(--blanco); }
.voz-contenido h2.titulo em { color: var(--rojo-vivo); }

.voz-desc {
  margin-top: 18px;
  font-size: 0.92rem;
  font-weight: 300;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.48);
  max-width: 420px;
}

/* ── Player ── */
.voz-player {
  margin-top: 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 24px;
  backdrop-filter: blur(8px);
}

.voz-player-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.voz-player-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gris-claro);
  flex-shrink: 0;
  transition: background 0.3s;
}
.voz.reproduciendo .voz-player-dot {
  background: var(--rojo-vivo);
  box-shadow: 0 0 8px rgba(255, 87, 87, 0.6);
  animation: pulso 1s ease-in-out infinite;
}
@keyframes pulso {
  0%, 100% { transform: scale(1); }
  50%       { transform: scale(1.3); }
}

.voz-player-titulo {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blanco);
}
.voz-player-duracion {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

/* Barra de progreso */
.voz-progress-wrap {
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  margin-bottom: 20px;
  cursor: pointer;
  overflow: hidden;
}
.voz-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--rojo-vivo);
  border-radius: 2px;
  transition: width 0.2s linear;
}

/* Controles */
.voz-controles {
  display: flex;
  align-items: center;
  gap: 16px;
}

.voz-btn-play {
  flex-shrink: 0;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: var(--rojo-vivo);
  color: var(--blanco);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(255, 87, 87, 0.35);
  transition: transform 0.15s, box-shadow 0.2s;
}
.voz-btn-play:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 20px rgba(255, 87, 87, 0.45);
}
.voz-btn-play svg { width: 22px; height: 22px; }

.voz-tracks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.voz-track {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: all 0.2s;
}
.voz-track:hover {
  border-color: rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.75);
}
.voz-track.activo-track {
  background: rgba(255, 87, 87, 0.15);
  border-color: var(--rojo-vivo);
  color: var(--rojo-vivo);
}

/* Aviso de próximamente */
.voz-soon {
  margin-top: 16px;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  gap: 6px;
}
.voz-soon a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.voz-soon a:hover { color: var(--rojo-vivo); }

/* Acciones */
.voz-acciones {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.btn-blanco-azul {
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--blanco);
  color: var(--azul);
  padding: 12px 24px;
  border-radius: 7px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  transition: box-shadow 0.2s, transform 0.15s;
}
.btn-blanco-azul:hover {
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
}

.voz-nota {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 300;
}

/* ── Responsive ── */
@media (max-width: 960px) {
  .voz-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .voz-visual { min-height: 200px; }
}
