/* Modal común de las invitaciones (confirmación, mapas, canciones, álbum, regalos…).
   Reemplaza a los de Bootstrap y Fancybox: uno solo, liviano, claro y despegado del fondo. */
.ai-modal { border: 0; padding: 0; background: transparent; width: min(520px, calc(100vw - 24px)); max-width: none; max-height: calc(100dvh - 32px); overflow: visible; color: #222; }
.ai-modal::backdrop { background: rgba(28, 30, 29, .42); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.ai-modal[open] { animation: ai-modal-entrar .24s ease-out; }
.ai-modal[open]::backdrop { animation: ai-modal-fondo .24s ease-out; }
@keyframes ai-modal-entrar { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes ai-modal-fondo { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .ai-modal[open], .ai-modal[open]::backdrop { animation: none; } }
.ai-modal-tarjeta { position: relative; background: #fff; border-radius: 20px; box-shadow: 0 24px 64px rgba(0, 0, 0, .28); max-height: calc(100dvh - 32px); overflow: auto; overscroll-behavior: contain; padding: 30px 22px 24px; }
.ai-modal-cerrar { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); color: #333; display: grid; place-items: center; cursor: pointer; font-size: 18px; line-height: 1; }
.ai-modal-cerrar:hover, .ai-modal-cerrar:focus-visible { background: rgba(0, 0, 0, .12); outline: none; }
.ai-modal-cuerpo > * { display: block !important; padding: 0 !important; margin: 0 !important; max-width: none !important; }
.ai-modal .modal-content { border: 0; box-shadow: none; background: transparent; }
.ai-modal .modal-header .close { display: none; }
.ai-modal iframe { max-width: 100%; }
/* Los botones "Cerrar" viejos sobran: está la ✕ arriba */
.ai-modal [data-fancybox-close], .ai-modal [data-dismiss="modal"].btn-block { display: none !important; }
.ai-modal-abierto { overflow: hidden; }

/* ── Confirmación por pasos ── */
#rsvp-form { font-family: inherit; }
.rp-puntos { display: flex; justify-content: center; gap: 6px; margin: 20px 0 2px; }
.rp-puntos span { width: 7px; height: 7px; border-radius: 50%; background: rgba(0, 0, 0, .14); transition: background .2s, transform .2s; }
.rp-puntos span.hecho { background: rgba(0, 0, 0, .38); }
.rp-puntos span.activo { background: #333; transform: scale(1.3); }
.rp-paso { display: grid; gap: 12px; animation: rp-entrar .22s ease-out; }
@keyframes rp-entrar { from { opacity: 0; transform: translateX(10px); } }
.rp-hola { text-align: center; font-size: 1.25rem; font-weight: 600; margin: 0; }
.rp-datos span { display: block; }
.rp-datos { text-align: center; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .7; margin: 2px 0 0; }
.rp-pregunta { text-align: center; font-size: 1.15rem; font-weight: 600; margin: 4px 0 2px; color: #222; }
.rp-ayuda { text-align: center; font-size: .88rem; color: #666; margin: -6px 0 0; }
.rp-opciones { display: grid; gap: 8px; }
.rp-opcion { border: 1.5px solid rgba(0, 0, 0, .18); background: #fff; color: #222; border-radius: 14px; padding: 13px 16px; font: inherit; font-size: 1rem; cursor: pointer; text-align: center; transition: border-color .15s, background .15s; }
.rp-opcion:hover, .rp-opcion:focus-visible { border-color: #333; outline: none; }
.rp-opcion.elegida { border-color: #222; background: #222; color: #fff; }
.rp-input { width: 100%; border: 1.5px solid rgba(0, 0, 0, .18); border-radius: 12px; padding: 12px 14px; font: inherit; font-size: 16px; background: #fff; color: #222; box-sizing: border-box; }
.rp-input:focus { outline: none; border-color: #333; }
.rp-input[hidden], .rp-acomp[hidden], .rp-ayuda[hidden], .rp-error[hidden] { display: none !important; }
.rp-acomp { display: grid; gap: 8px; }
.rp-mensaje { min-height: 110px; resize: vertical; }
.rp-error { color: #b3261e; text-align: center; font-size: .9rem; margin: 0; }
.rp-nav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 18px; }
.rp-atras { border: 0; background: none; color: #555; font: inherit; cursor: pointer; padding: 8px 4px; }
.rp-siguiente, .rp-enviar { border: 0; border-radius: 999px; background: #222; color: #fff; font: inherit; font-weight: 600; letter-spacing: .04em; padding: 12px 26px; cursor: pointer; }
.rp-enviar { text-transform: uppercase; min-width: 140px; }
.rp-siguiente:disabled, .rp-enviar:disabled { opacity: .55; cursor: default; }
.rp-listo { text-align: center; padding: 10px 0; }
.rp-listo p { font-size: 1.1rem; margin: 0; }
.rp-listo .rp-listo-icono { font-size: 2.6rem; margin-bottom: 6px; }
/* La animación de Fancybox dejaba los textos transparentes: en el modal nuevo se ven siempre */
.ai-modal .animated-modal, .ai-modal .animated-modal h1, .ai-modal .animated-modal h2, .ai-modal .animated-modal h3, .ai-modal .animated-modal p { opacity: 1 !important; transform: none !important; }

/* Familia o grupo: cada integrante dice si va */
.rp-familia { display: grid; gap: 10px; margin-top: 4px; }
.rp-integrante { display: grid; gap: 6px; }
.rp-integrante > span { font-weight: 600; text-align: center; }
.rp-integrante .rp-opciones { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.rp-integrante .rp-opcion { padding: 10px 8px; margin: 0; }
/* Ya respondió: lo que dijo y el botón para cambiarlo */
.rp-resumen .rp-respuesta { border: 2px dashed #dee2e6; border-radius: 24px; padding: 12px 16px; margin: 4px 0 16px; text-align: center; }
.rp-resumen .rp-respuesta p { margin: 2px 0; }
.rp-resumen .rp-cambiar { display: block; margin: 12px auto 0; }
.rp-resumen .rp-opcion { display: block; width: 100%; margin-bottom: 4px; }
/* Pase de entrada */
.rp-qr { display: flex; justify-content: center; margin: 12px 0 6px; min-height: 220px; align-items: center; }
.rp-qr svg { width: 220px; height: 220px; max-width: 100%; border-radius: 12px; }
.rp-pase .rp-atras { display: inline-block; margin-top: 8px; }
.rp-listo .rp-datos { font-size: .78rem; margin-bottom: 8px; }
