/* voice_intro.css — Modal estilo iOS para activar modo voz */

.voice-intro-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0px);
  -webkit-backdrop-filter: blur(0px);
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}

.voice-intro-overlay.is-visible {
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  pointer-events: auto;
}

/* Sheet con el mismo look que .dir-card-v2 / .inventory-public-card:
 * tokens tema-aware, border-radius 1.25rem, shadow sutil en light y
 * glass en dark, hover con glow azul apple. */
.voice-intro-sheet {
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  width: 100%;
  max-width: 440px;
  border: 1px solid transparent;
  border-radius: 1.25rem 1.25rem 0 0;
  padding: 1rem 1.5rem 2rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06),
              0 -12px 40px rgba(0, 0, 0, 0.06);
  transform: translateY(100%);
  transition: transform 0.42s cubic-bezier(0.32, 0.72, 0, 1),
              box-shadow 0.3s ease;
  font-family: "Geist", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  margin: 0 0.75rem;
  margin-bottom: 0;
}

/* Glow azul apple al hacer hover sobre el sheet — coherente con
 * /directorio, /repuestos y el plan destacado de /precios. */
.voice-intro-sheet:hover {
  box-shadow: 0 18px 52px rgba(0, 122, 255, 0.3);
}

@media (min-width: 768px) {
  .voice-intro-overlay {
    align-items: center;
  }
  .voice-intro-sheet {
    border-radius: 1.25rem;
    margin-bottom: 0;
  }
}

[data-bs-theme="dark"] .voice-intro-sheet {
  background: #1c1c1e;
  border-color: #2c2c2e;
  color: var(--bs-body-color);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
}
[data-bs-theme="dark"] .voice-intro-sheet:hover {
  box-shadow: 0 18px 52px rgba(0, 122, 255, 0.45);
}

.voice-intro-overlay.is-visible .voice-intro-sheet {
  transform: translateY(0);
}

.voice-intro-handle {
  width: 40px;
  height: 5px;
  background: #c4c4c4;
  border-radius: 3px;
  margin: 0 auto 1.5rem;
}

[data-bs-theme="dark"] .voice-intro-handle {
  background: #4a4a4c;
}

.voice-intro-icon {
  text-align: center;
  margin-bottom: 1rem;
}

.voice-intro-icon i {
  font-size: 3.5rem;
  color: #007aff;
  display: inline-block;
  padding: 0.75rem;
  background: rgba(0, 122, 255, 0.12);
  border-radius: 50%;
  width: 80px;
  height: 80px;
  line-height: 1;
}

.voice-intro-title {
  font-size: 1.35rem;
  font-weight: 700;
  text-align: center;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}

.voice-intro-subtitle {
  text-align: center;
  color: #6c6c70;
  font-size: 0.95rem;
  line-height: 1.45;
  margin: 0 0 1.75rem;
}

[data-bs-theme="dark"] .voice-intro-subtitle {
  color: #aeaeb2;
}

.voice-intro-btn {
  display: block;
  width: 100%;
  padding: 1rem 1.25rem;
  margin-bottom: 0.6rem;
  border: none;
  border-radius: var(--bs-border-radius-pill) !important;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s ease;
  font-family: inherit;
  box-shadow: 0 0 0 rgba(0, 122, 255, 0);
}

.voice-intro-btn:active {
  transform: scale(0.98);
}

.voice-intro-btn-primary {
  background: #007aff;
  color: white;
  border: 1px solid #007aff;
}

.voice-intro-btn-primary:hover {
  background: #0062cc;
  border-color: #0062cc;
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.45);
}

.voice-intro-btn-secondary {
  background: rgba(118, 118, 128, 0.12);
  color: #1c1c1e;
  border: 1px solid rgba(0, 0, 0, 0.12);
}

.voice-intro-btn-secondary:hover {
  background: rgba(118, 118, 128, 0.2);
  border-color: rgba(0, 0, 0, 0.18);
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.3);
}

[data-bs-theme="dark"] .voice-intro-btn-secondary {
  background: rgba(118, 118, 128, 0.24);
  color: #f2f2f7;
  border-color: rgba(255, 255, 255, 0.14);
}
[data-bs-theme="dark"] .voice-intro-btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.45);
}

.voice-intro-btn-ghost {
  background: transparent;
  color: #007aff;
  border: 1px solid rgba(0, 122, 255, 0.35);
  margin-bottom: 0;
}

.voice-intro-btn-ghost:hover {
  background: rgba(0, 122, 255, 0.08);
  border-color: rgba(0, 122, 255, 0.55);
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.3);
}
[data-bs-theme="dark"] .voice-intro-btn-ghost {
  color: #0a84ff;
  border-color: rgba(10, 132, 255, 0.45);
}
[data-bs-theme="dark"] .voice-intro-btn-ghost:hover {
  border-color: rgba(10, 132, 255, 0.7);
  box-shadow: 0 10px 28px rgba(0, 122, 255, 0.45);
}
