* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(164, 173, 122, 0.18), transparent 32rem),
    radial-gradient(circle at 92% 24rem, rgba(138, 107, 69, 0.12), transparent 28rem),
    linear-gradient(180deg, #efe7d8 0%, var(--crema-claro) 38%, #e8ddc8 100%);
  color: var(--grafito-calido);
  font-family: var(--font-body);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(22, 40, 2, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(22, 40, 2, 0.02) 1px, transparent 1px);
  background-size: 34px 34px;
  content: "";
  opacity: 0.5;
}



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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}
.intro-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.intro-art {
  width: min(560px, 90vw);
  border-radius: 8px;
  mix-blend-mode: multiply;
  filter: drop-shadow(0 22px 38px rgba(12, 33, 29, 0.25));
}

.intro-screen h1,
.hero h2,
.section-heading h2,
.story-copy h2,
.gift-copy h2 {
  margin: 0;
  color: var(--verde-profundo);
  font-family: var(--font-display);
  font-size: clamp(54px, 11vw, 118px);
  font-weight: 400;
  line-height: 0.8;
}

.intro-date,
.hero-line {
  margin: 0;
  color: var(--blanco-calido);
  font-size: clamp(16px, 3vw, 22px);
  font-weight: 700;
}

.eyebrow {
  margin: 0;
  color: var(--cafe-madera);
  font-family: var(--font-stamp);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: space-between;
  padding: 12px clamp(18px, 5vw, 62px);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.42), transparent);
  color: var(--blanco-calido);
  backdrop-filter: none;
  transition: background 260ms ease, box-shadow 260ms ease, min-height 260ms ease;
}

.topbar.is-scrolled {
  min-height: 76px;
  background: rgba(94, 107, 58, 0.92);
  box-shadow: 0 18px 36px rgba(12, 33, 29, 0.14);
  backdrop-filter: blur(14px);
}

.brand {
  font-family: var(--font-display);
  font-size: clamp(38px, 3.8vw, 56px);
  line-height: 1;
  text-shadow: 0 5px 18px rgba(0, 0, 0, 0.4);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-stamp);
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.38);
}

.nav-links a {
  position: relative;
  padding: 0 20px;
}

.nav-links a + a::before {
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 28px;
  background: rgba(255, 250, 241, 0.58);
  content: "";
  transform: translateY(-50%);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: var(--cafe-madera);
  color: var(--blanco-calido);
  cursor: pointer;
  font-family: var(--font-stamp);
  font-size: 13px;
  letter-spacing: 0.08em;
  padding: 0 24px;
  text-transform: uppercase;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  box-shadow: var(--shadow-tight);
  transform: translateY(-2px);
}

.btn-light {
  background: var(--blanco-calido);
  color: var(--verde-profundo);
}

.btn-ghost {
  border: 1px solid rgba(255, 250, 241, 0.6);
  background: transparent;
  background-color: #cdbb9848;
}

.btn-small {
  min-height: 42px;
  margin-top: 16px;
  padding: 0 18px;
}

.hero {
  position: relative;
  z-index: 3;
  display: grid;
  min-height: 100vh;
  align-items: center;
  justify-items: start;
  padding: 128px 20px 120px;
  text-align: left;
  overflow: hidden;
}

.hero-photo {
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.28), rgba(0, 0, 0, 0.18) 42%, rgba(0, 0, 0, 0.46)),
    url("../img/galeria/pexels-josue-velasquez-282193995-16564828.jpg") center center / cover no-repeat;
  color: var(--blanco-calido);
}

.hero-photo::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 34%;
  background:
    linear-gradient(180deg, transparent 0%, rgba(245, 240, 230, 0.18) 48%, rgba(245, 240, 230, 0.92) 100%);
  content: "";
  pointer-events: none;
}

.section-dark {
  background-color: #cdbb98;
}

.hero-copy {
  position: relative;
  z-index: 3;
  display: grid;
  justify-items: start;
  gap: 16px;
  width: min(760px, calc(100% - 72px));
  margin: -4vh 0 14vh clamp(34px, 8vw, 112px);
}

.hero h2 {
  color: var(--blanco-calido);
  font-size: clamp(74px, 11.5vw, 142px);
  text-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.hero .eyebrow {
  color: var(--blanco-calido);
  font-size: clamp(16px, 2vw, 24px);
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.hero-line {
  max-width: 660px;
  margin: 0;
  color: var(--blanco-calido);
  font-size: clamp(18px, 2vw, 26px);
  font-weight: 700;
  line-height: 1.45;
  text-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 12px;
  margin-top: 12px;
}

.hero-clouds {
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  width: 100%;
  max-width: none;
    filter: drop-shadow(0 -18px 28px rgba(255, 250, 241, 0.22));
  pointer-events: none;
}

.hero-car {
  position: absolute;
  right: clamp(-60px, 3vw, 80px);
  bottom: clamp(20px, 5vw, 72px);
  z-index: 2;
  width: min(680px, 88vw);
  mix-blend-mode: multiply;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.32));
  mask-image: radial-gradient(ellipse 72% 66% at 50% 56%, #000 68%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 72% 66% at 50% 56%, #000 68%, transparent 100%);
}

.date-strip {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(980px, calc(100% - 32px));
  margin: -44px auto -12px;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 241, 0.62);
  background: rgba(255, 250, 241, 0.82);
  box-shadow: 0 24px 70px rgba(12, 33, 29, 0.16);
  backdrop-filter: blur(14px);
}

.date-strip.reveal {
  opacity: 1;
  transform: none;
}

.date-strip::before {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(164, 173, 122, 0.18), transparent 34%),
    linear-gradient(180deg, rgba(255, 250, 241, 0.6), rgba(255, 250, 241, 0.9));
  content: "";
  pointer-events: none;
}

.date-strip article {
  position: relative;
}

.date-strip article {
  display: grid;
  min-height: 150px;
  place-items: center;
  padding: 20px;
  text-align: center;
}

.date-strip article + article {
  border-left: 1px solid rgba(22, 40, 2, 0.12);
}

.date-strip span {
  color: rgba(94, 107, 58, 0.92);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.date-strip strong {
  color: var(--verde-profundo);
  font-family: var(--font-stamp);
  font-size: clamp(36px, 7vw, 62px);
  font-weight: 400;
}

.countdown-section,
.section-paper,
.story,
.rsvp,
.gifts,
.photos {
  position: relative;
  padding: clamp(78px, 10vw, 132px) clamp(18px, 6vw, 86px);
}

.countdown-section {
  isolation: isolate;
  overflow: hidden;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(245, 240, 230, 0.5) 0%, var(--crema-claro) 28%, #e9dfcc 100%);
  padding-top: clamp(74px, 9vw, 122px);
  padding-bottom: clamp(64px, 7vw, 96px);
}

.countdown-section::before,
.countdown-section::after,
.details::before,
.story::before,
.itinerary::before,
.dress::before,
.rsvp::before,
.gifts::before,
.photos::before {
  position: absolute;
  left: 0;
  right: 0;
  pointer-events: none;
  content: "";
}

.countdown-section::before {
  top: -1px;
  z-index: 0;
  height: 180px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(245, 240, 230, 0));
}

.countdown-section::after {
  bottom: -1px;
  z-index: 0;
  height: 150px;
  background: linear-gradient(180deg, transparent, rgba(216, 200, 168, 0.82));
}

.wide-divider {
  position: relative;
  z-index: 2;
  width: calc(100% + 12vw);
  max-width: none;
  margin: -28px -6vw 0;
  opacity: 0.86;
  filter: saturate(0.92);
  mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 16%, #000 82%, transparent 100%);
}

.wide-divider-t {
   transform: translatey(-30px);
     opacity: 0.76;

}

.bkg-torres {
  background-image: linear-gradient(#DECEBA, #E6D9C9);
}

.mountain-transition {
  position: relative;
  z-index: 0;
  width: calc(100% + 12vw);
  height: clamp(360px, 47vw, 640px);
  margin: -22px -6vw clamp(8px, 1.8vw, 24px);
  padding-top: clamp(62px, 7vw, 118px);
  overflow: hidden;
}

.mountain-transition .wide-divider {
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center 36%;
}

.mountain-divider {
  z-index: 1;
}

.birds-divider {
  position: absolute;
  inset: clamp(-78px, -6vw, -32px) auto auto 0;
  z-index: 3;
  opacity: 1;
  filter: drop-shadow(0 12px 18px rgba(12, 33, 29, 0.12));
  mask-image: none;
  -webkit-mask-image: none;
  pointer-events: none;
  transform: none;
}

.section-heading {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto 38px;
  text-align: center;
}

.section-heading h2,
.story-copy h2,
.gift-copy h2 {
  font-size: clamp(56px, 10vw, 108px);
}

.countdown {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 18px);
  width: min(900px, 100%);
  margin: 0 auto;
}

.countdown div {
  display: grid;
  min-height: clamp(118px, 14vw, 150px);
  place-items: center;
  border: 1px solid rgba(255, 250, 241, 0.74);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.92), rgba(245, 240, 230, 0.78));
  box-shadow: 0 18px 42px rgba(12, 33, 29, 0.09);
  backdrop-filter: blur(10px);
}

.countdown strong {
  color: var(--verde-profundo);
  font-family: var(--font-stamp);
  font-size: clamp(34px, 7vw, 60px);
  font-weight: 400;
}

.countdown span {
  color: var(--verde-olivo);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.details {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 10% 12%, rgba(164, 173, 122, 0.2), transparent 26rem),
    linear-gradient(180deg, rgba(216, 200, 168, 0.78), #efe6d6 42%, #eadfca 100%);
  padding: clamp(42px, 5vw, 66px) clamp(18px, 5vw, 70px) clamp(56px, 6vw, 82px);
}

.details::before {
  top: 0;
  z-index: 0;
  height: 170px;
  background:
    linear-gradient(180deg, rgba(216, 200, 168, 0.9), rgba(216, 200, 168, 0)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 241, 0.72), transparent 68%);
}

.details .section-heading {
  margin-bottom: clamp(18px, 3vw, 30px);
}

.details .section-heading h2 {
  font-size: clamp(58px, 8vw, 92px);
}

.detail-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 4vw, 38px);
  width: min(780px, 100%);
  margin: 0 auto;
  align-items: end;
}

.rsvp-panel {
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 241, 0.58);
  background: rgba(255, 250, 241, 0.84);
  box-shadow: 0 26px 70px rgba(12, 33, 29, 0.13);
  backdrop-filter: blur(8px);
}

.detail-card {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: clamp(4px, 1.2vw, 10px);
  text-align: center;
}

.detail-card img {
  width: min(330px, 100%);
  opacity: 0.96;
  filter: drop-shadow(0 14px 22px rgba(12, 33, 29, 0.12));
}

.detail-card-date img {
  width: min(230px, 78%);
}

.detail-card .btn-small {
  margin-top: 4px;
}

.detail-card p {
  margin: 0;
  color: var(--cafe-madera);
  font-family: var(--font-stamp);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.detail-card h3 {
  margin: 0;
  color: var(--verde-profundo);
  font-size: clamp(24px, 4vw, 34px);
}

.detail-card span,
.story-copy p,
.timeline-item p,
.dress-copy,
.rsvp-panel p,
.gift-copy p {
  color: rgba(43, 42, 34, 0.78);
  font-size: 16px;
  line-height: 1.75;
}

.story {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(0, 1fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: center;
  background:
    linear-gradient(180deg, rgba(234, 223, 202, 0.98), rgba(245, 240, 230, 0.9) 36%, rgba(232, 221, 200, 0.94)),
    url("../img/decoracion/Divisor-2-pc-ok-1-scaled.png") center bottom / contain no-repeat;
}

.story::before {
  top: -1px;
  z-index: 0;
  height: 180px;
  background:
    linear-gradient(180deg, rgba(234, 223, 202, 0.98), rgba(234, 223, 202, 0)),
    radial-gradient(ellipse at 50% 0%, rgba(255, 250, 241, 0.76), transparent 70%);
}

.story::after {
  position: absolute;
  inset: auto 0 0;
  z-index: 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(216, 200, 168, 0.58));
  content: "";
  pointer-events: none;
}

.story-art img {
  position: relative;
  z-index: 1;
  opacity: 0.87;
  width: min(560px, 100%);
  margin: 0 auto;
  filter: drop-shadow(0 28px 42px rgba(12, 33, 29, 0.22));
}

.story-copy {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 8px;
  background: linear-gradient(45deg, #d6c29d52, rgba(190, 175, 149, 0.47));
}

.story-copy p {
  margin: 16px 0 0;
  text-align: left;
}

.itinerary {
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(124, 131, 85, 0.2), transparent 24rem),
    linear-gradient(180deg, rgba(216, 200, 168, 0.88), #d8c8a8 48%, #cdbb98 100%);
  padding-top: 0;
}

.itinerary::before {
  top: 0;
  z-index: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(232, 221, 200, 0.86), rgba(216, 200, 168, 0));
}

.timeline {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.itinerary .wide-divider {
  display: block;
  width: 100vw;
  max-height: none;
  object-fit: contain;
  object-position: center bottom;
  margin-top: 0;
  margin-right: calc(50% - 50vw);
  margin-bottom: clamp(18px, 3vw, 36px);
  margin-left: calc(50% - 50vw);
  opacity: 0.95;
  mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 8%, #000 90%, transparent 100%);
}

.timeline-item {
  position: relative;
  min-height: 230px;
  padding: 26px 22px;
  border-radius: 8px;
  border: 1px solid rgba(255, 250, 241, 0.52);
  background: rgba(255, 250, 241, 0.74);
  box-shadow: 0 18px 42px rgba(12, 33, 29, 0.11);
  backdrop-filter: blur(7px);
}

.timeline-item span {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border-radius: 999px;
  background: var(--verde-profundo);
  color: var(--blanco-calido);
  font-family: var(--font-stamp);
  padding: 0 16px;
}

.timeline-item h3 {
  margin: 24px 0 8px;
  color: var(--verde-profundo);
  font-size: 24px;
}

.dress,
.photos {
  isolation: isolate;
  overflow: hidden;
  display: grid;
  justify-items: center;
  text-align: center;
}

.dress::before,
.photos::before {
  top: -1px;
  z-index: 0;
  height: 180px;
}

.dress > *,
.photos > * {
  position: relative;
  z-index: 1;
}

.dress .section-heading h2,
.photos .section-heading h2 {
  color: var(--blanco-calido);
}

.photos .section-heading h2 {
  color: var(--verde-profundo);
}

.dress-copy {
  max-width: 680px;
  margin: 0 auto;
  color: rgba(255, 250, 241, 0.82);
}

.photos .dress-copy {
  color: rgba(0, 0, 0, 0.72);
}

.photos {
  background-color:#e8ddc8 ;
}

.punctual {
  width: min(440px, 86vw);
  margin-top: 42px;
  opacity: 0.85;
}

.rsvp {
  isolation: isolate;
  overflow: hidden;
  background-color: #cdbb98;
  padding-top: clamp(110px, 13vw, 160px);
}

.rsvp::before {
  top: -1px;
  z-index: 0;
  height: 180px;
}

.rsvp-panel {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  margin: 0 auto;
  padding: clamp(28px, 6vw, 62px);
  border: 1px solid rgba(138, 107, 69, 0.18);
  border-radius: 8px 8px 8px 8px;
  background: rgba(255, 250, 241, 0.72);
  box-shadow: 0 28px 60px rgba(43, 42, 34, 0.12);
  color: var(--grafito-calido);
  text-align: center;
  backdrop-filter: blur(4px);
}

.rsvp-title {
  width: min(300px, 92%);
  margin: 0 auto 50px;
  filter: brightness(0) saturate(100%) invert(12%) sepia(16%) saturate(744%) hue-rotate(122deg) brightness(91%) contrast(92%);
  opacity: 0.9;
}

.rsvp-panel p {
  color: rgba(43, 42, 34, 0.78);
}

.rsvp-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
  text-align: left;
}

.rsvp-form label {
  display: grid;
  gap: 8px;
  color: var(--verde-profundo);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.rsvp-form .is-wide,
.rsvp-form button,
.form-message {
  grid-column: 1 / -1;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(12, 33, 29, 0.34);
  border-radius: 0;
  background: transparent;
  color: var(--grafito-calido);
  outline: none;
  padding: 10px 2px;
}

.rsvp-form option {
  color: var(--grafito-calido);
}

.rsvp-form button {
  justify-self: center;
}

.form-message {
  min-height: 28px;
  margin: 0;
  text-align: center;
}

.gifts {
  isolation: isolate;
  overflow: hidden;
   background: linear-gradient(#cdbb98, #e8ddc8);

}

.gifts::before {
  top: -1px;
  z-index: 0;
  height: 160px;
}

.gift-copy {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1fr);
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  width: min(980px, 100%);
  margin: 0 auto;
}

.gift-copy img {
  width: min(300px, 82vw);
  justify-self: center;
  filter: drop-shadow(0 18px 24px rgba(12, 33, 29, 0.14));
}

.photo-stack {
  width: min(430px, 86vw);
  margin-top: 38px;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.24));
}

.music-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: grid;
  width: 72px;
  height: 54px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--cafe-madera);
  color: var(--blanco-calido);
  box-shadow: var(--shadow-tight);
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.music-toggle.is-playing {
  background: var(--verde-olivo);
}

footer {
  display: grid;
  justify-items: center;
  gap: 12px;
  background-color: #EAE5D2;
  text-align: center;
}

footer img {
  transform: translatey(-50%); /* Ajuste fino de centrado */
  bottom: 100px; /* Ajusta este valor para subir o bajar la imagen */
  z-index: 10; /* Asegura que la imagen quede encima */
}

footer p {
  margin: 0;
  padding: 0 20px 34px;
  font-family: var(--font-stamp);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    inset: 78px 0 auto;
    display: grid;
    gap: 0;
    background: rgba(94, 107, 58, 0.98);
    font-family: var(--font-body);
    font-size: 12px;
    transform: translateY(-130%);
    transition: transform 260ms ease;
  }

  .nav-links.is-open {
    transform: translateY(0);
  }

  .nav-links a {
    padding: 18px clamp(18px, 5vw, 62px);
    border-top: 1px solid rgba(255, 250, 241, 0.16);
  }

  .nav-links a + a::before {
    display: none;
  }

  .date-strip,
  .detail-grid,
  .story,
  .timeline,
  .gift-copy {
    grid-template-columns: 1fr;
  }

  .date-strip article + article {
    border-top: 1px solid rgba(22, 40, 2, 0.12);
    border-left: 0;
  }

  .timeline-item {
    min-height: 0;
  }

  .story-copy {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 92vh;
    padding-top: 96px;
    align-items: center;
    justify-items: center;
    text-align: center;
  }

  .hero-copy {
    width: min(100%, calc(100% - 34px));
    justify-items: center;
    margin: -4vh auto 18vh;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-car {
    right: -170px;
    bottom: 12px;
    width: 600px;
  }

  .date-strip {
    margin-top: 0;
    width: 100%;
    border-radius: 0;
  }

  .countdown {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mountain-transition {
    width: calc(100% + 28vw);
    height: clamp(310px, 76vw, 440px);
    margin-top: -10px;
    margin-right: -14vw;
    margin-left: -14vw;
    padding-top: clamp(48px, 12vw, 80px);
  }

  .mountain-transition .wide-divider {
    object-position: center 34%;
  }

  .birds-divider {
    inset: -34px auto auto 0;
  }

  .rsvp-form {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .story-copy h2,
  .gift-copy h2 {
    font-size: clamp(54px, 18vw, 82px);
  }
}

/* Visual harmony pass */
:root {
  --paper-1: #f7f2e8;
  --paper-2: #eee4d2;
  --paper-3: #dfcfb2;
  --ink: #25251f;
  --forest: #18312b;
  --olive: #657044;
  --wood: #8a6844;
  --line: rgba(61, 54, 40, 0.16);
  --section-pad: clamp(88px, 11vw, 156px);
}

html {
  scroll-padding-top: 88px;
}

body {
  background: var(--paper-1);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  background-size: 180px 180px;
  opacity: 0.12;
}

.site-shell,
main {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

.topbar {
  min-height: 82px;
  padding: 10px clamp(20px, 5vw, 72px);
  background: linear-gradient(180deg, rgba(10, 20, 17, 0.72), rgba(10, 20, 17, 0));
}

.topbar.is-scrolled {
  min-height: 70px;
  border-bottom: 1px solid rgba(255, 250, 241, 0.18);
  background: rgba(24, 49, 43, 0.93);
  box-shadow: 0 12px 32px rgba(24, 34, 28, 0.16);
}

.brand {
  font-size: clamp(34px, 3.4vw, 52px);
  text-shadow: 0 4px 18px rgba(0, 0, 0, 0.28);
}

.brand span {
  display: inline-block;
  margin: 0 0.08em;
  font-family: var(--font-body);
  font-size: 0.48em;
  font-weight: 500;
  vertical-align: 0.32em;
}

.nav-links {
  gap: 2px;
  font-size: 13px;
  text-shadow: none;
}

.nav-links a {
  border-radius: 4px;
  padding: 12px 15px;
  transition: color 180ms ease, background-color 180ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(255, 250, 241, 0.12);
  color: #fff;
}

.nav-links a + a::before {
  display: none;
}

.btn {
  min-height: 50px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: var(--wood);
  box-shadow: 0 10px 24px rgba(55, 42, 28, 0.16);
  color: #fffdf7;
  font-size: 12px;
  line-height: 1.2;
  padding: 0 25px;
}

.btn:hover {
  background: #735536;
  box-shadow: 0 14px 30px rgba(55, 42, 28, 0.22);
}

.btn:focus-visible,
.menu-toggle:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #c49b54;
  outline-offset: 4px;
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(19, 33, 27, 0.34);
  box-shadow: none;
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: rgba(19, 33, 27, 0.62);
}

.hero {
  min-height: min(920px, 100svh);
  padding: 132px clamp(22px, 6vw, 96px) 128px;
}

.hero-photo {
  background:
    linear-gradient(90deg, rgba(10, 17, 14, 0.7) 0%, rgba(10, 17, 14, 0.34) 48%, rgba(10, 17, 14, 0.08) 75%),
    linear-gradient(180deg, rgba(8, 14, 12, 0.12), rgba(8, 14, 12, 0.18) 58%, rgba(8, 14, 12, 0.4)),
    url("../img/portada/hero-forest.webp") center 48% / cover no-repeat;
}

.hero-copy {
  gap: 18px;
  width: min(1080px, 92%);
  margin: -2vh 0 10vh clamp(0px, 3vw, 46px);
}

.hero h2 {
  max-width: 1080px;
  font-size: clamp(76px, 10vw, 142px);
  line-height: 0.78;
  text-wrap: balance;
}

.hero .eyebrow {
  order: -1;
  font-size: clamp(13px, 1.2vw, 17px);
  letter-spacing: 0.16em;
}

.hero-line {
  max-width: 610px;
  font-size: clamp(17px, 1.55vw, 22px);
  font-weight: 500;
  line-height: 1.55;
}

.hero-clouds {
  width: max(100%, 1320px);
  left: 50%;
  transform: translateX(-50%);
  filter: drop-shadow(0 -12px 24px rgba(255, 250, 241, 0.14));
}

.wedding-marquee {
  position: relative;
  z-index: 4;
  overflow: hidden;
  border-top: 1px solid rgba(255, 250, 241, 0.66);
  border-bottom: 1px solid var(--line);
  background: var(--paper-1);
  color: var(--forest);
}

.wedding-marquee div {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 17px 0;
  animation: invitation-marquee 28s linear infinite;
}

.wedding-marquee span {
  font-family: var(--font-stamp);
  font-size: 12px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  white-space: nowrap;
}

.wedding-marquee i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wood);
}

@keyframes invitation-marquee {
  to {
    transform: translateX(-50%);
  }
}

.countdown-section,
.section-paper,
.story,
.rsvp,
.gifts,
.photos {
  padding: var(--section-pad) clamp(20px, 6vw, 92px);
}

.section-heading {
  gap: 12px;
  max-width: 1120px;
  margin-bottom: clamp(38px, 5vw, 64px);
}

.section-heading h2,
.story-copy h2,
.gift-copy h2 {
  max-width: 1060px;
  font-size: clamp(58px, 8vw, 102px);
  line-height: 0.9;
  text-wrap: balance;
}

.eyebrow {
  color: #765b3d;
  font-size: 12px;
  letter-spacing: 0.15em;
}

.countdown-section {
  background: var(--paper-1);
  padding-top: clamp(82px, 9vw, 124px);
}

.countdown-section::before,
.countdown-section::after {
  display: none;
}

.countdown {
  width: min(860px, 100%);
  gap: clamp(8px, 1.5vw, 16px);
}

.countdown div {
  min-height: clamp(112px, 13vw, 148px);
  border: 1px solid rgba(99, 83, 57, 0.18);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 16px 34px rgba(67, 54, 36, 0.08);
}

.countdown strong {
  font-size: clamp(36px, 6vw, 58px);
}

.details {
  background: var(--paper-2);
  padding-top: clamp(78px, 9vw, 122px);
}

.details::before {
  height: 120px;
  background: linear-gradient(180deg, var(--paper-1), rgba(247, 242, 232, 0));
}

.detail-grid {
  width: min(820px, 100%);
  gap: clamp(32px, 7vw, 82px);
}

.detail-card {
  align-content: end;
  min-height: 420px;
  padding: 20px;
}

.detail-card img {
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 700ms ease;
}

.detail-card:hover img {
  filter: drop-shadow(0 20px 30px rgba(38, 43, 33, 0.18));
  transform: scale(1.035);
}

.story {
  min-height: 820px;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1fr);
  background:
    linear-gradient(180deg, rgba(238, 228, 210, 0.97), rgba(247, 242, 232, 0.94)),
    url("../img/decoracion/Divisor-2-pc-ok-1-scaled.png") center bottom / 100% auto no-repeat;
}

.story::before {
  background: linear-gradient(180deg, var(--paper-2), rgba(238, 228, 210, 0));
}

.story-copy {
  max-width: 680px;
  padding: clamp(24px, 4vw, 48px);
  border: 1px solid rgba(91, 75, 49, 0.12);
  background: rgba(255, 253, 247, 0.58);
  box-shadow: 0 24px 70px rgba(66, 53, 35, 0.09);
  backdrop-filter: blur(7px);
}

.story-copy h2 {
  line-height: 0.98;
}

.inline-memory {
  display: inline-block;
  width: clamp(72px, 9vw, 126px);
  height: clamp(34px, 4vw, 50px);
  margin: 0 0.08em;
  border: 3px solid rgba(255, 253, 247, 0.9);
  background: url("../img/decoracion/memory-inline.webp") center 54% / cover;
  box-shadow: 0 8px 18px rgba(43, 42, 34, 0.16);
  vertical-align: 0.12em;
  transform: rotate(-3deg);
}

.story-copy p,
.timeline-item p,
.dress-copy,
.rsvp-panel p,
.gift-copy p {
  color: rgba(37, 37, 31, 0.82);
  font-size: clamp(16px, 1.25vw, 18px);
  line-height: 1.75;
}

.bkg-torres {
  position: relative;
  overflow: hidden;
  background: var(--paper-2);
}

.bkg-torres::before,
.bkg-torres::after {
  position: absolute;
  z-index: 1;
  right: 0;
  left: 0;
  height: 18%;
  content: "";
  pointer-events: none;
}

.bkg-torres::before {
  top: 0;
  background: linear-gradient(180deg, var(--paper-2), transparent);
}

.bkg-torres::after {
  bottom: 0;
  background: linear-gradient(0deg, var(--paper-3), transparent);
}

.wide-divider-t {
  width: 100%;
  max-height: 720px;
  object-fit: cover;
  object-position: center 58%;
  opacity: 0.88;
  transform: scale(1.025);
}

.itinerary {
  background: var(--paper-3);
  padding-top: clamp(84px, 10vw, 134px);
}

.itinerary::before {
  background: linear-gradient(180deg, rgba(223, 207, 178, 0.92), rgba(223, 207, 178, 0));
}

.timeline {
  display: flex;
  width: min(1160px, 100%);
  gap: 10px;
}

.timeline-item {
  flex: 1 1 0;
  min-width: 0;
  min-height: 320px;
  overflow: hidden;
  border: 1px solid rgba(91, 75, 49, 0.16);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.72);
  box-shadow: 0 18px 42px rgba(59, 48, 32, 0.1);
  transition: flex 550ms cubic-bezier(0.2, 0.75, 0.2, 1), background-color 300ms ease, transform 300ms ease;
}

.timeline-item:hover,
.timeline-item:focus-within {
  flex: 1.55 1 0;
  background: rgba(255, 253, 247, 0.94);
  transform: translateY(-6px);
}

.timeline-item span {
  border-radius: 3px;
  background: var(--forest);
}

.dress {
  min-height: 650px;
  align-content: center;
  background:
    linear-gradient(rgba(20, 40, 35, 0.88), rgba(20, 40, 35, 0.88)),
    url("../img/decoracion/torres-del-paine.webp") center / cover no-repeat;
}

.dress::before {
  background: linear-gradient(180deg, var(--paper-3), rgba(223, 207, 178, 0));
}

.dress .eyebrow {
  color: #ddc9a7;
}

.dress-copy {
  color: rgba(255, 253, 247, 0.88);
}

.punctual {
  margin-top: 48px;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.rsvp {
  background: var(--paper-2);
}

.rsvp::before {
  background: linear-gradient(180deg, rgba(24, 49, 43, 0.2), rgba(238, 228, 210, 0));
}

.rsvp-panel {
  width: min(900px, 100%);
  border: 1px solid rgba(91, 75, 49, 0.17);
  border-radius: 6px;
  background: rgba(255, 253, 247, 0.75);
  box-shadow: 0 28px 70px rgba(59, 48, 32, 0.1);
}

.rsvp-form {
  gap: 26px 30px;
}

.rsvp-form input,
.rsvp-form select,
.rsvp-form textarea {
  min-height: 48px;
  border-bottom-color: rgba(24, 49, 43, 0.42);
  font-size: 16px;
}

.rsvp-form textarea {
  min-height: 132px;
  resize: vertical;
}

.gifts {
  background: var(--paper-1);
}

.gifts::before {
  background: linear-gradient(180deg, var(--paper-2), rgba(247, 242, 232, 0));
}

.gift-copy {
  width: min(1080px, 100%);
}

.gift-copy h2 {
  max-width: 760px;
}

.photos {
  min-height: 820px;
  background: var(--paper-2);
}

.photos::before {
  background: linear-gradient(180deg, var(--paper-1), rgba(247, 242, 232, 0));
}

.photos .dress-copy {
  color: rgba(37, 37, 31, 0.76);
}

.photo-stack {
  width: min(390px, 80vw);
  transition: transform 700ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.photo-stack:hover {
  transform: rotate(1.5deg) scale(1.025);
}

.music-toggle {
  width: 58px;
  height: 58px;
  border: 1px solid rgba(255, 253, 247, 0.42);
  border-radius: 50%;
  background: var(--wood);
  box-shadow: 0 12px 30px rgba(55, 42, 28, 0.22);
  color: #fff;
}

footer {
  gap: 0;
  background: #e8e0cf;
}

footer img {
  width: 100%;
  max-width: none;
  transform: none;
}

footer p {
  padding: 28px 20px 38px;
  color: var(--forest);
}

.gsap-ready .reveal {
  opacity: 1;
  transform: none;
  transition: none;
}

@media (max-width: 980px) {
  .topbar {
    min-height: 72px;
  }

  .nav-links {
    inset: 72px 14px auto;
    overflow: hidden;
    border: 1px solid rgba(255, 250, 241, 0.14);
    border-radius: 6px;
    background: rgba(24, 49, 43, 0.97);
    box-shadow: 0 22px 48px rgba(12, 25, 21, 0.24);
  }

  .nav-links a {
    padding: 17px 22px;
  }

  .story {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr);
    gap: 28px;
  }

  .timeline {
    display: grid;
    grid-auto-flow: dense;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-item,
  .timeline-item:hover,
  .timeline-item:focus-within {
    min-height: 250px;
    transform: none;
  }
}

@media (max-width: 720px) {
  :root {
    --section-pad: clamp(72px, 20vw, 104px);
  }

  .brand {
    font-size: 36px;
  }

  .hero {
    min-height: 88svh;
    align-items: end;
    padding: 116px 20px 152px;
    text-align: left;
  }

  .hero-photo {
    background:
      linear-gradient(180deg, rgba(8, 14, 12, 0.08) 20%, rgba(8, 14, 12, 0.72) 78%),
      url("../img/portada/hero-forest.webp") 58% center / cover no-repeat;
  }

  .hero-copy {
    justify-items: start;
    width: 100%;
    margin: 0 0 6vh;
  }

  .hero h2 {
    max-width: 100%;
    font-size: clamp(66px, 22vw, 100px);
    line-height: 0.8;
  }

  .hero-line {
    max-width: 520px;
    font-size: 17px;
  }

  .hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-actions .btn {
    flex: 1 1 180px;
  }

  .hero-clouds {
    width: 980px;
  }

  .wedding-marquee div {
    padding: 14px 0;
  }

  .section-heading h2,
  .story-copy h2,
  .gift-copy h2 {
    font-size: clamp(54px, 17vw, 82px);
  }

  .story {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .story-art {
    order: 2;
  }

  .story-copy {
    padding: 28px 22px;
  }

  .inline-memory {
    width: 72px;
    height: 32px;
  }

  .wide-divider-t {
    min-height: 340px;
    object-position: center;
  }

  .timeline {
    grid-template-columns: 1fr;
  }

  .timeline-item {
    min-height: 0;
    padding: 24px;
  }

  .dress {
    min-height: 590px;
  }

  .rsvp-panel {
    padding: 34px 20px;
  }

  .rsvp-title {
    margin-bottom: 28px;
  }

  .gift-copy {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .gift-copy div {
    display: grid;
    justify-items: center;
  }

  .music-toggle {
    right: 14px;
    bottom: 14px;
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 440px) {
  .hero h2 {
    font-size: clamp(60px, 20vw, 84px);
  }

  .countdown {
    gap: 8px;
  }

  .countdown div {
    min-height: 106px;
  }

  .countdown strong {
    font-size: 34px;
  }

  .detail-card {
    min-height: 0;
    padding: 8px;
  }

  .detail-grid {
    gap: 44px;
  }

  .rsvp-form {
    gap: 22px;
  }
}

@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;
  }
}
