/* Compra y confirmación de pedidos */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgb(28 20 35 / 52%);
  backdrop-filter: blur(5px);
}
.modal-backdrop[hidden] { display: none; }
.order-modal {
  position: relative;
  width: min(100%, 480px);
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgb(30 20 40 / 24%);
  animation: modal-in .2s ease-out;
}
@keyframes modal-in {
  from { opacity: 0; transform: translateY(10px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.close-button {
  position: absolute;
  top: 14px;
  right: 15px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #f5f2f7;
  color: var(--muted);
  font-size: 24px;
}
.close-button:hover { background: var(--purple-pale); color: var(--purple); }
.order-modal h2 { margin: 6px 32px 8px 0; font-size: 26px; letter-spacing: -.8px; }
.reservation-codes { display: flex; flex-wrap: wrap; gap: 7px; margin: 12px 0 17px; }
.reservation-code { padding: 7px 9px; border: 1px solid #e8d9f0; border-radius: 8px; background: var(--purple-pale); color: var(--purple-dark); font: 700 11px/1.2 "DM Sans", sans-serif; letter-spacing: .25px; }
.modal-lead { margin-bottom: 18px; color: var(--muted); font-size: 13px; line-height: 1.6; }
.chosen-summary { display: grid; justify-items: start; gap: 5px; margin: 0 0 20px; padding: 13px 15px; border: 1px solid #eee5f2; border-radius: 12px; background: #fbf8fd; color: #574666; font-size: 12px; line-height: 1.6; }
.order-modal label { display: block; margin: 15px 0 7px; color: var(--ink); font-size: 12px; font-weight: 700; }
.order-modal input { width: 100%; min-height: 45px; padding: 0 13px; border: 1px solid #dfd2e4; border-radius: 10px; outline: none; color: var(--ink); }
.order-modal input:focus { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-glow); }
.modal-submit { width: 100%; margin-top: 21px; }
.privacy-note { margin: 13px 0 0; color: #8b8792; font-size: 10px; text-align: center; }
.success-icon { display: grid; width: 45px; height: 45px; margin-bottom: 16px; place-items: center; border-radius: 50%; background: #e6f7ef; color: #16835d; font-size: 23px; font-weight: 800; }
.payment-card { display: grid; justify-items: center; gap: 7px; margin: 18px 0; padding: 18px; border: 1px solid #eee5f2; border-radius: 14px; background: #fcfaff; }
.payment-card > span { color: var(--muted); font-size: 11px; }
.payment-card > strong { color: var(--purple); font: 700 25px Manrope, sans-serif; }
.yape-qr-frame { width: min(100%, 250px); margin: 12px 0 0; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: white; text-align: center; }
.yape-qr-frame img { display: block; width: 100%; height: auto; }
.yape-qr-frame figcaption { margin-top: 8px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.yape-number { margin: 10px 0 0; padding: 9px 13px; border-radius: 9px; background: #f4eef9; color: var(--purple-dark); font-size: 13px; font-weight: 700; letter-spacing: .3px; }
.yape-number[hidden] { display: none; }
.pending-note { display: flex; gap: 10px; padding: 12px; border-radius: 11px; background: #fff8e9; color: #785b20; }
.pending-note p { margin: 0; font-size: 11px; line-height: 1.55; }
.secondary-button { width: 100%; min-height: 43px; margin-top: 18px; border: 1px solid #ded1e2; border-radius: 10px; background: white; color: var(--purple); font-size: 12px; font-weight: 700; }
.secondary-button:hover { background: var(--purple-pale); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 30; max-width: min(420px, calc(100vw - 32px)); padding: 13px 17px; border-radius: 11px; background: #302037; color: #fff; font-size: 12px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: .2s; }
.toast.is-visible { opacity: 1; transform: translateY(0); }
.field-error { display: flex; align-items: center; gap: 4px; margin: 5px 0 0; color: #c0324f; font-size: 11px; font-weight: 600; }
.field-error::before { content: '⚠'; font-size: 10px; }
.order-modal input.input-error { border-color: #e05570; box-shadow: 0 0 0 3px #e0557018; }
.modal-open { overflow: hidden; }

@media (max-width: 560px) {
  .modal-backdrop { padding: 12px; }
  .order-modal { width: min(100%, 440px); max-height: calc(100dvh - 24px); padding: 27px 20px 22px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .order-modal { animation: none; }
  .toast { transition: none; }
}
