/* ============================================================
   Boda Ana Lucía & Alexander — estilos (mobile-first)
   ============================================================ */

:root {
  /* Paleta — fácil de cambiar */
  --color-bg:        #f6f1e9; /* marfil */
  --color-surface:   #fffdf9; /* tarjetas */
  --color-primary:   #9c5560; /* rosa empolvado profundo (texto/títulos) */
  --color-secondary: #ab7c82; /* rosa empolvado suave */
  --color-accent:    #b69860; /* dorado suave */
  --color-accent-dk: #9c7f47; /* dorado más oscuro */
  --color-dark:      #5e343b; /* rosa vino profundo (fondos oscuros) */
  --color-dark-2:    #4a282e; /* rosa vino aún más oscuro */
  --color-text:      #4a473f;
  --color-muted:     #8a8677;
  --color-line:      #e3dccf;
  --color-whatsapp:  #25d366;

  --font-title: "Playfair Display", "Cormorant Garamond", serif;
  --font-script: "Cormorant Garamond", serif;
  --font-body:  "Montserrat", system-ui, sans-serif;

  --maxw: 1080px;
  --radius: 16px;
  --shadow: 0 12px 34px rgba(94, 52, 59, 0.14);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 68px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  font-weight: 400;
  line-height: 1.65;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

h1, h2, h3 { font-family: var(--font-title); font-weight: 500; color: var(--color-primary); margin: 0; line-height: 1.15; }

a { color: inherit; text-decoration: none; }

/* -------- Layout / secciones -------- */
.section { padding: 72px 22px; }
.section--alt { background: #efe8dc; }
.section__inner { max-width: var(--maxw); margin: 0 auto; }

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent-dk);
  font-weight: 600;
  margin: 0 0 10px;
}

.section__title {
  font-size: clamp(1.9rem, 7vw, 2.9rem);
  margin: 0 0 28px;
}

/* -------- Botones -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 13px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, box-shadow .25s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .ico { font-size: 1.05rem; line-height: 1; }
.ico-svg { width: 20px; height: 20px; flex: 0 0 auto; }

.btn--light { background: rgba(255,255,255,0.92); color: var(--color-primary); }
.btn--light:hover { background: #fff; }

.btn--solid { background: var(--color-accent); color: #fff; box-shadow: 0 8px 22px rgba(182,152,96,0.35); }
.btn--solid:hover { background: var(--color-accent-dk); }

.btn--map { background: var(--color-primary); color: #fff; }
.btn--map:hover { background: var(--color-dark); }

.btn--waze { background: transparent; color: var(--color-primary); border-color: var(--color-primary); }
.btn--waze:hover { background: var(--color-primary); color: #fff; }

/* ============================================================
   NAV (barra fija) + VOLVER ARRIBA
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: #fff;
  transition: background .3s var(--ease), box-shadow .3s, color .3s;
}
.nav__inner {
  max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 12px 22px;
}
.nav__brand {
  font-family: var(--font-title); font-size: 1.1rem; letter-spacing: 0.03em;
  color: inherit; white-space: nowrap; text-shadow: 0 1px 8px rgba(0,0,0,0.4);
}
.nav__brand .amp { font-family: var(--font-script); font-style: italic; color: #f0d9c8; }

.nav.is-scrolled {
  background: rgba(255,253,249,0.96);
  box-shadow: 0 6px 22px rgba(94,52,59,0.12);
  color: var(--color-primary);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.nav.is-scrolled .nav__brand { text-shadow: none; }
.nav.is-scrolled .nav__brand .amp { color: var(--color-accent-dk); }

/* Botón hamburguesa (móvil) */
.nav__toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 42px; padding: 10px; border: 0; background: transparent;
  cursor: pointer; color: inherit; -webkit-tap-highlight-color: transparent;
}
.nav__toggle span {
  display: block; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .3s var(--ease), opacity .2s;
}
.nav.is-open .nav__toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__toggle span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Menú desplegable (móvil) */
.nav__menu {
  list-style: none; margin: 0; padding: 0;
  position: absolute; top: 100%; left: 0; right: 0;
  background: rgba(255,253,249,0.98);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 14px 32px rgba(94,52,59,0.16);
  display: flex; flex-direction: column;
  max-height: 0; overflow: hidden;
  transition: max-height .35s var(--ease);
}
.nav.is-open .nav__menu { max-height: 84vh; }
.nav__menu a {
  display: block; padding: 14px 24px; color: var(--color-primary);
  font-size: 0.9rem; font-weight: 500; letter-spacing: 0.04em;
  border-top: 1px solid var(--color-line);
}
.nav__menu li:first-child a { border-top: 0; }
.nav__cta { color: var(--color-accent-dk); font-weight: 600; }

.to-top {
  position: fixed; right: 18px; bottom: 20px; z-index: 40;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-primary); color: #fff;
  box-shadow: 0 8px 22px rgba(94,52,59,0.35);
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity .3s, transform .3s, visibility .3s, background .2s;
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--color-dark); }
.to-top svg { width: 22px; height: 22px; }

@media (min-width: 860px) {
  .nav__toggle { display: none; }
  .nav__menu {
    position: static; max-height: none; overflow: visible;
    flex-direction: row; align-items: center; gap: 4px;
    background: transparent; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .nav__menu a {
    border: 0; padding: 8px 14px; color: inherit; border-radius: 999px;
    transition: background .2s, color .2s;
  }
  .nav.is-scrolled .nav__menu a { color: var(--color-primary); }
  .nav.is-scrolled .nav__menu a:hover { background: rgba(156,85,96,0.08); }
  .nav__cta { background: var(--color-accent); color: #fff; padding: 8px 20px; }
  .nav__cta:hover { background: var(--color-accent-dk); color: #fff; }
  .nav.is-scrolled .nav__cta { color: #fff; }
}

@media (prefers-reduced-motion: reduce) {
  .nav, .nav__menu, .nav__toggle span, .to-top { transition: none; }
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 22px;
  color: #fff;
  background: #333 url("../assets/img/hero.jpg") center 30% / cover no-repeat;
  background-attachment: scroll;
}
.hero__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.hero__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(46,28,32,0.35) 0%, rgba(46,28,32,0.25) 40%, rgba(46,28,32,0.6) 100%);
}
.hero__content { position: relative; z-index: 2; max-width: 640px; }
.hero__pretitle {
  font-family: var(--font-script);
  font-size: 1.35rem;
  font-style: italic;
  letter-spacing: 0.08em;
  margin: 0 0 6px;
  opacity: 0.95;
}
.hero__names {
  color: #fff;
  font-size: clamp(2.8rem, 13vw, 5.5rem);
  font-weight: 500;
  line-height: 1.02;
  /* Resplandor dorado que late en bucle */
  animation: namesGlow 3.6s ease-in-out infinite;
}
@keyframes namesGlow {
  0%, 100% {
    text-shadow: 0 4px 26px rgba(0,0,0,0.35);
  }
  50% {
    text-shadow:
      0 0 16px rgba(246,231,194,0.95),
      0 0 34px rgba(230,200,120,0.7),
      0 0 58px rgba(220,185,100,0.45),
      0 4px 26px rgba(0,0,0,0.35);
  }
}
/* Ampersand dorado en los nombres, en toda la página */
.amp { color: #f0e4c8; } /* champagne — ideal sobre fondos oscuros */
.story__sign .amp { color: var(--color-accent); }        /* fondo claro: dorado visible */
.nav.is-scrolled .nav__brand .amp { color: var(--color-accent-dk); } /* barra clara al bajar */

.hero__divider {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin: 18px 0; color: #f0e4c8; font-size: 0.8rem;
}
.hero__divider span { display: block; width: 46px; height: 1px; background: currentColor; opacity: 0.7; }

.hero__date {
  font-family: var(--font-title);
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 30px;
}
.hero__date-num { font-size: 1.45em; font-weight: 600; letter-spacing: 0.04em; }
.hero__cta { box-shadow: 0 10px 30px rgba(0,0,0,0.3); }

.hero__scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  z-index: 2; display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: #fff; text-decoration: none;
  animation: scrollFloat 2s ease-in-out infinite;
}
.hero__scroll-label {
  font-size: 0.66rem; letter-spacing: 0.28em; text-transform: uppercase;
  opacity: 0.9; text-shadow: 0 1px 6px rgba(0,0,0,0.4);
}
.hero__scroll-chevrons { display: block; width: 22px; height: 26px; position: relative; }
.hero__scroll-chevrons span {
  position: absolute; left: 50%; width: 13px; height: 13px;
  border-right: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: translateX(-50%) rotate(45deg);
  filter: drop-shadow(0 1px 4px rgba(0,0,0,0.4));
  animation: chevPulse 2s ease-in-out infinite;
}
.hero__scroll-chevrons span:nth-child(1) { top: 0; animation-delay: 0s; }
.hero__scroll-chevrons span:nth-child(2) { top: 9px; animation-delay: 0.2s; }
@keyframes scrollFloat { 0%,100%{ transform: translate(-50%,0); } 50%{ transform: translate(-50%,7px); } }
@keyframes chevPulse { 0%{ opacity: 0.25; } 50%{ opacity: 1; } 100%{ opacity: 0.25; } }

/* ============================================================
   COUNTDOWN
   ============================================================ */
.countdown { text-align: center; background: var(--color-surface); }
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  max-width: 460px;
  margin: 12px auto 0;
}
.countdown__unit {
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  border-radius: 14px;
  padding: 18px 6px;
}
.countdown__num {
  display: block;
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 9vw, 2.8rem);
  color: var(--color-accent-dk);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown__label {
  display: block; margin-top: 8px;
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--color-muted);
}
.countdown__note { font-family: var(--font-script); font-style: italic; font-size: 1.25rem; color: var(--color-secondary); margin: 22px 0 0; }

/* ============================================================
   STORY
   ============================================================ */
.story__grid { display: grid; gap: 30px; align-items: center; }
.story__img img { border-radius: var(--radius); box-shadow: var(--shadow); width: 100%; }
.story__body { color: var(--color-text); }
.story__sign { font-family: var(--font-script); font-style: italic; font-size: 1.35rem; color: var(--color-accent-dk); margin-top: 18px; }

/* ============================================================
   FILM — sección de video cinematográfico
   ============================================================ */
.film {
  position: relative;
  height: 70vh;
  min-height: 420px;
  max-height: 720px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.film__video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover; pointer-events: none;
}
.film__overlay {
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(46,28,32,0.30) 0%, rgba(46,28,32,0.18) 50%, rgba(46,28,32,0.45) 100%);
}
.film__caption { position: relative; z-index: 2; color: #fff; padding: 0 22px; }
.film__caption .hero__divider { color: #f0e4c8; }
.film__text {
  font-family: var(--font-title);
  font-size: clamp(1.8rem, 7vw, 3.2rem);
  margin: 0;
  text-shadow: 0 3px 22px rgba(0,0,0,0.4);
}
/* Revelado letra por letra (las letras las inserta main.js) */
.film__text.is-animated .ch {
  display: inline-block;
  opacity: 0;
  will-change: transform, opacity, filter;
}
@keyframes chIn {
  from { opacity: 0; transform: translateY(0.5em) scale(0.88); filter: blur(4px); }
  to   { opacity: 1; transform: none; filter: blur(0); }
}

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { text-align: center; background: var(--color-surface); }
.timeline__list { list-style: none; margin: 0 auto; padding: 0; max-width: 520px; position: relative; text-align: left; }
.timeline__list::before {
  content: ""; position: absolute; left: 13px; top: 8px; bottom: 8px;
  width: 2px; background: var(--color-line);
}
.timeline__item { position: relative; padding: 0 0 26px 46px; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__dot {
  position: absolute; left: 5px; top: 6px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--color-accent); border: 3px solid var(--color-surface);
  box-shadow: 0 0 0 2px var(--color-accent);
}
.timeline__card { background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 14px; padding: 18px 20px; }
.timeline__icon { font-size: 1.5rem; }
.timeline__card h3 { font-size: 1.4rem; margin: 4px 0 2px; }
.timeline__time { font-weight: 600; color: var(--color-accent-dk); margin: 0; }
.timeline__place { margin: 2px 0 0; color: var(--color-muted); font-size: 0.9rem; }
.timeline__pending { max-width: 520px; margin: 26px auto 0; font-size: 0.82rem; color: var(--color-muted); font-style: italic; }

/* ============================================================
   VENUES
   ============================================================ */
.venues {
  text-align: center; position: relative; overflow: hidden;
  background: var(--color-dark-2) url("../assets/img/venues-bg.jpg") center / cover no-repeat;
}
.venues__overlay {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(74,40,46,0.66) 0%, rgba(74,40,46,0.56) 45%, rgba(74,40,46,0.72) 100%);
}
.venues .section__inner { position: relative; z-index: 1; }
.venues .eyebrow { color: #e6d8b4; }
.venues .section__title { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.venues__grid { display: grid; gap: 22px; margin-top: 8px; }
.venue-card {
  background: var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow);
  text-align: center;
}
.venue-card__head { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.venue-card__icon { font-size: 1.8rem; }
.venue-card__head h3 { font-size: 0.78rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-accent-dk); font-family: var(--font-body); font-weight: 600; }
.venue-card__name { font-family: var(--font-title); font-size: 1.5rem; color: var(--color-primary); margin: 10px 0 4px; }
.venue-card__time { font-weight: 600; margin: 0; }
.venue-card__addr { color: var(--color-muted); font-size: 0.9rem; margin: 6px 0 20px; }
.venue-card__btns { display: grid; gap: 10px; }

/* ============================================================
   DRESS CODE
   ============================================================ */
.dress { text-align: center; background: var(--color-surface); }
.dress__tabs { display: inline-flex; background: var(--color-bg); border: 1px solid var(--color-line); border-radius: 999px; padding: 5px; margin-bottom: 26px; }
.dress__tab {
  border: 0; background: transparent; cursor: pointer;
  font-family: var(--font-body); font-weight: 600; font-size: 0.9rem; color: var(--color-muted);
  padding: 10px 26px; border-radius: 999px; min-height: 44px; transition: all .25s var(--ease);
}
.dress__tab.is-active { background: var(--color-accent); color: #fff; box-shadow: 0 6px 16px rgba(182,152,96,0.35); }

.dress__panel { max-width: 480px; margin: 0 auto; }
.dress__panel[hidden] { display: none; }
.dress__main { font-size: 1.1rem; color: var(--color-primary); margin: 0 0 22px; }
.dress__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--color-muted); margin: 0 0 12px; }
.dress__label span { color: #c0392b; }
.dress__no { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 12px 18px; justify-content: center; }
.dress__no li { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.dress__no em { color: var(--color-muted); font-size: 0.82rem; }
.dress__swatch { width: 20px; height: 20px; border-radius: 50%; box-shadow: 0 1px 3px rgba(0,0,0,0.2); }
.dress__hint { font-size: 0.88rem; color: var(--color-muted); margin-top: 18px; }
.dress__msg { max-width: 520px; margin: 30px auto 0; font-family: var(--font-script); font-style: italic; font-size: 1.3rem; color: var(--color-secondary); }

/* ============================================================
   CONTACT CARDS (hospedaje / transporte)
   ============================================================ */
.cards-sec { text-align: center; }
.contact-grid { display: grid; gap: 16px; margin-top: 8px; grid-template-columns: 1fr; }
.contact-grid--single { max-width: 420px; margin-left: auto; margin-right: auto; }
.contact-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 24px 18px; box-shadow: var(--shadow);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.contact-card:active { transform: scale(0.98); }
.contact-card:hover { box-shadow: 0 16px 40px rgba(94,52,59,0.18); }
.contact-card__ico { font-size: 2rem; }
.contact-card__name { font-family: var(--font-title); font-size: 1.2rem; color: var(--color-primary); }
.contact-card__wa {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 6px;
  background: var(--color-whatsapp); color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 8px 16px; border-radius: 999px;
}

/* ============================================================
   HOTEL / CONDUCTOR CARDS (con foto)
   ============================================================ */
.hotel-grid { display: grid; gap: 20px; margin-top: 8px; grid-template-columns: 1fr; text-align: left; }
.hotel-grid--single { max-width: 460px; margin-left: auto; margin-right: auto; }
.hotel-card {
  background: var(--color-surface); border: 1px solid var(--color-line);
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.hotel-card__img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hotel-card__body { padding: 18px 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.hotel-card__name { font-size: 1.3rem; }
.hotel-card__desc { font-size: 0.9rem; color: var(--color-muted); margin: 0; flex: 1; }
.hotel-card__links { display: flex; gap: 10px; flex-wrap: wrap; }
.btn-wa, .btn-web {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.86rem; margin-top: 4px; transition: transform .2s var(--ease), filter .2s;
}
.btn-wa { background: var(--color-whatsapp); color: #fff; }
.btn-web { background: var(--color-primary); color: #fff; }
.btn-wa:active, .btn-web:active { transform: scale(0.97); }
.btn-wa:hover, .btn-web:hover { filter: brightness(1.05); }

/* ============================================================
   DRESS CODE — dos tarjetas (Hombres / Mujeres)
   ============================================================ */
.dress__intro {
  max-width: 560px; margin: 0 auto 34px; color: var(--color-text); font-size: 0.98rem;
}
.dress__cards {
  display: grid; gap: 22px; grid-template-columns: 1fr;
  max-width: 860px; margin: 0 auto;
}
.dress__card {
  background: var(--color-bg); border: 1px solid var(--color-line);
  border-radius: var(--radius); padding: 30px 22px; box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.dress__card-ico { font-size: 2.4rem; line-height: 1; }
.dress__card-title { font-size: 1.6rem; margin: 10px 0 6px; }
.dress__card-rule { margin: 0; font-size: 0.98rem; color: var(--color-text); }
.dress__card-rule strong { color: var(--color-primary); }

.dress__reserved {
  margin: 22px 0 2px; font-size: 0.72rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--color-muted); font-weight: 600;
}
.dress__reserved span { color: #c0392b; }
.dress__reserved-sub {
  margin: 0 0 18px; font-family: var(--font-script); font-style: italic;
  font-size: 1.15rem; color: var(--color-accent-dk);
}

.swatches {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); gap: 15px 6px;
}
.swatches li {
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  font-size: 0.66rem; color: var(--color-text); line-height: 1.2; text-align: center;
}
.swatch {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--c);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08), 0 2px 6px rgba(0,0,0,0.12);
}
.dress__card-note {
  margin: 20px 0 0; font-size: 0.82rem; color: var(--color-muted); font-style: italic;
}
.dress__card-note--top {
  margin: 0 0 18px; color: var(--color-text); font-style: normal; font-size: 0.86rem;
}

/* ============================================================
   GIFT
   ============================================================ */
.gift {
  text-align: center; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(74,40,46,0.70) 0%, rgba(74,40,46,0.60) 50%, rgba(74,40,46,0.76) 100%),
              var(--color-dark) url("../assets/img/gift-bg.jpg") center / cover no-repeat;
}
.gift .section__inner { position: relative; z-index: 1; }
.gift .eyebrow { color: #e6d8b4; }
.gift .section__title { color: #fff; text-shadow: 0 2px 18px rgba(0,0,0,0.35); }
.gift__icon { font-size: 2.6rem; display: block; margin: 0 auto 14px; }
.gift__text { max-width: 560px; margin: 0 auto; font-size: 1.05rem; color: #f4efe4; }
.gift__text strong { color: #fff; }

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { text-align: center; padding-bottom: 40px; }
.gallery__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px;
  max-width: 900px; margin: 12px auto 0;
}
.gallery__grid img { width: 100%; height: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; cursor: pointer; transition: transform .3s var(--ease), filter .3s; }
.gallery__grid img:hover { transform: scale(1.03); filter: brightness(1.05); }
/* "Ver más": ocultar de la 13 en adelante hasta expandir */
.gallery__grid:not(.is-expanded) img:nth-child(n+7) { display: none; }
.gallery__more-wrap { text-align: center; margin-top: 26px; }

/* ============================================================
   LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  gap: 6px; padding: 20px;
  background: rgba(36, 24, 27, 0.93);
  opacity: 0; visibility: hidden;
  transition: opacity .3s var(--ease), visibility .3s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__stage { margin: 0; display: flex; flex-direction: column; align-items: center; max-width: 92%; }
.lightbox__img {
  max-width: 100%; max-height: 82vh; border-radius: 8px;
  box-shadow: 0 18px 60px rgba(0,0,0,0.55); object-fit: contain;
  transform: scale(0.96); transition: transform .3s var(--ease);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__counter { margin-top: 14px; color: #e6d8b4; font-size: 0.8rem; letter-spacing: 0.15em; }
.lightbox__close {
  position: absolute; top: 16px; right: 18px;
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: 0;
  font-size: 1.8rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav {
  flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.12); color: #fff; border: 0;
  font-size: 2rem; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.lightbox__nav:hover { background: rgba(255,255,255,0.25); }
.lightbox__nav:active { transform: scale(0.92); }

@media (max-width: 560px) {
  .lightbox { padding: 10px; }
  .lightbox__nav { position: absolute; bottom: 20px; z-index: 2; }
  .lightbox__prev { left: 24px; }
  .lightbox__next { right: 24px; }
  .lightbox__img { max-height: 74vh; }
}

/* ============================================================
   RSVP
   ============================================================ */
.rsvp { text-align: center; background: var(--color-dark); color: #f4efe4; }
.rsvp .eyebrow { color: #d9c79b; }
.rsvp .section__title { color: #fff; }
.rsvp__grid { display: grid; gap: 30px; align-items: center; }
.rsvp__media { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.rsvp__video { display: block; width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 5; }
.rsvp__sub { max-width: 460px; margin: 0 auto 30px; opacity: 0.85; }
.rsvp__form { max-width: 420px; margin: 0 auto; text-align: left; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 8px; color: #d9c79b; }
.field__opt { text-transform: none; letter-spacing: 0; opacity: 0.6; font-weight: 400; }
.field input,
.field textarea {
  width: 100%; padding: 14px 16px; border-radius: 12px; border: 1.5px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08); color: #fff; font-family: var(--font-body); font-size: 1rem;
  transition: border .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder,
.field textarea::placeholder { color: rgba(255,255,255,0.45); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--color-accent); background: rgba(255,255,255,0.14); }
.field input.is-invalid,
.field textarea.is-invalid { border-color: #e88; background: rgba(200,60,60,0.12); }
.field__error { display: block; min-height: 1em; margin-top: 6px; font-size: 0.78rem; color: #f3b3b3; }
.rsvp__submit { width: 100%; margin-top: 6px; }
.rsvp__status { min-height: 1.4em; margin: 16px 0 0; text-align: center; font-weight: 500; }
.rsvp__status.ok { color: #bfe3a8; }
.rsvp__status.err { color: #f3b3b3; }
.rsvp__submit[disabled] { opacity: 0.6; cursor: default; }

/* -------- Tarjeta de confirmación -------- */
.rsvp__success {
  max-width: 460px; margin: 0 auto; text-align: center;
  background: rgba(255,255,255,0.06); border: 1.5px solid rgba(217,199,155,0.35);
  border-radius: var(--radius); padding: 34px 26px 30px;
  animation: rsvpIn .5s var(--ease) both;
}
@keyframes rsvpIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.rsvp__check { width: 64px; height: 64px; margin: 0 auto 14px; }
.rsvp__check svg { width: 100%; height: 100%; }
.rsvp__check circle { stroke: var(--color-accent); stroke-width: 3; stroke-dasharray: 151; stroke-dashoffset: 151; animation: drawCircle .5s var(--ease) .15s forwards; }
.rsvp__check path { stroke: #fff; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 48; stroke-dashoffset: 48; animation: drawCheck .35s var(--ease) .55s forwards; }
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

.rsvp__success-title { color: #fff; font-size: 1.5rem; margin-bottom: 8px; }
.rsvp__success-title span { color: var(--color-accent); }
.rsvp__success-sub { opacity: 0.85; margin: 0 auto 22px; font-size: 0.95rem; max-width: 380px; }

.rsvp__details { list-style: none; margin: 0 0 24px; padding: 0; text-align: left; }
.rsvp__details li { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255,255,255,0.12); }
.rsvp__details li:last-child { border-bottom: 1px solid rgba(255,255,255,0.12); }
.rsvp__det-ico { font-size: 1.3rem; flex: 0 0 auto; line-height: 1; }
.rsvp__details strong { display: block; color: #fff; font-weight: 600; font-size: 0.98rem; }
.rsvp__details small { display: block; color: #d9c79b; opacity: 0.9; font-size: 0.82rem; }

.rsvp__cal-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #d9c79b; margin: 0 0 12px; }
.rsvp__cal-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.rsvp__cal { flex: 1 1 160px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.rsvp__cal .ico-svg { width: 18px; height: 18px; }

/* ============================================================
   COMPARTE TUS FOTOS (galería de invitados)
   ============================================================ */
.fotos { text-align: center; }
.fotos__sub { max-width: 560px; margin: 0 auto 30px; color: var(--color-secondary); }
.fotos__sub small { color: var(--color-muted); font-size: 0.85rem; }

.fotos__form { max-width: 460px; margin: 0 auto 40px; text-align: left; }
.fotos .field label { color: var(--color-primary); }
.fotos .field input[type="text"],
.fotos .field input[type="file"] {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1.5px solid var(--color-line);
  background: var(--color-surface); color: var(--color-text); font-family: var(--font-body); font-size: 1rem;
}
.fotos .field input[type="file"] { padding: 11px 14px; cursor: pointer; }
.fotos .field input:focus { outline: none; border-color: var(--color-accent); }
.fotos__submit { width: 100%; margin-top: 6px; }
.fotos__submit[disabled] { opacity: 0.6; cursor: default; }
.fotos__status { min-height: 1.3em; margin: 14px 0 0; text-align: center; font-weight: 500; }
.fotos__status.ok { color: var(--color-accent-dk); }
.fotos__status.err { color: #b4534f; }

.fotos__galeria { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 8px; }
.fotos__item {
  position: relative; display: block; border-radius: 12px; overflow: hidden;
  box-shadow: var(--shadow); background: var(--color-surface); aspect-ratio: 1 / 1;
}
.fotos__item img,
.fotos__item video { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--ease); }
.fotos__item:hover img,
.fotos__item:hover video { transform: scale(1.05); }
.fotos__play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  padding-left: 3px; pointer-events: none; backdrop-filter: blur(2px);
}
.fotos__cred {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 16px 10px 8px;
  font-size: 0.75rem; color: #fff; text-align: left;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
}
.fotos__empty { color: var(--color-muted); margin-top: 20px; }

@media (min-width: 620px) {
  .fotos__galeria { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 900px) {
  .fotos__galeria { grid-template-columns: repeat(4, 1fr); }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-dark); color: #e8dcd7; text-align: center; padding: 60px 22px 46px; }
.footer__names { color: #fff; font-size: clamp(1.8rem, 8vw, 2.6rem); margin: 6px 0; }
.footer__date { letter-spacing: 0.18em; text-transform: uppercase; font-size: 0.8rem; margin: 0 0 4px; }
.footer__hashtag { color: var(--color-accent); font-size: 0.85rem; margin: 4px 0 18px; }
.footer__msg { font-family: var(--font-script); font-style: italic; font-size: 1.3rem; color: #ece3cf; margin: 0; }
.footer .hero__divider { color: var(--color-accent); }

/* ============================================================
   REVEAL ANIMATION
   ============================================================ */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__scroll, .hero__scroll-chevrons span { animation: none; }
  .hero__names { animation: none; }
  .film__text.is-animated .ch { opacity: 1; animation: none !important; }
}

/* ============================================================
   TABLET / DESKTOP
   ============================================================ */
@media (min-width: 720px) {
  .section { padding: 96px 32px; }
  .hero { background-attachment: fixed; }
  .story__grid { grid-template-columns: 1fr 1fr; gap: 46px; }
  .venues__grid { grid-template-columns: 1fr 1fr; }
  .venue-card__btns { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: repeat(3, 1fr); }
  .hotel-grid { grid-template-columns: repeat(3, 1fr); }
  .hotel-grid--single { grid-template-columns: 1fr; }
  .dress__cards { grid-template-columns: 1fr 1fr; align-items: start; }
  .rsvp__grid { grid-template-columns: 1fr 1fr; gap: 50px; }
  .rsvp__content { text-align: left; }
  .rsvp__content .rsvp__sub, .rsvp__content .rsvp__form { margin-left: 0; margin-right: 0; }
  .gallery__grid { grid-template-columns: repeat(4, 1fr); }
}
