/* ========== Fonts (reemplazá nombres si querés) ========== */
@font-face {
  font-family: "WeddingTitle";
  src: url("./fonts/TitleFont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WeddingBody";
  src: url("./fonts/BodyFont.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WeddingNames";
  src: url("./fonts/Inter-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "WeddingNames";
  src: url("./fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}


/* ========== Base ========== */
:root {
  --bg: #ffffff;
  --ink: #111111;
  --muted: rgba(17, 17, 17, .62);
  --hair: rgba(17, 17, 17, .12);
  --card: #ffffff;
  --shadow: 0 10px 30px rgba(0, 0, 0, .06);
  --radius: 22px;
  --container: 980px;
  --editorial: "Josefin Slab", Georgia, "Times New Roman", serif;

  --title: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;

  /* Robustez (se usaban y no estaban definidas) */
  --glass: rgba(255, 255, 255, .90);
  --glassBorder: rgba(17, 17, 17, .12);
  --dash: rgba(17, 17, 17, .16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  line-height: 1.45;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 10px;
}

.skip {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip:focus {
  left: 20px;
  top: 20px;
  width: auto;
  height: auto;
  background: #fff;
  padding: 10px 14px;
  border: 1px solid var(--hair);
  border-radius: 10px;
  z-index: 100;
}

/* ========== Topbar ========== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .82);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hair);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  gap: 16px;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.topbar__dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  border: 1px solid var(--ink);
}

.topbar__nav {
  display: flex;
  gap: 14px;
  font-size: 13px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.topbar__nav a {
  padding: 8px 10px;
  border-radius: 999px;
}

.topbar__nav a:hover {
  background: rgba(0, 0, 0, .04);
  text-decoration: none;
}

.pill {
  border: 1px solid var(--hair);
}

/* ========== Hero (con foto de fondo) ========== */
.hero {
  position: relative;
  padding: 120px 0 120px;
  overflow: hidden;
  background: url("./assets/photos/hero-bg.jpg") center bottom / cover no-repeat;
}

/* Overlay */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.55));
  backdrop-filter: none;
  pointer-events: none;
  z-index: 0;
}

/* Asegura contenido arriba del overlay */
.hero .container,
.hero__sprinkles {
  position: relative;
  z-index: 1;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 520px) 1fr;
  align-items: center;
  gap: 20px;
}

.hero__decor {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: .95;
}

.hero__decor img {
  width: min(220px, 35vw);
  height: auto;
  filter: drop-shadow(0 10px 20px rgba(0, 0, 0, .18));
}

.hero__content {
  text-align: center;
  padding: 22px 0;
  margin-top: 0;
  /* importante para mobile-first: no empujar hacia abajo */
  transform: translateY(-50px);
}

/* Texto del hero en blanco */
.hero__kicker {
  font-family: var(--body);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin: 0 0 10px;
  color: rgba(255, 255, 255, .88);
}

.hero__title {
  font-family: "Montserrat", system-ui, sans-serif;
  font-weight: 500;
  /* CLAVE */
  font-size: clamp(18px, 4vw, 26px);
  letter-spacing: .32em;
  /* CLAVE */
  text-transform: uppercase;
  line-height: 1.1;
  margin: 0 0 10px;
  color: #ffffff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 14px 0 18px;
}

.hero__line {
  font-size: 18px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.hero__line--wide {
  letter-spacing: .22em;
}

.hero__names {
  font-family: var(--body);
  /* 👈 tipografía limpia */
  font-weight: 600;
  /* 👈 más presencia sin ser bold */
  font-size: 15px;
  /* 👈 más chico que antes */
  letter-spacing: .26em;
  /* 👈 clave del estilo */
  text-transform: uppercase;
  margin: 14px 0 0;
  /* 👈 más aire respecto al bloque */
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 10px 30px rgba(0, 0, 0, .20);
}

.hero__actions {
  margin-top: 20px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.hero .btn {
  border-color: #ffffff;
  background: #ffffff;
  color: #111111;
}

.hero .btn--ghost {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, .65);
}

.hero .btn:hover {
  text-decoration: none;
  opacity: .92;
}

.hero__sprinkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .75;
}

/* ========== Sections ========== */
.section {
  padding: 44px 0;
}

.section__header {
  margin-bottom: 14px;
}

.h2 {
  font-family: var(--title);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  font-size: 15px;
  margin: 0 0 16px;
  color: #000000;
}

.p {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
}

.subtle {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.card {
  background: var(--card);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
}

.card--focus {
  border-color: rgba(17, 17, 17, .28);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: transparent;
  color: rgba(17, 17, 17, 0.85);
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.btn:hover {
  text-decoration: none;
  opacity: .92;
}

.btn--ghost {
  background: transparent;
  color: rgba(17, 17, 17, 0.85);
  border-color: var(--hair);
}

.row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

/* =========================
   Itinerario / Timeline
========================= */
.itinerary {
  padding: 56px 0;
}

.itinerary__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0;
  color: #000000;
}

.itinerary__lead {
  margin: 12px 0 0;
  max-width: 56ch;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: .02em;
}

/* Timeline wrapper */
.timeline {
  list-style: none;
  padding: 0;
  margin: 34px 0 0;
  position: relative;
  display: grid;
  gap: 22px;
}

/* Línea central */
.timeline::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  background: var(--hair);
}

/* Cada item */
.timeline__item {
  position: relative;
  display: grid;
}

/* Alternado */
.timeline__item--left {
  justify-items: end;
}

.timeline__item--right {
  justify-items: start;
}

/* Punto sobre la línea */
.timeline__item::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 0 0 5px rgba(17, 17, 17, .06);
}

/* Conector hacia la card */
.timeline__item::after {
  content: "";
  position: absolute;
  top: 26px;
  height: 1px;
  width: 22px;
  background: var(--hair);
}

.timeline__item--left::after {
  left: calc(50% - 22px);
}

.timeline__item--right::after {
  left: 50%;
}

/* Card */
.timeline__card {
  width: min(520px, calc(50vw - 36px));
  border-radius: 18px;
  padding: 18px 18px 16px;
  background: var(--glass);
  border: 1px solid var(--glassBorder);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

/* Día */
.timeline__day {
  font-size: 13px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}

.timeline__event {
  display: flex;
  align-items: baseline;
}

/* Evento */
.timeline__time {
  width: 100px;
  /* Increased to fit 'A confirmar' */
  flex-shrink: 0;
  font-family: var(--title);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
  padding-top: 0;
}

.timeline__meta {
  margin-top: 4px;
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  color: var(--muted);
}

.timeline__event+.timeline__event {
  border-top: 1px dashed var(--dash);
}

.timeline__time {
  font-family: var(--title);
  font-weight: 400;
  font-size: 16px;
  letter-spacing: .02em;
  color: var(--ink);
  line-height: 1;
  padding-top: 0;
}

.timeline__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  margin: 0;
  color: #000000;
  text-transform: none;
}



.timeline__addr {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.timeline__tag {
  display: block;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 8px;
  width: fit-content;
  margin-top: 6px;
}

/* Timeline clickable */
.timeline__hit {
  width: auto;
  flex-grow: 1;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  border-radius: 14px;
}

/* Timeline info wrapper */
.timeline__info {
  padding-left: 0;
  margin-top: 0;
}

.timeline__hit:focus-visible {
  outline: 2px solid rgba(17, 17, 17, .35);
  outline-offset: 4px;
}

.timeline__hit:hover .timeline__title {
  text-decoration: underline;
}

/* =========================
   Grids / Cards
========================= */
.grid2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.cards3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.placeCard {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
}

.placeCard__title {
  font-weight: 600;
  margin: 0 0 4px;
}

.placeCard__meta {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.placeCard__actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* Key/Value gifts */
.kv {
  margin-top: 12px;
  display: grid;
  gap: 8px;
}

.kv__row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--hair);
  border-radius: 14px;
}

.kv__k {
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 12px;
}

.kv__v {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 13px;
}

/* ========== Countdown (Hero) ========== */
.countdown {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.countdown__block {
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Reduced padding for mobile fit */
  padding: 10px 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  min-width: 60px;
  /* Prevent too wide blocks */
  /* min-width: 75px; */
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.countdown__label {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .88);
}

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  width: min(520px, 92vw);
}

.countdown__item {
  border: 1px solid rgba(255, 255, 255, .30);
  border-radius: 16px;
  padding: 12px 10px;
  background: rgba(255, 255, 255, .08);
  backdrop-filter: blur(6px);
}

.countdown__num {
  font-family: var(--body);
  font-weight: 600;
  font-size: clamp(22px, 3.2vw, 34px);
  letter-spacing: .06em;
  color: #fff;
  line-height: 1.05;
}

.countdown__unit {
  margin-top: 6px;
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .82);
}

/* =========================
   Modal
========================= */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 50;

  /* Permite scroll si hace falta */
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal.is-open {
  display: block;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(6px);
}

.modal__panel {
  position: relative;
  width: min(860px, calc(100vw - 28px));
  margin: 6vh auto;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--hair);
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
  overflow: hidden;

  /* Clave para scroll interno */
  max-height: 88vh;
  display: flex;
  flex-direction: column;
}

.modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair);
  background: rgba(255, 255, 255, .9);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  z-index: 2;
}

.modal__head {
  padding: 22px 22px 14px;
  border-bottom: 1px solid var(--hair);
  flex: 0 0 auto;
}

.modal__kicker {
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.modal__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: clamp(28px, 3.2vw, 40px);
  letter-spacing: .02em;
  margin: 0;
}

.modal__sub {
  margin: 10px 0 0;
  color: var(--muted);
}

.modal__body {
  padding: 18px 22px 22px;
  flex: 1 1 auto;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.modal__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal__card {
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 14px 14px;
  background: #fff;
}

.modal__card--full {
  grid-column: 1 / -1;
}

.modal__label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

.modal__value {
  font-size: 15px;
  color: var(--ink);
}

/* Dirección y botón full width */
#modalAddress {
  display: block;
}

#modalAddress,
#modalOpenMaps {
  grid-column: 1 / -1;
}

/* Galería */
.modal__gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  /* 2 columnas para que sean más grandes */
  gap: 10px;
}

.modal__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--hair);
  background: rgba(0, 0, 0, .03);
}

/* (Opcional legacy) Mapa */
.modal__map {
  border: 1px solid var(--hair);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}

.modal__map iframe {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
}

/* ========== Footer ========== */
.footer {
  padding: 40px 0 60px;
  border-top: 1px solid var(--hair);
  position: relative;
  z-index: 10;
  background: var(--bg);
}

.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer__names {
  font-size: 14px;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.footer__meta {
  font-size: 13px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer__right img {
  width: 120px;
  opacity: .9;
}

@media (max-width: 560px) {

  /* Botones full width en mobile (mejor UX) */
  .row {
    flex-direction: column;
    align-items: stretch;
  }

  .row .btn,
  #modalOpenMaps {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .hero {
    /* Refinado Step 2:
       - Ajustamos background-position para "subir" la imagen (mostrar más abajo)
       - Aumentamos padding-top para bajar el texto y destapar caras
    */
    padding: 180px 0 20px;
    /* Mucho aire arriba para dejar ver las caras */
    background-position: center 35%;
    /* Sube la imagen visualmente */
  }

  .countdown {
    margin-top: 20px;
    /* Separamos un poco del texto principal */
  }

  .countdown__grid {
    gap: 8px;
    transform: none;
    /* por si quedó algún translate en otro breakpoint */
  }

  .countdown__item {
    padding: 9px 8px;
    /* más compacto */
    border-radius: 14px;
  }

  .p {
    font-size: 15px;
  }
}

/* ==================================================
   HERO – Ajuste fino de textos (mobile only)
   Mueve cada texto individualmente sin tocar la imagen
================================================== */

@media (max-width: 860px) {

  /* Reducimos empujes generales, pero en mobile (arriba) empujamos todo el bloque */
  .hero__content {
    transform: none;
  }

  .hero__title {
    font-size: clamp(24px, 11vw, 32px);
    letter-spacing: .30em;
  }

  /* Reseteos de transforms legacy */
  #heroDates,
  #heroPlace,
  #countdownLabel,
  .countdown__grid {
    transform: none;
  }
}


/* =========================
   Intro post hero
========================= */
@media (max-width: 420px) {
  .intro {
    /* Compactado para acercar texto a hero */
    padding-top: 12px;
    padding-bottom: 24px;
  }
}


.intro__inner {
  max-width: 720px;
}

.intro__title {
  font-family: var(--title);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin: 0 0 14px;
  /* Reducido para acercar el texto */
  color: #000000;
}

/* Ambos párrafos con el mismo estilo */
.intro__lead,
.intro__text {
  font-family: var(--body);
  font-weight: 400;
  font-size: 14px;
  line-height: 1.7;
  color: var(--muted);
  margin: 0 0 16px;
}

/* =========================
   Imagen antes del itinerario
========================= */
.pre-itinerary {
  padding-top: 0;
  /* reduce espacio con el texto de arriba */
  margin-top: -18px;
  /* acerca visualmente la imagen */
  padding-bottom: 10px;
}

.pre-itinerary__figure {
  margin: 0 auto;
  width: 25%;
  max-width: 140px;
  border-radius: 22px;
  overflow: hidden;
  background: transparent;
  mix-blend-mode: multiply;
  /* mismo fondo que la landing */
  box-shadow: none;
  /* elimina efecto card */
}

.pre-itinerary__figure img {
  width: 100%;
  height: auto;
  display: block;
}

@media (max-width: 860px) {

  /* (Eliminado layout centrado/alternado para mantener estilo apilado simple en mobile) */
  .timeline__card {
    /* Ensure extra space on right for shadow on small screens if needed */
    margin-right: 4px;
    width: auto;
  }
}

@media (max-width: 860px) {

  /* Menos espacio entre hora y texto */
  .hero {
    background-position: center 90% !important;
    /* Adjusted to show head + fit feet */
  }

  .timeline__event {
    gap: 6px;
    /* antes 12px */
    padding: 8px 0;
    /* un poco más compacto */
  }

  .timeline__time {
    line-height: 1.05;
    /* compacta visualmente la hora */
  }

  .timeline__meta {
    margin-top: 2px;
    /* antes 4px */
  }
}

/* =========================
   Timeline tag "opcional"
   Alinear debajo del lugar
========================= */

/* El contenedor info como columna */
.timeline__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* El tag deja de ser inline */
.timeline__tag {
  margin: 6px 0 0;
  /* espacio respecto a "En Palapas" */
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 4px 8px;
}

.itinerary__lead-line {
  display: block;
}

.itinerary__lead-line+.itinerary__lead-line {
  margin-top: 14px;
  /* separa como párrafo */
}



.timeline__hit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  /* Force full width to fill card */
  text-align: left;
  /* Ensure text aligns left */
  /* más aire entre texto e imagen */
}

.timeline__info {
  flex: 1 1 auto;
}

/* Imagen decorativa del evento */
.timeline__img {
  width: 160px;
  /* 64 × 2.5 */
  max-width: 40%;
  /* nunca ocupa más de la mitad del card */
  height: auto;
  flex: 0 0 auto;
  opacity: .95;
  object-fit: contain;
  margin-right: 16px;
  /* Moved further left (more spacing from edge) */
  /* asegura que no se corte */
}

/* Mobile: un poco más chica */
@media (max-width: 860px) {
  .timeline__img {
    width: 120px;
    /* grande, pero proporcional en mobile */
    max-width: 45%;
  }
}

/* Recomendaciones modal: respetar saltos de línea */
#tipsModalBody {
  white-space: pre-line;
}

/* Imagen dentro del modal (Alojamiento0.png) */
.tipsModal__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 16px;
  border: 1px solid var(--hair);
}

/* =========================
   PRE-ITINERARIO – ajuste imagen (solo Boda)
========================= */

body[data-landing="boda"] .pre-itinerary__figure {
  display: flex;
  justify-content: center;
}

body[data-landing="boda"] .pre-itinerary__figure img {
  transform: translateY(104px);
  /* bajá/subí este valor a gusto */
}

/* PRE-ITINERARIO (solo Boda): evitar recorte y centrar */
body[data-landing="boda"] .pre-itinerary {
  padding-top: 18px;
  /* crea espacio real arriba */
  padding-bottom: 18px;
  /* crea espacio real abajo */
}

body[data-landing="boda"] .pre-itinerary__figure {
  margin: 0;
  display: flex;
  justify-content: center;
}

body[data-landing="boda"] .pre-itinerary__figure img {
  display: block;
  max-width: 34%;
  height: auto;
  transform: none;
  /* IMPORTANTE: sacamos el translate */
}

/* =========================
   PRE-ITINERARIO – BODA (centrado + tamaño estable + aire)
========================= */

body[data-landing="boda"] .pre-itinerary {
  padding: 48px 0 8px;
  /* aire real respecto al hero */
  background: var(--bg);
  /* mismo fondo que la landing */
}

body[data-landing="boda"] .pre-itinerary .container {
  display: flex;
  justify-content: center;
}

body[data-landing="boda"] .pre-itinerary__figure {
  margin: 0;
  /* evita márgenes raros de figure */
}

body[data-landing="boda"] .pre-itinerary__figure img {
  display: block;
  margin: 0 auto;
  width: clamp(120px, 38vw, 220px);
  /* tamaño visible y controlado */
  height: auto;
  max-width: 100%;
  transform: none;
  /* por si quedó algún translate */
}


/* =========================
   LIGHTBOX
========================= */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  /* Above everything */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox__content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 95vw;
  max-height: 95vh;
}

.lightbox__img {
  max-width: 100%;
  max-height: 85vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
}

.lightbox__close {
  position: absolute;
  top: -44px;
  right: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 32px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s;
}


/* =========================
   Timeline apilado (siempre)
   (Restored from mariemi.netlify.app)
========================= */
.timeline::before {
  left: 14px;
  transform: none;
}

.timeline__item--left,
.timeline__item--right {
  justify-items: start;
}

.timeline__item::before {
  left: 14px;
  transform: none;
}

.timeline__item::after {
  left: 14px;
  width: 18px;
}

.timeline__card {
  width: calc(100% - 34px);
  margin-left: 34px;
}

@media (max-width: 860px) {
  #itinerario>.container {
    padding-right: 86px;
    /* antes: 20px */
  }
}

@media (max-width: 860px) {
  .timeline__card {
    width: calc(100% - 34px - 20px);
  }
}