.middle-name {
  margin: 8px 0 0;
  font: italic 1.7rem "Cormorant Garamond", serif;
  letter-spacing: .08em;
}

.middle-name + .surname { margin-top: 12px; }

.personal-invite {
  max-width: 520px;
  margin: 0 auto 42px;
  font: 500 1.35rem/1.55 "Cormorant Garamond", serif;
  color: var(--deep);
}

.hero {
  min-height: 100svh;
  padding: 34px 22px 30px;
  align-items: flex-end;
  background: var(--ivory);
  color: var(--ink);
}

.hero-photo {
  inset: 34px 22px auto;
  height: 61svh;
  border-radius: 48% 48% 8px 8px / 32% 32% 8px 8px;
  border: 8px solid var(--paper);
  box-shadow: 0 22px 50px rgba(35, 51, 47, .16);
  background-position: 50% 62%;
}

.hero-overlay {
  inset: 34px 22px auto;
  height: 61svh;
  border-radius: 48% 48% 8px 8px / 32% 32% 8px 8px;
  background: linear-gradient(to bottom, transparent 55%, rgba(29, 48, 43, .34));
}

.hero-content {
  width: 100%;
  padding: 0 0 14px;
  color: var(--ink);
  text-shadow: none;
}

.hero-content .light { color: var(--deep); }
.script-intro { margin-top: 10px; font-size: 1.55rem; }
.hero h1 { font-size: clamp(4rem, 19vw, 6rem); color: var(--deep); }
.middle-name { font-size: 1.35rem; }
.surname { margin-bottom: 18px; }
.date-lockup strong { font-size: 2.5rem; border-color: rgba(35,51,47,.3); }
.scroll-cue { display: none; }

.interlude {
  min-height: 420px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: var(--paper);
}

.interlude-cross { color: var(--gold); font-size: 1.3rem; }
.interlude p { margin: 24px 0; font: italic 2.55rem/1.08 "Cormorant Garamond", serif; }
.interlude-line { width: 1px; height: 55px; background: var(--gold); opacity: .55; }

.closing-photo {
  height: auto;
  min-height: 760px;
  margin: 0;
  padding: 70px 24px 55px;
  align-items: flex-end;
  background-color: var(--ivory);
  background-image: none;
  border-radius: 0;
  color: var(--ink);
}

.closing-photo::before {
  content: "";
  position: absolute;
  top: 48px;
  left: 50%;
  width: min(calc(100% - 28px), 540px);
  transform: translateX(-50%);
  height: 540px;
  border: 1px solid rgba(183,154,98,.55);
  border-radius: 48% 48% 8px 8px / 30% 30% 8px 8px;
  pointer-events: none;
}

.closing-image {
  position: absolute;
  top: 58px;
  left: 50%;
  width: min(calc(100% - 44px), 520px);
  height: 520px;
  transform: translateX(-50%);
  border-radius: 48% 48% 8px 8px / 30% 30% 8px 8px;
  background: linear-gradient(rgba(22,46,40,.01), rgba(22,46,40,.10)), url("assets/foto-4-dariel.jpg") center / cover no-repeat;
  box-shadow: 0 18px 42px rgba(35,51,47,.12);
}

.closing-copy {
  width: 100%;
  padding-top: 565px;
  color: var(--deep);
  text-shadow: none;
}

.closing-copy .light { color: var(--deep); }
.closing-copy h2 { font-size: 4.2rem; }

/* Sistema tipográfico moderno y editorial */
body { font-family: "DM Sans", sans-serif; }

.letter,
.hero h1,
.middle-name,
.script-intro,
.date-lockup strong,
.quote,
.personal-invite,
.section-heading h2,
.countdown-section h2,
.countdown strong,
.names,
.event-card h3,
.interlude p,
.closing-copy h2,
.closing-copy p {
  font-family: "Bodoni Moda", serif;
}

.eyebrow,
.surname,
.role,
.button,
.rsvp-form,
footer {
  font-family: "DM Sans", sans-serif;
}

.hero h1,
.section-heading h2,
.closing-copy h2 { letter-spacing: -.045em; }
.eyebrow { letter-spacing: .26em; }
.script-intro { font-style: italic; }

/* Fotografías editoriales con fondo integrado */
.photo-1 { background-image: url("assets/foto-3-editorial.webp"); }
.photo-3 { background-image: none; }
.hero-photo { background-position: 50% 46%; }
.closing-photo { background-position: center 58px; }

/* En móvil, la fotografía y el texto son dos bloques consecutivos. */
@media (max-width: 759px) {
  .hero {
    display: block;
    min-height: auto;
    padding-top: calc(34px + 61svh + 30px);
  }

  .hero-content {
    position: relative;
  }
}
