#vapi-support-btn { display: none !important; }

/* el bloqueo de scroll sigue al estado real del modal — nunca depende de que
   el JS recuerde desactivarlo, así no puede quedarse "pegado" */
body:has(.voz-modal.is-open) { overflow: hidden; }

.voz-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-5);
  background: var(--shade-72);
  backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out-expo);
}
.voz-modal.is-open { opacity: 1; pointer-events: auto; }

.voz-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--ink-1);
  border: 1px solid var(--ink-3);
  border-radius: var(--r-card);
  padding: var(--space-7) var(--space-6) var(--space-6);
  text-align: center;
  transform: translateY(24px) scale(0.97);
  transition: transform var(--dur-base) var(--ease-out-expo);
  box-shadow: var(--shadow-pop);
}
.voz-modal.is-open .voz-dialog { transform: none; }

.voz-close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 34px; height: 34px;
  border-radius: 50%;
  color: var(--ink-4);
  font-size: var(--text-cap);
  display: flex; align-items: center; justify-content: center;
  transition: background var(--dur-fast), color var(--dur-fast);
}
.voz-close:hover { background: var(--ink-2); color: var(--white); }

.voz-dialog__eyebrow {
  display: block;
  font-size: var(--text-micro);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: var(--space-6);
}

.voz-orb {
  width: 88px; height: 88px;
  margin-inline: auto;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--lime);
  color: var(--ink-0);
  position: relative;
  margin-bottom: var(--space-5);
}
.voz-orb svg { width: 34px; height: 34px; position: relative; z-index: 2; }
.voz-orb::before, .voz-orb::after {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1.5px solid var(--lime-40);
  opacity: 0;
}
[data-state="connecting"] .voz-orb { animation: voz-pulse 1.4s ease-in-out infinite; }
[data-state="active"] .voz-orb.is-speaking::before { animation: voz-ring 1.1s ease-out infinite; opacity: 1; }
[data-state="active"] .voz-orb.is-speaking::after { animation: voz-ring 1.1s ease-out 0.35s infinite; opacity: 1; }
@keyframes voz-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(0.92); opacity: 0.75; } }
@keyframes voz-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.35); opacity: 0; }
}

.voz-dialog__state {
  font-size: var(--text-cap);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 6px;
  text-transform: capitalize;
}
.voz-dialog__timer { font-size: var(--text-micro); color: var(--ink-4); }

.voz-transcript {
  margin-top: var(--space-6);
  max-height: 160px;
  overflow-y: auto;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.voz-transcript:empty { display: none; }
.voz-transcript__line { font-size: var(--text-micro); line-height: var(--lh-normal); padding: 8px 12px; border-radius: var(--r-chip); max-width: 90%; }
.voz-transcript__line--bot { background: var(--ink-2); color: var(--ink-5); align-self: flex-start; }
.voz-transcript__line--user { background: var(--lime-14); color: var(--white); align-self: flex-end; }

.voz-dialog__actions {
  margin-top: var(--space-6);
  display: flex;
  gap: var(--space-3);
}
.voz-action { flex: 1; }
.voz-action--retry, .voz-action--end { display: none; }

[data-state="active"] .voz-action--end,
[data-state="connecting"] .voz-action--end { display: inline-flex; }
[data-state="ended"] .voz-action--retry,
[data-state="error"] .voz-action--retry { display: inline-flex; }
[data-state="ended"] .voz-action--end,
[data-state="error"] .voz-action--end { display: none; }

[data-state="error"] .voz-orb { background: var(--alert); }
[data-state="error"] .voz-dialog__state { color: var(--alert); }

.voz-dialog__note {
  margin-top: var(--space-5);
  font-size: var(--text-micro);
  color: var(--ink-4);
  letter-spacing: var(--track-normal);
}

@media (max-width: 480px) {
  .voz-dialog { padding: var(--space-6) var(--space-5) var(--space-5); }
}
