:root {
  --paper: #f7f2e8;
  --ivory: #fffdf7;
  --sage: #5f7157;
  --sage-dark: #344337;
  --gold: #b59663;
  --ink: #22261f;
  --muted: #706b61;
  --line: #ded3c0;
  --rose: #9f2432;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito Sans", Arial, sans-serif;
  line-height: 1.65;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: Marcellus, Georgia, serif; line-height: 1.05; }

.side-nav {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 20;
  width: 178px;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  background: var(--ivory);
  border-right: 1px solid var(--line);
  box-shadow: 12px 0 34px rgba(52, 67, 55, .08);
}
.seal {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--sage-dark);
  font-family: Marcellus, Georgia, serif;
  font-size: 17px;
  text-decoration: none;
  background: #fff;
  box-shadow: 0 14px 28px rgba(52, 67, 55, .08);
}
.seal img { width: 20px; height: 20px; }
.side-nav nav {
  display: grid;
  width: 100%;
  gap: 2px;
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.side-nav nav a {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 0 10px;
  color: var(--sage-dark);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.side-nav nav a:hover {
  color: var(--sage-dark);
  background: #fff;
  border-color: var(--line);
  transform: translateX(2px);
}
.side-nav nav .side-cta {
  margin-top: 8px;
  color: #fff;
  background: var(--sage-dark);
  border-color: var(--sage-dark);
}
.side-nav nav .side-cta:hover {
  color: #fff;
  background: var(--sage);
  border-color: var(--sage);
}
.menu-toggle { display: none; border: 0; background: transparent; font-size: 28px; }
.mobile-brand { display: none; }
main { margin-left: 178px; }

.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--sage-dark);
}
.hero-image { min-height: 620px; }
.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.92);
}
.hero-card {
  margin: clamp(32px, 6vw, 82px);
  padding: clamp(34px, 6vw, 72px);
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  color: var(--sage-dark);
  background: var(--ivory);
  border: 1px solid var(--line);
}
.hero-card p,
.couple article p,
.venue-info p {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.hero-card h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(54px, 8vw, 108px);
}
.hero-card h1 span:nth-child(2) {
  color: var(--gold);
}
.hero-card strong {
  margin-top: 22px;
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.hero-card a,
.venue-info a,
.promo a,
.rsvp-card button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  padding: 0 22px;
  color: #fff;
  background: var(--sage-dark);
  border: 0;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .12em;
  text-decoration: none;
  text-transform: uppercase;
}

.countdown-section {
  padding: 48px 28px;
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 30px;
  align-items: center;
  color: #fff;
  background: var(--sage);
}
.count-copy h2,
.bb-gallery h2,
.story h2,
.schedule h2,
.venue h2,
.special h2,
.faq h2,
.quick-contact h2,
.rsvp h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 70px);
  text-align: center;
}
.count-copy h2,
.count-copy p { text-align: left; }
.count-copy p { margin: 10px 0 0; color: rgba(255,255,255,.82); }
.countdown {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.countdown div {
  padding: 20px 8px;
  text-align: center;
  border: 1px solid rgba(255,255,255,.25);
}
.countdown strong {
  display: block;
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  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: 90px 0;
  display: grid;
  grid-template-columns: .92fr 1.16fr .92fr;
  gap: 26px;
  align-items: center;
}
.couple article {
  display: grid;
  gap: 18px;
  padding: 22px;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.couple article img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.couple article div { text-align: center; }
.couple article h2 {
  margin: 0 0 10px;
  font-size: 42px;
}
.couple article 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-book {
  position: relative;
  padding: 18px;
  background: var(--ivory);
  border: 1px solid var(--line);
  box-shadow: 0 26px 58px rgba(52, 67, 55, .16);
}
.carousel-frame {
  aspect-ratio: 1;
  overflow: hidden;
}
.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;
  color: #fff;
  background: var(--sage-dark);
  border-radius: 50%;
  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: #cfc4b4;
}
.carousel-dots .active { background: var(--sage-dark); }

.story,
.schedule,
.venue,
.special,
.faq,
.rsvp {
  padding: 92px 0;
}
.bb-gallery h2,
.story h2,
.schedule h2,
.venue h2,
.special h2,
.faq h2 {
  margin-bottom: 44px;
}
.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(--gold);
  transform: rotate(45deg);
  box-shadow: -17px 17px 0 rgba(181,150,99,.5), 17px -17px 0 rgba(181,150,99,.5);
}
.story { background: var(--ivory); }
.story-tape {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.story-tape article {
  background: var(--paper);
  border: 1px solid var(--line);
}
.story-tape img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.story-tape div { padding: 18px; }
.story-tape time {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.story-tape h3 {
  margin: 8px 0;
  font-size: 28px;
}
.story-tape p { margin: 0; color: var(--muted); font-size: 14px; }

.schedule { background: var(--paper); }
.schedule-grid {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.schedule-grid article {
  padding: 30px 24px;
  background: var(--ivory);
  border: 1px solid var(--line);
  text-align: center;
}
.schedule-grid span {
  color: var(--sage);
  font-size: 34px;
  font-weight: 800;
}
.schedule-grid h3 { margin: 12px 0 8px; font-size: 30px; }
.schedule-grid p { margin: 0; color: var(--muted); }

.promo {
  padding: 46px 20px;
  color: #fff;
  background: var(--sage-dark);
  text-align: center;
}
.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: 650px; margin: 12px auto 0; color: rgba(255,255,255,.82); }
.promo a {
  margin-inline: auto;
  color: var(--sage-dark);
  background: #fff;
}

.venue { background: var(--ivory); }
.venue-stack {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  /* Dos columnas cuando hay sitio (antes se apilaban); si no, una columna ancha. */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
  gap: 28px;
  align-items: stretch;
}
/* Un solo lugar (solo ceremonia o solo banquete): centrado, sin hueco a un lado. */
.venue-stack > article:only-child {
  grid-column: 1 / -1;
  max-width: 620px;
  margin-inline: auto;
}
/* Sin galería: los dos perfiles se reparten equilibrados (no queda hueco central). */
.couple.no-gallery {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.venue-stack article {
  display: grid;
  grid-template-columns: .78fr 1.22fr;
  background: var(--paper);
  border: 1px solid var(--line);
}
.venue-stack article:nth-child(even) {
  grid-template-columns: 1.22fr .78fr;
}
.venue-stack article:nth-child(even) .venue-photo { order: 2; }
.venue-photo img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}
.venue-info { padding: 34px; }
.venue-info h3 { margin: 0 0 12px; font-size: 46px; }
.venue-info > span { display: block; color: var(--muted); }
.venue-info iframe {
  width: 100%;
  height: 230px;
  margin-top: 18px;
  border: 0;
}
.transport {
  margin-top: 16px;
  padding: 16px;
  background: var(--ivory);
}
.transport strong {
  display: block;
  color: var(--sage);
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.transport span { color: var(--muted); font-size: 14px; }

.special { background: var(--paper); }
.special-list {
  width: min(var(--max), calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.special-list article {
  display: grid;
  grid-template-columns: 118px 1fr;
  gap: 18px;
  align-items: center;
  padding: 12px;
  background: var(--ivory);
  border: 1px solid var(--line);
}
.special-list img {
  width: 118px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.special-list span {
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.special-list h3 { margin: 4px 0 0; font-size: 30px; }
.special-list div {
  text-align: left;
}

.faq { background: var(--ivory); }
.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;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.faq-question span { color: var(--sage); 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 92px;
  padding: 34px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  align-items: center;
  color: #fff;
  background: var(--sage-dark);
}
.quick-contact h2 { text-align: left; }
.quick-contact p { margin: 10px 0 0; color: rgba(255,255,255,.82); }
.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(52,67,55,.72), rgba(52,67,55,.72)),
    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;
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  text-align: center;
}
.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;
  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, .14), transparent 28%),
    radial-gradient(circle at 82% 85%, rgba(255, 255, 255, .09), transparent 30%),
    linear-gradient(135deg, rgba(95, 113, 87, .98), rgba(52, 67, 55, .96)),
    var(--sage-dark);
}
.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: Marcellus, Georgia, serif;
  font-size: 30px;
}
.footer a { color: inherit; text-decoration: none; }

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

@media (max-width: 980px) {
  .side-nav {
    position: sticky;
    top: 0;
    width: 100%;
    min-height: 64px;
    height: auto;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 16px;
    border-right: 0;
    border-bottom: 0;
    box-shadow: none;
  }
  .seal { display: none; }
  .mobile-brand {
    min-width: 0;
    display: block;
    overflow: hidden;
    color: var(--sage-dark);
    font-family: Marcellus, Georgia, serif;
    font-size: clamp(22px, 6vw, 34px);
    line-height: 1;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .mobile-brand b {
    color: var(--gold);
    font-weight: 400;
  }
  .menu-toggle {
    display: block;
    padding: 8px;
    border: 0;
    background: transparent;
    color: var(--sage-dark);
    line-height: 1;
  }
  .side-nav nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 64px;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    padding: 0 16px;
    writing-mode: horizontal-tb;
    transform: none;
    background: var(--ivory);
    border: 0;
    border-bottom: 0;
    box-shadow: none;
    opacity: 0;
    transition: max-height .34s ease, opacity .24s ease, padding .34s ease;
  }
  .side-nav nav.open {
    max-height: 520px;
    padding: 12px 16px 16px;
    opacity: 1;
  }
  main { margin-left: 0; }
  .hero,
  .countdown-section,
  .couple,
  .venue-stack article,
  .venue-stack article:nth-child(even),
  .quick-contact,
  .story-tape {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .memory-book {
    order: 3;
  }
  .venue-stack article:nth-child(even) .venue-photo { order: 0; }
  .schedule-grid,
  .countdown {
    grid-template-columns: repeat(2, 1fr);
  }
  .rsvp-card form {
    grid-template-columns: 1fr;
  }
  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .couple article,
  .venue-info,
  .rsvp-card {
    text-align: center;
  }

  .quick-contact h2,
  .count-copy h2,
  .count-copy p {
    text-align: center;
  }

  .quick-actions a {
    width: 100%;
  }
  .footer address {
    justify-self: center;
    text-align: center;
  }
}

@media (max-width: 620px) {
  .schedule-grid,
  .special-list,
  .countdown {
    grid-template-columns: 1fr;
  }
  .special-list article {
    grid-template-columns: 86px 1fr;
  }
  .special-list img {
    width: 86px;
  }

  .hero-card {
    margin: 18px;
    padding: 28px 18px;
  }

  .hero-card h1 {
    font-size: clamp(42px, 14vw, 68px);
  }

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

  .rsvp-card button {
    white-space: normal;
  }
}

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

/* Lugar SIN foto: la tarjeta pasa a una columna (sin el hueco de la foto). */
.venue-stack article.no-photo { grid-template-columns: 1fr; }
