:root {
  --wine: #651923;
  --wine-dark: #3f0b13;
  --wine-deep: #26080d;
  --terracotta: #a84d35;
  --cream: #f3e3c8;
  --paper: #f8edd8;
  --paper-light: #fff8e9;
  --olive: #66684a;
  --forest: #263b2f;
  --chocolate: #4a2f24;
  --gold: #bd8845;
  --ink: #3e211b;
  --shadow: rgba(45, 17, 12, 0.24);
  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Great Vibes", "Segoe Script", cursive;
  --sans: "Montserrat", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--wine-deep);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, rgba(187, 118, 75, 0.14), transparent 22rem),
    var(--wine-deep);
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.5;
  overflow-x: hidden;
}

body.is-locked {
  overflow: hidden;
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 3px solid #e7b86a;
  outline-offset: 4px;
}

img,
svg {
  display: block;
  max-width: 100%;
}

.noscript {
  position: fixed;
  z-index: 999;
  inset: 0 0 auto;
  padding: 12px 18px;
  color: white;
  background: #7b1f2b;
  text-align: center;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.opening {
  position: fixed;
  z-index: 100;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 22px;
  overflow: hidden;
  color: var(--paper-light);
  background:
    linear-gradient(rgba(25, 4, 8, 0.76), rgba(48, 9, 15, 0.86)),
    url("assets/images/anillos.jpg") center 48% / cover no-repeat;
  transition: opacity 0.9s ease, visibility 0.9s;
}

.opening.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening__glow {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 40%, rgba(244, 203, 137, 0.3), transparent 36%),
    linear-gradient(100deg, transparent 25%, rgba(255, 238, 204, 0.07) 45%, transparent 66%);
  mix-blend-mode: screen;
  animation: slowGlow 7s ease-in-out infinite alternate;
}

.opening__flowers {
  position: absolute;
  z-index: 1;
  width: min(72vw, 630px);
  pointer-events: none;
  filter: drop-shadow(0 15px 25px rgba(20, 2, 5, 0.42));
}

.opening__flowers--top {
  top: -10%;
  right: -20%;
  transform: rotate(178deg);
  transform-origin: 60% 60%;
  animation: flowerBreathe 8s ease-in-out infinite alternate;
}

.opening__flowers--bottom {
  bottom: -8%;
  left: -22%;
  animation: flowerBreathe 9s ease-in-out -2s infinite alternate-reverse;
}

.envelope-scene {
  position: relative;
  z-index: 3;
  width: min(88vw, 410px);
  perspective: 1200px;
}

.envelope {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1.18;
  transform-style: preserve-3d;
  filter: drop-shadow(0 30px 40px rgba(15, 1, 4, 0.45));
  animation: envelopeArrive 1.3s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.envelope__back,
.envelope__front,
.envelope__flap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
}

.envelope__back {
  height: 71%;
  border: 1px solid #d6b990;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.55), transparent 24%),
    #ead7b6;
}

.envelope__front {
  z-index: 5;
  height: 69%;
  overflow: hidden;
  clip-path: polygon(0 8%, 50% 58%, 100% 8%, 100% 100%, 0 100%);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), transparent 43%),
    #e2caa6;
}

.envelope__front::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background: repeating-linear-gradient(18deg, transparent 0 7px, rgba(92, 57, 36, 0.08) 8px);
}

.envelope__flap {
  z-index: 7;
  top: 29%;
  bottom: auto;
  height: 42%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.24), transparent 60%),
    #ecd8b8;
  transform-origin: top center;
  transition: transform 0.95s cubic-bezier(0.3, 0.7, 0.2, 1), z-index 0s 0.45s;
}

.invitation-card {
  position: absolute;
  z-index: 3;
  left: 8%;
  right: 8%;
  bottom: 30%;
  min-height: 78%;
  padding: 54px 22px 24px;
  border: 1px solid #d7b982;
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 25% 15%, rgba(255, 255, 255, 0.72), transparent 20%),
    repeating-linear-gradient(88deg, transparent 0 5px, rgba(112, 67, 32, 0.025) 6px),
    var(--paper-light);
  text-align: center;
  transition: transform 1.15s cubic-bezier(0.2, 0.8, 0.2, 1) 0.36s;
}

.invitation-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(127, 72, 35, 0.2);
  pointer-events: none;
}

.invitation-card .kicker {
  margin: 0 0 14px;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.21em;
  text-transform: uppercase;
}

.monogram {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  place-items: center;
  border: 1px solid #9c6b3f;
  border-radius: 50%;
  font-style: italic;
}

.invitation-card h1 {
  margin: 0;
  font-size: clamp(2.1rem, 10vw, 3.5rem);
  font-weight: 500;
  line-height: 0.82;
  text-transform: uppercase;
}

.invitation-card h1 span {
  display: block;
}

.invitation-card h1 i {
  display: block;
  margin: 8px 0 5px;
  color: var(--gold);
  font-family: var(--script);
  font-size: 0.95em;
  font-weight: 400;
  text-transform: none;
}

.invitation-card__date {
  margin: 19px 0 0;
  font-family: var(--sans);
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.28em;
}

.wax-seal {
  position: absolute;
  z-index: 9;
  left: 50%;
  bottom: 20%;
  display: grid;
  width: 86px;
  height: 86px;
  padding: 0;
  place-items: center;
  border: 3px double #c67a55;
  border-radius: 50%;
  color: #f6d49c;
  background:
    radial-gradient(circle at 36% 28%, #a53c43, transparent 26%),
    radial-gradient(circle at 60% 65%, #4d0b15, #761723 70%);
  box-shadow: 0 9px 18px rgba(59, 9, 16, 0.38), inset 0 0 0 5px rgba(45, 4, 11, 0.16);
  cursor: pointer;
  transform: translateX(-50%);
  transition: transform 0.3s ease, filter 0.3s ease, opacity 0.4s;
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.06);
  filter: brightness(1.08);
}

.wax-seal span {
  margin-top: 7px;
  font-size: 1.18rem;
  font-style: italic;
}

.wax-seal small {
  margin-top: -16px;
  font-family: var(--sans);
  font-size: 0.44rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.opening__hint {
  position: absolute;
  z-index: 4;
  bottom: max(20px, env(safe-area-inset-bottom));
  margin: 0;
  font-family: var(--sans);
  font-size: 0.62rem;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  animation: hintPulse 2.4s ease-in-out infinite;
}

.envelope.is-opening .envelope__flap {
  z-index: 2;
  transform: rotateX(180deg);
}

.envelope.is-opening .invitation-card {
  transform: translateY(-42%);
}

.envelope.is-opening .wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.2) rotate(-30deg);
}

.scroll-progress {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
}

.scroll-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #b87542, #efd09a, #8a2732);
}

.music-control {
  position: fixed;
  z-index: 55;
  right: max(14px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: flex;
  min-width: 92px;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 9px 13px;
  border: 1px solid rgba(255, 240, 210, 0.65);
  border-radius: 99px;
  color: #fff4df;
  background: rgba(69, 11, 20, 0.88);
  box-shadow: 0 9px 26px rgba(32, 5, 10, 0.28);
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.music-control__bars {
  display: flex;
  height: 18px;
  align-items: flex-end;
  gap: 2px;
}

.music-control__bars i {
  width: 3px;
  height: 35%;
  border-radius: 4px;
  background: #f2c47e;
}

.music-control.is-playing .music-control__bars i {
  animation: musicBar 0.8s ease-in-out infinite alternate;
}

.music-control.is-playing .music-control__bars i:nth-child(2) {
  animation-delay: -0.45s;
}

.music-control.is-playing .music-control__bars i:nth-child(3) {
  animation-delay: -0.2s;
}

.music-control__label {
  font-family: var(--sans);
  font-size: 0.59rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

main {
  width: min(100%, 980px);
  margin: 0 auto;
  overflow: hidden;
  background: var(--paper);
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.4);
}

.panel {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.paper-panel,
.location {
  background:
    radial-gradient(circle at 12% 10%, rgba(255, 255, 255, 0.72), transparent 24%),
    radial-gradient(circle at 90% 84%, rgba(123, 74, 36, 0.08), transparent 28%),
    var(--paper);
}

.paper-grain {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.34;
  background:
    repeating-linear-gradient(93deg, transparent 0 5px, rgba(99, 58, 29, 0.026) 6px),
    repeating-linear-gradient(7deg, transparent 0 8px, rgba(255, 255, 255, 0.08) 9px);
  pointer-events: none;
}

.botanical {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 12px 18px rgba(65, 25, 14, 0.18));
  user-select: none;
}

.hero {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: center;
  color: var(--paper-light);
  text-align: center;
  background: #241113;
}

.hero__photo,
.hero__veil {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.hero__photo {
  background: url("assets/images/anillos.jpg") center 43% / cover no-repeat;
  transform: scale(1.035);
  animation: heroZoom 18s ease-out both;
}

.hero__veil {
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(24, 8, 8, 0.4) 0%, rgba(34, 7, 11, 0.72) 68%, rgba(39, 5, 11, 0.93) 100%),
    radial-gradient(circle at 50% 25%, transparent, rgba(20, 2, 6, 0.42));
}

.botanical--hero {
  z-index: -1;
  right: -31%;
  bottom: -7%;
  width: min(93vw, 830px);
  opacity: 0.92;
  transform: rotate(-3deg);
}

.hero__content {
  width: min(88%, 610px);
  margin-top: 8vh;
  text-shadow: 0 5px 25px rgba(20, 0, 5, 0.72);
}

.script {
  margin: 0;
  color: var(--wine);
  font-family: var(--script);
  font-size: clamp(2.2rem, 9vw, 4.8rem);
  font-weight: 400;
  line-height: 1;
}

.hero__script {
  color: #fff2dc;
  font-size: clamp(2.1rem, 8vw, 4.5rem);
  transform: rotate(-4deg);
}

.eyebrow {
  margin: 20px 0 11px;
  color: var(--wine);
  font-family: var(--sans);
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.26em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: #f0d7ae;
}

.hero h2 {
  margin: 0;
  font-size: clamp(4rem, 17vw, 8.8rem);
  font-weight: 500;
  line-height: 0.76;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero h2 span,
.hero h2 i {
  display: block;
}

.hero h2 i {
  margin: 0.06em 0 0.02em;
  color: #e4b462;
  font-family: var(--script);
  font-size: 0.66em;
  font-weight: 400;
  line-height: 0.7;
  text-transform: none;
}

.hero__rule {
  display: flex;
  width: min(80%, 300px);
  margin: 28px auto 19px;
  align-items: center;
  gap: 12px;
  color: #e2b360;
}

.hero__rule span {
  flex: 1;
  height: 1px;
  background: currentColor;
}

.hero__rule b {
  font-size: 0.75rem;
}

.hero__date {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 2.8vw, 0.92rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.scroll-cue {
  display: inline-flex;
  margin-top: 52px;
  align-items: center;
  gap: 10px;
  color: #f8e9d1;
  font-family: var(--sans);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
}

.scroll-cue span {
  font-size: 1rem;
  animation: scrollBob 2s ease-in-out infinite;
}

.story {
  padding: 105px 20px 115px;
}

.section-heading {
  position: relative;
  z-index: 2;
  width: min(92%, 690px);
  margin: 0 auto 58px;
  text-align: center;
}

.section-heading h2,
.location h2,
.dress-code h2 {
  margin: 8px 0 15px;
  color: var(--wine-dark);
  font-size: clamp(3rem, 12vw, 6rem);
  font-weight: 500;
  line-height: 0.9;
  text-transform: uppercase;
}

.section-heading > p:not(.script),
.location__content > p,
.dress-code__copy > p {
  max-width: 570px;
  margin: 0 auto;
}

.personal-greeting {
  font-size: clamp(1.18rem, 4.8vw, 1.5rem);
  font-style: italic;
}

.guest-seats {
  margin-top: 12px !important;
  color: var(--olive);
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.botanical--story-a {
  top: -3%;
  left: -36%;
  width: min(78vw, 680px);
  opacity: 0.72;
  transform: rotate(10deg);
}

.botanical--story-b {
  right: -42%;
  bottom: -4%;
  width: min(88vw, 730px);
  opacity: 0.82;
  transform: rotate(179deg);
}

.photo-collage {
  position: relative;
  width: min(94%, 730px);
  min-height: 860px;
  margin: 0 auto;
}

.polaroid {
  position: absolute;
  margin: 0;
  padding: 10px 10px 42px;
  background: #fff9eb;
  box-shadow: 0 20px 45px var(--shadow), 0 0 0 1px rgba(103, 59, 30, 0.15);
}

.polaroid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) sepia(0.05);
}

.polaroid figcaption {
  position: absolute;
  right: 10px;
  bottom: 7px;
  left: 10px;
  color: var(--wine);
  font-family: var(--script);
  font-size: 1.5rem;
  line-height: 1;
  text-align: center;
}

.polaroid--one {
  z-index: 1;
  top: 1%;
  left: 1%;
  width: 59%;
  height: 480px;
  transform: rotate(-4deg);
}

.polaroid--two {
  z-index: 2;
  top: 20%;
  right: 0;
  width: 50%;
  height: 410px;
  transform: rotate(5deg);
}

.polaroid--three {
  z-index: 1;
  bottom: 0;
  left: 9%;
  width: 60%;
  height: 420px;
  transform: rotate(2.5deg);
}

.paper-note {
  position: absolute;
  z-index: 4;
  right: 2%;
  bottom: 6%;
  width: 55%;
  margin: 0;
  padding: 26px 19px;
  color: var(--ink);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), transparent 40%),
    #f6e8cd;
  box-shadow: 0 14px 34px var(--shadow);
  font-size: clamp(1.1rem, 4.7vw, 1.55rem);
  font-style: italic;
  line-height: 1.1;
  text-align: center;
  transform: rotate(-4deg);
}

.paper-note::before,
.paper-note::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(135deg, transparent 4px, #f6e8cd 0) 0 0 / 8px 8px repeat-x;
}

.paper-note::before {
  top: -8px;
}

.paper-note::after {
  bottom: -8px;
  transform: rotate(180deg);
}

.paper-note span,
.paper-note i {
  color: var(--terracotta);
  font-family: var(--script);
  font-size: 2rem;
}

.paper-note span {
  position: absolute;
  top: -3px;
  left: 12px;
}

.paper-note i {
  display: block;
  margin-top: 7px;
}

.date-panel {
  display: grid;
  padding: 92px 18px;
  place-items: center;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 50% 18%, rgba(191, 112, 71, 0.18), transparent 28%),
    linear-gradient(145deg, #4f111c, #28070d 75%);
}

.botanical--date-a,
.botanical--date-b {
  width: min(70vw, 620px);
}

.botanical--date-a {
  top: -11%;
  left: -30%;
  transform: rotate(22deg);
}

.botanical--date-b {
  right: -28%;
  bottom: -9%;
  transform: rotate(180deg);
}

.date-card {
  position: relative;
  width: min(92%, 520px);
  padding: 64px 26px 38px;
  border: 1px solid rgba(173, 118, 70, 0.6);
  border-radius: 220px 220px 10px 10px;
  color: var(--ink);
  background:
    radial-gradient(circle at 42% 9%, rgba(255, 255, 255, 0.65), transparent 22%),
    repeating-linear-gradient(89deg, transparent 0 7px, rgba(89, 49, 24, 0.035) 8px),
    var(--paper);
  box-shadow: 0 30px 60px rgba(18, 1, 6, 0.38), inset 0 0 0 8px rgba(255, 255, 255, 0.22);
  text-align: center;
}

.date-card::before {
  content: "";
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(96, 49, 26, 0.18);
  border-radius: inherit;
  pointer-events: none;
}

.date-card .eyebrow {
  margin-top: 0;
}

.date-card h2 {
  margin: 4px 0 13px;
  color: var(--wine-dark);
  font-size: clamp(4.6rem, 21vw, 7.8rem);
  font-weight: 400;
  line-height: 0.68;
}

.date-card h2 span {
  display: block;
  margin-bottom: 0.12em;
}

.date-card h2 span:last-child {
  font-size: 0.72em;
  letter-spacing: 0.04em;
}

.date-card__heart {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--wine);
  font-size: 0.7rem;
}

.date-card__heart::before,
.date-card__heart::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #b69569;
}

.date-card__schedule {
  display: grid;
  margin: 20px 0;
  text-transform: uppercase;
}

.date-card__schedule b {
  font-size: 1.1rem;
  font-weight: 500;
}

.date-card__schedule span {
  color: var(--wine);
  font-family: var(--sans);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.date-card__copy {
  max-width: 360px;
  margin: 25px auto;
  line-height: 1.35;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin: 28px auto 14px;
}

.countdown div {
  padding: 11px 2px;
  border: 1px solid rgba(104, 59, 31, 0.2);
  background: rgba(255, 250, 238, 0.56);
}

.countdown strong,
.countdown span {
  display: block;
}

.countdown strong {
  color: var(--wine);
  font-size: clamp(1.55rem, 7vw, 2.6rem);
  font-weight: 500;
  line-height: 1;
}

.countdown span {
  margin-top: 4px;
  font-family: var(--sans);
  font-size: 0.5rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.countdown-note {
  margin: 0 auto;
  color: #725f52;
  font-family: var(--sans);
  font-size: 0.58rem;
  line-height: 1.45;
}

.celebration {
  padding: 105px 18px 115px;
}

.botanical--celebration {
  top: -8%;
  right: -42%;
  width: min(82vw, 700px);
  opacity: 0.82;
  transform: rotate(188deg);
}

.moment-list {
  display: grid;
  width: min(94%, 700px);
  margin: 0 auto;
  gap: 12px;
}

.moment-card {
  position: relative;
  border: 1px solid rgba(111, 62, 33, 0.18);
  border-radius: 5px;
  background: rgba(255, 249, 235, 0.67);
  box-shadow: 0 12px 30px rgba(79, 36, 20, 0.09);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.moment-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 17px 36px rgba(79, 36, 20, 0.14);
}

.moment-card__button {
  display: grid;
  width: 100%;
  grid-template-columns: 72px 1fr 24px;
  align-items: center;
  gap: 13px;
  padding: 18px 15px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.moment-icon {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 50%;
  color: var(--wine);
  background: #f4e0bd;
}

.moment-icon svg {
  width: 51px;
  height: 51px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.moment-card__button b,
.moment-card__button small {
  display: block;
}

.moment-card__button b {
  color: var(--wine-dark);
  font-size: clamp(1.42rem, 5.6vw, 1.9rem);
  font-weight: 500;
  line-height: 1;
}

.moment-card__button small {
  margin-top: 5px;
  color: #715e52;
  font-size: 0.86rem;
  line-height: 1.2;
}

.moment-card__button > i {
  color: var(--terracotta);
  font-size: 2rem;
  font-style: normal;
  transition: transform 0.35s ease;
}

.moment-card.is-open .moment-card__button > i {
  transform: rotate(45deg);
}

.moment-card__details {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.4s ease;
}

.moment-card__details p {
  min-height: 0;
  margin: 0;
  padding: 0 23px;
  overflow: hidden;
  color: #624b3f;
  line-height: 1.35;
  transition: padding 0.4s ease;
}

.moment-card.is-open .moment-card__details {
  grid-template-rows: 1fr;
}

.moment-card.is-open .moment-card__details p {
  padding: 0 23px 22px;
}

.location {
  display: grid;
  padding: 96px 20px 105px;
  place-items: center;
}

.location::before,
.location::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 45%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--terracotta) 0 5px, transparent 5px 11px);
  opacity: 0.42;
  transform: rotate(-10deg);
}

.location::before {
  top: 9%;
  left: -8%;
}

.location::after {
  right: -7%;
  bottom: 11%;
}

.location__content {
  width: min(96%, 750px);
  text-align: center;
}

.location__illustration {
  width: min(100%, 690px);
  margin: 20px auto 7px;
  filter: drop-shadow(0 20px 24px rgba(63, 27, 15, 0.15));
}

.location__address {
  display: inline-flex;
  margin: 5px auto 20px !important;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
}

.location__address svg {
  width: 27px;
  flex: 0 0 27px;
  fill: var(--wine);
  stroke: var(--paper);
  stroke-width: 0.7;
}

.location__address span,
.location__address b {
  display: block;
}

.location__address b {
  font-size: 1.06rem;
  font-weight: 600;
}

.button {
  display: inline-flex;
  min-height: 50px;
  margin-top: 24px;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 13px 23px;
  border: 1px solid transparent;
  border-radius: 99px;
  font-family: var(--sans);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button--wine {
  color: white;
  background: var(--wine);
  box-shadow: 0 10px 25px rgba(93, 20, 31, 0.24);
}

.button--paper {
  color: var(--wine-dark);
  background: var(--paper-light);
}

.illustration-note {
  margin-top: 20px !important;
  color: #7a685d;
  font-family: var(--sans);
  font-size: 0.58rem;
}

.dress-code {
  display: grid;
  min-height: auto;
  padding: 95px 20px 115px;
  place-items: center;
}

.botanical--dress {
  right: -34%;
  bottom: -7%;
  width: min(75vw, 660px);
  opacity: 0.76;
  transform: rotate(185deg);
}

.dress-code__grid {
  display: grid;
  width: min(96%, 780px);
  align-items: center;
  gap: 20px;
}

.dress-code__copy {
  position: relative;
  z-index: 2;
  text-align: center;
}

.dress-code__illustration {
  width: min(88%, 430px);
  max-height: 640px;
  margin: -10px auto 0;
  object-fit: contain;
  filter: drop-shadow(0 20px 30px rgba(44, 17, 13, 0.16));
}

.palette,
.avoid-palette {
  margin-top: 25px;
}

.palette p,
.avoid-palette p {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.palette > div,
.avoid-palette > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.palette span,
.avoid-palette span {
  position: relative;
  display: block;
  width: 38px;
  height: 38px;
  border: 2px solid #fff7e8;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 2px 8px rgba(44, 21, 16, 0.22);
}

.avoid-palette span::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 2px;
  background: #bd382f;
  transform: rotate(-43deg);
}

.rsvp {
  display: grid;
  padding: 100px 20px;
  place-items: center;
  color: var(--paper-light);
  background:
    radial-gradient(circle at 52% 10%, rgba(199, 105, 71, 0.18), transparent 27%),
    linear-gradient(155deg, #6d1e27, #310910 78%);
}

.botanical--rsvp-a,
.botanical--rsvp-b {
  width: min(72vw, 650px);
}

.botanical--rsvp-a {
  top: -12%;
  left: -33%;
}

.botanical--rsvp-b {
  right: -32%;
  bottom: -9%;
  transform: rotate(180deg);
}

.rsvp-card {
  position: relative;
  z-index: 2;
  width: min(96%, 530px);
  padding: 46px 22px 38px;
  border: 1px solid rgba(239, 202, 143, 0.45);
  background: rgba(73, 10, 18, 0.76);
  box-shadow: 0 27px 65px rgba(20, 1, 6, 0.35);
  text-align: center;
  backdrop-filter: blur(4px);
}

.rsvp-card::before {
  content: "";
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(239, 202, 143, 0.16);
  pointer-events: none;
}

.rsvp-card h2 {
  margin: 12px 0 14px;
  color: #fff0da;
  font-size: clamp(3.3rem, 13vw, 5.6rem);
  font-weight: 500;
  line-height: 0.82;
  text-transform: uppercase;
}

.rsvp-card > p:not(.eyebrow) {
  max-width: 390px;
  margin: 0 auto;
  line-height: 1.3;
}

.rsvp-actions {
  display: grid;
  margin-top: 30px;
  gap: 11px;
}

.rsvp-choice {
  display: grid;
  min-height: 59px;
  grid-template-columns: 34px 1fr 22px;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  border: 1px solid rgba(255, 241, 215, 0.52);
  border-radius: 99px;
  color: white;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.rsvp-choice:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.rsvp-choice--yes {
  background: #586143;
}

.rsvp-choice--no {
  background: #9b3c25;
}

.rsvp-choice > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.76);
  border-radius: 50%;
  font-family: var(--sans);
  font-size: 0.8rem;
}

.rsvp-choice > i {
  font-size: 1.8rem;
  font-style: normal;
  line-height: 1;
}

.rsvp-status {
  min-height: 0;
  margin-top: 18px;
  color: #f3d69f;
  font-style: italic;
  line-height: 1.35;
}

.rsvp-status:not(:empty) {
  min-height: 48px;
}

.rsvp-preview-note {
  display: grid;
  margin-top: 20px;
  padding: 15px;
  border: 1px solid rgba(240, 209, 158, 0.24);
  color: #f2dfc1;
  background: rgba(255, 242, 220, 0.08);
  font-family: var(--sans);
  font-size: 0.62rem;
  line-height: 1.5;
}

.rsvp-preview-note b {
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.button.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.farewell {
  display: grid;
  min-height: 100vh;
  min-height: 100svh;
  place-items: end center;
  color: white;
  background: #1e1112;
}

.farewell__photo,
.farewell__overlay {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.farewell__photo {
  background: url("assets/images/nosotros-2.jpg") center 30% / cover no-repeat;
  filter: grayscale(1) contrast(1.05);
}

.farewell__overlay {
  z-index: -2;
  background: linear-gradient(180deg, rgba(24, 7, 9, 0.18) 20%, rgba(31, 5, 9, 0.9) 82%);
}

.botanical--farewell-a,
.botanical--farewell-b {
  z-index: -1;
  width: min(73vw, 650px);
}

.botanical--farewell-a {
  left: -35%;
  bottom: -7%;
}

.botanical--farewell-b {
  right: -37%;
  bottom: -5%;
  transform: scaleX(-1);
}

.farewell__content {
  position: relative;
  z-index: 3;
  width: min(90%, 600px);
  margin-bottom: max(76px, calc(42px + env(safe-area-inset-bottom)));
  padding: 0 10px;
  color: #fff4e2;
  text-align: center;
  text-shadow: 0 5px 20px rgba(18, 1, 4, 0.8);
}

.farewell__content .eyebrow span {
  color: #e6b566;
  font-family: var(--script);
  font-size: 1.5em;
  letter-spacing: 0;
}

.farewell__content h2 {
  margin: 14px auto 18px;
  color: #fff4e2 !important;
  font-size: clamp(3rem, 12vw, 6rem);
}

.farewell__content > p:not(.eyebrow) {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.farewell__heart {
  margin-top: 12px;
  color: #efbd74;
  font-size: 2.2rem;
}

.reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 1s ease, transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.petal-layer {
  position: fixed;
  z-index: 80;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.petal {
  position: absolute;
  top: -30px;
  left: var(--x);
  width: var(--size);
  height: calc(var(--size) * 0.66);
  border-radius: 70% 20% 65% 30%;
  background: var(--petal);
  opacity: 0;
  animation: petalFall var(--duration) linear var(--delay) forwards;
}

@keyframes envelopeArrive {
  from { opacity: 0; transform: translateY(50px) rotate(-4deg) scale(0.9); }
  to { opacity: 1; transform: none; }
}

@keyframes slowGlow {
  from { opacity: 0.54; transform: translateX(-2%); }
  to { opacity: 1; transform: translateX(2%); }
}

@keyframes flowerBreathe {
  from { scale: 1; }
  to { scale: 1.035; }
}

@keyframes hintPulse {
  0%, 100% { opacity: 0.52; }
  50% { opacity: 1; }
}

@keyframes heroZoom {
  from { transform: scale(1.08); }
  to { transform: scale(1.015); }
}

@keyframes scrollBob {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

@keyframes musicBar {
  from { height: 25%; }
  to { height: 100%; }
}

@keyframes petalFall {
  0% { opacity: 0; transform: translate3d(0, -20px, 0) rotate(0deg); }
  10% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--drift), 108vh, 0) rotate(520deg); }
}

@media (min-width: 720px) {
  .story,
  .celebration,
  .location,
  .dress-code,
  .rsvp {
    padding-top: 125px;
    padding-bottom: 135px;
  }

  .photo-collage {
    min-height: 970px;
  }

  .polaroid--one {
    height: 590px;
  }

  .polaroid--two {
    height: 490px;
  }

  .polaroid--three {
    height: 500px;
  }

  .paper-note {
    right: 0;
    bottom: 13%;
    width: 48%;
  }

  .moment-card__button {
    grid-template-columns: 92px 1fr 34px;
    padding: 20px 24px;
  }

  .moment-icon {
    width: 82px;
    height: 82px;
  }

  .moment-icon svg {
    width: 60px;
    height: 60px;
  }

  .dress-code__grid {
    grid-template-columns: 1fr 0.88fr;
  }

  .dress-code__copy {
    text-align: left;
  }

  .dress-code__copy > p,
  .dress-code__copy .script {
    margin-left: 0;
  }

  .palette > div,
  .avoid-palette > div {
    justify-content: flex-start;
  }
}

@media (min-width: 1040px) {
  body {
    padding: 24px 0;
  }

  main {
    border-radius: 16px;
  }

  .opening {
    padding: 38px;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 16px;
  }

  .opening {
    padding: 14px;
  }

  .envelope-scene {
    width: min(92vw, 360px);
  }

  .invitation-card {
    padding-top: 45px;
  }

  .wax-seal {
    width: 78px;
    height: 78px;
  }

  .story {
    padding-inline: 12px;
  }

  .section-heading {
    margin-bottom: 42px;
  }

  .photo-collage {
    min-height: 735px;
  }

  .polaroid {
    padding: 7px 7px 35px;
  }

  .polaroid figcaption {
    font-size: 1.25rem;
  }

  .polaroid--one {
    height: 405px;
  }

  .polaroid--two {
    height: 340px;
  }

  .polaroid--three {
    height: 350px;
  }

  .paper-note {
    width: 58%;
    padding: 22px 13px;
  }

  .date-card {
    padding-inline: 19px;
  }

  .moment-card__button {
    grid-template-columns: 61px 1fr 19px;
    gap: 10px;
    padding: 15px 11px;
  }

  .moment-icon {
    width: 58px;
    height: 58px;
  }

  .moment-icon svg {
    width: 43px;
    height: 43px;
  }

  .dress-code__illustration {
    max-height: 500px;
  }

  .rsvp-card {
    padding-inline: 16px;
  }

  .rsvp-choice {
    grid-template-columns: 30px 1fr 16px;
    padding-inline: 12px;
    font-size: 1.08rem;
  }
}

@media (max-width: 360px) {
  .hero h2 {
    font-size: 18vw;
  }

  .photo-collage {
    min-height: 650px;
  }

  .polaroid--one {
    height: 350px;
  }

  .polaroid--two {
    height: 290px;
  }

  .polaroid--three {
    height: 300px;
  }

  .date-card {
    padding-inline: 14px;
  }

  .countdown {
    gap: 3px;
  }

  .countdown span {
    letter-spacing: 0.03em;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .petal-layer {
    display: none;
  }
}

/* High-fidelity editorial reconstruction */
.opening {
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.86), transparent 28%),
    repeating-linear-gradient(87deg, transparent 0 6px, rgba(90, 53, 27, 0.028) 7px),
    var(--paper);
}

.opening::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 206, 122, 0.32) 0 1px, transparent 2px),
    radial-gradient(circle at 84% 68%, rgba(255, 206, 122, 0.26) 0 1px, transparent 2px);
  background-size: 31px 31px, 43px 43px;
  mix-blend-mode: multiply;
  opacity: 0.65;
  pointer-events: none;
}

.opening__glow {
  z-index: 1;
  background: radial-gradient(circle at 52% 44%, rgba(255, 255, 255, 0.9), transparent 35%);
  mix-blend-mode: soft-light;
}

.opening__fabric {
  position: absolute;
  z-index: 1;
  top: -9%;
  right: -24%;
  width: min(88vw, 720px);
  max-width: none;
  opacity: 0.6;
  pointer-events: none;
  transform: rotate(-12deg);
  filter: drop-shadow(0 14px 22px rgba(99, 59, 30, 0.12));
}

.opening__flowers {
  z-index: 2;
  filter: drop-shadow(0 15px 25px rgba(69, 28, 15, 0.22));
}

.opening__hint {
  color: var(--wine-dark);
}

.envelope-scene {
  z-index: 4;
}

.hero {
  min-height: max(100svh, 780px);
  padding: 58px 22px 34px;
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 48% 32%, rgba(255, 255, 255, 0.75), transparent 30%),
    radial-gradient(circle at 86% 84%, rgba(161, 91, 51, 0.1), transparent 26%),
    var(--paper);
}

.hero__sparkles {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.72;
  background:
    radial-gradient(circle at 17% 22%, rgba(218, 161, 81, 0.72) 0 1px, transparent 2px),
    radial-gradient(circle at 76% 38%, rgba(218, 161, 81, 0.62) 0 1px, transparent 2px),
    radial-gradient(circle at 52% 70%, rgba(218, 161, 81, 0.56) 0 1px, transparent 2px);
  background-size: 37px 37px, 51px 51px, 29px 29px;
  pointer-events: none;
}

.hero__fabric {
  position: absolute;
  z-index: -1;
  max-width: none;
  pointer-events: none;
  filter: drop-shadow(0 18px 20px rgba(93, 55, 31, 0.12));
}

.hero__fabric--one {
  top: -10%;
  right: -48%;
  width: min(116vw, 980px);
  opacity: 0.52;
  transform: rotate(-16deg);
}

.hero__fabric--two {
  bottom: -16%;
  left: -52%;
  width: min(112vw, 930px);
  opacity: 0.4;
  transform: rotate(164deg);
}

.botanical--hero-top,
.botanical--hero-bottom {
  z-index: 0;
  width: min(79vw, 650px);
}

.botanical--hero-top {
  top: -14%;
  left: -31%;
  transform: rotate(8deg);
}

.botanical--hero-bottom {
  right: -37%;
  bottom: -11%;
  transform: rotate(181deg);
}

.hero__content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(94%, 560px);
  min-height: calc(100svh - 92px);
  margin: 0;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  text-shadow: none;
}

.hero .eyebrow {
  order: 1;
  margin: 0 0 22px;
  color: var(--wine-dark);
  font-size: 0.71rem;
  letter-spacing: 0.34em;
}

.hero h2 {
  order: 2;
  color: var(--wine-dark);
  font-size: clamp(4rem, 18vw, 8.1rem);
  line-height: 0.76;
  letter-spacing: -0.035em;
}

.hero h2 i {
  margin: 0.08em 0 0.05em;
  color: var(--gold);
  font-size: 0.72em;
}

.hero__rule {
  order: 3;
  width: min(68%, 250px);
  margin: 24px auto 12px;
  color: #c88945;
}

.hero-seal {
  position: relative;
  z-index: 3;
  order: 4;
  display: grid;
  width: 82px;
  height: 82px;
  margin: 3px auto 0;
  place-items: center;
  border: 3px double #be704b;
  border-radius: 50%;
  color: #f5ce8e;
  background:
    radial-gradient(circle at 36% 28%, #a83f43, transparent 26%),
    radial-gradient(circle at 60% 65%, #4d0b15, #741621 72%);
  box-shadow: 0 11px 20px rgba(66, 15, 19, 0.28), inset 0 0 0 5px rgba(43, 3, 9, 0.17);
  font-size: 1.2rem;
  font-style: italic;
  transform: rotate(-6deg);
}

.hero__rings {
  position: relative;
  z-index: 2;
  order: 5;
  width: min(58vw, 265px);
  margin: -4px auto -16px;
  filter: drop-shadow(0 14px 17px rgba(91, 51, 23, 0.21));
  animation: ringsFloat 6s ease-in-out infinite alternate;
}

.hero__tagline {
  position: relative;
  z-index: 3;
  order: 6;
  margin: 0;
  color: var(--ink);
  font-size: clamp(1.1rem, 4.7vw, 1.42rem);
  font-style: italic;
  line-height: 1.12;
}

.scroll-cue {
  order: 7;
  margin-top: 25px;
  color: var(--wine-dark);
}

.story {
  min-height: 1180px;
  padding: 86px 20px 115px;
  background:
    linear-gradient(180deg, rgba(25, 22, 21, 0.63) 0 31%, rgba(25, 22, 21, 0.15) 38%, transparent 44%),
    url("assets/images/nosotros-1.jpg") center top / 100% 480px no-repeat,
    radial-gradient(circle at 10% 64%, rgba(255, 255, 255, 0.64), transparent 22%),
    var(--paper);
}

.story-heading {
  width: min(92%, 610px);
  margin-bottom: 38px;
  color: #fff5e4;
  text-shadow: 0 5px 22px rgba(13, 4, 4, 0.58);
}

.section-heading.story-heading h2 {
  margin: 0 auto 24px;
  color: #fff6e5;
  font-family: var(--script);
  font-size: clamp(3rem, 13vw, 6rem);
  font-weight: 400;
  line-height: 0.98;
  text-transform: none;
  transform: rotate(-3deg);
}

.story .personal-greeting {
  max-width: 410px;
  color: #f5dfbc;
}

.story .guest-seats {
  color: #e5bd78;
}

.botanical--story-a {
  top: -4%;
  left: -39%;
  opacity: 0.9;
}

.photo-collage {
  min-height: 900px;
}

.palette > div,
.avoid-palette > div {
  gap: 10px 7px;
}

.palette span,
.avoid-palette span {
  display: grid;
  width: 48px;
  height: auto;
  justify-items: center;
  border: 0;
  border-radius: 0;
  background: none;
  box-shadow: none;
}

.palette i,
.avoid-palette i {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  border: 2px solid #fff7e8;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: 0 2px 8px rgba(44, 21, 16, 0.22);
}

.palette small,
.avoid-palette small {
  display: block;
  margin-top: 5px;
  color: #655046;
  font-family: var(--sans);
  font-size: 0.43rem;
  line-height: 1.1;
  text-align: center;
}

.avoid-palette span::after {
  display: none;
}

.avoid-palette i::after {
  content: "";
  position: absolute;
  top: 50%;
  left: -4px;
  right: -4px;
  height: 2px;
  background: #bd382f;
  transform: rotate(-43deg);
}

.electric i {
  background: conic-gradient(#8d27ff, #12a8ff, #00de8a, #f7ec36, #ff493f, #8d27ff);
}

.capture-mode {
  overflow: auto !important;
}

.capture-mode .opening,
.capture-mode .music-control,
.capture-mode .scroll-progress {
  display: none !important;
}

.capture-mode .reveal {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.capture-mode .panel,
.capture-mode .panel * {
  animation-play-state: paused !important;
}

/* Captura aislada por pantalla: evita desplazamientos causados por imágenes
   y tipografías que terminan de cargar en secciones anteriores. */
.capture-mode[data-capture-screen] .panel {
  display: none;
}

.capture-mode[data-capture-screen="historia"] #historia,
.capture-mode[data-capture-screen="celebracion"] #celebracion {
  display: block;
}

.capture-mode[data-capture-screen="portada"] #portada,
.capture-mode[data-capture-screen="fecha"] #fecha,
.capture-mode[data-capture-screen="lugar"] #lugar,
.capture-mode[data-capture-screen="vestimenta"] #vestimenta,
.capture-mode[data-capture-screen="confirmacion"] #confirmacion,
.capture-mode[data-capture-screen="despedida"] #despedida {
  display: grid;
}

@keyframes ringsFloat {
  from { transform: translateY(2px) rotate(-1deg); }
  to { transform: translateY(-6px) rotate(1deg); }
}

/* La lámina aprobada mantiene la fecha sobre papel crema, no sobre un bloque oscuro. */
.date-panel {
  color: var(--ink);
  background:
    radial-gradient(circle at 16% 10%, rgba(194, 142, 81, 0.13), transparent 27%),
    radial-gradient(circle at 85% 88%, rgba(120, 26, 35, 0.08), transparent 25%),
    repeating-linear-gradient(91deg, transparent 0 8px, rgba(89, 49, 24, 0.022) 9px),
    var(--paper);
}

.date-card {
  box-shadow: 0 26px 48px rgba(88, 51, 31, 0.16), inset 0 0 0 8px rgba(255, 255, 255, 0.26);
}

.date-card__schedule b {
  max-width: 280px;
  margin-inline: auto;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
}

@media (min-width: 720px) {
  .hero {
    padding-block: 78px 48px;
  }

  .hero__content {
    min-height: 780px;
  }

  .hero__rings {
    width: 285px;
  }

  .story {
    min-height: 1350px;
    padding-top: 110px;
  }

  .palette span,
  .avoid-palette span {
    width: 56px;
  }

  .palette i,
  .avoid-palette i {
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: max(100svh, 750px);
    padding-inline: 15px;
  }

  .hero__content {
    min-height: calc(100svh - 70px);
  }

  .hero h2 {
    font-size: clamp(3.75rem, 18vw, 5rem);
  }

  .hero-seal {
    width: 72px;
    height: 72px;
  }

  .hero__rings {
    width: min(57vw, 230px);
  }

  .story {
    min-height: 1060px;
    padding-top: 74px;
  }

  .section-heading.story-heading {
    margin-bottom: 28px;
  }

  .section-heading.story-heading h2 {
    font-size: clamp(2.7rem, 12vw, 4.2rem);
  }

  .photo-collage {
    min-height: 750px;
  }
}

@media (max-width: 360px) {
  .hero h2 {
    font-size: 17vw;
  }

  .hero__rings {
    width: 205px;
  }

  .palette span,
  .avoid-palette span {
    width: 44px;
  }
}

/* V10 — apertura física, itinerario editorial y motion fluido */
.opening {
  padding: clamp(16px, 4vw, 42px);
  transition: opacity 0.72s ease, visibility 0s linear 0.72s;
}

.opening.is-leaving,
.opening.is-finished {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.opening[hidden] {
  display: none !important;
}

.opening__flowers {
  width: min(64vw, 610px);
}

.opening__flowers--top {
  top: -15%;
  right: -15%;
}

.opening__flowers--bottom {
  bottom: -13%;
  left: -16%;
}

.opening__fabric {
  top: -18%;
  right: -18%;
  width: min(72vw, 650px);
  opacity: 0.4;
}

.envelope-scene {
  width: min(90vw, 540px);
  perspective: 1500px;
  perspective-origin: 50% 42%;
}

.envelope {
  aspect-ratio: 1.48 / 1;
  filter: drop-shadow(0 28px 32px rgba(57, 26, 16, 0.25));
  transform-style: preserve-3d;
  animation: envelopeArrive 1.05s cubic-bezier(0.2, 0.82, 0.22, 1) both;
}

.envelope__back,
.envelope__liner,
.envelope__front,
.envelope__fold,
.envelope__flap,
.envelope__flap-face {
  position: absolute;
}

.envelope__back {
  z-index: 1;
  top: 18%;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border: 1px solid rgba(118, 73, 39, 0.3);
  border-radius: 4px 4px 11px 11px;
  background:
    repeating-linear-gradient(92deg, transparent 0 7px, rgba(108, 67, 39, 0.035) 8px),
    linear-gradient(145deg, #f5e5ca, #e4c69e 76%);
  box-shadow: inset 0 0 36px rgba(113, 70, 38, 0.11);
}

.envelope__liner {
  z-index: 2;
  top: 19%;
  right: 1.5%;
  left: 1.5%;
  height: 57%;
  clip-path: polygon(0 0, 100% 0, 50% 94%);
  background:
    radial-gradient(circle at 30% 40%, rgba(108, 27, 38, 0.12), transparent 34%),
    repeating-linear-gradient(38deg, rgba(100, 57, 31, 0.045) 0 1px, transparent 1px 9px),
    #d7b88c;
  box-shadow: inset 0 16px 28px rgba(72, 35, 20, 0.15);
}

.invitation-card {
  z-index: 3;
  left: 7%;
  right: 7%;
  bottom: 30%;
  display: grid;
  min-height: 82%;
  padding: clamp(24px, 7vw, 48px) clamp(24px, 6vw, 42px) 24px;
  align-content: center;
  border: 1px solid rgba(151, 105, 59, 0.54);
  border-radius: 2px;
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 24% 14%, rgba(255, 255, 255, 0.88), transparent 23%),
    repeating-linear-gradient(88deg, transparent 0 6px, rgba(108, 65, 34, 0.027) 7px),
    #fff8e9;
  box-shadow: 0 12px 27px rgba(70, 38, 24, 0.17), inset 0 0 0 9px rgba(181, 132, 78, 0.055);
  overflow: hidden;
  transform: translate3d(0, 34%, 0) scale(0.985);
  transform-origin: center bottom;
  transition: transform 1.08s cubic-bezier(0.18, 0.82, 0.22, 1), box-shadow 0.8s ease;
  will-change: transform;
}

.invitation-card::before,
.invitation-card::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.invitation-card::before {
  inset: 10px;
  border: 1px solid rgba(127, 72, 35, 0.18);
}

.invitation-card::after {
  right: -20px;
  bottom: -34px;
  width: 132px;
  height: 132px;
  border: 1px solid rgba(124, 72, 38, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 12px rgba(124, 72, 38, 0.035), 0 0 0 24px rgba(124, 72, 38, 0.025);
}

.invitation-card .kicker {
  margin: 0 0 5px;
  font-size: 0.56rem;
  letter-spacing: 0.3em;
}

.invitation-card__ornament {
  margin: 0 auto 5px;
  color: var(--gold);
  font-size: clamp(1.35rem, 5vw, 2rem);
}

.invitation-card__message {
  max-width: 330px;
  margin: 0 auto;
  font-size: clamp(1.45rem, 5.8vw, 2.18rem);
  font-style: italic;
  line-height: 1.02;
}

.invitation-card__signature {
  margin: 16px 0 0;
  color: var(--wine);
  font-size: clamp(1.1rem, 4.3vw, 1.55rem);
  font-weight: 500;
  letter-spacing: 0.02em;
}

.invitation-card__signature i {
  margin: 0 0.2em;
  color: var(--gold);
  font-family: var(--script);
  font-size: 1.5em;
  font-weight: 400;
}

.envelope__fold {
  z-index: 5;
  top: 18%;
  bottom: 0;
  width: 58%;
  border-bottom: 1px solid rgba(111, 66, 37, 0.18);
  background:
    repeating-linear-gradient(16deg, transparent 0 8px, rgba(105, 63, 36, 0.026) 9px),
    linear-gradient(155deg, #edd7b6, #dfbd91);
}

.envelope__fold--left {
  left: 0;
  clip-path: polygon(0 0, 100% 52%, 0 100%);
}

.envelope__fold--right {
  right: 0;
  clip-path: polygon(100% 0, 0 52%, 100% 100%);
}

.envelope__front {
  z-index: 6;
  top: 18%;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  clip-path: polygon(0 100%, 0 80%, 50% 42%, 100% 80%, 100% 100%);
  border-radius: 0 0 11px 11px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 66%),
    repeating-linear-gradient(96deg, transparent 0 8px, rgba(106, 65, 38, 0.03) 9px),
    #e9cfaa;
  box-shadow: inset 0 -18px 28px rgba(111, 67, 38, 0.07);
}

.envelope__front::after {
  display: none;
}

.envelope__flap {
  z-index: 8;
  top: 18%;
  right: 0;
  left: 0;
  height: 59%;
  clip-path: none;
  background: none;
  transform-origin: 50% 0;
  transform-style: preserve-3d;
  transition: transform 0.92s cubic-bezier(0.32, 0.02, 0.19, 1), z-index 0s linear 0.47s;
  will-change: transform;
}

.envelope__flap-face {
  inset: 0;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.envelope__flap-face--front {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 58%),
    repeating-linear-gradient(18deg, transparent 0 7px, rgba(92, 57, 36, 0.035) 8px),
    #ecd5b2;
  transform: translateZ(1px);
}

.envelope__flap-face--back {
  background:
    radial-gradient(circle at 30% 35%, rgba(107, 25, 37, 0.11), transparent 32%),
    repeating-linear-gradient(38deg, rgba(100, 57, 31, 0.045) 0 1px, transparent 1px 9px),
    #d8ba8e;
  transform: rotateX(180deg) translateZ(1px);
}

.wax-seal {
  z-index: 10;
  bottom: 7%;
  width: clamp(72px, 18vw, 88px);
  height: clamp(72px, 18vw, 88px);
  border: 0;
  color: #f5d198;
  background: transparent;
  box-shadow: none;
  isolation: isolate;
  transition: transform 0.2s ease, opacity 0.24s ease 0.42s;
  will-change: transform, opacity;
}

.wax-seal::before,
.wax-seal::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border: 3px double #c87852;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 27%, #ac454b, transparent 25%),
    radial-gradient(circle at 60% 65%, #4d0b15, #761723 70%);
  box-shadow: 0 10px 20px rgba(60, 10, 18, 0.34), inset 0 0 0 5px rgba(45, 4, 11, 0.15);
  transition: transform 0.48s cubic-bezier(0.34, 0.01, 0.22, 1) 0.13s, opacity 0.2s ease 0.42s;
}

.wax-seal::before {
  clip-path: inset(0 50% 0 0);
}

.wax-seal::after {
  clip-path: inset(0 0 0 50%);
}

.wax-seal:hover {
  transform: translateX(-50%) scale(1.04);
  filter: none;
}

.wax-seal:active {
  transform: translateX(-50%) scale(0.95);
}

.wax-seal__mark {
  position: relative;
  z-index: 2;
  margin-top: 7px;
  font-size: 1.13rem;
  font-style: italic;
  transition: opacity 0.16s ease 0.18s;
}

.wax-seal small {
  position: relative;
  z-index: 2;
  margin-top: -15px;
  transition: opacity 0.16s ease 0.18s;
}

.envelope.is-seal-breaking .wax-seal {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%) scale(0.93);
}

.envelope.is-seal-breaking .wax-seal::before {
  opacity: 0;
  transform: translate3d(-15px, 10px, 0) rotate(-13deg);
}

.envelope.is-seal-breaking .wax-seal::after {
  opacity: 0;
  transform: translate3d(15px, 10px, 0) rotate(13deg);
}

.envelope.is-seal-breaking .wax-seal__mark,
.envelope.is-seal-breaking .wax-seal small,
.envelope.is-seal-breaking + .opening__hint {
  opacity: 0;
}

.envelope.is-flap-open .envelope__flap {
  z-index: 2;
  transform: rotateX(178deg);
}

.envelope.is-card-rising .invitation-card {
  z-index: 7;
  box-shadow: 0 24px 44px rgba(65, 34, 21, 0.23), inset 0 0 0 9px rgba(181, 132, 78, 0.055);
  transform: translate3d(0, -50%, 32px) rotate(-0.45deg) scale(1);
}

.envelope.is-card-rising {
  filter: drop-shadow(0 22px 28px rgba(57, 26, 16, 0.2));
}

.opening.is-opening .opening__hint {
  animation: none;
  opacity: 0;
}

.opening__hint {
  max-width: calc(100% - 36px);
  padding: 7px 13px;
  border: 1px solid rgba(108, 54, 35, 0.12);
  border-radius: 99px;
  background: rgba(255, 248, 233, 0.82);
  box-shadow: 0 6px 18px rgba(77, 40, 24, 0.08);
  backdrop-filter: blur(5px);
  transition: opacity 0.3s ease;
}

.scroll-progress span {
  width: 100%;
  transform: scaleX(0);
  transform-origin: left center;
  will-change: transform;
}

.reveal {
  transform: translate3d(0, 22px, 0);
  transition: opacity 0.62s ease, transform 0.68s cubic-bezier(0.2, 0.72, 0.22, 1);
}

.rsvp-card h2 {
  font-size: clamp(3rem, 11.8vw, 5.2rem);
  letter-spacing: -0.015em;
}

.celebration {
  min-height: auto;
  padding: 92px 16px 104px;
  background:
    radial-gradient(circle at 100% 4%, rgba(125, 35, 45, 0.08), transparent 25%),
    repeating-linear-gradient(91deg, transparent 0 8px, rgba(89, 49, 24, 0.022) 9px),
    var(--paper);
}

.celebration .section-heading {
  width: min(94%, 640px);
  margin-bottom: 34px;
}

.celebration .section-heading .eyebrow {
  margin-top: 0;
  color: var(--terracotta);
}

.celebration .section-heading h2 {
  margin: 6px 0 13px;
  font-size: clamp(2.65rem, 11vw, 5.5rem);
  letter-spacing: -0.025em;
  line-height: 0.82;
}

.celebration .section-heading h2 span {
  color: var(--wine);
  font-size: 0.72em;
  letter-spacing: 0.03em;
}

.celebration .section-heading > p:last-child {
  color: #70574a;
  font-style: italic;
}

.botanical--celebration {
  top: -5%;
  right: -34%;
  width: min(75vw, 620px);
  opacity: 0.72;
}

.moment-list {
  width: min(96%, 720px);
  gap: 17px;
}

.moment-card {
  position: relative;
  border: 1px solid rgba(111, 62, 33, 0.23);
  border-radius: 5px 22px 5px 20px;
  background:
    radial-gradient(circle at 12% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    repeating-linear-gradient(93deg, transparent 0 6px, rgba(99, 58, 29, 0.022) 7px),
    rgba(255, 248, 233, 0.91);
  box-shadow: 0 14px 28px rgba(79, 36, 20, 0.1), inset 0 0 0 7px rgba(182, 132, 76, 0.035);
  overflow: visible;
  transform: translateZ(0);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.moment-card::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 10px;
  right: 10px;
  bottom: 10px;
  left: 10px;
  border: 1px solid rgba(133, 82, 44, 0.11);
  border-radius: 2px 15px 2px 13px;
  pointer-events: none;
}

.moment-card:hover,
.moment-card:focus-within {
  transform: translate3d(0, -3px, 0);
  box-shadow: 0 20px 34px rgba(79, 36, 20, 0.15), inset 0 0 0 7px rgba(182, 132, 76, 0.035);
}

.moment-card__button {
  position: relative;
  z-index: 1;
  grid-template-columns: clamp(108px, 31vw, 142px) 1fr 22px;
  min-height: 154px;
  gap: clamp(10px, 3vw, 18px);
  padding: 13px 14px 13px 8px;
  border-radius: inherit;
}

.moment-art-wrap {
  position: relative;
  display: grid;
  width: clamp(106px, 30vw, 140px);
  height: 128px;
  place-items: center;
  overflow: visible;
}

.moment-art {
  width: 100%;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 9px 9px rgba(75, 34, 19, 0.12));
  transform: translateZ(0);
  transform-origin: 50% 60%;
}

.moment-card--ceremony .moment-art {
  width: 96%;
  max-height: 142px;
}

.moment-card--cocktail .moment-art,
.moment-card--photo .moment-art {
  width: 108%;
}

.moment-card__copy b,
.moment-card__copy small {
  display: block;
}

.moment-card__copy b {
  color: var(--wine-dark);
  font-size: clamp(1.48rem, 5.7vw, 1.9rem);
  font-weight: 500;
  line-height: 0.95;
}

.moment-card__copy small {
  margin-top: 8px;
  color: #624b3f;
  font-size: clamp(0.82rem, 3.4vw, 0.98rem);
  line-height: 1.18;
}

.moment-card__button > i {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border: 1px solid rgba(122, 35, 45, 0.35);
  border-radius: 50%;
  color: var(--wine);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.28s ease, background 0.28s ease, color 0.28s ease;
}

.moment-card.is-active .moment-card__button > i {
  color: #fff6e7;
  background: var(--wine);
  transform: translateX(2px);
}

.moment-card--photo .moment-art-wrap::after {
  content: "";
  position: absolute;
  top: 44%;
  left: 51%;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.98), rgba(255, 235, 183, 0.56) 24%, transparent 67%);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.2);
}

.moment-card--photo.is-active .moment-art-wrap::after {
  animation: cameraFlash 0.58s ease-out;
}

.moment-card--dance .moment-art-wrap::after {
  content: "✦";
  position: absolute;
  top: 11%;
  right: 9%;
  color: #d5a052;
  font-size: 1.15rem;
  opacity: 0;
  pointer-events: none;
}

.moment-card--dance.is-active .moment-art-wrap::after {
  animation: danceSparkle 0.72s ease-out;
}

@keyframes cameraFlash {
  0%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(0.2); }
  35% { opacity: 0.96; transform: translate(-50%, -50%) scale(1.45); }
}

@keyframes danceSparkle {
  0% { opacity: 0; transform: scale(0.3) rotate(-30deg); }
  45% { opacity: 1; transform: scale(1.25) rotate(8deg); }
  100% { opacity: 0; transform: scale(0.7) rotate(30deg); }
}

@media (min-width: 760px) {
  .moment-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: min(94%, 860px);
  }

  .moment-card__button {
    grid-template-columns: 132px 1fr 23px;
    min-height: 184px;
    padding: 16px 17px 16px 10px;
  }

  .moment-art-wrap {
    width: 132px;
    height: 150px;
  }

  .moment-art {
    max-height: 154px;
  }
}

@media (max-width: 430px) {
  .opening__flowers {
    width: min(76vw, 430px);
  }

  .opening__flowers--top {
    top: -8%;
    right: -28%;
  }

  .opening__flowers--bottom {
    bottom: -5%;
    left: -30%;
  }

  .envelope-scene {
    width: min(94vw, 390px);
  }

  .invitation-card {
    padding: 24px 25px 20px;
  }

  .celebration {
    padding-inline: 10px;
  }

  .moment-list {
    width: min(98%, 410px);
  }

  .moment-card__button {
    grid-template-columns: clamp(102px, 29vw, 124px) 1fr 20px;
    min-height: 150px;
    gap: 9px;
    padding: 12px 11px 12px 5px;
  }

  .moment-art-wrap {
    width: clamp(102px, 29vw, 124px);
    height: 126px;
  }
}

@media (max-width: 355px) {
  .moment-card__button {
    grid-template-columns: 94px 1fr 18px;
    gap: 7px;
  }

  .moment-art-wrap {
    width: 94px;
    height: 116px;
  }

  .moment-card__copy small {
    font-size: 0.78rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .invitation-card,
  .envelope__flap,
  .wax-seal,
  .wax-seal::before,
  .wax-seal::after {
    will-change: auto;
  }
}

/* V10.2 — relato fotográfico distribuido y arco de fecha enriquecido */
.story {
  display: flex;
  min-height: max(100svh, 820px);
  padding: clamp(72px, 11vh, 108px) 20px clamp(62px, 9vh, 92px);
  flex-direction: column;
  justify-content: space-between;
  color: #fff7e9;
  background:
    linear-gradient(180deg, rgba(25, 10, 12, 0.74) 0%, rgba(28, 10, 12, 0.17) 43%, rgba(28, 8, 11, 0.72) 100%),
    url("assets/images/nosotros-1.jpg") center 44% / cover no-repeat;
}

.story .paper-grain {
  z-index: 0;
  opacity: 0.22;
  mix-blend-mode: screen;
}

.story .botanical {
  z-index: 1;
}

.story-heading {
  z-index: 2;
  width: min(94%, 620px);
  margin-bottom: 36px;
  color: #fff7e9;
}

.section-heading.story-heading h2 {
  color: #fff8eb;
  text-shadow: 0 7px 24px rgba(24, 3, 6, 0.62);
}

.story .personal-greeting {
  color: #f7e6c9;
}

.story .guest-seats {
  color: #efc77e;
}

.botanical--story-a {
  top: -7%;
  left: -30%;
  width: min(72vw, 620px);
  opacity: 0.88;
}

.botanical--story-b {
  right: -34%;
  bottom: -9%;
  width: min(74vw, 640px);
  opacity: 0.8;
}

.story-note-wrap {
  position: relative;
  z-index: 3;
  width: min(84%, 390px);
  margin: auto 3% 0 auto;
}

.story-note {
  position: relative;
  margin: 0;
  padding: 27px 26px 22px;
  border: 1px solid rgba(134, 80, 43, 0.3);
  color: var(--wine-dark);
  background:
    repeating-linear-gradient(88deg, transparent 0 7px, rgba(100, 59, 30, 0.026) 8px),
    #fff8e9;
  box-shadow: 0 20px 42px rgba(22, 4, 8, 0.34), inset 0 0 0 8px rgba(176, 126, 72, 0.045);
  text-align: center;
  transform: rotate(-1.8deg);
}

.story-note::before,
.story-note::after {
  content: "";
  position: absolute;
  top: -9px;
  width: 58px;
  height: 18px;
  background: rgba(235, 210, 166, 0.7);
  box-shadow: 0 2px 5px rgba(74, 39, 22, 0.1);
}

.story-note::before {
  left: 16px;
  transform: rotate(-7deg);
}

.story-note::after {
  right: 16px;
  transform: rotate(6deg);
}

.story-note > span {
  position: absolute;
  top: 0;
  left: 12px;
  color: var(--gold);
  font-family: var(--script);
  font-size: 3.2rem;
  line-height: 1;
  opacity: 0.52;
}

.story-note p {
  max-width: 300px;
  margin: 0 auto;
  font-size: clamp(1.2rem, 4.8vw, 1.55rem);
  font-style: italic;
  line-height: 1.14;
}

.story-note footer {
  margin-top: 13px;
  color: var(--wine);
  font-family: var(--script);
  font-size: 1.32rem;
}

.story-note footer i {
  color: var(--gold);
  font-style: normal;
}

.date-panel {
  min-height: max(100svh, 820px);
  padding: 78px 15px 96px;
  background:
    radial-gradient(circle at 18% 9%, rgba(194, 142, 81, 0.16), transparent 28%),
    radial-gradient(circle at 86% 88%, rgba(120, 26, 35, 0.1), transparent 27%),
    repeating-linear-gradient(91deg, transparent 0 8px, rgba(89, 49, 24, 0.022) 9px),
    var(--paper);
}

.date-card {
  z-index: 2;
  width: min(94%, 540px);
  padding: 122px 27px 42px;
  border: 1px solid rgba(151, 95, 50, 0.72);
  border-radius: 260px 260px 12px 12px;
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.88), transparent 24%),
    radial-gradient(circle at 86% 78%, rgba(131, 60, 39, 0.055), transparent 24%),
    repeating-linear-gradient(89deg, transparent 0 7px, rgba(89, 49, 24, 0.03) 8px),
    #fbefd9;
  box-shadow:
    0 28px 52px rgba(88, 51, 31, 0.17),
    inset 0 0 0 7px rgba(255, 255, 255, 0.36),
    inset 0 0 0 11px rgba(151, 95, 50, 0.07);
  overflow: hidden;
}

.date-card::before {
  z-index: 0;
  inset: 13px;
  border-color: rgba(112, 62, 31, 0.23);
  border-radius: 248px 248px 7px 7px;
}

.date-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  opacity: 0.5;
  background:
    radial-gradient(circle at 18% 26%, rgba(194, 138, 69, 0.35) 0 1px, transparent 1.7px),
    radial-gradient(circle at 83% 58%, rgba(194, 138, 69, 0.25) 0 1px, transparent 1.7px);
  background-size: 37px 37px, 49px 49px;
  pointer-events: none;
}

.date-card > * {
  position: relative;
  z-index: 1;
}

.date-card__ornament {
  position: absolute;
  z-index: 2;
  top: 27px;
  left: 50%;
  width: min(46%, 225px);
  height: auto;
  max-width: none;
  filter: drop-shadow(0 7px 7px rgba(80, 40, 23, 0.12));
  transform: translateX(-50%);
  pointer-events: none;
}

.date-card .eyebrow {
  margin: 0 0 7px;
  color: var(--wine);
}

.date-card h2 {
  margin-top: 2px;
  text-shadow: 0 2px 0 rgba(255, 255, 255, 0.58);
}

.date-card__heart::before,
.date-card__heart::after {
  background: linear-gradient(90deg, transparent, #b58a55 28%, #b58a55 72%, transparent);
}

.botanical--date-a,
.botanical--date-b {
  z-index: 1;
  width: min(78vw, 690px);
  opacity: 0.92;
}

.botanical--date-a {
  top: -7%;
  left: -27%;
}

.botanical--date-b {
  right: -25%;
  bottom: -7%;
}

.memory-interlude {
  display: grid;
  min-height: max(100svh, 820px);
  padding: 78px 18px 86px;
  place-items: center;
  background:
    radial-gradient(circle at 75% 16%, rgba(255, 255, 255, 0.72), transparent 28%),
    radial-gradient(circle at 18% 84%, rgba(128, 52, 39, 0.07), transparent 26%),
    var(--paper);
}

.memory-interlude__fabric {
  position: absolute;
  z-index: 0;
  right: -33%;
  bottom: -12%;
  width: min(92vw, 750px);
  max-width: none;
  opacity: 0.34;
  transform: rotate(152deg);
  pointer-events: none;
}

.botanical--memory-a,
.botanical--memory-b {
  z-index: 1;
  width: min(66vw, 590px);
}

.botanical--memory-a {
  top: -9%;
  right: -25%;
  transform: rotate(180deg);
}

.botanical--memory-b {
  bottom: -10%;
  left: -26%;
}

.memory-photo {
  position: relative;
  z-index: 2;
  width: min(88%, 480px);
  margin: 0;
  padding: 10px 10px 31px;
  border: 1px solid rgba(127, 74, 39, 0.2);
  color: var(--wine-dark);
  background:
    repeating-linear-gradient(92deg, transparent 0 7px, rgba(99, 58, 29, 0.024) 8px),
    #fff8e9;
  box-shadow: 0 28px 56px rgba(66, 31, 20, 0.22), inset 0 0 0 7px rgba(171, 121, 66, 0.04);
}

.memory-photo::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: -11px;
  left: 50%;
  width: 92px;
  height: 24px;
  background: rgba(232, 204, 158, 0.76);
  box-shadow: 0 3px 7px rgba(72, 37, 21, 0.12);
  transform: translateX(-50%) rotate(-2deg);
}

.memory-photo__mat {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #d5c4ae;
}

.memory-photo__mat::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 248, 233, 0.4), inset 0 -46px 70px rgba(27, 9, 9, 0.13);
  pointer-events: none;
}

.memory-photo__mat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: grayscale(1) contrast(1.06) sepia(0.04);
  transition: transform 7s ease-out;
}

.memory-photo.is-visible .memory-photo__mat img {
  transform: scale(1.035);
}

.memory-photo figcaption {
  padding: 19px 12px 0;
  text-align: center;
}

.memory-photo figcaption h2 {
  margin: 0;
  color: var(--wine);
  font-size: clamp(2.5rem, 10vw, 4.2rem);
  transform: rotate(-2deg);
}

.memory-photo figcaption p {
  margin: 7px 0 0;
  color: #705347;
  font-size: 1rem;
  font-style: italic;
}

.capture-mode[data-capture-screen="recuerdo"] #recuerdo {
  display: grid;
}

.capture-mode[data-capture-screen="historia"] #historia {
  display: flex;
}

@media (min-width: 720px) {
  .story {
    min-height: 960px;
    padding-inline: 46px;
  }

  .story-note-wrap {
    margin-right: 8%;
  }

  .date-card__ornament {
    width: 225px;
  }

  .memory-photo {
    width: min(74%, 520px);
  }
}

@media (max-width: 430px) {
  .story {
    min-height: max(100svh, 760px);
    padding: 70px 14px 58px;
    background-position: center 43%;
  }

  .story-heading {
    margin-bottom: 24px;
  }

  .story-note-wrap {
    width: min(88%, 350px);
    margin-right: 1%;
  }

  .story-note {
    padding: 24px 20px 19px;
  }

  .date-panel {
    padding: 68px 10px 82px;
  }

  .date-card {
    width: min(96%, 390px);
    padding: 108px 18px 36px;
  }

  .date-card__ornament {
    top: 25px;
    width: min(50%, 194px);
  }

  .date-card h2 {
    font-size: clamp(4.45rem, 21vw, 5.4rem);
  }

  .botanical--date-a,
  .botanical--date-b {
    width: min(84vw, 480px);
  }

  .memory-interlude {
    min-height: max(100svh, 760px);
    padding: 68px 10px 76px;
  }

  .memory-photo {
    width: min(91%, 390px);
    padding: 8px 8px 25px;
  }

  .memory-photo figcaption {
    padding-top: 14px;
  }
}

/* V10.3 — profundidad editorial y ornamentación botánica */
.hero,
.story,
.date-panel,
.memory-interlude,
.celebration,
.location,
.dress-code,
.rsvp,
.farewell {
  box-shadow: inset 0 -1px rgba(91, 47, 28, 0.16);
}

.hero {
  min-height: max(100svh, 880px);
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.92), transparent 31%),
    radial-gradient(circle at 13% 16%, rgba(230, 172, 91, 0.22), transparent 23%),
    radial-gradient(circle at 88% 84%, rgba(123, 25, 38, 0.12), transparent 29%),
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(95, 57, 30, 0.025) 8px),
    var(--paper);
}

.hero::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 0;
  background:
    radial-gradient(circle at 18% 22%, rgba(255, 204, 111, 0.22) 0 1px, transparent 2px),
    radial-gradient(circle at 81% 31%, rgba(255, 221, 153, 0.26) 0 1.2px, transparent 2.2px),
    radial-gradient(circle at 34% 78%, rgba(214, 151, 72, 0.19) 0 1px, transparent 2px);
  background-size: 31px 31px, 43px 43px, 27px 27px;
  pointer-events: none;
}

.hero::after,
.story::after,
.memory-interlude::after,
.celebration::after,
.dress-code::after,
.rsvp::after,
.farewell::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: 11px;
  border: 1px solid rgba(157, 101, 51, 0.18);
  pointer-events: none;
}

.hero__fabric--one {
  top: -5%;
  right: -41%;
  width: min(126vw, 1020px);
  opacity: 0.66;
}

.hero__fabric--two {
  bottom: -10%;
  left: -47%;
  width: min(124vw, 990px);
  opacity: 0.55;
}

.botanical--hero-top,
.botanical--hero-bottom {
  z-index: 1;
  width: min(94vw, 760px);
  opacity: 0.98;
  filter: drop-shadow(0 18px 26px rgba(75, 30, 17, 0.25));
}

.botanical--hero-top {
  top: -11%;
  left: -32%;
}

.botanical--hero-bottom {
  right: -35%;
  bottom: -8%;
}

.hero__content {
  z-index: 3;
  min-height: max(820px, calc(100svh - 40px));
  padding: 128px 0 118px;
}

.hero h2 {
  order: 1;
}

#heroTitle:focus {
  outline: none;
}

.hero__rule {
  order: 2;
  margin-bottom: 8px;
}

.hero .eyebrow {
  order: 3;
  margin: 0 0 15px;
}

.hero-seal {
  box-shadow:
    0 14px 24px rgba(66, 15, 19, 0.34),
    0 0 0 7px rgba(116, 22, 33, 0.07),
    inset 0 0 0 5px rgba(43, 3, 9, 0.17);
}

.hero__rings {
  width: min(65vw, 290px);
}

.story::after,
.farewell::after {
  border-color: rgba(239, 205, 148, 0.25);
}

.story-note {
  box-shadow:
    0 24px 48px rgba(22, 4, 8, 0.4),
    0 0 0 7px rgba(255, 247, 229, 0.09),
    inset 0 0 0 8px rgba(176, 126, 72, 0.045);
}

.date-panel {
  padding: 46px 12px 64px;
  background:
    radial-gradient(circle at 14% 8%, rgba(232, 177, 96, 0.22), transparent 25%),
    radial-gradient(circle at 88% 89%, rgba(120, 26, 35, 0.13), transparent 29%),
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(89, 49, 24, 0.026) 8px),
    var(--paper);
}

.date-card {
  width: min(96%, 560px);
  padding: 150px 30px 176px;
  border-color: rgba(132, 73, 34, 0.62);
  background:
    radial-gradient(circle at 50% 7%, rgba(255, 255, 255, 0.94), transparent 29%),
    radial-gradient(circle at 84% 75%, rgba(131, 60, 39, 0.06), transparent 25%),
    repeating-linear-gradient(89deg, transparent 0 7px, rgba(89, 49, 24, 0.026) 8px),
    #fbefd9;
  box-shadow:
    0 32px 64px rgba(88, 51, 31, 0.22),
    0 0 0 8px rgba(255, 248, 232, 0.32),
    inset 0 0 0 7px rgba(255, 255, 255, 0.37),
    inset 0 0 0 12px rgba(151, 95, 50, 0.07);
  overflow: hidden;
}

.date-card::before {
  inset: 14px;
  border-color: rgba(112, 62, 31, 0.27);
}

.date-card__frame {
  position: absolute !important;
  z-index: 2 !important;
  inset: -5px -4px -8px;
  width: calc(100% + 8px);
  height: calc(100% + 13px);
  max-width: none;
  object-fit: fill;
  filter: drop-shadow(0 10px 13px rgba(75, 31, 18, 0.16));
  pointer-events: none;
}

.date-card > :not(.date-card__frame) {
  z-index: 3;
}

.date-card .eyebrow {
  margin-top: 2px;
}

.date-card__copy {
  max-width: 360px;
}

.botanical--date-a,
.botanical--date-b {
  width: min(84vw, 720px);
  opacity: 0.83;
  filter: saturate(0.93) drop-shadow(0 16px 22px rgba(66, 24, 13, 0.2));
}

.botanical--date-a {
  top: -12%;
  left: -39%;
}

.botanical--date-b {
  right: -39%;
  bottom: -12%;
}

.memory-photo {
  border-color: rgba(127, 74, 39, 0.34);
  box-shadow:
    0 32px 62px rgba(66, 31, 20, 0.27),
    0 0 0 8px rgba(255, 248, 233, 0.3),
    inset 0 0 0 7px rgba(171, 121, 66, 0.05);
}

.section-fabric {
  position: absolute;
  z-index: 0;
  width: min(92vw, 760px);
  max-width: none;
  opacity: 0.3;
  pointer-events: none;
  filter: drop-shadow(0 16px 24px rgba(83, 48, 28, 0.1));
}

.section-fabric--celebration {
  top: -10%;
  left: -35%;
  transform: rotate(14deg);
}

.celebration {
  background:
    radial-gradient(circle at 82% 9%, rgba(223, 165, 88, 0.14), transparent 24%),
    radial-gradient(circle at 13% 82%, rgba(123, 31, 40, 0.08), transparent 26%),
    var(--paper);
}

.celebration .section-heading,
.moment-list {
  position: relative;
  z-index: 3;
}

.botanical--celebration {
  z-index: 1;
  top: -7%;
  right: -30%;
  width: min(80vw, 690px);
  opacity: 0.9;
}

.botanical--celebration-b {
  z-index: 1;
  left: -34%;
  bottom: -6%;
  width: min(68vw, 610px);
  opacity: 0.76;
  transform: rotate(8deg);
}

.moment-card {
  border-color: rgba(111, 62, 33, 0.3);
  box-shadow:
    0 18px 34px rgba(79, 36, 20, 0.14),
    0 0 0 6px rgba(255, 248, 233, 0.32),
    inset 0 0 0 7px rgba(182, 132, 76, 0.04);
}

.section-fabric--location {
  right: -32%;
  bottom: -16%;
  transform: rotate(150deg);
}

.location {
  padding: 74px 16px 90px;
  background:
    radial-gradient(circle at 83% 14%, rgba(230, 172, 91, 0.18), transparent 25%),
    radial-gradient(circle at 13% 87%, rgba(123, 31, 40, 0.08), transparent 27%),
    var(--paper);
}

.location::before,
.location::after {
  display: none;
}

.botanical--location-a,
.botanical--location-b {
  z-index: 1;
  width: min(70vw, 620px);
  opacity: 0.87;
}

.botanical--location-a {
  top: -11%;
  right: -28%;
  transform: rotate(178deg);
}

.botanical--location-b {
  bottom: -10%;
  left: -29%;
}

.location__content {
  position: relative;
  z-index: 3;
  width: min(94%, 720px);
  padding: clamp(42px, 7vw, 72px) clamp(18px, 5vw, 48px) clamp(46px, 7vw, 70px);
  border: 1px solid rgba(132, 78, 41, 0.34);
  border-radius: 190px 190px 9px 9px;
  background:
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(94, 55, 29, 0.022) 8px),
    rgba(255, 248, 233, 0.93);
  box-shadow:
    0 30px 58px rgba(79, 40, 22, 0.18),
    0 0 0 8px rgba(255, 248, 233, 0.28),
    inset 0 0 0 10px rgba(164, 105, 58, 0.05);
}

.location__content::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(132, 78, 41, 0.15);
  border-radius: 178px 178px 5px 5px;
  pointer-events: none;
}

.section-fabric--dress {
  top: -12%;
  right: -30%;
  transform: rotate(-18deg);
}

.botanical--dress-a,
.botanical--dress {
  z-index: 1;
  width: min(70vw, 650px);
}

.botanical--dress-a {
  top: -11%;
  left: -31%;
  opacity: 0.84;
}

.botanical--dress {
  right: -31%;
  bottom: -8%;
  opacity: 0.83;
}

.dress-code__grid {
  position: relative;
  z-index: 3;
  width: min(94%, 820px);
  padding: clamp(36px, 7vw, 68px) clamp(18px, 5vw, 46px);
  border: 1px solid rgba(132, 78, 41, 0.3);
  border-radius: 7px 96px 7px 96px;
  background:
    radial-gradient(circle at 82% 10%, rgba(255, 255, 255, 0.8), transparent 25%),
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(94, 55, 29, 0.022) 8px),
    rgba(255, 248, 233, 0.92);
  box-shadow:
    0 30px 58px rgba(79, 40, 22, 0.17),
    0 0 0 8px rgba(255, 248, 233, 0.25),
    inset 0 0 0 9px rgba(164, 105, 58, 0.045);
}

.section-fabric--rsvp {
  z-index: 0;
  top: -18%;
  right: -31%;
  opacity: 0.16;
  filter: sepia(0.18) brightness(1.18);
  transform: rotate(-14deg);
}

.rsvp {
  background:
    radial-gradient(circle at 50% 8%, rgba(238, 166, 93, 0.2), transparent 28%),
    radial-gradient(circle at 12% 80%, rgba(176, 86, 56, 0.15), transparent 28%),
    linear-gradient(155deg, #781f2b, #30070f 78%);
}

.botanical--rsvp-a,
.botanical--rsvp-b {
  z-index: 1;
  width: min(79vw, 690px);
  opacity: 0.94;
}

.rsvp-card {
  z-index: 3;
  border-color: rgba(239, 202, 143, 0.56);
  background:
    radial-gradient(circle at 50% 0, rgba(210, 127, 79, 0.14), transparent 28%),
    rgba(64, 7, 15, 0.84);
  box-shadow:
    0 31px 70px rgba(20, 1, 6, 0.45),
    0 0 0 8px rgba(100, 19, 28, 0.3),
    inset 0 0 34px rgba(230, 168, 94, 0.05);
}

.farewell__overlay {
  background:
    radial-gradient(circle at 50% 68%, transparent, rgba(25, 3, 7, 0.24) 48%),
    linear-gradient(180deg, rgba(24, 7, 9, 0.12) 16%, rgba(31, 5, 9, 0.94) 86%);
}

@media (min-width: 760px) {
  .hero__content {
    padding-top: 150px;
  }

  .date-card {
    padding-top: 174px;
    padding-bottom: 205px;
  }

  .location__content {
    border-radius: 240px 240px 10px 10px;
  }

  .location__content::before {
    border-radius: 228px 228px 6px 6px;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: max(100svh, 850px);
  }

  .hero__content {
    min-height: 820px;
    padding: 132px 0 120px;
  }

  .botanical--hero-top,
  .botanical--hero-bottom {
    width: min(94vw, 430px);
  }

  .botanical--hero-top {
    top: -13%;
    left: -43%;
  }

  .botanical--hero-bottom {
    right: -43%;
    bottom: -14%;
  }

  .date-panel {
    padding: 34px 7px 50px;
  }

  .date-card {
    width: min(98%, 405px);
    padding: 128px 17px 148px;
  }

  .date-card::before {
    inset: 10px;
  }

  .date-card h2 {
    font-size: clamp(4rem, 20vw, 5.1rem);
  }

  .date-card__schedule {
    margin-top: 15px;
  }

  .date-card__copy {
    margin-top: 24px;
  }

  .countdown {
    margin-top: 24px;
  }

  .botanical--date-a,
  .botanical--date-b {
    width: min(91vw, 500px);
    opacity: 0.72;
  }

  .celebration,
  .location,
  .dress-code,
  .rsvp {
    padding-inline: 10px;
  }

  .botanical--celebration-b,
  .botanical--location-a,
  .botanical--location-b,
  .botanical--dress-a,
  .botanical--dress {
    width: min(77vw, 430px);
  }

  .location__content {
    width: min(96%, 405px);
    padding: 62px 16px 49px;
    border-radius: 160px 160px 7px 7px;
  }

  .location__content::before {
    inset: 9px;
    border-radius: 151px 151px 4px 4px;
  }

  .location__illustration {
    width: 112%;
    max-width: none;
    margin-left: -6%;
  }

  .dress-code__grid {
    width: min(96%, 405px);
    padding: 46px 16px 54px;
    border-radius: 5px 68px 5px 68px;
  }
}

/* V10.4 — pulido UI/UX: apertura ágil y control musical discreto */
.opening {
  transition: opacity 0.56s ease, visibility 0s linear 0.56s;
}

.envelope__flap {
  transition: transform 0.72s cubic-bezier(0.32, 0.02, 0.19, 1), z-index 0s linear 0.37s;
}

.invitation-card {
  transition: transform 0.86s cubic-bezier(0.18, 0.82, 0.22, 1), box-shadow 0.65s ease;
}

.wax-seal {
  transition: transform 0.18s ease, opacity 0.2s ease 0.28s;
}

.wax-seal::before,
.wax-seal::after {
  transition: transform 0.34s cubic-bezier(0.34, 0.01, 0.22, 1) 0.08s, opacity 0.17s ease 0.28s;
}

.music-control {
  min-width: 82px;
  min-height: 44px;
  padding: 8px 11px;
  opacity: 0.9;
  box-shadow: 0 8px 22px rgba(32, 5, 10, 0.24);
  transition: opacity 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.music-control:hover,
.music-control:focus-visible {
  opacity: 1;
  box-shadow: 0 11px 27px rgba(32, 5, 10, 0.32);
  transform: translateY(-1px);
}

@media (max-width: 430px) {
  .music-control {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    width: 46px;
    min-width: 46px;
    height: 46px;
    min-height: 46px;
    padding: 0;
    border-color: rgba(255, 240, 210, 0.72);
  }

  .music-control__label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .music-control__bars {
    height: 17px;
  }
}

/* V10.5 — zona de lectura sobre el jardín floral de la fecha */
.date-card__copy {
  width: min(94%, 380px);
  padding: 9px 17px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(251, 239, 217, 0.88) 12%,
    rgba(251, 239, 217, 0.94) 50%,
    rgba(251, 239, 217, 0.88) 88%,
    transparent
  );
  text-shadow: 0 1px rgba(255, 255, 255, 0.72);
}

.countdown-note {
  width: fit-content;
  max-width: 92%;
  margin-right: auto;
  margin-left: auto;
  padding: 5px 13px;
  border-radius: 99px;
  background: rgba(251, 239, 217, 0.84);
  box-shadow: 0 0 20px rgba(251, 239, 217, 0.66);
}

@media (max-width: 430px) and (max-height: 720px) {
  .hero {
    min-height: 100svh;
  }

  .hero__content {
    min-height: 100svh;
    padding: 104px 0 24px;
    justify-content: flex-start;
  }

  .hero h2 {
    font-size: clamp(3.35rem, 16.5vw, 4.05rem);
  }

  .hero__rule {
    margin: 16px auto 5px;
  }

  .hero .eyebrow {
    margin-bottom: 9px;
    font-size: 0.62rem;
  }

  .hero-seal {
    width: 68px;
    height: 68px;
    font-size: 1rem;
  }

  .hero__rings {
    width: min(55vw, 220px);
    margin-top: -3px;
    margin-bottom: -10px;
  }

  .hero__tagline {
    font-size: 1rem;
  }

  .scroll-cue {
    margin-top: 13px;
    font-size: 0.58rem;
  }

  .botanical--hero-top,
  .botanical--hero-bottom {
    width: min(82vw, 340px);
  }

  .botanical--hero-top {
    top: -17%;
    left: -39%;
  }

  .botanical--hero-bottom {
    right: -39%;
    bottom: -19%;
  }
}

/* V10.6 — historia sin elementos sobre la fotografía de Bárbara */
.story,
.capture-mode[data-capture-screen="historia"] #historia {
  display: block;
  min-height: 0;
  padding: 0;
  color: var(--wine-dark);
  background: var(--paper);
}

.story-photo-stage {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: max(100svh, 780px);
  padding: clamp(68px, 9vh, 92px) 20px 54px;
  flex-direction: column;
  overflow: hidden;
  color: #fff7e9;
  background:
    linear-gradient(180deg, rgba(25, 10, 12, 0.76) 0%, rgba(28, 10, 12, 0.13) 44%, rgba(28, 8, 11, 0.35) 100%),
    url("assets/images/nosotros-1.jpg") center 43% / cover no-repeat;
  isolation: isolate;
}

.story-photo-stage::after {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 11px;
  border: 1px solid rgba(239, 205, 148, 0.25);
  pointer-events: none;
}

.story .paper-grain {
  z-index: 0;
}

.story-photo-stage .botanical {
  z-index: 1;
}

.story-heading {
  position: relative;
  z-index: 2;
  margin: 0 auto;
}

.story-caption-stage {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 270px;
  padding: 48px 20px 66px;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 255, 0.82), transparent 38%),
    repeating-linear-gradient(91deg, transparent 0 7px, rgba(94, 55, 29, 0.024) 8px),
    var(--paper);
}

.story-caption-stage::before,
.story-caption-stage::after {
  content: "";
  position: absolute;
  z-index: 0;
  bottom: -128px;
  width: 285px;
  height: 260px;
  background: url("assets/images/floral-corner-opt.png") center / contain no-repeat;
  opacity: 0.34;
  pointer-events: none;
}

.story-caption-stage::before {
  left: -112px;
}

.story-caption-stage::after {
  right: -112px;
  transform: scaleX(-1);
}

.story-note-wrap {
  z-index: 2;
  width: min(88%, 470px);
  margin: 0 auto;
}

.story-note {
  padding: 29px 30px 24px;
  box-shadow:
    0 22px 42px rgba(74, 35, 20, 0.2),
    0 0 0 8px rgba(255, 248, 233, 0.42),
    inset 0 0 0 8px rgba(176, 126, 72, 0.05);
  transform: rotate(-1deg);
}

.story-note p {
  max-width: 360px;
}

@media (min-width: 760px) {
  .story-photo-stage {
    min-height: max(100svh, 860px);
    padding-inline: 46px;
  }

  .story-caption-stage {
    min-height: 290px;
  }
}

@media (max-width: 430px) {
  .story-photo-stage {
    min-height: max(100svh, 760px);
    padding: 66px 14px 44px;
    background-position: center 43%;
  }

  .story-caption-stage {
    min-height: 245px;
    padding: 38px 12px 54px;
  }

  .story-caption-stage::before,
  .story-caption-stage::after {
    bottom: -120px;
    width: 235px;
    height: 220px;
  }

  .story-note-wrap {
    width: min(90%, 380px);
  }

  .story-note {
    padding: 25px 21px 21px;
  }
}

/* V10.8 — cierre editorial integrado, sin tarjeta pegada */
.story-caption-stage {
  min-height: 235px;
  padding: 44px 20px 58px;
}

.story-note-wrap {
  width: min(88%, 650px);
}

.story-note {
  margin: 0;
  padding: 8px 18px 10px;
  border: 0;
  color: var(--wine-dark);
  background: transparent;
  box-shadow: none;
  transform: none;
}

.story-note::before,
.story-note::after {
  display: none;
}

.story-note > .story-note__ornament {
  position: static;
  display: flex;
  width: auto;
  height: 24px;
  margin: 0 auto 8px;
  align-items: center;
  justify-content: center;
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1;
  opacity: 0.9;
}

.story-note > .story-note__ornament::before,
.story-note > .story-note__ornament::after {
  content: "";
  display: inline-block;
  width: clamp(42px, 9vw, 78px);
  height: 1px;
  margin: 0 12px;
  vertical-align: middle;
  background: linear-gradient(90deg, transparent, rgba(181, 138, 85, 0.72));
}

.story-note > .story-note__ornament::after {
  background: linear-gradient(90deg, rgba(181, 138, 85, 0.72), transparent);
}

.story-note p {
  max-width: 560px;
  color: var(--wine-dark);
  font-size: clamp(1.38rem, 4.8vw, 1.9rem);
  line-height: 1.16;
}

.story-note footer {
  margin-top: 15px;
  color: var(--wine);
  font-size: clamp(1.48rem, 5.2vw, 2rem);
}

@media (max-width: 430px) {
  .story-caption-stage {
    min-height: 215px;
    padding: 36px 10px 48px;
  }

  .story-note-wrap {
    width: min(92%, 390px);
  }

  .story-note {
    padding: 4px 8px 8px;
  }
}

/* V10.9 — tres propuestas RSVP y despedida condicional */
.farewell[hidden] {
  display: none !important;
}

.farewell.is-unlocked {
  animation: farewellReveal 0.95s cubic-bezier(0.18, 0.76, 0.22, 1) both;
}

.capture-mode[data-capture-screen="despedida"] .farewell.is-unlocked {
  opacity: 1;
  clip-path: none;
  animation: none;
}

.rsvp {
  min-height: max(100svh, 880px);
  overflow: hidden;
  isolation: isolate;
}

.rsvp-glints {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.rsvp-glints i {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #f3cf8c;
  box-shadow: 0 0 12px 3px rgba(243, 207, 140, 0.5);
  animation: rsvpTwinkle 3.4s ease-in-out infinite;
}

.rsvp-glints i:nth-child(1) { top: 15%; left: 18%; }
.rsvp-glints i:nth-child(2) { top: 24%; right: 15%; animation-delay: -1.8s; }
.rsvp-glints i:nth-child(3) { top: 62%; left: 11%; animation-delay: -0.7s; }
.rsvp-glints i:nth-child(4) { right: 9%; bottom: 22%; animation-delay: -2.4s; }
.rsvp-glints i:nth-child(5) { left: 48%; bottom: 9%; animation-delay: -1.2s; }

.rsvp-card {
  width: min(94%, 590px);
  padding: 42px 28px 38px;
  transition: transform 0.55s cubic-bezier(0.2, 0.78, 0.2, 1), box-shadow 0.55s ease, background 0.55s ease;
}

.rsvp-card__crest {
  position: relative;
  display: flex;
  width: 74px;
  height: 74px;
  margin: -7px auto 14px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(244, 209, 148, 0.62);
  border-radius: 50%;
  color: #f4d190;
  background: rgba(75, 9, 17, 0.7);
  box-shadow: 0 10px 28px rgba(23, 2, 6, 0.26), inset 0 0 0 6px rgba(245, 213, 157, 0.05);
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: 0.02em;
}

.rsvp-card__crown {
  display: none;
}

.rsvp-date {
  margin: 7px auto 0 !important;
  color: rgba(247, 219, 174, 0.84);
  font-family: var(--sans) !important;
  font-size: 0.62rem !important;
  font-style: normal !important;
  letter-spacing: 0.2em;
  line-height: 1 !important;
  text-transform: uppercase;
}

.rsvp-mini-rule {
  display: flex;
  width: min(82%, 330px);
  margin: 18px auto 0;
  align-items: center;
  justify-content: center;
  gap: 11px;
  color: #efc578;
}

.rsvp-mini-rule span {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, currentColor);
  opacity: 0.52;
}

.rsvp-mini-rule span:last-child {
  transform: scaleX(-1);
}

.rsvp-mini-rule i {
  font-family: var(--serif);
  font-size: 1rem;
  font-style: normal;
}

.rsvp-card__crest::before,
.rsvp-card__crest::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 54px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(239, 199, 127, 0.58));
}

.rsvp-card__crest::before { right: calc(100% + 12px); }
.rsvp-card__crest::after {
  left: calc(100% + 12px);
  transform: scaleX(-1);
}

.rsvp-card__crest i {
  margin: 0 3px;
  color: #fff0d3;
  font-family: var(--script);
  font-size: 1.22rem;
  font-style: normal;
}

.rsvp-card h2 {
  margin: 12px auto 15px;
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  line-height: 0.84;
  text-wrap: balance;
}

.rsvp-intro {
  max-width: 420px !important;
  margin: 0 auto !important;
  font-size: 1.08rem;
}

.adults-only {
  position: relative;
  display: grid;
  max-width: 455px;
  margin: 24px auto 0;
  padding: 15px 18px 15px 54px;
  border: 1px solid rgba(244, 211, 156, 0.34);
  border-radius: 16px;
  color: #f8e5c6;
  background: rgba(255, 243, 220, 0.075);
  text-align: left;
}

.adults-only__ornament {
  position: absolute;
  top: 50%;
  left: 19px;
  color: #efc578;
  font-size: 1.05rem;
  transform: translateY(-50%);
}

.adults-only b {
  display: block;
  font-family: var(--sans);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.adults-only p {
  margin: 4px 0 0;
  font-size: 0.98rem;
  line-height: 1.25;
}

.adults-only .adults-only__thanks {
  margin-top: 7px;
  color: currentColor;
  font-family: var(--script);
  font-size: 1.08rem;
  line-height: 1.08;
}

.rsvp-actions {
  margin-top: 22px;
}

.rsvp-choice {
  position: relative;
  overflow: hidden;
  box-shadow: 0 9px 24px rgba(22, 2, 6, 0.2);
}

.rsvp-choice::after {
  content: "";
  position: absolute;
  top: -110%;
  left: -32%;
  width: 23%;
  height: 320%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: rotate(24deg);
  transition: left 0.7s ease;
}

.rsvp-choice:hover::after,
.rsvp-choice:focus-visible::after {
  left: 112%;
}

.rsvp-choice[aria-pressed="true"] {
  outline: 2px solid #f3cb7e;
  outline-offset: 4px;
  transform: translateY(-2px) scale(1.01);
}

.rsvp-card.is-attending {
  box-shadow: 0 34px 82px rgba(21, 1, 5, 0.48), 0 0 50px rgba(222, 166, 87, 0.11);
}

.rsvp-card.is-sending {
  cursor: wait;
}

.rsvp-card.is-sending .rsvp-choice {
  opacity: 0.62;
  filter: saturate(0.7);
}

.rsvp-choice:disabled {
  cursor: wait;
}

.rsvp-status {
  display: grid;
  max-width: 430px;
  margin-inline: auto;
  place-items: center;
}

.rsvp-status:not(:empty) {
  min-height: 54px;
  animation: rsvpStatusIn 0.48s ease both;
}

.rsvp-whatsapp {
  margin-top: 10px;
  border-color: rgba(255, 242, 218, 0.76);
}

.rsvp-whatsapp[hidden] {
  display: none !important;
}

.rsvp-closing {
  margin: 24px auto 0 !important;
  color: rgba(250, 230, 196, 0.77);
  font-family: var(--script) !important;
  font-size: 1.35rem !important;
  line-height: 1.1 !important;
}

/* Propuesta 1: Jardín nocturno (predeterminada) */
body[data-rsvp-style="1"] .rsvp {
  background:
    radial-gradient(circle at 50% 19%, rgba(238, 170, 93, 0.2), transparent 25%),
    radial-gradient(circle at 12% 76%, rgba(173, 69, 60, 0.19), transparent 28%),
    linear-gradient(158deg, #852635 0%, #4c0b17 45%, #26040a 100%);
}

body[data-rsvp-style="1"] .rsvp-card {
  border-radius: 150px 150px 24px 24px / 104px 104px 24px 24px;
  background:
    radial-gradient(circle at 50% 0, rgba(226, 154, 84, 0.2), transparent 30%),
    linear-gradient(180deg, rgba(83, 10, 21, 0.91), rgba(55, 5, 13, 0.94));
  box-shadow: 0 34px 78px rgba(18, 1, 4, 0.49), 0 0 0 8px rgba(106, 21, 31, 0.28), inset 0 0 40px rgba(230, 168, 94, 0.06);
}

body[data-rsvp-style="1"] .botanical--rsvp-a {
  top: -8%;
  left: -25%;
  transform: rotate(7deg);
}

body[data-rsvp-style="1"] .botanical--rsvp-b {
  right: -24%;
  bottom: -6%;
}

/* Propuesta 2: Carta botánica */
body[data-rsvp-style="2"] .rsvp {
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 50% 43%, rgba(255, 255, 255, 0.78), transparent 38%),
    repeating-linear-gradient(91deg, transparent 0 8px, rgba(89, 51, 28, 0.022) 9px),
    #efe0c8;
}

body[data-rsvp-style="2"] .rsvp::after {
  border-color: rgba(116, 50, 45, 0.28);
}

body[data-rsvp-style="2"] .section-fabric--rsvp {
  opacity: 0.3;
  filter: sepia(0.55) brightness(1.15);
}

body[data-rsvp-style="2"] .rsvp-card {
  overflow: hidden;
  border: 1px solid rgba(134, 79, 48, 0.38);
  border-radius: 180px 180px 18px 18px / 120px 120px 18px 18px;
  color: var(--wine-dark);
  background:
    radial-gradient(circle at 50% 0, rgba(209, 159, 98, 0.16), transparent 31%),
    repeating-linear-gradient(88deg, transparent 0 7px, rgba(99, 58, 31, 0.022) 8px),
    rgba(255, 248, 233, 0.94);
  box-shadow: 0 28px 70px rgba(79, 42, 27, 0.23), 0 0 0 8px rgba(255, 248, 233, 0.28);
  backdrop-filter: blur(2px);
}

body[data-rsvp-style="2"] .rsvp-card > *:not(.rsvp-card__crown) {
  position: relative;
  z-index: 2;
}

body[data-rsvp-style="2"] .rsvp-card__crown {
  position: absolute;
  z-index: 1;
  top: 9px;
  left: 50%;
  display: block;
  width: min(58%, 280px);
  opacity: 0.7;
  filter: saturate(0.82) sepia(0.06);
  transform: translateX(-50%);
  pointer-events: none;
}

body[data-rsvp-style="2"] .rsvp-card::before {
  border-color: rgba(124, 67, 42, 0.16);
}

body[data-rsvp-style="2"] .rsvp-card__crest {
  color: #741e2b;
  border-color: rgba(116, 30, 43, 0.42);
  background: #f3e3c9;
  box-shadow: 0 10px 24px rgba(77, 39, 22, 0.16), inset 0 0 0 6px rgba(142, 81, 43, 0.05);
}

body[data-rsvp-style="2"] .rsvp-date {
  color: #955f42;
}

body[data-rsvp-style="2"] .rsvp-mini-rule {
  color: #9b5f37;
}

body[data-rsvp-style="2"] .rsvp-card__crest i,
body[data-rsvp-style="2"] .rsvp-card h2,
body[data-rsvp-style="2"] .rsvp-card .eyebrow {
  color: var(--wine-dark);
}

body[data-rsvp-style="2"] .rsvp-intro,
body[data-rsvp-style="2"] .rsvp-status {
  color: #5f302c;
}

body[data-rsvp-style="2"] .adults-only {
  color: #5e302c;
  border-color: rgba(118, 53, 46, 0.24);
  background: rgba(122, 64, 44, 0.055);
}

body[data-rsvp-style="2"] .adults-only__ornament,
body[data-rsvp-style="2"] .rsvp-closing {
  color: #9b5f37;
}

body[data-rsvp-style="2"] .rsvp-choice--yes { background: #596449; }
body[data-rsvp-style="2"] .rsvp-choice--no { background: #8e3328; }

body[data-rsvp-style="2"] .botanical--rsvp-a,
body[data-rsvp-style="2"] .botanical--rsvp-b {
  opacity: 1;
  filter: saturate(0.9) brightness(1.03);
}

/* Propuesta 3: Brillo de celebración */
body[data-rsvp-style="3"] .rsvp {
  background:
    radial-gradient(circle at 50% 34%, rgba(224, 165, 84, 0.2), transparent 23%),
    radial-gradient(circle at 50% 35%, transparent 0 31%, rgba(225, 175, 98, 0.15) 31.2% 31.5%, transparent 31.7%),
    linear-gradient(180deg, #1e060b, #520c19 65%, #26040a);
}

body[data-rsvp-style="3"] .rsvp-card {
  width: min(94%, 700px);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

body[data-rsvp-style="3"] .rsvp-card::before {
  inset: -18px;
  border: 1px solid rgba(237, 194, 117, 0.38);
  border-radius: 50% 50% 22px 22px / 135px 135px 22px 22px;
  box-shadow: inset 0 0 55px rgba(235, 181, 99, 0.04), 0 0 50px rgba(221, 157, 72, 0.06);
}

body[data-rsvp-style="3"] .rsvp-card__crest {
  background: linear-gradient(145deg, #9c452c, #4f0a17);
  box-shadow: 0 0 0 8px rgba(238, 195, 121, 0.08), 0 12px 36px rgba(0, 0, 0, 0.36);
  animation: crestGlow 3.2s ease-in-out infinite;
}

body[data-rsvp-style="3"] .rsvp-card h2 {
  color: #fff1d5;
  text-shadow: 0 8px 35px rgba(234, 181, 99, 0.16);
}

body[data-rsvp-style="3"] .adults-only {
  max-width: 520px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(237, 198, 132, 0.05), rgba(237, 198, 132, 0.12), rgba(237, 198, 132, 0.05));
}

body[data-rsvp-style="3"] .rsvp-actions {
  max-width: 540px;
  margin-inline: auto;
}

body[data-rsvp-style="3"] .rsvp-choice {
  border-color: rgba(246, 218, 166, 0.7);
  background: linear-gradient(90deg, rgba(90, 21, 30, 0.86), rgba(118, 35, 39, 0.94));
}

body[data-rsvp-style="3"] .rsvp-choice--yes {
  background: linear-gradient(90deg, #46523c, #657051);
}

body[data-rsvp-style="3"] .botanical--rsvp-a {
  top: auto;
  bottom: -11%;
  left: -26%;
  transform: rotate(12deg);
}

body[data-rsvp-style="3"] .botanical--rsvp-b {
  right: -25%;
  bottom: -10%;
}

@keyframes rsvpTwinkle {
  0%, 100% { opacity: 0.2; transform: scale(0.7); }
  48% { opacity: 1; transform: scale(1.45); }
}

@keyframes rsvpStatusIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes crestGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(238, 195, 121, 0.07), 0 12px 36px rgba(0, 0, 0, 0.36); }
  50% { box-shadow: 0 0 0 13px rgba(238, 195, 121, 0.12), 0 12px 42px rgba(231, 176, 91, 0.19); }
}

@keyframes farewellReveal {
  from { opacity: 0; clip-path: inset(0 0 100% 0); }
  to { opacity: 1; clip-path: inset(0); }
}

@media (min-width: 760px) {
  body[data-rsvp-style="3"] .rsvp-actions {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 430px) {
  .rsvp {
    min-height: max(100svh, 820px);
    padding: 70px 10px 78px;
  }

  .rsvp-card {
    width: min(96%, 390px);
    padding: 34px 17px 31px;
  }

  .rsvp-card__crest {
    width: 64px;
    height: 64px;
    margin-bottom: 11px;
  }

  body[data-rsvp-style="2"] .rsvp-card__crown {
    top: 8px;
    width: min(68%, 245px);
  }

  .rsvp-card__crest::before,
  .rsvp-card__crest::after {
    width: 33px;
    margin: 0;
  }

  .rsvp-card h2 {
    font-size: clamp(3rem, 14.8vw, 4.15rem);
  }

  .rsvp-intro {
    font-size: 0.98rem;
  }

  .adults-only {
    margin-top: 20px;
    padding: 13px 13px 13px 45px;
  }

  .adults-only__ornament {
    left: 15px;
  }

  .adults-only p {
    font-size: 0.9rem;
  }

  .adults-only .adults-only__thanks {
    font-size: 1rem;
  }

  .rsvp-choice {
    min-height: 56px;
  }

  .rsvp-closing {
    margin-top: 20px !important;
    font-size: 1.18rem !important;
  }

  body[data-rsvp-style="1"] .rsvp-card,
  body[data-rsvp-style="2"] .rsvp-card {
    border-radius: 110px 110px 20px 20px / 78px 78px 20px 20px;
  }

  body[data-rsvp-style="3"] .rsvp-card::before {
    inset: -7px;
    border-radius: 120px 120px 18px 18px / 92px 92px 18px 18px;
  }

  body[data-rsvp-style="3"] .adults-only {
    border-radius: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rsvp-glints i,
  .rsvp-card__crest,
  .farewell.is-unlocked,
  .rsvp-status:not(:empty) {
    animation: none !important;
  }

  .rsvp-choice::after {
    display: none;
  }
}

/* V11 — ajustes editoriales solicitados sobre la composición aprobada */
.wax-seal {
  overflow: hidden;
  border-radius: 50%;
  filter: drop-shadow(0 10px 16px rgba(74, 8, 17, 0.3));
  transition:
    opacity 0.18s ease 0.34s,
    transform 0.36s cubic-bezier(0.18, 0.8, 0.22, 1),
    filter 0.28s ease;
}

.wax-seal::before {
  z-index: 0;
  inset: 0;
  clip-path: none;
  border: 3px double #d58a5f;
  background:
    radial-gradient(circle at 33% 24%, rgba(255, 191, 151, 0.7), transparent 15%),
    radial-gradient(circle at 58% 62%, #5b0a16, #8c2631 68%, #4a0711 100%);
  box-shadow:
    inset 0 0 0 5px rgba(52, 5, 12, 0.17),
    inset 0 0 20px rgba(255, 169, 116, 0.14),
    0 0 0 0 rgba(210, 139, 82, 0.28);
  animation: sealBreath 2.6s ease-in-out infinite;
}

.wax-seal::after {
  z-index: 1;
  inset: -38%;
  clip-path: none;
  border: 0;
  border-radius: 0;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 235, 190, 0.72) 49%, transparent 59%);
  box-shadow: none;
  opacity: 0;
  transform: translateX(-52%) rotate(12deg);
  animation: sealShine 2.8s ease-in-out 0.55s infinite;
}

.wax-seal:hover,
.wax-seal:focus-visible {
  filter: drop-shadow(0 12px 20px rgba(95, 14, 25, 0.4)) drop-shadow(0 0 13px rgba(229, 172, 95, 0.42));
  transform: translateX(-50%) scale(1.075);
}

.wax-seal:focus-visible {
  outline: 2px solid #f2cd91;
  outline-offset: 5px;
}

.wax-seal:active {
  transform: translateX(-50%) scale(0.96);
}

.wax-seal small {
  max-width: 62px;
  margin-top: -13px;
  font-size: 0.42rem;
  letter-spacing: 0.13em;
  line-height: 1.15;
}

.envelope.is-seal-breaking .wax-seal {
  opacity: 0;
  transform: translateX(-50%) scale(1.11);
  filter: drop-shadow(0 0 22px rgba(243, 195, 110, 0.75));
}

.envelope.is-seal-breaking .wax-seal::before,
.envelope.is-seal-breaking .wax-seal::after {
  clip-path: none;
  opacity: 1;
  transform: none;
}

.envelope.is-seal-breaking .wax-seal::before {
  animation: sealTouched 0.52s cubic-bezier(0.18, 0.8, 0.22, 1) both;
}

.envelope.is-seal-breaking .wax-seal::after {
  animation: sealTapShine 0.5s ease-out both;
}

.botanical--hero-top {
  top: -18%;
  left: -43%;
  width: min(82vw, 650px);
}

.story-photo-stage::after,
.story-photo-stage .botanical,
.story-caption-stage::before,
.story-caption-stage::after {
  display: none;
}

.story::after {
  display: none;
}

.date-card {
  padding-top: 142px;
  padding-bottom: 132px;
}

.date-card__calendar {
  position: relative;
  display: grid;
  width: 108px;
  margin: 14px auto 23px;
  overflow: hidden;
  border: 1px solid rgba(111, 23, 35, 0.62);
  border-radius: 8px;
  color: var(--wine-dark);
  background: rgba(255, 249, 236, 0.9);
  box-shadow:
    0 9px 20px rgba(77, 35, 21, 0.14),
    0 0 0 5px rgba(255, 249, 236, 0.42),
    inset 0 0 0 1px rgba(181, 138, 85, 0.16);
  line-height: 1;
}

.date-card__calendar::before,
.date-card__calendar::after {
  display: none;
}

.date-card__calendar > span {
  padding: 9px 7px 8px;
  color: #fff4df;
  background: var(--wine);
  font-family: var(--sans);
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.date-card__calendar strong {
  padding-top: 8px;
  font-family: var(--serif);
  font-size: 2.9rem;
  font-weight: 500;
  line-height: 0.88;
}

.date-card__calendar small {
  padding: 7px 5px 9px;
  color: #7a5644;
  font-family: var(--sans);
  font-size: 0.46rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.date-card h2 {
  display: flex;
  margin: 0 auto 16px;
  align-items: baseline;
  justify-content: center;
  gap: clamp(4px, 1.8vw, 10px);
  font-size: clamp(2.65rem, 11vw, 4.8rem);
  line-height: 0.95;
  white-space: nowrap;
}

.date-card h2 span,
.date-card h2 span:last-child {
  display: inline;
  margin: 0;
  font-size: 1em;
  letter-spacing: 0;
}

.date-card h2 span:last-child {
  font-size: 0.76em;
  letter-spacing: 0.02em;
}

.date-card h2 i {
  color: var(--gold);
  font-size: 0.55em;
  font-style: normal;
}

.memory-photo {
  width: min(91%, 520px);
  padding-bottom: 34px;
}

.memory-photo figcaption {
  padding: 22px 16px 0;
}

.memory-photo figcaption h2 {
  font-size: clamp(2.35rem, 8.7vw, 3.8rem);
  line-height: 0.96;
}

.memory-photo figcaption p {
  max-width: 430px;
  margin: 15px auto 0;
  color: #4f382e;
  font-size: clamp(0.96rem, 3.5vw, 1.12rem);
  font-style: normal;
  line-height: 1.3;
}

.memory-photo figcaption p + p {
  margin-top: 13px;
  color: var(--wine-dark);
}

.memory-photo figcaption em {
  font-weight: 500;
}

.dress-code__copy h2 {
  margin-top: 0;
}

@keyframes sealBreath {
  0%, 100% { box-shadow: inset 0 0 0 5px rgba(52, 5, 12, 0.17), inset 0 0 20px rgba(255, 169, 116, 0.14), 0 0 0 0 rgba(210, 139, 82, 0.22); }
  50% { box-shadow: inset 0 0 0 5px rgba(52, 5, 12, 0.17), inset 0 0 25px rgba(255, 186, 123, 0.2), 0 0 0 9px rgba(210, 139, 82, 0); }
}

@keyframes sealShine {
  0%, 62% { opacity: 0; transform: translateX(-52%) rotate(12deg); }
  72% { opacity: 0.72; }
  91%, 100% { opacity: 0; transform: translateX(52%) rotate(12deg); }
}

@keyframes sealTouched {
  0% { box-shadow: 0 0 0 0 rgba(238, 191, 109, 0.7), inset 0 0 0 5px rgba(52, 5, 12, 0.17); }
  52% { box-shadow: 0 0 0 14px rgba(238, 191, 109, 0.22), inset 0 0 0 5px rgba(52, 5, 12, 0.17); }
  100% { box-shadow: 0 0 0 24px rgba(238, 191, 109, 0), inset 0 0 0 5px rgba(52, 5, 12, 0.17); }
}

@keyframes sealTapShine {
  from { opacity: 0; transform: translateX(-52%) rotate(12deg); }
  44% { opacity: 0.95; }
  to { opacity: 0; transform: translateX(52%) rotate(12deg); }
}

@media (max-width: 430px) {
  .botanical--hero-top {
    top: -21%;
    left: -48%;
    width: min(72vw, 310px);
  }

  .date-card {
    padding: 116px 15px 106px;
  }

  .date-card__calendar {
    width: 98px;
    margin-top: 10px;
    margin-bottom: 19px;
  }

  .date-card h2 {
    gap: 4px;
    font-size: clamp(2.3rem, 11.1vw, 3.25rem);
  }

  .memory-interlude {
    padding-top: 58px;
    padding-bottom: 66px;
  }

  .memory-photo {
    width: min(94%, 405px);
    padding-bottom: 29px;
  }

  .memory-photo figcaption {
    padding: 18px 11px 0;
  }
}

@media (max-width: 430px) and (max-height: 720px) {
  .botanical--hero-top {
    top: -23%;
    left: -50%;
    width: min(68vw, 285px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .wax-seal::before,
  .wax-seal::after,
  .envelope.is-seal-breaking .wax-seal::before,
  .envelope.is-seal-breaking .wax-seal::after {
    animation: none !important;
  }
}


/* Contenedor del mensaje */
.adults-only__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

/* Título */
.adults-only__title {
  max-width: 330px;
  margin: 0 auto;
  color: #702B36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(21px, 5vw, 25px);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

/* Texto principal */
.adults-only__message {
  max-width: 330px;
  margin: 14px auto 0;
  color: #49352C;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-align: center;
  text-transform: none;
}

/* Agradecimiento: visible y elegante */
.adults-only .adults-only__thanks {
  display: block;
  max-width: 330px;
  margin: 20px auto 0;
  padding: 0 4px;

  color: #702B36 !important;
  font-family: Georgia, serif !important;
  font-size: 17px !important;
  font-style: italic !important;
  font-weight: 600 !important;
  line-height: 1.55 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  text-align: center !important;

  opacity: 1 !important;
  transform: none;
}

/* Ajuste para iPhone */
@media (max-width: 430px) {
  .adults-only {
    padding: 26px 18px;
  }

  .adults-only__title {
    font-size: 22px;
  }

  .adults-only__message {
    font-size: 15px;
  }

  .adults-only .adults-only__thanks {
    font-size: 16px !important;
  }
}


/* Corrección de alineación del aviso */
.adults-only {
  display: block;
  width: 100%;
  max-width: 440px;
  margin: 24px auto;
  padding: 26px 22px;
  box-sizing: border-box;
  text-align: center;
}

.adults-only .adults-only__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  text-align: center;
}

/* Adorno centrado */
.adults-only .adults-only__ornament {
  position: static;
  display: block;
  margin: 0 auto 12px;
  color: #B88A58;
  font-size: 15px;
}

/* Título */
.adults-only .adults-only__title {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  color: #702B36;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

/* Separador */
.adults-only .adults-only__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  margin: 14px auto;
  color: #B88A58;
}

.adults-only .adults-only__divider span {
  width: 42px;
  height: 1px;
  background: #C6A66B;
}

/* Párrafo principal */
.adults-only .adults-only__message {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  color: #49352C;
  font-family: Georgia, serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

/* Agradecimiento */
.adults-only .adults-only__thanks {
  width: 100%;
  max-width: 340px;
  margin: 17px auto 0;
  color: #702B36;
  font-family: Georgia, serif !important;
  font-size: 17px !important;
  font-style: italic;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-transform: none;
}

/* Ajuste móvil */
@media (max-width: 430px) {
  .adults-only {
    padding: 24px 18px;
  }

  .adults-only .adults-only__title {
    font-size: 20px;
  }

  .adults-only .adults-only__message {
    font-size: 15px;
  }

  .adults-only .adults-only__thanks {
    font-size: 16px !important;
  }
}

