/* =========================================================
   Nacho & Lucía · 24 · 04 · 2027
   Estilo Japandi — minimalismo japonés + calidez escandinava
   ========================================================= */

:root {
  /* Paleta */
  --ivory:   #FAF7F2;
  --bone:    #F1ECE3;
  --sand:    #E5D9C5;
  --mist:    #ECE7DD;
  --clay:    #B89579;
  --moss:    #7A8268;
  --ink:     #2A2520;
  --ash:     #6B635A;
  --line:    rgba(42, 37, 32, 0.12);

  /* Tipos */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Espaciados */
  --space:  clamp(4rem, 9vw, 9rem);
  --gutter: clamp(1.25rem, 4vw, 3rem);

  /* Curvas */
  --ease:    cubic-bezier(.22, .61, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

/* ───── Reset suave ───── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg, video, iframe { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }

/* Texto seleccionado */
::selection { background: var(--clay); color: var(--ivory); }

/* ───── Utilidades ───── */
.container {
  width: min(100% - var(--gutter) * 2, 1240px);
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 1.4rem;
}
.section-title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 1.8rem;
}
.section-title em {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
}
.lead {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  line-height: 1.75;
  color: var(--ash);
  max-width: 56ch;
  margin-bottom: 2rem;
}

/* ───── Botones ───── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 1.8rem;
  border-radius: 999px;
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease);
}
.btn svg { width: 18px; height: 18px; transition: transform .35s var(--ease); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }

.btn--dark {
  background: var(--ink);
  color: var(--ivory);
}
.btn--dark:hover { background: #1c1815; }

.btn--whatsapp {
  background: var(--moss);
  color: var(--ivory);
  padding: 1.1rem 2rem;
  font-size: 1rem;
}
.btn--whatsapp:hover { background: #677058; }
.btn--whatsapp svg { width: 22px; height: 22px; }

/* ─────────────────────────────────────
   LOADER
   ───────────────────────────────────── */
.loader {
  position: fixed; inset: 0;
  background: var(--ivory);
  display: grid; place-items: center;
  z-index: 100;
  transition: opacity .9s var(--ease), visibility .9s var(--ease);
}
.loader.is-hidden { opacity: 0; visibility: hidden; }
.loader__inner {
  display: flex; align-items: center; gap: 1.2rem;
}
.loader__line {
  width: 60px; height: 1px; background: var(--ink);
  transform-origin: left; animation: loadLine 1.6s var(--ease) infinite alternate;
}
.loader__inner > .loader__line:last-child { transform-origin: right; }
.loader__mark {
  font-family: var(--serif);
  font-size: 1.6rem; font-weight: 400; letter-spacing: 0.3em;
  color: var(--ink);
  opacity: 0; animation: loadMark 1.4s var(--ease) .2s forwards;
}
@keyframes loadLine {
  from { transform: scaleX(0.2); }
  to   { transform: scaleX(1);   }
}
@keyframes loadMark {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0);   }
}

/* ─────────────────────────────────────
   BANNER CTA — siempre visible arriba del todo
   ───────────────────────────────────── */
:root { --banner-h: 44px; }

.cta-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 95;
  min-height: var(--banner-h);
  background: var(--ink);
  color: var(--ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  padding: 0.6rem clamp(1rem, 4vw, 3rem);
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-align: center;
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 169, 97, 0.25);
  transition: background .3s var(--ease);
}
.cta-bar:hover { background: #1c1815; }

.cta-bar__text {
  display: inline-flex; align-items: center; gap: 0.55rem;
  color: rgba(250, 247, 242, 0.92);
}
.cta-bar__pulse {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--clay);
  box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.55);
  animation: ctaBarPulse 2s var(--ease) infinite;
}
@keyframes ctaBarPulse {
  0%   { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(201, 169, 97, 0); }
  100% { box-shadow: 0 0 0 0 rgba(201, 169, 97, 0); }
}
.cta-bar__action {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500;
  color: var(--clay);
  transition: transform .3s var(--ease);
}
.cta-bar:hover .cta-bar__action { transform: translateX(3px); }
.cta-bar__action svg { width: 14px; height: 14px; }

@media (max-width: 640px) {
  /* En móvil mostramos solo la parte de acción para que quepa limpio */
  .cta-bar { font-size: 0.82rem; padding: 0.55rem 1rem; gap: 0.5rem; }
  .cta-bar__text { display: none; }
  .cta-bar__action::before {
    content: "Confirma tu asistencia";
    color: rgba(250, 247, 242, 0.92);
    font-weight: 400;
    margin-right: 0.25rem;
  }
}

/* ─────────────────────────────────────
   NAV
   ───────────────────────────────────── */
.nav {
  position: fixed; top: var(--banner-h); left: 0; right: 0;
  z-index: 80;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.4rem clamp(1.25rem, 4vw, 3rem);
  transition: background .4s var(--ease), backdrop-filter .4s var(--ease), padding .4s var(--ease);
}
.nav.is-scrolled {
  background: rgba(250, 247, 242, 0.78);
  backdrop-filter: saturate(1.2) blur(14px);
  -webkit-backdrop-filter: saturate(1.2) blur(14px);
  padding: 0.9rem clamp(1.25rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}
.nav__brand {
  font-family: var(--serif);
  font-size: 1.25rem; font-weight: 400; letter-spacing: 0.25em;
  color: var(--ink);
}
.nav__brand em { font-style: italic; color: var(--clay); margin: 0 0.15em; }
.nav__links {
  display: flex; gap: 2rem;
}
.nav__links a {
  font-size: 0.85rem; font-weight: 400; letter-spacing: 0.06em;
  color: var(--ash); position: relative;
  transition: color .3s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px;
  width: 100%; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav__toggle {
  display: none;
  width: 36px; height: 28px; position: relative;
}
.nav__toggle span {
  position: absolute; left: 0; right: 0;
  height: 1px; background: var(--ink);
  transition: transform .4s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 10px; }
.nav__toggle span:last-child  { top: 18px; }
.nav__toggle.is-open span:first-child { top: 14px; transform: rotate(45deg); }
.nav__toggle.is-open span:last-child  { top: 14px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: fixed; top: var(--banner-h); right: 0;
    width: min(80vw, 360px); height: calc(100vh - var(--banner-h));
    background: var(--ivory);
    flex-direction: column;
    justify-content: center; align-items: flex-start;
    padding: 2rem 2.5rem;
    gap: 1.8rem;
    transform: translateX(100%);
    transition: transform .55s var(--ease);
    border-left: 1px solid var(--line);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1.4rem; font-family: var(--serif); color: var(--ink); letter-spacing: 0.02em; }
}

/* ─────────────────────────────────────
   HERO
   ───────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center;
  /* Padding-top mayor para que ni el banner ni el nav tapen el contenido */
  padding: calc(8rem + var(--banner-h)) var(--gutter) 4rem;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 80% at 50% 10%, rgba(184, 149, 121, 0.10), transparent 60%),
    radial-gradient(80% 60% at 80% 90%, rgba(122, 130, 104, 0.08), transparent 60%),
    var(--ivory);
}
.hero__bg::before, .hero__bg::after {
  content: ""; position: absolute;
  background: var(--line);
}
.hero__bg::before {
  top: 0; bottom: 0; left: 50%; width: 1px;
  opacity: .35;
}
.hero__bg::after {
  top: 50%; left: 0; right: 0; height: 1px;
  opacity: .25;
}
.hero__content {
  text-align: center;
  position: relative;
  max-width: 1100px;
}
.hero__overline {
  display: inline-flex; align-items: center; gap: 1rem;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.45em; text-transform: uppercase;
  color: var(--ash);
  margin-bottom: 2.5rem;
}
.hero__overline .hr {
  width: 40px; height: 1px; background: var(--ash); opacity: .5;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(4rem, 14vw, 13rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  display: flex; flex-direction: column; align-items: center;
  gap: clamp(.2rem, 1vw, .8rem);
}
.hero__amp {
  font-style: italic;
  color: var(--clay);
  font-weight: 400;
  font-size: 0.55em;
  line-height: 1;
}
.hero__amp em { font-style: italic; }
.hero__name {
  display: block;
}
.hero__date {
  margin-top: 2.2rem;
  display: flex; justify-content: center; align-items: center; gap: 0.8rem;
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.35rem);
  letter-spacing: 0.5em;
  color: var(--ink);
}
.hero__date .dot { opacity: .35; }
.hero__sub {
  margin-top: 1rem;
  font-family: var(--serif);
  font-style: italic; font-weight: 400;
  font-size: clamp(1rem, 1.5vw, 1.3rem);
  color: var(--ash);
  letter-spacing: 0.04em;
}
.hero__scroll {
  position: absolute;
  bottom: -7rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ash);
}
.hero__scroll-line {
  width: 1px; height: 60px; background: var(--ash);
  position: relative; overflow: hidden;
}
.hero__scroll-line::before {
  content: ""; position: absolute; inset: 0;
  background: var(--clay);
  transform: translateY(-100%);
  animation: scrollLine 2.4s var(--ease) infinite;
}
@keyframes scrollLine {
  0%   { transform: translateY(-100%); }
  50%  { transform: translateY(0); }
  100% { transform: translateY(100%); }
}

/* ─────────────────────────────────────
   CUENTA ATRÁS
   ───────────────────────────────────── */
.countdown {
  padding: var(--space) 0;
  background: var(--bone);
  position: relative;
}
.countdown .eyebrow,
.countdown .section-title { text-align: center; }
.countdown .section-title { margin-bottom: 4rem; }
.countdown .section-title em { display: inline; }

.countdown__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  max-width: 1000px; margin: 0 auto;
}
.cd-cell {
  text-align: center;
  padding: clamp(1.5rem, 3vw, 3rem) 1rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  position: relative;
}
.cd-cell::after {
  content: ""; position: absolute;
  top: 50%; right: calc(-1 * clamp(0.5rem, 1.5vw, 1.5rem)); transform: translateY(-50%);
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--clay); opacity: .4;
}
.cd-cell:last-child::after { display: none; }
.cd-num {
  display: block;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
  color: var(--ink);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  display: block;
  margin-top: 1rem;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--ash);
}
.countdown__msg {
  text-align: center;
  margin-top: 4rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  color: var(--ash);
  max-width: 38ch;
  margin-inline: auto;
}

@media (max-width: 640px) {
  .countdown__grid { grid-template-columns: repeat(2, 1fr); }
  .cd-cell:nth-child(2)::after { display: none; }
}

/* ─────────────────────────────────────
   VÍDEO ESPEJO — CINEMA MODE
   ───────────────────────────────────── */
.film {
  padding: var(--space) 0;
  background: #0a0a0a;
  color: var(--ivory);
  position: relative;
  overflow: hidden;
}
.film::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 50% 50%, rgba(201, 169, 97, 0.06), transparent 70%);
  pointer-events: none;
}
.film__intro {
  text-align: center;
  margin-bottom: clamp(3rem, 6vw, 5rem);
  position: relative;
  z-index: 1;
}
.film__intro .eyebrow { color: var(--clay); }
.film__intro .section-title { color: var(--ivory); margin-bottom: 1.5rem; }
.film__intro .section-title em { color: var(--clay); }
.film__lead {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  color: rgba(250, 247, 242, 0.7);
  line-height: 1.7;
  max-width: 38ch; margin-inline: auto;
}
.film__frame {
  position: relative;
  /* Ancho controlado por JS via CSS var: 56vw → 100vw cuando se centra */
  width: var(--film-w, 56vw);
  max-width: 100vw;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 6px;
  overflow: hidden;
  box-shadow:
    0 50px 100px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(201, 169, 97, 0.18),
    0 0 60px -10px rgba(201, 169, 97, 0.15);

  /* Estado borroso/atenuado modulado por scroll desde JS */
  opacity: var(--film-opacity, 0.45);
  filter: blur(var(--film-blur, 10px)) brightness(var(--film-bright, 0.6));
  /* Solo animamos suavemente caja y sombra (no width: lo controla scroll directo) */
  transition:
    border-radius 0.5s var(--ease),
    box-shadow 0.5s var(--ease);
}
.film__frame.is-fullbleed {
  border-radius: 0;
  box-shadow:
    0 60px 120px -30px rgba(0, 0, 0, 0.9),
    0 0 0 1px rgba(201, 169, 97, 0.32),
    0 0 100px -10px rgba(201, 169, 97, 0.28);
}
.film__frame.is-cinema { opacity: 1; filter: blur(0) brightness(1); }
.film__video {
  width: 100%; height: 100%;
  object-fit: cover;
}
.film__sound {
  position: absolute;
  bottom: 1.25rem; right: 1.25rem;
  z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.7rem;
  border-radius: 999px;
  background: rgba(10, 10, 10, 0.55);
  color: var(--ivory);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  border: 1px solid rgba(250, 247, 242, 0.18);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .6s var(--ease) .4s, transform .6s var(--ease) .4s, background .3s var(--ease);
}
.film__frame.is-cinema .film__sound {
  opacity: 1;
  transform: translateY(0);
}
.film__sound:hover {
  background: rgba(10, 10, 10, 0.8);
}
.film__sound svg {
  width: 16px; height: 16px;
}
.film__sound-on  { display: none; }
.film__sound-off { display: block; }
.film__sound[aria-pressed="true"] .film__sound-on  { display: block; }
.film__sound[aria-pressed="true"] .film__sound-off { display: none; }
.film__sound-label {
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

/* ─────────────────────────────────────
   GALERÍA
   ───────────────────────────────────── */
.gallery {
  padding: var(--space) 0;
  background: var(--bone);
}
.gallery .eyebrow,
.gallery .section-title,
.gallery .lead {
  text-align: center;
  margin-inline: auto;
}
.gallery .lead { margin-bottom: 4rem; }
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 180px;
  gap: 1rem;
  width: min(100% - var(--gutter) * 2, 1240px);
  margin: 0 auto;
}
/* Versión 4 fotos: layout asimétrico equilibrado */
.gallery__grid--4 {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
}
.gallery__grid--4 .gallery__item            { grid-column: span 2; grid-row: span 2; }
.gallery__grid--4 .gallery__item--tall      { grid-column: span 1; grid-row: span 3; }

.gallery__item {
  overflow: hidden;
  border-radius: 3px;
  background: var(--sand);
  position: relative;
  margin: 0;
}
/* Sin .grid--4: el comportamiento antiguo (6 cols) */
.gallery__grid:not(.gallery__grid--4) .gallery__item {
  grid-column: span 2; grid-row: span 2;
}
.gallery__grid:not(.gallery__grid--4) .gallery__item--tall { grid-row: span 3; }
.gallery__grid:not(.gallery__grid--4) .gallery__item--wide { grid-column: span 4; grid-row: span 2; }

/* Foto dentro del item: bastante más alta que el contenedor para que el
   parallax tenga margen y no asome el fondo en los extremos del scroll.
   IMPORTANTE: SIN transition en transform — pelearía con el scroll. */
.gallery__item img {
  position: absolute;
  inset: -22% 0;
  width: 100%;
  height: 144%;
  object-fit: cover;
  object-position: center center;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

/* Object-position por foto: ajusta aquí si en móvil alguna queda mal centrada.
   Valores típicos: center | top | bottom | "30% center" | "center 70%" | ... */
.gallery__item--foto-1 img { object-position: center 30%; }   /* Nacho + perro: parte superior */
.gallery__item--foto-2 img { object-position: 62% 40%; }      /* puente: foco más a la derecha y arriba */
.gallery__item--foto-3 img { object-position: center 35%; }   /* Lucía bajo paraguas: arriba */
.gallery__item--foto-4 img { object-position: center 40%; }   /* mapa: arriba */

/* El hover se aplica al contenedor con filter, sin tocar el transform de
   la imagen para no romper el parallax. */
.gallery__item {
  transition: filter 0.6s var(--ease);
}
.gallery__item:hover {
  filter: brightness(1.05) saturate(1.05);
}

@media (max-width: 880px) {
  .gallery__grid--4 {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 240px;
  }
  .gallery__grid--4 .gallery__item,
  .gallery__grid--4 .gallery__item--tall {
    grid-column: span 1; grid-row: span 1;
  }
  .gallery__grid:not(.gallery__grid--4) {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 220px;
  }
}

/* ─────────────────────────────────────
   TRANSICIÓN — Camino al Palacio (zoom-in con scroll)
   ───────────────────────────────────── */
.venue-hero {
  background: #000;
}
.venue-hero__zone {
  position: relative;
  height: 220vh;
}
.venue-hero__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  background: #000;
}
.venue-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: 50% 55%;            /* centrado del palacio (zoom hacia él) */
  transform: scale(var(--zoom, 1.0)) translateZ(0);
  will-change: transform;
  filter: brightness(var(--zoom-bright, 0.85));
}
.venue-hero__vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(110% 80% at 50% 55%, transparent 30%, rgba(0,0,0,0.55) 90%),
    linear-gradient(180deg, rgba(0,0,0,0.25) 0%, transparent 25%, transparent 70%, rgba(0,0,0,0.55) 100%);
  pointer-events: none;
}
.venue-hero__caption {
  position: absolute;
  bottom: clamp(3rem, 10vh, 7rem);
  left: 0; right: 0;
  text-align: center;
  z-index: 2;
  pointer-events: none;
  color: var(--ivory);
  padding: 0 var(--gutter);
  opacity: var(--cap-opacity, 1);
  transform: translateY(var(--cap-y, 0));
}
.venue-hero__caption .eyebrow { color: var(--clay); }
.venue-hero__caption .section-title {
  color: var(--ivory);
  margin-bottom: 0;
}
.venue-hero__caption .section-title em { color: var(--clay); }

@media (max-width: 720px) {
  .venue-hero__zone { height: 180vh; }
}

/* ─────────────────────────────────────
   LUGAR
   ───────────────────────────────────── */
.venue {
  padding: var(--space) 0;
  background: var(--ivory);
}
.venue__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.venue__text { padding-right: 1rem; }
.venue__facts {
  display: flex; flex-direction: column; gap: 1.5rem;
  margin: 2.5rem 0;
}
.venue__facts li {
  display: flex; gap: 1.2rem;
  align-items: flex-start;
}
.venue__ico {
  flex: 0 0 44px; width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--clay);
}
.venue__ico svg { width: 20px; height: 20px; }
.venue__facts strong {
  display: block;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: 0.2rem;
  letter-spacing: 0.02em;
}
.venue__facts p {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.55;
}
.venue__map {
  aspect-ratio: 4 / 5;
  background: var(--bone);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px -24px rgba(42,37,32,.2);
}
.venue__map iframe {
  width: 100%; height: 100%; border: 0;
  filter: grayscale(0.25) saturate(0.85);
}

@media (max-width: 880px) {
  .venue__wrap { grid-template-columns: 1fr; }
  .venue__map { aspect-ratio: 4 / 3; }
}

/* ─────────────────────────────────────
   TIMELINE
   ───────────────────────────────────── */
.schedule {
  padding: var(--space) 0;
  background: var(--bone);
}
.schedule .eyebrow,
.schedule .section-title { text-align: center; }
.schedule .section-title { margin-bottom: 4rem; }

.timeline {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}
.tl {
  display: grid;
  grid-template-columns: 6.5rem 28px 1fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-bottom: 1.8rem;
  position: relative;
}
.tl:last-child { margin-bottom: 0; }

.tl__time {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.15rem;
  color: var(--clay);
  letter-spacing: 0.04em;
  text-align: right;
  padding-top: 1rem;
  font-variant-numeric: tabular-nums;
  align-self: flex-start;
}

/* Columna del raíl: línea vertical + punto */
.tl__rail {
  position: relative;
  align-self: stretch;
  display: block;
}
/* La línea: dos trozos, uno encima del punto y otro debajo,
   de manera que el punto siempre interrumpe limpiamente. */
.tl__rail::before,
.tl__rail::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.tl__rail::before {
  top: 0;
  height: calc(1rem + 2px);            /* hasta justo por encima del punto */
}
.tl__rail::after {
  top: calc(1rem + 13px);              /* desde justo por debajo del punto */
  bottom: -1.8rem;                     /* conecta con el siguiente bloque (= margin-bottom) */
}
/* En el primer y último elemento la línea no sale por arriba/abajo */
.tl:first-child .tl__rail::before { display: none; }
.tl:last-child  .tl__rail::after  { display: none; }

/* El punto: centrado en el raíl, con fondo del color de la sección
   para "cortar" visualmente la línea (aunque las pseudos ya lo hacen,
   esto refuerza el aire limpio si hay subpixel) */
.tl__dot {
  position: absolute;
  left: 50%;
  top: 1rem;
  width: 11px; height: 11px;
  border-radius: 50%;
  background: var(--bone);
  border: 1px solid var(--clay);
  transform: translateX(-50%);
  transition: background .4s var(--ease), transform .4s var(--ease);
  z-index: 1;
}
.tl:hover .tl__dot {
  background: var(--clay);
  transform: translateX(-50%) scale(1.4);
}

.tl__card {
  padding: 1.4rem 1.6rem;
  background: var(--ivory);
  border-radius: 4px;
  border: 1px solid var(--line);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.tl__card:hover {
  transform: translateY(-3px);
  box-shadow: 0 20px 40px -20px rgba(42,37,32,.15);
}
.tl__card h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  color: var(--ink);
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
}
.tl__card p {
  font-size: 0.95rem;
  color: var(--ash);
  line-height: 1.55;
}
.tl--final .tl__card {
  background: var(--ink);
  color: var(--ivory);
  border-color: var(--ink);
}
.tl--final .tl__card h3 { color: var(--ivory); }
.tl--final .tl__card p  { color: rgba(250, 247, 242, 0.75); }

@media (max-width: 640px) {
  .tl { grid-template-columns: 4.5rem 24px 1fr; gap: 1rem; }
  .tl__time { font-size: 1rem; }
  .tl__card h3 { font-size: 1.25rem; }
}

/* ─────────────────────────────────────
   MENÚ
   ───────────────────────────────────── */
.menu {
  padding: var(--space) 0;
  background: var(--ivory);
}
.menu .eyebrow,
.menu .section-title,
.menu .lead {
  text-align: center;
  margin-inline: auto;
}
.menu .section-title { margin-bottom: 1rem; }
.menu .lead { margin-bottom: 3rem; }

.menu__tabs {
  display: flex; justify-content: center;
  gap: 0.5rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  padding-bottom: 1.5rem;
}
.menu__tab {
  padding: 0.6rem 1.4rem;
  font-size: 0.85rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ash);
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all .4s var(--ease);
}
.menu__tab:hover { color: var(--ink); }
.menu__tab.is-active {
  color: var(--ink);
  border-color: var(--ink);
  background: var(--ivory);
}

.menu__panels {
  max-width: 800px;
  margin: 0 auto;
}
.menu__panel {
  display: grid;
  gap: 2.5rem;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.menu__panel.is-active {
  opacity: 1;
  transform: translateY(0);
}
.menu__panel[hidden] { display: none; }

.menu__course {
  text-align: center;
  padding: 0 1rem;
  position: relative;
}
.menu__course::after {
  content: "·";
  display: block;
  color: var(--clay);
  margin-top: 1.8rem;
  font-size: 1.2rem;
  opacity: .5;
}
.menu__course:last-child::after { display: none; }

.menu__course-label {
  display: block;
  font-size: 10px; letter-spacing: 0.4em; text-transform: uppercase;
  color: var(--clay);
  margin-bottom: 0.6rem;
}
.menu__course h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.005em;
  margin-bottom: 0.6rem;
  max-width: 32ch;
  margin-inline: auto;
}
.menu__course p {
  font-style: italic;
  font-family: var(--serif);
  font-size: 1rem;
  color: var(--ash);
  max-width: 50ch;
  margin-inline: auto;
}

/* ─────────────────────────────────────
   RSVP
   ───────────────────────────────────── */
.rsvp {
  padding: var(--space) 0;
  background: var(--bone);
}
.rsvp__wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.rsvp__intro { padding-top: 1rem; }
.rsvp__fields {
  margin-top: 2rem;
  display: flex; flex-direction: column; gap: 0.8rem;
}
.rsvp__fields li {
  display: flex; align-items: center; gap: 0.8rem;
  font-size: 0.95rem;
  color: var(--ash);
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.rsvp__fields li::before {
  content: ""; flex: 0 0 6px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--clay);
}
.rsvp__form {
  background: var(--ivory);
  border-radius: 4px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.rsvp__iframe {
  display: block;
  width: 100%;
  height: 832px;
  min-height: 500px;
  border: 0;
  background: var(--ivory);
}

@media (max-width: 720px) {
  /* En móvil el Form se redibuja un poco más alto por reflow de los campos */
  .rsvp__iframe { height: 950px; }
}

@media (max-width: 880px) {
  .rsvp__wrap { grid-template-columns: 1fr; }
}

/* ─────────────────────────────────────
   WHATSAPP
   ───────────────────────────────────── */
.whatsapp {
  padding: var(--space) 0;
  background: var(--ivory);
}
.whatsapp__wrap {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2.5rem, 5vw, 5rem);
  background: var(--bone);
  border-radius: 6px;
  border: 1px solid var(--line);
}
.whatsapp__text .section-title { margin-bottom: 1.5rem; }
.whatsapp__cta {
  display: flex; flex-direction: column;
  align-items: flex-start; gap: 1rem;
}
.whatsapp__small {
  font-size: 0.8rem;
  color: var(--ash);
  font-style: italic;
  font-family: var(--serif);
}

@media (max-width: 720px) {
  .whatsapp__wrap { grid-template-columns: 1fr; text-align: center; }
  .whatsapp__cta { align-items: center; }
}

/* ─────────────────────────────────────
   FOOTER
   ───────────────────────────────────── */
.foot {
  padding: clamp(4rem, 8vw, 7rem) 0 3rem;
  background: var(--ink);
  color: var(--ivory);
  text-align: center;
}
.foot__mark {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6rem);
  letter-spacing: 0.15em;
  line-height: 1;
}
.foot__mark em {
  font-style: italic;
  color: var(--clay);
  margin: 0 0.1em;
}
.foot__date {
  margin-top: 1.5rem;
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: 0.4em;
  font-size: 0.95rem;
  color: rgba(250, 247, 242, 0.8);
}
.foot__city {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(250, 247, 242, 0.5);
}
.foot__msg {
  margin-top: 3rem;
  font-family: var(--serif);
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.7;
  color: rgba(250, 247, 242, 0.7);
}
.foot__msg em {
  color: var(--clay);
  font-style: italic;
}

/* ─────────────────────────────────────
   ANIMACIONES SCROLL REVEAL
   ───────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition:
    opacity 1s var(--ease),
    transform 1s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}
