/* Gabriela & Eduardo — 6 de febrero de 2027 */
:root {
  --cream: #ebeae3;
  --cream-2: #f4f3ee;
  --navy: #14247c;
  --navy-ink: #0f1a5c;
  --mist: #aab3c8;
  --mist-light: #d0dcdc;
  --terracotta: #832a17;
  --ink: #011313;
  --line: rgba(20, 36, 124, .35);

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Snell Roundhand", cursive;
  --sans: "Mulish", "Avenir Next", "Avenir", system-ui, sans-serif;

  --header-h: 84px;
  --max: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.6;
  overflow-x: clip;
}
body.menu-open { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 400; }

.script { font-family: var(--script); font-weight: 400; }
.eyebrow { font-family: var(--script); font-size: clamp(22px, 3vw, 30px); display: block; margin-bottom: .2em; }
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.02;
  font-size: clamp(30px, 8.6vw, 72px);
  overflow-wrap: break-word;
}
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.vline { width: 1px; background: var(--navy); opacity: .5; margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font-family: var(--serif); font-weight: 600; font-size: 19px; letter-spacing: .12em;
  text-transform: uppercase; text-decoration: none;
  border: 1px solid var(--navy); color: var(--navy); background: transparent;
  padding: .7em 1.6em; border-radius: 0; cursor: pointer;
  transition: background .25s, color .25s, transform .25s;
}
.btn:hover { background: var(--navy); color: var(--cream); }
.btn--solid { background: var(--navy); color: var(--cream); }
.btn--solid:hover { background: var(--navy-ink); transform: translateY(-2px); }
.btn--rsvp {
  font-size: clamp(20px, 2.4vw, 26px);
  padding: 1em 2.6em;
  box-shadow: 0 10px 28px rgba(20, 36, 124, .25);
}
.btn--light { border-color: var(--cream); color: var(--cream); }
.btn--light:hover { background: var(--cream); color: var(--navy); }
.btn--small { font-size: 14px; padding: .55em 1.1em; letter-spacing: .1em; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(235, 234, 227, .94);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: box-shadow .3s;
}
.site-header.scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; }
.brand img { width: 58px; height: 58px; }
.nav-desktop { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; }
.nav-desktop a {
  font-family: var(--serif); font-size: 17px; font-weight: 500; text-decoration: none;
  position: relative; padding: 4px 0; white-space: nowrap;
}
.nav-desktop a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1px; background: currentColor;
  transition: right .3s;
}
.nav-desktop a:hover::after, .nav-desktop a.active::after { right: 0; }
.nav-desktop a.active { color: var(--terracotta); }
.header-rsvp { margin-left: 8px; }
.burger {
  display: none; width: 44px; height: 44px; margin-left: 4px;
  background: none; border: 0; cursor: pointer; color: var(--navy); padding: 8px;
}
.burger span { display: block; height: 1.5px; background: currentColor; margin: 7px 0; }

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 100;
  background: var(--navy); color: var(--cream);
  display: flex; flex-direction: column;
  padding: 24px 32px calc(28px + env(safe-area-inset-bottom));
  overflow-y: auto;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity .35s, transform .35s, visibility 0s .35s;
}
.menu.open { opacity: 1; visibility: visible; transform: none; transition: opacity .35s, transform .35s; }
.menu-close {
  align-self: flex-end; width: 44px; height: 44px; background: none; border: 0;
  color: var(--cream); cursor: pointer; position: relative;
}
.menu-close::before, .menu-close::after {
  content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1.5px; background: currentColor;
}
.menu-close::before { transform: rotate(45deg); }
.menu-close::after { transform: rotate(-45deg); }
.menu-brand { margin: 12px 0 30px; }
.menu-brand img { width: 64px; height: 64px; margin-bottom: 14px; }
.menu-brand .script { font-size: 40px; line-height: 1.1; display: block; }
.menu-list { list-style: none; margin: 0; padding: 0; }
.menu-list a {
  display: block; padding: 13px 0;
  font-family: var(--serif); font-size: 21px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border-bottom: 1px solid rgba(235, 234, 227, .14);
}
.menu-list a:hover { color: var(--mist); }
.menu .btn--rsvp { margin-top: 30px; width: 100%; background: var(--cream); color: var(--navy); border-color: var(--cream); box-shadow: none; }
.menu-foot { margin-top: auto; padding-top: 28px; font-family: var(--script); font-size: 22px; opacity: .7; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  padding: calc(var(--header-h) + 40px) 0 0;
  text-align: center; overflow: hidden;
}
.hero-names {
  font-family: var(--serif); font-weight: 400; text-transform: uppercase;
  font-size: clamp(64px, 13vw, 150px); line-height: .98; letter-spacing: .01em;
  position: relative; z-index: 2;
}
.hero-names .amp { display: block; font-size: .8em; }
.hero-date { font-size: clamp(28px, 4vw, 40px); margin-top: 22px; display: block; }
.hero-place { font-size: clamp(18px, 2.3vw, 22px); display: block; margin-top: 2px; }
.hero .btn--rsvp { margin-top: 30px; }
.hero .vline { height: 140px; margin-top: 48px; }

/* ---------- Itinerario ---------- */
.itinerary { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.itinerary-head {
  position: sticky; top: var(--header-h); align-self: start;
  min-height: calc(100vh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px;
  border-right: 1px solid var(--line);
}
.itinerary-head .script { font-size: clamp(26px, 3vw, 34px); margin-top: 18px; }
.itinerary-head .place { font-family: var(--script); font-size: 22px; }
.itinerary-list { display: flex; flex-direction: column; }
.event {
  padding: clamp(48px, 8vw, 90px) 24px; text-align: center;
  border-bottom: 1px solid var(--line);
}
.event:last-child { border-bottom: 0; }
.event h3 { font-family: var(--script); font-size: clamp(38px, 4.4vw, 50px); line-height: 1.1; margin-bottom: 16px; }
.event p { margin: 0 0 12px; font-size: 17px; }
.event b { font-weight: 700; }
.event .time { font-size: 22px; font-family: var(--serif); font-weight: 600; letter-spacing: .06em; }
.event .map-link { display: inline-block; margin-top: 8px; font-weight: 700; }
.event-photo { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.shuttle { display: grid; gap: 14px; max-width: 360px; margin: 0 auto; }
.shuttle div { padding: 14px; border: 1px solid var(--line); }

/* ---------- Nosotros ---------- */
.us { background: var(--cream-2); padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.us .section-title { margin-bottom: 10px; }
.illustration { width: min(1100px, 100%); margin: 30px auto 50px; mix-blend-mode: multiply; }
.gallery {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 12px;
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery .g1 { grid-column: span 7; aspect-ratio: 3/2; }
.gallery .g2 { grid-column: span 5; aspect-ratio: auto; }
.gallery .g3 { grid-column: span 4; aspect-ratio: 2/3; }
.gallery .g4 { grid-column: span 4; aspect-ratio: 2/3; }
.gallery .g5 { grid-column: span 4; aspect-ratio: 2/3; }
.gallery .g6 { grid-column: span 12; aspect-ratio: 21/9; object-position: center 40%; }

/* ---------- Recomendaciones ---------- */
.recs { background: var(--mist-light); padding: clamp(70px, 10vw, 120px) 0; }
.recs-intro { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.recs-intro p { margin: 18px 0 0; }
.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; margin-bottom: 18px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; font-family: var(--serif); font-weight: 600; font-size: 16px; letter-spacing: .08em;
  text-transform: uppercase; color: var(--navy); background: transparent;
  border: 1px solid var(--navy); padding: .55em 1.1em; cursor: pointer;
}
.tab[aria-selected="true"] { background: var(--navy); color: var(--cream); }
.tab-intro { font-family: var(--script); font-size: 28px; margin: 0 0 14px; }
.recs-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; }
.places { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; max-height: 620px; overflow-y: auto; padding-right: 6px; }
.place {
  background: var(--cream); padding: 16px 18px; border: 1px solid transparent; cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.place:hover { border-color: var(--line); }
.place.active { border-color: var(--navy); box-shadow: inset 4px 0 0 var(--navy); }
.place h4 { margin: 0 0 4px; font-family: var(--serif); font-size: 22px; font-weight: 600; line-height: 1.2; }
.place p { margin: 0 0 6px; font-size: 15px; line-height: 1.5; }
.place .addr { font-size: 13px; opacity: .75; }
.place .actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; font-size: 14px; font-weight: 700; }
.place .actions a { text-underline-offset: 3px; }
.map-box { position: sticky; top: calc(var(--header-h) + 16px); background: var(--cream); padding: 10px; }
.map-box iframe { width: 100%; height: 520px; border: 0; display: block; background: var(--mist); }
.map-box .map-cap { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 4px 4px; font-size: 14px; }
.map-box .map-cap strong { font-family: var(--serif); font-size: 19px; font-weight: 600; }

/* ---------- Vestimenta ---------- */
.dress { background: var(--mist); padding: clamp(70px, 10vw, 120px) 0; text-align: center; }
.dress-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 44px; text-align: center; }
.dress-card { background: var(--cream); padding: 30px 22px; }
.dress-card svg { width: 44px; height: 44px; margin: 0 auto 10px; stroke: var(--navy); fill: none; stroke-width: 1.3; }
.dress-card h3 { font-family: var(--script); font-size: 34px; margin-bottom: 6px; }
.dress-card p { margin: 0; }
.dress-note { max-width: 620px; margin: 34px auto 0; font-size: 16px; }

/* ---------- RSVP ---------- */
.rsvp { padding: clamp(80px, 12vw, 140px) 0; text-align: center; position: relative; }
.rsvp .vline { height: 90px; margin-bottom: 40px; }
.rsvp p { max-width: 560px; margin: 22px auto 34px; font-size: 18px; }
.rsvp .btn--rsvp { font-size: clamp(22px, 3vw, 30px); padding: 1.05em 3em; }

/* ---------- Regalos ---------- */
.gifts { padding: 0 0 clamp(80px, 12vw, 130px); text-align: center; }
.gifts-inner { max-width: 820px; margin: 0 auto; }
.gifts .intro { margin: 20px auto 40px; max-width: 640px; }
.gift-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: center; }
.gift-card { border: 1px solid var(--line); padding: 26px 18px; background: var(--cream-2); }
.gift-card h3 { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 10px; line-height: 1.3; }
.gift-card p { margin: 0 0 4px; font-size: 15px; }
.gift-card .num { font-family: var(--serif); font-size: 21px; font-weight: 600; letter-spacing: .04em; }
.copy { margin-top: 10px; background: none; border: 0; color: var(--navy); font: 700 13px var(--sans); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ---------- FAQ ---------- */
.faq { background: var(--terracotta); color: var(--cream); padding: clamp(70px, 10vw, 120px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.4fr; gap: 40px; align-items: start; }
.faq .section-title { color: var(--mist); position: sticky; top: calc(var(--header-h) + 30px); }
.faq details { border-bottom: 1px solid rgba(235, 234, 227, .25); }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 36px 18px 0; position: relative;
  font-family: var(--serif); font-size: 22px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font-size: 28px; font-weight: 300; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; opacity: .9; }

/* ---------- Footer ---------- */
.footer { background: var(--terracotta); color: var(--cream); padding: 30px 0 110px; border-top: 1px solid rgba(235, 234, 227, .2); }
.footer .wrap { display: flex; justify-content: space-between; align-items: end; gap: 30px; flex-wrap: wrap; }
.footer .monogram { font-family: var(--serif); font-style: italic; font-size: clamp(90px, 14vw, 170px); line-height: 1; color: var(--mist); }
.footer nav { display: grid; gap: 4px; text-align: right; font-size: 15px; }
.footer nav a { text-decoration: none; }
.footer nav a:hover { text-decoration: underline; }

/* ---------- Floating RSVP (mobile) ---------- */
.rsvp-float {
  position: fixed; left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); z-index: 40;
  display: none; font-size: 19px; padding: .9em 1em;
  transform: translateY(150%); transition: transform .35s;
  box-shadow: 0 10px 30px rgba(1, 19, 19, .3);
}
.rsvp-float.show { transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s ease, transform .9s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav-desktop { display: none; }
  .burger { display: block; }
  .header-rsvp { margin-left: auto; }
  .recs-body { grid-template-columns: 1fr; }
  .dress-grid { grid-template-columns: repeat(2, 1fr); }
  .map-box { position: static; order: -1; }
  .map-box iframe { height: 320px; }
  .places { max-height: none; overflow: visible; }
}
@media (max-width: 760px) {
  :root { --header-h: 70px; }
  body { font-size: 16px; }
  .brand img { width: 48px; height: 48px; }
  .header-rsvp { font-size: 15px; padding: .5em 1em; }
  .hero { padding-top: calc(var(--header-h) + 30px); min-height: auto; }
  .hero .vline { height: 70px; margin-top: 36px; }
  .itinerary { grid-template-columns: 1fr; }
  .itinerary-head { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); padding: 60px 20px 50px; }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .gallery img { grid-column: span 1 !important; aspect-ratio: 2/3 !important; }
  .gallery .g1, .gallery .g6 { grid-column: span 2 !important; aspect-ratio: 3/2 !important; }
  .illustration { margin: 20px auto 34px; }
  .dress-grid, .gift-cards { grid-template-columns: 1fr; }
  .faq-grid { grid-template-columns: 1fr; gap: 10px; }
  .faq .section-title { position: static; }
  .faq summary { font-size: 20px; }
  .footer nav { text-align: left; }
  .rsvp-float { display: flex; }
}

/* Números alineados (Cormorant usa números de estilo antiguo por defecto) */
.num, .time, .hero-names, .section-title { font-variant-numeric: lining-nums; }

.btn { text-align: center; }
.menu-brand img { background: var(--cream); padding: 6px; }
@media (max-width: 760px) {
  .btn--rsvp, .rsvp .btn--rsvp { font-size: 19px; letter-spacing: .1em; padding: 1em 1.4em; white-space: nowrap; }
  .hero .btn--rsvp { width: calc(100% - 40px); max-width: 340px; }
}
@media (max-width: 760px) {
  .dress-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .dress-card { padding: 22px 12px; }
  .dress-card h3 { font-size: 27px; }
  .dress-card p { font-size: 14px; }
}

/* =========================================================
   Efecto de scroll (igual que el original):
   cada bloque .pin se queda fijo bajo el encabezado y el
   siguiente bloque sube y lo tapa, como cartas apiladas.
   main.js ajusta `top` en bloques más altos que la pantalla
   para que se lean completos antes de fijarse.
   ========================================================= */
.pin { position: sticky; top: var(--header-h); }
main > *, .stack > *, .itinerary-list > * { position: relative; }
main > .pin, .stack > .pin, .itinerary > .pin, .itinerary-list > .pin { position: sticky; }

.hero { min-height: 100svh; top: 0; z-index: 0; }
.hero .vline { height: 30vh; }

/* Fotos que suben sobre los nombres */
.collage { height: 150vh; pointer-events: none; z-index: 1; }
.collage img { position: absolute; object-fit: cover; box-shadow: 0 18px 50px rgba(1, 19, 19, .18); }
.collage .c1 { width: clamp(170px, 24vw, 330px); aspect-ratio: 4/5; left: 8%; top: 0; }
.collage .c2 { width: clamp(150px, 20vw, 280px); aspect-ratio: 5/6; right: 9%; top: 22%; }
.collage .c3 { width: clamp(150px, 20vw, 280px); aspect-ratio: 5/6; left: 18%; top: 52%; }

.itinerary, .us, .recs, .rsvp, .faq, .gifts, .dress { z-index: 2; }
.itinerary { background: var(--cream); }
.event {
  background: var(--cream);
  min-height: min(560px, calc(100svh - var(--header-h)));
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-top: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -14px 30px rgba(1, 19, 19, .06);
}
.event-photo { height: calc(100svh - var(--header-h)); aspect-ratio: auto; }

/* Paneles de recomendaciones */
.stack { position: relative; z-index: 2; }
.recs-title {
  background: var(--mist-light); text-align: center;
  height: calc(100svh - var(--header-h));
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 30px; padding: 0 20px;
}
.recs-title .vline { flex: 1; max-height: 28vh; }
.rec-panel {
  display: grid; grid-template-columns: 1fr 1fr;
  height: calc(100svh - var(--header-h)); max-height: 760px;
  background: var(--cream);
  box-shadow: 0 -14px 30px rgba(1, 19, 19, .08);
}
.rec-panel img { width: 100%; height: 100%; object-fit: cover; }
.rec-panel--flip img { order: 2; }
.rec-panel-text { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 40px clamp(24px, 5vw, 70px); }
.rec-panel-text h3 { font-size: clamp(44px, 5vw, 60px); line-height: 1.1; margin-bottom: 16px; }
.rec-panel-text p { max-width: 460px; margin: 0 0 26px; }
#explorar { box-shadow: 0 -14px 30px rgba(1, 19, 19, .08); }

.dress { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
.dress > .wrap { width: min(var(--max), 100% - 40px); }
.rsvp { background: var(--cream); box-shadow: 0 -14px 30px rgba(1, 19, 19, .08); }
.gifts { background: var(--cream); padding-top: clamp(70px, 10vw, 110px); }
.faq { box-shadow: 0 -14px 30px rgba(1, 19, 19, .12); }

@media (max-width: 760px) {
  .collage { height: 125vh; }
  .collage .c1 { width: 52vw; left: 6%; }
  .collage .c2 { width: 46vw; right: 6%; top: 26%; }
  .collage .c3 { width: 46vw; left: 12%; top: 56%; }
  .event-photo { height: 70svh; }
  .rec-panel { grid-template-columns: 1fr; grid-template-rows: 40svh auto; height: auto; min-height: calc(100svh - var(--header-h)); max-height: none; }
  .rec-panel--flip img { order: 0; }
  .rec-panel-text { padding: 22px 24px; justify-content: flex-start; }
  .rec-panel-text h3 { font-size: 40px; margin-bottom: 8px; }
  .rec-panel-text p { font-size: 15px; margin-bottom: 18px; }
}
@media (max-width: 760px) and (max-height: 700px) {
  .rec-panel-text p { font-size: 14px; line-height: 1.5; }
}
/* Portada compacta para que los nombres queden fijos a la vista */
.hero { padding-top: calc(var(--header-h) + 24px); }
.hero-names { font-size: clamp(56px, min(13vw, 14.5vh), 150px); }
.hero-date { margin-top: 12px; }
.hero .btn--rsvp { margin-top: 22px; }
.hero .vline { height: clamp(40px, 12vh, 140px); margin-top: 28px; }

/* Pestañas de recomendaciones en celular: cuadrícula de 2 columnas, todas visibles */
@media (max-width: 760px) {
  .tabs { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: 1fr; gap: 8px; overflow: visible; padding: 0; }
  .tab { font-size: 13.5px; letter-spacing: .06em; padding: .8em .5em; line-height: 1.25; white-space: normal; text-align: center; }
}

/* Firma discreta de Winvite (aprobada por los novios) */
.footer .credit { display: block; margin: 28px auto 0; padding-top: 16px; border-top: 1px solid rgba(235, 234, 227, .15); font-size: 12px; letter-spacing: .08em; opacity: .55; text-align: center; }
.footer .credit a { text-decoration: none; }
.footer .credit a:hover { text-decoration: underline; opacity: 1; }
