/* ============================================
   VARIABLES & RESET
   ============================================ */
:root {
  --color-primary:       #7c3f8a;   /* amatista */
  --color-primary-title: #98A869;  
  --color-primary-icon:  #98A869;  
  --color-primary-dark:  #5a2d66;
  --color-primary-green: #808000;
  --color-primary-light: #a86bbf;
  --color-accent:        #c9a86c;   /* dorado */
  --color-accent-dark:   #a8853a;
  --color-accent-light:  #e8d5a8;
  --color-cream:         #fdf8f2;
  --color-white:         #ffffff;
  --color-text:          #2d3a2d;
  --color-text-light:    #6a7a6a;
  --color-border:        #e8d5c4;

  --font-display:  'Alex Brush', cursive;
  --font-serif:    'Cormorant Garamond', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;

  --shadow-soft:  0 4px 24px rgba(124, 63, 138, 0.10);
  --shadow-card:  0 8px 40px rgba(58, 45, 45, 0.10);
  --radius:       12px;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

/* ============================================
   SHARED — PAGE SECTIONS
   ============================================ */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  position: relative;
  overflow: hidden;
}

/* ============================================
   SHARED — DIVIDERS
   ============================================ */
.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 24px auto;
}

.divider__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--color-accent), transparent);
}


/* ============================================
   PAGE 1 — COVER HERO (video background)
   ============================================ */
.page--cover {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #1a1510; /* fallback mientras carga el video */
}

/* Video de fondo */
.cover__video-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.cover__video-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Viñeta de profundidad */
.cover__vignette {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 80% at 50% 50%, transparent 35%, rgba(10,8,5,0.38) 100%),
    linear-gradient(to bottom,
      rgba(10,8,5,0.22) 0%,
      transparent 18%,
      transparent 78%,
      rgba(10,8,5,0.28) 100%
    );
}

/* Contenido central */
.cover__inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0 20px;
}

/* ── Estado inicial: todo oculto hasta que se dispare la animación ── */
.cover__eyebrow,
.cover__names-hero,
.cover__inner .divider--light {
  opacity: 0;
  transform: translateY(50px);
}

/* ── Keyframes compartidos ── */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0);    }
}
@keyframes heroFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Animaciones disparadas cuando el padre recibe .cover-revealed ──
   Cada elemento entra escalonado 300 ms después del anterior.
   El delay base de 3 s deja que el video "respire" antes de mostrar texto. ── */
.cover-revealed .cover__eyebrow {
  animation: heroFadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3.0s;
}
.cover-revealed .cover__names-hero {
  animation: heroFadeUp 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: 3.35s;
}
.cover-revealed .cover__inner .divider--light {
  animation: heroFadeIn 0.8s ease forwards;
  animation-delay: 3.75s;
}

/* ── Texto: blanco puro con sombra reforzada ── */
.cover__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(18px, 2vw, 23px);
  letter-spacing: 7px;
  text-transform: uppercase;
  color: #ffffff;
  text-shadow:
    0 1px 3px rgba(0,0,0,0.7),
    0 3px 12px rgba(0,0,0,0.45);
  margin-bottom: 4px;
}

.cover__names-hero {
  font-family: var(--font-display);
  font-size: clamp(75px, 20vw, 120px);
  color: #ffffff;
  line-height: 1.05;
  letter-spacing: 1px;
  text-shadow:
    0 2px 4px  rgba(0,0,0,0.65),
    0 6px 24px rgba(0,0,0,0.40),
    0 0  56px  rgba(255,248,230,0.22);
}

/* Divisor sobre fondo oscuro */
.divider--light .divider__line {
  background: linear-gradient(to right, transparent, rgba(255,255,255,0.7), transparent);
}
.divider--light .divider__diamond {
  color: #ffffff;
  font-size: 8px;
  letter-spacing: 3px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}


/* Botón de música */
.cover__music-btn {
  position: absolute;
  bottom: 28px;
  right: 28px;
  z-index: 6;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.cover__music-btn:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.8);
}

.cover__music-btn.is-playing svg {
  color: var(--color-accent-light);
}

/* Flecha scroll */
.cover__scroll-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  font-size: 40px;
  color: rgba(255,255,255,0.65);
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(8px); }
}

/* ============================================
   PAGE 2 — INVITACIÓN FORMAL (rediseño)
   ============================================ */
.page--invitation {
  background: #fff;
  padding: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow: hidden;
}

/* ── Mitad superior ── */
.invitation__top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1.5rem 2.5rem;
  gap: 0.8rem;
}

/* ── Fila de nombres con línea horizontal ── */
.invitation__names-row {
  display: flex;
  align-items: center;
  width: fit-content;
  gap: 0.5rem;
}

.invitation__names-row::before,
.invitation__names-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1a1a1a;
}

.invitation__name-text {
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 13.8vw, 10.8rem);
  color: #1a1a1a;
  white-space: nowrap;
  line-height: 1;
}

.invitation__name-heart {
  font-size: 1.5rem;
  color: #1a1a1a;
  line-height: 1;
}

/* ── Anillos ── */
.invitation__rings {
  margin: 0.2rem 0 0.4rem;
}

.rings-img {
  width: 160px;
  height: auto;
  display: block;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 1.1s ease, transform 1.1s ease;
}

.invitation__rings.is-animated .rings-img {
  opacity: 1;
  transform: scale(1);
}

/* ── Título y fecha ── */
.invitation__nos-casamos {
  font-family: var(--font-body);
  font-size: clamp(1.25rem, 4vw, 1.65rem);
  font-weight: 700;
  letter-spacing: 3px;
  color: #1a1a1a;
  margin: 0;
  text-transform: uppercase;
}


/* ── Foto pedida de mano — polaroid + acuarela ── */
.invitation__photo-wrap {
  width: 100%;
  max-width: 340px;
  padding: 0 1.5rem 2.5rem;
}

.invitation__photo-polaroid {
  background: #fff;
  border: 1px solid #e2d9cf;
  padding: 0.875rem 0.875rem 4.5rem;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15), 0 2px 6px rgba(0,0,0,0.07);
  transform: rotate(0deg);
}

.invitation__photo-inner {
  position: relative;
  overflow: hidden;
}

.invitation__photo {
  width: 100%;
  height: 420px;
  display: block;
  object-fit: cover;
  object-position: center 72%;
}

/* Video de acuarela: blends sobre la foto con mix-blend-mode:screen + contrast alto */
.invitation__photo-blend {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: screen;
  filter: contrast(200%);
  pointer-events: none;
}


.invitation__guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.3rem;
  padding: 2rem 1.5rem 2.5rem;
  background: #fff;
  width: 100%;
}

.invitation__guest-intro {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(1.5rem, 3.3vw, 2rem);
  color: #777;
  line-height: 1.75;
  margin: 0;
}

.invitation__guest-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  width: min(100%, 34rem);
}

.invitation__guest-names {
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 6.5vw, 3.4rem);
  color: #3d2d34;
  line-height: 1.2;
  margin: 0;
}

.invitation__guest-names--principal {
  color: #7c4d57;
}

.invitation__guest-names span {
  display: block;
  width: fit-content;
  margin: 0.15rem auto 0;
  padding: 0.18rem 0.65rem;
  border: 1px solid rgba(124, 77, 87, 0.28);
  border-radius: 999px;
  font-family: var(--font-serif);
  font-size: 0.76rem;
  font-style: italic;
  line-height: 1;
  color: #7c4d57;
  background: rgba(124, 77, 87, 0.06);
}



@keyframes fadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================
   ÁLBUM DE FOTOS
   ============================================ */
.page--album {
  background: #fff;
  padding: 3.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.album__inner {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}

.album__title-row {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.6rem;
}

.album__title-row::before,
.album__title-row::after {
  content: '';
  flex: 1;
  height: 1px;
  background: #1a1a1a;
}

.album__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 2.8rem);
  color: var(--color-primary-green);
  white-space: nowrap;
  line-height: 1.1;
}

.album__subtitle {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 2.8vw, 1rem);
  font-weight: 600;
  color: var(--color-primary-title);
  margin: 0;
  letter-spacing: 0.2px;
}

.album__camera {
  margin: 0.2rem 0;
}

.album__camera-img {
  width: 200px;
  object-fit: contain;
}

.album__desc {
  font-family: var(--font-serif);
  font-size: clamp(0.88rem, 2.5vw, 1rem);
  color: #333;
  line-height: 1.75;
  margin: 0;
  max-width: 340px;
}

.album__qr-link {
  display: block;
  text-decoration: none;
}

.album__qr-img {
  width: 160px;
  height: 160px;
  object-fit: contain;
  display: block;
}

.album__qr-placeholder {
  display: none;
  width: 160px;
  height: 160px;
  border: 2px dashed #ccc;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  color: #aaa;
  letter-spacing: 2px;
}

.album__code {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.album__code-label {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: #555;
  margin: 0;
}

.album__code-value {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-title);
  margin: 0;
}

/* ── Foto cierre polaroid ── */
.closing-photo {
  background: #fff;
  display: flex;
  justify-content: center;
  padding: 2rem 1.5rem 3rem;
  max-width: 460px;
  margin: 0 auto;
}

.closing-photo .gallery__polaroid {
  width: 100%;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: #fff;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.footer__title {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 7vw, 3rem);
  color: #1a1a1a;
  margin: 0 0 0.8rem;
  line-height: 1.2;
}

.footer__countdown-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 2.8rem 1rem;
}

/* Mancha acuarela verde oliva */
.footer__countdown-wrap::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8%;
  right: -8%;
  bottom: 0;
  background:
    radial-gradient(ellipse 95% 60% at 50% 50%,  rgba(152, 168, 105, 0.50) 0%, rgba(152, 168, 105, 0.22) 50%, transparent 75%),
    radial-gradient(ellipse 65% 40% at 15% 58%,  rgba(128, 128,   0, 0.28) 0%, transparent 65%),
    radial-gradient(ellipse 60% 38% at 85% 42%,  rgba(140, 150,  60, 0.25) 0%, transparent 65%),
    radial-gradient(ellipse 50% 30% at 50% 85%,  rgba(120, 130,  40, 0.18) 0%, transparent 70%);
  filter: blur(22px);
  z-index: 0;
}

.footer__countdown {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.5rem);
}

.footer__unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
}

.footer__num {
  font-family: var(--font-body);
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  font-weight: 700;
  color: #1a1a1a;
  line-height: 1;
}

.footer__label {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 2vw, 0.9rem);
  color: #333;
  letter-spacing: 0.3px;
}

.footer__divider {
  margin-top: 2rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .page {
    padding: 60px 20px;
  }
}

/* ============================================
   SOBRE DE ENTRADA
   ============================================ */

.body--locked { overflow: hidden; }

.body--access-denied {
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 20%, rgba(201, 168, 108, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf4 0%, var(--color-white) 58%, #f7efe6 100%);
}

.access-denied {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 12px;
  padding: 36px 24px;
  text-align: center;
}

.access-denied[hidden] {
  display: none;
}

.access-denied__eyebrow {
  font-family: var(--font-body);
  font-size: clamp(15px, 3vw, 20px);
  letter-spacing: 6px;
  text-transform: uppercase;
  color: var(--color-primary-title);
}

.access-denied__title {
  font-family: var(--font-display);
  font-size: clamp(74px, 18vw, 132px);
  font-weight: 400;
  line-height: 0.96;
  color: var(--color-primary-dark);
}

.access-denied__divider {
  margin: 8px auto 2px;
  color: var(--color-accent);
  font-size: 10px;
  letter-spacing: 6px;
}

.access-denied__message {
  max-width: 420px;
  margin: 0 auto;
  font-family: var(--font-serif);
  font-size: clamp(20px, 4vw, 26px);
  line-height: 1.35;
  color: var(--color-text);
}

.main-content {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}
.main-content.main-content--visible {
  opacity: 1;
  pointer-events: auto;
}

/* ── Pantalla completa del sobre ── */
.envelope-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  cursor: pointer;
  user-select: none;
  outline: none;
  background-color: --color-white;
  overflow: hidden;
  transition: opacity 0.1s ease;
}

.envelope-screen.envelope-screen--exit {
  opacity: 0;
  pointer-events: none;
}

/* ── Imagen inicial del sobre ── */
.envelope-screen__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 1;
  transition: opacity 0.3s ease;
}

/* ── Video de apertura ── */
.envelope-screen__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* ── Estado: reproduciendo (imagen sale, video entra) ── */
.envelope-screen--playing .envelope-screen__image {
  opacity: 0;
  pointer-events: none;
}

.envelope-screen--playing .envelope-screen__video {
  opacity: 1;
}

.envelope-screen--playing .envelope-screen__cta,
.envelope-screen--playing .envelope-screen__skip {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ── Botón SKIP ── */
.envelope-screen__skip {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 10;
  padding: 9px 22px;
  border-radius: 50px;
  border: none;
  background: rgba(168, 162, 152, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(90, 82, 72, 0.75);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}

.envelope-screen__skip:hover {
  background: rgba(168, 162, 152, 0.48);
  color: rgba(60, 52, 42, 0.95);
}

/* ── CTA inferior: ícono sobre + CLICK PARA ABRIR ── */
.envelope-screen__cta {
  position: absolute;
  bottom: clamp(48px, 10vh, 88px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.envelope-screen__icon-ring {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(110, 100, 85, 0.35);
  background: rgba(255, 252, 246, 0.20);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(90, 80, 65, 0.68);
  transition: border-color 0.25s ease, background 0.25s ease;
}

.envelope-screen:hover .envelope-screen__icon-ring {
  border-color: rgba(110, 100, 85, 0.55);
  background: rgba(255, 252, 246, 0.34);
}

.envelope-screen__tap {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: rgba(90, 80, 65, 0.62);
  animation: tapPulse 2.4s ease-in-out infinite;
}

@keyframes tapPulse {
  0%, 100% { opacity: 0.5; }
  50%       { opacity: 1;   }
}

/* ============================================
   SCRATCH TO REVEAL — 3 CORAZONES
   ============================================ */
.page--scratch {
  background: var(--color-white);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scratch__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  position: relative;
  z-index: 2;
}

.scratch__eyebrow {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 5px;
  text-transform: uppercase;
  color: var(--color-primary-green);
}
.scratch__eyebrow::before,
.scratch__eyebrow::after {
  content: '';
  width: 48px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.55;
}

.scratch__title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 6.5vw, 3.6rem);
  color: #2e2a22;
  text-align: center;
  line-height: 1.15;
  font-weight: 400;
  margin-top: -4px;
}

/* ── Fila de las 3 hojas ── */
.scratch__leaves {
  display: flex;
  gap: clamp(14px, 3.5vw, 40px);
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}

/* Wrapper externo: lleva la sombra (clip-path elimina box-shadow) */
.scratch__leaf-outer {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.scratch__leaf-outer--day   { filter: drop-shadow(0 10px 26px rgba(180, 80, 120, 0.36)); }
.scratch__leaf-outer--month { filter: drop-shadow(0 12px 30px rgba(100, 50, 130, 0.40)); }
.scratch__leaf-outer--year  { filter: drop-shadow(0 10px 26px rgba(160, 110, 40, 0.34)); }

/* Contenedor base — círculo */
.scratch__leaf-wrap {
  position: relative;
  width: clamp(138px, 26vw, 185px);
  aspect-ratio: 1;
  cursor: crosshair;
  user-select: none;
}


/* Flor central (mes) ligeramente mayor */
.scratch__leaf-wrap--center {
  width: clamp(154px, 29vw, 206px);
}

/* Fondo transparente: la fecha se lee sobre el fondo de la sección */
.scratch__leaf-bg {
  position: absolute;
  inset: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scratch__leaf-val {
  text-align: center;
  line-height: 1;
}

.scratch__leaf-val--day {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(3rem, 9vw, 5.3rem);
  color: #777;
}

.scratch__leaf-val--month {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.3rem, 3vw, 3rem);
  color: #777;
  letter-spacing: 1px;
}

.scratch__leaf-val--year {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(2.3rem, 4vw, 3rem);
  letter-spacing: 3px;
  color: #777;
}

/* Canvas superpuesto */
.scratch__leaf-canvas {
  position: absolute;
  inset: 0;
  width:  100%;
  height: 100%;
  touch-action: none;
  display: block;
  transition: opacity 0.7s ease;
}

/* Pista parpadea */
.scratch__hint {
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-light);
  animation: leafHintPulse 2.4s ease-in-out infinite;
  transition: opacity 0.4s ease;
}

.scratch__hint.is-hidden {
  opacity: 0;
  pointer-events: none;
}

@keyframes leafHintPulse {
  0%, 100% { opacity: 0.4; }
  50%       { opacity: 1;   }
}

/* Mensaje "continúa" post-revelación */
.scratch__cta {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--color-primary-green);
  animation: leafCtaBounce 1.5s ease-in-out infinite;
}

@keyframes leafCtaBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(7px); }
}

/* Confeti: canvas creado y destruido dinámicamente desde JS */


/* ============================================
   DIVISOR DE CORAZONES
   ============================================ */
.hearts-divider {
  font-size: 13px;
  letter-spacing: 10px;
  color: var(--color-primary-green);
  text-align: center;
  margin: 2rem 0;
  opacity: 0.75;
}


/* ============================================
   UBICACIÓN
   ============================================ */
.page--location {
  background: #fff;
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.location__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

.location__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  color: var(--color-primary-green);
  margin: 0 0 1.8rem;
  text-align: center;
  font-weight: 400;
}

.location__venue {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
  gap: 0.5rem;
  padding: 0.5rem 0 1.5rem;
}

.location__type {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  color: #1a1a1a;
  letter-spacing: 1px;
  margin: 0 0 0.8rem;
}

.location__img-wrap {
  width: 100%;
  max-width: 360px;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 1.1rem;
  aspect-ratio: 4 / 3;
  background: #e8e4dc;
}

.location__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.location__name {
  font-family: var(--font-serif);
  font-size: clamp(1.1rem, 3.5vw, 1.35rem);
  font-weight: 500;
  color: #333;
  margin: 0;
}

.location__city {
  font-family: var(--font-body);
  font-size: clamp(0.78rem, 2.2vw, 0.9rem);
  color: #999;
  margin: 0.1rem 0;
}

.location__time {
  font-family: var(--font-serif);
  font-size: clamp(1.3rem, 3vw, 1.3rem);
  font-weight: 600;
  color: #444;
  margin: 0.4rem 0 0.8rem;
}

.location__map-btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #555;
  border: 1px solid #bbb;
  border-radius: 50px;
  padding: 0.55rem 1.8rem;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.location__map-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}


/* ============================================
   ITINERARIO
   ============================================ */
.page--itinerary {
  background: #fff;
  padding: 3.5rem 1.5rem 4rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.itinerary__inner {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--color-primary-green);
}

.itinerary__intro {
  font-family: var(--font-serif);
  font-size: clamp(1.03rem, 3vw, 1.5rem);
  color: #1a1a1a;
  text-align: center;
  line-height: 1.75;
  max-width: 300px;
  margin: 0 0 1.6rem;
}

.itinerary__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 9vw, 4.6rem);
  color: var(--color-primary-green);
  font-weight: 400;
  margin: 0 0 2.2rem;
  text-align: center;
  letter-spacing: 1px;
}

/* ── Track: zigzag escalera ── */
.itinerary__track {
  width: 100%;
  max-width: 480px;
  position: relative;
  margin: 0 auto 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Línea vertical central */
.itinerary__track::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: #e0dbd4;
  z-index: 0;
}

.itinerary__item {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 1.2rem 0;
  position: relative;
}

/* ♥ sentado sobre la línea vertical central */
.itinerary__item::before {
  content: '♥';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-primary-green);
  font-size: 14px;
  background: #fff;
  padding: 2px 4px;
  line-height: 1;
  z-index: 2;
}

/* Línea horizontal desde el borde derecho del texto hasta el corazón */
.itinerary__item::after {
  content: '';
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  right: 50%;
  width: 55px;
  height: 1px;
  background: #e0dbd4;
  z-index: 1;
}

/* Items reverse: línea va desde el corazón al texto (lado derecho) */
.itinerary__item--reverse {
  flex-direction: row-reverse;
}

.itinerary__item--reverse::after {
  right: auto;
  left: 50%;
}

/* Columna de texto */
.itinerary__text {
  width: calc(50% - 55px);
  flex-shrink: 0;
  text-align: left;
  padding-right: 0.2rem;
}

.itinerary__item--reverse .itinerary__text {
  text-align: right;
  padding-right: 0;
  padding-left: 0.2rem;
}

.itinerary__time {
  font-family: var(--font-body);
  font-size: clamp(0.75rem, 2vw, 0.82rem);
  font-weight: 600;
  color: var(--color-primary-green);
  letter-spacing: 0.5px;
  margin: 0 0 0.2rem;
}

.itinerary__desc {
  font-family: var(--font-serif);
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  color: #444;
  line-height: 1.4;
  margin: 0;
}

/* Columna de imagen */
.itinerary__icon-col {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 0.2rem;
}

.itinerary__item--reverse .itinerary__icon-col {
  justify-content: flex-start;
  padding-left: 0.2rem;
  padding-right: 0;
}

.itinerary__icon-col svg {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  background: #fff;
  padding: 8px;
  color: var(--color-primary-icon);
  box-sizing: border-box;
}

.itinerary__icon-img {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  object-fit: contain;
}


/* ============================================
   GALERÍA — RECUERDOS
   ============================================ */
.page--gallery {
  background: #fff;
  padding: 4rem 0 3rem;
  overflow: hidden;
}

.gallery__inner {
  width: 100%;
}

/* Título estilo bracket */
.gallery__title-wrap {
  padding: 0 1.75rem 2.5rem;
  overflow: hidden;
  text-align: center;
}

.gallery__title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 12vw, 5rem);
  font-weight: 400;
  color: var(--color-text);
  line-height: 0.88;
  margin: 0;
  text-align: center;
}

.gallery__title--left  { text-align: center; }
.gallery__title--right { text-align: center; }

/* Carousel — scroll-snap nativo */
.gallery__carousel {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  -webkit-overflow-scrolling: touch;
}

.gallery__carousel::-webkit-scrollbar { display: none; }
.gallery__carousel.is-grabbing { cursor: grabbing; }

.gallery__track {
  display: flex;
  gap: 1rem;
  padding-inline: 3%;
  padding-block: 1.5rem 2.5rem;
}

/* Slide — ocupa 94% del viewport, deja solo un borde visible a cada lado */
.gallery__slide {
  flex: 0 0 94%;
  max-width: 460px;
  scroll-snap-align: center;
}

/* Marco polaroid — recto, sin inclinación */
.gallery__polaroid {
  background: #fff;
  border: 1px solid #e2d9cf;
  padding: 0.9rem 0.9rem 4.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.07);
}


.gallery__photo {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
}

/* Dots */
.gallery__dots {
  display: flex;
  justify-content: center;
  gap: 7px;
  padding-top: 0.25rem;
}

.gallery__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: #b5c49a;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.gallery__dot--active {
  background: var(--color-primary-green);
  transform: scale(1.35);
}

/* ============================================
   CÓDIGO DE VESTIMENTA
   ============================================ */
.page--dresscode {
  background: var(--color-white);
  padding: 3rem 1.5rem 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.dresscode__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.dresscode__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7.5vw, 4rem);
  color: var(--color-primary-green);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 0.5rem;
}

/* Ilustración maniquíes */
.dresscode__illustration {
  margin: 0.25rem 0 0.5rem;
}

.dresscode__img {
  width: clamp(160px, 45vw, 220px);
  opacity: 0.88;
  display: block;
}

.dresscode__text {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 3.5vw, 1.5rem);
  color: #555;
  line-height: 1.85;
  max-width: 300px;
  margin: 0 0 1.5rem;
}

.dresscode__text strong {
  color: var(--color-text);
  font-weight: 600;
}

/* Línea divisora */
.dresscode__rule {
  width: 60px;
  height: 1px;
  background: var(--color-accent);
  margin: 0 auto 1.25rem;
  opacity: 0.5;
}

/* Etiqueta de sección */
.dresscode__section-label {
  font-family: var(--font-body);
  font-size: 0.83rem;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin: 0 0 1rem;
}

/* Grid de swatches */
.dresscode__swatches {
  display: flex;
  gap: 1.75rem;
  justify-content: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  max-width: 460px;
}

.dresscode__swatch-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
}

/* Círculo swatch con línea diagonal elegante */
.dresscode__swatch {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px rgba(0,0,0,0.09),
    0 6px 20px rgba(0,0,0,0.10);
}

/* Línea diagonal "no" */
.dresscode__swatch::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    -45deg,
    transparent calc(50% - 1px),
    rgba(0,0,0,0.20) calc(50% - 1px),
    rgba(0,0,0,0.20) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
  border-radius: 50%;
}

/* Línea clara para swatches oscuros */
.dresscode__swatch--olive::before,
.dresscode__swatch--eucalyptus::before {
  background: linear-gradient(
    -45deg,
    transparent calc(50% - 1px),
    rgba(255,255,255,0.45) calc(50% - 1px),
    rgba(255,255,255,0.45) calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

.dresscode__swatch-x { display: none; }

.dresscode__swatch--beige      { background: #F5F0E8; }
.dresscode__swatch--white      { background: #ffffff; }
.dresscode__swatch--olive      { background: #808000; }
.dresscode__swatch--cream      { background: #fdf1e0; }
.dresscode__swatch--eucalyptus { background: #7aaa8a; }
.dresscode__swatch--cookie     { background: #c8a87a; }

.dresscode__swatch-note {
  font-family: var(--font-serif);
  font-size: 0.79rem;
  color: var(--color-text-light);
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0;
}


/* ============================================
   MESA DE REGALOS
   ============================================ */
.page--gifts {
  background: var(--color-white);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gifts__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.gifts__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  color: var(--color-primary-green);
  font-weight: 400;
  line-height: 1.15;
  margin: 0 0 1rem;
}

.gifts__icon {
  font-size: 3rem;
  margin-bottom: 1.2rem;
}

.gifts__text {
  font-family: var(--font-serif);
  font-size: clamp(1.05rem, 2.8vw, 1.18rem);
  color: #1a1a1a;
  line-height: 1.75;
  max-width: 340px;
  margin: 0 0 2rem;
}

/* ── Un icono por método, dos columnas (novia | novio) ── */
.gifts__methods {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 380px;
}

.gifts__method {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: #fff;
  border: 1px solid #e2d9cf;
  border-radius: 12px;
  padding: 1.5rem 1rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.gifts__method-cols {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  width: 100%;
  gap: 0;
}

.gifts__method-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0 0.5rem;
}

.gifts__method-divider {
  width: 1px;
  align-self: stretch;
  background: #e0dbd4;
  flex-shrink: 0;
}

.gifts__method-who {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6.5vw, 2.4rem);
  color: var(--color-primary-green);
  font-weight: 400;
  margin: 0 0 0.25rem;
}

.gifts__method-num {
  font-family: var(--font-body);
  font-size: clamp(1.07rem, 3vw, 1.15rem);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  text-align: center;
  word-break: break-all;
}

.gifts__method-cci {
  font-family: var(--font-body);
  font-size: clamp(0.93rem, 2.5vw, 0.95rem);
  font-weight: 400;
  color: #1a1a1a;
  margin: 0;
  text-align: center;
  word-break: break-all;
}





/* ============================================
   CONFIRMACIÓN + VERSÍCULO
   ============================================ */
.page--confirm {
  background: var(--color-white);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.confirm__inner {
  width: 100%;
  max-width: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.confirm__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4.2rem);
  color: var(--color-primary-green);
  font-weight: 400;
  margin: 0 0 1.2rem;
}

.confirm__text {
  font-family: var(--font-serif);
  font-size: clamp(0.99rem, 2.5vw, 1rem);
  color: #555;
  line-height: 1.75;
  max-width: 320px;
  margin: 0 0 1.8rem;
}

.confirm__btn {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 3px;
  color: #555;
  border: 1px solid #bbb;
  border-radius: 50px;
  padding: 0.65rem 2rem;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, color 0.2s;
}

.confirm__btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent-dark);
}

.confirm__quote {
  max-width: 340px;
  margin: 0;
  padding: 0;
  border: none;
}

.confirm__quote p {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(0.99rem, 2.8vw, 1.1rem);
  color: #555;
  line-height: 1.8;
  margin: 0 0 0.6rem;
}

.confirm__quote cite {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 1.5px;
  color: #999;
  font-style: normal;
}

.icon_gifts {
  width: 80px;
  height: 70px;
}

/* ============================================
   MODAL RSVP
   ============================================ */

/* — Reemplaza todos los morados por la paleta de la boda:
     dorado (--color-accent / #c9a86c) para bordes y hovers
     verde olivo (--color-primary-title / #98A869) para seleccionados
     crema (--color-cream) para fondos activos                     — */

/* Overlay + panel */
.rsvp-modal {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.rsvp-modal.is-open {
  pointer-events: auto;
  opacity: 1;
}

.rsvp-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 20, 35, 0.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.rsvp-modal__panel {
  position: relative;
  background: #ffffff;
  border-radius: 20px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem 2rem 2rem;
  box-shadow: 0 24px 60px rgba(30, 20, 35, 0.22), 0 4px 16px rgba(30, 20, 35, 0.10);
  transform: translateY(24px) scale(0.97);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  text-align: center;
}

.rsvp-modal.is-open .rsvp-modal__panel {
  transform: translateY(0) scale(1);
}

/* Scrollbar sutil */
.rsvp-modal__panel::-webkit-scrollbar { width: 4px; }
.rsvp-modal__panel::-webkit-scrollbar-track { background: transparent; }
.rsvp-modal__panel::-webkit-scrollbar-thumb { background: var(--color-accent); border-radius: 4px; }

/* Botón cerrar */
.rsvp-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.10);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-light);
  transition: background 0.2s, color 0.2s;
}
.rsvp-modal__close:hover {
  background: rgba(201, 168, 108, 0.22);
  color: var(--color-accent-dark);
}

/* Tipografía del modal */
.rsvp-modal__eyebrow {
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-bottom: 0.25rem;
}

.rsvp-modal__title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 4rem);
  color: var(--color-text);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.rsvp-modal__deadline {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}
.rsvp-modal__deadline strong {
  color: var(--color-text);
}

.rsvp-modal__subtitle {
  font-family: var(--font-serif);
  font-size: 1rem;
  color: var(--color-text);
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

/* ── PASO 1: Tarjetas de elección ── */
.rsvp-choices {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.rsvp-choice {
  background: #efefeb;
  border: 1.5px solid #f6f5f7;
  border-radius: 16px;
  padding: 1.5rem 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
}
.rsvp-choice:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(201, 168, 108, 0.18);
}
.rsvp-choice:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}
.rsvp-choice.is-loading {
  justify-content: center;
  min-height: 168px;
}
.rsvp-choice--yes:hover { border-color: #98A869; }
.rsvp-choice--no:hover  { border-color: #ef9a9a; }

.rsvp-choice__circle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.25rem;
}
.rsvp-choice__circle--yes { background: #e8f5e9; }
.rsvp-choice__circle--no  { background: #fce4e4; }

.rsvp-choice__small {
  font-family: var(--font-serif);
  font-size: 0.85rem;
  color: var(--color-text-light);
}
.rsvp-choice__label {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text);
  font-weight: 600;
}
.rsvp-choice__spinner {
  width: 1.35rem;
  height: 1.35rem;
  border: 2px solid rgba(152, 168, 105, 0.25);
  border-top-color: var(--color-primary-title);
  border-radius: 50%;
  animation: rsvpSpin 0.8s linear infinite;
}
.rsvp-choice-status {
  margin: 1rem 0 0;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.45;
  color: #b54b4b;
  text-align: center;
}

/* ── PASO 2: Acompañantes ── */
.rsvp-step__back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
  padding: 0;
  transition: color 0.2s;
}
.rsvp-step__back:hover { color: var(--color-accent-dark); }

.rsvp-guests {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1rem;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 2px;
}

/* Tarjeta seleccionable de invitado */
.rsvp-select-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fffff0;
  border: 1.5px solid #e8e0ee;
  border-radius: 14px;
  padding: 0.85rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  animation: fadeIn 0.25s ease;
  user-select: none;
}
.rsvp-select-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 4px 14px rgba(201, 168, 108, 0.18);
}
.rsvp-select-card.is-selected {
  border-color: var(--color-primary-title);
  background: #f6f8f1;
}

.rsvp-select-card__info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rsvp-select-card__avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(201, 168, 108, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-accent-dark);
  flex-shrink: 0;
}
.rsvp-select-card.is-selected .rsvp-select-card__avatar {
  background: var(--color-primary-title);
  color: #fff;
}

.rsvp-select-card__name {
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--color-text);
  margin: 0;
  text-align: left;
}

.rsvp-select-card__role {
  font-family: var(--font-serif);
  font-size: 0.78rem;
  color: var(--color-text-light);
  margin: 0;
  text-align: left;
}

.rsvp-select-card__check {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid #d0c8d8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: transparent;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.rsvp-select-card.is-selected .rsvp-select-card__check {
  background: #4caf50;
  border-color: #4caf50;
  color: #fff;
}

/* Botón confirmar */
.rsvp-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-title) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 1rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 3px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(128, 128, 0, 0.22);
}
.rsvp-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(128, 128, 0, 0.32);
}

.rsvp-submit-btn:disabled {
  cursor: wait;
  opacity: 0.82;
  transform: none;
}

.rsvp-submit-btn.is-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
}

.rsvp-submit-btn__spinner {
  width: 1rem;
  height: 1rem;
  border: 2px solid rgba(255, 255, 255, 0.42);
  border-top-color: #fff;
  border-radius: 50%;
  animation: rsvpSpin 0.8s linear infinite;
}

.rsvp-submit-status {
  margin: 0.2rem 0 0.8rem;
  font-family: var(--font-body);
  font-size: 0.84rem;
  line-height: 1.45;
  text-align: center;
}

.rsvp-submit-status--error {
  color: #b54b4b;
}

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

/* ── PASO 3: Declina ── */
.rsvp-decline {
  padding: 0.5rem 0 0.5rem;
}
.rsvp-decline__monogram {
  font-family: var(--font-display);
  font-size: 3rem;
  color: var(--color-primary-green);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.rsvp-decline__hearts {
  font-size: 1.1rem;
  color: var(--color-primary-green);
  letter-spacing: 6px;
  margin-bottom: 1.25rem;
}
.rsvp-decline__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.rsvp-decline__text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.5rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.rsvp-decline__verse {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 0.88rem;
  color: var(--color-text-light);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}
.rsvp-decline__verse cite {
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 1px;
  color: #bbb;
  display: block;
  margin-top: 0.25rem;
}
.rsvp-decline__btn {
  background: none;
  border: 1.5px solid var(--color-primary-green);
  border-radius: 10px;
  padding: 0.75rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--color-primary-green);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.rsvp-decline__btn:hover {
  background: var(--color-primary-green);
  color: #fff;
}

/* ── PASO 4: Éxito ── */
.rsvp-success-modal,
.rsvp-duplicate-modal {
  padding: 0.5rem 0;
}
.rsvp-success-modal__icon,
.rsvp-duplicate-modal__icon {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}
.rsvp-success-modal__monogram,
.rsvp-duplicate-modal__monogram {
  font-family: var(--font-display);
  font-size: 2.8rem;
  color: var(--color-primary-green);
  line-height: 1;
  margin-bottom: 0.2rem;
}
.rsvp-success-modal__hearts,
.rsvp-duplicate-modal__hearts {
  font-size: 1rem;
  color: var(--color-primary-green);
  letter-spacing: 6px;
  margin-bottom: 1.25rem;
}
.rsvp-success-modal__title,
.rsvp-duplicate-modal__title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  color: var(--color-text);
  line-height: 1.15;
  margin-bottom: 0.75rem;
}
.rsvp-success-modal__text,
.rsvp-duplicate-modal__text {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-bottom: 1.75rem;
  max-width: 340px;
  margin-left: auto;
  margin-right: auto;
}
.rsvp-success-modal__btn,
.rsvp-duplicate-modal__btn {
  background: linear-gradient(135deg, var(--color-primary-green) 0%, var(--color-primary-title) 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 0.85rem 2.5rem;
  font-family: var(--font-body);
  font-size: 0.82rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 16px rgba(128, 128, 0, 0.22);
}
.rsvp-success-modal__btn:hover,
.rsvp-duplicate-modal__btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(128, 128, 0, 0.32);
}

/* Prevenir scroll del body cuando el modal está abierto */
body.modal-open {
  overflow: hidden;
}
