/* =========================================================================
   Invitación web · estilos
   Paleta: papel rosado, vino tinto, oro viejo.
   Para cambiar colores, edita solo las variables de :root.
   ========================================================================= */

:root {
  --paper: #F6F2EB;
  --paper-2: #EFE9DF;
  --card: #FFFFFF;
  --ink: #141414;
  --muted: #66625C;
  --wine: #111111;
  --wine-2: #000000;
  --gold: #B08D57;
  --gold-lt: #C9A66B;
  --line: rgba(23, 23, 23, .14);
  --line-lt: rgba(201, 166, 107, .35);

  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Jost", "Avenir Next", "Segoe UI", system-ui, sans-serif;

  --gutter: clamp(20px, 5vw, 40px);
  --ease: cubic-bezier(.22, .8, .22, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.i { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ---------- Tipografía común ---------- */
.eyebrow {
  margin: 0;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.eyebrow--light { color: var(--gold-lt); }
.title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.1rem, 8.5vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.title em { font-style: italic; color: var(--wine); }
.title--light { color: var(--paper); }
.title--light em { color: var(--gold-lt); }

.ornament {
  width: 132px; height: 12px; margin: 6px auto 0; position: relative;
}
.ornament::before {
  content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
}
.ornament::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 8px; height: 8px;
  background: var(--paper); border: 1px solid var(--gold);
  transform: translate(-50%, -50%) rotate(45deg);
}
.section--tint .ornament::after { background: var(--paper-2); }

.section {
  padding-block: clamp(80px, 14vw, 132px);
  padding-inline: var(--gutter);
  scroll-margin-top: 40px;
}
.section > * { max-width: 1000px; margin-inline: auto; }
.section--tint { background: var(--paper-2); }
.section--wine {
  background: var(--wine);
  color: var(--paper);
}
.section__head {
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  text-align: center; margin-bottom: clamp(40px, 8vw, 64px);
}
.section__text {
  max-width: 34em; text-align: center; color: var(--muted);
  margin-top: 0; margin-bottom: 40px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font-family: var(--sans); font-weight: 500; font-size: 14px; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent;
  transition: transform .25s var(--ease), background .25s, color .25s, border-color .25s;
}
.btn:active { transform: scale(.97); }
.btn--wine { background: var(--wine); color: var(--paper); }
.btn--wine:hover { background: var(--wine-2); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #9C7641; }
.btn--light { background: var(--paper); color: var(--wine); }
.btn--light:hover { background: #fff; }
.btn--ghost-light { background: transparent; color: var(--paper); border-color: var(--line-lt); }
.btn--ghost-light:hover { border-color: var(--gold-lt); }
.btn--outline { background: transparent; color: var(--wine); border-color: var(--wine); }
.btn--outline:hover { background: var(--wine); color: var(--paper); }
.btn--block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); background: transparent;
}
.link-btn { background: none; border: 0; text-decoration: underline; text-underline-offset: 4px; padding: 10px; font-size: 15px; }

/* =========================================================================
   SOBRE
   ========================================================================= */
.intro {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
  background: var(--wine);
  color: var(--paper);
  transition: opacity 1s var(--ease), visibility 1s;
}
.intro.is-gone { opacity: 0; visibility: hidden; pointer-events: none; }
.intro__inner { display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.intro__eyebrow { margin: 0; font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-lt); font-weight: 500; }
.intro__names { margin: 0; font-family: var(--script); font-size: clamp(2.8rem, 13vw, 4.4rem); line-height: 1.1; }
.intro__guest {
  margin: -6px 0 6px; font-family: var(--serif); font-style: italic; font-size: 1.15rem; color: var(--gold-lt);
}
.intro__hint {
  margin: 8px 0 0; font-size: 12px; letter-spacing: .28em; text-transform: uppercase; opacity: .75;
  animation: breathe 2.4s ease-in-out infinite;
}
.intro.is-open .intro__hint { opacity: 0; animation: none; transition: opacity .3s; }

.envelope {
  position: relative; width: min(82vw, 360px); aspect-ratio: 1.45; margin-top: 18px;
  perspective: 1400px;
  filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .35));
}
.envelope__back { position: absolute; inset: 0; background: #E3D9CA; border-radius: 6px; }
.envelope__letter {
  position: absolute; left: 6%; right: 6%; top: 6%; bottom: 8%; z-index: 2;
  background: var(--paper); border-radius: 4px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: var(--wine);
  transition: transform 1s var(--ease) .55s;
}
.envelope__letter::before {
  content: ""; position: absolute; inset: 8px; border: 1px solid var(--gold); border-radius: 2px; opacity: .6;
}
.envelope__letter-mono { font-family: var(--script); font-size: 2.6rem; line-height: 1; }
.envelope__letter-date { font-family: var(--serif); font-size: .9rem; letter-spacing: .12em; }
.envelope__front {
  position: absolute; inset: 0; z-index: 3; border-radius: 6px;
  background: #F5F0E8;
  clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%);
}
.envelope__front::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top right, transparent 49.6%, rgba(40, 36, 30, .12) 50%, transparent 50.4%),
              linear-gradient(to top left, transparent 49.6%, rgba(40, 36, 30, .12) 50%, transparent 50.4%);
}
.envelope__flap {
  position: absolute; left: 0; right: 0; top: 0; height: 58%; z-index: 4;
  background: #D8CAB2;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  transform-origin: top center;
  transition: transform .8s var(--ease), z-index 0s .4s;
}
.seal {
  position: absolute; left: 50%; top: 58%; z-index: 5;
  width: 84px; height: 84px; border-radius: 50%; border: 0; padding: 0;
  transform: translate(-50%, -50%);
  background: var(--gold-lt);
  box-shadow: inset 0 0 0 7px var(--gold-lt), inset 0 0 0 8px rgba(42, 36, 24, .32), 0 12px 24px -8px rgba(0, 0, 0, .55);
  display: grid; place-items: center;
  animation: pulse 2.4s ease-in-out infinite;
  transition: transform .5s var(--ease), opacity .5s;
}
.seal__mono { font-family: var(--script); font-size: 2rem; color: #2A2418; line-height: 1; }
.seal:hover { animation-play-state: paused; transform: translate(-50%, -50%) scale(1.06); }

.intro.is-open .seal { animation: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); }
.intro.is-open .envelope__flap { transform: rotateX(180deg); z-index: 1; }
.intro.is-open .envelope__letter { transform: translateY(-58%); }

@keyframes pulse { 0%, 100% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes breathe { 0%, 100% { opacity: .45; } 50% { opacity: .95; } }

/* =========================================================================
   BARRA SUPERIOR, MENÚ Y MÚSICA
   ========================================================================= */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(10px + var(--safe-top)) var(--gutter) 10px;
  color: var(--paper);
  transition: background .4s, color .4s, box-shadow .4s, transform .4s var(--ease);
}
.topbar.is-solid {
  background: rgba(247, 244, 238, .88);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  color: var(--wine);
  box-shadow: 0 1px 0 var(--line);
}
.topbar__mono { font-family: var(--script); font-size: 1.9rem; text-decoration: none; line-height: 1; padding: 6px 0; }
.topbar__menu {
  width: 44px; height: 44px; border: 0; background: transparent; position: relative;
}
.topbar__menu span:not(.sr-only) {
  position: absolute; left: 10px; right: 10px; height: 1.5px; background: currentColor;
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.topbar__menu span:nth-child(1) { top: 17px; }
.topbar__menu span:nth-child(2) { top: 26px; }
.menu-open .topbar__menu span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .topbar__menu span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }
.menu-open .topbar { color: var(--paper); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }

.menu {
  position: fixed; inset: 0; z-index: 35;
  background: var(--wine-2);
  display: grid; place-items: center;
  padding: calc(80px + var(--safe-top)) var(--gutter) calc(40px + var(--safe-bottom));
  animation: fadeIn .35s var(--ease);
}
.menu ul { list-style: none; margin: 0; padding: 0; text-align: center; display: flex; flex-direction: column; gap: 6px; }
.menu a {
  display: inline-block; padding: 8px 12px;
  font-family: var(--serif); font-size: clamp(1.6rem, 7vw, 2.3rem); color: var(--paper); text-decoration: none;
  opacity: 0; transform: translateY(12px); animation: rise .5s var(--ease) forwards;
}
.menu li:nth-child(n) a { animation-delay: calc(var(--n, 0) * 55ms + 80ms); }
.menu a:hover { color: var(--gold-lt); font-style: italic; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes rise { to { opacity: 1; transform: none; } }

.music {
  position: fixed; right: 16px; bottom: calc(16px + var(--safe-bottom)); z-index: 45;
  width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid var(--gold-lt); background: rgba(14, 14, 14, .88);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  display: grid; place-items: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .25);
}
.music__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music__bars i { width: 3px; height: 30%; background: var(--gold-lt); border-radius: 2px; }
.music.is-playing .music__bars i { animation: eq 1s ease-in-out infinite; }
.music.is-playing .music__bars i:nth-child(2) { animation-delay: -.3s; }
.music.is-playing .music__bars i:nth-child(3) { animation-delay: -.6s; }
.music.is-playing .music__bars i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* =========================================================================
   PORTADA
   ========================================================================= */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 560px;
  overflow: hidden; color: var(--paper); background: var(--wine-2);
}
.hero__slides img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transform: scale(1.02);
  transition: opacity 1.8s ease;
}
.hero__slides img.is-active { opacity: 1; animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14); } }
.hero__shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 10, 10, .45) 0%, transparent 22%),
    linear-gradient(0deg, rgba(10, 10, 10, .88) 0%, rgba(10, 10, 10, .35) 42%, transparent 65%);
}
.hero__content {
  position: absolute; left: 0; right: 0; bottom: calc(96px + var(--safe-bottom));
  padding-inline: var(--gutter);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
}
.hero__eyebrow { margin: 0; font-size: 12px; font-weight: 500; letter-spacing: .4em; text-transform: uppercase; color: var(--gold-lt); }
.hero__names {
  margin: 0; font-family: var(--script); font-weight: 400;
  font-size: clamp(3.8rem, 18vw, 7.5rem); line-height: .95;
  display: flex; flex-direction: column; align-items: center;
  text-shadow: 0 2px 30px rgba(0, 0, 0, .25);
}
.hero__amp { font-family: var(--serif); font-style: italic; font-size: .38em; color: var(--gold-lt); margin: .1em 0 .05em; }
.hero__date {
  margin: 12px 0 0; padding-top: 14px; border-top: 1px solid var(--line-lt);
  font-family: var(--serif); font-size: clamp(1rem, 4.2vw, 1.25rem); letter-spacing: .08em;
}
.hero__place { margin: 0; font-size: 13px; letter-spacing: .22em; text-transform: uppercase; opacity: .8; }
.hero__scroll {
  position: absolute; left: 50%; bottom: calc(28px + var(--safe-bottom)); transform: translateX(-50%);
  width: 26px; height: 42px; border: 1px solid rgba(247, 244, 238, .6); border-radius: 14px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: var(--paper); animation: scrollcue 1.8s ease-in-out infinite;
}
@keyframes scrollcue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* entrada escalonada de la portada tras abrir el sobre */
.hero__content > * { opacity: 0; transform: translateY(18px); }
.is-ready .hero__content > * { animation: rise 1.1s var(--ease) forwards; }
.is-ready .hero__content > *:nth-child(2) { animation-delay: .15s; }
.is-ready .hero__content > *:nth-child(3) { animation-delay: .35s; }
.is-ready .hero__content > *:nth-child(4) { animation-delay: .5s; }

/* =========================================================================
   CUENTA REGRESIVA
   ========================================================================= */
.countdown {
  padding: clamp(72px, 12vw, 112px) var(--gutter);
  display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center;
  scroll-margin-top: 40px;
}
.lead-script { margin: 0; font-family: var(--script); font-size: clamp(2.2rem, 10vw, 3rem); color: var(--gold-lt); line-height: 1.1; }
.countdown__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: 100%; max-width: 560px;
  border-top: 1px solid var(--line-lt); border-bottom: 1px solid var(--line-lt);
}
.countdown__cell { display: flex; flex-direction: column; align-items: center; padding: 18px 4px; }
.countdown__cell + .countdown__cell { border-left: 1px solid var(--line-lt); }
.countdown__num {
  font-family: var(--serif); font-size: clamp(2.2rem, 11vw, 3.8rem); line-height: 1;
  font-variant-numeric: tabular-nums lining-nums;
}
.countdown__lbl { margin-top: 8px; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-lt); }
.countdown__done { margin: 0; font-family: var(--serif); font-style: italic; font-size: 1.5rem; }
.save { margin-top: 28px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.save__title { margin: 0; font-family: var(--script); font-size: 2.3rem; line-height: 1; color: var(--paper); }
.save__date { margin: 0 0 12px; font-family: var(--serif); font-size: 1.1rem; letter-spacing: .06em; }

/* =========================================================================
   HISTORIA
   ========================================================================= */
.story__intro {
  max-width: 34em; margin: 0 auto 72px; font-size: 1.08rem; color: var(--ink); text-align: center;
}
.story__intro::first-letter { font-family: var(--serif); font-size: 1.6em; line-height: 1; color: var(--wine); }
.story__list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 72px; }
.story__item { display: grid; gap: 22px; justify-items: center; text-align: center; }
.arch {
  width: min(78%, 340px); aspect-ratio: 4 / 5; overflow: hidden;
  border-radius: 999px 999px 10px 10px;
  box-shadow: 0 0 0 1px var(--gold), 0 0 0 8px var(--paper), 0 0 0 9px var(--line);
}
.arch img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.story__item:hover .arch img { transform: scale(1.05); }
.story__year { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--gold); }
.story__title { margin: 6px 0 8px; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.story__text { margin: 0; color: var(--muted); max-width: 26em; }

@media (min-width: 820px) {
  .story__item { grid-template-columns: 1fr 1fr; align-items: center; text-align: left; justify-items: start; gap: 64px; }
  .story__item .arch { justify-self: end; width: 100%; max-width: 340px; }
  .story__item:nth-child(even) .arch { order: 2; justify-self: start; }
  .story__item:nth-child(even) .story__body { justify-self: end; text-align: right; }
}

/* =========================================================================
   FRASE
   ========================================================================= */
.quote {
  position: relative; overflow: hidden; min-height: 72vh; min-height: 72svh;
  display: grid; place-items: center; padding: 96px var(--gutter);
  color: var(--paper); text-align: center;
}
.quote__bg {
  position: absolute; left: 0; right: 0; top: -18%; bottom: -18%;
  background-size: cover; background-position: center; will-change: transform;
}
.quote::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 14, 14, .55), rgba(14, 14, 14, .7)); }
.quote__body { position: relative; z-index: 1; margin: 0; max-width: 22em; }
.quote__body p {
  margin: 0; font-family: var(--serif); font-style: italic; font-size: clamp(1.6rem, 6.4vw, 2.6rem); line-height: 1.3; text-wrap: balance;
}
.quote__body p::before { content: "“"; display: block; font-size: 2.4em; line-height: .6; color: var(--gold-lt); margin-bottom: .1em; }
.quote__body cite { display: block; margin-top: 22px; font-style: normal; font-size: 12px; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-lt); }

/* =========================================================================
   EVENTOS
   ========================================================================= */
.events__list { display: grid; gap: 28px; }
@media (min-width: 820px) { .events__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.event {
  background: var(--card); border-radius: 18px; overflow: hidden;
  box-shadow: 0 1px 0 var(--line), 0 20px 50px -24px rgba(23, 23, 23, .35);
  display: flex; flex-direction: column;
}
.event__photo { aspect-ratio: 3 / 2; overflow: hidden; position: relative; }
.event__photo img { width: 100%; height: 100%; object-fit: cover; }
.event__time {
  position: absolute; left: 16px; bottom: 16px;
  padding: 6px 14px; border-radius: 999px; background: rgba(247, 244, 238, .92);
  font-family: var(--serif); font-size: 1rem; color: var(--wine); font-variant-numeric: tabular-nums;
}
.event__body { padding: 26px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; text-align: center; align-items: center; }
.event__name { margin: 0; font-family: var(--serif); font-weight: 400; font-size: 1.85rem; line-height: 1.15; }
.event__addr { margin: 0 0 12px; display: flex; gap: 8px; align-items: flex-start; color: var(--muted); font-size: .98rem; text-align: left; max-width: 28em; }
.event__addr .i { margin-top: 3px; color: var(--gold); }
.event .btn { margin-top: auto; }

/* =========================================================================
   ITINERARIO
   ========================================================================= */
.timeline__list { list-style: none; padding: 0; max-width: 560px; position: relative; display: flex; flex-direction: column; gap: 34px; }
.timeline__list::before {
  content: ""; position: absolute; left: 27px; top: 10px; bottom: 10px; width: 1px;
  background: linear-gradient(180deg, transparent, var(--gold) 8%, var(--gold) 92%, transparent);
}
.tl { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; position: relative; }
.tl__icon {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper-2); border: 1px solid var(--gold); color: var(--wine);
  box-shadow: 0 0 0 6px var(--paper-2);
}
.tl__icon .i { width: 26px; height: 26px; stroke-width: 1.3; }
.tl__time { font-family: var(--serif); font-size: 1.05rem; color: var(--gold); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.tl__title { margin: 2px 0 4px; font-family: var(--serif); font-weight: 500; font-size: 1.4rem; line-height: 1.2; }
.tl__text { margin: 0; color: var(--muted); font-size: .98rem; }
@media (min-width: 820px) {
  .timeline__list { max-width: 820px; }
  .timeline__list::before { left: 50%; }
  .tl { grid-template-columns: 1fr 56px 1fr; gap: 28px; }
  .tl__icon { grid-column: 2; grid-row: 1; }
  .tl__body { grid-column: 3; grid-row: 1; padding-top: 4px; }
  .tl:nth-child(even) .tl__body { grid-column: 1; text-align: right; }
}

/* =========================================================================
   VESTIMENTA
   ========================================================================= */
.dress__grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 480px) { .dress__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.dress__card {
  padding: 32px 22px; border: 1px solid var(--line); border-radius: 16px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.dress__icon { width: 64px; height: 64px; fill: none; stroke: var(--wine); stroke-width: 1.1; stroke-linejoin: round; stroke-linecap: round; }
.dress__card h3 { margin: 6px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.5rem; }
.dress__card p { margin: 0; color: var(--muted); font-size: .98rem; }
.reserved { margin-top: 40px; text-align: center; }
.reserved__title { margin: 0 0 20px; font-family: var(--serif); font-style: italic; font-size: 1.3rem; }
.reserved__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 20px 28px; }
.reserved__item { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; }
.swatch {
  width: 58px; height: 58px; border-radius: 50%; position: relative;
  box-shadow: 0 0 0 1px var(--line), 0 0 0 5px var(--paper), 0 0 0 6px var(--line);
}
.swatch::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 76px; height: 1px; background: var(--wine);
  transform: translate(-50%, -50%) rotate(-40deg); opacity: .55;
}
.reserved__name { font-size: 14px; font-weight: 500; line-height: 1.2; }
.reserved__for { font-size: 13px; color: var(--muted); line-height: 1.2; }

/* =========================================================================
   PADRINOS
   ========================================================================= */
.people__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; text-align: center; }
@media (min-width: 820px) { .people__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.people__role { margin: 0 0 10px; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); font-weight: 500; }
.people__names { margin: 0; font-family: var(--serif); font-size: 1.15rem; line-height: 1.5; }

/* =========================================================================
   GALERÍA
   ========================================================================= */
.gallery__grid { columns: 2; column-gap: 10px; max-width: 1100px; }
@media (min-width: 760px) { .gallery__grid { columns: 3; column-gap: 14px; } }
.gallery__item {
  display: block; width: 100%; padding: 0; border: 0; margin: 0 0 10px; break-inside: avoid;
  border-radius: 10px; overflow: hidden; background: var(--paper-2); position: relative;
  min-height: 120px;
}
@media (min-width: 760px) { .gallery__item { margin-bottom: 14px; } }
.gallery__item img { width: 100%; height: auto; transition: transform .9s var(--ease), filter .5s; }
.gallery__item:hover img { transform: scale(1.05); }

.lightbox {
  position: fixed; inset: 0; z-index: 120; background: rgba(8, 8, 8, .96);
  display: grid; place-items: center; touch-action: pan-y;
  padding: calc(64px + var(--safe-top)) 12px calc(64px + var(--safe-bottom));
  animation: fadeIn .3s ease;
}
.lightbox__stage { margin: 0; width: 100%; height: 100%; display: grid; place-items: center; }
.lightbox__stage img {
  max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px;
  transition: transform .35s var(--ease), opacity .35s;
}
.lightbox .icon-btn { position: absolute; color: var(--paper); border-color: rgba(247, 244, 238, .3); background: rgba(0, 0, 0, .25); }
.lightbox__close { top: calc(14px + var(--safe-top)); right: 14px; }
.lightbox__nav--prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: 12px; top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: calc(20px + var(--safe-bottom)); left: 0; right: 0; margin: 0; text-align: center; color: var(--gold-lt); font-size: 13px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .lightbox__nav { display: none; } }

/* =========================================================================
   REGALOS
   ========================================================================= */
.gifts__grid { display: grid; gap: 16px; }
@media (min-width: 820px) { .gifts__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.gift {
  background: var(--card); border-radius: 16px; padding: 30px 24px;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center;
  box-shadow: 0 1px 0 var(--line);
}
.gift__icon { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--gold); display: grid; place-items: center; color: var(--wine); }
.gift__icon .i { width: 24px; height: 24px; stroke-width: 1.3; }
.gift h3 { margin: 4px 0 0; font-family: var(--serif); font-weight: 500; font-size: 1.45rem; }
.gift p { margin: 0; color: var(--muted); font-size: .98rem; }
.gift__data { width: 100%; margin: 6px 0 0; display: grid; gap: 8px; text-align: left; }
.gift__row { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); font-size: .95rem; }
.gift__row dt { color: var(--muted); }
.gift__row dd { margin: 0; font-weight: 500; text-align: right; }
.clabe {
  width: 100%; margin-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 16px; border-radius: 12px; background: var(--paper-2);
  font-family: var(--serif); font-size: 1.05rem; letter-spacing: .06em; font-variant-numeric: tabular-nums;
}
.clabe .icon-btn { background: var(--card); flex-shrink: 0; }
.gift .btn { margin-top: 8px; }

/* =========================================================================
   HOSPEDAJE
   ========================================================================= */
.stay__list { list-style: none; padding: 0; max-width: 640px; display: flex; flex-direction: column; }
.stay__item { border-top: 1px solid var(--line); }
.stay__item:last-child { border-bottom: 1px solid var(--line); }
.stay__link { display: grid; grid-template-columns: 44px 1fr 24px; gap: 16px; align-items: center; padding: 20px 4px; text-decoration: none; }
.stay__link:hover .stay__name { color: var(--wine); font-style: italic; }
.stay__link > .i:first-child { width: 28px; height: 28px; color: var(--gold); justify-self: center; stroke-width: 1.3; }
.stay__name { display: block; font-family: var(--serif); font-size: 1.3rem; line-height: 1.2; }
.stay__detail { display: block; font-size: .95rem; color: var(--muted); }

/* =========================================================================
   RSVP
   ========================================================================= */
.rsvp { padding: clamp(80px, 14vw, 132px) var(--gutter); scroll-margin-top: 40px; }
.rsvp .section__head { margin-bottom: 36px; }
.rsvp__deadline { margin: 0; font-size: 15px; color: rgba(247, 244, 238, .8); }
.rsvp__card {
  max-width: 520px; margin: 0 auto; padding: 32px 24px;
  background: var(--paper); color: var(--ink); border-radius: 20px;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; gap: 22px;
}
@media (min-width: 480px) { .rsvp__card { padding: 40px 36px; } }
.rsvp__for {
  margin: 0; padding: 12px 16px; border-radius: 12px; background: var(--paper-2); text-align: center;
  font-family: var(--serif); font-size: 1.1rem;
}
.rsvp__for strong { font-weight: 500; color: var(--wine); }
.field { display: flex; flex-direction: column; gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.field label, .field legend { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); padding: 0; }
.field legend { margin-bottom: 8px; }
.opt { text-transform: none; letter-spacing: 0; font-weight: 300; }
.field input[type="text"], .field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  padding: 10px 2px; font: inherit; font-size: 17px; color: var(--ink); border-radius: 0;
  transition: border-color .2s;
}
.field textarea { resize: vertical; min-height: 88px; }
.field input[type="text"]:focus, .field textarea:focus { outline: none; border-bottom-color: var(--gold); }
.field input[aria-invalid="true"] { border-bottom-color: #A3283F; }
.field__err { margin: 0; font-size: 14px; color: #A3283F; }
.field__hint { margin: 0; font-size: 14px; color: var(--muted); }
.choice { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice label {
  display: grid; place-items: center; min-height: 52px; padding: 8px 10px; border-radius: 12px;
  border: 1px solid var(--line); text-align: center; cursor: pointer;
  font-size: 15px; letter-spacing: 0; text-transform: none; color: var(--ink); font-weight: 400;
  transition: all .2s;
}
.choice input:checked + label { background: var(--wine); border-color: var(--wine); color: var(--paper); }
.choice input:focus-visible + label { outline: 2px solid var(--gold); outline-offset: 2px; }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 999px; width: max-content; }
.stepper__btn { width: 52px; height: 52px; border: 0; background: transparent; font-size: 1.4rem; color: var(--wine); border-radius: 50%; }
.stepper__btn:disabled { opacity: .3; cursor: default; }
.stepper input {
  width: 48px; border: 0; background: transparent; text-align: center;
  font-family: var(--serif); font-size: 1.4rem; color: var(--ink); -moz-appearance: textfield;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.rsvp__note { margin: 0; text-align: center; font-size: 14px; color: var(--muted); }
.rsvp__done { align-items: center; text-align: center; gap: 12px; }
.rsvp__done-icon { width: 52px; height: 52px; fill: none; stroke: var(--wine); stroke-width: 1.2; }
.rsvp__done h3 { margin: 0; font-family: var(--script); font-weight: 400; font-size: 2.8rem; line-height: 1.1; color: var(--wine); }
.rsvp__done p { margin: 0; color: var(--muted); }
.btn.is-loading { opacity: .7; pointer-events: none; }

/* =========================================================================
   FOTOS INVITADOS
   ========================================================================= */
.share { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.share__icon { width: 52px; height: 52px; fill: none; stroke: var(--gold); stroke-width: 1.1; }
.share .section__text { margin-bottom: 0; }
.share__tag {
  display: inline-flex; align-items: center; gap: 12px; padding: 6px 6px 6px 22px; border-radius: 999px;
  border: 1px solid var(--line); font-family: var(--serif); font-size: 1.2rem; color: var(--wine);
  max-width: 100%;
}
.share__tag span { overflow-wrap: anywhere; }
.share .btn { margin-top: 8px; }

/* =========================================================================
   PIE
   ========================================================================= */
.footer {
  background: var(--wine-2); color: var(--paper); text-align: center;
  padding: 88px var(--gutter) calc(96px + var(--safe-bottom));
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.footer__script { margin: 0; font-family: var(--script); font-size: clamp(2.6rem, 12vw, 3.6rem); color: var(--gold-lt); line-height: 1.1; }
.footer__names { margin: 0; font-family: var(--serif); font-size: 1.35rem; letter-spacing: .04em; }
.footer__date { margin: 0; font-size: 13px; letter-spacing: .24em; text-transform: uppercase; opacity: .75; }
.footer__credits { margin-top: 36px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; opacity: .7; }
.footer__credits a { text-decoration: none; border-bottom: 1px solid var(--line-lt); }

/* =========================================================================
   TOAST
   ========================================================================= */
.toast {
  position: fixed; left: 50%; bottom: calc(84px + var(--safe-bottom)); z-index: 130;
  transform: translateX(-50%);
  padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--paper);
  font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  animation: toast .3s var(--ease);
  max-width: calc(100% - 32px); text-align: center;
}
@keyframes toast { from { opacity: 0; transform: translate(-50%, 10px); } }

/* =========================================================================
   APARICIÓN AL HACER SCROLL
   ========================================================================= */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero__content > * { opacity: 1; transform: none; }
}

/* =========================================================================
   AJUSTES INVITARA: secciones sin foto, vista previa de confirmación y aviso de ejemplo
   ========================================================================= */
.story__item--texto { grid-template-columns: 1fr !important; justify-items: center !important; text-align: center !important; max-width: 560px; margin-inline: auto; }
.story__item--texto .story__body { justify-self: center !important; text-align: center !important; }
.story__item--texto .story__year { margin-inline: auto; }
.event--texto .event__head { position: relative; display: grid; place-items: center; padding: 30px 24px 6px; }
.event--texto .event__head::before { content: ""; position: absolute; left: 24px; right: 24px; top: 50%; height: 1px; background: var(--line-lt); }
.event--texto .event__time { position: relative; inset: auto; transform: none; }
.rsvp__preview { margin: 6px auto 0; max-width: 340px; padding: 12px 14px 10px; border-radius: 14px 14px 14px 4px; background: #FFFFFF; color: #171717; text-align: left; font-size: .95rem; line-height: 1.45; box-shadow: 0 1px 0 rgba(23, 23, 23, .08), 0 10px 24px -16px rgba(0, 0, 0, .45); }
.rsvp__preview span { display: block; }
.demo-bar {
  position: fixed; left: 50%; top: calc(16px + var(--safe-top)); z-index: 45; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px 7px 14px; border-radius: 999px;
  background: rgba(14, 14, 14, .82); color: #E9D3A2; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(201, 166, 107, .4), 0 8px 20px -10px rgba(0, 0, 0, .6);
  font-size: 12px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.demo-bar:hover { color: #F7F4EE; }
.demo-bar:focus-visible { outline: 2px solid #F7F4EE; outline-offset: 2px; }
body.is-locked .demo-bar { display: none; }
.event--texto .event__time { border: 1px solid var(--line-lt); background: var(--card); }
