/* ═══════════════════════════════════════════════════════════════
   Wedding Site · styles.css
   Shared across all pages · Uses CSS custom properties throughout
   ═══════════════════════════════════════════════════════════════ */

/* ── Google Fonts loaded in each HTML <head> ────────────────────
   Cormorant Garamond 300,400,500,600 (italic variants too)
   Inter 300,400,500,600
   ─────────────────────────────────────────────────────────────── */

/* ── Design Tokens ──────────────────────────────────────────────── */
:root {
  /* Palette */
  --color-bg:           #EFE6D2;
  --color-bg-card:      #FAF5E8;
  --color-bg-muted:     #E4D6BE;
  --color-text:         #2A2018;
  --color-text-mid:     #5A4828;
  --color-text-light:   #87715A;
  --color-accent:       #8B6F4E;
  --color-accent-hover: #6B5238;
  --color-accent-light: #D4B896;
  --color-border:       #D2C0A0;
  --color-white:        #FFFFFF;
  --color-success:      #3A7D44;
  --color-error:        #C0392B;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(44,36,22,0.06), 0 1px 2px rgba(44,36,22,0.04);
  --shadow-md:   0 4px 16px rgba(44,36,22,0.10), 0 2px 6px rgba(44,36,22,0.06);
  --shadow-lg:   0 12px 40px rgba(44,36,22,0.14), 0 4px 12px rgba(44,36,22,0.08);
  --shadow-btn:  0 6px 24px rgba(139,111,78,0.30);

  /* Typography */
  --font-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  --text-xs:   clamp(0.70rem,  1.2vw, 0.78rem);
  --text-sm:   clamp(0.82rem,  1.5vw, 0.92rem);
  --text-base: clamp(0.95rem,  1.8vw, 1.05rem);
  --text-lg:   clamp(1.10rem,  2.2vw, 1.25rem);
  --text-xl:   clamp(1.30rem,  2.8vw, 1.55rem);
  --text-2xl:  clamp(1.65rem,  3.5vw, 2.10rem);
  --text-3xl:  clamp(2.20rem,  5vw,   3.20rem);
  --text-4xl:  clamp(3.00rem,  7vw,   4.80rem);
  --text-5xl:  clamp(3.80rem,  9vw,   6.40rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.50rem;
  --space-3:  0.75rem;
  --space-4:  1.00rem;
  --space-5:  1.25rem;
  --space-6:  1.50rem;
  --space-8:  2.00rem;
  --space-10: 2.50rem;
  --space-12: 3.00rem;
  --space-16: 4.00rem;
  --space-20: 5.00rem;
  --space-24: 6.00rem;

  /* Layout */
  --content-max: 1140px;
  --content-pad: clamp(1.25rem, 5vw, 3rem);

  /* Radii */
  --radius-sm: 0.375rem;
  --radius:    0.625rem;
  --radius-lg: 1.25rem;
  --radius-xl: 2rem;
  --radius-pill: 9999px;

  /* Transitions */
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease:      cubic-bezier(0.4, 0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  280ms;
  --dur-slow:  500ms;
}

/* ── Reset & Base ───────────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;

  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  width: 100%;
max-width: 100%;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.01em;
}

/* ── Focus Styles (Accessibility) ──────────────────────────────── */
:focus-visible {
  outline: 2.5px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ── Layout Shell ───────────────────────────────────────────────── */
.site-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
}


/* ── Petal layer ────────────────────────────────────────────────── */
#petals-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
}

.petal {
  position: absolute;
  top: 0;
  width: 12px;
  height: 20px;
  background: linear-gradient(135deg, #EDAAB8 0%, #C97A8E 100%);
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
}

/* ── Hero letter split ──────────────────────────────────────────── */
.hero-letter {
  display: inline-block;
  will-change: transform, opacity;
}

.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--content-pad);
}

/* ══════════════════════════════════════════════════════════════════
   HEADER / HERO SECTION
   ══════════════════════════════════════════════════════════════════ */
#hero {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.home-hero {
  min-height: min(760px, 78vh);
  display: grid;
  place-items: center;
  padding-block: clamp(6rem, 12vw, 10rem);
}

.home-hero::before,
.home-hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.home-hero::before {
  width: clamp(18rem, 38vw, 34rem);
  aspect-ratio: 1;
  left: clamp(-13rem, -12vw, -5rem);
  top: clamp(-9rem, -7vw, -3rem);
  border: 1px solid color-mix(in srgb, var(--color-accent-light) 64%, transparent);
}

.home-hero::after {
  width: clamp(14rem, 30vw, 26rem);
  aspect-ratio: 1;
  right: clamp(-11rem, -9vw, -4rem);
  bottom: clamp(-10rem, -8vw, -3rem);
  background: color-mix(in srgb, var(--color-bg-muted) 58%, transparent);
}

.subpage-hero {
  padding-block: clamp(3.5rem, 8vw, 6rem) var(--space-10);
}

.hero-text {
  position: relative;
  z-index: 1;
  width: 100%;
}

.hero-kicker {
  margin-bottom: var(--space-4);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--color-accent);
}

.hero-names {
  font-family: var(--font-serif);
  font-size: clamp(3rem, 6vw, 4.8rem);
  font-weight: 300;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  color: var(--color-text);
  line-height: 0.95;
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 0.08em;
  will-change: transform, opacity;
}

.partner-name {
  white-space: nowrap;
}

.partner-name:first-child,
.partner-name:last-child { text-align: center; }

.hero-names .ampersand {
  font-style: italic;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-accent);
  display: inline-block;
  font-size: 0.68em;
  line-height: 0.72;
}

/* Compact variant used on sub-pages (schedule etc.) */
.hero-names--sm {
  max-width: 820px;
  margin-inline: auto;
  font-size: clamp(2.15rem, 4.5vw, 3.2rem);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(0.6rem, 1.6vw, 1.25rem);
}

.hero-names--sm .partner-name:first-child { text-align: right; }
.hero-names--sm .partner-name:last-child { text-align: left; }

@media (max-width: 820px) {
  .hero-names--sm {
    grid-template-columns: 1fr;
    gap: 0.08em;
  }

  .hero-names--sm .partner-name:first-child,
  .hero-names--sm .partner-name:last-child {
    text-align: center;
  }
}

.hero-tagline {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-light);
  margin-top: var(--space-4);
  will-change: opacity;
}

.hero-countdown {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-6);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  background: var(--color-bg-muted);
  border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-6);
  border-radius: var(--radius-pill);
  will-change: opacity;
}

.hero-countdown .countdown-number {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
}

/* ══════════════════════════════════════════════════════════════════
   NAVIGATION
   ══════════════════════════════════════════════════════════════════ */
#main-nav {
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  margin-bottom: var(--space-16);
  will-change: opacity;
}

.nav-list {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-12);
  position: relative;
}

.nav-link {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--color-text-mid);
  padding-block: var(--space-2);
  position: relative;
  transition: color var(--dur-base) var(--ease);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--color-accent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--dur-base) var(--ease-out);
}

.nav-link:hover {
  color: var(--color-text);
}

.nav-link:hover::after,
.nav-link.active::after {
  transform: scaleX(1);
}

.nav-link.active {
  color: var(--color-text);
}

/* ══════════════════════════════════════════════════════════════════
   MAIN — Details strip + Photo pair
   ══════════════════════════════════════════════════════════════════ */

/* Centered info strip */
.main-details {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: var(--space-16) var(--space-12);
  gap: var(--space-8);
}

.main-quote {
  font-family: var(--font-serif);
  font-size: var(--text-2xl);
  font-weight: 300;
  font-style: italic;
  color: var(--color-text-mid);
  letter-spacing: 0.04em;
}

.main-meta {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  flex-wrap: wrap;
  justify-content: center;
}

.meta-item {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.meta-label {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.meta-value {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--color-text);
}

.meta-sep {
  width: 1px;
  height: 40px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Staggered photo pair */
.photo-pair {
  display: grid;
  grid-template-columns: 5fr 5fr;
  grid-template-rows: auto;
  align-items: end;
  gap: var(--space-6);
  padding-bottom: var(--space-20);
}

.pair-portrait {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-lg);
  margin-top: var(--space-16);
}

.pair-landscape {
  border-radius: var(--radius-xl);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  max-width: 480px;
  box-shadow: var(--shadow-lg);
}

.pair-portrait img,
.pair-landscape img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s var(--ease-out);
  will-change: transform;
}

.pair-portrait:hover img,
.pair-landscape:hover img {
  transform: scale(1.03);
}

/* ── Photo Collage (scattered prints) ──────────────────────────── */
.collage-section {
  padding-bottom: var(--space-20);
  display: flex;
  justify-content: center;
}

.photo-collage {
  position: relative;
  width: 100%;
  max-width: 920px;
  display: grid;
  grid-template-columns: 0.92fr 1.16fr 0.92fr;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding-block: var(--space-6);
}

.collage-item {
  position: relative;
  background: #fff;
  border: 8px solid #fff;
  border-bottom-width: 34px;
  border-radius: 2px;
  box-shadow:
    0 4px 14px rgba(0,0,0,0.18),
    0 12px 32px rgba(0,0,0,0.14);
  cursor: pointer;
  /* smooth hover lift */
  transition:
    transform 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94),
    box-shadow 0.38s ease;
}

/* inner wrapper clips the photo only, not the caption strip */
.collage-print {
  position: relative;
  width: 100%;
  height: calc(100% - 0px);
  overflow: hidden;
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  pointer-events: none;
}

/* ── Photo 1: couple portrait — large, top-left ── */
.collage-top {
  aspect-ratio: 3 / 4;
  transform: rotate(-2deg);
}
.collage-top img { object-position: center 15%; }

/* ── Photo 2: childhood/landscape — upper-right ── */
.collage-right {
  aspect-ratio: 4 / 3;
  transform: translateY(-1.5rem) rotate(1.5deg);
}
.collage-right img { object-position: center 40%; }

/* ── Photo 3: proposal portrait — bottom center, clearly visible ── */
.collage-bottom {
  aspect-ratio: 3 / 4;
  transform: rotate(2deg);
}
.collage-bottom img { object-position: center 25%; }

/* ── Year caption — sits centered in the bottom white border strip ── */
.photo-year {
  position: absolute;
  bottom: -14px;
  left: 0;
  right: 0;
  text-align: center;
  transform: translateY(50%);
  font-family: 'Permanent Marker', cursive;
  font-size: 0.8rem;
  line-height: 1;
  color: #444;
  pointer-events: none;
  user-select: none;
}

/* ── Hover: lift, flatten, come forward ── */
.collage-item:hover {
  transform: rotate(0deg) scale(1.04) translateY(-8px);
  box-shadow:
    0 16px 40px rgba(0,0,0,0.26),
    0 4px 12px rgba(0,0,0,0.16);
  z-index: 10;
}

/* ── Mobile: scaled-down collage (keep absolute layout, shorter container) ── */
@media (max-width: 540px) {
  .home-hero {
    min-height: min(620px, 72svh);
  }

  .hero-names {
    font-size: clamp(1.75rem, 7.5vw, 2.25rem);
    letter-spacing: 0.035em;
  }

  .hero-tagline {
    /* smaller to avoid wrapping pushing content below the arch */
    font-size: clamp(0.72rem, 2.8vw, 0.9rem);
    letter-spacing: 0.16em;
    margin-top: var(--space-2);
    flex-direction: column;
    gap: 0.15rem;
  }

  .tagline-separator { display: none; }

  .hero-countdown {
    margin-top: var(--space-3);
  }

  .photo-collage {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-4);
    padding-inline: var(--space-2);
  }

  .collage-right {
    grid-column: 1 / -1;
    grid-row: 1;
    width: 72%;
    justify-self: center;
    transform: rotate(1deg);
  }

  .collage-top,
  .collage-bottom { transform: none; }
}

/* RSVP Button */
.rsvp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-10);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease);
  width: fit-content;
}

.rsvp-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 30%,
    rgba(255,255,255,0.22) 50%,
    transparent 70%
  );
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
}

.rsvp-btn:hover,
.rsvp-btn:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
  background: var(--color-accent-hover);
}

.rsvp-btn:hover::before {
  transform: translateX(100%);
}

.rsvp-btn:active {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
  .photo-pair {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }
  .pair-portrait {
    margin-top: 0;
    aspect-ratio: 4 / 5;
  }
  .pair-landscape {
    aspect-ratio: 4 / 3;
  }
  .main-meta {
    gap: var(--space-5);
  }
  .meta-sep {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   SCHEDULE PAGE
   ══════════════════════════════════════════════════════════════════ */
.schedule-header {
  text-align: center;
  padding-block: var(--space-16) var(--space-12);
}

.schedule-header h1 {
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}

.schedule-header p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--color-text-light);
  font-style: italic;
  margin-top: var(--space-3);
}

.schedule-timeline {
  max-width: 640px;
  margin-inline: auto;
  padding-bottom: var(--space-24);
  position: relative;
}

/* Vertical line */
.schedule-timeline::before {
  content: '';
  position: absolute;
  left: 5.5rem;
  top: 0.5rem;
  bottom: 0.5rem;
  width: 1px;
  background: var(--color-border);
}

.schedule-block {
  display: grid;
  grid-template-columns: 5.5rem 1.5rem 1fr;
  gap: 0 var(--space-5);
  padding-bottom: var(--space-10);
  will-change: transform, opacity;
}

.schedule-time {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  padding-top: 0.2em;
  text-align: right;
}

.schedule-dot {
  position: relative;
  display: flex;
  justify-content: center;
}

.schedule-dot::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-bg);
  box-shadow: 0 0 0 1.5px var(--color-accent);
  margin-top: 0.3em;
  flex-shrink: 0;
}

.schedule-content h3 {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: var(--space-1);
}

.schedule-content p {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  line-height: 1.6;
}

/* ══════════════════════════════════════════════════════════════════
   RSVP PAGE
   ══════════════════════════════════════════════════════════════════ */

/* Event summary strip (above the form) */
.rsvp-events-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-block: var(--space-8) var(--space-10);
  flex-wrap: wrap;
}

.rsvp-event-pill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.rsvp-event-day {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

.rsvp-event-name {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  font-weight: 400;
  color: var(--color-accent);
}

.rsvp-event-sep {
  width: 1px;
  height: 32px;
  background: var(--color-border);
  flex-shrink: 0;
}

.rsvp-page {
  padding-block: var(--space-16) var(--space-24);
  max-width: 700px;
  margin-inline: auto;
}

.rsvp-header {
  text-align: center;
  margin-bottom: var(--space-12);
}

.rsvp-header h1 {
  font-size: var(--text-4xl);
  font-weight: 300;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.rsvp-header .rsvp-household {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-xl);
  color: var(--color-text-mid);
  margin-top: var(--space-3);
}

/* Loading skeleton */
.skeleton-wrap {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.skeleton {
  background: linear-gradient(
    90deg,
    var(--color-bg-muted) 25%,
    var(--color-border) 50%,
    var(--color-bg-muted) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
}

.skeleton-title {
  height: 2.4rem;
  width: 55%;
  margin-inline: auto;
  border-radius: var(--radius-pill);
}

.skeleton-card {
  height: 9rem;
  border-radius: var(--radius-lg);
}

@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Guest cards */
.guest-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.guest-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--dur-base) var(--ease);
  will-change: transform, opacity;
}

.guest-card:focus-within {
  box-shadow: var(--shadow-md);
}

.guest-card-header {
  margin-bottom: var(--space-5);
}

.guest-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  letter-spacing: 0.04em;
}

/* ── Per-event RSVP rows ── */
.guest-events {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.event-rsvp-row {
  border-radius: var(--radius-md);
  background: var(--color-bg-muted, #faf9f7);
  border: 1px solid var(--color-border);
  padding: var(--space-3) var(--space-5);
}

.event-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Event chip / label */
.event-chip-col {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-chip-date {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  color: var(--color-text-light);
  letter-spacing: 0.02em;
}
.event-invited-by {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-mid);
  margin-top: 2px;
}
.ib-partner-a { color: #2e7d32; }
.ib-partner-b { color: #e65100; }
.event-chip {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: var(--text-base);
  font-weight: 400;
  min-width: 70px;
}
.event-chip--welcome { color: #b5835a; }
.event-chip--ceremony { color: var(--color-accent); }
.event-chip--farewell { color: #7a9e7e; }

/* Attend / Decline buttons */
.attend-btns {
  display: flex;
  gap: var(--space-2);
}

.attend-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--color-border);
  background: transparent;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-light);
  cursor: pointer;
  transition:
    background var(--dur-fast) var(--ease),
    border-color var(--dur-fast) var(--ease),
    color var(--dur-fast) var(--ease);
}

.attend-btn:hover {
  background: var(--color-bg-card);
  color: var(--color-text);
}

/* Green = attending */
.attend-btn--yes.yes-active {
  background: #2e7d32;
  border-color: #2e7d32;
  color: #fff;
}

/* Red = declining */
.attend-btn--no.no-active {
  background: #b71c1c;
  border-color: #b71c1c;
  color: #fff;
}

.attend-icon {
  font-size: 0.9em;
  font-weight: 700;
}

/* Dietary notes row (shown when attending=yes) */
.event-meal-details {
  display: block;
  margin-top: var(--space-4);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.event-meal-details[hidden] {
  display: none;
}

@media (max-width: 520px) {
  .event-row-top      { flex-direction: column; align-items: flex-start; }
  .attend-btns        { width: 100%; }
  .attend-btn         { flex: 1; justify-content: center; }
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.field-group label {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-text-mid);
}

.field-group select,
.field-group input,
.field-group textarea {
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease);
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
}

.field-group select:focus,
.field-group input:focus,
.field-group textarea:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,111,78,0.12);
}

.field-group textarea {
  resize: vertical;
  min-height: 70px;
}

/* Dietary notes — spans full width */
.guest-details .dietary-group {
  grid-column: 1 / -1;
}

/* Household extras block (email + note to couple) */
.household-extras-block {
  margin-top: var(--space-8);
  padding: var(--space-6) var(--space-8);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.field-optional {
  font-size: var(--text-xs);
  font-weight: 400;
  color: var(--color-text-light);
  letter-spacing: 0;
  text-transform: none;
  font-family: var(--font-sans);
}

.field-required {
  color: var(--color-error, #c0392b);
  font-weight: 600;
}

/* Submit row */
.rsvp-submit-row {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.rsvp-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-16);
  background: var(--color-accent);
  color: var(--color-white);
  border-radius: var(--radius-pill);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  overflow: hidden;
  position: relative;
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    background-color var(--dur-base) var(--ease),
    opacity var(--dur-base) var(--ease);
}

.rsvp-submit-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.55s var(--ease-out);
}

.rsvp-submit-btn:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: var(--shadow-btn);
  background: var(--color-accent-hover);
}

.rsvp-submit-btn:hover:not(:disabled)::before {
  transform: translateX(100%);
}

.rsvp-submit-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

/* Status messages */
.rsvp-status {
  text-align: center;
  margin-top: var(--space-6);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  display: none;
}

.rsvp-status.visible {
  display: block;
}

.rsvp-status.success {
  background: rgba(58,125,68,0.08);
  color: var(--color-success);
  border: 1px solid rgba(58,125,68,0.20);
}

.rsvp-status.error {
  background: rgba(192,57,43,0.08);
  color: var(--color-error);
  border: 1px solid rgba(192,57,43,0.20);
}

/* Success event blocks (shown after RSVP submit) */
.rsvp-success-events {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(346px, 461px));
  justify-content: center;
  align-items: start;
  gap: var(--space-6);
  /* break out of the narrow .rsvp-page container */
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  padding-inline: var(--space-8);
  box-sizing: border-box;
  margin: var(--space-8) 0 0;
}

/* Center orphan card when alone on its row (e.g. 3 events in a 2-col grid) */
.rsvp-success-events > .success-event-block:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(461px, 100%);
}

.success-event-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-5) var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-bg-card);
}

.success-event-block.has-invite-img {
  padding: 0;
  overflow: hidden;
  max-width: none;
  min-width: 0;
  flex: unset;
}

.success-event-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.success-event-block.has-invite-img .success-event-name,
.success-event-block.has-invite-img .success-event-detail,
.success-event-block.has-invite-img .success-event-address {
  padding-inline: var(--space-4);
}

.success-event-block.has-invite-img .success-event-address {
  padding-bottom: var(--space-4);
}

.success-event-name {
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  color: var(--color-accent);
  letter-spacing: 0.04em;
}

.success-event-detail {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--color-text-light);
  text-align: center;
}

.success-event-address {
  font-family: var(--font-serif);
  font-size: var(--text-sm);
  font-style: italic;
  color: var(--color-text-light);
  text-align: center;
  line-height: 1.4;
  margin-top: var(--space-1);
}

/* Success screen */
.rsvp-success-screen {
  text-align: center;
  padding-block: var(--space-16);
  display: none;
}

.rsvp-success-screen.visible {
  display: block;
}

.rsvp-success-icon {
  width: 72px;
  height: 72px;
  margin-inline: auto;
  margin-bottom: var(--space-6);
  border-radius: 50%;
  background: rgba(58,125,68,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}

.rsvp-success-icon svg {
  width: 36px;
  height: 36px;
  stroke: var(--color-success);
  fill: none;
}

.rsvp-success-screen h2 {
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-4);
}

.rsvp-success-screen p {
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  font-style: italic;
  color: var(--color-text-mid);
}

/* Code-entry screen (shown when no/invalid token) */
.rsvp-code-screen {
  text-align: center;
  padding-block: var(--space-16);
  display: none;
}

.rsvp-code-screen.visible {
  display: block;
}

.rsvp-code-screen h2 {
  font-family: var(--font-serif);
  font-size: var(--text-3xl);
  font-weight: 300;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-3);
  color: var(--color-text);
}

.rsvp-code-hint {
  font-family: var(--font-serif);
  font-size: var(--text-base);
  font-style: italic;
  color: var(--color-text-light);
  margin-bottom: var(--space-8);
}

.rsvp-code-form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
  max-width: 340px;
  margin-inline: auto;
}

.rsvp-code-input {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
  color: var(--color-text);
  background: var(--color-bg);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-6);
  outline: none;
  width: 100%;
  transition: border-color var(--dur-fast) var(--ease);
}

.rsvp-code-input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(139,111,78,0.12);
}

.rsvp-code-input::placeholder {
  letter-spacing: 0.08em;
  text-transform: none;
  color: var(--color-text-light);
  font-weight: 400;
}

.rsvp-code-error {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
  color: var(--color-error);
  min-height: 1.2em;
}

/* ══════════════════════════════════════════════════════════════════
   SITE FOOTER
   ══════════════════════════════════════════════════════════════════ */
.site-footer {
  margin-top: auto;
  position: relative;
  z-index: 0;
  padding-top: var(--space-8);
  padding-bottom: var(--space-8);
  text-align: center;
  border-top: 1px solid var(--color-border);
}

.page-rsvp main {
  position: relative;
  z-index: 1;
}

.footer-text {
  position: relative;
  z-index: 1;
  font-size: var(--text-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-light);
}

/* ══════════════════════════════════════════════════════════════════
   PREFERS REDUCED MOTION — Disable non-essential motion
   ══════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .skeleton {
    animation: none;
    background: var(--color-bg-muted);
  }

  .rsvp-btn::before,
  .rsvp-submit-btn::before {
    display: none;
  }
}

/* ══════════════════════════════════════════════════════════════════
   GSAP INITIAL STATES (JS adds .gsap-ready to <body>)
   Hides animated elements before JS runs — graceful no-JS fallback
   ══════════════════════════════════════════════════════════════════ */
body.gsap-ready .hero-names,
body.gsap-ready .hero-letter,
body.gsap-ready .hero-tagline,
body.gsap-ready .hero-countdown,
body.gsap-ready #main-nav,
body.gsap-ready .main-details,
body.gsap-ready .collage-section {
  opacity: 0;
}

/* ══════════════════════════════════════════════════════════════════
   UTILITY CLASSES
   ══════════════════════════════════════════════════════════════════ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

.divider {
  width: 48px;
  height: 1px;
  background: var(--color-accent-light);
  margin-inline: auto;
  margin-block: var(--space-6);
}

/* ── Responsive typography fixes ───────────────────────────────── */
@media (max-width: 480px) {
  .hero-names {
    grid-template-columns: 1fr;
    gap: 0.15em;
    hyphens: none;
    overflow-wrap: normal;
  }

  .partner-name:first-child,
  .partner-name:last-child {
    text-align: center;
  }

  .hero-names .ampersand {
    font-size: 0.72em;
    line-height: 0.8;
  }

  .nav-list {
    gap: var(--space-6);
    flex-wrap: wrap;
  }

  .rsvp-btn {
    align-self: center;
    width: 100%;
    justify-content: center;
  }

  .main-date-day {
    font-size: var(--text-3xl);
  }

  .guest-card {
    padding: var(--space-5) var(--space-5);
  }

  /* Schedule timeline: tighten columns on narrow screens */
  .schedule-timeline::before {
    left: 4.2rem;
  }

  .schedule-block {
    grid-template-columns: 4.2rem 1.5rem 1fr;
    gap: 0 var(--space-3);
  }

  .schedule-time {
    font-size: 0.6rem;
    letter-spacing: 0.06em;
  }

  .schedule-content h3 {
    font-size: var(--text-lg);
  }
}
/* ═══════════════════════════════════════════════════════════════
   INVITATION ENVELOPE INTRO
   ═══════════════════════════════════════════════════════════════ */

body.intro-active {
  overflow: hidden;
}

/* Pantalla completa */
.invitation-intro {
  position: fixed;
  inset: 0;
  z-index: 10000;

  display: grid;
  place-items: center;

  min-height: 100svh;
  padding: 2rem 1.25rem;

  overflow: hidden;

  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(255, 255, 255, 0.9),
      rgba(244, 236, 220, 0.96) 42%,
      rgba(230, 216, 191, 1) 100%
    );

  isolation: isolate;
}

/* Textura muy sutil */
.invitation-intro::before {
  content: "";
  position: absolute;
  inset: 0;

  opacity: 0.22;
  pointer-events: none;

  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.09) 0px,
      rgba(255, 255, 255, 0.09) 1px,
      transparent 1px,
      transparent 4px
    );
}

/* Luces decorativas */
.intro-glow {
  position: absolute;

  width: min(65vw, 650px);
  aspect-ratio: 1;

  border-radius: 50%;

  filter: blur(50px);
  opacity: 0.25;

  pointer-events: none;
}

.intro-glow-left {
  left: -28%;
  top: -20%;

  background: #d5b892;
}

.intro-glow-right {
  right: -32%;
  bottom: -25%;

  background: #cba8a8;
}

.intro-content {
  position: relative;
  z-index: 2;

  width: min(100%, 620px);

  display: flex;
  flex-direction: column;
  align-items: center;

  text-align: center;
}

.intro-eyebrow {
  margin-bottom: clamp(2rem, 6vh, 4rem);

  font-family: var(--font-serif);
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-style: italic;

  color: var(--color-text-light);

  letter-spacing: 0.06em;
}

/* El botón completo */
.envelope-trigger {
  display: flex;
  flex-direction: column;
  align-items: center;

  width: 100%;

  color: inherit;

  -webkit-tap-highlight-color: transparent;
}

.envelope-trigger:focus-visible {
  outline: none;
}

.envelope-stage {
  width: min(82vw, 470px);

  perspective: 1400px;
  perspective-origin: 50% 40%;

  transition:
    transform 500ms var(--ease-out),
    filter 500ms var(--ease-out);
}

.envelope-trigger:hover .envelope-stage {
  transform: translateY(-5px);
  filter: drop-shadow(0 18px 24px rgba(55, 39, 20, 0.10));
}

.envelope {
  position: relative;

  width: 100%;
  aspect-ratio: 1.48 / 1;

  transform-style: preserve-3d;

  filter:
    drop-shadow(0 26px 30px rgba(57, 42, 25, 0.18))
    drop-shadow(0 8px 10px rgba(57, 42, 25, 0.10));
}

/* Fondo */
.envelope-back {
  position: absolute;
  inset: 0;

  z-index: 1;

  border-radius: 4px;

  background:
    linear-gradient(
      145deg,
      #f7efdf 0%,
      #eee0c8 100%
    );

  border: 1px solid rgba(103, 77, 48, 0.15);
}

/* Tarjeta interior */
.envelope-card {
  position: absolute;

  left: 7.5%;
  bottom: 4%;

  z-index: 2;

  width: 85%;
  height: 92%;

  padding: 2rem 1rem;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;

  background:
    linear-gradient(
      180deg,
      #fffdf8 0%,
      #f9f4e9 100%
    );

  border: 1px solid rgba(105, 81, 52, 0.12);

  box-shadow:
    0 10px 30px rgba(52, 40, 25, 0.12);

  color: #463628;

  transform: translateY(0%);

  will-change: transform;
}

.envelope-card-small {
  font-family: var(--font-serif);

  font-size: clamp(0.78rem, 2vw, 1rem);
  font-style: italic;

  letter-spacing: 0.08em;
}

.envelope-card-monogram {
  margin-block: 0.8rem;

  font-family: var(--font-serif);
  font-size: clamp(2.7rem, 9vw, 4.6rem);
  font-weight: 300;

  line-height: 1;

  letter-spacing: 0.04em;
}

.envelope-card-monogram span {
  margin-inline: 0.15em;

  font-size: 0.65em;

  color: #9d7953;
}

.envelope-card-date {
  font-family: var(--font-sans);

  font-size: 0.7rem;
  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.28em;

  color: #8a7157;
}

/* Frente */
.envelope-front {
  position: absolute;
  inset: 0;

  z-index: 4;

  overflow: hidden;

  border-radius: 4px;

  pointer-events: none;
}

.envelope-fold-left,
.envelope-fold-right,
.envelope-fold-bottom {
  position: absolute;
  inset: 0;
}

/* Triángulo izquierdo */
.envelope-fold-left {
  clip-path: polygon(
    0 0,
    54% 53%,
    0 100%
  );

  background:
    linear-gradient(
      135deg,
      #f3e7d2,
      #ddc7a4
    );
}

/* Triángulo derecho */
.envelope-fold-right {
  clip-path: polygon(
    100% 0,
    46% 53%,
    100% 100%
  );

  background:
    linear-gradient(
      225deg,
      #f4e8d4,
      #dfc9a6
    );
}

/* Triángulo inferior */
.envelope-fold-bottom {
  clip-path: polygon(
    0 100%,
    50% 45%,
    100% 100%
  );

  background:
    linear-gradient(
      180deg,
      #ead8ba,
      #dfc5a0
    );
}

/* Solapa */
.envelope-flap {
  position: absolute;
  inset: 0;

  z-index: 6;

  transform-origin: 50% 0%;
  transform-style: preserve-3d;

  clip-path: polygon(
    0 0,
    100% 0,
    50% 61%
  );

  background:
    linear-gradient(
      180deg,
      #f8efdf 0%,
      #e2cbaa 100%
    );

  border-top:
    1px solid rgba(93, 67, 39, 0.10);

  backface-visibility: visible;

  will-change: transform;
}

/* Parte posterior visible cuando abre */
.envelope-flap::after {
  content: "";

  position: absolute;
  inset: 0;

  background:
    linear-gradient(
      0deg,
      #e2caa7,
      #f4e7d1
    );

  transform: rotateX(180deg);

  backface-visibility: hidden;
}

/* Sello */
.wax-seal {
  position: absolute;

  left: 50%;
  top: 48%;

  z-index: 7;

  width: clamp(58px, 14vw, 76px);
  aspect-ratio: 1;

  display: grid;
  place-items: center;

  transform:
    translate(-50%, -50%)
    rotate(-4deg);

  border-radius: 50%;

  color: rgba(255, 250, 242, 0.92);

  background:
    radial-gradient(
      circle at 32% 28%,
      #b76b68 0%,
      #924c4b 45%,
      #713638 100%
    );

  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.09),
    inset 0 0 12px rgba(58, 13, 15, 0.28),
    0 8px 15px rgba(64, 27, 27, 0.23);

  will-change: transform, opacity;
}

.wax-seal::before {
  content: "";

  position: absolute;

  inset: 7px;

  border: 1px solid rgba(255, 240, 227, 0.48);
  border-radius: 50%;
}

.wax-seal span {
  position: relative;

  font-family: var(--font-serif);
  font-size: clamp(0.85rem, 3vw, 1.05rem);

  letter-spacing: 0.04em;
}

/* Toca para abrir */
.envelope-hint {
  position: relative;

  margin-top: clamp(2.3rem, 6vh, 3.8rem);

  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;

  text-transform: uppercase;

  letter-spacing: 0.25em;

  color: #725f4d;
}

.envelope-hint::after {
  content: "";

  position: absolute;

  left: 50%;
  bottom: -9px;

  width: 0;
  height: 1px;

  transform: translateX(-50%);

  background: currentColor;

  transition: width 400ms var(--ease-out);
}

.envelope-trigger:hover .envelope-hint::after {
  width: 75%;
}

/* Mientras se abre no queremos doble clic */
.invitation-intro.is-opening .envelope-trigger {
  pointer-events: none;
}

/* Móvil */
@media (max-width: 600px) {

  .invitation-intro {
    padding-inline: 1rem;
  }

  .intro-eyebrow {
    margin-bottom: 2.6rem;
  }

  .envelope-stage {
    width: min(88vw, 390px);
  }

}

/* Personas que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {

  .envelope-stage,
  .envelope-hint::after {
    transition: none;
  }

}
/* ═══════════════════════════════════════════════════════════════
   ENVELOPE → PAGE TRANSITION REFINEMENT
   ═══════════════════════════════════════════════════════════════ */

/* El contenido real no debe verse antes de abrir la invitación */
body.intro-active .site-wrapper {
  opacity: 0;
  visibility: hidden;
}

body.intro-active #petals-layer {
  opacity: 0;
}

/* Fondo completamente opaco:
   evita que la página se vea detrás del sobre */
.invitation-intro {
  background:
    radial-gradient(
      circle at 50% 35%,
      #fffdf8 0%,
      #f4ecdc 44%,
      #e6d8bf 100%
    );
}

/* La tarjeta ahora admite nombres, no solo iniciales */
.envelope-card-monogram {
  font-size: clamp(2rem, 7vw, 3.7rem);
  white-space: nowrap;
}

/*
  Esta capa nace exactamente encima de la tarjeta
  y luego se expande hasta convertirse en la página.
*/
.paper-transition {
  position: fixed;

  display: none;

  z-index: 50;

  pointer-events: none;

  background:
    linear-gradient(
      180deg,
      #fffdf8 0%,
      #faf5e8 100%
    );

  border: 1px solid rgba(105, 81, 52, 0.08);

  box-shadow:
    0 10px 30px rgba(52, 40, 25, 0.10);

  will-change:
    left,
    top,
    width,
    height,
    opacity,
    border-radius;
}

/* ═══════════════════════════════════════════════════════════════
   FOTO INTERIOR DEL SOBRE
   ═══════════════════════════════════════════════════════════════ */

.envelope-photo {
  position: absolute;

  left: 50%;
  bottom: 4%;

  z-index: 3;

  width: 35%;
  aspect-ratio: 4 / 5;

  padding: 6px 6px 18px;

  background: #fffdf8;

  border: 1px solid rgba(90, 65, 40, 0.10);

  box-shadow:
    0 12px 24px rgba(50, 35, 20, 0.16);

  /* Empieza totalmente guardada dentro del sobre */
  transform:
    translateX(-50%)
    translateY(28%)
    rotate(0deg);

  opacity: 0;

  pointer-events: none;

  will-change: transform, opacity;
}

.envelope-photo img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
}

/* En móvil, un poco más grande */
@media (max-width: 600px) {

  .envelope-photo {
    width: 37%;
    padding: 5px 5px 14px;
  }

}
@media (max-width: 600px) {

  .envelope-stage {
  width: min(78vw, 340px);
}
  .envelope-card {
    left: 12%;
    width: 60%;
    height: 72%;
    padding: 1rem 0.65rem;
  }

  .envelope-photo {
    width: 40%;
    padding: 4px 4px 11px;
  }

  .envelope-card-small {
    font-size: 0.68rem;
  }

  .envelope-card-monogram {
    font-size: clamp(1.45rem, 5.5vw, 2.1rem);
  }

  .envelope-card-date {
    font-size: 0.55rem;
  }

}

/* ═══════════════════════════════════════════════════════════════
   PORTADA FOTOGRÁFICA
   ═══════════════════════════════════════════════════════════════ */

.home-hero.hero-photo {
  position: relative;
  width: 100%;
  max-width: none;

  height: 100svh;
  min-height: 100svh;

  padding: 0;
  overflow: hidden;

  display: flex;
  align-items: flex-end;
  justify-content: center;

  background: #191714;
}

.hero-photo-image {
  position: absolute;
  inset: 0;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  transform: scale(1.01);
}

.hero-photo-shade {
  position: absolute;
  inset: 0;
  z-index: 1;

  background:
    linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 25%,
      rgba(0, 0, 0, 0.12) 60%,
      rgba(0, 0, 0, 0.50) 100%
    );

  pointer-events: none;
}

.hero-photo-content {
  position: relative;
  z-index: 2;

  width: 100%;

  padding:
    2rem
    1.5rem
    clamp(5.5rem, 13vh, 8rem);

  text-align: center;

  color: #fffdf8;
}

.hero-photo .hero-kicker {
  margin-bottom: 0.7rem;

  color: rgba(255, 255, 255, 0.88);

  font-size: 0.7rem;
  letter-spacing: 0.35em;
}

.hero-photo .hero-names {
  color: #fffdf8;

  text-shadow:
    0 2px 20px rgba(0, 0, 0, 0.20);
}

.hero-photo .hero-tagline {
  margin-top: 1rem;

  color: rgba(255, 255, 255, 0.90);

  font-size: 0.72rem;
  letter-spacing: 0.25em;
}

.hero-scroll-hint {
  position: absolute;

  left: 50%;
  bottom: 1.4rem;

  z-index: 3;

  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;

  transform: translateX(-50%);

  color: rgba(255, 255, 255, 0.75);

  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
}

.hero-scroll-line {
  display: block;

  width: 1px;
  height: 28px;

  background: rgba(255, 255, 255, 0.65);
}

/* ═══════════════════════════════════════════════════════════════
   IDENTIDAD VISUAL — ISRAEL & LEXY
   ═══════════════════════════════════════════════════════════════ */

:root {
  --wedding-ivory: #F8F3E8;
  --wedding-paper: #FFFDF8;

  --wedding-blush: #D8B8AE;
  --wedding-blush-light: #E7D0C9;
  --wedding-blush-dark: #C49A91;

  --wedding-burgundy: #7A3E46;

  --wedding-gold: #B89B63;
  --wedding-gold-light: #D2BC8D;
  --wedding-gold-dark: #8F7442;

  --wedding-ink: #3E322D;
  --wedding-muted: #806F65;
}


/* ─────────────────────────────────────────────
   FONDO DE LA APERTURA
   ───────────────────────────────────────────── */

.invitation-intro {
  background:
    radial-gradient(
      circle at 50% 32%,
      #fffdf8 0%,
      var(--wedding-ivory) 48%,
      #eaded1 100%
    );
}


/* ─────────────────────────────────────────────
   SOBRE
   ───────────────────────────────────────────── */

.envelope-back {
  background:
    linear-gradient(
      145deg,
      var(--wedding-blush-light),
      var(--wedding-blush)
    );

  border-color: rgba(122, 62, 70, 0.12);
}


.envelope-fold-left {
  background:
    linear-gradient(
      135deg,
      #e4c7bf,
      #cfaaa1
    );
}


.envelope-fold-right {
  background:
    linear-gradient(
      225deg,
      #e7ccc4,
      #cda69d
    );
}


.envelope-fold-bottom {
  background:
    linear-gradient(
      180deg,
      #dcbab1,
      #c99f95
    );
}


.envelope-flap {
  background:
    linear-gradient(
      180deg,
      #ead2cb 0%,
      #d2aaa1 100%
    );
}


.envelope-flap::after {
  background:
    linear-gradient(
      0deg,
      #cba198,
      #e7cbc3
    );
}


/* ─────────────────────────────────────────────
   SELLO DORADO
   ───────────────────────────────────────────── */

.wax-seal {
  color: #fffaf0;

  background:
    radial-gradient(
      circle at 32% 26%,
      #e0ca91 0%,
      var(--wedding-gold) 42%,
      var(--wedding-gold-dark) 100%
    );

  box-shadow:
    inset 0 0 0 3px rgba(255, 255, 255, 0.12),
    inset 0 0 13px rgba(70, 48, 16, 0.28),
    0 8px 18px rgba(77, 50, 22, 0.24);
}


.wax-seal::before {
  border-color: rgba(255, 250, 230, 0.50);
}


/* ─────────────────────────────────────────────
   PAPELERÍA INTERIOR
   ───────────────────────────────────────────── */

.envelope-card {
  background:
    linear-gradient(
      180deg,
      var(--wedding-paper),
      #faf4e9
    );

  color: var(--wedding-ink);
}


.envelope-card-monogram span {
  color: var(--wedding-gold-dark);
}


.envelope-card-date {
  color: var(--wedding-burgundy);
}


.envelope-photo {
  background: var(--wedding-paper);

  border-color:
    rgba(184, 155, 99, 0.22);
}


/* ─────────────────────────────────────────────
   TEXTOS DE APERTURA
   ───────────────────────────────────────────── */

.intro-eyebrow {
  color: var(--wedding-muted);
}


.envelope-hint {
  color: var(--wedding-burgundy);
}

/* ═══════════════════════════════════════════════════════════════
   TRANSICIÓN FOTO DEL SOBRE → PORTADA
   ═══════════════════════════════════════════════════════════════ */

.envelope-photo-transition {
  position: fixed !important;

  margin: 0 !important;
  padding: 0 !important;

  border: 0 !important;
  border-radius: 0;

  background: #191714;

  box-shadow: none !important;

  overflow: hidden;

  z-index: 20000 !important;

  transform-origin: center center;
}

.envelope-photo-transition img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;
  object-position: center;

  border: 0;
}

/* ═══════════════════════════════════════════════════════════════
   ORNAMENTOS PROPIOS DE LA PORTADA
   ═══════════════════════════════════════════════════════════════ */

.home-hero.hero-photo::before,
.home-hero.hero-photo::after {
  content: "";
  position: absolute;
  z-index: 1;

  pointer-events: none;

  background: transparent;

  border: 1px solid rgba(210, 188, 141, 0.42);

  border-radius: 50%;
}

/* Óvalo superior */
.home-hero.hero-photo::before {
  width: min(78vw, 470px);
  height: min(45vw, 270px);

  top: -11%;
  right: -27%;

  transform: rotate(-20deg);
}

/* Óvalo inferior */
.home-hero.hero-photo::after {
  width: min(65vw, 390px);
  height: min(38vw, 225px);

  bottom: -8%;
  left: -30%;

  transform: rotate(22deg);

  border-color: rgba(216, 184, 174, 0.38);
}

.hero-monogram {
  margin-bottom: 1rem;

  font-family: var(--font-serif);
  font-size: 1.05rem;

  letter-spacing: 0.18em;

  color: var(--wedding-gold);

  text-shadow:
    0 1px 8px rgba(0, 0, 0, 0.18);
}

.hero-monogram span {
  margin-inline: 0.25em;

  font-style: italic;

  color: var(--wedding-blush-light);
}

/* ═══════════════════════════════════════════════════════════════
   INVITACIÓN FORMAL
   ═══════════════════════════════════════════════════════════════ */

.formal-invitation {
  position: relative;

  padding:
    clamp(5rem, 12vh, 8rem)
    1.25rem;

  display: flex;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      var(--wedding-ivory) 0%,
      #f2e7dc 100%
    );
}


.formal-card {
  position: relative;

  width: min(100%, 520px);

  padding:
    clamp(5rem, 12vw, 7rem)
    clamp(2rem, 8vw, 4rem)
    clamp(4rem, 10vw, 6rem);

  text-align: center;

  background:
    linear-gradient(
      180deg,
      var(--wedding-paper) 0%,
      #fbf5eb 100%
    );

  box-shadow:
    0 24px 60px rgba(62, 50, 45, 0.12);

  color: var(--wedding-ink);
}


/* Marco interior */
.formal-card-border {
  position: absolute;

  inset: 18px;

  pointer-events: none;

  border:
    1px solid
    rgba(184, 155, 99, 0.55);
}


.formal-card-border::before {
  content: "";

  position: absolute;

  inset: 5px;

  border:
    1px solid
    rgba(184, 155, 99, 0.18);
}


/* Sello superior */
.formal-seal {
  position: absolute;

  left: 50%;
  top: 0;

  width: 54px;
  aspect-ratio: 1;

  display: flex;
  align-items: center;
  justify-content: center;

  transform:
    translate(-50%, -50%)
    rotate(-5deg);

  border-radius: 50%;

  color: #fffaf0;

  font-family: var(--font-serif);
  font-size: 0.74rem;
white-space: nowrap;

  background:
    radial-gradient(
      circle at 30% 25%,
      #e1cb92 0%,
      var(--wedding-gold) 44%,
      var(--wedding-gold-dark) 100%
    );

  box-shadow:
    inset 0 0 0 3px rgba(255,255,255,0.12),
    0 8px 18px rgba(83, 56, 24, 0.22);
}


.formal-seal::after {
  content: "";

  position: absolute;
  inset: 7px;

  border:
    1px solid rgba(255, 248, 225, 0.48);

  border-radius: 50%;
}


.formal-seal span {
  margin-inline: 0.15em;
}


/* Texto superior */
.formal-kicker {
  margin-bottom: 1.4rem;

  font-size: 0.63rem;

  font-weight: 500;

  letter-spacing: 0.32em;

  color: var(--wedding-burgundy);
}


/* Nombres */
.formal-names {
  display: flex;
  flex-direction: column;
  align-items: center;

  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.1rem, 9vw, 3.6rem);

  font-weight: 300;

  line-height: 0.95;
}


.formal-ampersand {
  margin-block: 0.4rem;

  font-size: 0.62em;
  font-style: italic;

  color: var(--wedding-gold);
}


/* Línea */
.formal-divider {
  width: 45px;
  height: 1px;

  margin:
    1.8rem auto;

  background:
    var(--wedding-gold);
}


/* Mensaje */
.formal-message {
  max-width: 320px;

  margin:
    0 auto 2rem;

  font-family: var(--font-serif);

  font-size:
    clamp(0.95rem, 3.6vw, 1.08rem);

  font-style: italic;

  line-height: 1.7;

  color: var(--wedding-muted);
}


/* Fecha */
.formal-date {
  margin-bottom: 0.65rem;

  font-size: 0.72rem;

  font-weight: 500;

  letter-spacing: 0.24em;

  color: var(--wedding-burgundy);
}


/* Ubicación */
.formal-location {
  margin: 0;

  font-size: 0.62rem;

  letter-spacing: 0.28em;

  color: var(--wedding-muted);
}

/* ═══════════════════════════════════════════════════════════════
   ANIMACIONES INVITACIÓN FORMAL
   ═══════════════════════════════════════════════════════════════ */

.formal-letter {
  display: inline-block;
  will-change: transform, opacity;
}

.formal-card,
.formal-seal,
.formal-divider {
  will-change: transform, opacity;
}


/* ═══════════════════════════════════════════════════════════════
   INVITADO PERSONALIZADO
   ═══════════════════════════════════════════════════════════════ */

.guest-invitation {
  position: relative;

  padding:
    clamp(5rem, 12vh, 8rem)
    1.25rem;

  display: flex;
  justify-content: center;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f2e7dc 0%,
      var(--wedding-ivory) 100%
    );
}

.guest-paper {
  position: relative;

  width: min(100%, 500px);

  padding:
    clamp(3.8rem, 10vw, 5.5rem)
    clamp(2rem, 8vw, 4rem);

  text-align: center;

  background:
    var(--wedding-paper);

  color:
    var(--wedding-ink);

  border:
    1px solid rgba(184, 155, 99, 0.18);

  box-shadow:
    0 24px 60px
    rgba(62, 50, 45, 0.10);
}


/* línea decorativa superior */

.guest-paper::before {
  content: "";

  position: absolute;

  top: 18px;
  left: 18px;
  right: 18px;

  height: 1px;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--wedding-gold),
      transparent
    );

  opacity: 0.65;
}


/* texto superior */

.guest-overline {
  max-width: 310px;

  margin:
    0 auto
    1.5rem;

  font-size: 0.58rem;

  line-height: 1.6;

  letter-spacing: 0.22em;

  color:
    var(--wedding-burgundy);
}


/* nombre familia */

.guest-family {
  margin: 0;

  font-family:
    var(--font-serif);

  font-size:
    clamp(2rem, 8vw, 3.2rem);

  font-weight: 300;

  line-height: 1.05;

  color:
    var(--wedding-ink);
}


/* ornamento central */

.guest-ornament {
  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  margin:
    1.7rem auto;
}

.guest-ornament > span {
  width: 45px;
  height: 1px;

  background:
    var(--wedding-gold);
}


/* mini sello */

.guest-mini-seal {
  width: 42px;

  aspect-ratio: 1;

  display: grid;
  place-items: center;

  border-radius: 50%;

  font-family:
    var(--font-serif);

  font-size: 0.62rem;

  color:
    #fffaf0;

  background:
    radial-gradient(
      circle at 30% 25%,
      #e1cb92,
      var(--wedding-gold) 45%,
      var(--wedding-gold-dark)
    );

  box-shadow:
    0 6px 14px
    rgba(83, 56, 24, 0.18);
}


/* texto reservado */

.guest-reserved-text {
  margin-bottom: 0.5rem;

  font-family:
    var(--font-serif);

  font-size: 1rem;

  font-style: italic;

  color:
    var(--wedding-muted);
}


/* número de pases */

.guest-pass-number {
  margin-block: 0.4rem;

  font-family:
    var(--font-serif);

  font-size:
    clamp(4rem, 17vw, 6rem);

  line-height: 1;

  color:
    var(--wedding-burgundy);
}


/* texto bajo número */

.guest-pass-label {
  margin-top: 0.4rem;

  font-size: 0.64rem;

  text-transform: uppercase;

  letter-spacing: 0.22em;

  color:
    var(--wedding-gold-dark);
}


/* mensaje final */

.guest-note {
  max-width: 300px;

  margin:
    2rem auto 0;

  font-family:
    var(--font-serif);

  font-size: 0.9rem;

  font-style: italic;

  line-height: 1.7;

  color:
    var(--wedding-muted);
}

/* ═══════════════════════════════════════════════════════════════
   FECHA Y CUENTA REGRESIVA
   ═══════════════════════════════════════════════════════════════ */

.wedding-date-section {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    clamp(5rem, 12vh, 8rem)
    1.4rem;

  overflow: hidden;

  background:
    linear-gradient(
      160deg,
      #6b343d 0%,
      var(--wedding-burgundy) 48%,
      #50282f 100%
    );

  color: var(--wedding-ivory);
}


/* brillo decorativo muy sutil */

.wedding-date-section::before {
  content: "";

  position: absolute;

  width: 420px;
  height: 420px;

  top: -180px;
  right: -180px;

  border-radius: 50%;

  border:
    1px solid rgba(210, 188, 141, 0.22);

  pointer-events: none;
}

.wedding-date-section::after {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  bottom: -140px;
  left: -140px;

  border-radius: 50%;

  border:
    1px solid rgba(231, 208, 201, 0.16);

  pointer-events: none;
}


.wedding-date-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 540px);

  text-align: center;
}


/* GUARDA LA FECHA */

.wedding-date-kicker {
  margin:
    0 0
    2.4rem;

  font-size: 0.62rem;

  letter-spacing: 0.34em;

  color:
    var(--wedding-gold-light);
}


/* bloque principal 12 / diciembre 2026 */

.wedding-date-main {
  display: flex;
  justify-content: center;
  align-items: center;

  gap:
    clamp(1rem, 5vw, 2rem);

  margin-bottom: 2.5rem;
}


.wedding-date-day {
  font-family:
    var(--font-serif);

  font-size:
    clamp(6rem, 25vw, 9rem);

  font-weight: 300;

  line-height: 0.8;

  color:
    var(--wedding-paper);
}


.wedding-date-side {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  text-align: left;
}


.wedding-date-month {
  font-size:
    clamp(0.85rem, 3vw, 1.15rem);

  letter-spacing: 0.22em;

  color:
    var(--wedding-gold-light);
}


.wedding-date-year {
  margin-top: 0.55rem;

  font-family:
    var(--font-serif);

  font-size:
    clamp(1.6rem, 6vw, 2.4rem);

  font-weight: 300;

  color:
    var(--wedding-paper);
}


/* línea decorativa */

.wedding-date-divider {
  width: min(180px, 50%);

  height: 1px;

  margin:
    0 auto
    2rem;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--wedding-gold),
      transparent
    );
}


/* FALTAN */

.countdown-title {
  margin-bottom: 1.7rem;

  font-size: 0.6rem;

  letter-spacing: 0.35em;

  color:
    var(--wedding-blush-light);
}


/* contador */

.wedding-countdown {
  display: grid;

  grid-template-columns:
    repeat(4, 1fr);

  gap:
    clamp(0.4rem, 3vw, 1.2rem);
}


.countdown-item {
  position: relative;

  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0.5rem;
}


/* separadores entre números */

.countdown-item:not(:last-child)::after {
  content: "";

  position: absolute;

  right: -0.35rem;
  top: 15%;

  width: 1px;
  height: 58%;

  background:
    rgba(210, 188, 141, 0.22);
}


.countdown-number {
  font-family:
    var(--font-serif);

  font-size:
    clamp(2rem, 8vw, 3.25rem);

  font-weight: 300;

  line-height: 1;

  color:
    var(--wedding-paper);
}


.countdown-label {
  font-size: 0.52rem;

  letter-spacing: 0.2em;

  color:
    var(--wedding-gold-light);
}


/* frase final */

.wedding-date-message {
  max-width: 320px;

  margin:
    2.7rem auto 0;

  font-family:
    var(--font-serif);

  font-size:
    clamp(0.85rem, 3vw, 1rem);

  font-style: italic;

  line-height: 1.7;

  color:
    rgba(255, 253, 248, 0.78);
}

/* línea dorada que avanza con el scroll */

.timeline-progress-line {
  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 2px;

  transform:
    translateX(-50%)
    scaleY(0);

  transform-origin: center top;

  background:
    linear-gradient(
      180deg,
      var(--wedding-gold-light),
      var(--wedding-gold)
    );

  box-shadow:
    0 0 8px
    rgba(184, 155, 99, 0.25);

  z-index: 2;

  pointer-events: none;
}


/* móviles pequeños */

@media (max-width: 420px) {

  .wedding-date-main {
    gap: 1rem;
  }

  .wedding-countdown {
    gap: 0.25rem;
  }

  .countdown-item:not(:last-child)::after {
    right: -0.15rem;
  }

}


/* ═══════════════════════════════════════════════════════════════
   NUESTRAS FAMILIAS
   ═══════════════════════════════════════════════════════════════ */

.families-section {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.3rem;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      var(--wedding-ivory) 0%,
      #f3e9dc 100%
    );

  color: var(--wedding-ink);
}


/* círculos decorativos */

.families-section::before {
  content: "";

  position: absolute;

  width: 370px;
  height: 370px;

  top: -180px;
  right: -180px;

  border-radius: 50%;

  border:
    1px solid rgba(184, 155, 99, 0.18);

  pointer-events: none;
}

.families-section::after {
  content: "";

  position: absolute;

  width: 270px;
  height: 270px;

  bottom: -130px;
  left: -130px;

  border-radius: 50%;

  border:
    1px solid rgba(196, 154, 145, 0.22);

  pointer-events: none;
}


.families-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);

  text-align: center;
}


/* CON LA BENDICIÓN DE */

.families-kicker {
  margin: 0 0 0.9rem;

  font-size: 0.58rem;

  letter-spacing: 0.32em;

  color: var(--wedding-burgundy);
}


/* Nuestras Familias */

.families-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.6rem, 10vw, 4.2rem);

  font-weight: 300;

  line-height: 1;

  color: var(--wedding-ink);
}


.families-intro {
  max-width: 360px;

  margin:
    1.5rem auto
    3.2rem;

  font-family: var(--font-serif);

  font-size:
    clamp(0.9rem, 3.2vw, 1.05rem);

  font-style: italic;

  line-height: 1.75;

  color: var(--wedding-muted);
}


/* grupos de padres */

.family-group {
  position: relative;

  padding:
    1.2rem 0
    1.4rem;
}


.family-label {
  margin: 0;

  font-size: 0.56rem;

  letter-spacing: 0.28em;

  color: var(--wedding-gold-dark);
}


.family-line {
  width: 56px;
  height: 1px;

  margin:
    0.9rem auto
    1.25rem;

  background: var(--wedding-gold);
}


.family-names {
  display: flex;
  flex-direction: column;

  align-items: center;

  gap: 0.28rem;
}


.family-parent {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(1.35rem, 5vw, 1.8rem);

  font-weight: 300;

  line-height: 1.25;

  color: var(--wedding-ink);
}


.family-and {
  display: block;

  margin: 0.1rem 0;

  font-family: var(--font-serif);

  font-size: 1.15rem;

  font-style: italic;

  color: var(--wedding-blush-dark);
}


/* monograma central */

.families-monogram {
  width: 74px;
  aspect-ratio: 1;

  margin:
    1.6rem auto;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.22rem;

  border-radius: 50%;

  border:
    1px solid rgba(184, 155, 99, 0.55);

  font-family: var(--font-serif);

  font-size: 1rem;

  color: var(--wedding-gold-dark);

  background:
    rgba(255, 253, 248, 0.58);

  box-shadow:
    0 10px 26px
    rgba(86, 62, 42, 0.06);
}


.families-monogram-and {
  color: var(--wedding-blush-dark);

  font-style: italic;
}


/* frase final */

.families-closing {
  max-width: 340px;

  margin:
    2.8rem auto 0;

  font-family: var(--font-serif);

  font-size:
    clamp(0.85rem, 3vw, 1rem);

  font-style: italic;

  line-height: 1.7;

  color: var(--wedding-muted);
}


/* móvil pequeño */

@media (max-width: 420px) {

  .families-section {
    padding:
      5rem 1.3rem;
  }

  .families-intro {
    margin-bottom: 2.5rem;
  }

  .families-monogram {
    width: 64px;

    margin:
      1.25rem auto;
  }

  .family-parent {
    max-width: 300px;
  }

}

/* ═══════════════════════════════════════════════════════════════
   CEREMONIA Y RECEPCIÓN
   ═══════════════════════════════════════════════════════════════ */

.event-section {
  position: relative;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.25rem;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f6efe6 0%,
      var(--wedding-ivory) 100%
    );

  color: var(--wedding-ink);
}

.event-section::before {
  content: "";

  position: absolute;

  width: 380px;
  height: 380px;

  top: -190px;
  left: -190px;

  border-radius: 50%;

  border:
    1px solid rgba(184, 155, 99, 0.18);

  pointer-events: none;
}

.event-section::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  bottom: -130px;
  right: -130px;

  border-radius: 50%;

  border:
    1px solid rgba(196, 154, 145, 0.2);

  pointer-events: none;
}

.event-section-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 560px);

  margin: 0 auto;

  text-align: center;
}

.event-kicker {
  margin: 0 0 0.9rem;

  font-size: 0.58rem;

  letter-spacing: 0.32em;

  color: var(--wedding-burgundy);
}

.event-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.5rem, 9vw, 4rem);

  font-weight: 300;

  line-height: 1.05;

  color: var(--wedding-ink);
}

.event-intro {
  max-width: 360px;

  margin:
    1.4rem auto
    3rem;

  font-family: var(--font-serif);

  font-size:
    clamp(0.9rem, 3vw, 1.05rem);

  font-style: italic;

  line-height: 1.7;

  color: var(--wedding-muted);
}


/* tarjetas */

.event-card {
  position: relative;

  width: min(100%, 460px);

  margin:
    0 auto
    2rem;

  padding:
    clamp(2.7rem, 8vw, 4rem)
    clamp(1.8rem, 7vw, 3.2rem);

  background:
    rgba(255, 253, 248, 0.88);

  border:
    1px solid rgba(184, 155, 99, 0.25);

  box-shadow:
    0 18px 45px
    rgba(62, 50, 45, 0.08);

  backdrop-filter:
    blur(4px);
}

.event-card-visual {
  width: 100%;
  max-width: 150px;

  margin:
    0 auto
    1.7rem;

  display: flex;
  justify-content: center;
  align-items: center;
}

.event-card-gif {
  display: block;

  width: 100%;
  height: auto;

  object-fit: contain;
}

.event-card::before {
  content: "";

  position: absolute;

  inset: 10px;

  border:
    1px solid rgba(184, 155, 99, 0.18);

  pointer-events: none;
}

.event-card-label {
  margin: 0 0 1.4rem;

  font-size: 0.56rem;

  letter-spacing: 0.32em;

  color: var(--wedding-gold-dark);
}

.event-card-place {
  max-width: 320px;

  margin:
    0 auto
    1.2rem;

  font-family: var(--font-serif);

  font-size:
    clamp(1.7rem, 6vw, 2.5rem);

  font-weight: 300;

  line-height: 1.15;

  color: var(--wedding-ink);
}

.event-card-time {
  margin:
    0 0
    0.7rem;

  font-family: var(--font-serif);

  font-size:
    clamp(2.2rem, 8vw, 3.4rem);

  font-weight: 300;

  line-height: 1;

  color: var(--wedding-burgundy);
}

.event-card-address {
  max-width: 300px;

  margin:
    0 auto
    1.8rem;

  font-family: var(--font-serif);

  font-size: 0.9rem;

  font-style: italic;

  line-height: 1.6;

  color: var(--wedding-muted);
}


/* botón mapa */

.event-map-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  min-width: 160px;

  padding:
    0.9rem
    1.5rem;

  border:
    1px solid var(--wedding-gold);

  text-decoration: none;

  font-size: 0.56rem;

  letter-spacing: 0.25em;

  color: var(--wedding-burgundy);

  background:
    transparent;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    transform 0.3s ease;
}

.event-map-button:hover {
  background:
    var(--wedding-burgundy);

  color:
    var(--wedding-paper);

  transform:
    translateY(-2px);
}


/* pequeña diferencia entre ambas tarjetas */

.event-card-reception {
  margin-top: 2.6rem;
}

@media (max-width: 420px) {

  .event-section {
    padding:
      5rem 1.1rem;
  }

  .event-card {
    padding:
      2.7rem 1.5rem;
  }

}



/* ═══════════════════════════════════════════════════════════════
   ITINERARIO
   ═══════════════════════════════════════════════════════════════ */

.timeline-section {
  position: relative;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.2rem;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      var(--wedding-burgundy) 0%,
      #5c2d35 100%
    );

  color: var(--wedding-paper);
}

.timeline-section::before {
  content: "";

  position: absolute;

  width: 360px;
  height: 360px;

  top: -190px;
  right: -190px;

  border-radius: 50%;

  border:
    1px solid rgba(210, 188, 141, 0.16);

  pointer-events: none;
}

.timeline-section::after {
  content: "";

  position: absolute;

  width: 280px;
  height: 280px;

  bottom: -150px;
  left: -150px;

  border-radius: 50%;

  border:
    1px solid rgba(231, 208, 201, 0.15);

  pointer-events: none;
}

.timeline-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 600px);

  margin: 0 auto;
}

.timeline-kicker {
  margin: 0 0 0.9rem;

  text-align: center;

  font-size: 0.58rem;

  letter-spacing: 0.34em;

  color: var(--wedding-gold-light);
}

.timeline-title {
  margin: 0;

  text-align: center;

  font-family: var(--font-serif);

  font-size:
    clamp(2.8rem, 10vw, 4.4rem);

  font-weight: 300;

  line-height: 1;

  color: var(--wedding-paper);
}

.timeline-intro {
  max-width: 360px;

  margin:
    1.5rem auto
    4rem;

  text-align: center;

  font-family: var(--font-serif);

  font-size:
    clamp(0.9rem, 3vw, 1rem);

  font-style: italic;

  line-height: 1.7;

  color:
    rgba(255, 253, 248, 0.76);
}


/* CONTENEDOR DE LA LÍNEA */

.timeline-list {
  position: relative;

  padding:
    1rem 0
    1rem;
}


/* línea vertical */

.timeline-list::before {
  content: "";

  position: absolute;

  top: 0;
  bottom: 0;

  left: 50%;

  width: 1px;

  transform: translateX(-50%);

  background:
    rgba(184, 155, 99, 0.16);

  pointer-events: none;
}

/* cada evento */

.timeline-item {
  position: relative;

  display: grid;

  grid-template-columns:
    1fr 46px 1fr;

  align-items: center;

  min-height: 150px;
}


/* horario */

.timeline-time {
  display: flex;
  flex-direction: column;
  align-items: flex-end;

  gap: 0.55rem;

  font-family: var(--font-serif);

  font-size:
    clamp(1.5rem, 5vw, 2rem);

  font-weight: 300;

  color: var(--wedding-gold-light);
}

.timeline-icon {
  display: block;

  width: 48px;
  height: 48px;

  object-fit: contain;
}


/* punto central */

.timeline-marker {
  position: relative;

  display: flex;
  align-items: center;
  justify-content: center;

  z-index: 3;
}

.timeline-marker span {
  display: block;

  width: 13px;
  height: 13px;

  border-radius: 50%;

  border:
    1px solid var(--wedding-gold);

  background:
    var(--wedding-burgundy);

  box-shadow:
    0 0 0 5px
    rgba(184, 155, 99, 0.08);
}


/* contenido */

.timeline-content h3 {
  margin:
    0 0
    0.45rem;

  font-family: var(--font-serif);

  font-size:
    clamp(1.3rem, 5vw, 1.8rem);

  font-weight: 300;

  color: var(--wedding-paper);
}

.timeline-content p {
  margin: 0;

  font-family: var(--font-serif);

  font-size: 0.84rem;

  font-style: italic;

  line-height: 1.55;

  color:
    rgba(255, 253, 248, 0.68);
}


/* EVENTOS IMPARES */

.timeline-item:nth-child(odd)
.timeline-time {
  text-align: right;

  padding-right: 0.9rem;
}

.timeline-item:nth-child(odd)
.timeline-content {
  text-align: left;

  padding-left: 0.9rem;
}


/* EVENTOS PARES */

.timeline-item:nth-child(even)
.timeline-time {
  grid-column: 3;

  text-align: left;

  padding-left: 0.9rem;
}

.timeline-item:nth-child(even)
.timeline-marker {
  grid-column: 2;
  grid-row: 1;
}

.timeline-item:nth-child(even)
.timeline-content {
  grid-column: 1;
  grid-row: 1;

  text-align: right;

  padding-right: 0.9rem;
}


/* MÓVIL PEQUEÑO */

@media (max-width: 420px) {

  .timeline-progress-line {
  left: 86px;
}

  .timeline-icon {
  width: 42px;
  height: 42px;
}

  .timeline-section {
    padding:
      5rem 1rem;
  }

  .timeline-list::before {
    left: 86px;
  }

  .timeline-item {
    grid-template-columns:
      70px 32px 1fr;

    min-height: 145px;
  }

  .timeline-item:nth-child(odd)
  .timeline-time,

  .timeline-item:nth-child(even)
  .timeline-time {
    grid-column: 1;
    grid-row: 1;

    text-align: right;

    padding:
      0 0.6rem 0 0;
  }

  .timeline-item:nth-child(odd)
  .timeline-marker,

  .timeline-item:nth-child(even)
  .timeline-marker {
    grid-column: 2;
    grid-row: 1;
  }

  .timeline-item:nth-child(odd)
  .timeline-content,

  .timeline-item:nth-child(even)
  .timeline-content {
    grid-column: 3;
    grid-row: 1;

    text-align: left;

    padding:
      0 0 0 0.8rem;
  }

}




.dresscode-figure {
  display: flex;
  align-items: center;
  justify-content: center;

  min-height: 140px;

  margin:
    1.3rem auto
    1.5rem;
}

.dresscode-gif {
  display: block;

  width: min(100%, 120px);
  height: auto;

  object-fit: contain;

  /* Convierte el dibujo blanco a borgoña */
  filter:
    brightness(0)
    saturate(100%)
    invert(27%)
    sepia(20%)
    saturate(1320%)
    hue-rotate(303deg)
    brightness(88%)
    contrast(86%);

  opacity: 0.95;
}

/* ═══════════════════════════════════════════════════════════════
   DRESS CODE
   ═══════════════════════════════════════════════════════════════ */

.dresscode-section {
  position: relative;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.2rem;

  overflow: hidden;

  background:
    linear-gradient(
      180deg,
      #f7f0e7 0%,
      var(--wedding-ivory) 100%
    );

  color: var(--wedding-ink);
}

.dresscode-section::before {
  content: "";

  position: absolute;

  width: 340px;
  height: 340px;

  top: -170px;
  right: -170px;

  border-radius: 50%;

  border:
    1px solid rgba(184, 155, 99, 0.18);

  pointer-events: none;
}

.dresscode-section::after {
  content: "";

  position: absolute;

  width: 260px;
  height: 260px;

  bottom: -130px;
  left: -130px;

  border-radius: 50%;

  border:
    1px solid rgba(196, 154, 145, 0.2);

  pointer-events: none;
}

.dresscode-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 560px);

  margin: 0 auto;

  text-align: center;
}


/* encabezado */

.dresscode-kicker {
  margin: 0 0 0.9rem;

  font-size: 0.58rem;

  letter-spacing: 0.32em;

  color: var(--wedding-burgundy);
}

.dresscode-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.7rem, 10vw, 4.2rem);

  font-weight: 300;

  line-height: 1.05;

  color: var(--wedding-ink);
}

.dresscode-style {
  margin:
    1rem 0
    1.4rem;

  font-family: var(--font-serif);

  font-size:
    clamp(1.15rem, 4vw, 1.5rem);

  font-style: italic;

  color: var(--wedding-burgundy);
}

.dresscode-divider {
  width: 90px;
  height: 1px;

  margin:
    0 auto
    1.8rem;

  background:
    linear-gradient(
      90deg,
      transparent,
      var(--wedding-gold),
      transparent
    );
}

.dresscode-intro {
  max-width: 360px;

  margin:
    0 auto
    3.2rem;

  font-family: var(--font-serif);

  font-size:
    clamp(0.9rem, 3vw, 1.05rem);

  font-style: italic;

  line-height: 1.7;

  color: var(--wedding-muted);
}


/* DAMAS + CABALLEROS */

.dresscode-options {
  display: grid;

  grid-template-columns:
    repeat(2, 1fr);

  gap: 1.2rem;
}

.dresscode-option {
  position: relative;

  padding:
    2.2rem
    1rem;

  background:
    rgba(255, 253, 248, 0.82);

  border:
    1px solid rgba(184, 155, 99, 0.22);

  box-shadow:
    0 16px 35px
    rgba(62, 50, 45, 0.06);
}

.dresscode-option::before {
  content: "";

  position: absolute;

  inset: 8px;

  border:
    1px solid rgba(184, 155, 99, 0.12);

  pointer-events: none;
}

.dresscode-option-label {
  margin: 0;

  font-size: 0.54rem;

  letter-spacing: 0.26em;

  color: var(--wedding-gold-dark);
}

.dresscode-option h3 {
  margin:
    0.6rem 0
    0.6rem;

  font-family: var(--font-serif);

  font-size:
    clamp(1.25rem, 4vw, 1.6rem);

  font-weight: 300;

  color: var(--wedding-ink);
}

.dresscode-option p {
  margin: 0;

  font-family: var(--font-serif);

  font-size: 0.82rem;

  font-style: italic;

  line-height: 1.55;

  color: var(--wedding-muted);
}


/* nota final */

.dresscode-note {
  max-width: 420px;

  margin:
    3rem auto
    0;

  padding:
    1.7rem
    1.5rem;

  border-top:
    1px solid rgba(184, 155, 99, 0.35);

  border-bottom:
    1px solid rgba(184, 155, 99, 0.35);
}

.dresscode-note-title {
  margin:
    0 0
    0.8rem;

  font-size: 0.54rem;

  letter-spacing: 0.26em;

  color: var(--wedding-burgundy);
}

.dresscode-note p:last-child {
  margin: 0;

  font-family: var(--font-serif);

  font-size: 0.9rem;

  font-style: italic;

  line-height: 1.65;

  color: var(--wedding-muted);
}


/* móviles */

@media (max-width: 420px) {

  .dresscode-section {
    padding:
      5rem 1rem;
  }

  .dresscode-options {
    gap: 0.8rem;
  }

  .dresscode-option {
    padding:
      2rem 0.7rem;
  }

  .dresscode-gif {
    width: min(100%, 95px);
  }

}


/* ═══════════════════════════════════════════════════════════════
   NUESTRA HISTORIA · FOTOS SUPERPUESTAS
   ═══════════════════════════════════════════════════════════════ */

.story-section {
  position: relative;
  overflow: hidden;

  padding:
    5.5rem 1.2rem
    5rem;

  background:
    linear-gradient(
      180deg,
      #f8f3e8 0%,
      #f5ecdd 100%
    );

  color: var(--wedding-ink);
}


/* ─────────────────────────────
   ENCABEZADO
   ───────────────────────────── */

.story-header {
  position: relative;
  z-index: 4;

  width: min(100%, 430px);

  margin:
    0 auto
    3.2rem;

  text-align: center;
}

.story-kicker {
  margin: 0 0 0.9rem;

  font-size: 0.58rem;

  letter-spacing: 0.34em;

  color: var(--wedding-burgundy);
}

.story-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.7rem, 10vw, 4rem);

  font-weight: 300;

  line-height: 1;

  color: var(--wedding-ink);
}

.story-intro {
  width: min(100%, 340px);

  margin:
    1.3rem auto
    0;

  font-family: var(--font-serif);

  font-size: 0.95rem;

  font-style: italic;

  line-height: 1.7;

  color: var(--wedding-muted);
}


/* ─────────────────────────────
   COMPOSICIÓN DE FOTOS
   ───────────────────────────── */

.story-editorial {
  position: relative;

  width: min(100%, 430px);

  height:
    clamp(500px, 135vw, 590px);

  margin:
    0 auto
    2rem;

  padding: 0;

  z-index: 3;
}


/* configuración común */

.story-image {
  position: absolute;

  margin: 0;

  background: #fffdf8;

  overflow: hidden;

  box-shadow:
    0 18px 40px
    rgba(62, 50, 45, 0.16);
}

.story-image img {
  display: block;

  width: 100%;
  height: 100%;

  object-fit: cover;

  transform: scale(1.04);
}


/* FOTO DE ATRÁS */

.story-image-main {
  width: 78%;

  height: 58%;

  top: 0;
  left: 5%;

  padding: 8px;

  border-radius: 1px;

  transform:
    rotate(-4deg);

  z-index: 1;
}

.story-image-main {
  width: 72%;
  height: 56%;

  top: 4%;
  left: 7%;

  padding: 8px;

  border-radius: 1px;

  transform:
    rotate(-6deg);

  z-index: 1;
}

.story-image-float {
  width: 58%;
  height: 52%;

  top: 100%;
  right: 6%;

  padding:
    8px 8px 24px;

  border-radius: 1px;

  transform:
    rotate(7deg);

  z-index: 3;
}

.story-editorial-line {
  width: 36px;
  height: 1px;

  background:
    var(--wedding-gold);
}

.story-editorial-text {
  font-size: 0.48rem;

  letter-spacing: 0.23em;

  white-space: nowrap;

  color:
    var(--wedding-gold-dark);
}


/* círculo decorativo muy sutil */

.story-editorial::before {
  content: "";

  position: absolute;

  width: 210px;
  height: 210px;

  top: 12%;
  right: -90px;

  border-radius: 50%;

  border:
    1px solid
    rgba(184, 155, 99, 0.2);

  z-index: 0;

  pointer-events: none;
}


/* ─────────────────────────────
   CIERRE
   ───────────────────────────── */

.story-closing {
  position: relative;

  width: min(100%, 340px);

  margin:
    1rem auto
    0;

  text-align: center;

  z-index: 4;
}

.story-monogram {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 62px;
  height: 62px;

  margin-bottom:
    1.2rem;

  border-radius: 50%;

  border:
    1px solid
    rgba(184, 155, 99, 0.55);

  font-family: var(--font-serif);

  color:
    var(--wedding-gold-dark);
}

.story-monogram > span {
  margin: 0 0.18rem;

  font-style: italic;

  color:
    var(--wedding-blush-dark);
}

.story-closing p {
  margin: 0;

  font-family: var(--font-serif);

  font-size: 1rem;

  font-style: italic;

  line-height: 1.7;

  color:
    var(--wedding-muted);
}


/* ─────────────────────────────
   MÓVILES
   ───────────────────────────── */

@media (max-width: 420px) {

  .story-section {
    padding:
      5rem 1rem
      4.8rem;
  }

  .story-editorial {
    height: 520px;
  }

  .story-image-main {
    width: 80%;

    height: 55%;

    left: 3%;
  }

  .story-image-float {
    width: 62%;

    height: 52%;

    top: 49%;
    right: 2%;
  }

}




/* ═══════════════════════════════════════════════════════════════
   REGALOS
   ═══════════════════════════════════════════════════════════════ */

.gifts-section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.2rem;

  background:
    linear-gradient(
      180deg,
      #7a3e46 0%,
      #633039 100%
    );

  color: var(--wedding-paper);
}


/* círculos decorativos */

.gifts-section::before {
  content: "";

  position: absolute;

  width: 300px;
  height: 300px;

  top: -160px;
  right: -150px;

  border-radius: 50%;

  border:
    1px solid rgba(210, 188, 141, 0.2);

  pointer-events: none;
}

.gifts-section::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  bottom: -120px;
  left: -120px;

  border-radius: 50%;

  border:
    1px solid rgba(210, 188, 141, 0.16);

  pointer-events: none;
}


/* contenedor */

.gifts-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);

  margin: 0 auto;

  text-align: center;
}


/* encabezado */

.gifts-header {
  width: min(100%, 420px);

  margin: 0 auto;
}

.gifts-kicker {
  margin: 0 0 1rem;

  font-size: 0.55rem;

  letter-spacing: 0.3em;

  color: var(--wedding-gold-light);
}

.gifts-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(3rem, 11vw, 4.6rem);

  font-weight: 300;

  line-height: 1;

  color: var(--wedding-paper);
}

.gifts-intro {
  width: min(100%, 360px);

  margin:
    1.5rem auto
    0;

  font-family: var(--font-serif);

  font-size: 0.98rem;

  font-style: italic;

  line-height: 1.75;

  color:
    rgba(255, 253, 248, 0.76);
}


/* monograma */

.gifts-monogram {
  display: flex;

  align-items: center;
  justify-content: center;

  gap: 0.25rem;

  width: 84px;
  height: 84px;

  margin:
    3rem auto
    2.5rem;

  border-radius: 50%;

  border:
    1px solid rgba(210, 188, 141, 0.65);

  font-family: var(--font-serif);

  font-size: 1.05rem;

  color: var(--wedding-gold-light);
}

.gifts-ampersand {
  font-style: italic;

  color: var(--wedding-blush-light);
}


/* botón */

.gifts-toggle {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 1rem;

  width: min(100%, 330px);

  min-height: 58px;

  padding:
    0.9rem
    1.4rem;

  border:
    1px solid rgba(210, 188, 141, 0.7);

  background:
    transparent;

  color: var(--wedding-paper);

  cursor: pointer;

  font-family: inherit;

  font-size: 0.58rem;

  letter-spacing: 0.22em;

  transition:
    background 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.gifts-toggle:hover {
  background:
    rgba(210, 188, 141, 0.12);

  border-color:
    var(--wedding-gold-light);
}

.gifts-toggle-icon {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  font-size: 1.15rem;

  font-weight: 300;

  color:
    var(--wedding-gold-light);
}


/* contenido desplegable */

.gifts-details {
  width: min(100%, 430px);

  margin:
    2.7rem auto
    0;

  padding:
    2rem 0
    0;

  text-align: left;

  border-top:
    1px solid rgba(210, 188, 141, 0.3);
}


/* cada opción */

.gift-option {
  display: grid;

  grid-template-columns:
    52px 1fr;

  gap: 1.2rem;

  align-items: start;
}

.gift-option-number {
  margin: 0;

  font-family: var(--font-serif);

  font-size: 2rem;

  line-height: 1;

  color:
    rgba(210, 188, 141, 0.55);
}

.gift-option-label {
  margin: 0 0 0.4rem;

  font-size: 0.5rem;

  letter-spacing: 0.22em;

  color:
    var(--wedding-gold-light);
}

.gift-option h3 {
  margin:
    0 0
    0.65rem;

  font-family: var(--font-serif);

  font-size: 1.65rem;

  font-weight: 300;

  color:
    var(--wedding-paper);
}

.gift-option p {
  margin: 0;

  font-size: 0.84rem;

  line-height: 1.7;

  color:
    rgba(255, 253, 248, 0.7);
}


/* separador */

.gift-divider {
  width: 100%;

  height: 1px;

  margin:
    2rem 0;

  background:
    rgba(210, 188, 141, 0.2);
}


/* frase final */

.gifts-closing {
  width: min(100%, 330px);

  margin:
    3rem auto
    0;

  font-family: var(--font-serif);

  font-size: 0.92rem;

  font-style: italic;

  line-height: 1.7;

  color:
    rgba(255, 253, 248, 0.62);
}


/* móvil */

@media (max-width: 420px) {

  .gifts-section {
    padding:
      5.2rem 1rem;
  }

  .gift-option {
    grid-template-columns:
      42px 1fr;

    gap: 1rem;
  }

  .gift-option-number {
    font-size: 1.65rem;
  }

}



/* ═══════════════════════════════════════════════════════════════
   RSVP · CONFIRMACIÓN DE ASISTENCIA
   ═══════════════════════════════════════════════════════════════ */

.rsvp-section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.1rem;

  background:
    linear-gradient(
      180deg,
      #fffdf8 0%,
      #f7f0e7 100%
    );

  color: var(--wedding-ink);
}


/* círculos decorativos */

.rsvp-section::before {
  content: "";

  position: absolute;

  width: 310px;
  height: 310px;

  top: -180px;
  left: -170px;

  border-radius: 50%;

  border:
    1px solid rgba(184, 155, 99, 0.17);

  pointer-events: none;
}

.rsvp-section::after {
  content: "";

  position: absolute;

  width: 250px;
  height: 250px;

  bottom: -130px;
  right: -130px;

  border-radius: 50%;

  border:
    1px solid rgba(196, 154, 145, 0.2);

  pointer-events: none;
}


/* contenedor */

.rsvp-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);

  margin: 0 auto;

  text-align: center;
}


/* encabezado */

.rsvp-header {
  width: min(100%, 430px);

  margin: 0 auto;
}

.rsvp-kicker {
  margin: 0 0 1rem;

  font-size: 0.56rem;

  letter-spacing: 0.32em;

  color: var(--wedding-burgundy);
}

.rsvp-title {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(2.8rem, 10vw, 4.3rem);

  font-weight: 300;

  line-height: 1.02;

  color: var(--wedding-ink);
}

.rsvp-intro {
  width: min(100%, 360px);

  margin:
    1.4rem auto
    0;

  font-family: var(--font-serif);

  font-size: 0.96rem;

  font-style: italic;

  line-height: 1.75;

  color: var(--wedding-muted);
}


/* familia */

.rsvp-household {
  margin:
    3rem auto
    0;
}

.rsvp-household-label {
  margin:
    0 0
    0.55rem;

  font-size: 0.52rem;

  letter-spacing: 0.28em;

  color: var(--wedding-gold-dark);
}

.rsvp-household-name {
  margin: 0;

  font-family: var(--font-serif);

  font-size:
    clamp(1.9rem, 7vw, 2.8rem);

  font-weight: 300;

  color: var(--wedding-burgundy);
}


/* separador */

.rsvp-divider {
  width: 70px;
  height: 1px;

  margin:
    2rem auto
    2.4rem;

  background:
    var(--wedding-gold);
}


/* lista */

.rsvp-guest-list {
  display: grid;

  gap: 1rem;

  width: min(100%, 440px);

  margin: 0 auto;
}


/* mientras carga */

.rsvp-loading {
  margin: 0;

  padding: 1.5rem;

  font-family: var(--font-serif);

  font-style: italic;

  color: var(--wedding-muted);
}


/* tarjeta individual del invitado */

.rsvp-guest-card {
  padding:
    1.3rem
    1.15rem;

  background:
    rgba(255, 255, 255, 0.55);

  border:
    1px solid rgba(184, 155, 99, 0.22);

  box-shadow:
    0 12px 30px
    rgba(62, 50, 45, 0.055);

  text-align: left;
}

.rsvp-guest-name {
  margin:
    0 0
    1rem;

  font-family: var(--font-serif);

  font-size: 1.2rem;

  font-weight: 400;

  color: var(--wedding-ink);
}


/* opciones sí / no */

.rsvp-choice-group {
  display: grid;

  grid-template-columns:
    1fr 1fr;

  gap: 0.7rem;
}

.rsvp-choice {
  min-height: 46px;

  padding:
    0.7rem
    0.6rem;

  border:
    1px solid rgba(122, 62, 70, 0.28);

  background:
    transparent;

  color:
    var(--wedding-burgundy);

  cursor: pointer;

  font-family: inherit;

  font-size: 0.58rem;

  letter-spacing: 0.12em;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    border-color 0.25s ease,
    transform 0.25s ease;
}

.rsvp-choice:hover {
  transform:
    translateY(-1px);

  border-color:
    var(--wedding-burgundy);
}


/* seleccionado */

.rsvp-choice.is-selected {
  background:
    var(--wedding-burgundy);

  border-color:
    var(--wedding-burgundy);

  color:
    var(--wedding-paper);
}


/* botón final */

.rsvp-submit {
  width: min(100%, 340px);

  min-height: 58px;

  margin:
    2.8rem auto
    0;

  padding:
    0.9rem
    1.4rem;

  border:
    1px solid var(--wedding-burgundy);

  background:
    var(--wedding-burgundy);

  color:
    var(--wedding-paper);

  cursor: pointer;

  font-family: inherit;

  font-size: 0.58rem;

  letter-spacing: 0.22em;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.rsvp-submit:hover:not(:disabled) {
  transform:
    translateY(-2px);

  background:
    #69343c;
}

.rsvp-submit:disabled {
  opacity: 0.38;

  cursor: not-allowed;
}


/* estado */

.rsvp-status {
  min-height: 1.4rem;

  margin:
    1.2rem auto
    0;

  font-size: 0.8rem;

  color:
    var(--wedding-muted);
}


/* frase final */

.rsvp-closing {
  width: min(100%, 330px);

  margin:
    2.5rem auto
    0;

  font-family: var(--font-serif);

  font-size: 0.92rem;

  font-style: italic;

  line-height: 1.7;

  color:
    var(--wedding-muted);
}


/* móvil */

@media (max-width: 420px) {

  .rsvp-section {
    padding:
      5.2rem 1rem;
  }

  .rsvp-choice-group {
    gap: 0.55rem;
  }

  .rsvp-choice {
    font-size: 0.54rem;
  }

}

/* ═══════════════════════════════════════════════════════════════
   CIERRE FINAL
   ═══════════════════════════════════════════════════════════════ */

.final-section {
  position: relative;

  min-height: 100svh;

  display: flex;
  align-items: center;
  justify-content: center;

  overflow: hidden;

  background:
    var(--wedding-burgundy);

  color:
    var(--wedding-paper);
}


/* foto de fondo */

.final-photo {
  position: absolute;

  inset: 0;
}

.final-photo-image {
  width: 100%;
  height: 100%;

  object-fit: cover;

  transform:
    scale(1.05);
}

.final-photo-overlay {
  position: absolute;

  inset: 0;

  background:
    linear-gradient(
      180deg,
      rgba(42, 24, 28, 0.32) 0%,
      rgba(52, 28, 33, 0.58) 45%,
      rgba(42, 22, 27, 0.82) 100%
    );
}


/* contenido */

.final-content {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);

  padding:
    6rem 1.4rem
    4rem;

  text-align: center;
}


/* texto superior */

.final-kicker {
  margin: 0 0 2.3rem;

  font-size: 0.54rem;

  letter-spacing: 0.32em;

  line-height: 1.7;

  color:
    var(--wedding-gold-light);
}


/* monograma */

.final-monogram {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 0.25rem;

  width: 76px;
  height: 76px;

  margin-bottom:
    1.8rem;

  border-radius: 50%;

  border:
    1px solid
    rgba(210, 188, 141, 0.65);

  font-family:
    var(--font-serif);

  font-size: 1rem;

  color:
    var(--wedding-paper);
}

.final-monogram span {
  color:
    var(--wedding-gold-light);

  font-style: italic;
}


/* nombres */

.final-names {
  display: flex;
  flex-direction: column;

  align-items: center;

  margin: 0;

  font-family:
    var(--font-serif);

  font-size:
    clamp(3.2rem, 13vw, 5.3rem);

  font-weight: 300;

  line-height: 0.9;

  color:
    var(--wedding-paper);
}

.final-ampersand {
  margin:
    0.35rem 0;

  font-size: 0.62em;

  font-style: italic;

  color:
    var(--wedding-gold-light);
}


/* línea */

.final-line {
  width: 72px;
  height: 1px;

  margin:
    2rem auto
    1.7rem;

  background:
    var(--wedding-gold);
}


/* fecha y lugar */

.final-date {
  margin: 0;

  font-size: 0.6rem;

  letter-spacing: 0.23em;

  color:
    var(--wedding-paper);
}

.final-place {
  margin:
    0.55rem 0
    0;

  font-size: 0.5rem;

  letter-spacing: 0.26em;

  color:
    rgba(255, 253, 248, 0.68);
}


/* frase */

.final-message {
  width:
    min(100%, 320px);

  margin:
    2.2rem auto
    0;

  font-family:
    var(--font-serif);

  font-size:
    1rem;

  font-style: italic;

  line-height: 1.75;

  color:
    rgba(255, 253, 248, 0.82);
}


/* volver arriba */

.final-back-top {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 0.8rem;

  margin-top:
    2.6rem;

  padding:
    0.9rem 1.3rem;

  border:
    1px solid
    rgba(210, 188, 141, 0.65);

  background:
    rgba(255, 255, 255, 0.04);

  color:
    var(--wedding-paper);

  cursor: pointer;

  font-family: inherit;

  font-size: 0.53rem;

  letter-spacing: 0.2em;

  transition:
    background 0.25s ease,
    transform 0.25s ease;
}

.final-back-top:hover {
  background:
    rgba(210, 188, 141, 0.1);

  transform:
    translateY(-2px);
}

.final-back-arrow {
  font-size: 0.9rem;

  color:
    var(--wedding-gold-light);
}


/* móvil */

@media (max-width: 420px) {

  .final-content {
    padding:
      5rem 1.1rem
      3rem;
  }

  .final-names {
    font-size:
      clamp(3rem, 15vw, 4.4rem);
  }

}



/* ═══════════════════════════════════════════════════════════════
   EXPERIENCIA INMERSIVA EN MÓVIL
   ═══════════════════════════════════════════════════════════════ */

html,
body {
  min-height: 100%;
}

#invitation-intro,
.home-hero,
.final-section {
  min-height: 100vh;
  min-height: 100svh;
  min-height: 100dvh;
}


/* Respeta notch y barra inferior del teléfono */

#invitation-intro {
  padding-top:
    env(safe-area-inset-top);

  padding-bottom:
    env(safe-area-inset-bottom);
}

.final-content {
  padding-bottom:
    calc(
      3rem +
      env(safe-area-inset-bottom)
    );
}



/* ═══════════════════════════════════════════════════════════════
   MÚSICA · CONTROL FLOTANTE
   ═══════════════════════════════════════════════════════════════ */

.music-toggle {
  position: fixed;

  right:
    calc(
      1rem +
      env(safe-area-inset-right)
    );

  bottom:
    calc(
      1rem +
      env(safe-area-inset-bottom)
    );

  z-index: 99999;

  display: flex;
  align-items: center;
  justify-content: center;

  gap: 0.45rem;

  width: 54px;
  height: 54px;

  padding: 0;

  border-radius: 50%;

  border:
    1px solid
    rgba(210, 188, 141, 0.65);

  background:
    rgba(92, 43, 51, 0.88);

  color:
    var(--wedding-paper);

  box-shadow:
    0 8px 25px
    rgba(30, 20, 20, 0.18);

  backdrop-filter:
    blur(8px);

  -webkit-backdrop-filter:
    blur(8px);

  cursor: pointer;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease,
    background 0.3s ease;

  opacity: 0;

  pointer-events: none;
}


/* aparece cuando ya entramos a la invitación */

body.envelope-opened .music-toggle,
body.invitation-open .music-toggle {
  opacity: 1;
  pointer-events: auto;
}


.music-toggle:hover {
  transform:
    translateY(-2px)
    scale(1.04);

  background:
    rgba(122, 62, 70, 0.96);
}


/* nota musical */

.music-icon {
  font-family:
    var(--font-serif);

  font-size: 1.15rem;

  line-height: 1;

  color:
    var(--wedding-gold-light);
}


/* pequeñas barras */

.music-bars {
  display: flex;

  align-items: flex-end;

  gap: 2px;

  height: 13px;
}

.music-bars span {
  display: block;

  width: 2px;

  height: 5px;

  border-radius: 2px;

  background:
    var(--wedding-paper);

  opacity: 0.72;
}


/* cuando la música está reproduciéndose */

.music-toggle.is-playing
.music-bars span:nth-child(1) {
  animation:
    weddingMusicBar
    0.75s
    ease-in-out
    infinite alternate;
}

.music-toggle.is-playing
.music-bars span:nth-child(2) {
  animation:
    weddingMusicBar
    0.55s
    ease-in-out
    0.15s
    infinite alternate;
}

.music-toggle.is-playing
.music-bars span:nth-child(3) {
  animation:
    weddingMusicBar
    0.7s
    ease-in-out
    0.3s
    infinite alternate;
}


@keyframes weddingMusicBar {

  from {
    height: 4px;
  }

  to {
    height: 13px;
  }

}


/* accesibilidad */

@media (prefers-reduced-motion: reduce) {

  .music-toggle.is-playing
  .music-bars span {
    animation: none;
  }

}




/* ═══════════════════════════════════════════════════════════════
   FOTOS DE INVITADOS
   ═══════════════════════════════════════════════════════════════ */

.guest-photos-section {
  position: relative;
  overflow: hidden;

  padding:
    clamp(5.5rem, 12vh, 8rem)
    1.1rem;

  background:
    linear-gradient(
      180deg,
      #f8f3e8 0%,
      #f3eadf 100%
    );

  color:
    var(--wedding-ink);
}


/* decoración */

.guest-photos-section::before {
  content: "";

  position: absolute;

  width: 320px;
  height: 320px;

  top: -180px;
  right: -180px;

  border-radius: 50%;

  border:
    1px solid
    rgba(184, 155, 99, 0.18);

  pointer-events: none;
}

.guest-photos-section::after {
  content: "";

  position: absolute;

  width: 230px;
  height: 230px;

  bottom: -120px;
  left: -120px;

  border-radius: 50%;

  border:
    1px solid
    rgba(196, 154, 145, 0.22);

  pointer-events: none;
}


/* contenedor */

.guest-photos-inner {
  position: relative;
  z-index: 2;

  width: min(100%, 520px);

  margin: 0 auto;

  text-align: center;
}


/* encabezado */

.guest-photos-header {
  width:
    min(100%, 430px);

  margin: 0 auto;
}

.guest-photos-kicker {
  margin:
    0 0
    1rem;

  font-size:
    0.56rem;

  letter-spacing:
    0.32em;

  color:
    var(--wedding-burgundy);
}

.guest-photos-title {
  margin: 0;

  font-family:
    var(--font-serif);

  font-size:
    clamp(2.8rem, 10vw, 4.3rem);

  font-weight: 300;

  line-height: 1;

  color:
    var(--wedding-ink);
}

.guest-photos-intro {
  width:
    min(100%, 360px);

  margin:
    1.4rem auto
    0;

  font-family:
    var(--font-serif);

  font-size:
    0.96rem;

  font-style:
    italic;

  line-height:
    1.75;

  color:
    var(--wedding-muted);
}


/* ícono decorativo */

.guest-photos-icon {
  position: relative;

  width: 90px;
  height: 90px;

  margin:
    3rem auto
    2.5rem;

  display: flex;

  align-items: center;
  justify-content: center;

  border-radius: 50%;

  border:
    1px solid
    rgba(184, 155, 99, 0.55);
}

.guest-photos-heart {
  position: absolute;

  top: 13px;
  right: 13px;

  font-size:
    1rem;

  color:
    var(--wedding-blush-dark);
}

.guest-photos-camera {
  font-family:
    var(--font-serif);

  font-size:
    1.55rem;

  color:
    var(--wedding-gold-dark);
}


/* input oculto */

.guest-photo-input {
  position: absolute;

  width: 1px;
  height: 1px;

  opacity: 0;

  pointer-events: none;
}


/* botón elegir fotos */

.guest-photo-button {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  gap: 0.85rem;

  width:
    min(100%, 330px);

  min-height: 58px;

  padding:
    0.9rem
    1.4rem;

  border:
    1px solid
    rgba(122, 62, 70, 0.5);

  background:
    transparent;

  color:
    var(--wedding-burgundy);

  cursor: pointer;

  font-size:
    0.58rem;

  letter-spacing:
    0.22em;

  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.guest-photo-button:hover {
  background:
    rgba(122, 62, 70, 0.06);

  transform:
    translateY(-1px);
}

.guest-photo-plus {
  display: inline-flex;

  align-items: center;
  justify-content: center;

  width: 22px;
  height: 22px;

  font-size: 1.1rem;

  color:
    var(--wedding-gold-dark);
}


/* texto de selección */

.guest-photo-selection {
  margin:
    1rem auto
    0;

  font-family:
    var(--font-serif);

  font-size:
    0.86rem;

  font-style:
    italic;

  color:
    var(--wedding-muted);
}


/* previsualizaciones */

.guest-photo-preview {
  display: grid;

  grid-template-columns:
    repeat(3, 1fr);

  gap: 0.7rem;

  width:
    min(100%, 420px);

  margin:
    2rem auto
    0;
}

.guest-photo-preview:empty {
  display: none;
}

.guest-photo-preview-item {
  position: relative;

  aspect-ratio: 1 / 1;

  overflow: hidden;

  background:
    var(--wedding-paper);

  border:
    1px solid
    rgba(184, 155, 99, 0.2);

  box-shadow:
    0 8px 18px
    rgba(62, 50, 45, 0.06);
}

.guest-photo-preview-item img {
  width: 100%;
  height: 100%;

  object-fit: cover;
}


/* botón compartir */

.guest-photo-submit {
  width:
    min(100%, 340px);

  min-height:
    58px;

  margin:
    2.5rem auto
    0;

  padding:
    0.9rem
    1.4rem;

  border:
    1px solid
    var(--wedding-burgundy);

  background:
    var(--wedding-burgundy);

  color:
    var(--wedding-paper);

  cursor:
    pointer;

  font-family:
    inherit;

  font-size:
    0.58rem;

  letter-spacing:
    0.22em;

  transition:
    opacity 0.25s ease,
    transform 0.25s ease,
    background 0.25s ease;
}

.guest-photo-submit:hover:not(:disabled) {
  transform:
    translateY(-2px);

  background:
    #69343c;
}

.guest-photo-submit:disabled {
  opacity:
    0.35;

  cursor:
    not-allowed;
}


/* estado */

.guest-photo-status {
  min-height:
    1.4rem;

  margin:
    1rem auto
    0;

  font-size:
    0.8rem;

  color:
    var(--wedding-muted);
}


/* cierre */

.guest-photos-closing {
  width:
    min(100%, 330px);

  margin:
    2.5rem auto
    0;

  font-family:
    var(--font-serif);

  font-size:
    0.92rem;

  font-style:
    italic;

  line-height:
    1.7;

  color:
    var(--wedding-muted);
}


/* móvil */

@media (max-width: 420px) {

  .guest-photos-section {
    padding:
      5.2rem
      1rem;
  }

  .guest-photo-preview {
    gap:
      0.55rem;
  }

}