:root {
  --ink: #111;
  --muted: #6a6a6a;
  --paper: #ffffff;
  --soft: #f6f4ef;
  --line: rgba(255, 255, 255, 0.45);
  --shadow: rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family:
    Montserrat,
    system-ui,
    -apple-system,
    Segoe UI,
    Roboto,
    Arial;
  color: var(--ink);
  background: #fff;
}

a {
  color: inherit;
}

.container {
  width: min(1100px, 92%);
  margin: 0 auto;
}

[hidden] {
  display: none !important;
}

/* TOPBAR */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.brand {
  text-decoration: none;
  letter-spacing: 0.18em;
  font-size: 12px;
  font-weight: 600;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}
.nav a {
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.12em;
  opacity: 0.85;
}
.nav a:hover {
  opacity: 1;
}

/* BURGER */
.burger {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-direction: column;
  cursor: pointer;
}
.burger span {
  width: 22px;
  height: 2px;
  background: #111;
  display: block;
  border-radius: 99px;
}

/* BACKDROP + DRAWER (móvil) */
.backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0); /* pon 0.2 si quieres oscurecer */
  z-index: 90;
}

.mobile {
  position: fixed;
  top: 0;
  right: 0;
  height: 100dvh;
  width: min(78vw, 420px);
  background: var(--paper);
  z-index: 100;

  transform: translateX(100%);
  transition: transform 0.35s ease;

  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(24px, env(safe-area-inset-top)) 24px 24px;
  box-shadow: -16px 0 40px var(--shadow);
}
.mobile.is-open {
  transform: translateX(0);
}

.mobile__close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 30px;
  line-height: 1;
  cursor: pointer;
  color: #6a7a63;
}

.mobile__nav {
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}
.mobile__nav a {
  text-decoration: none;
  font-family: "Playfair Display", serif;
  letter-spacing: 0.04em;
  font-size: 16px;
}

/* bloquear scroll cuando el menú está abierto */
body.menu-open {
  overflow: hidden;
}

/* HERO */
.hero {
  position: relative;
  min-height: calc(100dvh - 60px);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transform: scale(1.02);
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}
.hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 40px 16px;
}
.hero__names {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(44px, 6vw, 78px);
  line-height: 1.02;
  margin: 0 0 18px;
}
.amp {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  opacity: 0.95;
}

.hero__dateWrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 26px;
}
.hero__line {
  width: 72px;
  height: 1px;
  background: var(--line);
}
.hero__date {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.22em;
  opacity: 0.95;
}

.countdown {
  display: flex;
  gap: 26px;
  justify-content: center;
  flex-wrap: wrap;
}
.cd b {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 42px;
  font-weight: 400;
  letter-spacing: 0.06em;
}
.cd span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  opacity: 0.9;
}

/* SECCIONES */
.section {
  padding: 70px 0;
}
.section--soft {
  background: var(--soft);
}

.title {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  letter-spacing: 0.16em;
  font-size: 31px;
  text-align: center;
  margin: 0 0 22px;
}
.lead {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* ===== ITINERARIO: móvil vertical (base) + desktop horizontal ===== */

/* BASE (MÓVIL) — NO CAMBIA TU LOOK: icono izq, línea, texto der */
#itinerary.itTimeline {
  --icon-col: 52px;
  --rail-col: 18px;
  --gap: 14px;

  position: relative;
  display: grid;
  grid-template-columns: var(--icon-col) var(--rail-col) 1fr;
  column-gap: var(--gap);
  row-gap: 22px;
  align-items: center;

  max-width: 560px;
  margin: 0 auto;
  padding: 10px 0;
}

/* línea vertical en móvil */
#itinerary.itTimeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(0, 0, 0, 0.18);
  left: calc(var(--icon-col) + var(--gap) + (var(--rail-col) / 2));
}

/* columnas móvil */
#itinerary .itIcon {
  grid-column: 1;
  justify-self: center;
}
#itinerary .itDot {
  display: none;
} /* en móvil oculto */
#itinerary .itText {
  grid-column: 3;
  text-align: left;
}

/* tipografía */
#itinerary .itLine {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
#itinerary .itTitle {
  font-weight: 400;
}
#itinerary .itSep {
  opacity: 0.55;
  padding: 0 10px;
}
#itinerary .itHour {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.95;
}
#itinerary .itPlace {
  margin-top: 6px;
  font-size: 13px;
  color: rgba(0, 0, 0, 0.55);
  letter-spacing: 0.06em;
}
#itinerary .itMap {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
#itinerary .itMap::after {
  content: " ↗";
  font-size: 12px;
}

/* iconos */
#itinerary .itIcon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}
#itinerary .itIcon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
  display: block;
}

/* ===== DESKTOP: HORIZONTAL (como tu imagen) ===== */
@media (min-width: 901px) {
  #itinerary.itTimeline {
    /* 3 filas: texto arriba, línea+dot en medio, icono abajo */
    --top-row: 78px;
    --mid-row: 34px;

    max-width: 1100px;
    padding: 10px 0 0;

    /* grid horizontal por columnas automáticas */
    grid-template-columns: none;
    grid-template-rows: var(--top-row) var(--mid-row) auto;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;

    column-gap: 26px;
    row-gap: 0;
    align-items: start;
  }

  /* línea ahora horizontal */
  #itinerary.itTimeline::before {
    top: calc(var(--top-row) + (var(--mid-row) / 2));
    left: 0;
    right: 0;
    bottom: auto;
    height: 1px;
    width: auto;
  }

  /* colocar cada pieza en su fila */
  #itinerary .itText {
    grid-column: auto;
    grid-row: 1;
    text-align: center;
    align-self: end;
  }

  #itinerary .itDot {
    display: block;
    grid-column: auto;
    grid-row: 2;
    justify-self: center;
    align-self: center;

    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: #f6f4ef;
    border: 2px solid rgba(106, 122, 99, 0.95);
    box-shadow: 0 0 0 6px rgba(106, 122, 99, 0.12);
  }

  #itinerary .itIcon {
    grid-column: auto;
    grid-row: 3;
    justify-self: center;
    align-self: start;
    margin-top: 8px;
  }

  /* tipografía un poco más editorial en desktop */
  #itinerary .itLine {
    font-size: 17px;
    letter-spacing: 0.06em;
  }
  #itinerary .itPlace {
    font-size: 12px;
  }
  #itinerary .itMap {
    font-size: 11px;
  }
}

@media (max-width: 900px) {
  /* para que icono y texto arranquen a la misma altura */
  #itinerary.itTimeline {
    align-items: start;
  }

  #itinerary.itTimeline .itIcon,
  #itinerary.itTimeline .itText {
    align-self: start;
  }

  /* ajuste fino opcional (si todavía lo ves 1-2px desfasado) */
  #itinerary.itTimeline .itIcon {
    margin-top: -80px;
  }
}

/* FORM */
.form {
  max-width: 820px;
  margin: 0 auto;
}
.formGrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
label span {
  display: block;
  font-size: 12px;
  margin-bottom: 6px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  padding: 12px 12px;
  font: inherit;
  background: #fff;
}
textarea {
  min-height: 110px;
  resize: vertical;
}

.btn {
  margin-top: 12px;
  width: 100%;
  border: 0;
  border-radius: 14px;
  padding: 13px 14px;
  font-weight: 600;
  letter-spacing: 0.12em;
  background: #6a7a63;
  color: #fff;
  cursor: pointer;
}
.formMsg {
  margin: 12px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
/* ===== REGALOS (estilo alto como plantilla) ===== */
.giftGrid--tall {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  align-items: stretch;
}

.giftCard--tall {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0px; /* si quieres más “plantilla” (recto) */
  /* pon 18px si prefieres redondeado */
  padding: 34px 26px;
  text-decoration: none;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;

  min-height: 420px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.1);

  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

@media (hover: hover) {
  .giftCard--tall:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
  }
}

.giftTop {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 26px;
}

.giftLogo {
  width: 170px; /* aquí se ve “logo grande” */
  max-width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Botón */
.giftBtn {
  display: inline-block;
  padding: 14px 26px;
  background: #8a98a5; /* gris-azul elegante */
  color: #fff;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 0px;
  margin-bottom: 26px;

  /* importante: que el anchor sea clickeable aunque des click en el botón */
  pointer-events: none;
}

/* divisor */
.giftDivider {
  width: 70px;
  height: 1px;
  background: rgba(0, 0, 0, 0.18);
}

/* Banco */
.giftCard--bank {
  cursor: default;
}

.giftBankIcon {
  font-size: 34px;
  line-height: 1;
}

.giftBankTitle {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-size: 18px;
}

.giftBankInfo {
  margin-top: 24px;
}

.giftBankLine {
  margin: 0 0 12px;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.75);
}

.giftThanks {
  margin: 18px 0 0;
  font-family: "Playfair Display", serif;
  font-style: italic;
  color: rgba(0, 0, 0, 0.7);
}

/* Responsive */
@media (max-width: 900px) {
  .giftGrid--tall {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .giftCard--tall {
    min-height: auto;
    padding: 28px 20px;
  }
  .giftLogo {
    width: 150px;
  }
}

/* GALERÍA */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.photo {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
}
.photo img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  display: block;
}

/* HOSPEDAJE */
.lodging {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.lodge {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 18px;
  padding: 18px;
}
.lodge h3 {
  margin: 0 0 8px;
  font-size: 14px;
}

/* ===== FOOTER firma (como imagen) ===== */
.footerSig {
  background: #f6f4ef;
  padding: 35px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.footerSig__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.footerSig__names {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(18px, 2.2vw, 34px);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #111;
}

.footerSig__brand {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(14px, 1.6vw, 22px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-decoration: none;
  color: #111;
  opacity: 0.95;
}

.footerSig__brand:hover {
  opacity: 0.7;
}

.footerSig__contact {
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  color: rgba(0, 0, 0, 0.65);
}

.footerSig__copy {
  margin-top: 6px;
  font-size: 12px;
  color: rgba(0, 0, 0, 0.45);
}

@media (max-width: 900px) {
  .footerSig {
    padding: 70px 0;
  }
  .footerSig__inner {
    gap: 12px;
  }
  .footerSig {
  padding: 11px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .nav {
    display: none;
  }
  .burger {
    display: inline-flex;
  }

  .cards {
    grid-template-columns: 1fr;
  }
  .formGrid {
    grid-template-columns: 1fr;
  }
  .giftGrid {
    grid-template-columns: 1fr;
  }
  .gallery {
    grid-template-columns: 1fr;
  }
  .photo img {
    height: 320px;
  }
  .lodging {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .mobile {
    transition: none;
  }
}

/*padres */
/* ===== Padres ===== */
.parents {
  background: #fff;
  padding: 110px 0;
}

.parents__title {
  text-align: center;
  font-family: "Playfair Display", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(18px, 2.4vw, 36px);
  margin: 0 0 80px;
}

.parents__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: min(140px, 10vw);
  justify-content: center;
  align-items: start;
  text-align: center;
}

.parents__colTitle {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: clamp(22px, 1.3vw, 20px);
  margin: 0 0 26px;
}

.parents__name {
  font-family: "Playfair Display", serif;
  font-weight: 300;
  font-size: clamp(20px, 10.2vw, 21px);
  line-height: 1.35;
  letter-spacing: 0.01em;
  color: #111111b8;
  margin: 0 0 18px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
@media (max-width: 900px) {
  .parents {
    padding: 80px 0;
  }
  .parents__title {
    margin-bottom: 50px;
    letter-spacing: 0.18em;
  }
  .parents__grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.itIcon {
  width: 22px;
  height: 22px;
  display: block;
  object-fit: contain;
}

/* ===== LIGHTBOX ===== */
.lightbox[hidden] {
  display: none !important;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.72);
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  align-items: center;
  padding: 18px;
}

.lb__figure {
  margin: 0;
  display: grid;
  place-items: center;
  gap: 10px;
}

#lbImg {
  max-width: min(980px, 92vw);
  max-height: 78vh;
  width: auto;
  height: auto;
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
  background: #111;
}

.lb__caption {
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lb__close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lb__nav {
  width: 50px;
  height: 50px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 24px;
  line-height: 0;
  cursor: pointer;
  justify-self: center;
  backdrop-filter: blur(6px);
}

.lb__nav:hover,
.lb__close:hover {
  background: rgba(255, 255, 255, 0.18);
}

/* bloquear scroll solo para lightbox */
body.lb-open {
  overflow: hidden;
}

/* móvil */
@media (max-width: 900px) {
  .lightbox {
    grid-template-columns: 0px 1fr 0px;
    padding: 14px;
  }
  #lbImg {
    max-width: 92vw;
    max-height: 72vh;
    border-radius: 14px;
  }

  .lb__nav {
    width: 25px;
    height: 25px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 24px;
    line-height: 0;
    cursor: pointer;
    justify-self: center;
    backdrop-filter: blur(6px);
  }
}

/* ===== GALERÍA: efecto hover / seleccionable ===== */
#gallery .photo {
  position: relative;
  overflow: hidden;
  border-radius: 18px; /* ajusta si usas otro */
  cursor: zoom-in;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

#gallery .photo img {
  width: 100%;
  height: 260px; /* usa el que ya tengas */
  object-fit: cover;
  display: block;
  transition:
    transform 0.28s ease,
    filter 0.28s ease;
}

/* overlay sutil */
#gallery .photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.1);
  opacity: 0;
  transition: opacity 0.2s ease;
}

/* hover (desktop) */
@media (hover: hover) {
  #gallery .photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.12);
  }
  #gallery .photo:hover img {
    transform: scale(1.04);
  }
  #gallery .photo:hover::after {
    opacity: 1;
  }
}

/* opcional: al tocar (móvil) feedback */
#gallery .photo:active {
  transform: scale(0.99);
}

#gallery .photo::before {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

@media (hover: hover) {
  #gallery .photo:hover::before {
    opacity: 1;
    transform: translateY(0);
  }
}



/* ===== DRESS CODE CARD (con tus tipografías) ===== */
.attireCard{
  /* parecido al ejemplo (gris-azulado), pero no toca tu :root */
  background: #dfe3ea;
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: clamp(22px, 4vw, 56px);
  text-align: center;
}

.attireCard__title{
  margin: 0 0 10px;
  line-height: 1;
}

.attireCard__titleA{
  font-family: "Playfair Display", serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: clamp(26px, 4vw, 48px);
}

.attireCard__titleB{
  /* “attire” lo hacemos editorial con Playfair italic (sin fuente script extra) */
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0.02em;
  font-size: clamp(30px, 4.6vw, 30px);
  margin-left: .22em;
  display: inline-block;
  transform: translateY(10%);
  opacity: .95;
}

.attireCard__sub{
  margin: 0;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: 12px;
  color: rgba(17,17,17,.60);
}

.attireCard__rule{
  width: min(560px, 82%);
  height: 1px;
  margin: 18px auto;
  background: rgba(0,0,0,.18);
}

.attireCard__text{
  margin: 0 auto 14px;
  max-width: 720px;
  font-family: Montserrat, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-size: 12px;
  color: rgba(17,17,17,.60);
}

.attireCard__swatches{
  display: flex;
  justify-content: center;
  gap: clamp(12px, 2.2vw, 24px);
  flex-wrap: wrap;
  padding: 8px 0 14px;
}

.attireSwatch{
  width: clamp(34px, 5vw, 64px);
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  background: var(--c, #999);
  border: 1px solid rgba(255,255,255,.35);
  box-shadow: 0 1px 0 rgba(0,0,0,.06);
}

.attireCard__foot{
  display: flex;
  justify-content: flex-end;
}

.attireCard__thanks{
  /* igual: editorial, sin fuente extra */
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(18px, 2.8vw, 30px);
  color: rgba(17,17,17,.55);
}