/* ===== Diseño "Regina": alta costura. Marfil, champaña, oro y negro carbón. Se carga después de base.css ===== */
:root {
  --rose: #c9a66b;
  --rose-deep: #2b2623;
  --wine: #2b2623;
  --gold: #b8935a;
  --gold-light: #efe2c6;
  --cream: #fbf8f3;
  --blush: #f3ece2;
  --ink: #2b2623;
  --muted: #8a7f76;
  --espresso: #1f1b18;
  --champagne: #e9dcc4;
  --script: "Monsieur La Doulaise", cursive;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Montserrat", system-ui, sans-serif;
  --deco: "Bodoni Moda", "Didot", Georgia, serif;
  --caps: "Italiana", Georgia, serif;
  --foil: linear-gradient(110deg, #9c7a45 0%, #f7e8c4 20%, #c9a66b 38%, #fff6de 50%, #b08d57 66%, #e8d3a3 82%, #9c7a45 100%);
  --linen: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .5 0 0 0 0 .43 0 0 0 0 .35 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease-lux: cubic-bezier(.77, 0, .175, 1);
}
body { background: var(--cream); }
@keyframes foil { to { background-position: -200% 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.foil, .shimmer, .countdown__item span, .personal__num, .ticket__name, .gate__inner .envelope__letter-name {
  background: var(--foil); background-size: 200% auto; -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent; animation: foil 7s linear infinite;
}

/* ---------- Apertura ---------- */
.intro { background: var(--linen), radial-gradient(ellipse at 50% 40%, #fffdf8, #f1e8da 60%, #e3d5bf); gap: 1.6rem; }
.intro__halo { display: none; }
.silk {
  position: absolute; inset: -20%; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.75) 45%, transparent 60%);
  animation: silk 7s ease-in-out infinite;
}
@keyframes silk { 0% { transform: translateX(-60%); } 60%, 100% { transform: translateX(60%); } }
.intro__kicker { font-family: var(--caps); font-size: 1rem; letter-spacing: .5em; text-transform: uppercase; color: var(--muted); }
.intro__guest { font-family: var(--script); font-size: 2.6rem; letter-spacing: 0; text-transform: none; color: var(--ink); margin-top: .1rem; }
.intro__hint { font-family: var(--sans); font-style: normal; font-size: .68rem; letter-spacing: .35em; text-transform: uppercase; color: var(--muted); }
.intro__tap { background: var(--gold); }
.intro__tap::after { border-color: var(--gold); }
.intro .sparkles { opacity: .8; }

.envelope.gatefold { --w: min(70vw, 18rem); width: var(--w); height: calc(var(--w) * 1.4); perspective: 90rem; animation: envIn 1.6s var(--ease) .3s both, float 6s ease-in-out 2s infinite; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.gate__inner.envelope__letter {
  inset: 0; border: 0; border-radius: .2rem;
  background: var(--linen), linear-gradient(160deg, #fffdf9, #f7f0e4);
  box-shadow: 0 2rem 4rem rgba(80,60,40,.25), 0 0 0 1px rgba(184,147,90,.25);
  transition: transform 1.6s var(--ease-lux), box-shadow 1.6s;
}
.gate__inner.envelope__letter::before { display: none; }
.gate__filigree { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: var(--gold); stroke-width: .6; }
.gate__filigree * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.envelope.is-letter .gate__filigree * { animation: draw 2.2s var(--ease) forwards; }
.envelope.is-letter .gate__filigree *:nth-child(n+3) { animation-delay: .6s; }
.envelope.is-letter .gate__filigree *:nth-child(n+5) { animation-delay: 1s; }
.gate__inner > span { opacity: 0; transform: translateY(.6rem); transition: opacity 1s, transform 1s var(--ease); }
.envelope.is-letter .gate__inner > span { opacity: 1; transform: none; }
.envelope.is-letter .gate__inner > span:nth-of-type(2) { transition-delay: .5s; }
.envelope.is-letter .gate__inner > span:nth-of-type(3) { transition-delay: .9s; }
.envelope.is-letter .gate__inner > span:nth-of-type(4) { transition-delay: 1.2s; }
.gate__inner .envelope__letter-mis { font-family: var(--caps); font-style: normal; letter-spacing: .45em; font-size: .7rem; color: var(--muted); }
.gate__inner .envelope__letter-name { font-family: var(--script); font-size: 3.6rem; line-height: 1.3; padding: 0 .3em; }
.gate__line { display: block; width: 3.5rem; height: 1px; background: var(--gold); margin: .3rem 0 .6rem; }
.gate__inner .envelope__letter-date { font-family: var(--caps); letter-spacing: .2em; font-size: .55rem; color: var(--ink); }
.envelope.is-letter .gate__inner.envelope__letter { transform: none; box-shadow: 0 2.5rem 5rem rgba(80,60,40,.3), 0 0 0 1px rgba(184,147,90,.4); }
.intro.is-zoom .gate__inner.envelope__letter { transform: scale(1.35); }
.intro.is-zoom .envelope { transform: none; }

.gate__panel {
  position: absolute; top: 0; bottom: 0; width: 50%; z-index: 3;
  background: var(--linen), linear-gradient(160deg, #fbf6ee, #efe5d4);
  box-shadow: 0 1.5rem 3rem rgba(80,60,40,.2);
  transition: transform 1.8s var(--ease-lux);
}
.gate__panel::before { content: ""; position: absolute; inset: .6rem; border: 1px solid rgba(184,147,90,.55); }
.gate__panel--l::before { right: .35rem; }
.gate__panel--r::before { left: .35rem; }
.gate__panel--l { left: 0; transform-origin: left center; border-radius: .2rem 0 0 .2rem; box-shadow: inset -1px 0 0 rgba(184,147,90,.45), 0 1.5rem 3rem rgba(80,60,40,.2); }
.gate__panel--r { right: 0; transform-origin: right center; border-radius: 0 .2rem .2rem 0; }
.gate__panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.05), transparent 30%); }
.gate__panel--r::after { transform: scaleX(-1); }
.envelope.is-flap .gate__panel--l { transform: rotateY(-165deg); }
.envelope.is-flap .gate__panel--r { transform: rotateY(165deg); }

.gate__ribbon {
  position: absolute; top: 50%; height: 2.3rem; margin-top: -1.15rem; width: 50%; z-index: 4;
  background: linear-gradient(180deg, #d9c39b, #f8eed8 30%, #e2cfa9 55%, #c9ad7c 100%);
  box-shadow: 0 .3rem .6rem rgba(80,60,40,.25);
  transition: transform 1.2s var(--ease-lux), opacity .8s .5s;
}
.gate__ribbon--l { left: -6%; }
.gate__ribbon--r { right: -6%; }
.envelope.is-seal .gate__ribbon--l { transform: translateX(-120%); opacity: 0; }
.envelope.is-seal .gate__ribbon--r { transform: translateX(120%); opacity: 0; }

.gate__ring { position: absolute; left: 50%; top: 50%; width: 8.2rem; height: 8.2rem; margin: -4.1rem 0 0 -4.1rem; z-index: 5; fill: none; stroke: var(--gold); stroke-width: .9; pointer-events: none; transition: opacity .6s, transform 1s var(--ease); }
.gate__ring * { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.6s var(--ease) forwards; }
.gate__ring circle:nth-child(1) { animation-delay: .9s; }
.gate__ring circle:nth-child(2) { animation-delay: 1.2s; }
.gate__ring path { animation-delay: 1.7s; animation-duration: 2s; }
.envelope.is-seal .gate__ring { opacity: 0; transform: scale(1.3) rotate(25deg); }

.seal { top: 50%; width: 4.4rem; height: 4.4rem; margin: -2.2rem 0 0 -2.2rem; z-index: 6; filter: drop-shadow(0 .4rem .6rem rgba(80,60,40,.35)); animation: sealIn 1s var(--ease) 1.4s both; }
@keyframes sealIn { from { opacity: 0; transform: scale(.6); } }
.seal::before { background: radial-gradient(circle, rgba(255,246,222,.9), transparent 65%); }
.seal__half {
  border-radius: 50%;
  background:
    radial-gradient(circle, transparent 60%, rgba(120,90,50,.35) 61%, transparent 64%),
    var(--foil);
  background-size: auto, 220% 100%;
  animation: foil 6s linear infinite;
  box-shadow: inset 0 0 0 .18rem rgba(255,246,222,.6), inset 0 -.25rem .5rem rgba(90,60,20,.3);
  font-family: var(--deco); font-style: italic; font-size: 2rem;
}
.seal__half span { color: #fffaf0; text-shadow: 0 1px 1px rgba(90,60,20,.6); }
.seal__half--l { clip-path: inset(0 50% 0 0); }
.seal__half--r { clip-path: inset(0 0 0 50%); }
.envelope.is-seal .seal__half--l { transform: translateX(-160%) rotate(-25deg); }
.envelope.is-seal .seal__half--r { transform: translateX(160%) rotate(25deg); }
.intro__flash { background: radial-gradient(circle at 50% 50%, #ffffff 0%, rgba(255,250,238,.95) 30%, rgba(239,226,198,0) 70%); }

/* ---------- Portada cinematográfica ---------- */
.hero::before, .hero::after {
  content: ""; position: absolute; left: 0; right: 0; height: 13vh; z-index: 6; background: #0d0b0a;
  transition: transform 2s var(--ease-lux) .4s;
}
.hero::before { top: 0; }
.hero::after { bottom: 0; }
body.is-ready .hero::before { transform: translateY(-100%); }
body.is-ready .hero::after { transform: translateY(100%); }
.hero__overlay { background: linear-gradient(to bottom, rgba(20,16,13,.35) 0%, rgba(20,16,13,.05) 35%, rgba(20,16,13,.78) 100%); }
.hero__light { background: radial-gradient(circle at var(--lx, 50%) var(--ly, 30%), rgba(255,246,222,.22), transparent 45%); }
.hero__light::after {
  content: ""; position: absolute; inset: 1.1rem;
  background:
    linear-gradient(var(--gold-light), var(--gold-light)) top left / 0 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) top right / 1px 0 no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom right / 0 1px no-repeat,
    linear-gradient(var(--gold-light), var(--gold-light)) bottom left / 1px 0 no-repeat;
  opacity: .8;
}
body.is-ready .hero__light::after { animation: frame 2.4s var(--ease-lux) 1.6s forwards; }
@keyframes frame {
  25% { background-size: 100% 1px, 1px 0, 0 1px, 1px 0; }
  50% { background-size: 100% 1px, 1px 100%, 0 1px, 1px 0; }
  75% { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 0; }
  100% { background-size: 100% 1px, 1px 100%, 100% 1px, 1px 100%; }
}
.hero__pre { font-family: var(--caps); font-style: normal; font-size: .95rem; letter-spacing: .7em; color: var(--gold-light); text-shadow: 0 1px 8px rgba(0,0,0,.4); }
.hero__xv { font-family: var(--deco); font-weight: 400; font-size: clamp(7rem, 38vw, 14rem); letter-spacing: -.02em; line-height: .95; filter: drop-shadow(0 .3rem 1.2rem rgba(0,0,0,.35)); }
.hero__name { font-family: var(--script); font-size: clamp(4rem, 20vw, 7rem); color: #fffaf0; line-height: 1.25; }
.hero__date { font-family: var(--caps); font-size: .8rem; letter-spacing: .4em; color: #fffaf0; }
.divider { color: var(--gold-light); }
.divider span { animation: none; font-size: .6rem; }
.hero__scroll { border-color: rgba(255,250,240,.8); }

/* ---------- Adorno dibujado bajo los títulos ---------- */
.title::after { display: none; }
.title { font-family: var(--caps); font-weight: 400; font-size: clamp(1.5rem, 6.5vw, 2.3rem); letter-spacing: .28em; text-transform: uppercase; color: var(--ink); margin-bottom: .6rem; }
.title--light { color: var(--gold-light); }
.flourish { width: 13rem; max-width: 70%; margin: 0 auto 2.4rem; color: var(--gold); }
.flourish.reveal { opacity: 1; transform: none; }
.flourish svg { display: block; width: 100%; height: auto; fill: none; stroke: currentColor; stroke-width: 1; }
.flourish svg * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.flourish.is-visible svg * { animation: draw 1.8s var(--ease) .3s forwards; }
.flourish.is-visible svg *:nth-child(2) { animation-delay: .7s; }
.flourish.is-visible svg *:nth-child(3) { animation-delay: 1.2s; animation-duration: .8s; }
.flourish--light { color: var(--gold-light); }

/* ---------- Secciones ---------- */
.section { padding: 5.5rem 0; }
.section--light { background: var(--linen), var(--cream); }
.section--soft { background: var(--linen), var(--blush); }
.section--accent { background: var(--linen), radial-gradient(ellipse at 50% 0, #2e2824, var(--espresso) 70%); color: var(--gold-light); }
.script { font-family: var(--script); color: var(--gold); font-size: clamp(2.8rem, 12vw, 3.6rem); }
.script--light { color: var(--gold-light); }
.ornament { display: none; }
.message { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.35rem; color: var(--ink); }
.people__group, .place, .gift, .personal__seats, .timeline__body {
  background: #fffdf9; border-radius: 0;
  border: 1px solid rgba(184,147,90,.35);
  box-shadow: 0 1.5rem 3rem rgba(80,60,40,.08);
}
.people__group { box-shadow: inset 0 0 0 .4rem #fffdf9, inset 0 0 0 calc(.4rem + 1px) rgba(184,147,90,.25), 0 1.5rem 3rem rgba(80,60,40,.08); }
.people h3 { font-family: var(--script); color: var(--gold); font-size: 2.6rem; }
.people ul { font-family: var(--serif); font-size: 1.2rem; }
.personal__kicker { font-family: var(--caps); font-style: normal; letter-spacing: .3em; text-transform: uppercase; font-size: .8rem; }
.personal__name { font-family: var(--script); color: var(--ink); font-size: clamp(3rem, 13vw, 4.4rem); }
.personal__seats { padding: 1.8rem 3rem; }
.personal__seats::after { background: linear-gradient(120deg, transparent, rgba(239,226,198,.8), transparent); }
.personal__num { font-family: var(--deco); font-size: 5rem; }

/* Cuenta regresiva */
.countdown__item { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; position: relative; }
.countdown__item + .countdown__item::before { content: "·"; position: absolute; left: -.35rem; top: 22%; color: var(--gold); font-size: 2rem; }
.countdown__item span { font-family: var(--deco); font-weight: 400; font-size: clamp(2.6rem, 12vw, 4.2rem); }
.countdown__item small { font-family: var(--caps); letter-spacing: .3em; color: var(--gold-light); }

/* Lugares */
.place::before { border-radius: 0; border-color: rgba(184,147,90,.3); inset: .55rem; }
.place__icon { color: var(--gold); }
.place__icon svg { stroke-width: 1.4; }
.place__title { font-family: var(--script); color: var(--gold); font-size: 3rem; }
.place__time { font-family: var(--caps); letter-spacing: .35em; color: var(--ink); }
.place__name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.place__map { border-radius: 0; filter: sepia(.25) saturate(.8); }
.btn {
  background: transparent; color: var(--ink); border-radius: 0;
  box-shadow: inset 0 0 0 1px var(--ink); font-family: var(--sans); font-weight: 500; letter-spacing: .3em;
  transition: background .5s var(--ease), color .5s var(--ease), transform .3s var(--ease);
}
.btn::after { background: linear-gradient(120deg, transparent, rgba(184,147,90,.35), transparent); }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn--light { color: var(--gold-light); box-shadow: inset 0 0 0 1px var(--gold-light); background: transparent; }
.rsvp .btn--light, .pass .btn--light { background: var(--foil); background-size: 200% auto; animation: foil 7s linear infinite; color: var(--espresso); box-shadow: none; }

/* Itinerario */
.timeline::before { width: 1px; background: linear-gradient(var(--gold), var(--champagne)); }
.timeline__icon { background: #fffdf9; color: var(--gold); border-color: rgba(184,147,90,.5); box-shadow: none; }
.timeline__icon svg { stroke-width: 1.6; }
.timeline__item.is-lit .timeline__icon { background: var(--espresso); color: var(--gold-light); box-shadow: 0 0 0 .35rem rgba(184,147,90,.15); }
.timeline__time { font-family: var(--caps); letter-spacing: .3em; color: var(--gold); }
.timeline__event { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; }

/* Frase */
.quote__overlay { background: linear-gradient(rgba(20,16,13,.45), rgba(20,16,13,.7)); }
.quote__text { font-family: var(--serif); font-weight: 300; font-size: clamp(1.7rem, 7vw, 2.6rem); }
.quote__text::before, .quote__text::after { color: var(--gold-light); font-family: var(--deco); }

/* Vestimenta y regalos */
.dress { font-family: var(--deco); font-style: italic; font-weight: 400; font-size: 2.2rem; }
.dress-icons { color: var(--gold); }
.dress-icons svg { stroke-width: 1.2; }
.gift__icon { color: var(--gold); }
.gift__icon svg { stroke-width: 1.2; }
.gift__title { font-family: var(--script); color: var(--gold); font-size: 2.8rem; }

/* Galería editorial */
.gallery { gap: .7rem; }
.gallery__item { border-radius: 0; box-shadow: none; }
.gallery__item:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
.gallery__item.reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.6s var(--ease-lux) var(--rd, 0s); }
.gallery__item.reveal.is-visible { clip-path: inset(0 0 0 0); }
.gallery__item.reveal img { transform: scale(1.25); transition: transform 2.2s var(--ease) var(--rd, 0s); }

/* Álbum */
.album__stack img { border-radius: 0; }
.album__qr { background: var(--espresso); color: var(--gold-light); border-radius: 0; }

/* Confirmación y pase */
.rsvp { border-radius: 0; border-color: rgba(239,226,198,.35); background: rgba(255,255,255,.04); }
.field input, .field textarea { border-radius: 0; }
.choice span, .stepper button { border-radius: 0; }
.choice input:checked + span { background: var(--gold-light); color: var(--espresso); }
.ticket { border-radius: 0; background: var(--linen), #fffdf9; }
.ticket__top { background: var(--linen), linear-gradient(160deg, #fffdf9, #f3ece2); }
.ticket__kicker { font-family: var(--caps); color: var(--muted); }
.ticket__name { font-family: var(--script); font-size: 3.8rem; }
.ticket__cut::before, .ticket__cut::after { background: #241f1b; }
.ticket__guest { font-family: var(--serif); font-weight: 500; }
.ticket__info div { border-radius: 0; background: #f6efe4; }
.ticket__info b, .ticket__code { color: var(--ink); }
.ticket__ok { color: var(--gold); background: #f6efe4; border-radius: 0; letter-spacing: .25em; }

/* Pie, música y cursor */
.footer { background: var(--linen), var(--espresso); }
.footer__name { font-family: var(--caps); letter-spacing: .5em; color: var(--gold-light); }
.music { background: rgba(255,253,249,.92); border-color: var(--gold); }
.music__bars i { background: var(--gold); }
.progress { height: 2px; background: var(--foil); background-size: 200% auto; box-shadow: none; }
.cursor-glow { background: radial-gradient(circle, rgba(239,226,198,.35) 0%, rgba(184,147,90,.1) 35%, transparent 65%); mix-blend-mode: normal; }

@media (min-width: 700px) and (orientation: landscape) {
  .gallery__item:first-child { grid-column: span 3; aspect-ratio: 21 / 9; }
}
