:root {
  --marfil: #FAF6F0;
  --crema: #F1E9DA;
  --crema-2: #E9DDC8;
  --crema-3: #DFCFB4;
  --oliva: #8A9E52;
  --oliva-osc: #5F6E36;
  --oliva-claro: #E6EAD8;
  --dorado: #C2A15B;
  --dorado-osc: #A88A45;
  --texto: #3E3A36;
  --texto-suave: #6E675F;
  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  background: var(--marfil);
  color: var(--texto);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.locked { overflow: hidden; height: 100vh; height: 100dvh; }
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; -webkit-tap-highlight-color: transparent; }
svg { width: 1em; height: 1em; }
strong { font-weight: 600; }

/* ───────── Hojas cayendo ───────── */
.leaves { position: fixed; inset: 0; pointer-events: none; z-index: 60; overflow: hidden; }
.leaves svg { position: absolute; top: -40px; color: var(--oliva); opacity: .55; animation: fall linear infinite; }
@keyframes fall {
  0%   { transform: translate3d(0, -40px, 0) rotate(0deg); }
  50%  { transform: translate3d(var(--sway), 50vh, 0) rotate(180deg); }
  100% { transform: translate3d(0, 110vh, 0) rotate(360deg); }
}

/* ───────── Sobre ───────── */
.intro {
  position: fixed; inset: 0; z-index: 50;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  padding: 24px 16px;
  background:
    radial-gradient(ellipse at 50% 40%, #fffdf9 0%, var(--marfil) 55%, var(--crema) 100%);
  transition: opacity 1s var(--ease), visibility 1s, transform 1.2s var(--ease);
}
.intro.done { opacity: 0; visibility: hidden; transform: scale(1.08); pointer-events: none; }
.intro-kicker { font-family: var(--serif); font-style: italic; font-size: 1.25rem; color: var(--oliva-osc); }
.intro-hint { font-size: .78rem; letter-spacing: .22em; text-transform: uppercase; color: var(--texto-suave); animation: pulse 2s ease-in-out infinite; }
.intro.opening .intro-hint, .intro.opening .intro-kicker { opacity: 0; transition: opacity .4s; animation: none; }
[data-anim] { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) forwards; }
[data-anim="2"] { animation-delay: .25s; }
[data-anim="3"] { animation-delay: .7s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes pulse { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

.envelope-wrap { animation: rise 1s var(--ease) .25s forwards, bob 3.2s ease-in-out 1.3s infinite; filter: drop-shadow(0 18px 24px rgba(95, 110, 54, .18)); }
.intro.opening .envelope-wrap { animation: none; opacity: 1; transform: none; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.envelope {
  position: relative; display: block;
  width: min(86vw, 360px); aspect-ratio: 1.36;
  perspective: 1200px;
}
.envelope > span { position: absolute; display: block; }
.env-back { inset: 0; background: var(--crema-3); border-radius: 6px; }
.env-side, .env-bottom, .env-flap { inset: 0; border-radius: 6px; }
.env-left  { background: var(--crema-2); clip-path: polygon(0 0, 52% 54%, 0 100%); z-index: 3; }
.env-right { background: var(--crema-2); clip-path: polygon(100% 0, 48% 54%, 100% 100%); z-index: 3; }
.env-bottom {
  z-index: 4;
  background: linear-gradient(180deg, #F6EFE3, var(--crema));
  clip-path: polygon(0 100%, 50% 46%, 100% 100%);
  display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 6%;
}
.env-para { font-family: var(--serif); font-style: italic; font-size: .82rem; color: var(--texto-suave); line-height: 1; }
.env-name {
  font-family: var(--script); color: var(--oliva-osc);
  font-size: clamp(1.25rem, 6.4vw, 1.75rem); line-height: 1.25;
  max-width: 74%; text-align: center;
  opacity: 0; transition: opacity .8s;
}
.env-name.show { opacity: 1; }
.env-flap {
  bottom: auto !important; height: 50%;
  background: linear-gradient(180deg, #EDE2CF, var(--crema-2));
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  z-index: 5;
  transition: transform .9s var(--ease) .35s, z-index 0s linear .8s;
}
.letter {
  left: 6%; right: 6%; top: 7%; bottom: 8%;
  background: #FFFDF8; border-radius: 4px; z-index: 2;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  transition: transform 1.1s var(--ease) 1.1s;
}
.letter-inner { display: flex; flex-direction: column; align-items: center; justify-content: flex-start; height: 100%; padding-top: 9%; text-align: center; }
.letter-branch { width: 46%; height: auto; aspect-ratio: 220 / 60; color: var(--oliva); }
.letter-names { font-family: var(--script); font-size: clamp(1.4rem, 7vw, 2rem); color: var(--oliva-osc); line-height: 1.2; }
.letter-date { font-size: .62rem; letter-spacing: .3em; color: var(--dorado-osc); }

.seal {
  z-index: 6; width: 64px; height: 64px; left: calc(50% - 32px); top: calc(50% - 34px);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #D9BC7A, var(--dorado) 45%, var(--dorado-osc) 100%);
  box-shadow: 0 3px 8px rgba(80, 60, 20, .35), inset 0 0 0 4px rgba(255, 255, 255, .12), inset 0 0 0 6px rgba(120, 90, 30, .25);
  display: flex !important; align-items: center; justify-content: center;
  transition: transform .5s var(--ease), opacity .5s;
  animation: sealGlow 2.4s ease-in-out infinite;
}
.seal span { font-family: var(--script); color: #FFF8E6; font-size: 1.45rem; text-shadow: 0 1px 1px rgba(90, 60, 10, .4); }
.seal em { font-style: normal; font-size: .9rem; margin: 0 1px; }
@keyframes sealGlow { 0%, 100% { box-shadow: 0 3px 8px rgba(80, 60, 20, .35), 0 0 0 0 rgba(194, 161, 91, .45), inset 0 0 0 6px rgba(120, 90, 30, .25); } 50% { box-shadow: 0 3px 8px rgba(80, 60, 20, .35), 0 0 0 12px rgba(194, 161, 91, 0), inset 0 0 0 6px rgba(120, 90, 30, .25); } }

.envelope.open .seal { transform: scale(1.35) rotate(-14deg); opacity: 0; animation: none; }
.envelope.open .env-flap { transform: rotateX(180deg); z-index: 1; }
.envelope.open .letter { transform: translateY(-58%); }

/* ───────── Estructura general ───────── */
main { position: relative; max-width: 560px; margin: 0 auto; background: var(--marfil); }
@media (min-width: 620px) {
  body { background: var(--crema); }
  main { box-shadow: 0 0 60px rgba(95, 110, 54, .12); }
}
.section { padding: 72px 16px; text-align: center; position: relative; }
.kicker { font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--oliva-osc); font-weight: 500; margin-bottom: 10px; }
.title { font-family: var(--serif); font-weight: 500; font-size: clamp(1.9rem, 8vw, 2.3rem); line-height: 1.15; margin-bottom: 28px; color: var(--texto); }
.section p { max-width: 46ch; margin-left: auto; margin-right: auto; }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].in { opacity: 1; transform: none; }

/* Botones */
.btn-row { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 999px;
  background: var(--oliva-osc); color: #fff; text-decoration: none;
  font-size: .85rem; font-weight: 500; letter-spacing: .04em;
  border: 1.5px solid var(--oliva-osc);
  transition: transform .2s, background .2s, box-shadow .2s;
  box-shadow: 0 6px 16px rgba(95, 110, 54, .22);
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.96); }
.btn-ghost { background: transparent; color: var(--oliva-osc); box-shadow: none; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn.beat { animation: beat 2.4s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 8% { transform: scale(1.05); } 16% { transform: scale(1); } 24% { transform: scale(1.04); } 32% { transform: scale(1); } }

/* ───────── Portada ───────── */
.hero {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 56px 16px 90px; text-align: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #fff 0%, var(--marfil) 60%);
}
.hero-photo { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: 0; transition: opacity 1.5s; }
.hero-photo.has { opacity: 1; }
.hero-photo.has::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(250, 246, 240, .55), rgba(250, 246, 240, .92) 70%); }
.hero > *:not(.hero-photo) { position: relative; }
.wreath { width: min(64vw, 250px); aspect-ratio: 1; margin-bottom: 18px; will-change: transform; }
.wreath svg { width: 100%; height: 100%; overflow: visible; }
.wreath .wl { opacity: 0; transform-box: fill-box; transform-origin: 0 50%; transform: scale(0); transition: opacity .5s, transform .6s var(--ease); }
.wreath .wl.on { opacity: 1; transform: scale(1); }
.wreath .w-init { font-family: var(--script); fill: var(--oliva-osc); font-size: 64px; opacity: 0; transition: opacity 1.2s 1.2s; }
.hero.in .wreath .w-init { opacity: 1; }

.hero-kicker { opacity: 0; transition: opacity 1s .4s; }
.names { font-family: var(--script); font-weight: 400; color: var(--oliva-osc); line-height: 1; margin: 6px 0 18px; }
.names .n { display: block; font-size: clamp(3.6rem, 18vw, 5rem); clip-path: inset(-20% 100% -20% 0); transition: clip-path 1.6s cubic-bezier(.6, .1, .3, 1); padding: 0 .1em; }
.names .n2 { transition-delay: 1.3s; }
.names .amp { display: block; font-size: 2.4rem; color: var(--dorado); opacity: 0; transform: scale(.4) rotate(-20deg); transition: all .8s var(--ease) 1s; }
.hero.in .hero-kicker { opacity: 1; }
.hero.in .names .n { clip-path: inset(-20% -5% -20% 0); }
.hero.in .names .amp { opacity: 1; transform: none; }

.hero-date { display: flex; align-items: center; gap: 16px; text-transform: uppercase; letter-spacing: .25em; font-size: .78rem; font-weight: 500; opacity: 0; transform: translateY(14px); transition: all 1s var(--ease) 2.4s; }
.hero-date span { border-top: 1px solid var(--dorado); border-bottom: 1px solid var(--dorado); padding: 6px 2px; min-width: 76px; }
.hero-date strong { font-family: var(--serif); font-size: 3rem; font-weight: 500; letter-spacing: 0; color: var(--oliva-osc); line-height: 1; }
.hero-year { margin-top: 8px; font-size: .82rem; letter-spacing: .25em; color: var(--texto-suave); opacity: 0; transition: opacity 1s 2.7s; }
.hero-phrase { font-family: var(--serif); font-style: italic; font-size: 1.15rem; margin-top: 22px; max-width: 36ch; opacity: 0; transition: opacity 1.2s 3s; }
.hero.in .hero-date, .hero.in .hero-year, .hero.in .hero-phrase { opacity: 1; transform: none; }
.scroll-cue { position: absolute !important; bottom: 26px; left: 50%; width: 24px; height: 38px; margin-left: -12px; border: 1.5px solid var(--oliva); border-radius: 14px; opacity: 0; transition: opacity 1s 3.6s; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--oliva); animation: wheel 1.8s ease-in-out infinite; }
.hero.in .scroll-cue { opacity: 1; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ───────── Saludo ───────── */
.divider { width: 150px; height: 41px; color: var(--oliva); margin: 0 auto 24px; display: block; }
.greeting { background: linear-gradient(180deg, var(--marfil), var(--oliva-claro)); }
.greet-hello { font-family: var(--serif); font-style: italic; font-size: 1.3rem; color: var(--texto-suave); }
.greet-name { font-family: var(--script); font-weight: 400; font-size: clamp(2.6rem, 12vw, 3.3rem); color: var(--oliva-osc); line-height: 1.15; margin: 4px 0 26px; }
.seats p { margin: 0 auto; }
.seats-num { font-family: var(--serif); font-size: 5rem; font-weight: 500; line-height: 1; color: var(--dorado-osc); margin: 8px auto 2px !important; }
.seats-label { font-family: var(--serif); font-size: 1.35rem; font-style: italic; }
.seats-detail { margin-top: 10px !important; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); }
.greet-generic { font-family: var(--serif); font-size: 1.25rem; font-style: italic; }

/* ───────── Cuenta regresiva ───────── */
.countdown-sec { background: var(--oliva-claro); padding-top: 40px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 440px; margin: 10px auto 0; }
.cd { background: #fff; border-radius: 14px; padding: 14px 4px 10px; box-shadow: 0 8px 20px rgba(95, 110, 54, .12); perspective: 300px; }
.cd-num { display: block; font-family: var(--serif); font-size: clamp(1.9rem, 9vw, 2.5rem); font-weight: 600; color: var(--oliva-osc); line-height: 1.05; font-variant-numeric: tabular-nums; }
.cd-num.flip { animation: flip .5s var(--ease); }
@keyframes flip { 0% { transform: rotateX(-90deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd-lbl { display: block; font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; color: var(--texto-suave); margin-top: 4px; }
.cd-message { font-family: var(--script); font-size: 2.6rem; color: var(--oliva-osc); }

/* ───────── Historia ───────── */
.story-list { list-style: none; position: relative; max-width: 480px; margin: 0 auto; padding-left: 0; text-align: left; }
.story-list::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 30px; width: 1.5px; background: linear-gradient(var(--dorado), var(--oliva)); transform: scaleY(0); transform-origin: top; transition: transform 2.4s var(--ease); }
.story-list.in::before { transform: scaleY(1); }
.story-item { position: relative; padding: 0 0 26px 34px; transform: translateX(24px); }
.story-item.in { transform: none; }
.story-item::before { content: ""; position: absolute; top: 6px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--marfil); border: 2px solid var(--oliva); box-sizing: border-box; }
.story-item.in::before { animation: pop .6s var(--ease) both; animation-delay: var(--d, 0s); }
.story-item h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; color: var(--oliva-osc); line-height: 1.2; margin-bottom: 4px; }
.story-item p { font-size: .92rem; color: var(--texto-suave); max-width: none !important; margin: 0 !important; }

/* ───────── Galería ───────── */
.gallery-sec { background: var(--crema); padding-left: 0; padding-right: 0; }
.gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 16px 16px; scroll-padding: 0 16px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.g-item { flex: 0 0 84%; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; scroll-snap-align: center; position: relative; box-shadow: 0 10px 24px rgba(62, 58, 54, .14); background: var(--crema-2); }
.g-item img { width: 100%; height: 100%; object-fit: cover; }
.g-ph { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #fff; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; }
.g-ph svg { width: 44px; height: 44px; opacity: .9; }
.dots { display: flex; gap: 8px; justify-content: center; margin-top: 6px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--crema-3); transition: all .3s; }
.dots i.on { background: var(--oliva-osc); width: 22px; border-radius: 4px; }

.lightbox { position: fixed; inset: 0; z-index: 80; background: rgba(30, 28, 25, .92); display: flex; align-items: center; justify-content: center; padding: 20px; animation: fadeIn .3s; }
.lightbox[hidden] { display: none; }
.lightbox button { position: absolute; top: 12px; right: 16px; color: #fff; font-size: 2.4rem; width: 48px; height: 48px; line-height: 1; }
.lb-content { width: 100%; max-width: 520px; aspect-ratio: 4 / 5; border-radius: 12px; overflow: hidden; animation: zoomIn .4s var(--ease); }
.lb-content img, .lb-content .g-ph { width: 100%; height: 100%; object-fit: contain; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes zoomIn { from { transform: scale(.85); opacity: 0; } }

/* ───────── Itinerario ───────── */
.timeline { list-style: none; position: relative; max-width: 440px; margin: 0 auto; padding: 4px 0; }
.timeline::before { content: ''; position: absolute; left: 31px; top: 40px; bottom: 70px; width: 2px; background: linear-gradient(var(--dorado), var(--oliva)); transform: scaleY(0); transform-origin: top; transition: transform 1.6s var(--ease) .3s; }
.timeline.in::before { transform: scaleY(1); }
.tl-item { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; text-align: left; padding: 10px 0 26px; }
.tl-icon { grid-row: span 3; width: 64px; height: 64px; border-radius: 50%; background: #fff; border: 1.5px solid var(--dorado); display: flex; align-items: center; justify-content: center; color: var(--oliva-osc); position: relative; z-index: 1; box-shadow: 0 6px 16px rgba(95, 110, 54, .15); }
.tl-icon svg { width: 32px; height: 32px; }
.tl-item.in .tl-icon { animation: pop .7s var(--ease) both; animation-delay: var(--d, 0s); }
@keyframes pop { 0% { transform: scale(.3); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.tl-time { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; color: var(--dorado-osc); line-height: 1.1; padding-top: 4px; }
.tl-title { font-weight: 500; font-size: 1rem; }
.tl-place { font-size: .86rem; color: var(--texto-suave); }

/* ───────── Ubicaciones ───────── */
.places { background: linear-gradient(180deg, var(--marfil), var(--oliva-claro)); }
.place { background: #fff; border-radius: 22px; padding: 28px 18px 22px; margin: 0 auto 18px; max-width: 480px; box-shadow: 0 12px 30px rgba(95, 110, 54, .12); position: relative; overflow: hidden; }
.place::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--oliva), var(--dorado)); }
.place-icon { width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 50%; background: var(--oliva-claro); color: var(--oliva-osc); display: flex; align-items: center; justify-content: center; }
.place-icon svg { width: 30px; height: 30px; }
.place-type { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--oliva-osc); font-weight: 500; }
.place h3 { font-family: var(--serif); font-size: 1.65rem; font-weight: 600; line-height: 1.15; margin: 4px 0 4px; }
.place-addr { color: var(--texto-suave); font-size: .9rem; }
.place-time { font-weight: 500; margin-top: 4px !important; color: var(--dorado-osc); }
.place .btn-row { margin-top: 18px; }
.place .btn { flex: 1 1 0; padding: 12px 10px; white-space: nowrap; }

/* ───────── Vestuario ───────── */
.dress-icons { display: flex; justify-content: center; gap: 18px; margin: 10px 0 18px; color: var(--oliva-osc); }
.dress-icons svg { width: 56px; height: 75px; }
.dress-icons.in .bounce { animation: bounce 2.6s ease-in-out infinite; }
.dress-icons .b2 { animation-delay: .3s !important; }
@keyframes bounce { 0%, 100% { transform: translateY(0) rotate(0); } 30% { transform: translateY(-8px) rotate(-3deg); } 60% { transform: translateY(0) rotate(2deg); } }
.dress .title { font-size: clamp(1.7rem, 7.5vw, 2.1rem); margin-bottom: 14px; }
.dress p { margin-bottom: 12px; }
.dress-note { background: var(--oliva-claro); border-radius: 16px; padding: 16px 18px; font-size: .92rem; max-width: 480px !important; }
.inline-heart { color: var(--oliva); vertical-align: -2px; animation: heartbeat 1.6s ease-in-out infinite; }
@keyframes heartbeat { 0%, 100% { transform: scale(1); } 15% { transform: scale(1.25); } 30% { transform: scale(1); } 45% { transform: scale(1.15); } }

/* ───────── Confirmación ───────── */
.rsvp { background: var(--oliva-claro); }
.rsvp-card { background: #fff; border-radius: 24px; padding: 26px 18px; max-width: 480px; margin: 0 auto; box-shadow: 0 14px 34px rgba(95, 110, 54, .15); text-align: center; min-height: 140px; }
.rsvp-card p { margin-bottom: 14px; }
.rsvp-deadline { font-size: .9rem; color: var(--texto-suave); }
.rsvp-deadline strong { color: var(--oliva-osc); }
.choice { display: grid; gap: 10px; margin: 18px 0; }
.choice button { min-height: 54px; border-radius: 16px; border: 1.5px solid var(--crema-3); background: var(--marfil); font-weight: 500; font-size: .95rem; transition: all .25s var(--ease); }
.choice button.sel { border-color: var(--oliva-osc); background: var(--oliva-osc); color: #fff; transform: scale(1.02); box-shadow: 0 8px 18px rgba(95, 110, 54, .28); }
.fields { display: grid; gap: 16px; text-align: left; overflow: hidden; transition: max-height .6s var(--ease), opacity .4s; }
.fields.hide { max-height: 0 !important; opacity: 0; }
.field-label { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500; color: var(--oliva-osc); margin-bottom: 6px; }
.field-hint { font-weight: 300; text-transform: none; letter-spacing: 0; color: var(--texto-suave); }
.stepper { display: flex; align-items: center; justify-content: space-between; background: var(--marfil); border-radius: 16px; padding: 6px; }
.stepper button { width: 48px; height: 48px; border-radius: 12px; background: #fff; font-size: 1.5rem; color: var(--oliva-osc); box-shadow: 0 2px 6px rgba(0, 0, 0, .06); }
.stepper button:disabled { opacity: .35; }
.stepper output { font-family: var(--serif); font-size: 2rem; font-weight: 600; min-width: 50px; text-align: center; }
.stepper output.bump { animation: bump .3s; }
@keyframes bump { 50% { transform: scale(1.3); color: var(--dorado-osc); } }
.input { width: 100%; border: 1.5px solid var(--crema-3); border-radius: 14px; padding: 14px; font: inherit; font-size: 16px; background: var(--marfil); color: var(--texto); resize: vertical; }
.input:focus { outline: none; border-color: var(--oliva); background: #fff; }
.rsvp-error { color: #9A3B2E; font-size: .88rem; margin-top: 12px; }
.rsvp-done { animation: zoomIn .6s var(--ease); }
.rsvp-done .check { width: 76px; height: 76px; color: var(--oliva-osc); margin: 0 auto 12px; display: block; }
.rsvp-done .check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .7s .3s forwards; }
.rsvp-done .check circle { stroke-dasharray: 160; stroke-dashoffset: 160; animation: draw .7s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.rsvp-done h3 { font-family: var(--script); font-weight: 400; font-size: 2.4rem; color: var(--oliva-osc); line-height: 1.2; margin-bottom: 8px; }
.rsvp-summary { background: var(--oliva-claro); border-radius: 14px; padding: 12px; font-weight: 500; }
.wa-title { font-size: .88rem; color: var(--texto-suave); margin-top: 18px; }
.wa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 4px; }
.wa-row .btn { padding: 12px 10px; font-size: .8rem; }
.loader { display: flex; justify-content: center; padding: 30px 0; }
.loader span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--oliva-claro); border-top-color: var(--oliva-osc); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ───────── Cierre ───────── */
.closing { padding-bottom: 110px; background: linear-gradient(180deg, var(--oliva-claro), var(--marfil)); }
.closing-branch { width: 190px; height: 52px; color: var(--oliva); display: block; margin: 0 auto 10px; }
.closing-text { font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.closing-initials { font-family: var(--script); font-size: 4.6rem; color: var(--oliva-osc); line-height: 1.2; }
.closing-initials span { color: var(--dorado); font-size: 3rem; }
.closing-date { letter-spacing: .3em; font-size: .8rem; color: var(--texto-suave); }

/* ───────── Música ───────── */
.music-btn { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 70; width: 50px; height: 50px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--oliva-osc); box-shadow: 0 6px 18px rgba(62, 58, 54, .2); display: flex; align-items: center; justify-content: center; backdrop-filter: blur(6px); animation: rise .6s var(--ease); }
.music-btn[hidden] { display: none; }
.music-btn svg { width: 22px; height: 22px; }
.music-btn .ic-off { display: none; }
.music-btn.off .ic-on { display: none; }
.music-btn.off .ic-off { display: block; }
.music-btn:not(.off)::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 1.5px solid var(--oliva); animation: ripple 2s ease-out infinite; }
@keyframes ripple { from { transform: scale(.9); opacity: .8; } to { transform: scale(1.35); opacity: 0; } }
.yt-holder { position: fixed; left: -9999px; top: 0; width: 200px; height: 120px; pointer-events: none; }

/* Confeti */
.confetti { position: fixed; z-index: 90; pointer-events: none; top: 0; left: 0; }

/* Barra de modo demo */
.demo-bar { position: relative; background: #3E3A36; color: #F1E9DA; font-size: .78rem; padding: 14px 16px 80px; text-align: center; line-height: 1.8; }
.demo-bar a { color: #D9BC7A; margin: 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .3s !important; transition-delay: 0s !important; }
  .leaves { display: none; }
}

/* ───────── Versículo ───────── */
.verse { padding: 64px 20px 56px; background: var(--marfil); }
.braid { width: 100%; max-width: 300px; height: 44px; display: block; margin: 0 auto 24px; overflow: visible; }
.braid path { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s var(--ease); }
.braid path:nth-child(2) { transition-delay: .35s; }
.braid path:nth-child(3) { transition-delay: .7s; }
.braid.in path { stroke-dashoffset: 0; }
.verse blockquote { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 6.2vw, 1.6rem); line-height: 1.45; color: var(--texto); max-width: 30ch; margin: 0 auto; transition-delay: .4s; }
.verse cite { display: block; margin-top: 16px; font-style: normal; font-size: .74rem; font-weight: 500; letter-spacing: .28em; text-transform: uppercase; color: var(--dorado-osc); transition-delay: .8s; }
