/* ===================================================================
   Ana & Jaquelín — Invitación de Boda
   Paleta cálida "Oaxaca": marfil, ocre/amarillo y rosa mexicano
   =================================================================== */

:root {
  --cream:      #faf4ea;   /* fondo principal */
  --cream-2:    #f4e8d4;   /* bandas alternas */
  --white:      #fffdf9;

  --ink:        #3a271e;   /* texto principal (café cálido) */
  --ink-soft:   #7c675a;   /* texto secundario */

  --pink:       #db3f86;   /* rosa mexicano */
  --pink-deep:  #c22e73;
  --pink-soft:  #fbe4f0;
  --pink-glow:  rgba(219, 63, 134, .30);

  --yellow:     #e6a72a;   /* ocre / amarillo Oaxaca */
  --yellow-deep:#c5871a;
  --yellow-soft:#fbedcb;

  --line:       rgba(219, 63, 134, .30);
  --line-soft:  rgba(58, 39, 30, .14);

  --serif-display: 'Playfair Display', Georgia, serif;
  --serif-text:    'Cormorant Garamond', Georgia, serif;
  --sans:          'Montserrat', system-ui, sans-serif;

  --maxw: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Sections ---------- */
.section {
  padding: clamp(4.5rem, 11vw, 8.5rem) clamp(1.25rem, 5vw, 3rem);
  max-width: var(--maxw);
  margin: 0 auto;
  text-align: center;
}
/* banda alterna cálida */
.section--warm {
  max-width: 100%;
  background: var(--cream-2);
}
.section--warm > .reveal { max-width: var(--maxw); margin: 0 auto; }

.section__eyebrow,
.hero__eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .42em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: 1rem;
}

.section__title {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2.2rem, 6vw, 3.4rem);
  line-height: 1.05;
  letter-spacing: .01em;
  color: var(--ink);
  margin-bottom: 2.5rem;
}

/* ===================================================================
   NAV
   =================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem clamp(1.25rem, 5vw, 3rem);
  transition: background .4s ease, padding .4s ease, box-shadow .4s ease;
}
/* velo superior: mantiene el logo legible sobre la parte clara de la foto */
.nav::before {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 130px;
  background: linear-gradient(180deg, rgba(40,20,12,.5) 0%, rgba(40,20,12,.12) 55%, transparent 100%);
  opacity: 1;
  transition: opacity .4s ease;
  pointer-events: none;
  z-index: -1;
}
.nav.is-scrolled::before { opacity: 0; }
.nav.is-scrolled {
  background: rgba(250, 244, 234, .92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding-top: .7rem;
  padding-bottom: .7rem;
  box-shadow: 0 1px 0 var(--line-soft), 0 6px 24px rgba(58,39,30,.08);
}
.nav__brand {
  font-family: var(--serif-display);
  font-size: 1.4rem;
  letter-spacing: .08em;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
  transition: color .4s, text-shadow .4s;
}
.nav__brand span { color: var(--pink); }
.nav.is-scrolled .nav__brand { color: var(--ink); text-shadow: none; }

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(.9rem, 2.4vw, 2rem);
}
.nav__links a {
  font-size: .74rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  text-decoration: none;
  text-shadow: 0 1px 8px rgba(0,0,0,.4);
  transition: color .3s;
}
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); text-shadow: none; }
.nav.is-scrolled .nav__links a:hover { color: var(--pink); }

.nav__cta {
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.55);
  padding: .5rem .95rem;
  border-radius: 30px;
  text-shadow: none !important;
}
.nav__cta:hover { background: var(--pink); border-color: var(--pink); }
.nav.is-scrolled .nav__cta { color: var(--pink) !important; border-color: var(--pink); }
.nav.is-scrolled .nav__cta:hover { color: #fff !important; background: var(--pink); }

@media (max-width: 720px) {
  .nav { padding-left: 1.1rem; padding-right: 1.1rem; }
  .nav__links a:not(.nav__cta) { display: none; }
  .nav__cta { font-size: .68rem; padding: .45rem .8rem; letter-spacing: .12em; }
  .nav__brand { font-size: 1.25rem; }
}

/* ===================================================================
   HERO
   =================================================================== */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute; inset: 0;
  background: url('../assets/img/foto7.jpg') center 40% / cover no-repeat;
  transform: scale(1.08);
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { to { transform: scale(1); } }
/* Overlay cálido: dora la imagen y mantiene el texto legible en toda la portada */
.hero__overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(125% 95% at 50% 52%, rgba(48,22,12,.5) 0%, rgba(48,22,12,.24) 40%, rgba(48,22,12,.06) 66%, transparent 80%),
    linear-gradient(180deg, rgba(42,20,11,.55) 0%, rgba(42,20,11,.2) 26%, rgba(42,20,11,.24) 60%, rgba(42,20,11,.58) 100%);
}
.hero__content {
  position: relative;
  z-index: 2;
  padding: 1.5rem;
}
.hero__eyebrow {
  margin-bottom: 1.6rem;
  color: #ffd9ec;
  text-shadow: 0 2px 14px rgba(0,0,0,.5);
}
.hero__names {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(2.9rem, 13vw, 8rem);
  line-height: .92;
  letter-spacing: .01em;
  color: #fffaf3;
  max-width: 100%;
  text-shadow: 0 6px 44px rgba(30,10,5,.55);
}
.hero__names .amp {
  display: block;
  font-family: var(--serif-text);
  font-style: italic;
  font-weight: 400;
  color: #ffbf5f;
  font-size: .5em;
  line-height: 1.4;
  margin: .1em 0;
  text-shadow: 0 3px 20px rgba(30,10,5,.5);
}
.hero__date {
  margin-top: 2.2rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
  font-size: .8rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: #fffaf3;
  text-shadow: 0 2px 10px rgba(20,8,3,.85), 0 1px 3px rgba(20,8,3,.7);
}
.hero__date-main {
  font-family: var(--serif-text);
  font-size: clamp(1.3rem, 4.5vw, 1.9rem);
  letter-spacing: .12em;
  text-transform: none;
  color: #fffaf3;
  padding: .55rem 0;
  border-top: 1px solid rgba(255,215,150,.6);
  border-bottom: 1px solid rgba(255,215,150,.6);
  text-shadow: 0 2px 12px rgba(20,8,3,.85);
}
.hero__scroll {
  position: absolute;
  bottom: 2.2rem; left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  width: 26px; height: 44px;
  border: 1px solid rgba(255,250,243,.6);
  border-radius: 20px;
  display: flex; justify-content: center;
}
.hero__scroll span {
  width: 3px; height: 8px;
  background: #ffd9ec;
  border-radius: 3px;
  margin-top: 8px;
  animation: scrollDot 1.8s infinite;
}
@keyframes scrollDot {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(14px); }
}

/* ===================================================================
   INTRO
   =================================================================== */
.intro { max-width: 760px; }
.ornament {
  font-size: 1.6rem;
  color: var(--yellow-deep);
  margin-bottom: 1.5rem;
}
.intro__text {
  font-family: var(--serif-text);
  font-size: clamp(1.35rem, 3.6vw, 1.9rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--ink);
}
.intro__signature {
  margin-top: 2rem;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--pink);
}

/* ===================================================================
   COUNTDOWN
   =================================================================== */
.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(.5rem, 2vw, 1.5rem);
  max-width: 620px;
  margin: 0 auto;
}
.countdown__item {
  padding: clamp(1rem, 3vw, 1.8rem) .5rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(58,39,30,.06);
}
.countdown__num {
  display: block;
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 7vw, 3.2rem);
  line-height: 1;
  color: var(--pink-deep);
}
.countdown__label {
  display: block;
  margin-top: .6rem;
  font-size: .62rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* ===================================================================
   VIDEO
   =================================================================== */
.video__frame {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 30px 70px rgba(58,39,30,.22);
  border: 1px solid var(--line);
  aspect-ratio: 16 / 9;
  background: #1a120e;
}
.video__frame video { width: 100%; height: 100%; object-fit: cover; }
.video__play {
  position: absolute; inset: 0;
  margin: auto;
  width: 82px; height: 82px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 0 0 0 var(--pink-glow);
  animation: pulse 2.2s infinite;
  transition: transform .3s, background .3s;
}
.video__play:hover { transform: scale(1.08); background: var(--pink-deep); }
.video__play.is-hidden { display: none; }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 var(--pink-glow); }
  70%  { box-shadow: 0 0 0 22px rgba(219,63,134,0); }
  100% { box-shadow: 0 0 0 0 rgba(219,63,134,0); }
}

/* ===================================================================
   GALLERY
   =================================================================== */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, clamp(150px, 20vw, 210px));
  grid-template-areas:
    "p1 p2 p3"
    "p1 p4 p3"
    "p5 p4 p6";
  gap: 12px;
  margin-top: 2.5rem;
}
.gallery__item {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(58,39,30,.12);
}
.gallery__item--1 { grid-area: p1; }
.gallery__item--2 { grid-area: p2; }
.gallery__item--3 { grid-area: p3; }
.gallery__item--4 { grid-area: p4; }
.gallery__item--5 { grid-area: p5; }
.gallery__item--6 { grid-area: p6; }
.gallery__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s;
  filter: saturate(1.02);
}
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.12); }

/* Móvil: cuadrícula simétrica de 2 columnas (6 fotos = 3 filas exactas) */
@media (max-width: 760px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    grid-auto-rows: clamp(150px, 40vw, 200px);
    grid-template-areas: none;
  }
  .gallery__item { grid-area: auto !important; }
}

/* ===================================================================
   ITINERARY
   =================================================================== */
.timeline {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
  text-align: left;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 27px; top: 12px; bottom: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--pink), var(--yellow));
}
.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.2rem;
  padding: 1.2rem 0;
  align-items: center;
}
.timeline__icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  background: var(--white);
  border: 2px solid var(--pink);
  border-radius: 50%;
  z-index: 1;
  box-shadow: 0 6px 18px rgba(219,63,134,.18);
}
.timeline__time {
  grid-column: 2;
  font-family: var(--sans);
  font-weight: 600;
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--pink);
  margin-bottom: .2rem;
}
.timeline__body { grid-column: 2; }
.timeline__body h3 {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
}
.timeline__body p { color: var(--ink-soft); font-size: .95rem; }
.itinerary__note {
  margin-top: 2.5rem;
  font-size: .95rem;
  color: var(--ink-soft);
  letter-spacing: .02em;
}
.itinerary__note strong { color: var(--ink); }
.itinerary__note span { color: var(--yellow-deep); }

/* ===================================================================
   VENUE
   =================================================================== */
.venue__card {
  max-width: 460px;
  margin: 0 auto 2.5rem;
  padding: 2.2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 14px 34px rgba(58,39,30,.08);
}
.venue__pin { font-size: 2rem; margin-bottom: .8rem; }
.venue__address {
  font-family: var(--serif-text);
  font-size: 1.35rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.6rem;
}
.venue__map {
  max-width: 900px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  height: 380px;
  box-shadow: 0 14px 34px rgba(58,39,30,.1);
}
.venue__map iframe { width: 100%; height: 100%; border: 0; }

/* ===================================================================
   BUTTONS
   =================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  font-family: var(--sans);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
  padding: .95rem 1.8rem;
  border-radius: 40px;
  cursor: pointer;
  transition: transform .25s, box-shadow .3s, background .3s, color .3s;
}
.btn--outline {
  color: var(--pink-deep);
  border: 1px solid var(--pink);
  background: transparent;
}
.btn--outline:hover { background: var(--pink); color: #fff; box-shadow: 0 10px 30px var(--pink-glow); transform: translateY(-2px); }
.btn--wa {
  color: #fff;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  box-shadow: 0 14px 34px var(--pink-glow);
  text-transform: none;
  font-size: 1.05rem;
  letter-spacing: .04em;
  padding: 1.1rem 2rem;
  min-width: 280px;
}
.btn--wa:hover { transform: translateY(-3px); box-shadow: 0 20px 46px var(--pink-glow); }
.btn__wa-ico { flex-shrink: 0; }

/* ===================================================================
   DRESS CODE
   =================================================================== */
.dress__tips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-bottom: 3rem;
}
.dress__tip {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--white);
  font-size: .95rem;
  color: var(--ink);
}
.dress__ico { font-size: 1.2rem; }
.dress__forbidden {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  background: var(--white);
}
.dress__forbidden-title {
  font-size: .72rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1.4rem;
}
.swatches {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}
.swatch { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.swatch__c {
  width: 46px; height: 46px;
  border-radius: 50%;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(58,39,30,.15);
}
.swatch__c::after {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(45deg, transparent 46%, rgba(210,40,40,.95) 46%, rgba(210,40,40,.95) 54%, transparent 54%);
}
.swatch small { font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.dress__forbidden-note {
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
}

/* ===================================================================
   LODGING
   =================================================================== */
.lodging__intro {
  max-width: 620px;
  margin: -1rem auto 3rem;
  color: var(--ink-soft);
  font-size: 1rem;
}
.lodging__intro strong { color: var(--ink); }
.lodging__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  text-align: left;
}
.hotel {
  position: relative;
  padding: 1.8rem 1.4rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 12px 30px rgba(58,39,30,.07);
  display: flex;
  flex-direction: column;
}
.hotel__badge {
  align-self: flex-start;
  font-size: .58rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--yellow);
  padding: .3rem .7rem;
  border-radius: 30px;
  margin-bottom: 1rem;
  font-weight: 700;
}
.hotel__name {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 1.4rem;
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: .5rem;
}
.hotel__addr { font-size: .85rem; color: var(--ink-soft); margin-bottom: .8rem; }
.hotel__rate {
  font-family: var(--serif-text);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--pink-deep);
  margin-bottom: .9rem;
}
.hotel__code {
  font-size: .8rem;
  color: var(--ink);
  background: var(--yellow-soft);
  border: 1px dashed var(--yellow);
  padding: .6rem .7rem;
  border-radius: 6px;
  margin-bottom: .8rem;
}
.hotel__code strong { color: var(--yellow-deep); }
.hotel__contact { font-size: .78rem; color: var(--ink-soft); margin-bottom: 1rem; line-height: 1.5; }
.hotel__link {
  margin-top: auto;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--pink);
  text-decoration: none;
  border-top: 1px solid var(--line-soft);
  padding-top: .9rem;
  transition: color .3s;
  word-break: break-word;
}
.hotel__link:hover { color: var(--pink-deep); }

.lodging__sub {
  margin-top: 3.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.6rem;
  color: var(--ink);
}
.lodging__grid--compact { grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.hotel-mini {
  padding: 1.1rem;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .3s, transform .3s, box-shadow .3s;
}
.hotel-mini:hover { border-color: var(--pink); transform: translateY(-3px); box-shadow: 0 12px 26px rgba(219,63,134,.12); }
.hotel-mini h4 { font-family: var(--serif-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); margin-bottom: .3rem; }
.hotel-mini p { font-size: .78rem; color: var(--ink-soft); margin-bottom: .4rem; }
.hotel-mini span { font-size: .74rem; color: var(--pink); font-weight: 500; letter-spacing: .02em; }

@media (max-width: 860px) {
  .lodging__grid { grid-template-columns: repeat(2, 1fr); }
  .lodging__grid--compact { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lodging__grid, .lodging__grid--compact { grid-template-columns: 1fr; }
}

/* ===================================================================
   RSVP  — banda cálida (amarillo → rosa)
   =================================================================== */
.rsvp {
  max-width: 100%;
  margin: 0;
  background:
    radial-gradient(90% 70% at 50% 0%, rgba(230,167,42,.20), transparent 60%),
    linear-gradient(160deg, var(--yellow-soft) 0%, var(--cream) 42%, var(--pink-soft) 100%);
}
.rsvp > .reveal { max-width: var(--maxw); margin: 0 auto; }
.rsvp__title {
  font-family: var(--serif-display);
  font-weight: 700;
  font-size: clamp(2.8rem, 11vw, 5.5rem);
  line-height: .98;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.rsvp__text { font-size: 1.1rem; color: var(--ink); margin-bottom: 1rem; }
.rsvp__deadline {
  font-size: 1.15rem;
  color: var(--ink-soft);
  line-height: 1.7;
  margin-bottom: 1.4rem;
}
.rsvp__deadline strong { color: var(--pink-deep); font-weight: 600; }
.rsvp__adults {
  font-family: var(--serif-text);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
  margin-bottom: 2.8rem;
}
.rsvp__buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.footer {
  text-align: center;
  padding: 4rem 1.5rem 3rem;
  background: var(--cream-2);
  border-top: 1px solid var(--line-soft);
}
.footer__monogram {
  font-family: var(--serif-display);
  font-weight: 600;
  font-size: 2rem;
  letter-spacing: .1em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.footer__monogram span { color: var(--pink); }
.footer__date {
  font-size: .78rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: .6rem;
}
.footer__credit {
  font-family: var(--serif-text);
  font-style: italic;
  color: var(--pink);
  font-size: 1.1rem;
}

/* ===================================================================
   DINAMISMO — flourish, stagger, marquee, brillo, blobs
   =================================================================== */

/* Flourish animado bajo los títulos */
.section__title { position: relative; }
.section__title::after {
  content: '';
  display: block;
  width: 0;
  height: 2px;
  margin: 1.1rem auto 0;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--pink), var(--yellow));
  transition: width 1.1s cubic-bezier(.2,.7,.2,1) .35s;
}
.reveal.is-visible .section__title::after,
.is-visible .section__title::after { width: 74px; }

/* Aparición escalonada de hijos (galería, tarjetas, cuenta regresiva) */
.stagger > * {
  opacity: 0;
  transform: translateY(28px) scale(.98);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.stagger.is-visible > * { opacity: 1; transform: none; }
.stagger.is-visible > *:nth-child(1)  { transition-delay: .05s; }
.stagger.is-visible > *:nth-child(2)  { transition-delay: .12s; }
.stagger.is-visible > *:nth-child(3)  { transition-delay: .19s; }
.stagger.is-visible > *:nth-child(4)  { transition-delay: .26s; }
.stagger.is-visible > *:nth-child(5)  { transition-delay: .33s; }
.stagger.is-visible > *:nth-child(6)  { transition-delay: .40s; }
.stagger.is-visible > *:nth-child(7)  { transition-delay: .47s; }
.stagger.is-visible > *:nth-child(8)  { transition-delay: .54s; }
.stagger.is-visible > *:nth-child(9)  { transition-delay: .61s; }
.stagger.is-visible > *:nth-child(10) { transition-delay: .68s; }
.stagger.is-visible > *:nth-child(n+11) { transition-delay: .75s; }

/* Listón animado tipo "papel picado" */
.marquee {
  overflow: hidden;
  white-space: nowrap;
  background: var(--pink);
  color: #fff;
  padding: .95rem 0;
  position: relative;
}
.marquee--yellow { background: var(--yellow); color: var(--ink); }
.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 32s linear infinite;
}
.marquee--yellow .marquee__track { animation-duration: 36s; }
.marquee__group {
  display: flex;
  align-items: center;
  flex: none;
}
.marquee__track span {
  padding: 0 1.15rem;
  font-family: var(--serif-text);
  font-style: italic;
  font-size: 1.5rem;
  letter-spacing: .02em;
}
.marquee__track .dot {
  padding: 0 .1rem;
  font-style: normal;
  font-size: .78rem;
  opacity: .8;
  transform: translateY(-2px);
}
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Brillo que barre los botones de WhatsApp */
.btn--wa { position: relative; overflow: hidden; }
.btn--wa::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 45%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.4), transparent);
  transform: skewX(-20deg);
  animation: shine 4s ease-in-out infinite;
}
@keyframes shine { 0%, 55% { left: -75%; } 100% { left: 140%; } }

/* Blobs de color que flotan (dan vida al fondo claro) */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
}
.rsvp { position: relative; overflow: hidden; }
.rsvp > .reveal { position: relative; z-index: 2; }
.blob--1 { width: 340px; height: 340px; background: rgba(230,167,42,.4);  top: -60px; left: -80px;  animation: floatA 13s ease-in-out infinite; }
.blob--2 { width: 300px; height: 300px; background: rgba(219,63,134,.32); bottom: -70px; right: -60px; animation: floatB 16s ease-in-out infinite; }
@keyframes floatA { 0%,100% { transform: translate(0,0); } 50% { transform: translate(30px,26px); } }
@keyframes floatB { 0%,100% { transform: translate(0,0); } 50% { transform: translate(-28px,-30px); } }

/* Degradado del RSVP en movimiento lento */
.rsvp {
  background-size: 180% 180%, 180% 180%;
  animation: rsvpShift 18s ease-in-out infinite;
}
@keyframes rsvpShift {
  0%   { background-position: 0% 0%, 0% 0%; }
  50%  { background-position: 100% 100%, 100% 50%; }
  100% { background-position: 0% 0%, 0% 0%; }
}

/* Pulso suave del corazón/ornamento del intro */
.ornament { animation: beat 2.6s ease-in-out infinite; display: inline-block; }
@keyframes beat { 0%,100% { transform: scale(1); } 50% { transform: scale(1.18); } }

/* ===================================================================
   MENÚ MÓVIL — hamburguesa + overlay
   =================================================================== */
.nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px; height: 42px;
  padding: 9px;
  background: transparent;
  border: 0;
  cursor: pointer;
  z-index: 120;
}
.nav__toggle span {
  display: block;
  height: 2px;
  width: 100%;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 1px 6px rgba(0,0,0,.4);
  transition: transform .35s ease, opacity .25s ease, background .35s ease;
}
.nav.is-scrolled .nav__toggle span { background: var(--ink); box-shadow: none; }
/* transformación a "X" cuando el menú está abierto */
.nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
body.menu-open .nav__toggle span { background: #fff; box-shadow: none; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2.5rem;
  background:
    radial-gradient(120% 90% at 50% 0%, rgba(219,63,134,.22), transparent 60%),
    linear-gradient(160deg, #2a140b 0%, #3a271e 55%, #1f0f08 100%);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity .4s ease, transform .4s ease, visibility .4s;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-menu__links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.4rem;
}
.mobile-menu__links a {
  font-family: var(--serif-display);
  font-size: 2rem;
  letter-spacing: .02em;
  color: #fffaf3;
  text-decoration: none;
  opacity: 0;
  transform: translateY(14px);
  transition: color .3s, opacity .5s ease, transform .5s ease;
}
.mobile-menu.is-open .mobile-menu__links a { opacity: 1; transform: none; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(1) { transition-delay: .08s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(2) { transition-delay: .14s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(3) { transition-delay: .20s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(4) { transition-delay: .26s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(5) { transition-delay: .32s; }
.mobile-menu.is-open .mobile-menu__links a:nth-child(6) { transition-delay: .38s; }
.mobile-menu__links a:active { color: var(--pink); }
.mobile-menu__cta {
  margin-top: .6rem;
  font-family: var(--sans) !important;
  font-size: .82rem !important;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #fff !important;
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  padding: .95rem 2rem;
  border-radius: 40px;
  box-shadow: 0 14px 34px var(--pink-glow);
}
.mobile-menu__foot {
  font-family: var(--serif-display);
  font-size: .8rem;
  letter-spacing: .22em;
  color: rgba(255,250,243,.5);
}
.mobile-menu__foot span { color: var(--pink); }

/* Bloquea el scroll del fondo cuando el menú está abierto */
body.menu-open { overflow: hidden; }

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__toggle { display: flex; }
}

/* ===================================================================
   LIGHTBOX — galería a pantalla completa
   =================================================================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(1rem, 5vw, 3rem);
  background: rgba(20, 10, 6, .92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s;
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  transform: scale(.94);
  transition: transform .35s cubic-bezier(.2,.7,.2,1);
}
.lightbox.is-open .lightbox__img { transform: scale(1); }
.lightbox__close,
.lightbox__nav {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.25);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background .25s, transform .25s;
  -webkit-tap-highlight-color: transparent;
}
.lightbox__close:hover,
.lightbox__nav:hover { background: rgba(219,63,134,.85); transform: scale(1.06); }
.lightbox__close {
  top: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  width: 48px; height: 48px;
  font-size: 2rem;
  line-height: 1;
}
.lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  font-size: 2.2rem;
  line-height: 1;
}
.lightbox__nav:hover { transform: translateY(-50%) scale(1.06); }
.lightbox__nav--prev { left: clamp(.5rem, 3vw, 2rem); }
.lightbox__nav--next { right: clamp(.5rem, 3vw, 2rem); }

.gallery__item { cursor: zoom-in; position: relative; }
.gallery__item::after {
  content: '⤢';
  position: absolute;
  bottom: 10px; right: 12px;
  font-size: 1rem;
  color: #fff;
  opacity: 0;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  transition: opacity .3s;
  pointer-events: none;
}
.gallery__item:hover::after { opacity: .9; }

/* ===================================================================
   COUNTDOWN — micro-animación al cambiar de valor
   =================================================================== */
.countdown__num { transition: transform .25s ease; }
.countdown__num.is-tick { animation: cdTick .5s ease; }
@keyframes cdTick {
  0%   { transform: translateY(0); opacity: 1; }
  35%  { transform: translateY(-6px); opacity: .55; }
  100% { transform: translateY(0); opacity: 1; }
}

/* ===================================================================
   PANTALLAS MUY PEQUEÑAS (<400px)
   =================================================================== */
@media (max-width: 400px) {
  .countdown__grid { grid-template-columns: repeat(2, 1fr); max-width: 300px; }
  .btn--wa { min-width: 0; width: 100%; }
  .mobile-menu__links a { font-size: 1.7rem; }
  .marquee__track span { font-size: 1.25rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .btn--wa::after,
  .blob,
  .rsvp,
  .ornament { animation: none !important; }
  .stagger > * { opacity: 1; transform: none; }
  .section__title::after { transition: none; width: 74px; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero__bg { animation: none; transform: scale(1); }
  .video__play { animation: none; }
  .countdown__num.is-tick { animation: none; }
  .mobile-menu__links a { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto; }
}
