/* Diseño pensado primero para celular; se amplía en pantallas grandes. */
:root {
  --rose: #c98b8b;
  --rose-deep: #9e5f68;
  --wine: #6e3b48;
  --gold: #c8a46a;
  --gold-light: #f2dcae;
  --cream: #fdf8f5;
  --blush: #f6e7e4;
  --ink: #4a3a3d;
  --muted: #7f696d;
  --script: "Great Vibes", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gutter: 1.25rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; font-size: 16px; }
/* Celular en vertical: todo crece con el ancho de la pantalla, aunque el teléfono
   reporte una pantalla "ancha" (escala de pantalla o modo sitio de escritorio). */
@media (orientation: portrait) {
  html { font-size: clamp(16px, 4.1vw, 30px); }
}
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1rem;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.is-locked { overflow: hidden; height: 100vh; height: 100dvh; }
img { display: block; max-width: 100%; }
svg { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }

.container { position: relative; z-index: 1; max-width: 60rem; margin: 0 auto; padding: 0 var(--gutter); text-align: center; }
.section { position: relative; padding: 4.5rem 0; overflow: hidden; }
.section--light { background: var(--cream); }
.section--soft { background: var(--blush); }
.section--accent { background: linear-gradient(150deg, var(--wine), var(--rose-deep) 60%, var(--rose)); color: #fff; }

.sparkles, .petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

.title {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 8vw, 3rem);
  line-height: 1.2;
  color: var(--rose-deep);
  margin-bottom: 2rem;
}
.title::after {
  content: "";
  display: block;
  width: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0.875rem auto 0;
  transition: width 1.2s var(--ease) .3s;
}
.title.is-visible::after { width: 7.5rem; }
.title--light { color: #fff; }
.title--light::after { background: linear-gradient(90deg, transparent, #fff, transparent); }

.script { font-family: var(--script); font-size: clamp(2.2rem, 9vw, 3rem); line-height: 1.3; color: var(--gold); margin-bottom: 1rem; }
.script--light { color: var(--gold-light); }

.shimmer {
  background: linear-gradient(110deg, #c8a46a 20%, #fff6df 40%, #e8c98f 50%, #c8a46a 70%);
  background-size: 250% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- Sobre de apertura ---------- */
.intro {
  position: fixed; inset: 0; z-index: 200;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.25rem;
  padding: var(--gutter);
  background: radial-gradient(ellipse at center, #8a4e5c 0%, #4d2531 75%);
  transition: opacity 1s var(--ease), visibility 1s;
}
.intro.is-gone { opacity: 0; visibility: hidden; }
.intro.is-opening .intro__top,
.intro.is-opening .intro__hint { opacity: 0; transition: opacity .4s; animation: none; }
.intro__top {
  position: relative;
  color: #fff; font-family: var(--script); font-size: clamp(2rem, 9vw, 2.8rem);
  animation: fadeDown 1.2s var(--ease) both;
}
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } }
.intro__hint {
  position: relative;
  color: var(--gold-light);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem; letter-spacing: .08em;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .4; } }

.envelope {
  --w: min(80vw, 21.25rem);
  position: relative;
  width: var(--w); height: calc(var(--w) * .66);
  cursor: pointer;
  perspective: 62.5rem;
  animation: float 3.5s ease-in-out infinite;
  outline: none;
}
.envelope:focus-visible { filter: drop-shadow(0 0 0.75rem var(--gold-light)); }
@keyframes float { 50% { transform: translateY(-10px); } }
.envelope.is-open { animation: none; }
.envelope__back { position: absolute; inset: 0; border-radius: 0.375rem; background: #ead2c7; box-shadow: 0 1.5625rem 3.75rem rgba(0,0,0,.4); }
.envelope__letter {
  position: absolute; left: 6%; right: 6%; top: 8%; bottom: 8%;
  background: var(--cream);
  border-radius: 0.25rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 1px solid var(--gold-light);
  transition: transform 1s var(--ease) .5s;
  z-index: 1;
}
.envelope__letter-xv { font-family: var(--serif); font-size: 2.4rem; color: var(--gold); line-height: 1; }
.envelope__letter-name { font-family: var(--script); font-size: 1.9rem; color: var(--rose-deep); }
.envelope.is-open .envelope__letter { transform: translateY(-70%); }
.envelope__front {
  position: absolute; inset: 0; z-index: 2; border-radius: 0.375rem;
  background:
    linear-gradient(to top right, #f3dfd6 50%, transparent 50.5%) left / 50.5% 100% no-repeat,
    linear-gradient(to top left, #f3dfd6 50%, transparent 50.5%) right / 50.5% 100% no-repeat,
    linear-gradient(to top, #efd8ce 45%, transparent 45.5%);
}
.envelope__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 62%; z-index: 3;
  background: #e4c6b9;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top;
  transition: transform .8s var(--ease), z-index 0s .4s;
}
.envelope.is-open .envelope__flap { transform: rotateX(180deg); z-index: 0; }
.envelope__seal {
  position: absolute; z-index: 4; left: 50%; top: 52%;
  width: 3.75rem; height: 3.75rem; margin: -1.875rem 0 0 -1.875rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #c98b8b, #7d3e4d 70%);
  box-shadow: 0 0.1875rem 0.625rem rgba(0,0,0,.35), inset 0 0 0 0.25rem rgba(255,255,255,.12);
  display: grid; place-items: center;
  font-family: var(--script); font-size: 2rem; color: var(--gold-light);
  transition: transform .6s var(--ease), opacity .4s;
  animation: sealPulse 2s ease-in-out infinite;
}
@keyframes sealPulse { 50% { box-shadow: 0 0 0 0.5rem rgba(242,220,174,.18), 0 0.1875rem 0.625rem rgba(0,0,0,.35); } }
.envelope.is-open .envelope__seal { transform: scale(1.6) rotate(30deg); opacity: 0; animation: none; }

/* ---------- Música ---------- */
.music {
  position: fixed; z-index: 90;
  right: calc(1rem + env(safe-area-inset-right));
  bottom: calc(1rem + env(safe-area-inset-bottom));
  width: 3.125rem; height: 3.125rem; border-radius: 50%;
  border: 1px solid rgba(255,255,255,.6);
  background: rgba(110, 59, 72, .88);
  -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem);
  box-shadow: 0 0.375rem 1.25rem rgba(0,0,0,.25);
  cursor: pointer;
  display: grid; place-items: center;
  animation: fadeIn .6s ease;
}
.music__bars { display: flex; gap: 0.1875rem; align-items: flex-end; height: 1.125rem; }
.music__bars i { width: 0.1875rem; height: 0.25rem; background: var(--gold-light); border-radius: 0.125rem; }
.music.is-playing .music__bars i { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: .2s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: .4s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: .6s; }
@keyframes eq { 0%,100% { height: 0.25rem; } 50% { height: 1.125rem; } }

/* ---------- Portada ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: #fff;
  overflow: hidden;
  padding: 2.5rem var(--gutter) 5.625rem;
}
.hero__bg {
  position: absolute; inset: -8% 0;
  background: linear-gradient(160deg, #e6b8b5 0%, #b87480 55%, #6e3b48 100%);
  background-size: cover; background-position: center top;
  will-change: transform;
}
body.is-ready .hero__bg { animation: kenburns 18s ease-out forwards; }
@keyframes kenburns { from { scale: 1.15; } to { scale: 1; } }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(50,20,30,.25) 0%, rgba(50,20,30,.15) 35%, rgba(50,20,30,.7) 100%);
}
.hero__content { position: relative; z-index: 2; align-self: end; }
.hero__pre { font-family: var(--serif); font-style: italic; font-size: 1.35rem; letter-spacing: .4em; text-transform: uppercase; text-shadow: 0 0.125rem 0.625rem rgba(0,0,0,.3); }
.hero__xv { font-family: var(--serif); font-weight: 400; font-size: clamp(6.5rem, 34vw, 13rem); line-height: 1; filter: drop-shadow(0 0.25rem 1.5rem rgba(0,0,0,.35)); }
.hero__name { font-family: var(--script); font-weight: 400; font-size: clamp(3.4rem, 17vw, 6rem); margin-top: 0.25rem; line-height: 1.25; text-shadow: 0 0.1875rem 1rem rgba(0,0,0,.35); }
.hero__date { letter-spacing: .22em; text-transform: uppercase; font-size: .78rem; font-weight: 400; text-shadow: 0 0.125rem 0.5rem rgba(0,0,0,.4); }

.anim { opacity: 0; transform: translateY(1.875rem); filter: blur(0.375rem); }
body.is-ready .anim { animation: rise 1.3s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; filter: blur(0); } }

.handwrite { display: inline-block; padding: 0 .15em; clip-path: inset(0 100% 0 0); }
body.is-ready .handwrite { animation: write 2.2s ease-in-out 1.3s forwards; }
@keyframes write { to { clip-path: inset(-20% -10% -20% 0); } }

.hero__scroll {
  position: absolute; bottom: calc(1.5rem + env(safe-area-inset-bottom)); left: 50%; z-index: 2;
  width: 1.625rem; height: 2.625rem; margin-left: -0.8125rem;
  border: 0.125rem solid rgba(255,255,255,.8); border-radius: 0.875rem;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 0.5rem; width: 0.25rem; height: 0.5rem; margin-left: -0.125rem;
  background: #fff; border-radius: 0.125rem;
  animation: wheel 1.8s ease-in-out infinite;
}
@keyframes wheel { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(0.875rem); } }

.divider { display: flex; align-items: center; gap: 0.875rem; justify-content: center; margin: 0.875rem 0; color: var(--gold-light); }
.divider::before, .divider::after { content: ""; width: 4.375rem; height: 1px; background: linear-gradient(90deg, transparent, currentColor); }
.divider::after { transform: scaleX(-1); }
.divider span { animation: spin 8s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Ornamentos ---------- */
.ornament {
  position: absolute; width: 8.125rem; height: 8.125rem; opacity: .3; pointer-events: none;
  background:
    radial-gradient(circle at 0 0, transparent 2.75rem, var(--gold) 2.8125rem, transparent 2.875rem),
    radial-gradient(circle at 0 0, transparent 4.125rem, var(--gold) 4.1875rem, transparent 4.25rem),
    radial-gradient(circle at 0 0, transparent 5.5rem, var(--rose) 5.5625rem, transparent 5.625rem);
}
.ornament--tl { top: 0; left: 0; }
.ornament--br { bottom: 0; right: 0; transform: rotate(180deg); }

/* ---------- Mensaje ---------- */
.message { font-family: var(--serif); font-style: italic; font-size: 1.3rem; line-height: 1.6; max-width: 41.25rem; margin: 0 auto 2.5rem; color: var(--muted); }
.people { display: grid; gap: 1rem; }
.people__group {
  padding: 1.5rem 1rem;
  border: 1px solid rgba(200,164,106,.4);
  border-radius: 1rem;
  background: rgba(255,255,255,.7);
}
.people h3 { font-family: var(--script); font-weight: 400; font-size: 2.2rem; color: var(--rose-deep); margin-bottom: 0.375rem; line-height: 1.2; }
.people ul { list-style: none; font-size: 1.05rem; }

/* ---------- Cuenta regresiva ---------- */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.5rem; max-width: 35rem; margin: 0 auto 2.25rem; }
.countdown__item {
  padding: 1rem 0.125rem;
  border: 1px solid rgba(255,255,255,.45);
  border-radius: 0.875rem;
  background: rgba(255,255,255,.1);
  -webkit-backdrop-filter: blur(0.25rem); backdrop-filter: blur(0.25rem);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 0.625rem 1.875rem rgba(0,0,0,.12);
}
.countdown__item span { display: block; font-family: var(--serif); font-size: clamp(2rem, 9vw, 3.4rem); line-height: 1.05; font-variant-numeric: tabular-nums; }
.countdown__item small { text-transform: uppercase; letter-spacing: .12em; font-size: .62rem; opacity: .9; }
.flip.is-flipping { animation: flip .6s var(--ease); }
@keyframes flip { 0% { transform: rotateX(90deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.countdown__done { font-family: var(--script); font-size: 3rem; margin-bottom: 1.875rem; }

/* ---------- Lugares ---------- */
.places { display: grid; gap: 1.5rem; }
.place {
  position: relative;
  background: #fff;
  border-radius: 1.25rem;
  padding: 2rem 1.125rem 1.375rem;
  box-shadow: 0 0.9375rem 3.125rem rgba(158, 95, 104, .12);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.place::before { content: ""; position: absolute; inset: 0.5rem; border-radius: 0.875rem; border: 1px solid rgba(200,164,106,.35); pointer-events: none; }
.place__icon { width: 3.125rem; height: 3.125rem; margin: 0 auto 0.25rem; color: var(--gold); }
.place__title { font-family: var(--script); font-weight: 400; font-size: 2.6rem; color: var(--rose-deep); line-height: 1.15; }
.place__time { font-weight: 500; letter-spacing: .25em; color: var(--gold); margin: 0.25rem 0 0.625rem; }
.place__name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.3; }
.place__addr { color: var(--muted); font-size: .88rem; margin: 0.25rem 0 1.125rem; }
.place__map { position: relative; border-radius: 0.875rem; overflow: hidden; aspect-ratio: 4 / 3; margin-bottom: 1.125rem; background: var(--blush); }
.place__map iframe { width: 100%; height: 100%; border: 0; }

.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.625rem;
  min-height: 3.125rem;
  padding: 0.875rem 1.875rem;
  border: 0;
  border-radius: 62.4375rem;
  background: linear-gradient(135deg, var(--rose-deep), var(--wine));
  color: #fff;
  font-family: var(--sans);
  text-decoration: none;
  letter-spacing: .16em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 500;
  cursor: pointer;
  box-shadow: 0 0.5rem 1.25rem rgba(110,59,72,.3);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 50%; height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg);
  animation: shine 3.5s ease-in-out infinite;
}
@keyframes shine { 0%, 60% { left: -75%; } 100% { left: 130%; } }
.btn:active { transform: scale(.97); }
.btn--light { background: #fff; color: var(--wine); box-shadow: 0 0.5rem 1.25rem rgba(0,0,0,.15); }
.btn--block { display: flex; width: 100%; }
.btn__icon { width: 1.25rem; height: 1.25rem; }

/* ---------- Itinerario ---------- */
.timeline { list-style: none; position: relative; max-width: 28.75rem; margin: 0 auto; text-align: left; }
.timeline::before {
  content: ""; position: absolute; left: 1.6875rem; top: 0.625rem; bottom: 0.625rem; width: 0.125rem;
  background: linear-gradient(var(--gold), var(--rose));
  transform: scaleY(0); transform-origin: top;
  transition: transform 2s var(--ease);
}
.timeline.is-drawn::before { transform: scaleY(1); }
.timeline__item { position: relative; display: flex; align-items: center; gap: 1.125rem; padding: 0.625rem 0; }
.timeline__icon {
  position: relative; z-index: 1; flex: none;
  width: 3.5rem; height: 3.5rem; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; color: var(--rose-deep);
  border: 1px solid rgba(200,164,106,.6);
  box-shadow: 0 0.375rem 1.125rem rgba(158,95,104,.15);
}
.timeline__icon svg { width: 1.875rem; height: 1.875rem; stroke-width: 2.4; }
.timeline__body { flex: 1; background: rgba(255,255,255,.7); border-radius: 0.875rem; padding: 0.625rem 1rem; }
.timeline__time { font-weight: 500; letter-spacing: .15em; color: var(--gold); font-size: .8rem; }
.timeline__event { font-family: var(--serif); font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.timeline__item.reveal { transform: translateX(-30px); }
.timeline__item.reveal.is-visible { transform: none; }

/* ---------- Frase ---------- */
.quote {
  position: relative; overflow: hidden;
  min-height: 70vh; min-height: 70svh;
  display: grid; place-items: center;
  padding: 5rem var(--gutter);
  color: #fff; text-align: center;
}
.quote__bg {
  position: absolute; inset: -20% 0;
  background: linear-gradient(160deg, #b87480, #4d2531);
  background-size: cover; background-position: center;
  will-change: transform;
}
.quote__overlay { position: absolute; inset: 0; background: rgba(50,20,30,.5); }
.quote__text {
  position: relative; max-width: 40rem;
  font-family: var(--serif); font-style: italic; font-size: clamp(1.5rem, 6.5vw, 2.4rem); line-height: 1.45;
  text-shadow: 0 0.125rem 0.875rem rgba(0,0,0,.4);
}
.quote__text::before, .quote__text::after { font-family: var(--script); color: var(--gold-light); font-size: 1.6em; line-height: 0; vertical-align: -.35em; }
.quote__text::before { content: "“"; margin-right: .1em; }
.quote__text::after { content: "”"; margin-left: .1em; }

/* ---------- Vestimenta ---------- */
.dress-icons { display: flex; justify-content: center; gap: 1.5rem; color: var(--rose-deep); margin-bottom: 0.625rem; }
.dress-icons svg { width: 3.75rem; height: 3.75rem; stroke-width: 1.6; }
.dress { font-family: var(--serif); font-size: 2.2rem; font-weight: 600; color: var(--ink); }
.note { color: var(--muted); font-style: italic; margin-top: 0.375rem; }

/* ---------- Regalos ---------- */
.gift {
  max-width: 32.5rem; margin: 0 auto;
  background: #fff; border-radius: 1.25rem;
  padding: 2rem 1.375rem;
  box-shadow: 0 0.9375rem 3.125rem rgba(158,95,104,.12);
}
.gift__icon { width: 4.375rem; height: 4.375rem; margin: 0 auto 0.375rem; color: var(--gold); }
.gift__icon svg { width: 100%; height: 100%; stroke-width: 1.6; animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-3deg); } }
.gift__title { font-family: var(--script); font-weight: 400; font-size: 2.4rem; color: var(--rose-deep); line-height: 1.2; }
.gift__text { color: var(--muted); margin-top: 0.375rem; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.625rem; }
.gallery__item {
  position: relative;
  aspect-ratio: 3 / 4;
  border: 0; padding: 0;
  border-radius: 0.875rem;
  overflow: hidden;
  cursor: zoom-in;
  background: var(--blush);
  box-shadow: 0 0.5rem 1.5625rem rgba(158,95,104,.12);
}
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.gallery__item--empty {
  cursor: default;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--blush), #ecd3cf);
  color: var(--rose-deep);
  font-family: var(--serif); font-style: italic; font-size: 1.15rem;
}
.gallery__item.reveal { transform: translateY(2.5rem) scale(.94); }
.gallery__item.reveal.is-visible { transform: none; }

/* ---------- Confirmar asistencia ---------- */
.rsvp__lead { margin: -0.875rem 0 1.5rem; opacity: .95; }
.rsvp {
  max-width: 30rem; margin: 0 auto;
  display: grid; gap: 1.125rem; text-align: left;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 1.25rem;
  padding: 1.5rem 1.125rem;
  -webkit-backdrop-filter: blur(0.375rem); backdrop-filter: blur(0.375rem);
}
.field { display: grid; gap: 0.375rem; }
.field > span { font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500; }
.field input, .field textarea {
  width: 100%;
  font: 400 1rem/1.4 var(--sans);   /* 1rem evita el zoom automático en iPhone */
  color: var(--ink);
  background: #fff;
  border: 0; border-radius: 0.75rem;
  padding: 0.875rem 1rem;
  outline: none;
  box-shadow: 0 0 0 0 var(--gold-light);
  transition: box-shadow .2s;
}
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 0.1875rem var(--gold-light); }
.field textarea { resize: vertical; min-height: 5.625rem; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 0.625rem; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span {
  display: grid; place-items: center; text-align: center;
  min-height: 3.125rem; padding: 0.625rem;
  border: 1px solid rgba(255,255,255,.6); border-radius: 0.75rem;
  font-weight: 500; font-size: .9rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.choice input:checked + span { background: #fff; color: var(--wine); }
.choice input:focus-visible + span { box-shadow: 0 0 0 0.1875rem var(--gold-light); }
.stepper { display: grid; grid-template-columns: 3.125rem 1fr 3.125rem; gap: 0.5rem; }
.stepper button {
  height: 3.125rem; border: 0; border-radius: 0.75rem;
  background: rgba(255,255,255,.2); color: #fff;
  font-size: 1.5rem; cursor: pointer;
}
.stepper button:active { background: rgba(255,255,255,.35); }
.stepper input { text-align: center; font-weight: 500; -moz-appearance: textfield; }
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* ---------- Visor ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(30, 15, 20, .95);
  display: grid; place-items: center;
  padding: 1.25rem;
  animation: fadeIn .4s ease;
}
@keyframes fadeIn { from { opacity: 0; } }
.lightbox img { max-width: 94vw; max-height: 82vh; max-height: 82svh; border-radius: 0.625rem; opacity: 0; transform: scale(.95); transition: opacity .4s, transform .4s var(--ease); }
.lightbox img.is-in { opacity: 1; transform: none; }
.lightbox button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font-size: 2.6rem; line-height: 1; width: 3.25rem; height: 3.25rem; }
.lightbox__close { top: calc(0.5rem + env(safe-area-inset-top)); right: 0.5rem; }
.lightbox__nav--prev { left: 0; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 0; top: 50%; transform: translateY(-50%); }

/* ---------- Pie ---------- */
.footer { position: relative; overflow: hidden; background: linear-gradient(160deg, #4d2531, #2e161e); color: #fff; text-align: center; padding: 4rem var(--gutter) calc(5rem + env(safe-area-inset-bottom)); }
.footer__name { position: relative; font-family: var(--serif); letter-spacing: .3em; text-transform: uppercase; }

/* ---------- Aparición al hacer scroll ---------- */
.reveal { opacity: 0; transform: translateY(2.25rem); transition: opacity 1s var(--ease) var(--rd, 0s), transform 1s var(--ease) var(--rd, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Pantallas grandes ---------- */
@media (min-width: 700px) and (orientation: landscape) {
  :root { --gutter: 2rem; }
  .section { padding: 6.25rem 0; }
  .title { margin-bottom: 2.75rem; }
  .message { font-size: 1.55rem; margin-bottom: 3.5rem; }
  .people { grid-template-columns: 1fr 1fr; gap: 1.5rem; }
  .places { grid-template-columns: 1fr 1fr; gap: 1.875rem; }
  .place { padding: 2.5rem 1.625rem 1.875rem; }
  .place .btn--block { display: inline-flex; width: auto; }
  .countdown { gap: 1.25rem; }
  .countdown__item { padding: 1.375rem 0.375rem; border-radius: 1.125rem; }
  .countdown__item small { font-size: .72rem; }
  .gallery { grid-template-columns: repeat(3, 1fr); gap: 0.875rem; }
  .ornament { width: 11.25rem; height: 11.25rem; }
  .hero__date { font-size: .9rem; letter-spacing: .3em; }
  .rsvp { padding: 2rem 1.75rem; }
}
@media (hover: hover) {
  .place:hover { transform: translateY(-6px); box-shadow: 0 1.5625rem 3.75rem rgba(158, 95, 104, .2); }
  .btn:hover { transform: translateY(-3px); }
  .gallery__item:hover img { transform: scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .anim { opacity: 1; transform: none; filter: none; }
  .handwrite { clip-path: none; }
  .timeline::before { transform: none; }
}
