:root {
  --ink: #241f1f;
  --muted: #756a66;
  --paper: #f7efea;
  --soft: #fff9f4;
  --clay: #9d5f52;
  --berry: #743246;
  --plum: #3f2634;
  --line: #ead8cf;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Manrope, Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: Fraunces, Georgia, serif; line-height: 1.03; }

.float-header {
  position: fixed;
  top: 22px;
  left: 0;
  right: 0;
  z-index: 40;
  pointer-events: none;
}
.nav {
  width: min(1060px, calc(100% - 36px));
  min-height: 68px;
  margin: 0 auto;
  padding: 0 12px 0 22px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 22px;
  background: rgba(255, 249, 244, .92);
  border: 1px solid rgba(234, 216, 207, .9);
  border-radius: 999px;
  box-shadow: 0 22px 60px rgba(63, 38, 52, .14);
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.brand {
  min-width: 0;
  color: var(--berry);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(24px, 3vw, 36px);
  text-decoration: none;
  white-space: nowrap;
}
.brand b { color: var(--clay); font-weight: 500; }
.menu {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.menu a { text-decoration: none; color: var(--muted); }
.menu .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: #fff;
  background: var(--berry);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  justify-self: end;
  border: 0;
  background: transparent;
  color: var(--berry);
  font-size: 28px;
  line-height: 1;
}

.hero {
  min-height: 100vh;
  position: relative;
  display: grid;
  place-items: center;
  padding: 130px 20px 70px;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(63, 38, 52, .76), rgba(63, 38, 52, .22));
}
.hero-panel {
  width: min(720px, 100%);
  padding: clamp(34px, 6vw, 68px);
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,.36);
  background: rgba(63, 38, 52, .22);
  backdrop-filter: blur(10px);
}
.hero-panel p,
.person p,
.venue-cards p {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-panel h1 {
  margin: 0;
  font-size: clamp(56px, 10vw, 116px);
}
.hero-panel h1 b { color: #f0b79f; font-weight: 500; }
.hero-panel > span {
  display: block;
  margin-top: 24px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-note {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: 42px;
  display: grid;
  gap: 2px;
  padding: 18px 22px;
  color: #fff;
  background: rgba(116, 50, 70, .82);
  backdrop-filter: blur(10px);
}
.hero-note strong { font-family: Fraunces, Georgia, serif; font-size: 24px; }
.hero-note span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

.count-strip {
  padding: 30px 20px;
  background: var(--plum);
}

.count-kicker,
.count-caption {
  margin: 0 auto;
  color: #fff;
  text-align: center;
}

.count-kicker {
  margin-bottom: 18px;
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(30px, 4vw, 48px);
}

.count-caption {
  margin-top: 18px;
  color: rgba(255, 255, 255, .82);
  font-family: Fraunces, Georgia, serif;
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.35;
}
.countdown {
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.countdown div {
  padding: 24px 14px;
  color: #fff;
  text-align: center;
  border: 1px solid rgba(255,255,255,.18);
}
.countdown strong { display: block; font-size: clamp(34px, 5vw, 60px); line-height: 1; }
.countdown span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }

.couple {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  padding: 94px 0;
  display: grid;
  grid-template-columns: .9fr 1.2fr .9fr;
  gap: 26px;
  align-items: center;
}
.person {
  padding: 22px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: 0 20px 48px rgba(63, 38, 52, .08);
}
.person img {
  width: 190px;
  aspect-ratio: 1;
  margin: 0 auto 20px;
  object-fit: cover;
  border-radius: 50%;
}
.person p { color: var(--clay); }
.person h2 { margin: 0 0 10px; font-size: 42px; }
.person > span { color: var(--muted); font-size: 14px; }
.socials { display: flex; justify-content: center; gap: 9px; margin-top: 20px; }
.socials a { width: 38px; height: 38px; display: grid; place-items: center; color: #fff; border-radius: 50%; }
.socials svg { width: 18px; height: 18px; fill: currentColor; }
.facebook { background: #1877f2; }
.instagram { background: linear-gradient(135deg, #f58529, #dd2a7b 45%, #8134af 78%, #515bd4); }
.tiktok { background: #111; box-shadow: inset 3px 0 0 #25f4ee, inset -3px 0 0 #fe2c55; }

.memory-orbit {
  position: relative;
  padding: 16px;
  background: var(--soft);
  border: 1px solid var(--line);
  box-shadow: 0 28px 60px rgba(63, 38, 52, .14);
}
.carousel-frame { aspect-ratio: 1; overflow: hidden; border-radius: 50% 50% 8px 8px; }
.carousel-track { height: 100%; display: flex; transition: transform .6s ease; }
.carousel-track img { width: 100%; height: 100%; flex: 0 0 100%; object-fit: cover; }
.carousel-button {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--berry);
  font-size: 28px;
  transform: translateY(-50%);
}
.carousel-button.prev { left: -8px; }
.carousel-button.next { right: -8px; }
.carousel-dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: #d7beb3; }
.carousel-dots .active { background: var(--berry); }

.story,
.schedule,
.venue,
.special,
.faq,
.rsvp {
  padding: 94px 0;
}
.bb-gallery h2,
.story h2,
.schedule h2,
.venue h2,
.special h2,
.faq h2,
.quick-contact h2,
.rsvp h2 {
  margin: 0 0 44px;
  text-align: center;
  font-size: clamp(38px, 6vw, 70px);
}
.bb-gallery h2::after,
.story h2::after,
.schedule h2::after,
.venue h2::after,
.special h2::after,
.faq h2::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 18px auto 0;
  background: var(--clay);
  transform: rotate(45deg);
  box-shadow: -17px 17px 0 rgba(157,95,82,.48), 17px -17px 0 rgba(157,95,82,.48);
}
.story { background: var(--soft); }
.story-mosaic {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.story-mosaic article {
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(63, 38, 52, .06);
}
.story-mosaic img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-mosaic div { padding: 20px; }
.story-mosaic time { color: var(--clay); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-mosaic h3 { margin: 8px 0; font-size: 28px; }
.story-mosaic p { margin: 0; color: var(--muted); font-size: 14px; }

.schedule { background: var(--paper); }
.schedule-lanes {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.schedule-lanes article {
  padding: 26px;
  background: var(--soft);
  border: 1px solid var(--line);
}
.schedule-lanes span { color: var(--berry); font-size: 36px; font-weight: 800; }
.schedule-lanes h3 { margin: 10px 0 8px; font-size: 30px; }
.schedule-lanes p { margin: 0; color: var(--muted); }

.promo {
  padding: 48px 20px;
  color: #fff;
  text-align: center;
  background: var(--berry);
}
.promo img { width: 250px; margin: 0 auto 14px; filter: brightness(0) invert(1); }
.promo h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); }
.promo p { max-width: 660px; margin: 12px auto 0; color: rgba(255,255,255,.84); }
.promo a { min-height: 46px; display: inline-flex; align-items: center; margin-top: 22px; padding: 0 22px; color: var(--berry); background: #fff; border-radius: 999px; font-weight: 800; text-decoration: none; }

.venue { background: var(--soft); }
.venue-cards {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.venue-cards article { background: var(--paper); border: 1px solid var(--line); }
.venue-cards > article > img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-cards article > div { padding: 28px; text-align: center; }
.venue-cards p { color: var(--clay); }
.venue-cards h3 { margin: 0 0 12px; font-size: 40px; }
.venue-cards article span { display: block; color: var(--muted); }
.venue-cards a { min-height: 40px; display: inline-flex; align-items: center; margin-top: 20px; padding: 0 18px; color: #fff; background: var(--berry); border-radius: 999px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-decoration: none; text-transform: uppercase; }
.venue-cards iframe { width: 100%; height: 230px; margin-top: 18px; border: 0; }
.transport { margin-top: 16px; padding: 16px; background: var(--soft); }
.transport strong { display: block; color: var(--berry); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.transport span { color: var(--muted); font-size: 14px; }

.special { background: var(--paper); }
.special-grid {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.special-grid article { padding: 12px 12px 22px; background: var(--soft); border: 1px solid var(--line); text-align: center; }
.special-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.special-grid span { display: block; margin-top: 16px; color: var(--clay); font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.special-grid h3 { margin: 4px 0 0; font-size: 26px; }

.faq { background: var(--soft); }
.faq-list { width: min(900px, calc(100% - 34px)); margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); }
.faq-question { width: 100%; min-height: 62px; padding: 0 20px; display: flex; justify-content: space-between; align-items: center; gap: 16px; border: 0; background: transparent; font: inherit; font-weight: 800; text-align: left; }
.faq-question span { color: var(--berry); font-size: 24px; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height .32s ease; }
.faq-answer p { margin: 0; padding: 0 20px 20px; color: var(--muted); }
.faq-item.open .faq-answer { max-height: 220px; }

.quick-contact {
  width: min(var(--max), calc(100% - 34px));
  margin: -46px auto 94px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: var(--plum);
}
.quick-contact h2 { margin: 0; text-align: left; }
.quick-contact p { margin: 10px 0 0; color: rgba(255,255,255,.84); }
.quick-actions { display: grid; gap: 12px; }
.quick-actions a { min-height: 54px; display: flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: #25d366; border-radius: 10px; font-weight: 800; text-decoration: none; }
.quick-actions svg { width: 24px; height: 24px; fill: currentColor; }
.quick-actions a > span { display: inline-flex; gap: 4px; }

.rsvp {
  background: linear-gradient(rgba(63,38,52,.7), rgba(63,38,52,.7)), url("../images/countdown-bg.png") center / cover;
}
.rsvp-card {
  width: min(840px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  color: #fff;
  text-align: center;
  background: rgba(255,255,255,.14);
  backdrop-filter: blur(12px);
}
.rsvp-card p { max-width: 640px; margin: 14px auto 28px; color: rgba(255,255,255,.86); }
.rsvp-card form { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .75fr) minmax(0, .75fr) minmax(190px, auto); gap: 10px; }
.rsvp-card input, .rsvp-card select, .rsvp-card button { width: 100%; min-height: 50px; border: 0; padding: 0 14px; font: inherit; }
.rsvp-card button { margin: 0; color: #fff; background: var(--berry); white-space: nowrap; }
.rsvp-card :disabled { opacity: 1; cursor: default; }

.footer {
  padding: 64px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, .16), transparent 28%),
    radial-gradient(circle at 82% 85%, rgba(255, 255, 255, .1), transparent 30%),
    linear-gradient(135deg, rgba(116,50,70,.98), rgba(63,38,52,.96)),
    var(--plum);
}
.footer-inner { width: min(var(--max), 100%); margin: 0 auto; display: grid; grid-template-columns: 1fr auto 1fr; gap: 28px; align-items: center; }
.footer .eyebrow { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.footer h2 { margin: 0; font-size: clamp(38px, 6vw, 70px); }
.footer p:not(.eyebrow) { margin: 10px 0 0; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.footer img { width: 150px; min-height: 90px; object-fit: contain; }
.footer address { display: grid; gap: 8px; justify-self: end; font-style: normal; text-align: right; }
.footer address strong { font-family: Fraunces, Georgia, serif; font-size: 30px; }
.footer a { color: inherit; text-decoration: none; }

.reveal-section { opacity: 0; transform: translateY(32px); transition: opacity .72s ease, transform .72s ease; }
.reveal-section.is-visible { opacity: 1; transform: translateY(0); }

@media (max-width: 980px) {
  .float-header { top: 0; }
  .nav { width: 100%; min-height: 66px; border: 0; border-radius: 0; box-shadow: none; grid-template-columns: 1fr auto; padding: 0 16px; }
  .brand { overflow: hidden; font-size: clamp(23px, 7vw, 34px); text-overflow: ellipsis; }
  .menu-toggle { display: block; }
  .menu {
    position: absolute;
    left: 0;
    right: 0;
    top: 66px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0 16px;
    background: var(--soft);
    opacity: 0;
    transition: max-height .34s ease, opacity .24s ease, padding .34s ease;
  }
  .menu.open { max-height: 520px; padding: 10px 16px 14px; opacity: 1; }
  .menu a { min-height: 42px; display: flex; justify-content: center; align-items: center; }
  .menu .nav-cta { justify-content: center; }
  .hero { padding-top: 88px; }
  .hero-note { position: static; margin-top: 18px; text-align: center; }
  .couple,
  .schedule-lanes,
  .venue-cards,
  .quick-contact {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .story-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    text-align: center;
  }
  .person-right { order: 2; }
  .memory-orbit { order: 3; }
  .quick-contact h2 { text-align: center; }
  .quick-actions a { width: 100%; }
  .rsvp-card form { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; text-align: center; }
  .footer address { justify-self: center; text-align: center; }
}

@media (max-width: 560px) {
  .countdown,
  .special-grid,
  .story-mosaic {
    grid-template-columns: 1fr;
  }
  .hero-panel { padding: 30px 18px; }
  .hero-panel h1 { font-size: clamp(46px, 15vw, 72px); }
  .rsvp-card button { white-space: normal; }
}

/* Edad de los novios (añadido por la plataforma) */
.person p.age {
  margin: 2px 0 18px;
  color: var(--berry);
  font-weight: 700;
}


/* === Pulido con datos incompletos (Boda Bonita) === */
.couple.no-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.venue-cards > article:only-child { grid-column: 1 / -1; max-width: 560px; margin-inline: auto; }
