:root {
  --black: #141414;
  --charcoal: #1f1c1a;
  --champagne: #d9c39a;
  --champagne-soft: #f2e8d2;
  --paper: #f7f1e6;
  --white: #fffaf1;
  --muted: #8b8172;
  --line: rgba(217, 195, 154, .24);
  --max: 1180px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--champagne-soft);
  background: var(--black);
  font-family: "DM Sans", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Libre Baskerville", Georgia, serif; line-height: 1.08; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(20, 20, 20, .88);
  backdrop-filter: blur(12px);
}
.nav {
  width: min(var(--max), calc(100% - 34px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--champagne);
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(22px, 3vw, 34px);
  text-decoration: none;
  white-space: nowrap;
}
.brand i { color: var(--white); font-style: normal; }
.menu {
  display: flex;
  align-items: center;
  gap: 16px;
  color: rgba(242, 232, 210, .82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.menu a { text-decoration: none; }
.menu .nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  color: var(--black);
  background: var(--champagne);
  border-radius: 999px;
}
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--champagne);
  font-size: 28px;
}

.hero {
  min-height: calc(100vh - 76px);
  width: min(1440px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(24px, 5vw, 70px);
  align-items: center;
  padding: clamp(46px, 7vw, 90px) clamp(18px, 6vw, 80px);
}
.hero-copy p,
.person p,
.venue-split p {
  margin: 0 0 14px;
  color: var(--champagne);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-copy h1 {
  margin: 0;
  font-size: clamp(54px, 8vw, 118px);
}

.hero-copy {
  text-align: center;
}

.hero-meta {
  justify-content: center;
}
.hero-copy em { color: var(--champagne); font-style: normal; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.hero-meta span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  color: rgba(242, 232, 210, .82);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.hero-copy a,
.venue-split a,
.promo a,
.rsvp-card button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 22px;
  color: var(--black);
  background: var(--champagne);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}
.hero-gallery {
  position: relative;
  min-height: 620px;
}
.hero-main {
  width: 78%;
  height: 620px;
  margin-left: auto;
  object-fit: cover;
}
.hero-small {
  position: absolute;
  width: 210px;
  aspect-ratio: 1;
  object-fit: cover;
  border: 12px solid var(--black);
}
.hero-small.one { left: 0; top: 70px; }
.hero-small.two { left: 12%; bottom: 40px; }

.countdown-band,
.promo,
.quick-contact {
  padding: 58px 20px;
  background: var(--champagne);
  color: var(--black);
  text-align: center;
}
.countdown-band h2,
.section-head h2,
.quick-contact h2,
.rsvp h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
}

.countdown-band h2 {
  font-size: clamp(30px, 4vw, 48px);
}
.countdown {
  width: min(860px, 100%);
  margin: 30px auto 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.countdown div {
  padding: 22px 10px;
  border: 1px solid rgba(20,20,20,.18);
}
.countdown strong { display: block; font-size: clamp(36px, 6vw, 64px); line-height: 1; }
.countdown span { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.countdown-band p {
  max-width: 620px;
  margin: 0 auto;
  font-family: "Libre Baskerville", Georgia, serif;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.35;
}

.couple,
.story,
.venue,
.schedule,
.special,
.faq,
.rsvp {
  padding: 96px 0;
}
.section-head {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2::after {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: 18px auto 0;
  background: var(--champagne);
  transform: rotate(45deg);
  box-shadow: -17px 17px 0 rgba(217,195,154,.5), 17px -17px 0 rgba(217,195,154,.5);
}

.couple-layout {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: .8fr 1.2fr .8fr;
  gap: 24px;
  align-items: center;
}
.person {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 22px;
  text-align: center;
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.person img { width: 190px; aspect-ratio: 1; object-fit: cover; }
.person img { margin: 0 auto; border-radius: 50%; }
.person h3 { margin: 0 0 10px; font-size: 38px; }
.person > div > span { color: rgba(242,232,210,.72); font-size: 14px; }
.socials { display: flex; gap: 9px; margin-top: 18px; }
.socials { justify-content: center; }
.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-slider {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(280px, 460px) auto;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}
.carousel-frame {
  aspect-ratio: 1;
  overflow: hidden;
  border: 12px solid var(--charcoal);
  outline: 1px solid var(--line);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(217, 195, 154, .16);
}
.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 {
  width: 48px;
  height: 48px;
  border: 1px solid var(--line);
  color: var(--black);
  background: var(--champagne);
  border-radius: 50%;
  font-size: 30px;
}
.carousel-dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 8px; }
.carousel-dots button { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 50%; background: rgba(217,195,154,.35); }
.carousel-dots .active { background: var(--champagne); }

.story { background: var(--charcoal); }
.story-timeline {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.story-timeline article {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 26px;
  align-items: center;
  padding: 18px;
  border: 1px solid var(--line);
}
.story-timeline article:nth-child(even) {
  grid-template-columns: 1fr 260px;
}
.story-timeline article:nth-child(even) img { order: 2; }
.story-timeline img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.story-timeline time { color: var(--champagne); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.story-timeline h3 { margin: 8px 0; font-size: 34px; }
.story-timeline p { margin: 0; color: rgba(242,232,210,.72); }

.promo img { width: 250px; margin: 0 auto 14px; filter: brightness(0); }
.promo h2 { margin: 0; font-size: clamp(32px, 5vw, 54px); }
.promo p { max-width: 660px; margin: 12px auto 0; }
.promo a { color: var(--champagne); background: var(--black); }

.venue-split {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.venue-split article {
  background: var(--charcoal);
  border: 1px solid var(--line);
}
.venue-split img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.venue-split article > div { padding: 28px; text-align: center; }
.venue-split h3 { margin: 0 0 12px; font-size: 40px; }
.venue-split span { display: block; color: rgba(242,232,210,.72); }
.venue-split iframe { width: 100%; height: 230px; margin-top: 18px; border: 0; }
.transport { margin-top: 16px; padding: 16px; background: rgba(255,255,255,.04); }
.transport strong { display: block; color: var(--champagne); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.transport span { font-size: 14px; }

.schedule { background: var(--charcoal); }
.schedule-board {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.schedule-board article { padding: 26px; border: 1px solid var(--line); }
.schedule-board span { color: var(--champagne); font-size: 34px; font-weight: 800; }
.schedule-board h3 { margin: 10px 0 8px; font-size: 30px; }
.schedule-board p { margin: 0; color: rgba(242,232,210,.72); }

.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(--charcoal); 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(--champagne); 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(--charcoal); }
.faq-list { width: min(900px, calc(100% - 34px)); margin: 0 auto; display: grid; gap: 10px; }
.faq-item { 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; color: var(--champagne-soft); background: transparent; font: inherit; font-weight: 800; text-align: left; }
.faq-question span { color: var(--champagne); 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: rgba(242,232,210,.72); }
.faq-item.open .faq-answer { max-height: 220px; }

.quick-contact {
  width: min(var(--max), calc(100% - 34px));
  margin: -46px auto 96px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  text-align: left;
}
.quick-contact h2 { text-align: left; }
.quick-contact p { margin: 10px 0 0; }
.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(20,20,20,.72), rgba(20,20,20,.72)), url("../images/countdown-bg.png") center / cover;
}
.rsvp-card {
  width: min(840px, calc(100% - 34px));
  margin: 0 auto;
  padding: clamp(30px, 5vw, 58px);
  text-align: center;
  background: rgba(20,20,20,.58);
  border: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.rsvp-card p { max-width: 640px; margin: 14px auto 28px; color: rgba(242,232,210,.78); }
.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; white-space: nowrap; }
.rsvp-card :disabled { opacity: 1; cursor: default; }

.footer {
  padding: 64px 20px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 20%, rgba(217, 195, 154, .14), transparent 28%),
    radial-gradient(circle at 82% 85%, rgba(217, 195, 154, .08), transparent 30%),
    linear-gradient(135deg, #1f1c1a, #141414),
    var(--black);
}
.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: "Libre Baskerville", 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) {
  .nav { width: 100%; min-height: 66px; padding: 0 16px; }
  .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(--black);
    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; align-items: center; justify-content: center; }
  .menu .nav-cta { justify-content: center; }
  .hero,
  .couple-layout,
  .venue-split,
  .schedule-board,
  .quick-contact {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-gallery { min-height: auto; }
  .hero-main {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    margin: 0 auto;
  }
  .hero-small {
    position: static;
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border-width: 8px;
  }
  .hero-gallery {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .hero-main {
    grid-column: 1 / -1;
  }
  .person { grid-template-columns: 1fr; text-align: center; }
  .person img { margin: 0 auto; }
  .socials { justify-content: center; }
  .memory-slider { order: 3; grid-template-columns: auto minmax(0, 1fr) auto; }
  .story-timeline article,
  .story-timeline article:nth-child(even) {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .story-timeline article:nth-child(even) img { order: 0; }
  .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; }
  .special-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .special-grid article {
    padding: 14px 14px 22px;
  }
}

@media (max-width: 560px) {
  .countdown,
  .special-grid {
    grid-template-columns: 1fr;
  }
  .brand { overflow: hidden; font-size: clamp(22px, 7vw, 30px); text-overflow: ellipsis; }
  .hero-copy h1 { font-size: clamp(46px, 15vw, 72px); }
  .hero-gallery {
    min-height: 420px;
  }
  .hero-main {
    width: 76%;
  }
  .hero-small {
    width: 38%;
  }
  .rsvp-card button { white-space: normal; }
}

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


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