:root {
  --cream: #fffbe5;
  --peach: #ffd8d1;
  --sage: #c9d8b1;
  --coral: #d67f78;
  --coral-dark: #a75251;
  --sage-dark: #718260;
  --ink: #4c5147;
  --muted: #74766d;
  --white: #fffef9;
  --line: rgba(76, 81, 71, .14);
  --shadow: rgba(96, 91, 73, .14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--white);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
}
body:not(.invitation-open) { overflow: hidden; }
button, a { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { font-family: "Playfair Display", Georgia, serif; }
em { color: var(--coral-dark); font-weight: 600; }

.eyebrow, .section-kicker {
  display: block;
  margin-bottom: 12px;
  color: var(--sage-dark);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.primary-button, .secondary-button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 700;
  transition: box-shadow .2s ease, transform .2s ease, background-color .2s ease;
}
.primary-button {
  border-color: var(--coral-dark);
  background: var(--coral-dark);
  color: white;
  box-shadow: 0 12px 28px rgba(167, 82, 81, .22);
}
.primary-button:hover, .secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 32px rgba(99, 91, 71, .18);
}
.secondary-button {
  border-color: var(--sage-dark);
  background: var(--white);
  color: var(--sage-dark);
}

/* Portada */
.welcome-screen {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 30px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.86) 0 2px, transparent 3px),
    linear-gradient(135deg, var(--cream) 0 38%, var(--peach) 38% 70%, var(--sage) 70%);
  background-size: 46px 46px, auto;
  transition: opacity .85s ease, visibility .85s ease;
}
.welcome-screen.is-open { opacity: 0; visibility: hidden; }
.welcome-content {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: minmax(280px, 390px) minmax(310px, 470px);
  width: min(960px, 100%);
  align-items: center;
  gap: 54px;
  padding: 54px;
  border: 1px solid rgba(255,255,255,.72);
  border-radius: 32px;
  background: rgba(255, 254, 249, .9);
  box-shadow: 0 28px 80px rgba(91, 90, 73, .2);
  backdrop-filter: blur(14px);
}
.welcome-copy h1 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: clamp(54px, 8vw, 82px);
  font-weight: 600;
  line-height: .88;
}
.welcome-copy h1 em { display: block; }
.welcome-copy > p:not(.eyebrow) {
  max-width: 410px;
  margin-bottom: 26px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}
.envelope-scene { position: relative; width: 340px; height: 270px; margin: auto; }
.envelope-back {
  position: absolute;
  right: 10px;
  bottom: 15px;
  left: 10px;
  height: 190px;
  border-radius: 14px;
  background: #e2afaa;
  box-shadow: 0 22px 38px rgba(97, 82, 76, .18);
}
.envelope-letter {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 50%;
  display: grid;
  width: 230px;
  height: 195px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(113,130,96,.24);
  border-radius: 120px 120px 16px 16px;
  background: var(--cream);
  box-shadow: 0 10px 24px rgba(88,83,67,.1);
  transform: translateX(-50%);
  animation: letterRise 3.2s ease-in-out infinite;
}
.envelope-letter::before {
  position: absolute;
  inset: 9px;
  border: 1px dashed rgba(113,130,96,.32);
  border-radius: inherit;
  content: "";
}
.letter-stars { color: var(--sage-dark); font-size: 13px; letter-spacing: .35em; }
.envelope-letter strong {
  position: relative;
  color: var(--coral-dark);
  font-family: "Playfair Display", serif;
  font-size: 58px;
  line-height: 1;
}
.envelope-letter small { color: var(--sage-dark); letter-spacing: .17em; text-transform: uppercase; }
.envelope-front {
  position: absolute;
  z-index: 3;
  right: 10px;
  bottom: 15px;
  left: 10px;
  height: 190px;
  border-radius: 14px;
  background: var(--peach);
  clip-path: polygon(0 18%, 50% 62%, 100% 18%, 100% 100%, 0 100%);
}
.envelope-flap {
  position: absolute;
  z-index: 1;
  top: 64px;
  right: 10px;
  left: 10px;
  height: 150px;
  background: #f2c2bb;
  clip-path: polygon(0 0, 100% 0, 50% 84%);
  transform-origin: top;
  animation: flapBreathe 3.2s ease-in-out infinite;
}
.envelope-seal {
  position: absolute;
  z-index: 5;
  bottom: 78px;
  left: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--cream);
  box-shadow: 0 7px 14px rgba(78,85,67,.22);
  transform: translateX(-50%);
}
.welcome-orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 14px white;
  animation: sparkle 2.5s ease-in-out infinite;
}
.welcome-orbit i:nth-child(1) { top: 12%; left: 12%; }
.welcome-orbit i:nth-child(2) { top: 18%; right: 18%; animation-delay: .4s; }
.welcome-orbit i:nth-child(3) { bottom: 16%; left: 22%; animation-delay: .8s; }
.welcome-orbit i:nth-child(4) { right: 11%; bottom: 12%; animation-delay: 1.2s; }
.welcome-orbit i:nth-child(5) { top: 9%; left: 54%; animation-delay: 1.6s; }
.welcome-orbit i:nth-child(6) { right: 35%; bottom: 6%; animation-delay: 2s; }

/* Elementos ilustrados */
.balloon {
  position: absolute;
  width: 82px;
  height: 104px;
  border-radius: 50% 50% 47% 47%;
  box-shadow: inset -12px -10px 20px rgba(80,73,59,.07), inset 10px 8px 14px rgba(255,255,255,.3);
  animation: balloonFloat 6s ease-in-out infinite;
}
.balloon::before {
  position: absolute;
  bottom: -8px;
  left: 50%;
  border-right: 7px solid transparent;
  border-bottom: 0;
  border-left: 7px solid transparent;
  border-top: 12px solid currentColor;
  content: "";
  transform: translateX(-50%);
}
.balloon::after {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  width: 1px;
  height: 115px;
  background: rgba(76,81,71,.35);
  content: "";
}
.balloon span {
  position: absolute;
  top: 19px;
  left: 18px;
  width: 16px;
  height: 29px;
  border-radius: 50%;
  background: rgba(255,255,255,.32);
  transform: rotate(28deg);
}
.balloon-peach { background: var(--peach); color: var(--peach); }
.balloon-sage { background: var(--sage); color: var(--sage); }
.balloon-cream { background: var(--cream); color: var(--cream); }
.welcome-balloon.balloon-sage { top: 7%; right: 8%; transform: scale(.75); animation-delay: -1.2s; }
.welcome-balloon.balloon-peach { bottom: 12%; left: 7%; transform: scale(.55); animation-delay: -3s; }
.cloud {
  position: absolute;
  width: 220px;
  height: 65px;
  border-radius: 60px;
  background: rgba(255,255,255,.9);
  filter: drop-shadow(0 12px 18px rgba(91,88,73,.08));
}
.cloud::before, .cloud::after {
  position: absolute;
  bottom: 0;
  border-radius: 50%;
  background: inherit;
  content: "";
}
.cloud::before { left: 18%; width: 48%; height: 140%; }
.cloud::after { right: 12%; width: 41%; height: 112%; }
.cloud-welcome-left { bottom: 2%; left: -70px; }
.cloud-welcome-right { top: 15%; right: -90px; transform: scale(.75); }

/* Invitación principal */
.invitation { opacity: 0; transition: opacity .9s ease; }
.invitation.is-visible { opacity: 1; }
.music-toggle[hidden] { display: none; }
.music-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 50;
  display: flex;
  min-height: 44px;
  align-items: center;
  gap: 9px;
  padding: 0 14px;
  border: 1px solid rgba(113,130,96,.28);
  border-radius: 14px;
  background: rgba(255,254,249,.9);
  color: var(--sage-dark);
  box-shadow: 0 9px 28px rgba(82,81,68,.12);
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(10px);
}
.music-bars { display: flex; height: 14px; align-items: end; gap: 2px; }
.music-bars i { width: 2px; height: 6px; background: currentColor; }
.music-toggle.is-playing .music-bars i { animation: musicBar .8s ease-in-out infinite alternate; }
.music-toggle.is-playing .music-bars i:nth-child(2) { animation-delay: .2s; }
.music-toggle.is-playing .music-bars i:nth-child(3) { animation-delay: .4s; }

.hero {
  --pointer-x: 0px;
  --pointer-y: 0px;
  position: relative;
  display: grid;
  min-height: 100svh;
  place-items: center;
  overflow: hidden;
  padding: 100px 24px 90px;
  background:
    radial-gradient(circle at 13% 20%, rgba(255,255,255,.34), transparent 25%),
    linear-gradient(180deg, #ffdcd5 0%, var(--peach) 60%, #fbd1ca 100%);
  text-align: center;
}
.hero::before {
  position: absolute;
  inset: 0 0 auto;
  height: 42%;
  background: var(--cream);
  clip-path: ellipse(78% 58% at 50% 0%);
  content: "";
}
.hero-sky { position: absolute; inset: 0; transform: translate(var(--pointer-x), var(--pointer-y)); transition: transform .25s ease-out; }
.hero-copy {
  position: relative;
  z-index: 3;
  width: min(720px, 100%);
  padding: 38px 46px 42px;
  border: 1px solid rgba(255,255,255,.82);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(255,254,249,.88), rgba(255,247,242,.78));
  box-shadow: 0 28px 72px rgba(102,85,80,.13), inset 0 1px 0 rgba(255,255,255,.7);
  backdrop-filter: blur(10px);
}
.hero-copy::before {
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(214,127,120,.13);
  border-radius: 26px;
  content: "";
  pointer-events: none;
}
.hero-copy > * { position: relative; z-index: 1; }
.guest-card { position: relative; width: min(100%, 500px); margin: 22px auto 4px; padding: 20px 24px 22px; overflow: hidden; border: 1px solid rgba(214,127,120,.32); border-radius: 26px; background: linear-gradient(145deg, rgba(255,251,229,.92), rgba(255,216,209,.42)); box-shadow: 0 15px 35px rgba(91,86,70,.09); }
.guest-card::before { position: absolute; inset: 7px; border: 1px dashed rgba(214,127,120,.28); border-radius: 20px; content: ""; pointer-events: none; }
.guest-card[hidden] { display: none; }
.guest-card > * { position: relative; z-index: 1; }
.guest-card .guest-kicker { display: block; color: var(--sage-dark); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; }
.guest-card strong { display: block; margin: 6px auto 4px; color: var(--coral-dark); font-family: "Great Vibes", cursive; font-size: clamp(38px, 7vw, 56px); font-weight: 400; line-height: 1.05; overflow-wrap: anywhere; }
.guest-divider { display: flex; align-items: center; gap: 12px; width: min(300px, 85%); margin: 8px auto 12px; color: var(--coral); }
.guest-divider::before, .guest-divider::after { flex: 1; height: 2px; background: radial-gradient(circle, rgba(214,127,120,.65) 1.4px, transparent 1.8px) 0 50% / 9px 3px repeat-x; content: ""; }
.guest-divider i { font-size: 18px; font-style: normal; }
.guest-capacity { width: min(100%, 330px); margin: auto; padding: 11px 18px 12px; border: 1px solid rgba(214,127,120,.35); border-radius: 18px; background: rgba(255,216,209,.62); }
.guest-capacity small { display: block; color: var(--sage-dark); font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.guest-capacity em { display: block; margin-top: 2px; color: var(--coral-dark); font-family: "Playfair Display", serif; font-size: 24px; font-style: normal; font-weight: 500; letter-spacing: .05em; text-transform: uppercase; }
.baby-badge {
  display: grid;
  width: 64px;
  height: 64px;
  place-items: center;
  margin: -4px auto 18px;
  border-radius: 50%;
  background: var(--sage);
  color: var(--sage-dark);
  box-shadow: 0 0 0 8px rgba(201,216,177,.28);
  font-size: 28px;
  animation: float 4.5s ease-in-out infinite;
}
.hero h1 { margin: 0 0 24px; color: var(--ink); font-size: clamp(62px, 10vw, 104px); font-weight: 600; line-height: .86; text-wrap: balance; }
.baby-name {
  display: block;
  color: var(--coral-dark);
  font-family: "Great Vibes", "Brush Script MT", cursive;
  font-size: 1.05em;
  font-weight: 400;
  letter-spacing: .01em;
  line-height: .96;
  text-shadow: 0 2px 0 rgba(255,255,255,.56), 0 10px 24px rgba(167,82,81,.08);
}
.hero h1 > span:first-child { display: block; margin-bottom: 17px; font-family: "DM Sans", sans-serif; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; }
.hero h1 em { display: block; }
.hero-message { max-width: 530px; margin: 0 auto 27px; color: #62675e; font-size: 17px; line-height: 1.75; }
.parents { display: grid; gap: 3px; padding-top: 20px; border-top: 1px solid rgba(76,81,71,.14); }
.parents span { color: var(--muted); font-size: 12px; }
.parents strong { color: var(--sage-dark); font-family: "DM Sans", sans-serif; font-size: 21px; font-style: normal; font-weight: 600; letter-spacing: .02em; }
.moon { position: absolute; top: 8%; left: 10%; width: 125px; height: 125px; border-radius: 50%; background: var(--cream); box-shadow: 0 0 38px rgba(255,251,229,.7); animation: float 7s ease-in-out infinite; }
.moon span { position: absolute; top: -10px; right: -16px; width: 120px; height: 120px; border-radius: 50%; background: var(--peach); }
.moon i { position: absolute; right: -23px; bottom: 13px; color: var(--sage-dark); font-style: normal; }
.rainbow { position: absolute; top: -110px; left: 50%; width: 540px; height: 270px; border: 22px solid var(--sage); border-bottom: 0; border-radius: 300px 300px 0 0; opacity: .55; transform: translateX(-50%); }
.rainbow i { position: absolute; border-bottom: 0; border-radius: 300px 300px 0 0; }
.rainbow i:nth-child(1) { inset: 20px 20px 0; border: 18px solid var(--peach); border-bottom: 0; }
.rainbow i:nth-child(2) { inset: 55px 55px 0; border: 16px solid var(--cream); border-bottom: 0; }
.rainbow i:nth-child(3) { inset: 84px 84px 0; border: 13px solid white; border-bottom: 0; }
.balloon-hero-one { top: 21%; right: 8%; transform: scale(.85); }
.balloon-hero-two { bottom: 23%; left: 8%; transform: scale(.64); animation-delay: -2s; }
.balloon-hero-three { right: 19%; bottom: 7%; transform: scale(.46); animation-delay: -4s; }
.cloud-one { top: 22%; right: -70px; animation: cloudDrift 13s ease-in-out infinite; }
.cloud-two { bottom: 10%; left: -80px; width: 290px; animation: cloudDrift 16s ease-in-out infinite reverse; }
.cloud-three { right: 18%; bottom: 3%; transform: scale(.6); opacity: .8; animation: float 8s ease-in-out infinite; }
.sparkle { position: absolute; color: var(--sage-dark); text-shadow: 0 0 10px white; animation: sparkle 2.6s ease-in-out infinite; }
.sparkle-one { top: 25%; left: 27%; font-size: 24px; }
.sparkle-two { top: 35%; right: 23%; font-size: 30px; animation-delay: .7s; }
.sparkle-three { right: 8%; bottom: 32%; font-size: 18px; animation-delay: 1.4s; }
.sparkle-four { bottom: 20%; left: 26%; font-size: 40px; animation-delay: 2s; }
.scroll-cue { position: absolute; z-index: 4; bottom: 18px; left: 50%; display: grid; gap: 4px; color: var(--ink); font-size: 10px; letter-spacing: .16em; text-decoration: none; text-transform: uppercase; transform: translateX(-50%); }
.scroll-cue i { font-size: 17px; font-style: normal; animation: scrollBounce 1.7s ease-in-out infinite; }
.scallop { position: absolute; z-index: 4; right: 0; bottom: -1px; left: 0; height: 28px; background-size: 44px 44px; }
.scallop-cream { background-image: radial-gradient(circle at 22px 34px, var(--white) 22px, transparent 23px); }

.section-shell { width: min(1100px, calc(100% - 40px)); margin-inline: auto; }
.section-heading { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-heading h2, .countdown-section h2, .wishes-copy h2, .rsvp-card h2 { margin-bottom: 18px; color: var(--ink); font-size: clamp(40px, 6vw, 64px); font-weight: 600; line-height: 1.02; }
.section-heading > p { color: var(--muted); line-height: 1.7; }
.details { padding: 112px 0 100px; text-align: center; }
.event-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.gift-card { display: flex; width: min(100%, 390px); align-items: center; gap: 15px; margin: 0 auto 18px; padding: 17px 24px; border: 1px solid rgba(113,130,96,.24); border-radius: 22px; background: var(--cream); box-shadow: 0 14px 32px rgba(87,84,69,.1); text-align: left; }
.gift-card-mark { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border-radius: 50%; background: var(--sage); color: var(--sage-dark); font-family: "Playfair Display", serif; font-size: 15px; font-weight: 600; }
.gift-card-copy small { display: block; color: var(--coral-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; line-height: 1.3; text-transform: uppercase; }
.gift-card-copy strong { display: block; margin-top: 3px; color: var(--ink); font-family: "Playfair Display", serif; font-size: 22px; line-height: 1.08; }
.gift-card-copy address { margin-top: 6px; color: var(--muted); font-size: 10px; font-style: normal; font-weight: 600; letter-spacing: .015em; line-height: 1.4; }
.dress-note { display: flex; width: min(100%, 390px); align-items: center; justify-content: center; gap: 15px; margin: 0 auto 26px; padding: 17px 24px; border: 2px solid rgba(201,126,119,.42); border-radius: 22px; background: var(--peach); box-shadow: 0 14px 32px rgba(112,91,77,.16); text-align: left; }
.dress-copy small { display: block; color: var(--coral-dark); font-size: 12px; font-weight: 700; letter-spacing: .08em; line-height: 1.35; text-transform: uppercase; }
.dress-copy strong { display: block; margin-top: 3px; color: var(--ink); font-family: "Playfair Display", serif; font-size: 24px; line-height: 1.05; }
.dress-icon { display: grid; width: 48px; height: 48px; flex: 0 0 48px; place-items: center; border: 1px solid rgba(76,81,71,.18); border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px rgba(255,216,209,.22), 0 5px 13px rgba(76,81,71,.1); }
.dress-icon svg { width: 29px; height: 29px; overflow: visible; fill: none; stroke: var(--sage-dark); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.event-card { position: relative; min-height: 310px; overflow: hidden; padding: 32px 24px 26px; border: 1px solid rgba(76,81,71,.1); border-radius: 26px; box-shadow: 0 16px 38px rgba(87,84,69,.08); text-align: center; }
.event-card::after { position: absolute; right: -24px; bottom: -28px; width: 100px; height: 100px; border: 18px solid rgba(255,255,255,.36); border-radius: 50%; content: ""; }
.event-card-peach { background: var(--peach); }
.event-card-cream { background: var(--cream); }
.event-card-sage { background: var(--sage); }
.event-illustration { position: relative; display: grid; width: 92px; height: 92px; place-items: center; margin: 0 auto 25px; border-radius: 32px; background: rgba(255,255,255,.72); box-shadow: 0 10px 22px rgba(93,88,72,.08); }
.calendar-icon::before { position: absolute; top: 22px; right: 18px; left: 18px; height: 5px; border-radius: 4px; background: var(--coral); content: ""; }
.calendar-icon span { padding-top: 15px; color: var(--coral-dark); font-family: "Playfair Display", serif; font-size: 30px; }
.clock-icon { border-radius: 50%; }
.clock-icon::before { position: absolute; inset: 18px; border: 2px solid var(--sage-dark); border-radius: 50%; content: ""; }
.clock-icon span::before, .clock-icon span::after { position: absolute; top: 45px; left: 45px; width: 2px; background: var(--sage-dark); transform-origin: top; content: ""; }
.clock-icon span::before { height: 19px; transform: rotate(180deg); }
.clock-icon span::after { height: 15px; transform: rotate(-55deg); }
.pin-icon span { width: 38px; height: 48px; border: 3px solid var(--sage-dark); border-radius: 50% 50% 50% 0; transform: rotate(-45deg); }
.pin-icon span::after { position: absolute; top: 34px; left: 39px; width: 13px; height: 13px; border: 2px solid var(--sage-dark); border-radius: 50%; content: ""; }
.event-card small { color: rgba(76,81,71,.68); font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.event-card h3 { margin: 7px 0 8px; font-family: "Playfair Display", serif; font-size: 26px; }
.event-card p { margin: 0; color: #62665e; line-height: 1.55; }

.countdown-section { position: relative; overflow: hidden; padding: 100px 0 115px; background: var(--sage); text-align: center; }
.countdown-section h2 { max-width: 760px; margin-right: auto; margin-left: auto; }
.countdown-section h2 em { color: var(--coral-dark); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); max-width: 850px; gap: 12px; margin: 42px auto 0; }
.countdown div { padding: 28px 10px 25px; border: 1px solid rgba(255,255,255,.48); border-radius: 24px; background: rgba(255,254,249,.72); box-shadow: 0 12px 28px rgba(83,91,71,.08); backdrop-filter: blur(6px); }
.countdown div:nth-child(2) { background: rgba(255,216,209,.74); }
.countdown div:nth-child(3) { background: rgba(255,251,229,.76); }
.countdown strong, .countdown span { display: block; }
.countdown strong { color: var(--ink); font-family: "Playfair Display", serif; font-size: 52px; font-weight: 600; line-height: 1; }
.countdown span { margin-top: 8px; color: var(--sage-dark); font-size: 9px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.number-pop { animation: numberPop .35s ease; }
.floating-dots i { position: absolute; border-radius: 50%; background: rgba(255,255,255,.28); animation: float 5s ease-in-out infinite; }
.floating-dots i:nth-child(1) { top: 15%; left: 7%; width: 48px; height: 48px; }
.floating-dots i:nth-child(2) { top: 28%; right: 9%; width: 24px; height: 24px; animation-delay: -1s; }
.floating-dots i:nth-child(3) { right: 18%; bottom: 15%; width: 58px; height: 58px; animation-delay: -2s; }
.floating-dots i:nth-child(4) { bottom: 8%; left: 15%; width: 18px; height: 18px; animation-delay: -3s; }
.scallop-white { background-image: radial-gradient(circle at 22px 34px, var(--white) 22px, transparent 23px); }

.wishes-section { display: grid; grid-template-columns: minmax(300px, .9fr) minmax(360px, 1.1fr); align-items: center; gap: 80px; padding-top: 120px; padding-bottom: 120px; }
.wishes-copy > p:not(.gift-note) { max-width: 610px; color: var(--muted); font-size: 17px; line-height: 1.8; }

.baby-mobile { position: relative; width: 330px; height: 350px; margin: auto; animation: mobileSwing 5s ease-in-out infinite; transform-origin: 50% 0; }
.mobile-top { position: absolute; top: 25px; left: 50%; width: 230px; height: 70px; border-top: 5px solid var(--sage-dark); border-radius: 50%; transform: translateX(-50%); }
.mobile-top::before { position: absolute; top: -62px; left: 50%; width: 2px; height: 64px; background: var(--sage-dark); content: ""; }
.mobile-top span { position: absolute; top: -76px; left: 50%; width: 23px; height: 23px; border: 3px solid var(--sage-dark); border-radius: 50%; transform: translateX(-50%); }
.mobile-string { position: absolute; top: 49px; width: 2px; background: rgba(113,130,96,.66); transform-origin: top; }
.string-one { left: 28%; height: 168px; animation: charmSwing 3.2s ease-in-out infinite; }
.string-two { left: 50%; height: 225px; animation: charmSwing 4s ease-in-out infinite reverse; }
.string-three { right: 28%; height: 145px; animation: charmSwing 3.6s ease-in-out infinite; }
.mobile-string i { position: absolute; top: 100%; left: 50%; display: grid; place-items: center; transform: translateX(-50%); font-style: normal; }
.mobile-moon { width: 74px; height: 74px; border-radius: 50%; background: var(--peach); color: var(--coral-dark); font-size: 34px; }
.mobile-star { width: 64px; height: 64px; color: var(--sage-dark); font-size: 58px; }
.mobile-cloud { width: 100px; height: 38px; border-radius: 40px; background: var(--cream); box-shadow: 0 9px 22px rgba(91,87,72,.12); }
.mobile-cloud::before, .mobile-cloud::after { position: absolute; bottom: 0; border-radius: 50%; background: inherit; content: ""; }
.mobile-cloud::before { left: 17px; width: 44px; height: 48px; }
.mobile-cloud::after { right: 14px; width: 39px; height: 38px; }

.rsvp-section { position: relative; overflow: hidden; padding: 105px 20px; background: var(--cream); }
.rsvp-card { position: relative; z-index: 2; width: min(720px, 100%); margin: auto; padding: 62px 45px; border: 1px solid rgba(113,130,96,.25); border-radius: 34px; background: var(--white); box-shadow: 0 22px 55px rgba(91,86,70,.12); text-align: center; }
.rsvp-card::before { position: absolute; inset: 12px; border: 1px dashed rgba(214,127,120,.3); border-radius: 26px; content: ""; pointer-events: none; }
.rsvp-icon { position: relative; display: grid; width: 68px; height: 68px; place-items: center; margin: 0 auto 20px; border-radius: 50%; background: var(--peach); color: var(--coral-dark); font-size: 32px; }
.rsvp-card p { position: relative; max-width: 480px; margin: 0 auto 27px; color: var(--muted); line-height: 1.7; }
.rsvp-card > * { position: relative; }
.balloon-rsvp { top: 9%; left: 8%; transform: scale(1.25); opacity: .8; }
.rsvp-decor > span { position: absolute; color: var(--coral); animation: sparkle 2.5s ease-in-out infinite; }
.rsvp-decor > span:nth-of-type(1) { top: 20%; right: 12%; font-size: 28px; }
.rsvp-decor > span:nth-of-type(2) { right: 19%; bottom: 17%; font-size: 35px; animation-delay: -.8s; }
.rsvp-decor > span:nth-of-type(3) { bottom: 12%; left: 17%; font-size: 20px; animation-delay: -1.6s; }

.footer { display: grid; justify-items: center; gap: 5px; padding: 40px 20px; background: var(--ink); color: white; text-align: center; }
.footer-stars { color: var(--sage); letter-spacing: .35em; }
.footer strong { font-family: "Great Vibes", "Brush Script MT", cursive; font-size: 36px; font-style: normal; font-weight: 400; }
.footer small { color: #e6e5da; }

/* Sobre cerrado de entrada */
.sealed-invitation {
  position: relative;
  z-index: 5;
  display: grid;
  justify-items: center;
  width: min(580px, 100%);
  text-align: center;
}
.sealed-label {
  margin-bottom: 28px;
  color: var(--ink);
  font-family: "Playfair Display", serif;
  font-size: clamp(25px, 4vw, 36px);
  font-style: italic;
}
.sealed-envelope {
  position: relative;
  width: min(500px, calc(100vw - 42px));
  aspect-ratio: 1.45;
  filter: drop-shadow(0 26px 34px rgba(91, 81, 74, .2));
  animation: envelopeHover 4s ease-in-out infinite;
}
.sealed-envelope-back,
.sealed-envelope-front,
.sealed-envelope-flap {
  position: absolute;
  inset: 0;
  border-radius: 22px;
}
.sealed-envelope-back { background: #eab9b2; }
.sealed-envelope-flap {
  z-index: 2;
  overflow: hidden;
  background: var(--cream);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
}
.sealed-envelope-flap::after {
  position: absolute;
  inset: 12px;
  border: 1px dashed rgba(113,130,96,.3);
  clip-path: polygon(0 0, 100% 0, 50% 60%);
  content: "";
}
.sealed-envelope-flap > span {
  position: absolute;
  top: 18%;
  left: 50%;
  color: var(--sage-dark);
  transform: translateX(-50%);
  animation: sparkle 2.4s ease-in-out infinite;
}
.sealed-envelope-front {
  z-index: 3;
  overflow: hidden;
  background: var(--peach);
  clip-path: polygon(0 15%, 50% 60%, 100% 15%, 100% 100%, 0 100%);
}
.sealed-envelope-front::after {
  position: absolute;
  right: 15px;
  bottom: 15px;
  left: 15px;
  height: 46%;
  border-right: 1px dashed rgba(167,82,81,.2);
  border-bottom: 1px dashed rgba(167,82,81,.2);
  border-left: 1px dashed rgba(167,82,81,.2);
  border-radius: 0 0 14px 14px;
  content: "";
}
.seal-button {
  position: absolute;
  z-index: 6;
  top: 58%;
  left: 50%;
  display: grid;
  width: 100px;
  height: 100px;
  place-items: center;
  align-content: center;
  gap: 1px;
  padding: 0;
  border: 6px double rgba(255,255,255,.48);
  border-radius: 50%;
  background: var(--sage-dark);
  color: var(--cream);
  box-shadow: 0 10px 22px rgba(75,85,66,.28), inset 0 0 0 2px rgba(255,255,255,.2);
  transform: translate(-50%, -50%);
  animation: sealPulse 2.2s ease-in-out infinite;
}
.seal-button span { font-size: 22px; line-height: 1; }
.seal-button strong { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.seal-button:focus-visible { outline: 3px solid var(--coral-dark); outline-offset: 5px; }
.sealed-hint { margin: 28px 0 0; color: var(--ink); font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.sound-notice[hidden] { display: none; }
.sound-notice {
  position: fixed;
  z-index: 70;
  bottom: max(18px, env(safe-area-inset-bottom));
  left: 50%;
  min-height: 50px;
  padding: 0 20px;
  border: 1px solid var(--coral-dark);
  border-radius: 15px;
  background: var(--coral-dark);
  color: white;
  box-shadow: 0 15px 34px rgba(105,72,70,.28);
  font-weight: 700;
  transform: translateX(-50%);
  animation: soundNoticePulse 1.5s ease-in-out infinite;
}
.visually-hidden {
  position: absolute!important;
  width: 1px!important;
  height: 1px!important;
  overflow: hidden!important;
  clip: rect(0 0 0 0)!important;
  white-space: nowrap!important;
}

.reveal { opacity: 0; transform: translateY(28px); transition: opacity .85s ease var(--reveal-delay, 0ms), transform .85s ease var(--reveal-delay, 0ms); }
.reveal.is-revealed { opacity: 1; transform: none; }
.celebration-particle { position: fixed; z-index: 120; top: -20px; left: var(--x); width: 9px; height: 14px; border-radius: 3px; background: var(--color); pointer-events: none; animation: celebrationFall var(--duration) ease-in var(--delay) forwards; }

@keyframes balloonFloat { 0%,100% { translate: 0 0; rotate: -2deg; } 50% { translate: 0 -18px; rotate: 3deg; } }
@keyframes mobileSwing { 0%,100% { transform: rotate(-2deg); } 50% { transform: rotate(2deg); } }
@keyframes charmSwing { 0%,100% { transform: rotate(-3deg); } 50% { transform: rotate(4deg); } }
@keyframes letterRise { 0%,100% { transform: translate(-50%, 8px); } 50% { transform: translate(-50%, -8px); } }
@keyframes flapBreathe { 0%,100% { transform: rotateX(0deg); } 50% { transform: rotateX(9deg); } }
@keyframes cloudDrift { 0%,100% { translate: 0 0; } 50% { translate: -28px 5px; } }
@keyframes sparkle { 0%,100% { opacity: .35; transform: scale(.75) rotate(0); } 50% { opacity: 1; transform: scale(1.2) rotate(25deg); } }
@keyframes float { 0%,100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes scrollBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes numberPop { 0% { transform: scale(.88); opacity: .55; } 100% { transform: scale(1); opacity: 1; } }
@keyframes musicBar { from { height: 4px; } to { height: 14px; } }
@keyframes celebrationFall { 0% { opacity: 0; transform: translateY(-10px) rotate(0); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(105vh) rotate(620deg); } }
@keyframes envelopeHover { 0%,100% { transform: translateY(0) rotate(-.4deg); } 50% { transform: translateY(-10px) rotate(.4deg); } }
@keyframes sealPulse { 0%,100% { transform: translate(-50%,-50%) scale(1); } 50% { transform: translate(-50%,-50%) scale(1.06); } }
@keyframes soundNoticePulse { 0%,100% { box-shadow: 0 15px 34px rgba(105,72,70,.28); } 50% { box-shadow: 0 15px 40px rgba(167,82,81,.5); } }

/* Ilustraciones en acuarela extraídas de la referencia proporcionada */
.event-art {
  display: block;
  width: 104px;
  height: 104px;
  object-fit: contain;
  margin: 0 auto 18px;
  filter: drop-shadow(0 10px 16px rgba(87, 84, 69, .1));
}
.calendar-art { width: 92px; }
.location-art { width: 126px; }

.hero-bunny-art {
  position: absolute;
  z-index: 2;
  top: 5%;
  left: 2%;
  width: min(33vw, 455px);
  height: auto;
  filter: drop-shadow(0 20px 25px rgba(104,79,70,.12)) drop-shadow(0 3px 8px rgba(255,255,255,.36));
  animation: float 7s ease-in-out infinite;
}
.hero-sky > .moon { display: none; }

.wishes-art {
  position: relative;
  width: 390px;
  height: 430px;
  animation: none;
}
.wishes-mobile-art {
  position: absolute;
  top: 0;
  left: 2.5%;
  width: 95%;
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(87, 84, 69, .12));
  transform: none;
  transform-origin: 50% 0;
  animation: mobileSwing 5s ease-in-out infinite;
}
.wishes-bunny-art {
  position: absolute;
  z-index: 2;
  right: -2%;
  bottom: -3%;
  width: 40%;
  height: auto;
  filter: drop-shadow(0 13px 18px rgba(87, 84, 69, .12));
  animation: float 6s ease-in-out infinite reverse;
}

.countdown-section > .countdown-bunny-art {
  position: absolute;
  z-index: 2;
  bottom: 48px;
  left: max(8px, calc(50% - 570px));
  width: clamp(130px, 15vw, 205px);
  height: auto;
  filter: drop-shadow(0 14px 20px rgba(83, 91, 71, .14));
  animation: float 6s ease-in-out infinite;
}
.countdown-section > .section-shell { position: relative; z-index: 3; }

@media (min-width: 821px) {
  .hero-copy {
    width: min(650px, 65vw);
    transform: translateX(11vw);
  }
}

@media (max-width: 820px) {
  .welcome-content { grid-template-columns: 1fr; gap: 14px; max-width: 530px; padding: 24px 28px 30px; text-align: center; }
  .envelope-scene { width: 260px; height: 205px; }
  .envelope-back, .envelope-front { right: 8px; bottom: 10px; left: 8px; height: 145px; }
  .envelope-letter { width: 180px; height: 150px; }
  .envelope-letter strong { font-size: 43px; }
  .envelope-flap { top: 50px; right: 8px; left: 8px; height: 118px; }
  .envelope-seal { bottom: 56px; width: 36px; height: 36px; }
  .welcome-copy h1 { font-size: 56px; }
  .welcome-copy > p:not(.eyebrow) { margin-right: auto; margin-left: auto; font-size: 15px; }
  .event-grid { grid-template-columns: 1fr; max-width: 520px; margin-right: auto; margin-left: auto; }
  .event-card { min-height: 0; }
  .event-art { width: 92px; height: 92px; }
  .calendar-art { width: 82px; }
  .location-art { width: 112px; }
  .wishes-section { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .baby-mobile { transform: scale(.86); margin-bottom: -25px; }
  .wishes-art { width: 370px; height: 425px; transform: none; }
  .wishes-copy > p:not(.gift-note) { margin-right: auto; margin-left: auto; }
}

@media (max-width: 600px) {
  .welcome-screen { padding: 14px; background: linear-gradient(150deg, var(--cream) 0 32%, var(--peach) 32% 72%, var(--sage) 72%); }
  .welcome-content { max-height: calc(100svh - 28px); gap: 4px; padding: 18px 20px 22px; border-radius: 25px; }
  .envelope-scene { width: 220px; height: 172px; }
  .envelope-back, .envelope-front { height: 120px; }
  .envelope-letter { width: 154px; height: 124px; }
  .envelope-letter strong { font-size: 36px; }
  .envelope-letter small, .letter-stars { font-size: 9px; }
  .envelope-flap { top: 42px; height: 98px; }
  .envelope-seal { bottom: 46px; width: 31px; height: 31px; font-size: 13px; }
  .welcome-copy .eyebrow { margin-bottom: 7px; font-size: 9px; }
  .welcome-copy h1 { margin-bottom: 12px; font-size: 47px; }
  .welcome-copy > p:not(.eyebrow) { margin-bottom: 18px; font-size: 14px; line-height: 1.45; }
  .welcome-copy .primary-button { min-height: 48px; }
  .welcome-balloon, .cloud-welcome-right { display: none; }
  .music-toggle { top: 9px; right: 9px; }
  .hero { min-height: 950px; padding: 305px 16px 82px; }
  .hero-copy { width: min(100%, 540px); padding: 32px 21px 35px; border-radius: 28px; }
  .has-personalized-guest .hero-copy { display: flex; flex-direction: column; align-items: stretch; }
  .has-personalized-guest .baby-badge { order: 1; }
  .has-personalized-guest .guest-card { order: 2; margin-top: 10px; margin-bottom: 24px; }
  .has-personalized-guest .eyebrow { order: 3; }
  .has-personalized-guest #hero-title { order: 4; }
  .has-personalized-guest .hero-message { order: 5; }
  .has-personalized-guest .parents { order: 6; }
  .hero-copy::before { inset: 8px; border-radius: 21px; }
  .hero h1 { font-size: 55px; line-height: .88; }
  .hero h1 > span:first-child { margin-bottom: 15px; }
  .hero-message { font-size: 15px; line-height: 1.62; }
  .hero-bunny-art { top: 18px; left: calc(50% - 157px); width: 314px; }
  .rainbow { top: -95px; width: 360px; height: 200px; }
  .balloon-hero-one { top: 17%; right: -18px; transform: scale(.48); }
  .balloon-hero-two { bottom: 15%; left: -10px; transform: scale(.42); }
  .balloon-hero-three, .cloud-three { display: none; }
  .cloud-one { top: 25%; right: -155px; transform: scale(.72); }
  .cloud-two { bottom: 8%; left: -185px; transform: scale(.68); }
  .details { padding: 85px 0 78px; }
  .section-heading h2, .countdown-section h2, .wishes-copy h2, .rsvp-card h2 { font-size: 40px; }
  .event-card { padding: 25px 20px; border-radius: 22px; }
  .event-illustration { width: 78px; height: 78px; margin-bottom: 18px; }
  .clock-icon span::before, .clock-icon span::after { top: 39px; left: 39px; }
  .pin-icon span::after { top: 27px; left: 32px; }
  .countdown-section { padding: 82px 0 98px; }
  .countdown-section > .countdown-bunny-art { bottom: 55px; left: -8px; width: 120px; }
  .countdown { gap: 6px; margin-top: 30px; }
  .countdown div { padding: 20px 3px 18px; border-radius: 16px; }
  .countdown strong { font-size: 34px; }
  .countdown span { font-size: 7px; letter-spacing: .08em; }
  .wishes-section { padding-top: 75px; padding-bottom: 80px; }
  .baby-mobile { width: 300px; height: 325px; transform: scale(.82); }
  .wishes-art { width: 330px; height: 390px; transform: none; }
  .wishes-bunny-art { right: 0; width: 40%; }
  .rsvp-section { padding: 75px 14px; }
  .rsvp-card { padding: 48px 22px 38px; border-radius: 26px; }
  .whatsapp-button { width: 100%; padding: 0 14px; }
  .balloon-rsvp { left: -30px; transform: scale(.65); }
}

@media (max-height: 720px) and (max-width: 600px) {
  .welcome-content { grid-template-columns: 150px 1fr; max-width: 560px; gap: 14px; text-align: left; }
  .envelope-scene { width: 150px; height: 135px; transform: scale(.8); }
  .welcome-copy h1 { font-size: 39px; }
  .welcome-copy > p:not(.eyebrow) { font-size: 12px; }
}

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