/* =========================================================
   INVITACIÓN DE BODA · Estilos
   Cambia los colores y fuentes aquí, en :root
   ========================================================= */
:root {
  --ivory: #faf7f2;
  --paper: #f3eee6;
  --ink: #1c1a17;
  --ink-soft: #3a3631;
  --muted: #7a7268;
  --gold: #a8875a;
  --gold-soft: #d8c4a3;
  --line: rgba(28, 26, 23, .12);
  --white: #fff;

  --script: 'Great Vibes', cursive;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --sans: 'Montserrat', system-ui, sans-serif;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}
body.is-locked { overflow: hidden; height: 100vh; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
[hidden] { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 820px; }
.section { padding: clamp(80px, 12vw, 140px) 0; position: relative; }

/* ---------- Tipografía común ---------- */
.eyebrow {
  font-size: .72rem; letter-spacing: .38em; text-transform: uppercase;
  color: var(--gold); font-weight: 500; margin-bottom: 8px;
}
.eyebrow--light { color: var(--gold-soft); }
.script-title {
  font-family: var(--script); font-weight: 400;
  font-size: clamp(3rem, 7vw, 4.6rem); line-height: 1.15; color: var(--ink);
}
.script-title--light { color: var(--white); }
.script-title--sm { font-size: clamp(2.4rem, 5vw, 3rem); }
.section-head { text-align: center; margin-bottom: clamp(48px, 7vw, 72px); }
.section-head__sub {
  font-family: var(--serif); font-size: 1.25rem; font-style: italic; color: var(--muted); margin-top: 6px;
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 30px; font-size: .74rem; letter-spacing: .22em; text-transform: uppercase;
  font-weight: 500; text-decoration: none; transition: all .4s var(--ease); position: relative;
}
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--gold); }
.btn--outline { border: 1px solid var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--white); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--gold-soft); }
.btn--ghost-light { border: 1px solid rgba(255,255,255,.6); color: var(--white); }
.btn--ghost-light:hover { background: rgba(255,255,255,.12); }
.btn--block { width: 100%; padding: 18px; }

/* ---------- Animación de aparición ---------- */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* =========================================================
   SOBRE DE BIENVENIDA
   ========================================================= */
.intro { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; }
.intro__panel {
  position: absolute; left: 0; right: 0; height: 50.5%;
  background: var(--paper);
  background-image: radial-gradient(circle at 50% 120%, rgba(168, 136, 90, 0.452), transparent 60%);
  transition: transform 1.4s var(--ease);
}
.intro__panel--top { top: 0; border-bottom: 1px solid var(--line); }
.intro__panel--bottom { bottom: 0; }
.intro__panel--top::after {
  content: ''; position: absolute; left: 50%; bottom: -1px; width: 70%; height: 1px;
  transform: translateX(-50%); background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.intro__content { position: relative; z-index: 2; text-align: center; padding: 24px; transition: opacity .6s ease; }
.intro__kicker { font-size: .72rem; letter-spacing: .38em; text-transform: uppercase; color: var(--muted); }
.intro__guest { font-family: var(--script); font-size: clamp(2.4rem, 8vw, 3.6rem); margin: 10px 0 34px; line-height: 1.2; }
.intro__hint { margin-top: 28px; font-family: var(--serif); font-style: italic; color: var(--muted); font-size: 1.1rem; animation: pulse 2.4s ease-in-out infinite; }

.seal {
  width: 120px; height: 120px; border-radius: 50%; margin: 0 auto;
  display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #c9a36d, #8e6a3c 70%, #6d4f2a);
  box-shadow: 0 10px 30px rgba(110, 80, 40, .35), inset 0 2px 6px rgba(255,255,255,.35), inset 0 -4px 10px rgba(0,0,0,.25);
  color: #fdf6e8; font-family: var(--serif); font-size: 1.8rem; letter-spacing: .05em;
  transition: transform .5s var(--ease);
  position: relative;
}
.seal::before {
  content: ''; position: absolute; inset: 9px; border-radius: 50%;
  border: 1px dashed rgba(255,245,225,.55);
}
.seal em { font-family: var(--script); font-style: normal; font-size: 1.5rem; margin: 0 2px; }
.seal:hover { transform: scale(1.06) rotate(-4deg); }

.intro.is-open .intro__content { opacity: 0; pointer-events: none; }
.intro.is-open .intro__panel--top { transform: translateY(-101%); }
.intro.is-open .intro__panel--bottom { transform: translateY(101%); }
.intro.is-gone { display: none; }

@keyframes pulse { 0%,100% { opacity: .45; } 50% { opacity: 1; } }

/* ---------- Botón de música ---------- */
.music-btn {
  position: fixed; right: 20px; bottom: 20px; z-index: 900;
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(250,247,242,.92); border: 1px solid var(--line);
  box-shadow: 0 6px 20px rgba(0,0,0,.08); display: grid; place-items: center;
  backdrop-filter: blur(8px);
}
.music-btn__bars { display: flex; align-items: flex-end; gap: 3px; height: 18px; }
.music-btn__bars i { width: 3px; background: var(--ink); height: 4px; border-radius: 2px; }
.music-btn.is-playing .music-btn__bars i { animation: bars 1s ease-in-out infinite; }
.music-btn.is-playing .music-btn__bars i:nth-child(2) { animation-delay: .2s; }
.music-btn.is-playing .music-btn__bars i:nth-child(3) { animation-delay: .4s; }
.music-btn.is-playing .music-btn__bars i:nth-child(4) { animation-delay: .1s; }
@keyframes bars { 0%,100% { height: 4px; } 50% { height: 18px; } }

/* =========================================================
   NAVEGACIÓN
   ========================================================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px clamp(20px, 4vw, 48px); color: var(--white);
  transition: background .5s var(--ease), padding .5s var(--ease), color .5s;
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, .94); color: var(--ink); padding-top: 14px; padding-bottom: 14px;
  backdrop-filter: blur(10px); box-shadow: 0 1px 0 var(--line);
}
.nav__logo { font-family: var(--serif); font-size: 1.5rem; text-decoration: none; letter-spacing: .1em; }
.nav__logo span { font-family: var(--script); font-size: 1.6rem; }
.nav__menu { display: flex; gap: clamp(18px, 2.5vw, 36px); align-items: center; }
.nav__menu a { text-decoration: none; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 400; position: relative; }
.nav__menu a:not(.nav__cta)::after {
  content: ''; position: absolute; left: 0; bottom: -4px; width: 100%; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav__menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { border: 1px solid currentColor; padding: 9px 18px; transition: all .3s; }
.nav__cta:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.nav__toggle { display: none; width: 32px; height: 20px; position: relative; z-index: 2; }
.nav__toggle span { position: absolute; left: 0; width: 100%; height: 1px; background: currentColor; transition: all .4s var(--ease); }
.nav__toggle span:first-child { top: 5px; }
.nav__toggle span:last-child { bottom: 5px; }



/* =========================================================
   PORTADA
   ========================================================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center; color: var(--white); overflow: hidden;
}
.hero__bg {
  position: absolute; inset: -5%; background: #3a332b center/cover no-repeat;
  transform: scale(1.12); transition: transform 3.5s var(--ease);
}
body.is-ready .hero__bg { transform: scale(1); }
.hero__overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 17, 14, 0.712) 0%, rgba(20, 17, 14, 0.452) 45%, rgba(20, 17, 14, 0.76) 100%);
}
.hero__petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero__content { position: relative; z-index: 2; padding: 120px 20px 100px; }
.hero__kicker { font-size: .8rem; letter-spacing: .5em; text-transform: uppercase; margin-bottom: 18px; }
.hero__names { font-weight: 400; line-height: .95; margin-bottom: 36px; }
.hero__name {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(3.6rem, 13vw, 9.5rem); letter-spacing: -.01em;
}
.hero__amp {
  display: block; font-family: var(--script); font-size: clamp(3rem, 9vw, 6rem);
  color: var(--gold-soft); margin: -.12em 0 -.18em; line-height: 1;
}
.hero__date {
  display: inline-flex; align-items: center; gap: clamp(14px, 3vw, 28px);
  font-size: .72rem; letter-spacing: .35em; text-transform: uppercase;
}
.hero__date strong {
  font-family: var(--serif); font-weight: 400; font-size: clamp(1.3rem, 3.5vw, 1.9rem); letter-spacing: .12em;
  padding: 6px clamp(14px, 3vw, 28px); border-left: 1px solid rgba(255,255,255,.5); border-right: 1px solid rgba(255,255,255,.5);
}
.hero__scroll {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 10px; text-decoration: none;
  font-size: .62rem; letter-spacing: .4em; text-transform: uppercase;
}
.hero__scroll i { width: 1px; height: 54px; background: rgba(255,255,255,.35); position: relative; overflow: hidden; }
.hero__scroll i::after {
  content: ''; position: absolute; top: -100%; left: 0; width: 100%; height: 100%; background: var(--white);
  animation: scrollLine 2.2s var(--ease) infinite;
}
@keyframes scrollLine { to { top: 100%; } }

.hero .reveal:nth-child(1) { transition-delay: .2s; }
.hero .reveal:nth-child(2) { transition-delay: .45s; }
.hero .reveal:nth-child(3) { transition-delay: .75s; }

@media (max-width: 520px) {
  .hero__date { flex-direction: column; gap: 10px; }
  .hero__date strong { border: 0; border-top: 1px solid rgba(255,255,255,.5); border-bottom: 1px solid rgba(255,255,255,.5); padding: 10px 6px; }
}

/* =========================================================
   BIENVENIDA / PADRES
   ========================================================= */
.welcome { text-align: center; }
.ornament { color: var(--gold); width: 140px; margin: 0 auto 36px; }
.welcome__guest { font-family: var(--script); font-size: clamp(2.2rem, 5vw, 3rem); margin-bottom: 20px; }
.welcome__quote {
  font-family: var(--serif); font-style: italic; font-weight: 300;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem); line-height: 1.45; color: var(--ink-soft);
}
.welcome__quote cite { display: block; margin-top: 14px; font-family: var(--sans); font-style: normal; font-size: .7rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.welcome__text { margin: 40px auto 0; max-width: 620px; color: var(--muted); font-size: 1rem; }
.parents { display: flex; justify-content: center; align-items: stretch; gap: clamp(24px, 6vw, 64px); margin-top: 56px; }
.parents--godparents { margin-top: 36px; }
.parents__col h4 { font-size: .7rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin-bottom: 10px; }
.parents__col p { font-family: var(--serif); font-size: 1.3rem; line-height: 1.5; }
.parents__divider { width: 1px; background: var(--line); }
@media (max-width: 560px) {
  .parents { flex-direction: column; gap: 28px; }
  .parents__divider { width: 60px; height: 1px; margin: 0 auto; }
}

/* =========================================================
   CUENTA REGRESIVA
   ========================================================= */
.countdown { position: relative; padding: clamp(100px, 14vw, 160px) 0; text-align: center; color: var(--white); overflow: hidden; }
.countdown__bg { position: absolute; inset: -20% 0; background:  center/cover no-repeat; will-change: transform; }
.countdown__overlay { position: absolute; inset: 0; background: rgba(22, 19, 16, .62); }
.countdown__inner { position: relative; z-index: 2; }
.countdown__grid { display: flex; justify-content: center; gap: clamp(12px, 4vw, 48px); margin: 40px 0 48px; }
.countdown__item {
  min-width: clamp(70px, 18vw, 140px); padding: 18px 6px;
  border-top: 1px solid rgba(255,255,255,.3); border-bottom: 1px solid rgba(255,255,255,.3);
}
.countdown__item span {
  display: block; font-family: var(--serif); font-weight: 300;
  font-size: clamp(2.6rem, 8vw, 5rem); line-height: 1; font-variant-numeric: tabular-nums;
}
.countdown__item small { display: block; margin-top: 10px; font-size: .64rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-soft); }
.countdown__done { font-family: var(--script); font-size: 3rem; margin: 30px 0; }
.calendar-btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 14px; }

/* =========================================================
   HISTORIA
   ========================================================= */
.story { background: var(--paper); }
.story__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.story__img { position: relative; }
.story__img img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.story__img::before {
  content: ''; position: absolute; inset: 22px -22px -22px 22px; border: 1px solid var(--gold); z-index: -1;
}
.story__img { z-index: 0; }
.milestones { margin-top: 32px; display: grid; gap: 28px; }
.milestone { display: grid; grid-template-columns: 72px 1fr; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.milestone:last-child { border-bottom: 0; }
.milestone__year { font-family: var(--serif); font-size: 1.6rem; color: var(--gold); line-height: 1.2; }
.milestone h4 { font-family: var(--serif); font-weight: 500; font-size: 1.35rem; margin-bottom: 4px; }
.milestone p { color: var(--muted); font-size: .95rem; }
@media (max-width: 820px) {
  .story__grid { grid-template-columns: 1fr; }
  .story__img { max-width: 440px; margin: 0 auto 20px; width: calc(100% - 22px); }
}

/* =========================================================
   CEREMONIA / RECEPCIÓN
   ========================================================= */
.events__grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: clamp(24px, 4vw, 48px); }
.event-card {
  text-align: center; padding: clamp(40px, 5vw, 60px) clamp(24px, 4vw, 48px);
  background: var(--white); border: 1px solid var(--line); position: relative;
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.event-card::before { content: ''; position: absolute; inset: 10px; border: 1px solid var(--line); pointer-events: none; }
.event-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(40,30,20,.25); }
.event-card__icon { width: 72px; height: 72px; margin: 0 auto 10px; color: var(--ink); }
.event-card__time { font-size: .74rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); font-weight: 500; margin: 6px 0 18px; }
.event-card__place { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin-bottom: 6px; }
.event-card__address { color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.events__divider { display: grid; place-items: center; }
.events__divider span { font-family: var(--script); font-size: 3.4rem; color: var(--gold); }
@media (max-width: 820px) {
  .events__grid { grid-template-columns: 1fr; }
  .events__divider span { font-size: 2.6rem; }
}

/* =========================================================
   PROGRAMA
   ========================================================= */
.program { background: var(--paper); }
.timeline { list-style: none; position: relative; }
.timeline::before { content: ''; position: absolute; left: 50%; top: 8px; bottom: 8px; width: 1px; background: var(--gold-soft); transform: translateX(-50%); }
.timeline__item { display: grid; grid-template-columns: 1fr 40px 1fr; align-items: center; padding: 18px 0; }
.timeline__time { text-align: right; font-family: var(--serif); font-size: 1.5rem; font-style: italic; color: var(--ink-soft); padding-right: 12px; }
.timeline__dot { width: 13px; height: 13px; border-radius: 50%; background: var(--paper); border: 1px solid var(--gold); justify-self: center; position: relative; z-index: 1; transition: background .4s; }
.timeline__item:hover .timeline__dot { background: var(--gold); }
.timeline__body { padding-left: 12px; }
.timeline__body h4 { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500; }
.timeline__body p { color: var(--muted); font-size: .92rem; font-family: var(--serif); font-size: 1.1rem; font-style: italic; }
.timeline__item:nth-child(even) .timeline__time { order: 3; text-align: left; padding: 0 0 0 12px; }
.timeline__item:nth-child(even) .timeline__dot { order: 2; }
.timeline__item:nth-child(even) .timeline__body { order: 1; text-align: right; padding: 0 12px 0 0; }
@media (max-width: 640px) {
  .timeline::before { left: 7px; }
  .timeline__item, .timeline__item:nth-child(even) { grid-template-columns: 14px 1fr; column-gap: 20px; }
  .timeline__item .timeline__dot, .timeline__item:nth-child(even) .timeline__dot { order: 0; grid-row: 1 / span 2; align-self: start; margin-top: 10px; }
  .timeline__item .timeline__time, .timeline__item:nth-child(even) .timeline__time { order: 0; text-align: left; padding: 0; font-size: 1.3rem; }
  .timeline__item .timeline__body, .timeline__item:nth-child(even) .timeline__body { order: 0; text-align: left; padding: 0; grid-column: 2; }
}

/* =========================================================
   DETALLES
   ========================================================= */
.details__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.detail-card {
  text-align: center; padding: 48px 32px; background: var(--white); border: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.detail-card__icon { width: 56px; height: 56px; color: var(--gold); }
.detail-card h3 { font-family: var(--serif); font-weight: 500; font-size: 1.6rem; }
.detail-card p { color: var(--muted); font-size: .95rem; }
.detail-card__highlight { font-size: .75rem !important; letter-spacing: .3em; text-transform: uppercase; color: var(--ink) !important; font-weight: 500; }
.detail-card__note { font-family: var(--serif); font-style: italic; font-size: 1.05rem !important; }
.palette { display: flex; gap: 10px; margin: 6px 0; }
.palette span { width: 30px; height: 30px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.gift-options { display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 260px; }
.bank { background: var(--paper); padding: 18px 20px; width: 100%; text-align: left; font-size: .9rem; animation: fadeIn .5s var(--ease); }
.bank p { color: var(--ink) !important; }
.copy-btn { margin-top: 10px; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold); border-bottom: 1px solid currentColor; }
.hashtag { font-family: var(--serif); font-size: 1.7rem !important; color: var(--ink) !important; font-style: italic; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .details__grid { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; } }

/* =========================================================
   GALERÍA
   ========================================================= */
.gallery { background: var(--paper); }
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-rows: 280px; gap: 14px; }
.gallery__item { overflow: hidden; cursor: zoom-in; background: #ddd5c9; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--wide { grid-column: span 2; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter .6s; filter: saturate(.9); }
.gallery__item:hover img { transform: scale(1.06); filter: saturate(1.05); }
@media (max-width: 760px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; gap: 8px; }
  .gallery__item--wide { grid-column: span 2; }
}

.lightbox {
  position: fixed; inset: 0; z-index: 1100; background: rgba(15,13,11,.94);
  display: grid; place-items: center; padding: 60px 20px; animation: fadeIn .4s ease;
}
.lightbox img { max-width: 100%; max-height: 85vh; object-fit: contain; }
.lightbox__close { position: absolute; top: 14px; right: 22px; color: #fff; font-size: 2.6rem; font-weight: 200; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 3rem; font-weight: 200; padding: 10px 16px; }
.lightbox__nav--prev { left: 6px; }
.lightbox__nav--next { right: 6px; }

/* =========================================================
   PREGUNTAS FRECUENTES
   ========================================================= */
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:first-child { border-top: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 24px 40px 24px 0; position: relative;
  font-family: var(--serif); font-size: 1.35rem; font-weight: 500;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-family: var(--sans); font-weight: 200; font-size: 1.6rem; color: var(--gold); transition: transform .4s var(--ease);
}
.accordion details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.accordion details p { padding: 0 0 24px; color: var(--muted); animation: fadeIn .5s var(--ease); }

/* =========================================================
   CONFIRMACIÓN (RSVP)
   ========================================================= */
.rsvp { overflow: hidden; }
.rsvp__bg { position: absolute; inset: 0; background: #3a332b center/cover no-repeat fixed; }
.rsvp__overlay { position: absolute; inset: 0; background: rgba(22,19,16,.55); }
.rsvp__inner { position: relative; z-index: 2; }
.rsvp__card {
  max-width: 720px; margin: 0 auto; background: var(--ivory);
  padding: clamp(40px, 6vw, 72px) clamp(22px, 6vw, 72px); position: relative;
}
.rsvp__card::before { content: ''; position: absolute; inset: 12px; border: 1px solid var(--gold-soft); pointer-events: none; }
.rsvp__card .section-head { margin-bottom: 40px; }
.rsvp__passes {
  display: inline-block; margin-top: 18px; padding: 8px 18px; background: var(--paper);
  font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500;
}

.form { position: relative; z-index: 1; }
.field { display: flex; flex-direction: column; margin-bottom: 22px; border: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field label, .field legend {
  font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; font-weight: 500; color: var(--ink-soft); margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  font: inherit; font-size: 1rem; font-weight: 400; color: var(--ink);
  background: transparent; border: 0; border-bottom: 1px solid rgba(28,26,23,.25);
  padding: 10px 2px; border-radius: 0; transition: border-color .3s; width: 100%;
  -webkit-appearance: none; appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%231c1a17'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 4px center; cursor: pointer;
}
.field textarea { resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #b3aba0; font-weight: 300; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); }
.field.has-error input, .field.has-error select { border-color: #b4483c; }

.choice { padding: 0; }
.choice legend { margin-bottom: 14px; }
.choice__opt { display: block; margin-bottom: 10px; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; pointer-events: none; }
.choice__opt span {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px;
  border: 1px solid var(--line); background: var(--white);
  font-family: var(--serif); font-size: 1.2rem; transition: all .3s var(--ease);
}
.choice__opt span::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--muted); flex-shrink: 0;
  transition: all .3s;
}
.choice__opt input:checked + span { border-color: var(--ink); background: var(--paper); }
.choice__opt input:checked + span::before { border-color: var(--ink); background: var(--ink); box-shadow: inset 0 0 0 3px var(--paper); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice.has-error .choice__opt span { border-color: #b4483c; }
.yes-only { animation: fadeIn .5s var(--ease); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

.form__error { color: #b4483c; font-size: .88rem; min-height: 1.2em; margin-bottom: 14px; text-align: center; }
.btn__spinner { display: none; width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.35); border-top-color: #fff; border-radius: 50%; animation: spin .8s linear infinite; }
.btn.is-loading .btn__spinner { display: inline-block; }
.btn.is-loading { pointer-events: none; opacity: .85; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; position: relative; z-index: 1; animation: fadeIn .7s var(--ease); }
.form-success__icon { width: 70px; height: 70px; margin: 0 auto 6px; color: var(--gold); }
.form-success p { color: var(--muted); margin: 10px 0 28px; font-size: 1.02rem; }

@media (max-width: 600px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .rsvp__bg { background-attachment: scroll; }
}

/* =========================================================
   PIE
   ========================================================= */
.footer { background: var(--ink); color: var(--ivory); text-align: center; padding: 90px 24px 60px; position: relative; }
.footer__thanks { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: var(--gold-soft); }
.footer__names { font-family: var(--serif); font-weight: 300; font-size: clamp(2.4rem, 7vw, 4.2rem); margin: 10px 0; }
.footer__names span { font-family: var(--script); color: var(--gold-soft); }
.footer__date { letter-spacing: .4em; font-size: .78rem; }
.footer__contact { margin-top: 30px; font-size: .85rem; color: rgba(250,247,242,.6); }
.footer__contact a { color: var(--gold-soft); }
.footer__top {
  display: inline-grid; place-items: center; width: 44px; height: 44px; margin-top: 30px;
  border: 1px solid rgba(250,247,242,.3); border-radius: 50%; text-decoration: none; transition: all .3s;
}
.footer__top:hover { background: var(--ivory); color: var(--ink); }

/* ---------- Aviso flotante ---------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translate(-50%, 30px); z-index: 1200;
  background: var(--ink); color: var(--white); padding: 12px 22px; font-size: .85rem;
  opacity: 0; pointer-events: none; transition: all .4s var(--ease);
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
