/* ==========================================================================
   INVITATION.CSS - DISEÑO EDITORIAL FLORAL DE XV AÑOS (MIS XV AÑOS - XIMENA)
   PALETA PAPEL ACUARELA, ROSAS PASTEL, VERDE ESMERALDA Y DORADO
   ========================================================================== */

/* Marco Exterior y Contenedor Editorial tipo Pergamino/Tarjeta */
.main-invitation-container {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  background-color: var(--xv-paper);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  color: var(--xv-text-dark);
}

/* ==========================================================================
   ELEMENTOS DECORATIVOS FLORALES ESTÁTICOS (SIN TAPAR CONTENIDO)
   ========================================================================== */
/*
  Sistema unificado de flores laterales (flores_rosado_1/2/3.png):
  - Cada sección usa la MISMA imagen a la izquierda y a la derecha.
  - La copia derecha se refleja (scaleX(-1)) para que ambas apunten al centro.
  - Siempre pegadas al borde de la pantalla (aunque la sección tenga max-width).
  - Tamaño fluido: mínimo fijo en móvil, crece en pantallas grandes.
*/
.main-invitation-container {
  --xv-flower-size: clamp(6rem, 3.25rem + 9vw, 17rem);
  --xv-flower-bleed: 0.25rem;
  /* lo poco que sobresale del borde */
  --xv-section-space: clamp(3.5rem, 2.25rem + 5vw, 7.5rem);
}

.xv-floral-decor {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  animation: none !important;
  transition: none !important;
  opacity: 0.92;
}

.xv-side-flower {
  width: var(--xv-flower-size);
  height: auto;
}

/* Izquierda: arriba, apuntando hacia la derecha */
/* Derecha: abajo, girada 180° para apuntar hacia la izquierda */
.xv-side-flower--right {
  transform: scale(-1, -1);
}

/* Flores en banners fotográficos y cierre (sobre el borde rasgado) */
.xv-banner-flower {
  position: absolute;
  width: var(--xv-flower-size);
  height: auto;
  z-index: 5;
  pointer-events: none;
  user-select: none;
}

.xv-banner-flower--top.xv-banner-flower--right {
  transform: scaleX(-1);
}

.xv-banner-flower--bottom.xv-banner-flower--left {
  transform: scaleY(-1);
}

.xv-banner-flower--bottom.xv-banner-flower--right {
  transform: scale(-1, -1);
}

/* ==========================================================================
   POSICIÓN INDIVIDUAL DE CADA FLOR (EDITA AQUÍ CADA UNA POR SEPARADO)
   - top / bottom : distancia vertical dentro de la sección
   - left / right : distancia al borde de la pantalla
       calc(50% - 50vw ...) = pegada al borde de la pantalla.
       Súmale/réstale un valor para alejarla o sacarla más.
   - width        : tamaño (var(--xv-flower-size) = tamaño fluido común)
   ========================================================================== */

/* 1. Portada (foto en arco) */
.xv-flower-hero-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-hero-right {
  top: 410px;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 2. Padres, fecha y calendario */
.xv-flower-familia-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-familia-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 3. Misa y recepción */
.xv-flower-ubicaciones-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-ubicaciones-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 4. Banner fotográfico 1 */
.xv-flower-banner1-left {
  top: 0.3rem;
  left: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-banner1-right {
  bottom: 0.3rem;
  right: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 5. Itinerario */
.xv-flower-itinerario-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-itinerario-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 6. Código de vestimenta */
.xv-flower-vestimenta-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-vestimenta-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 7. Banner fotográfico 2 */
.xv-flower-banner2-left {
  top: 0.3rem;
  left: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-banner2-right {
  bottom: 0.3rem;
  right: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 8. Sugerencia de regalos */
.xv-flower-regalos-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-regalos-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 9. Confirmar asistencia */
.xv-flower-asistencia-left {
  top: 0;
  left: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-asistencia-right {
  bottom: 0;
  right: calc(52% - 50vw - var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

/* 10. Cierre fotográfico final */
.xv-flower-final-left {
  top: 0.3rem;
  left: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-flower-final-right {
  bottom: 0.3rem;
  right: calc(-1 * var(--xv-flower-bleed));
  width: var(--xv-flower-size);
}

.xv-family-date-section> :not(.xv-floral-decor),
.xv-locations-section> :not(.xv-floral-decor),
.xv-itinerary-section> :not(.xv-floral-decor),
.xv-dresscode-section> :not(.xv-floral-decor),
.xv-gifts-section> :not(.xv-floral-decor),
.xv-rsvp-section> :not(.xv-floral-decor) {
  position: relative;
  z-index: 4;
}

/* ==========================================================================
   1. CABECERA ARCO FLORAL, CORONA, NOMBRE Y RETRATO EN ARCO DORADO
   ========================================================================== */
.xv-hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-bottom: 2rem;
  overflow: hidden;
}

/* Arco Floral Superior con Columnas (arco_flores.png) */
.xv-floral-arch-header {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: -0.5rem;
}

.xv-arch-columns-img {
  opacity: 0.8;
  width: 106%;
  max-width: 560px;
  height: auto;
  object-fit: contain;
  margin-top: -0.75rem;
  pointer-events: none;
  z-index: 2;
}

/* Título "Mis XV Años" dentro del arco entre las columnas */
.xv-arch-title-overlay {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -25%);
  z-index: 4;
  text-align: center;
  width: 70%;
}

.xv-mis-xv-title {
  font-family: var(--font-script);
  font-size: 2.95rem;
  line-height: 0.95;
  color: var(--xv-emerald);
  font-weight: 400;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
  margin-top: 4rem;
}

/* Corona y Nombre "Ximena" */
.xv-crown-name-block {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: -0.4rem;
  margin-bottom: 1.1rem;
}

.xv-crown-img {
  width: 12.4rem;
  height: auto;
  object-fit: contain;
  margin-bottom: 0.2rem;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

.xv-quince-name {
  font-family: var(--font-script);
  font-size: 4.1rem;
  color: var(--xv-gold);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: 0.01em;
  text-shadow: 0 2px 6px rgba(184, 146, 68, 0.14);
}

/* Retrato Principal en Marco de Arco Dorado */
.xv-hero-photo-wrap {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0.5rem 2rem;
  margin-bottom: 1.85rem;
}

.xv-hero-arch-frame {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 280px;
  aspect-ratio: 3 / 3.9;
  border-radius: 999px 999px 8px 8px;
  border: 2.5px solid var(--xv-gold);
  padding: 4px;
  background-color: #ffffff;
  box-shadow: 0 14px 32px rgba(70, 50, 35, 0.14);
  overflow: hidden;
}

.xv-hero-arch-inner {
  width: 100%;
  height: 100%;
  border-radius: 999px 999px 5px 5px;
  overflow: hidden;
}

.hero-arch-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  cursor: pointer;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.xv-hero-arch-frame:hover .hero-arch-img {
  transform: scale(1.04);
}

/* Texto de Invitación en Portada */
.xv-welcome-text {
  padding: 0 2rem;
  max-width: 410px;
  margin: 0 auto 1.35rem auto;
}

.xv-uppercase-paragraph {
  font-family: var(--font-serif);
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.58;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  text-align: center;
}

/* Reproductor de Audio Dorado "DALE PLAY" */
.xv-audio-player-block {
  width: 100%;
  max-width: 310px;
  padding: 0.4rem 1.25rem 0.75rem 1.25rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 5;
}

.xv-dale-play-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  margin-bottom: 0.65rem;
}

.player-progress-wrap {
  width: 100%;
  margin-bottom: 0.55rem;
}

.player-progress-bar {
  width: 100%;
  background-color: rgba(184, 146, 68, 0.28);
  height: 3.5px;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
}

.player-progress-fill {
  background-color: var(--xv-gold);
  height: 100%;
  width: 28%;
  border-radius: 9999px;
  position: relative;
  transition: width 0.15s linear;
}

.player-progress-thumb {
  position: absolute;
  right: -5px;
  top: 50%;
  transform: translateY(-50%);
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background-color: var(--xv-gold);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.player-times-row {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--xv-text-muted);
  font-family: var(--font-sans);
  margin-top: 0.3rem;
}

.player-controls-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  margin-top: 0.2rem;
}

.player-ctrl-btn {
  color: var(--xv-gold);
  font-size: 0.92rem;
  transition: color 0.2s ease, transform 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-ctrl-btn:hover,
.player-ctrl-btn.active {
  color: var(--xv-gold-dark);
}

.player-play-main-btn {
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--xv-gold-bright) 0%, var(--xv-gold-dark) 100%);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(184, 146, 68, 0.35);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.player-play-main-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(184, 146, 68, 0.45);
}

/* ==========================================================================
   2. PADRES, PADRINOS, FECHA, CUENTA REGRESIVA Y CALENDARIO DE MAYO
   ========================================================================== */
.xv-family-date-section {
  position: relative;
  width: 100%;
  padding: 1.25rem 1.75rem 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xv-family-block {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 285px;
  padding: 3.35rem 0.75rem;
}

.xv-section-subtitle-upper {
  font-family: var(--font-serif);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.48;
  margin-bottom: 0.5rem;
}

.xv-script-names-group {
  font-family: var(--font-script);
  font-size: 2.05rem;
  color: var(--xv-text-dark);
  line-height: 1.18;
  margin-bottom: 2.65rem;
}

/* A Festejar Mis XV Años + Fecha Editorial */
.xv-celebrate-date-block {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0.35rem 0 1.75rem 0;
  width: 100%;
}

.xv-celebrate-label {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
}

.xv-celebrate-big {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--xv-emerald);
  line-height: 1.1;
  margin: 0.15rem 0 0.35rem 0;
}

.xv-gold-flourish {
  width: 6.5rem;
  height: 14px;
  color: var(--xv-gold);
  margin-bottom: 0.55rem;
}

.xv-day-script-top {
  font-family: var(--font-script);
  font-size: 1.85rem;
  color: var(--xv-emerald);
  line-height: 1.1;
  margin-bottom: 0.1rem;
}

.xv-editorial-date-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  width: 100%;
  max-width: 280px;
}

.xv-date-side-pill {
  flex: 1;
  border-top: 1.5px solid var(--xv-gold);
  border-bottom: 1.5px solid var(--xv-gold);
  padding: 0.28rem 0.25rem;
  font-family: var(--font-serif);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--xv-emerald-dark);
}

.xv-date-center-number {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 3.3rem;
  font-weight: 600;
  color: var(--xv-gold);
  line-height: 0.95;
  padding: 0 0.15rem;
}

/* Cuenta Regresiva ("Falta:") */
.xv-countdown-block {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1.85rem;
  width: 100%;
}

.xv-gold-script-heading {
  font-family: var(--font-script);
  font-size: 2.25rem;
  color: var(--xv-gold);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 0.25rem;
}

.xv-countdown-timer-row {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0.45rem;
}

.xv-cd-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 3.3rem;
}

.xv-cd-number {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--xv-emerald);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.xv-cd-colon {
  font-family: var(--font-serif);
  font-size: 2.25rem;
  font-weight: 600;
  color: var(--xv-emerald);
  line-height: 1;
  transform: translateY(-0.2rem);
}

.xv-cd-label {
  font-family: var(--font-serif);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  margin-top: 0.35rem;
}

/* Calendario Mensual ("El Gran Día - Mayo") */
.xv-calendar-block {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xv-calendar-month-script {
  font-family: var(--font-script);
  font-size: 1.9rem;
  color: var(--xv-emerald-dark);
  line-height: 1.1;
  margin-top: -0.15rem;
  margin-bottom: 0.65rem;
}

.xv-calendar-table {
  width: 100%;
  border-collapse: collapse;
  text-align: center;
  font-family: var(--font-serif);
}

.xv-calendar-table th {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--xv-text-dark);
  padding-bottom: 0.45rem;
}

.xv-calendar-table td {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--xv-text-dark);
  padding: 0.32rem 0;
  position: relative;
}

.xv-calendar-highlight {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.95rem;
  height: 1.95rem;
  border-radius: 9999px;
  border: 1.8px solid var(--xv-gold);
  background-color: rgba(184, 146, 68, 0.12);
  color: var(--xv-emerald-dark);
  font-weight: 700;
}

.xv-add-calendar-link {
  margin-top: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--xv-emerald);
  border-bottom: 1px dashed var(--xv-gold);
  padding-bottom: 2px;
}

.xv-add-calendar-link:hover {
  color: var(--xv-gold-dark);
}

/* ==========================================================================
   3. MISA DE AGRADECIMIENTO Y RECEPCIÓN
   ========================================================================== */
.xv-locations-section {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.35rem;
  text-align: center;
}

.xv-event-card {
  position: relative;
  z-index: 4;
  width: 100%;
  max-width: 285px;
  padding: 0 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.xv-emerald-icon-box {
  color: var(--xv-emerald);
  margin-bottom: 0.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xv-emerald-icon-box svg,
.xv-emerald-icon-box img {
  width: 4.85rem;
  height: 4.85rem;
  object-fit: contain;
}

.xv-event-time {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--xv-emerald-dark);
  margin: 0.2rem 0;
}

.xv-event-place {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  margin-bottom: 0.25rem;
}

.xv-event-desc {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xv-text-muted);
  line-height: 1.45;
  max-width: 295px;
  margin-bottom: 0.75rem;
}

/* Botón Píldora Dorado ("VER UBICACIÓN", "CONFIRMAR AQUÍ") */
.xv-gold-pill-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.48rem 1.35rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #c7a961 0%, #ab8a3e 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(171, 138, 62, 0.28);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.xv-gold-pill-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 18px rgba(171, 138, 62, 0.38);
}

.xv-gold-pill-btn:active {
  transform: scale(0.97);
}

/* ==========================================================================
   4. BANNERS FOTOGRÁFICOS CON BORDES DE PAPEL RASGADO Y FLORES
   ========================================================================== */
.xv-torn-photo-banner {
  position: relative;
  width: 100%;
  margin: 0.5rem 0;
  line-height: 0;
  overflow: visible;
}

.xv-torn-photo-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  overflow: hidden;
  background-color: #e9dfd1;
}

.xv-torn-photo-inner img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  cursor: pointer;
  transition: transform 0.85s cubic-bezier(0.16, 1, 0.3, 1);
}

.xv-torn-photo-inner:hover img {
  transform: scale(1.035);
}

/* Máscaras SVG de Papel Rasgado Orgánico */
.xv-torn-edge-top {
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 36px;
  z-index: 4;
  pointer-events: none;
}

.xv-torn-edge-bottom {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 38px;
  z-index: 4;
  pointer-events: none;
}

/* ==========================================================================
   5. ITINERARIO DE ACTIVIDADES (LÍNEA DE TIEMPO VERTICAL ALTERNADA)
   ========================================================================== */
.xv-itinerary-section {
  position: relative;
  width: 100%;
  padding: 2.25rem 1.25rem 1.75rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xv-itinerary-title {
  font-family: var(--font-script);
  font-size: 2.35rem;
  color: var(--xv-gold);
  font-weight: 400;
  line-height: 1.05;
  margin-bottom: 1.75rem;
}

.xv-timeline-container {
  position: relative;
  width: 100%;
  max-width: 290px;
  display: flex;
  flex-direction: column;
  gap: 3.2rem;
  padding: 0.5rem 0;
  z-index: 4;
}

/* Línea central verde esmeralda */
.xv-timeline-axis {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1.8px;
  background-color: var(--xv-emerald);
}

.xv-timeline-item {
  display: grid;
  grid-template-columns: 1fr 24px 1fr;
  align-items: center;
  width: 100%;
  position: relative;
}

.xv-timeline-side-left {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  padding-right: 0.65rem;
  text-align: right;
}

.xv-timeline-side-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 0.65rem;
  text-align: left;
}

.xv-timeline-dot {
  width: 9px;
  height: 9px;
  border-radius: 9999px;
  background-color: var(--xv-emerald);
  margin: 0 auto;
  z-index: 5;
  box-shadow: 0 0 0 3px var(--xv-paper);
}

.xv-timeline-time {
  font-family: var(--font-serif);
  font-size: 1.52rem;
  font-weight: 700;
  color: var(--xv-text-dark);
  letter-spacing: 0.04em;
}

.xv-timeline-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xv-text-muted);
}

.xv-timeline-icon {
  color: var(--xv-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
}

.xv-timeline-icon svg,
.xv-timeline-icon img {
  width: 4.15rem;
  height: 4.15rem;
  object-fit: contain;
}

/* ==========================================================================
   6. CÓDIGO DE VESTIMENTA
   ========================================================================== */
.xv-dresscode-section {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.75rem 2.25rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xv-dress-subtitle {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  margin-top: 0.1rem;
  margin-bottom: 0.65rem;
}

.xv-dress-silhouettes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  color: #171717;
  margin-bottom: 0.85rem;
}

.xv-dress-silhouettes svg {
  width: 3rem;
  height: 3.6rem;
}

.xv-dress-silhouettes img {
  width: 8.5rem;
  height: auto;
  object-fit: contain;
  display: block;
}

.xv-dress-note {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.55;
  max-width: 285px;
  padding: 0 0.5rem;
}

/* ==========================================================================
   7. SUGERENCIA DE REGALOS, TRANSFERENCIA Y QR
   ========================================================================== */
.xv-gifts-section {
  position: relative;
  width: 100%;
  padding: 2rem 1.75rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xv-gifts-text {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.58;
  max-width: 285px;
  padding: 0 0.5rem;
  margin: 0.35rem 0 1.35rem 0;
}

.xv-bank-transfer-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 1rem;
}

.xv-bank-lines {
  font-family: var(--font-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.55;
  margin-top: 0.35rem;
}

.copy-bank-btn {
  margin-top: 0.6rem;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.9rem;
  border-radius: 9999px;
  background-color: rgba(33, 87, 50, 0.08);
  border: 1px solid rgba(33, 87, 50, 0.3);
  color: var(--xv-emerald);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s ease;
}

.copy-bank-btn:hover {
  background-color: var(--xv-emerald);
  color: #ffffff;
}

.qr-card-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 0.5rem;
}

.qr-frame-box {
  padding: 0.55rem;
  background-color: #ffffff;
  border: 1.5px solid var(--xv-gold);
  border-radius: 0.65rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.qr-code-image {
  width: 5.5rem;
  height: 5.5rem;
  object-fit: contain;
  cursor: pointer;
}

.qr-caption-text {
  font-family: var(--font-sans);
  font-size: 10px;
  color: var(--xv-text-muted);
  margin-top: 0.35rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ==========================================================================
   8. CONFIRMAR ASISTENCIA (RSVP), "¡TE ESPERAMOS!" Y GALERÍA
   ========================================================================== */
.xv-rsvp-section {
  position: relative;
  width: 100%;
  padding: 1.5rem 1.75rem 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.xv-rsvp-lead {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.55;
  max-width: 285px;
  padding: 0 0.5rem;
  margin: 0.3rem 0 0.9rem 0;
}

/* Botón Alternar Formulario en Línea */
.toggle-rsvp-form-btn {
  margin-top: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.42rem 0.95rem;
  border-radius: 9999px;
  background-color: rgba(184, 146, 68, 0.12);
  border: 1px solid rgba(184, 146, 68, 0.45);
  color: var(--xv-gold-dark);
  font-family: var(--font-sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.25s ease;
}

.toggle-rsvp-form-btn:hover {
  background-color: rgba(184, 146, 68, 0.22);
}

.toggle-rsvp-form-btn svg {
  width: 0.85rem;
  height: 0.85rem;
  transition: transform 0.3s ease;
}

/* Formulario en Línea Desplegable */
.rsvp-online-form {
  width: 100%;
  max-width: 340px;
  margin-top: 1rem;
  padding: 1.15rem;
  background-color: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--xv-border-gold);
  border-radius: 0.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.05);
}

.rsvp-form-group {
  width: 100%;
}

.rsvp-label {
  display: block;
  font-family: var(--font-sans);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--xv-text-dark);
  margin-bottom: 0.25rem;
}

.rsvp-input,
.rsvp-select,
.rsvp-textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: 0.5rem;
  border: 1px solid var(--xv-border);
  background-color: #ffffff;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--xv-text-dark);
  outline: none;
}

.rsvp-input:focus,
.rsvp-select:focus,
.rsvp-textarea:focus {
  border-color: var(--xv-emerald);
}

.rsvp-submit-btn {
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, var(--xv-emerald) 0%, var(--xv-emerald-dark) 100%);
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  box-shadow: 0 4px 12px rgba(33, 87, 50, 0.25);
  margin-top: 0.2rem;
}

.xv-rsvp-support-text {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--xv-text-dark);
  line-height: 1.55;
  max-width: 315px;
  margin-top: 1.25rem;
}

.xv-te-esperamos-script {
  font-family: var(--font-script);
  font-size: 2.75rem;
  color: var(--xv-gold);
  font-weight: 400;
  margin: 1.35rem 0 1rem 0;
  line-height: 1.1;
}

/* Fotografía Enmarcada Dorada bajo "¡Te esperamos!" */
.xv-bouquet-card {
  width: 185px;
  aspect-ratio: 3 / 3.5;
  border: 2.5px solid var(--xv-gold);
  border-radius: 4px;
  padding: 3px;
  background-color: #ffffff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  margin-bottom: 1.75rem;
  overflow: hidden;
}

.xv-bouquet-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s ease;
}

.xv-bouquet-card:hover img {
  transform: scale(1.05);
}

/* Galería 2x2 de Recuerdos */
.gallery-block {
  width: 100%;
  max-width: 360px;
  padding: 0.5rem 0 1rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery-grid-2x2 {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.65rem;
  margin-top: 0.65rem;
}

.gallery-thumb-item {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  border: 1.5px solid var(--xv-gold);
  aspect-ratio: 1 / 1;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.gallery-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-thumb-item:hover .gallery-thumb-img {
  transform: scale(1.06);
}

/* ==========================================================================
   9. CIERRE FOTOGRÁFICO Y COMPONENTES FLOTANTES
   ========================================================================== */
.xv-final-photo-section {
  position: relative;
  width: 100%;
  line-height: 0;
}

.xv-final-photo-box {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 4.5;
  overflow: hidden;
}

.xv-final-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
}

.xv-final-vignette {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18, 38, 24, 0.72) 0%, rgba(0, 0, 0, 0.1) 48%, transparent 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 1.75rem 1rem;
  text-align: center;
  line-height: 1.3;
}

.xv-final-name {
  font-family: var(--font-script);
  font-size: 2.6rem;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

.xv-final-sub {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--xv-gold-light);
}

/* Botón Flotante de Música */
.floating-music-btn {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  border-radius: 9999px;
  background: #faf8f37d;
  border: 2px solid var(--xv-gold);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.3);
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem;
  cursor: pointer;
}

.floating-music-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Visor Lightbox */
#gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background-color: rgba(18, 16, 15, 0.92);
  backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

#lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 9999px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 92vw;
  max-height: 85vh;
  border-radius: 0.75rem;
  border: 2px solid var(--xv-gold);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.6);
  object-fit: contain;
}