/* =========================================================
   Pau & André · 15.05.2027
   Paleta inspirada en los nenúfares de Monet del diseño original
   ========================================================= */
:root {
  --paper: #f6f2ea;
  --paper-2: #efe8db;
  --ink: #3a3631;
  --ink-soft: #6b645b;
  --gold: #b08d57;
  --gold-dark: #8c6c3c;
  --lilac: #b9a7cf;
  --water: #9fb4d4;
  --leaf: #6e8560;
  --white: #fffdf9;
  --radius: 4px;
  --shadow: 0 18px 50px -24px rgba(58, 54, 49, .45);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --script: "Pinyon Script", cursive;
  --gutter: clamp(16px, 5vw, 48px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: clamp(18px, 1.1vw + 12px, 21px);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden;
}
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
address { font-style: normal; }
[hidden] { display: none !important; }

/* ---------- utilidades ---------- */
.container { width: min(1120px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 680px; text-align: center; }
.section { padding: clamp(64px, 10vw, 128px) 0; position: relative; }
.script { font-family: var(--script); font-weight: 400; }
.eyebrow {
  text-transform: uppercase; letter-spacing: .32em; font-size: .72em;
  color: var(--gold-dark); margin: 0 0 .75rem;
}
.eyebrow--light { color: #f3e6cc; }
.section-title {
  font-size: clamp(2.6rem, 5vw, 3.8rem); line-height: 1.1;
  color: var(--gold-dark); margin: 0 0 1.25rem;
}
.title {
  font-weight: 500; text-transform: uppercase; letter-spacing: .18em;
  font-size: clamp(1.05rem, 1.6vw, 1.3rem); margin: 0 0 .75rem;
}
.lead { font-size: 1.2em; font-style: italic; font-weight: 300; }
.muted { color: var(--ink-soft); }

.btn {
  display: inline-block; margin-top: 1.25rem;
  padding: .8em 1.9em; border: 1px solid var(--gold); border-radius: 999px;
  text-decoration: none; text-transform: uppercase; letter-spacing: .2em; font-size: .72em;
  font-family: var(--serif); font-weight: 600; color: var(--gold-dark); background: transparent;
  cursor: pointer; transition: background .25s, color .25s, transform .25s;
}
.btn:hover, .btn:focus-visible { background: var(--gold); color: var(--white); transform: translateY(-1px); }
.btn--solid { background: var(--gold); color: var(--white); }
.btn--solid:hover { background: var(--gold-dark); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* split layouts: 1 columna en móvil, 2 en escritorio */
.split { display: grid; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (min-width: 860px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse > :first-child { order: 2; }
}
.split > div { text-align: center; }
@media (min-width: 860px) { .split > div { text-align: left; } }

.photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.photo { margin: 0; }

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

/* ---------- sobre de entrada ---------- */
.envelope {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center; padding: var(--gutter);
  background:
    linear-gradient(rgba(246, 242, 234, .86), rgba(246, 242, 234, .92)),
    url("/assets/img/monet-nenufares.jpg") center / cover;
  transition: opacity .9s ease, visibility .9s;
}
.envelope.is-open { opacity: 0; visibility: hidden; }
.envelope__inner {
  text-align: center; background: var(--white); padding: clamp(36px, 6vw, 64px) clamp(24px, 6vw, 72px);
  border: 1px solid rgba(176, 141, 87, .45); outline: 1px solid rgba(176, 141, 87, .25); outline-offset: -10px;
  box-shadow: var(--shadow); max-width: 520px; width: 100%;
}
.envelope__mono { width: 150px; height: auto; margin: 0 auto 1rem; }
.envelope__names { font-size: clamp(3rem, 10vw, 4.4rem); margin: 0; line-height: 1.1; color: var(--ink); }
.envelope__names span, .hero__names span { color: var(--gold); }
.envelope__guest { margin: 1rem 0 0; font-style: italic; color: var(--ink-soft); }
.envelope__guest strong { display: block; font-style: normal; color: var(--ink); font-size: 1.2em; font-weight: 500; }
.envelope__hint { font-size: .72em; color: var(--ink-soft); margin: 1rem 0 0; }

/* ---------- música ---------- */
.music {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--gold);
  background: rgba(255, 253, 249, .92); color: var(--gold-dark); cursor: pointer;
  display: grid; place-items: center; box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
}
.music svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.music[aria-pressed="true"] svg { animation: spin 4s linear infinite; }
.music[aria-pressed="false"]::after {
  content: ""; position: absolute; width: 26px; height: 1.5px; background: currentColor; transform: rotate(-45deg);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: none; align-items: center; justify-content: space-between;
  padding: 14px var(--gutter);
  background: rgba(246, 242, 234, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(176, 141, 87, .25);
  transform: translateY(-100%); transition: transform .4s ease;
}
.nav.is-visible { transform: none; }
.nav__brand { font-size: 1.8rem; text-decoration: none; color: var(--gold-dark); line-height: 1; }
.nav__links { display: flex; gap: clamp(16px, 2.4vw, 36px); list-style: none; margin: 0; padding: 0; align-items: center; }
.nav__links a { text-decoration: none; text-transform: uppercase; letter-spacing: .18em; font-size: .7em; font-weight: 600; }
.nav__links a:hover { color: var(--gold-dark); }
.nav__cta { border: 1px solid var(--gold); padding: .55em 1.2em; border-radius: 999px; }
@media (min-width: 960px) { .nav { display: flex; } }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; display: grid; place-items: center;
  color: var(--white); text-align: center; overflow: hidden; isolation: isolate;
}
.hero__bg, .hero__bg img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__bg img { object-fit: cover; object-position: 50% 70%; animation: kenburns 24s ease-out both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, rgba(20, 24, 18, .35) 0%, rgba(20, 24, 18, .15) 40%, rgba(20, 24, 18, .55) 100%);
}
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero__content { position: relative; z-index: 1; padding: 0 var(--gutter); }
.hero__names { font-size: clamp(4rem, 14vw, 9rem); line-height: 1; margin: 0; text-shadow: 0 2px 30px rgba(0, 0, 0, .3); }
.hero__date { letter-spacing: .32em; text-transform: uppercase; font-size: clamp(.8rem, 1.5vw, 1rem); margin: 1rem 0 2rem; }
.countdown { display: flex; justify-content: center; gap: clamp(10px, 3vw, 28px); }
.countdown div {
  min-width: clamp(64px, 16vw, 104px); padding: 12px 6px;
  border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); backdrop-filter: blur(4px);
}
.countdown strong { display: block; font-size: clamp(1.6rem, 5vw, 2.6rem); font-weight: 300; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown span { font-size: .62em; letter-spacing: .2em; text-transform: uppercase; }
.hero__scroll {
  position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .8); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; background: #fff; border-radius: 2px; animation: scrolldot 2s infinite; }
@keyframes scrolldot { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- pase ---------- */
.pass { padding: clamp(48px, 8vw, 96px) var(--gutter) 0; }
.pass__card {
  max-width: 560px; margin: 0 auto; text-align: center; background: var(--white);
  padding: 36px 24px; border: 1px solid rgba(176, 141, 87, .45);
  outline: 1px solid rgba(176, 141, 87, .25); outline-offset: -10px; box-shadow: var(--shadow);
}
.pass__name { font-family: var(--script); font-size: clamp(2.2rem, 6vw, 3rem); line-height: 1.2; margin: 0; }
.pass__seats { text-transform: uppercase; letter-spacing: .2em; font-size: .8em; margin: .5rem 0; }
.pass__seats span { color: var(--gold-dark); font-weight: 600; }
.pass__note { font-size: .85em; color: var(--ink-soft); margin: .5rem 0 0; font-style: italic; }

/* ---------- bienvenida ---------- */
.frame { margin: 0 auto; max-width: 420px; padding: 14px; background: var(--white); box-shadow: var(--shadow); border-radius: 50% / 42%; }
.frame img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 50% / 42%; }
.welcome__text .mono { width: 160px; height: auto; margin: 0 auto 1.5rem; }
@media (min-width: 860px) { .welcome__text .mono { margin-left: 0; } }
.welcome__text .lead { font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.45; }
.parents { font-size: clamp(1.8rem, 3vw, 2.3rem); color: var(--gold-dark); margin: 1.5rem 0 0; line-height: 1.3; }
.parents span { display: block; font-size: .8em; }

/* ---------- save the date ---------- */
.savedate { background: var(--paper-2); }
.savedate__img { width: min(560px, 100%); margin: 1rem auto 2rem; }

/* ---------- frases ---------- */
.quote { position: relative; padding: clamp(72px, 12vw, 140px) var(--gutter); text-align: center; overflow: hidden; }
.quote blockquote {
  margin: 0 auto; max-width: 720px; font-size: clamp(1.7rem, 4vw, 2.8rem); line-height: 1.3; font-weight: 300;
}
.quote em { font-family: var(--script); font-style: normal; color: var(--gold-dark); font-size: 1.3em; }
.quote__deco { position: absolute; left: max(-20px, 4vw - 40px); top: 50%; transform: translateY(-50%); width: clamp(70px, 10vw, 140px); opacity: .9; pointer-events: none; }
.quote__deco--right { left: auto; right: max(-20px, 4vw - 40px); }
@media (max-width: 600px) { .quote__deco { opacity: .35; } }
.quote--photo { color: var(--white); min-height: 70vh; display: grid; place-items: center; isolation: isolate; }
.quote--photo::after { content: ""; position: absolute; inset: 0; background: rgba(25, 25, 20, .45); z-index: -1; }
.quote__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.quote--photo em { color: #f1dcb4; }

/* ---------- itinerario ---------- */
.itinerary { text-align: center; background: var(--white); }
.itinerary::before, .itinerary::after {
  content: ""; position: absolute; left: 0; right: 0; height: clamp(60px, 9vw, 120px);
  background: url("/assets/img/acuarela-franja.webp") center / cover no-repeat; opacity: .85;
}
.itinerary::before { top: 0; transform: scaleY(-1); }
.itinerary::after { bottom: 0; }
.timeline {
  list-style: none; margin: 2rem auto 0; padding: 0; position: relative;
  display: grid; gap: 8px; max-width: 360px;
}
.timeline::before { content: ""; position: absolute; top: 40px; bottom: 40px; left: 50%; border-left: 1px dashed var(--gold); }
.timeline li { position: relative; background: var(--white); padding: 18px 0; }
.timeline svg { width: 72px; height: 72px; margin: 0 auto 6px; fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; background: var(--white); }
.timeline h3 { margin: 0; text-transform: uppercase; letter-spacing: .2em; font-size: .85em; font-weight: 600; }
.timeline time { color: var(--gold-dark); font-size: 1.15em; }
@media (min-width: 860px) {
  .timeline { max-width: none; grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .timeline::before { top: 54px; bottom: auto; left: 8%; right: 8%; border-left: 0; border-top: 1px dashed var(--gold); }
  .timeline li { background: transparent; }
}

/* ---------- galería ---------- */
.gallery__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.gallery__grid img { width: 100%; aspect-ratio: 2 / 3; object-fit: cover; }
@media (max-width: 600px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; }
  .gallery__grid img:first-child { grid-column: span 2; aspect-ratio: 4 / 3; }
}

@media (min-width: 601px) { .gallery--bw .gallery__grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .gallery--bw .gallery__grid img:first-child { grid-column: auto; aspect-ratio: 2 / 3; } }

/* ---------- hospedaje ---------- */
.lodging { isolation: isolate; }
.lodging__bg { position: absolute; inset: 0; z-index: -1; background: url("/assets/img/monet-nenufares.jpg") center / cover; }
.lodging__bg::after { content: ""; position: absolute; inset: 0; background: rgba(246, 242, 234, .25); }
.card {
  background: rgba(255, 253, 249, .95); padding: clamp(32px, 5vw, 56px) clamp(20px, 5vw, 56px);
  text-align: center; box-shadow: var(--shadow); max-width: 640px; margin: 0 auto;
  border: 1px solid rgba(176, 141, 87, .3);
}
.code { margin: 1.25rem 0 0; text-transform: uppercase; letter-spacing: .18em; font-size: .78em; }

.copy {
  display: inline-flex; align-items: center; gap: .75em; margin-top: .4rem;
  font: inherit; color: var(--ink); background: var(--paper); cursor: pointer;
  border: 1px dashed var(--gold); border-radius: var(--radius); padding: .5em .9em;
  letter-spacing: .08em; text-transform: none;
}
.copy strong { white-space: nowrap; font-weight: 600; font-size: 1.05em; font-variant-numeric: tabular-nums; }
.copy span { font-size: .7em; text-transform: uppercase; letter-spacing: .18em; color: var(--gold-dark); }
.copy:hover { background: var(--paper-2); }
.code .copy strong { font-size: 1.4em; letter-spacing: .2em; }

/* ---------- regalos ---------- */
.accounts { display: grid; gap: 16px; margin-top: 1.5rem; }
@media (min-width: 560px) { .accounts { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); } }
.account { background: var(--white); border: 1px solid rgba(176, 141, 87, .3); padding: 24px 16px; text-align: center; }
.account img { height: 30px; width: auto; margin: 0 auto 14px; }
.account__name { margin: 0; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; font-size: .82em; }
.account__label { margin: .75rem 0 0; font-size: .7em; letter-spacing: .25em; color: var(--ink-soft); }
.account .copy { font-size: .9em; }
.account .copy strong { font-size: 1em; letter-spacing: .04em; }

/* ---------- vestimenta ---------- */
.dress { background: var(--paper-2); }
.tips { list-style: none; padding: 0; margin: 1rem 0 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
@media (min-width: 860px) { .tips { justify-content: flex-start; } }
.tips li { border: 1px solid rgba(176, 141, 87, .5); border-radius: 999px; padding: .3em 1em; font-size: .85em; }

/* ---------- fotos / rsvp ---------- */
.icon-lg { width: 72px; height: 72px; margin: 0 auto 1rem; fill: none; stroke: var(--gold-dark); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.rsvp { background: var(--white); }

/* ---------- notas ---------- */
.two-cards { display: grid; gap: 24px; }
@media (min-width: 860px) { .two-cards { grid-template-columns: 1fr 1fr; } }
.two-cards .card { max-width: none; }
.contacts { display: flex; flex-direction: column; gap: 6px; margin-top: 1rem; }
.contacts a { color: var(--gold-dark); font-weight: 600; text-decoration: none; border-bottom: 1px solid transparent; align-self: center; }
.contacts a:hover { border-color: currentColor; }

/* ---------- cierre ---------- */
.closing { position: relative; min-height: 90vh; display: grid; place-items: center; color: var(--white); text-align: center; isolation: isolate; overflow: hidden; }
.closing__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; z-index: -2; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(20, 20, 16, .2), rgba(20, 20, 16, .6)); z-index: -1; }
.closing h2 { font-size: clamp(3.4rem, 10vw, 6rem); margin: 0; line-height: 1; }
.closing p { font-size: clamp(1.2rem, 2.5vw, 1.6rem); font-style: italic; margin: .5rem 0 1.5rem; }
.closing__content img { width: 140px; margin: 0 auto; filter: brightness(1.6); }
.closing .closing__names { font-style: normal; font-size: clamp(2.2rem, 5vw, 3rem); margin-top: 1rem; }

.footer { text-align: center; padding: 28px var(--gutter) 88px; font-size: .75em; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 140%); z-index: 120;
  background: var(--ink); color: var(--white); padding: .7em 1.4em; border-radius: 999px; font-size: .85em;
  transition: transform .35s ease, opacity .35s ease; pointer-events: none; opacity: 0;
}
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; }
