
:root {
  --ivory: #f6f1e7;
  --cream: #ece2d5;
  --gold: #b08d57;
  --gold-dark: #876739;
  --ink: #312a28;
  --muted: #756a66;
  --accent-red: #7f0f24;
  --accent-green: #5e7358;
  --accent-wine: #5b2631;
  --shadow: 0 18px 40px rgba(61, 35, 24, 0.10);
  --shadow-soft: 0 10px 30px rgba(61, 35, 24, 0.08);
  --radius-lg: 32px;
  --radius-md: 24px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Parisienne", cursive;
  --sans: "DM Sans", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--ivory); font-family: var(--sans); overflow-x: hidden; }
body.menu-open { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin-top: 0; }
h2 { margin-bottom: 18px; font-family: var(--serif); font-size: clamp(2.4rem, 8vw, 4.8rem); font-weight: 500; line-height: 1.04; }
h3 { font-family: var(--serif); font-weight: 500; }
.eyebrow { display: inline-block; margin-bottom: 12px; color: var(--gold-dark); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.19em; text-transform: uppercase; }
.lead { color: var(--muted); font-size: 1.03rem; line-height: 1.8; }
.narrow { max-width: 720px !important; }
.section { padding: 90px 20px; }
.section--soft { background:
  radial-gradient(circle at 10% 10%, rgba(127,15,36,0.08), transparent 26rem),
  radial-gradient(circle at 100% 100%, rgba(94,115,88,0.10), transparent 24rem),
  linear-gradient(180deg, #f7f0e6 0%, #f1e7db 100%);
}
.section__inner { width: min(1120px, 100%); margin: 0 auto; text-align: center; }
.divider { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 28px auto; color: var(--accent-red); }
.divider span { width: 70px; height: 1px; background: rgba(176,141,87,0.5); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px; border: 1px solid transparent; border-radius: 999px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { color: #fff; border-color: var(--accent-red); background: linear-gradient(135deg, #8b122b, #5c2631); box-shadow: 0 10px 28px rgba(91,38,49,0.24); }
.btn--light { color: var(--ink); border-color: rgba(49,43,39,0.14); background: rgba(255,255,255,0.88); }
.btn--outline { color: var(--gold-dark); border-color: rgba(176,141,87,0.55); background: transparent; }
.btn--full { width: 100%; }

.intro { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; padding: 20px; transition: opacity .7s ease, visibility .7s ease; }
.intro.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__backdrop { position: absolute; inset: 0; background:
  linear-gradient(rgba(26, 23, 20, 0.30), rgba(26, 23, 20, 0.55)),
  url("assets/hero-photo.jpg") center 30% / cover no-repeat; }
.intro__card { position: relative; width: min(520px, 100%); padding: 42px 28px 30px; border: 1px solid rgba(255,255,255,0.55); border-radius: 30px; background: rgba(246,241,231,0.94); box-shadow: 0 30px 80px rgba(0,0,0,0.24); text-align: center; backdrop-filter: blur(10px); }
.intro__card h1 { margin-bottom: 12px; font-family: var(--serif); font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 500; line-height: 1.08; }
.intro__card p { margin-bottom: 26px; color: var(--muted); }
.intro__card .btn { width: 100%; margin-top: 10px; }
.ornament { margin: 4px 0 12px; color: var(--accent-red); font-size: 1.5rem; }

.floating-controls { position: fixed; z-index: 200; top: 18px; left: 18px; right: 18px; display: flex; justify-content: space-between; pointer-events: none; }
.round-btn { width: 48px; height: 48px; border: 1px solid rgba(255,255,255,0.85); border-radius: 50%; color: var(--accent-red); background: rgba(246,241,231,0.92); box-shadow: var(--shadow-soft); cursor: pointer; pointer-events: auto; backdrop-filter: blur(12px); }

.side-menu { position: fixed; z-index: 500; top: 0; right: 0; width: min(360px, 88vw); height: 100dvh; padding: 90px 32px 32px; background: rgba(246,241,231,0.98); box-shadow: -20px 0 60px rgba(0,0,0,0.14); transform: translateX(110%); transition: transform .4s cubic-bezier(.2,.8,.2,1); }
.side-menu.is-open { transform: translateX(0); }
.side-menu a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(49,43,39,0.08); font-family: var(--serif); font-size: 1.65rem; }
.side-menu__close { position: absolute; top: 24px; right: 24px; border: 0; color: var(--ink); background: none; font-size: 2.2rem; cursor: pointer; }

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #fff;
}
.hero__image, .hero__shade { position: absolute; inset: 0; }
.hero__image {
  background: url("assets/hero-photo.jpg") center 28% / cover no-repeat;
  transform: scale(1.02);
}
.hero__shade {
  background: linear-gradient(180deg, rgba(24,20,17,0.06) 10%, rgba(24,20,17,0.20) 42%, rgba(24,20,17,0.58) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  width: min(900px, calc(100% - 40px));
  margin: 0 auto;
  padding: 120px 0 52px;
  text-align: center;
}
.hero__date { margin-bottom: 22px; font-size: 0.82rem; letter-spacing: 0.24em; text-transform: uppercase; }
.couple { margin-bottom: 24px; font-family: var(--serif); font-size: clamp(3.4rem, 13vw, 7rem); font-weight: 500; line-height: 0.84; text-shadow: 0 2px 18px rgba(0,0,0,0.12); }
.couple span { display: block; }
.couple em { display: block; margin: 4px 0; color: #f5d4b7; font-family: var(--script); font-size: 0.78em; font-style: normal; line-height: 0.8; }
.hero__phrase { margin-bottom: 34px; color: rgba(255,255,255,0.92); font-size: 1rem; line-height: 1.8; }
.scroll-cue { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; color: rgba(255,255,255,0.88); font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; }
.scroll-cue__arrow { animation: bob 1.8s infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }

.countdown-section { padding-top: 20px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; width: min(760px, 100%); margin: 14px auto 0; padding: 26px 12px; border: 1px solid rgba(176,141,87,0.16); border-radius: var(--radius-lg); background: rgba(255,255,255,0.78); box-shadow: var(--shadow-soft); }
.countdown div { position: relative; }
.countdown div:not(:last-child)::after { content: ""; position: absolute; top: 12%; right: -4px; width: 1px; height: 76%; background: rgba(176,141,87,0.18); }
.countdown strong { display: block; color: var(--accent-red); font-family: var(--serif); font-size: clamp(2rem, 9vw, 4.6rem); font-weight: 600; }
.countdown span { color: var(--muted); font-size: 0.75rem; }

.guest-card { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 18px; padding: 24px; border: 1px solid rgba(176,141,87,0.14); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-soft); text-align: left; }
.guest-card__icon { width: 60px; height: 60px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent-red), var(--accent-wine)); font-size: 1.4rem; }
.guest-card h3 { margin: 0 0 5px; font-size: 1.7rem; }
.guest-card p { margin: 0; color: var(--muted); font-size: 0.9rem; }

.event-grid { display: grid; gap: 20px; margin-top: 38px; }
.event-card { padding: 32px 24px; border: 1px solid rgba(176,141,87,0.13); border-radius: var(--radius-lg); background: rgba(255,255,255,0.82); box-shadow: var(--shadow-soft); text-align: left; }
.event-card__icon { width: 58px; height: 58px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent-green), var(--accent-wine)); font-size: 1.4rem; }
.event-card h3 { margin-bottom: 28px; font-size: 2rem; }
.event-card dl { margin: 0; }
.event-card dl > div { padding: 15px 0; border-top: 1px solid rgba(49,43,39,0.08); }
.event-card dt { margin-bottom: 6px; color: var(--gold-dark); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.event-card dd { margin: 0; color: var(--muted); line-height: 1.6; }
.event-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

.photo-break { position: relative; min-height: 72svh; display: grid; place-items: end center; overflow: hidden; color: #fff; }
.photo-break__image { position: absolute; inset: 0; background: url("assets/photo-break.jpg") center 34% / cover no-repeat; transform: scale(1.02); }
.photo-break::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(30,24,20,0.72) 100%); }
.photo-break__quote { position: relative; z-index: 2; width: min(760px, calc(100% - 40px)); padding: 60px 0; text-align: center; }
.photo-break__quote p { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 8vw, 4rem); line-height: 1.18; }

.form-card { display: grid; gap: 18px; margin-top: 32px; padding: 24px; border: 1px solid rgba(176,141,87,0.14); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-soft); text-align: left; }
.form-card label { display: grid; gap: 8px; color: var(--gold-dark); font-size: 0.78rem; font-weight: 600; }
.form-card input, .form-card select, .form-card textarea { width: 100%; border: 1px solid rgba(49,43,39,0.12); border-radius: 14px; outline: none; padding: 14px 15px; color: var(--ink); background: #fbfaf8; resize: vertical; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { border-color: rgba(127,15,36,0.5); box-shadow: 0 0 0 4px rgba(127,15,36,0.08); }
.choice-row { display: grid; gap: 10px; }
.choice { position: relative; display: flex !important; align-items: center; gap: 10px !important; padding: 14px; border: 1px solid rgba(49,43,39,0.10); border-radius: 14px; color: var(--ink) !important; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: linear-gradient(135deg, var(--accent-red), var(--accent-wine)); }
.choice:has(input:checked) { border-color: rgba(127,15,36,0.35); background: #fcf6f6; }
.form-status { min-height: 20px; margin: 0; color: var(--accent-red); font-size: 0.85rem; text-align: center; }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 36px;
}
.gallery__item {
  min-height: 220px;
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
}
.gallery__item--a { background-image: url("assets/gallery-1.jpg"); background-position: center 18%; }
.gallery__item--b { background-image: url("assets/gallery-2.jpg"); background-position: center 30%; }
.gallery__item--c { background-image: url("assets/gallery-3.jpg"); background-position: center 36%; }
.gallery__item--d { background-image: url("assets/gallery-4.jpg"); background-position: center 30%; }
.gallery__item--e { background-image: url("assets/gallery-5.jpg"); background-position: center 38%; }
.gallery__item--f { background-image: url("assets/gallery-6.jpg"); background-position: center 32%; }

.accordion-list { width: min(820px, 100%); margin: 34px auto 0; text-align: left; }
.accordion { border-bottom: 1px solid rgba(49,43,39,0.10); }
.accordion__button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 2px; border: 0; color: var(--ink); background: transparent; cursor: pointer; text-align: left; }
.accordion__button span { font-family: var(--serif); font-size: 1.6rem; }
.accordion__button small { margin-right: 12px; color: var(--accent-red); font-family: var(--sans); font-size: 0.68rem; }
.accordion__button b { color: var(--gold-dark); font-size: 1.5rem; font-weight: 400; transition: transform 0.25s ease; }
.accordion__content { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.accordion__content p { padding: 0 6px 24px 42px; color: var(--muted); line-height: 1.7; }
.accordion.is-open .accordion__button b { transform: rotate(45deg); }

.closing { position: relative; min-height: 92svh; display: grid; place-items: end center; overflow: hidden; color: #fff; }
.closing__photo { position: absolute; inset: 0; background: url("assets/closing-photo.jpg") center 35% / cover no-repeat; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,18,16,0.08), rgba(20,18,16,0.74)); }
.closing__content { position: relative; z-index: 2; width: min(760px, calc(100% - 40px)); padding: 100px 0 70px; text-align: center; }
.closing h2 { font-size: clamp(3.2rem, 13vw, 6rem); }
.closing p { color: #f7dcc8; font-family: var(--script); font-size: 2rem; }
footer { padding: 20px; color: var(--muted); background: #eee3d8; text-align: center; font-size: 0.78rem; }

.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s ease, transform 0.9s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@media (min-width: 900px) {
  .hero {
    min-height: 100svh;
    align-items: center;
    background:
      radial-gradient(circle at 10% 10%, rgba(127,15,36,0.06), transparent 26rem),
      linear-gradient(135deg, #f5efe6 0%, #f3e8db 58%, #ebdfd0 100%);
    color: var(--ink);
  }
  .hero__image {
    inset: 92px 6vw 92px auto;
    width: min(40vw, 560px);
    border-radius: 36px;
    box-shadow: 0 25px 60px rgba(54, 31, 20, 0.18);
    background: url("assets/hero-photo.jpg") center 20% / cover no-repeat;
    transform: none;
  }
  .hero__shade {
    background: linear-gradient(90deg, rgba(246,241,231,0.96) 0%, rgba(246,241,231,0.90) 46%, rgba(246,241,231,0.24) 68%, rgba(246,241,231,0) 82%);
  }
  .hero__content {
    width: min(620px, calc(100% - 40px));
    margin: 0 auto 0 6vw;
    padding: 120px 0 80px;
    text-align: left;
  }
  .hero__phrase { color: var(--muted); }
  .scroll-cue { align-items: flex-start; color: var(--gold-dark); }
  .couple { text-shadow: none; }
}

@media (min-width: 760px) {
  .section { padding: 120px 32px; }
  .event-grid { grid-template-columns: repeat(2, 1fr); }
  .choice-row { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-auto-rows: 280px; }
  .form-card { padding: 34px; }
}


/* =========================================================
   V3 · UBICACIÓN / MAPS / WAZE
   ========================================================= */

.event-card {
  position: relative;
}

.event-card dd strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
  font-weight: 600;
}

.address {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.same-place-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 7px 11px;
  border: 1px solid rgba(94, 115, 88, 0.28);
  border-radius: 999px;
  color: var(--accent-green);
  background: rgba(94, 115, 88, 0.08);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.same-place-note {
  margin: 24px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--accent-green);
  border-radius: 0 14px 14px 0;
  color: var(--muted);
  background: rgba(94, 115, 88, 0.07);
  font-size: 0.9rem;
  line-height: 1.7;
}

.event-card__actions--nav {
  align-items: stretch;
}

.btn--maps,
.btn--waze {
  flex: 1 1 150px;
  color: var(--ink);
  background: #fff;
  border-color: rgba(49,43,39,0.10);
  box-shadow: 0 8px 22px rgba(49,43,39,0.06);
}

.btn--maps:hover,
.btn--waze:hover {
  background: #fbf8f3;
}

.nav-logo {
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-logo--maps {
  background: linear-gradient(135deg, #3a7be0, #34a853 55%, #fbbc04);
}

.nav-logo--waze {
  color: #264653;
  background: #64c7e8;
}

.location-footnote {
  width: min(700px, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 28px auto 0;
  padding: 18px 20px;
  border: 1px solid rgba(176,141,87,0.15);
  border-radius: 18px;
  background: rgba(255,255,255,0.52);
  color: var(--muted);
  text-align: left;
}

.location-footnote > span {
  font-size: 1.5rem;
}

.location-footnote p {
  margin: 0;
  line-height: 1.6;
}

.location-footnote strong {
  color: var(--ink);
}

@media (max-width: 520px) {
  .same-place-badge {
    position: static;
    display: inline-block;
    margin-bottom: 18px;
  }

  .event-card__actions--nav .btn {
    width: 100%;
    flex-basis: 100%;
  }
}


/* =========================================================
   V4 · CAMBIOS SOLICITADOS
   ========================================================= */

:root {
  --display: "Playfair Display", Georgia, serif;
}

/* Intro sin foto pixelada */
.intro__backdrop {
  background:
    radial-gradient(circle at 20% 20%, rgba(127, 15, 36, 0.08), transparent 22rem),
    radial-gradient(circle at 80% 80%, rgba(94, 115, 88, 0.08), transparent 20rem),
    linear-gradient(180deg, #f2ece2 0%, #e8dfd1 100%) !important;
}

/* Nombres con otra tipografía y mejor composición */
.couple {
  font-family: var(--display);
  font-size: clamp(3.2rem, 12vw, 6.3rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.couple em {
  color: #e7c9ad;
}

.hero__content {
  max-width: 680px;
}

@media (min-width: 900px) {
  .hero__content {
    width: min(680px, calc(100% - 40px));
  }

  .couple {
    font-size: clamp(3.8rem, 7vw, 5.8rem);
  }
}

/* Un solo cajón para ceremonia y recepción */
.event-grid--single {
  max-width: 860px;
  margin: 38px auto 0;
}

.event-card--combined {
  max-width: 860px;
  margin: 0 auto;
}

.event-card--combined .event-card__actions {
  margin-top: 28px;
}

.same-place-badge {
  background: rgba(94, 115, 88, 0.10);
}

.location-footnote {
  max-width: 760px;
}

/* Quitamos espacio que dejaba la sección de playlist */
#detalles {
  scroll-margin-top: 30px;
}


/* V5 */
.gallery--six .gallery__item:nth-child(odd) { min-height: 280px; }
.gallery--six .gallery__item:nth-child(even) { min-height: 340px; }
@media (min-width: 760px) {
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .gallery__item { min-height: 300px; }
  .gallery--six .gallery__item:nth-child(1), .gallery--six .gallery__item:nth-child(4) { min-height: 380px; }
  .gallery--six .gallery__item:nth-child(2), .gallery--six .gallery__item:nth-child(5) { min-height: 300px; }
  .gallery--six .gallery__item:nth-child(3), .gallery--six .gallery__item:nth-child(6) { min-height: 340px; }
}


/* V6: card ancho + centrado, galería mejor centrada */
.event-grid--single {
  display: flex;
  justify-content: center;
}
.event-card--combined {
  width: min(1040px, 100%);
  max-width: 1040px;
  margin: 0 auto;
}

/* escritorio: usar mejor el ancho */
@media (min-width: 900px) {
  .event-card--combined {
    padding: 42px 42px 34px;
  }
  .event-card--combined dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 28px;
    align-items: start;
  }
  .event-card--combined dl > div {
    min-height: 118px;
  }
  .same-place-note {
    max-width: 100%;
  }
  .event-card--combined .event-card__actions--nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}

/* galería: centrar mejor a ustedes dentro de cada recorte */
.gallery__item--a { background-position: center 76% !important; }
.gallery__item--b { background-position: center 43% !important; }
.gallery__item--c { background-position: center 72% !important; }
.gallery__item--d { background-position: center 66% !important; }
.gallery__item--e { background-position: center 78% !important; }
.gallery__item--f { background-position: center 48% !important; }

@media (min-width: 760px) {
  .gallery__item { min-height: 360px; }
  .gallery--six .gallery__item:nth-child(1),
  .gallery--six .gallery__item:nth-child(4) { min-height: 440px; }
  .gallery--six .gallery__item:nth-child(2),
  .gallery--six .gallery__item:nth-child(5) { min-height: 340px; }
  .gallery--six .gallery__item:nth-child(3),
  .gallery--six .gallery__item:nth-child(6) { min-height: 390px; }
}


/* V7: compartir fotos */
.photo-share__lead {
  max-width: 820px;
  margin: 0 auto 28px;
}
.photo-share-card {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid rgba(176,141,87,0.14);
  border-radius: 30px;
  background: rgba(255,255,255,0.88);
  box-shadow: var(--shadow-soft);
}
.photo-share__qr-wrap {
  text-align: center;
}
.photo-share__qr {
  width: min(100%, 250px);
  display: block;
  margin: 0 auto 12px;
  padding: 10px;
  border-radius: 18px;
  background: white;
  box-shadow: var(--shadow-soft);
}
.photo-share__hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.photo-share__content {
  text-align: left;
}
.photo-share__content h3 {
  margin-bottom: 10px;
  font-size: 2.1rem;
}
.photo-share__content p {
  color: var(--muted);
  line-height: 1.75;
}
.photo-share__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 18px 0 18px;
}
.photo-share__steps {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}
.photo-share__steps li::marker {
  color: var(--accent-red);
  font-weight: 700;
}
@media (min-width: 820px) {
  .photo-share-card {
    grid-template-columns: 280px 1fr;
    padding: 34px;
  }
}


/* V12 · RSVP por cupos */
.rsvp-seats {
  margin: 0 0 20px;
  padding: 14px 18px;
  border-radius: 16px;
  text-align: center;
  color: var(--wine, #5b2631);
  background: rgba(176, 141, 87, 0.10);
  border: 1px solid rgba(176, 141, 87, 0.18);
}
.rsvp-seats strong {
  color: var(--accent-red, #7f0f24);
}
.guest-fields {
  display: grid;
  gap: 14px;
}
#attendingFields[hidden] {
  display: none !important;
}


/* =========================================================
   V16 · ANIMACIONES PREMIUM
   ========================================================= */

/* Curva orgánica entre portada y contenido */
.wave-separator {
  position: relative;
  z-index: 8;
  height: 72px;
  margin-top: -54px;
  pointer-events: none;
  overflow: hidden;
}
.wave-separator::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -72px;
  width: 140%;
  height: 140px;
  transform: translateX(-50%);
  border-radius: 50% 50% 0 0 / 80% 80% 0 0;
  background: var(--ivory);
}

/* Adornos botánicos dibujados con CSS: no requieren imágenes */
.section--decorated {
  position: relative;
  overflow: hidden;
}
.section--decorated::before,
.section--decorated::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 170px;
  height: 250px;
  opacity: .15;
  pointer-events: none;
  filter: blur(.1px);
  background:
    radial-gradient(ellipse at 30% 18%, var(--accent-green) 0 14%, transparent 15%),
    radial-gradient(ellipse at 66% 32%, var(--accent-wine) 0 12%, transparent 13%),
    radial-gradient(ellipse at 28% 49%, var(--accent-green) 0 13%, transparent 14%),
    radial-gradient(ellipse at 70% 65%, var(--gold) 0 11%, transparent 12%),
    radial-gradient(ellipse at 35% 81%, var(--accent-wine) 0 10%, transparent 11%),
    linear-gradient(73deg, transparent 48%, rgba(94,115,88,.7) 49% 51%, transparent 52%);
  transform-origin: center;
  animation: botanicalSway 8s ease-in-out infinite alternate;
}
.section--decorated::before {
  left: -56px;
  top: 26px;
  transform: rotate(-24deg);
}
.section--decorated::after {
  right: -60px;
  bottom: 10px;
  transform: rotate(160deg);
  animation-delay: -3s;
}
.section--decorated-right::before { top: auto; bottom: 20%; }
.section--decorated > .section__inner { position: relative; z-index: 2; }
@keyframes botanicalSway {
  from { margin-top: -4px; margin-left: -2px; }
  to   { margin-top: 9px; margin-left: 7px; }
}

/* Hojitas flotantes discretas en portada/cierre */
.ambient-leaves {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}
.ambient-leaves span {
  position: absolute;
  width: 15px;
  height: 8px;
  border-radius: 100% 0 100% 0;
  background: rgba(245, 212, 183, .58);
  box-shadow: 0 0 18px rgba(245,212,183,.12);
  animation: leafDrift 12s linear infinite;
  opacity: 0;
}
.ambient-leaves span:nth-child(1){left:8%;top:12%;animation-delay:0s;animation-duration:13s}
.ambient-leaves span:nth-child(2){left:22%;top:4%;animation-delay:-4s;animation-duration:16s;background:rgba(194,205,176,.52)}
.ambient-leaves span:nth-child(3){left:52%;top:8%;animation-delay:-8s;animation-duration:15s}
.ambient-leaves span:nth-child(4){left:74%;top:2%;animation-delay:-2s;animation-duration:17s;background:rgba(194,205,176,.5)}
.ambient-leaves span:nth-child(5){left:88%;top:17%;animation-delay:-10s;animation-duration:14s}
.ambient-leaves span:nth-child(6){left:38%;top:20%;animation-delay:-6s;animation-duration:18s;background:rgba(194,205,176,.5)}
@keyframes leafDrift {
  0% { opacity: 0; transform: translate3d(0,-30px,0) rotate(0deg); }
  12% { opacity: .75; }
  78% { opacity: .55; }
  100% { opacity: 0; transform: translate3d(48px,105vh,0) rotate(420deg); }
}

/* Ken Burns cinematográfico */
.hero__image,
.photo-break__image,
.closing__photo {
  will-change: transform;
}
.hero__image.is-cinematic {
  animation: cinematicHero 14s ease-out both;
}
.photo-break__image.is-cinematic,
.closing__photo.is-cinematic {
  animation: cinematicPhoto 12s ease-out both;
}
@keyframes cinematicHero {
  from { transform: scale(1.02); }
  to   { transform: scale(1.095) translate3d(-.5%, -.4%, 0); }
}
@keyframes cinematicPhoto {
  from { transform: scale(1.02); }
  to   { transform: scale(1.105) translate3d(.5%, -.7%, 0); }
}
@media (min-width: 900px) {
  .hero__image.is-cinematic {
    animation-name: cinematicHeroDesktop;
  }
  @keyframes cinematicHeroDesktop {
    from { transform: scale(1); }
    to { transform: scale(1.055) translate3d(-.4%, -.4%, 0); }
  }
}

/* Entradas con un poco más de personalidad */
.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0) scale(.985);
  filter: blur(2px);
  transition:
    opacity .9s cubic-bezier(.22,.61,.36,1),
    transform .9s cubic-bezier(.22,.61,.36,1),
    filter .9s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
  filter: blur(0);
}

/* Los títulos aparecen con una línea de acento */
.section__inner > h2,
.photo-share__content h3 {
  position: relative;
}
.section__inner > h2::after {
  content: "";
  display: block;
  width: 0;
  height: 1px;
  margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transition: width 1.1s .25s ease;
}
.section__inner.is-visible > h2::after,
.reveal.is-visible > h2::after {
  width: min(150px, 38vw);
}

/* Galería: reveal escalonado + hover elegante */
.gallery__item {
  position: relative;
  opacity: 0;
  transform: translate3d(0, 34px, 0) scale(.965);
  transition:
    opacity .8s cubic-bezier(.2,.75,.25,1),
    transform .9s cubic-bezier(.2,.75,.25,1),
    box-shadow .35s ease;
}
.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 62%, rgba(40,30,24,.10));
  opacity: 0;
  transition: opacity .35s ease;
}
.gallery__item.is-photo-visible {
  opacity: 1;
  transform: translate3d(0,0,0) scale(1);
}
.gallery__item.is-photo-visible:nth-child(2){transition-delay:.08s}
.gallery__item.is-photo-visible:nth-child(3){transition-delay:.16s}
.gallery__item.is-photo-visible:nth-child(4){transition-delay:.24s}
.gallery__item.is-photo-visible:nth-child(5){transition-delay:.32s}
.gallery__item.is-photo-visible:nth-child(6){transition-delay:.40s}
@media (hover:hover) {
  .gallery__item:hover {
    transform: translateY(-8px) scale(1.018);
    box-shadow: 0 20px 46px rgba(61,35,24,.16);
  }
  .gallery__item:hover::after { opacity: 1; }
}

/* QR: entrada y brillo suave */
.photo-share__qr-wrap {
  position: relative;
  overflow: visible;
}
.photo-share__qr {
  transform: scale(.92) rotate(-1deg);
  opacity: 0;
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.8,.2,1);
}
.photo-share-card.is-visible .photo-share__qr,
.photo-share__qr.is-qr-visible {
  opacity: 1;
  transform: scale(1) rotate(0);
}
.photo-share__qr-wrap::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 270px;
  height: 270px;
  transform: translate(-50%,-50%) scale(.7);
  border: 1px solid rgba(176,141,87,.18);
  border-radius: 50%;
  opacity: 0;
  animation: qrHalo 3.6s ease-in-out infinite;
  pointer-events: none;
}
@keyframes qrHalo {
  0%,100% { opacity:0; transform:translate(-50%,-50%) scale(.72); }
  45% { opacity:.65; }
  75% { opacity:0; transform:translate(-50%,-50%) scale(1.02); }
}

/* Botones con destello muy sutil */
.btn--gold {
  position: relative;
  overflow: hidden;
}
.btn--gold::after {
  content: "";
  position: absolute;
  top: -60%;
  left: -55%;
  width: 34%;
  height: 220%;
  transform: rotate(18deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.28), transparent);
  transition: left .75s ease;
}
@media (hover:hover) {
  .btn--gold:hover::after { left: 125%; }
}

/* Respeta accesibilidad / batería */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .gallery__item,
  .photo-share__qr,
  .reveal { opacity: 1 !important; transform: none !important; filter:none !important; }
}


/* =====================
   V17 ajustes visuales
   ===================== */

/* Sustituimos los adornos botánicos por ilustraciones lineales más finas */
.section--decorated::before,
.section--decorated::after {
  width: 220px;
  height: 300px;
  opacity: .34;
  filter: none;
  background: none;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.section--decorated::before {
  left: -68px;
  top: 34px;
  transform: rotate(-9deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 250'%3E%3Cg fill='none' stroke='%23b48d57' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Cpath d='M77 239C73 173 80 117 89 16'/%3E%3Cpath d='M89 40c-21 6-34 18-42 37 21 2 38-4 50-20'/%3E%3Cpath d='M87 80c-25 3-39 14-50 33 24 4 41-2 54-18'/%3E%3Cpath d='M84 123c-22 2-34 13-44 31 22 2 37-3 48-17'/%3E%3Cpath d='M79 166c-18 4-29 13-36 27 16 2 29-2 39-12'/%3E%3Cpath d='M92 60c17 6 28 17 35 31-18 3-32-2-41-15'/%3E%3Cpath d='M92 103c18 6 31 16 39 31-20 2-34-2-44-16'/%3E%3Cpath d='M90 148c15 4 24 13 31 25-16 2-27-2-36-12'/%3E%3C/g%3E%3C/svg%3E");
}
.section--decorated::after {
  right: -76px;
  bottom: 24px;
  transform: rotate(10deg);
  animation-delay: -2.8s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 250'%3E%3Cg fill='none' stroke='%238b2233' stroke-width='2.05' stroke-linecap='round' stroke-linejoin='round' opacity='0.92'%3E%3Cpath d='M79 240C82 182 78 109 70 15'/%3E%3Cpath d='M70 39c20 7 33 21 41 39-22 2-39-5-49-20'/%3E%3Cpath d='M73 84c23 5 38 17 47 35-24 2-41-5-52-20'/%3E%3Cpath d='M75 129c19 5 31 16 39 31-19 2-34-4-43-16'/%3E%3Cpath d='M79 172c15 4 24 12 32 24-15 1-26-3-34-10'/%3E%3Cpath d='M68 60c-17 7-29 19-35 34 18 2 32-4 40-16'/%3E%3Cpath d='M69 106c-18 7-30 20-36 34 20 3 33-3 41-15'/%3E%3Cpath d='M72 151c-15 5-24 14-30 25 15 2 25-2 33-11'/%3E%3C/g%3E%3C/svg%3E");
}

/* Hojitas más visibles y un poco más numerosas */
.ambient-leaves span {
  width: 21px;
  height: 11px;
  background: rgba(247, 222, 200, .86);
  box-shadow: 0 0 24px rgba(245,212,183,.22);
}
.ambient-leaves--hero span:nth-child(1){left:6%;top:16%;animation-delay:0s;animation-duration:13s}
.ambient-leaves--hero span:nth-child(2){left:14%;top:6%;animation-delay:-3s;animation-duration:15s;background:rgba(194,205,176,.72)}
.ambient-leaves--hero span:nth-child(3){left:28%;top:11%;animation-delay:-6s;animation-duration:14s}
.ambient-leaves--hero span:nth-child(4){left:42%;top:7%;animation-delay:-1.5s;animation-duration:18s;background:rgba(194,205,176,.68)}
.ambient-leaves--hero span:nth-child(5){left:56%;top:13%;animation-delay:-9s;animation-duration:16s}
.ambient-leaves--hero span:nth-child(6){left:67%;top:8%;animation-delay:-4s;animation-duration:17s;background:rgba(194,205,176,.68)}
.ambient-leaves--hero span:nth-child(7){left:76%;top:18%;animation-delay:-11s;animation-duration:15s}
.ambient-leaves--hero span:nth-child(8){left:84%;top:6%;animation-delay:-7s;animation-duration:16s;background:rgba(194,205,176,.72)}
.ambient-leaves--hero span:nth-child(9){left:91%;top:14%;animation-delay:-5s;animation-duration:13s}
.ambient-leaves--hero span:nth-child(10){left:35%;top:20%;animation-delay:-12s;animation-duration:18s;background:rgba(194,205,176,.66)}

.ambient-leaves--closing span:nth-child(1){left:9%;top:14%;animation-delay:0s;animation-duration:13s}
.ambient-leaves--closing span:nth-child(2){left:22%;top:9%;animation-delay:-4s;animation-duration:15s;background:rgba(194,205,176,.70)}
.ambient-leaves--closing span:nth-child(3){left:38%;top:6%;animation-delay:-8s;animation-duration:16s}
.ambient-leaves--closing span:nth-child(4){left:54%;top:10%;animation-delay:-2s;animation-duration:17s;background:rgba(194,205,176,.68)}
.ambient-leaves--closing span:nth-child(5){left:69%;top:8%;animation-delay:-10s;animation-duration:14s}
.ambient-leaves--closing span:nth-child(6){left:80%;top:14%;animation-delay:-6s;animation-duration:15s;background:rgba(194,205,176,.70)}
.ambient-leaves--closing span:nth-child(7){left:88%;top:4%;animation-delay:-11s;animation-duration:18s}
.ambient-leaves--closing span:nth-child(8){left:48%;top:18%;animation-delay:-13s;animation-duration:16s;background:rgba(194,205,176,.68)}

@keyframes leafDrift {
  0% { opacity: 0; transform: translate3d(0,-26px,0) rotate(0deg) scale(.86); }
  12% { opacity: .95; }
  78% { opacity: .72; }
  100% { opacity: 0; transform: translate3d(65px,105vh,0) rotate(500deg) scale(1.05); }
}

/* Copas de vino laterales en la sección RSVP */
.section--rsvp { position: relative; overflow: hidden; }
.rsvp-side-ornaments {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.wine-glass {
  position: absolute;
  top: 52%;
  width: clamp(100px, 10vw, 155px);
  height: clamp(200px, 22vw, 280px);
  opacity: .62;
  transform-origin: center;
  filter: drop-shadow(0 10px 24px rgba(125,53,67,.10));
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  animation: wineFloat 5.4s ease-in-out infinite;
}
.wine-glass--left {
  left: max(16px, calc(50% - 640px));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 250'%3E%3Cg fill='none' stroke='%23b48d57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20c8 5 20 9 39 11 12 1 26 1 41 8 2 18-4 41-20 54-11 10-25 15-40 15S11 103 5 90C2 54 10 34 20 20Z'/%3E%3Cpath d='M9 43c18 2 33 2 48 1 16 0 30 1 43 6'/%3E%3Cpath d='M39 108c2 18 4 35 2 52-1 10-4 19-6 28'/%3E%3Cpath d='M38 185c11 3 22 3 34 1'/%3E%3Cpath d='M53 186c0 12 0 24 1 36'/%3E%3Cpath d='M29 226c14-6 31-8 48-5 10 2 18 5 23 10-12 6-28 8-48 5-11-1-18-4-23-10Z'/%3E%3C/g%3E%3C/svg%3E");
}
.wine-glass--right {
  right: max(16px, calc(50% - 640px));
  transform: scaleX(-1);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 250'%3E%3Cg fill='none' stroke='%23b48d57' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 20c8 5 20 9 39 11 12 1 26 1 41 8 2 18-4 41-20 54-11 10-25 15-40 15S11 103 5 90C2 54 10 34 20 20Z'/%3E%3Cpath d='M9 43c18 2 33 2 48 1 16 0 30 1 43 6'/%3E%3Cpath d='M39 108c2 18 4 35 2 52-1 10-4 19-6 28'/%3E%3Cpath d='M38 185c11 3 22 3 34 1'/%3E%3Cpath d='M53 186c0 12 0 24 1 36'/%3E%3Cpath d='M29 226c14-6 31-8 48-5 10 2 18 5 23 10-12 6-28 8-48 5-11-1-18-4-23-10Z'/%3E%3C/g%3E%3C/svg%3E");
  animation-delay: -2.4s;
}
@keyframes wineFloat {
  0%,100% { transform: translateY(-50%) rotate(-2deg); }
  50% { transform: translateY(calc(-50% - 10px)) rotate(2deg); }
}
.wine-glass--right { animation-name: wineFloatRight; }
@keyframes wineFloatRight {
  0%,100% { transform: translateY(-50%) scaleX(-1) rotate(-2deg); }
  50% { transform: translateY(calc(-50% - 10px)) scaleX(-1) rotate(2deg); }
}

/* QR con efecto más evidente */
.photo-share__qr-wrap {
  filter: drop-shadow(0 14px 30px rgba(70,40,28,.12));
}
.photo-share__qr {
  transform: scale(.88) rotate(-2deg);
  opacity: 0;
}
.photo-share-card.is-visible .photo-share__qr,
.photo-share__qr.is-qr-visible {
  opacity: 1;
  transform: scale(1) rotate(0);
  animation: qrBob 3.6s ease-in-out infinite;
}
.photo-share__qr-wrap::after {
  width: 300px;
  height: 300px;
  border: 1px solid rgba(176,141,87,.28);
}
@keyframes qrBob {
  0%,100% { transform: scale(1) translateY(0) rotate(0); }
  50% { transform: scale(1.03) translateY(-6px) rotate(.4deg); }
}

/* Mejora de foto final y footer */
.closing {
  min-height: 82svh;
  padding: 56px 0 0;
  place-items: center;
}
.closing__photo {
  inset: 26px 22px 128px;
  border-radius: 34px;
  background-position: center 22%;
  box-shadow: 0 24px 60px rgba(34, 22, 16, .22);
}
.closing::after {
  background: linear-gradient(180deg, rgba(20,18,16,0.10), rgba(20,18,16,0.62));
  border-radius: 34px;
  inset: 26px 22px 128px;
}
.closing__content {
  padding: 0 22px 84px;
}
.closing__photo.is-cinematic {
  animation: cinematicClosing 11s ease-out both;
}
@keyframes cinematicClosing {
  from { transform: scale(1.01); }
  to   { transform: scale(1.04) translate3d(.2%, -.3%, 0); }
}
footer {
  padding: 22px 20px 28px;
  color: #8b2233;
  background: #eee3d8;
  text-align: center;
  font-size: .86rem;
  letter-spacing: .04em;
}

@media (max-width: 1160px) {
  .wine-glass { display: none; }
}
@media (max-width: 700px) {
  .section--decorated::before,
  .section--decorated::after {
    width: 120px;
    height: 170px;
    opacity: .20;
  }
  .closing__photo,
  .closing::after {
    inset: 16px 12px 146px;
    border-radius: 24px;
  }
  .closing { min-height: 90svh; }
}


/* =====================
   V18 refinamientos
   ===================== */

/* Ramitas con un movimiento más visible y elegante */
.section--decorated::before,
.section--decorated::after {
  opacity: .42;
  animation: botanicalSwayV18 6.2s ease-in-out infinite alternate;
}
.section--decorated::before { transform: rotate(-10deg); }
.section--decorated::after { transform: rotate(12deg); }
@keyframes botanicalSwayV18 {
  0% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(5px, -6px, 0) rotate(2deg); }
  100% { transform: translate3d(10px, 6px, 0) rotate(5deg); }
}
.section--decorated::after { animation-name: botanicalSwayV18Right; }
@keyframes botanicalSwayV18Right {
  0% { transform: translate3d(0, 0, 0) rotate(8deg); }
  50% { transform: translate3d(-6px, -5px, 0) rotate(12deg); }
  100% { transform: translate3d(-10px, 6px, 0) rotate(15deg); }
}

/* Copas rediseñadas: más finas y elegantes */
.wine-glass {
  width: clamp(110px, 10.5vw, 150px);
  height: clamp(210px, 20vw, 260px);
  top: 53%;
  opacity: .78;
  filter: drop-shadow(0 10px 24px rgba(92, 43, 51, .10));
}
.wine-glass--left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 300'%3E%3Cg fill='none' stroke='%23b48d57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 35c2 19 5 36 11 52 10 25 27 39 48 39 20 0 38-13 48-37 7-18 10-37 11-54-37 4-82 4-118 0Z'/%3E%3Cpath d='M50 80c15 5 33 7 55 7 14 0 28-1 42-3' opacity='.9'/%3E%3Cpath d='M81 126v74'/%3E%3Cpath d='M58 201c15 3 31 3 46 0'/%3E%3Cpath d='M75 201v44'/%3E%3Cpath d='M45 255c18-8 42-11 69-7 12 2 22 5 28 11-17 8-41 11-69 8-14-2-23-5-28-12Z'/%3E%3C/g%3E%3Cpath d='M42 48c23 4 44 5 67 5 16 0 29-1 40-2-3 18-6 26-12 38-8 15-20 24-37 25-18 1-32-8-40-23-6-11-12-26-18-43Z' fill='rgba(139,34,51,0.18)'/%3E%3C/svg%3E");
}
.wine-glass--right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 150 300'%3E%3Cg fill='none' stroke='%23b48d57' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M36 35c2 19 5 36 11 52 10 25 27 39 48 39 20 0 38-13 48-37 7-18 10-37 11-54-37 4-82 4-118 0Z'/%3E%3Cpath d='M50 80c15 5 33 7 55 7 14 0 28-1 42-3' opacity='.9'/%3E%3Cpath d='M81 126v74'/%3E%3Cpath d='M58 201c15 3 31 3 46 0'/%3E%3Cpath d='M75 201v44'/%3E%3Cpath d='M45 255c18-8 42-11 69-7 12 2 22 5 28 11-17 8-41 11-69 8-14-2-23-5-28-12Z'/%3E%3C/g%3E%3Cpath d='M42 48c23 4 44 5 67 5 16 0 29-1 40-2-3 18-6 26-12 38-8 15-20 24-37 25-18 1-32-8-40-23-6-11-12-26-18-43Z' fill='rgba(139,34,51,0.18)'/%3E%3C/svg%3E");
}
.rsvp-side-ornaments::after {
  content: "✦";
  position: absolute;
  left: 50%;
  top: 43%;
  font-size: 26px;
  color: rgba(180,141,87,.9);
  opacity: 0;
  transform: translate(-50%, -50%) scale(.6);
  pointer-events: none;
}
.rsvp-side-ornaments.is-cheers::after {
  animation: cheersSpark 1.05s ease forwards;
}
.rsvp-side-ornaments.is-cheers .wine-glass--left {
  animation: cheersLeft 1.05s ease;
}
.rsvp-side-ornaments.is-cheers .wine-glass--right {
  animation: cheersRight 1.05s ease;
}
@keyframes cheersLeft {
  0% { transform: translateY(-50%) rotate(-2deg); }
  35% { transform: translate(calc(100% + 80px), calc(-50% - 8px)) rotate(-18deg); }
  55% { transform: translate(calc(100% + 88px), calc(-50% - 16px)) rotate(-22deg); }
  100% { transform: translateY(-50%) rotate(-2deg); }
}
@keyframes cheersRight {
  0% { transform: translateY(-50%) scaleX(-1) rotate(-2deg); }
  35% { transform: translate(calc(-100% - 80px), calc(-50% - 8px)) scaleX(-1) rotate(-18deg); }
  55% { transform: translate(calc(-100% - 88px), calc(-50% - 16px)) scaleX(-1) rotate(-22deg); }
  100% { transform: translateY(-50%) scaleX(-1) rotate(-2deg); }
}
@keyframes cheersSpark {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.55); }
}

/* Foto final: reencuadre para que salgan abajo y menos blur percibido */
.closing__photo {
  background-position: center 82% !important;
}
.closing__photo.is-cinematic {
  animation: cinematicClosingV18 10s ease-out both;
}
@keyframes cinematicClosingV18 {
  from { transform: scale(1.005); }
  to   { transform: scale(1.018) translate3d(.1%, -.15%, 0); }
}
.closing::after {
  background: linear-gradient(180deg, rgba(20,18,16,0.06), rgba(20,18,16,0.48));
}

/* Hojitas conservadas, pero un poco menos tipo confeti */
.ambient-leaves span {
  border-radius: 100% 0 100% 0;
}


/* =====================
   V19 ajustes pedidos
   ===================== */

/* Copas más elegantes (ya no basadas en el dibujo) */
.wine-glass {
  width: clamp(120px, 11vw, 162px);
  height: clamp(230px, 22vw, 290px);
  opacity: .82;
  filter: drop-shadow(0 10px 24px rgba(126, 84, 42, .10));
}
.wine-glass--left {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 320'%3E%3Cg fill='none' stroke='%23c3a06d' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M44 28c3 21 8 45 18 65 10 20 24 31 43 31s33-11 43-31c10-20 15-44 18-65'/%3E%3Cpath d='M44 28c39 5 82 5 122 0'/%3E%3Cpath d='M84 124v90'/%3E%3Cpath d='M62 213c14 2 28 2 43 0'/%3E%3Cpath d='M82 214v47'/%3E%3Cpath d='M48 272c18-7 42-10 71-8 15 2 27 5 35 11-18 7-43 10-71 8-15-2-27-5-35-11Z'/%3E%3C/g%3E%3Cpath d='M51 48c34 5 71 5 108 0-3 15-7 28-13 40-9 18-22 27-41 27s-32-9-41-27c-6-12-10-25-13-40Z' fill='rgba(171,75,100,0.16)'/%3E%3Cpath d='M56 57c31 4 64 4 98 0' fill='none' stroke='rgba(171,75,100,0.42)' stroke-width='2'/%3E%3C/svg%3E");
}
.wine-glass--right {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 170 320'%3E%3Cg fill='none' stroke='%23c3a06d' stroke-width='2.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M44 28c3 21 8 45 18 65 10 20 24 31 43 31s33-11 43-31c10-20 15-44 18-65'/%3E%3Cpath d='M44 28c39 5 82 5 122 0'/%3E%3Cpath d='M84 124v90'/%3E%3Cpath d='M62 213c14 2 28 2 43 0'/%3E%3Cpath d='M82 214v47'/%3E%3Cpath d='M48 272c18-7 42-10 71-8 15 2 27 5 35 11-18 7-43 10-71 8-15-2-27-5-35-11Z'/%3E%3C/g%3E%3Cpath d='M51 48c34 5 71 5 108 0-3 15-7 28-13 40-9 18-22 27-41 27s-32-9-41-27c-6-12-10-25-13-40Z' fill='rgba(171,75,100,0.16)'/%3E%3Cpath d='M56 57c31 4 64 4 98 0' fill='none' stroke='rgba(171,75,100,0.42)' stroke-width='2'/%3E%3C/svg%3E");
}

/* Foto final nuevamente a borde completo dentro del marco */
.closing { min-height: 84svh; }
.closing__photo {
  inset: 0 !important;
  border-radius: 38px;
  background-position: center center !important;
  background-size: cover !important;
  box-shadow: none;
}
.closing::after {
  inset: 0 !important;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(20,18,16,0.08), rgba(20,18,16,0.42));
}
.closing__content {
  padding: 0 22px 70px;
}
@media (max-width: 700px) {
  .closing__photo,
  .closing::after {
    inset: 0 !important;
    border-radius: 28px;
  }
}


/* =====================
   V20 ajustes visuales
   ===================== */

/* Quitar completamente las copas dibujadas */
.rsvp-side-ornaments,
.wine-glass,
.wine-glass--left,
.wine-glass--right {
  display: none !important;
}

/* Hacer que el 'Gracias' se lea mejor en la foto final */
.closing .eyebrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(49, 36, 30, 0.38);
  color: #f5ede1;
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 1px 2px rgba(0,0,0,.25);
  box-shadow: 0 8px 20px rgba(0,0,0,.10);
}
.closing h2,
.closing p,
.closing .ornament {
  text-shadow: 0 2px 16px rgba(0,0,0,.18);
}

/* Cámaras pequeñas cayendo en la sección del álbum */
#recuerdos .section__inner {
  position: relative;
  overflow: hidden;
}
.photo-share-cameras {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.photo-share-card,
.photo-share__lead,
#recuerdos .eyebrow,
#recuerdos h2 {
  position: relative;
  z-index: 1;
}
.camera-drop {
  position: absolute;
  width: 34px;
  height: 26px;
  opacity: .45;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 5px 10px rgba(83, 52, 25, .10));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'%3E%3Crect x='10' y='14' width='44' height='26' rx='7' fill='%23f6efe6' stroke='%23b99763' stroke-width='2'/%3E%3Crect x='18' y='10' width='12' height='6' rx='3' fill='%23f6efe6' stroke='%23b99763' stroke-width='2'/%3E%3Ccircle cx='32' cy='27' r='9' fill='none' stroke='%23926932' stroke-width='2.4'/%3E%3Ccircle cx='47' cy='21' r='2.2' fill='%23b81f4a'/%3E%3C/svg%3E");
  animation: cameraFall 12s linear infinite;
}
.camera-drop--1 { left: 5%; top: -2%; animation-delay: 0s; transform: scale(.90) rotate(-7deg); }
.camera-drop--2 { left: 19%; top: 8%; animation-delay: -2.2s; transform: scale(.72) rotate(9deg); }
.camera-drop--3 { right: 12%; top: -4%; animation-delay: -4.6s; transform: scale(.84) rotate(-10deg); }
.camera-drop--4 { right: 3%; top: 20%; animation-delay: -1.4s; transform: scale(.72) rotate(8deg); }
.camera-drop--5 { left: 70%; top: 10%; animation-delay: -6.2s; transform: scale(.66) rotate(-4deg); }
.camera-drop--6 { left: 43%; top: -6%; animation-delay: -8.8s; transform: scale(.78) rotate(6deg); }
@keyframes cameraFall {
  0% { transform: translate3d(0, -12px, 0) rotate(-6deg); opacity: 0; }
  8% { opacity: .42; }
  50% { transform: translate3d(8px, 170px, 0) rotate(8deg); opacity: .48; }
  100% { transform: translate3d(-6px, 340px, 0) rotate(-8deg); opacity: 0; }
}
@media (max-width: 900px) {
  .camera-drop { width: 28px; height: 22px; opacity: .36; }
}


/* =====================
   V21 ajustes
   ===================== */

/* Foto de la sección intermedia: usar mejor encuadre para que la pareja se vea */
.photo-break {
  min-height: 72svh;
  place-items: center;
}
.photo-break__image {
  background: url("assets/photo-break.jpg") center 78% / cover no-repeat !important;
  transform: scale(1.01);
}
.photo-break::after {
  background: linear-gradient(180deg, rgba(28, 22, 18, 0.08) 0%, rgba(28, 22, 18, 0.18) 55%, rgba(28, 22, 18, 0.42) 100%);
}
.photo-break__quote {
  width: min(860px, calc(100% - 40px));
  padding: 46px 18px;
}
.photo-break__quote p {
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}

/* Copas elegantes a los lados del RSVP, con movimiento más visible */
.rsvp-side-ornaments {
  display: block !important;
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.rsvp-side-ornaments::after {
  display: none !important;
  content: none !important;
}
.wine-glass,
.wine-glass--left,
.wine-glass--right {
  display: block !important;
}
.wine-glass {
  position: absolute;
  top: 47%;
  width: 110px;
  height: 150px;
  opacity: 0.92;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 10px 18px rgba(123, 93, 48, 0.12));
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 170'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cpath d='M26 20h68c0 28-6 45-17 56-8 8-17 12-27 12s-19-4-27-12C12 65 6 48 6 20h20Z' fill='%23f8efe8' fill-opacity='.94'/%3E%3Cpath d='M17 47c10 4 22 6 36 6 17 0 34-3 50-9' stroke='%23e9c0c9' stroke-width='5' stroke-linecap='round' opacity='.95'/%3E%3Cpath d='M22 20h76M58 88v44m-16 20h32m-18-20 18 0' stroke='%23c5a366' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='M14 20h92c0 34-8 56-22 69-10 9-21 13-32 13S31 98 21 89C8 76 0 54 0 20Z' stroke='%23c5a366' stroke-width='3.4' stroke-linejoin='round'/%3E%3Cellipse cx='58' cy='152' rx='30' ry='7' stroke='%23c5a366' stroke-width='3.4'/%3E%3C/g%3E%3C/svg%3E");
  animation-duration: 5.8s;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.wine-glass--left {
  left: 4.2%;
  transform-origin: center 75%;
  animation-name: wineFloatLeftBig;
}
.wine-glass--right {
  right: 4.2%;
  transform-origin: center 75%;
  animation-name: wineFloatRightBig;
}
@keyframes wineFloatLeftBig {
  0%,100% { transform: translate3d(0, -14px, 0) rotate(-9deg) scale(1); }
  50% { transform: translate3d(22px, 18px, 0) rotate(7deg) scale(1.03); }
}
@keyframes wineFloatRightBig {
  0%,100% { transform: translate3d(0, 14px, 0) rotate(9deg) scale(1); }
  50% { transform: translate3d(-22px, -18px, 0) rotate(-7deg) scale(1.03); }
}

/* Brindis al confirmar */
.rsvp-side-ornaments.is-cheers .wine-glass--left {
  animation: cheersLeft 0.85s ease-in-out 1 !important;
}
.rsvp-side-ornaments.is-cheers .wine-glass--right {
  animation: cheersRight 0.85s ease-in-out 1 !important;
}
@keyframes cheersLeft {
  0% { transform: translate3d(0, -14px, 0) rotate(-9deg) scale(1); }
  40% { transform: translate3d(54px, -6px, 0) rotate(8deg) scale(1.06); }
  55% { transform: translate3d(60px, -4px, 0) rotate(12deg) scale(1.08); }
  100% { transform: translate3d(0, -14px, 0) rotate(-9deg) scale(1); }
}
@keyframes cheersRight {
  0% { transform: translate3d(0, 14px, 0) rotate(9deg) scale(1); }
  40% { transform: translate3d(-54px, 6px, 0) rotate(-8deg) scale(1.06); }
  55% { transform: translate3d(-60px, 4px, 0) rotate(-12deg) scale(1.08); }
  100% { transform: translate3d(0, 14px, 0) rotate(9deg) scale(1); }
}

@media (max-width: 1100px) {
  .wine-glass {
    width: 88px;
    height: 122px;
    top: 50%;
    opacity: .78;
  }
  .wine-glass--left { left: 1.5%; }
  .wine-glass--right { right: 1.5%; }
}
@media (max-width: 820px) {
  .wine-glass {
    width: 72px;
    height: 98px;
    top: 58px;
    opacity: .42;
  }
  .wine-glass--left { left: -4px; }
  .wine-glass--right { right: -4px; }
  .photo-break__image {
    background-position: center 74% !important;
  }
}


/* =====================
   V22 ajustes de plantilla
   ===================== */

/* Copas del RSVP más elegantes y menos “dibujadas a mano” */
.rsvp-side-ornaments {
  display: block !important;
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.wine-glass {
  display: block !important;
  position: absolute;
  top: 49%;
  width: 128px;
  height: 174px;
  background: url("assets/rsvp-coupe.svg") center / contain no-repeat !important;
  filter: drop-shadow(0 10px 18px rgba(139, 112, 68, 0.14));
  opacity: 0.96;
}
.wine-glass--left {
  left: 4.8%;
  transform-origin: center 78%;
  animation: wineFloatLeftV22 5.6s ease-in-out infinite !important;
}
.wine-glass--right {
  right: 4.8%;
  transform-origin: center 78%;
  animation: wineFloatRightV22 5.6s ease-in-out infinite !important;
}
@keyframes wineFloatLeftV22 {
  0%,100% { transform: translate3d(0, -10px, 0) rotate(-8deg) scale(1); }
  50% { transform: translate3d(20px, 16px, 0) rotate(6deg) scale(1.025); }
}
@keyframes wineFloatRightV22 {
  0%,100% { transform: translate3d(0, 10px, 0) rotate(8deg) scale(1); }
  50% { transform: translate3d(-20px, -16px, 0) rotate(-6deg) scale(1.025); }
}
.rsvp-side-ornaments.is-cheers .wine-glass--left {
  animation: cheersLeftV22 0.9s ease-in-out 1 !important;
}
.rsvp-side-ornaments.is-cheers .wine-glass--right {
  animation: cheersRightV22 0.9s ease-in-out 1 !important;
}
@keyframes cheersLeftV22 {
  0% { transform: translate3d(0, -10px, 0) rotate(-8deg) scale(1); }
  45% { transform: translate3d(54px, -8px, 0) rotate(10deg) scale(1.06); }
  60% { transform: translate3d(60px, -6px, 0) rotate(12deg) scale(1.08); }
  100% { transform: translate3d(0, -10px, 0) rotate(-8deg) scale(1); }
}
@keyframes cheersRightV22 {
  0% { transform: translate3d(0, 10px, 0) rotate(8deg) scale(1); }
  45% { transform: translate3d(-54px, 8px, 0) rotate(-10deg) scale(1.06); }
  60% { transform: translate3d(-60px, 6px, 0) rotate(-12deg) scale(1.08); }
  100% { transform: translate3d(0, 10px, 0) rotate(8deg) scale(1); }
}
@media (max-width: 1100px) {
  .wine-glass {
    width: 98px;
    height: 136px;
    top: 53%;
    opacity: .82;
  }
  .wine-glass--left { left: 1.6%; }
  .wine-glass--right { right: 1.6%; }
}
@media (max-width: 820px) {
  .wine-glass {
    width: 74px;
    height: 104px;
    top: 78px;
    opacity: .42;
  }
  .wine-glass--left { left: -4px; }
  .wine-glass--right { right: -4px; }
}


/* V23 mejoras copas RSVP */
.wine-glass {
  width: 136px !important;
  height: 194px !important;
  background: url("assets/rsvp-coupe.svg") center / contain no-repeat !important;
  opacity: 0.96 !important;
  filter: drop-shadow(0 12px 20px rgba(168, 132, 73, 0.12)) !important;
}
.wine-glass--left { left: 3.8% !important; }
.wine-glass--right { right: 3.8% !important; }
@media (max-width: 1100px) {
  .wine-glass {
    width: 106px !important;
    height: 152px !important;
    opacity: .88 !important;
  }
}
@media (max-width: 820px) {
  .wine-glass {
    width: 82px !important;
    height: 116px !important;
    opacity: .45 !important;
  }
}


/* V24 remove RSVP cups per user request */
.wine-glass, .wine-glass--left, .wine-glass--right { display: none !important; }


/* =====================
   V27 · Regalos + transferencia bancaria
   ===================== */
.gift-content {
  padding-bottom: 4px;
}
.gift-copy {
  margin: 0;
}
.gift-transfer {
  margin-top: 28px;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid rgba(176, 141, 87, .28);
  border-radius: 24px;
  background:
    radial-gradient(circle at 92% 10%, rgba(127, 15, 36, .045), transparent 180px),
    linear-gradient(145deg, rgba(255,255,255,.94), rgba(250,247,241,.96));
  box-shadow: 0 18px 42px rgba(68, 48, 35, .08);
}
.gift-transfer__intro {
  max-width: 690px;
  margin-bottom: 22px;
}
.gift-transfer__eyebrow {
  display: inline-block;
  margin-bottom: 7px;
  font: 700 .68rem/1.2 var(--sans);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--gold);
}
.gift-transfer h3 {
  margin: 0 0 8px;
  font-family: var(--serif);
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  font-weight: 500;
  color: var(--ink);
}
.gift-transfer__intro p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.gift-transfer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(190px, .65fr);
  gap: 24px;
  align-items: stretch;
}
.gift-bank-details {
  display: grid;
  gap: 0;
  border: 1px solid rgba(91, 38, 49, .10);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255,255,255,.72);
}
.gift-bank-row {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(91, 38, 49, .08);
}
.gift-bank-row:last-of-type {
  border-bottom: 0;
}
.gift-bank-row > span {
  font: 700 .70rem/1.3 var(--sans);
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #9b7443;
}
.gift-bank-row strong {
  font-family: var(--sans);
  font-size: .98rem;
  color: var(--ink);
}
.gift-account-line {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.gift-account-line > strong {
  font-size: 1.12rem;
  letter-spacing: .05em;
  color: var(--wine);
}
.gift-copy-button {
  appearance: none;
  border: 1px solid rgba(127, 15, 36, .28);
  border-radius: 999px;
  padding: 9px 14px;
  background: #fff;
  color: var(--wine);
  font: 700 .78rem/1 var(--sans);
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.gift-copy-button:hover {
  transform: translateY(-1px);
  background: var(--wine);
  color: #fff;
  box-shadow: 0 8px 18px rgba(127, 15, 36, .16);
}
.gift-copy-button.is-copied {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}
.gift-copy-status {
  min-height: 22px;
  margin: 0;
  padding: 0 16px 12px;
  font: 600 .78rem/1.4 var(--sans);
  color: var(--green);
}
.gift-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 18px;
  border-radius: 18px;
  background: rgba(246, 241, 231, .72);
  border: 1px solid rgba(176, 141, 87, .18);
}
.gift-qr__frame {
  width: min(100%, 210px);
  padding: 10px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(61, 45, 35, .10);
}
.gift-qr__frame img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  /* Importante: no aplicar filtros ni transformaciones al QR */
  filter: none !important;
  transform: none !important;
}
.gift-qr strong {
  font-family: var(--sans);
  font-size: .88rem;
  color: var(--wine);
}
.gift-qr span {
  margin-top: 5px;
  font-family: var(--sans);
  font-size: .78rem;
  color: var(--muted);
}

@media (max-width: 760px) {
  .gift-transfer {
    margin-top: 22px;
    padding: 18px;
    border-radius: 20px;
  }
  .gift-transfer__grid {
    grid-template-columns: 1fr;
  }
  .gift-bank-row {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .gift-qr {
    padding: 16px;
  }
  .gift-qr__frame {
    width: min(82vw, 220px);
  }
}
