/* ═══════════════════════════════════════════════════════════
   PRIMMATE — booking-modal.css
   Overlay de espera + modal de éxito del flujo de reserva.
   Sigue el estilo premium del sitio; solo anima opacity y
   transform (60 fps). Compartido por UI v1 y v2.
═══════════════════════════════════════════════════════════ */

/* ── Overlay: "Confirmando tu reserva…" ────────────────────── */
.booking-wait {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.booking-wait.visible {
  opacity: 1;
  visibility: visible;
}

.booking-wait__box {
  text-align: center;
  padding: var(--space-8);
}

.booking-wait__spinner {
  display: inline-block;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(212, 118, 58, 0.2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: bookingSpin 0.9s linear infinite;
  margin-bottom: var(--space-6);
}

@keyframes bookingSpin {
  to { transform: rotate(360deg); }
}

.booking-wait__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  color: var(--text-primary);
  margin-bottom: var(--space-2);
}

.booking-wait__sub {
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

/* ── Modal: "¡Quedaste reservado!" ─────────────────────────── */
.booking-done {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-6);
  background: rgba(10, 10, 10, 0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: bookingDoneFade 0.35s ease both;
  transition: opacity 0.25s ease;
}

.booking-done.closing { opacity: 0; pointer-events: none; }

@keyframes bookingDoneFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.booking-done__card {
  width: 100%;
  max-width: 420px;
  text-align: center;
  background: #141414;
  border: 1px solid var(--gold-border);
  border-radius: 16px;
  padding: var(--space-12) var(--space-8);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  animation: bookingDoneRise 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.05s both;
}

@keyframes bookingDoneRise {
  from { opacity: 0; transform: translateY(14px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.booking-done__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--gold);
  background: var(--gold-subtle);
  border: 1px solid var(--gold-border);
  margin-bottom: var(--space-6);
}

.booking-done__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  color: var(--text-primary);
  margin-bottom: var(--space-3);
}

.booking-done__date {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  letter-spacing: 2px;
  color: var(--gold);
  margin-bottom: var(--space-6);
}

.booking-done__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-8);
}

.booking-done__email {
  color: var(--text-primary);
  word-break: break-all;
}

.booking-done__btn {
  width: 100%;
  max-width: 260px;
  justify-content: center;
}

/* Mobile chico: card más compacta */
@media (max-width: 480px) {
  .booking-done__card { padding: var(--space-8) var(--space-6); }
}

/* ── Accesibilidad ─────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .booking-done,
  .booking-done__card { animation: none; }
}
