/* ==========================================================================
   PATI & SANTI — Sistema visual
   Concepto: «Mediodía en el Empordà». Editorial, mediterráneo, sereno.
   Un único motivo: el arco de medio punto de la masía. El resto es tipografía,
   aire y filetes finos.
   ========================================================================== */

/* ------------------------------------------------------------------ Fuentes */
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-roman.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url("../fonts/newsreader-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ------------------------------------------------------------------- Tokens */
:root {
  --paper: #FBF9F5;      /* blanco roto, muy claro */
  --ivory: #F3ECE1;      /* arena clara (secciones alternas) */
  --sand: #E7DFD1;       /* arena (fondos de imagen) */
  --stone: #B5A893;      /* piedra (filetes) */
  --muted: #625649;      /* texto secundario (AA sobre todos los fondos) */
  --ink: #33281F;        /* marrón cálido para texto */
  --ink-2: #57493C;
  --olive: #9C5434;      /* acento: terracota de los tejados del Empordà */
  --sea-deep: #2C4553;   /* azul mediterráneo profundo (confirmación) */
  --sage: #A6AF96;       /* salvia */
  --sea: #587480;        /* azul mediterráneo desaturado */
  --sea-ink: #4E6A75;
  --on-ink: #F4EEE4;
  --on-ink-2: #CDBFA6;
  --line: rgba(51, 40, 31, .16);
  --line-strong: rgba(51, 40, 31, .55);

  --serif: "Newsreader", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --pad: clamp(20px, 5.4vw, 72px);
  --maxw: 1320px;
  --sec: clamp(60px, 7vw, 108px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .7, .15, 1);

  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.045'/%3E%3C/svg%3E");
}

/* -------------------------------------------------------------------- Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper) var(--grain);
  color: var(--ink);
  font: 400 1.0625rem/1.62 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-kerning: normal;
  overflow-x: hidden;
}
html.menu-open body { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--sea); outline-offset: 3px; }
.tone-ink :focus-visible { outline-color: var(--on-ink); }
[hidden] { display: none !important; }
::selection { background: var(--sand); color: var(--ink); }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.noscript { padding: 2rem; font-size: 1.1rem; }

/* ------------------------------------------------------------- Tipografía */
.h2 {
  font-family: var(--serif);
  font-weight: 350;
  font-variation-settings: "opsz" 72;
  font-size: clamp(2.5rem, 6.4vw, 4.6rem);
  line-height: .98;
  letter-spacing: -.022em;
  margin: 0;
  text-wrap: balance;
}
.kicker {
  display: flex; align-items: center; gap: .9em;
  margin: 0 0 1.5rem;
  font: 600 .72rem/1 var(--sans);
  letter-spacing: .22em; text-transform: uppercase;
  color: var(--muted);
}
.kicker__n {
  font: italic 350 1.1rem/1 var(--serif);
  font-variation-settings: "opsz" 24;
  letter-spacing: 0; text-transform: none;
  color: var(--olive);
  display: inline-flex; align-items: center; gap: .9em;
}
.kicker__n::after { content: ""; width: 32px; height: 1px; background: currentColor; opacity: .55; }
.lead {
  font-family: var(--serif);
  font-variation-settings: "opsz" 30;
  font-size: clamp(1.32rem, 2.3vw, 1.72rem);
  line-height: 1.36;
  letter-spacing: -.005em;
  color: var(--ink);
  text-wrap: pretty;
}
.ico { width: .78em; height: .78em; flex: none; }

/* ---------------------------------------------------------------- Layout */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
.s { padding: var(--sec) 0; position: relative; }
.tone-ivory { background: var(--ivory) var(--grain); }
.tone-ink { background: var(--sea-deep); color: var(--on-ink); }

.s-head { margin-bottom: clamp(30px, 4vw, 52px); }
.s-head__text { max-width: 34em; margin: 1.75rem 0 0; color: var(--ink-2); text-wrap: pretty; }
@media (min-width: 960px) {
  .s-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: end; }
  .s-head .kicker { grid-column: 1 / -1; }
  .s-head .h2 { grid-column: 1 / 8; }
  .s-head__text { grid-column: 8 / 13; margin: 0; padding-bottom: .5rem; }
}

/* ------------------------------------------------------------- Botones */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  min-height: 54px; padding: 0 1.7em;
  background: var(--ink); color: var(--paper);
  border: 1px solid var(--ink); border-radius: 0;
  font: 600 .78rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--olive); border-color: var(--olive); }
.btn--light { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.btn--light:hover { background: var(--sand); border-color: var(--sand); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--sm { min-height: 40px; padding: 0 1.15em; font-size: .68rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn.is-done, .code__copy.is-done { background: var(--olive); border-color: var(--olive); color: var(--paper); }

.link {
  display: inline-flex; align-items: center; gap: .4em;
  min-height: 44px; padding: 0;
  background: none; border: 0;
  font: 500 .95rem/1.2 var(--sans); color: inherit;
  text-decoration: underline; text-decoration-thickness: 1px;
  text-decoration-color: var(--stone); text-underline-offset: .32em;
  transition: text-decoration-color .25s;
}
.link:hover { text-decoration-color: currentColor; }

/* Dato pendiente (solo modo borrador) */
.pend {
  display: inline-block; vertical-align: middle;
  margin: .3em .2em .3em 0; padding: .3em .6em;
  font: 600 .66rem/1.3 var(--sans); letter-spacing: .05em; text-transform: uppercase; font-style: normal;
  color: #7A4B07; background: #F7E3B5; border: 1px dashed #C08A2E;
}
.pend--block { display: block; width: fit-content; margin-top: 1rem; }

/* -------------------------------------------------------------------- Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 30;
  padding-top: env(safe-area-inset-top);
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease);
}
.nav[data-state="solid"], .nav[data-menu="open"] { background: rgba(251, 249, 245, .94); box-shadow: 0 1px 0 var(--line); }
@supports (backdrop-filter: blur(8px)) { .nav[data-state="solid"] { background: rgba(251, 249, 245, .82); backdrop-filter: blur(10px) saturate(1.1); -webkit-backdrop-filter: blur(10px) saturate(1.1); } }
.nav__in { height: var(--nav-h); max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; gap: 2rem; }
.nav__mono { font: 400 1.5rem/1 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.02em; text-decoration: none; margin-right: auto; }
.nav__mono i { color: var(--olive); padding: 0 .06em; }
.nav__links { display: none; gap: 1.9rem; }
.nav__links a { font: 500 .84rem/1 var(--sans); letter-spacing: .04em; text-decoration: none; padding: .6rem 0; position: relative; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { display: none; }
.nav__toggle { background: none; border: 0; padding: .7rem 0 .7rem .7rem; min-height: 44px; font: 600 .74rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
@media (min-width: 760px) { .nav__cta { display: inline-flex; } }
@media (min-width: 1080px) { .nav__links { display: flex; } .nav__toggle { display: none; } }

.menu { position: fixed; inset: 0; z-index: 25; background: var(--paper) var(--grain); padding: calc(var(--nav-h) + env(safe-area-inset-top) + 24px) var(--pad) calc(32px + env(safe-area-inset-bottom)); overflow-y: auto; animation: menuIn .4s var(--ease); }
.menu__in { max-width: var(--maxw); margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.menu__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.menu__list li { border-bottom: 1px solid var(--line); }
.menu__list a { display: flex; align-items: baseline; gap: 1rem; padding: 1.05rem 0; text-decoration: none; font: 350 clamp(1.9rem, 8vw, 2.6rem)/1.05 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.015em; }
.menu__list span { font: italic 350 1rem/1 var(--serif); color: var(--olive); min-width: 1.8rem; }
.menu__foot { margin-top: auto; padding-top: 2rem; font: italic 350 1.15rem var(--serif); color: var(--muted); }
@keyframes menuIn { from { opacity: 0; } to { opacity: 1; } }

/* -------------------------------------------------------------------- Hero */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 20px) 0 clamp(40px, 6vw, 72px);
  display: flex;
}
.hero__in {
  position: relative; width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  grid-template-areas:
    "kick   kick"
    "names  names"
    "fig    meta"
    "phrase phrase"
    "act    act";
  column-gap: 22px;
  align-content: end;
}
.hero__kicker { grid-area: kick; display: flex; align-items: center; gap: .9rem; margin: 0 0 clamp(14px, 3vh, 28px); font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }
.hero__kicker .rule { width: 44px; height: 1px; background: var(--stone); }
.hero__names {
  grid-area: names; margin: 0 0 clamp(20px, 3.6vh, 36px);
  font-family: var(--serif); font-weight: 350; font-variation-settings: "opsz" 72;
  font-size: clamp(4.4rem, 24vw, 7.6rem); line-height: .84; letter-spacing: -.035em;
}
.hero__names span { display: block; }
.hero__names .l2 { padding-left: .5em; }
.hero__names i { font-style: italic; color: var(--olive); margin-right: .1em; letter-spacing: 0; }
.hero__fig { grid-area: fig; margin: 0; position: relative; align-self: end; }
.arch {
  position: relative; width: 100%; aspect-ratio: 3 / 4; overflow: hidden;
  border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0;
  background: var(--sand);
  box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--stone);
}
.arch img, .arch .art { width: 100%; height: 100%; object-fit: cover; }
.hero__fig figcaption { margin-top: 14px; font: italic 350 .95rem/1.3 var(--serif); color: var(--muted); }
.hero__meta { grid-area: meta; align-self: end; padding-bottom: 2px; }
.hero__date { margin: 0 0 .9rem; font: italic 350 clamp(1.4rem, 5.6vw, 2.15rem)/1.12 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.01em; text-wrap: balance; }
.hero__place { margin: 0; padding-top: .9rem; border-top: 1px solid var(--stone); font: 600 .72rem/1 var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.hero__phrase { grid-area: phrase; margin: clamp(24px, 4vh, 40px) 0 clamp(22px, 3.4vh, 32px); max-width: 24em; font: 350 clamp(1.18rem, 4.3vw, 1.5rem)/1.38 var(--serif); font-variation-settings: "opsz" 24; color: var(--ink-2); text-wrap: pretty; }
.hero__actions { grid-area: act; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }
.hero__count { margin: 0; font: 500 .92rem/1.2 var(--sans); color: var(--muted); }
.hero__count b { font: 400 1.5rem/1 var(--serif); color: var(--ink); font-variant-numeric: lining-nums; margin: 0 .12em; }
.hero__coords { display: none; }
.hero__down { position: absolute; left: 50%; bottom: 14px; width: 44px; height: 44px; margin-left: -22px; display: none; place-items: center; color: var(--muted); }
.hero__down .ico { width: 16px; height: 16px; }

@media (max-width: 380px) {
  .hero__names { font-size: 4.1rem; }
  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-height: 720px) and (max-width: 700px) {
  .hero__in { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
  .hero__names { font-size: clamp(4rem, 21vw, 6rem); }
}
@media (min-width: 700px) and (max-width: 959px) {
  .hero__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .hero__names { font-size: clamp(7rem, 17vw, 9rem); }
}
@media (min-width: 960px) {
  .hero__in {
    grid-template-columns: minmax(0, 7fr) minmax(0, .6fr) minmax(0, 4.4fr);
    grid-template-rows: 1fr auto auto auto auto;
    grid-template-areas:
      ".      . fig"
      "kick   . fig"
      "names  . fig"
      "meta   . fig"
      "phrase . fig"
      "act    . fig";
    column-gap: 0;
    align-items: end;
  }
  .hero__names { font-size: clamp(7rem, 11.2vw, 11.2rem); margin-bottom: 34px; }
  .hero__names .l2 { padding-left: .62em; }
  .hero__fig { align-self: center; max-width: 470px; justify-self: end; width: 100%; }
  .hero__meta { display: flex; align-items: baseline; gap: 1.4rem; }
  .hero__date { margin: 0; }
  .hero__place { border: 0; padding: 0 0 0 1.4rem; border-left: 1px solid var(--stone); }
  .hero__phrase { margin-top: 26px; }
  .hero__coords { display: block; position: absolute; right: calc(-1 * clamp(8px, 2.6vw, 40px)); top: 50%; writing-mode: vertical-rl; transform: translateY(-50%) rotate(180deg); margin: 0; font: 600 .66rem/1 var(--sans); letter-spacing: .3em; color: var(--muted); }
  .hero__down { display: grid; }
}

/* Entrada de la portada */
@media (prefers-reduced-motion: no-preference) {
  .is-ready .hero__names span { animation: rise 1.25s var(--ease) both; }
  .is-ready .hero__names .l2 { animation-delay: .12s; }
  .is-ready .hero__kicker, .is-ready .hero__meta, .is-ready .hero__phrase, .is-ready .hero__actions { animation: fade 1.2s var(--ease) both; animation-delay: .35s; }
  .is-ready .arch > * { animation: archIn 1.6s var(--ease) both, settle 2.4s var(--ease) both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(.22em); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes archIn { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes settle { from { transform: scale(1.08); } to { transform: none; } }
.arch > * { transform-origin: 50% 70%; }

/* Revelado al hacer scroll */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(20px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------ Intro */
.intro { display: grid; gap: 40px; }
.intro__head .h2 { font-size: clamp(3rem, 9vw, 5.8rem); letter-spacing: -.03em; }
.intro__body p:not(.lead):not(.sign) { color: var(--ink-2); max-width: 33em; }
.intro__body .lead { max-width: 23em; margin-bottom: 1.4rem; }
.sign { margin: 2rem 0 0; font: italic 350 1.6rem/1 var(--serif); color: var(--olive); }
.sign::before { content: "— "; }
.intro__facts { margin: 0; align-self: start; border-bottom: 1px solid var(--line); }
.intro__facts div { padding: 1.15rem 0 1.2rem; border-top: 1px solid var(--line); display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; align-items: baseline; }
.intro__facts dt { font: 600 .7rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.intro__facts dd { margin: 0; font: 350 1.2rem/1.32 var(--serif); font-variation-settings: "opsz" 24; }
.intro__facts a { text-decoration-color: var(--stone); text-underline-offset: .24em; }
@media (min-width: 960px) {
  .intro { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 64px; }
  .intro__head { grid-column: 1 / -1; }
  .intro__body { grid-column: 1 / 8; }
  .intro__facts { grid-column: 9 / 13; margin-top: .5rem; }
  .intro__facts div { grid-template-columns: 1fr; gap: .45rem; }
}

/* ---------------------------------------------------------------- Galería */
.s-galeria { padding-top: 0; }
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; -webkit-overflow-scrolling: touch; }
.gal__item { margin: 0; scroll-snap-align: start; }
.gal__item img, .gal__item .ph { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.gal__item figcaption { margin-top: .7rem; font: italic 350 .98rem/1.3 var(--serif); color: var(--muted); }
.ph { display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--ivory) 0 14px, var(--sand) 14px 15px); border: 1px dashed var(--stone); }
.ph span { font: 600 .7rem/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); background: var(--paper); padding: .6em .8em; }
@media (min-width: 960px) {
  .gal { grid-auto-flow: row; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; overflow: visible; }
  .gal__item--1 { grid-column: 1 / 6; }
  .gal__item--2 { grid-column: 7 / 13; margin-top: 18%; }
  .gal__item--2 img, .gal__item--2 .ph { aspect-ratio: 3 / 2; }
  .gal__item--3 { grid-column: 3 / 8; margin-top: -6%; }
  .gal__item--3 img, .gal__item--3 .ph { aspect-ratio: 1; }
}

/* --------------------------------------------------------------- Programa */
.days { display: grid; gap: clamp(64px, 9vw, 120px); }
.day { display: grid; gap: 28px; }
.day__date { display: flex; align-items: baseline; gap: .2rem .8rem; flex-wrap: wrap; }
.day__wd { flex-basis: 100%; margin-bottom: .6rem; font: 600 .72rem/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); order: 0; }
.day__num { font: 300 clamp(5.4rem, 22vw, 9.5rem)/.86 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.04em; font-variant-numeric: lining-nums; order: 1; }
.day__mo { font: italic 350 1.7rem/1 var(--serif); color: var(--olive); order: 3; }
.day__events { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.ev { display: grid; gap: .5rem; padding: 1.6rem 0 1.8rem; border-top: 1px solid var(--line-strong); }
.ev + .ev { border-top-color: var(--line); }
.ev__time { margin: 0; font: 600 .9rem/1.3 var(--sans); letter-spacing: .08em; text-transform: uppercase; font-variant-numeric: tabular-nums; color: var(--ink); }
.ev__time--tbc { font: italic 350 1rem/1.3 var(--serif); letter-spacing: 0; text-transform: none; color: var(--muted); }
.ev__title { margin: 0 0 .25rem; font: 350 clamp(1.75rem, 4.6vw, 2.4rem)/1.05 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -.015em; }
.ev__place { margin: 0 0 .6rem; font: 500 .95rem/1.4 var(--sans); color: var(--ink-2); }
.ev__text { margin: 0; color: var(--ink-2); max-width: 34em; }
.ev__tbc { margin: .9rem 0 0; font: italic 350 1.08rem/1.4 var(--serif); color: var(--muted); }
.ev__moments { list-style: none; margin: 1rem 0 0; padding: 0; display: grid; gap: .3rem; }
.ev__moments li { display: grid; grid-template-columns: 4.6rem 1fr; font-size: 1rem; }
.ev__moments span { font-weight: 600; font-variant-numeric: tabular-nums; }
.ev__actions { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: .6rem; }
.day--hidden { opacity: .62; outline: 1px dashed #C08A2E; outline-offset: 14px; }
@media (min-width: 960px) {
  .day { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .day__date { grid-column: 1 / 4; flex-direction: column; align-items: flex-start; gap: .9rem; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start; }
  .day__wd { order: 1; margin-bottom: .4rem; } .day__num { order: 2; } .day__mo { order: 3; }
  .day__events { grid-column: 4 / 13; }
  .ev { grid-template-columns: 9.5rem 1fr; padding: 2rem 0 2.2rem; }
  .ev__time { padding-top: .55rem; }
}

/* Menú calendario */
.calmenu { position: relative; display: inline-block; }
.calmenu__pop { position: absolute; top: calc(100% - 2px); left: 0; z-index: 6; min-width: 240px; display: flex; flex-direction: column; background: var(--paper); border: 1px solid var(--ink); }
.calmenu__pop > * { display: flex; align-items: center; justify-content: space-between; gap: .6rem; min-height: 48px; padding: 0 1rem; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; text-decoration: none; font: 500 .95rem var(--sans); }
.calmenu__pop > *:last-child { border-bottom: 0; }
.calmenu__pop > *:hover { background: var(--ivory); }
.link[aria-expanded="true"] .ico { transform: rotate(180deg); }

/* ---------------------------------------------------------------- Lugares */
.places { display: grid; gap: 36px; }
.places__map { position: relative; }
.map { position: relative; height: min(64vh, 480px); min-height: 340px; background: #EEE8DD; border: 1px solid var(--line-strong); }
.map__loading { position: absolute; inset: 0; display: grid; place-items: center; margin: 0; font: italic 350 1.1rem var(--serif); color: var(--muted); text-align: center; padding: 1rem; }
.map__veil { position: absolute; left: 50%; bottom: 18px; color: var(--ink); cursor: pointer; transform: translateX(-50%); z-index: 500; min-height: 44px; padding: 0 1.2rem; background: rgba(251, 249, 245, .94); border: 1px solid var(--ink); font: 600 .72rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; }
.map__preview { position: absolute; left: 12px; right: 60px; top: 12px; z-index: 450; margin: 0; padding: .5rem .7rem; background: rgba(251, 249, 245, .92); border: 1px dashed var(--stone); font: italic 350 .95rem/1.3 var(--serif); color: var(--muted); pointer-events: none; margin-left: 52px; }
.map__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.map__filters button { min-height: 40px; padding: 0 1rem; background: transparent; border: 1px solid var(--line-strong); font: 600 .7rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; transition: background-color .25s, color .25s; }
.map__filters button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.places__list { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.place { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 1.25rem 0 .9rem; border-top: 1px solid var(--line); transition: opacity .3s; }
.place.is-dim { opacity: .34; }
.place--hidden { opacity: .6; }
.place__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 .8rem/1 var(--sans); background: var(--ink); color: var(--paper); margin-top: 2px; }
.place--celebracion .place__n { background: var(--olive); }
.place--preboda .place__n { background: var(--sea); }
.place--alojamiento .place__n { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.place__type { margin: 0 0 .3rem; font: 600 .68rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.place__name { margin: 0; font: 350 1.55rem/1.12 var(--serif); font-variation-settings: "opsz" 36; letter-spacing: -.01em; }
.place__loc { margin: .3rem 0 .1rem; font-size: .95rem; color: var(--ink-2); }
.place__links { display: flex; flex-wrap: wrap; gap: 0 1.3rem; }
@media (min-width: 960px) {
  .places { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; align-items: start; }
  .places__map { grid-column: 1 / 8; position: sticky; top: calc(var(--nav-h) + 24px); }
  .map { height: min(56vh, 460px); }
  .places__list { grid-column: 8 / 13; }
}

/* Leaflet con el estilo de la casa */
.map.leaflet-container { font-family: var(--sans); background: #EEE8DD; }
.leaflet-tile-pane { filter: grayscale(1) sepia(.18) saturate(.8) contrast(.88) brightness(1.1); }
.leaflet-control-attribution { background: rgba(251, 249, 245, .9) !important; font: 500 11px/1.4 var(--sans); color: var(--ink-2); }
.leaflet-control-attribution a { color: var(--ink); }
.leaflet-bar { border: 1px solid var(--ink) !important; border-radius: 0 !important; box-shadow: none !important; }
.leaflet-bar a { width: 40px !important; height: 40px !important; line-height: 38px !important; border-radius: 0 !important; background: var(--paper) !important; color: var(--ink) !important; font: 400 20px/38px var(--sans) !important; border-bottom-color: var(--line) !important; }
.leaflet-popup-content-wrapper { border-radius: 0; background: var(--paper); color: var(--ink); box-shadow: none; border: 1px solid var(--ink); }
.leaflet-popup-tip { background: var(--paper); box-shadow: none; border: 1px solid var(--ink); }
.leaflet-popup-content { margin: 16px 18px 12px; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font: 400 20px/30px var(--sans); color: var(--ink); }
.pop__type { margin: 0 0 .25rem; font: 600 10px/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.pop__name { margin: 0; font: 400 1.3rem/1.15 var(--serif); }
.pop__loc { margin: .2rem 0 .5rem; font-size: .9rem; color: var(--ink-2); }
.pop__links { display: flex; flex-direction: column; gap: .2rem; margin: 0; }
.pop__links a { display: inline-flex; align-items: center; gap: .35em; min-height: 32px; font: 500 .92rem var(--sans); color: var(--ink); text-underline-offset: .28em; text-decoration-color: var(--stone); }
.pin { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font: 700 13px/1 var(--sans); color: var(--paper); background: var(--ink); box-shadow: 0 0 0 3px var(--paper); }
.pin--celebracion { background: var(--olive); }
.pin--preboda { background: var(--sea); }
.pin--alojamiento { width: 20px; height: 20px; background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink), 0 0 0 3px var(--paper); }
.map__legend { display: flex; align-items: center; gap: .6rem; margin: .9rem 0 0; font-size: .9rem; color: var(--muted); }
.map__legend .pin { box-shadow: inset 0 0 0 2px var(--ink); }
.pin--unverified { outline: 2px dashed #C08A2E; outline-offset: 3px; }

/* ------------------------------------------------------------- Transporte */
.route { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 40px; }
.route::before { content: ""; position: absolute; left: 7px; top: 10px; bottom: 10px; width: 1px; background: var(--line-strong); }
.step { position: relative; padding-left: 40px; }
.step__node { position: absolute; left: 0; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: var(--ivory); box-shadow: inset 0 0 0 1.5px var(--ink); }
.step--celebracion .step__node { background: var(--olive); box-shadow: none; }
.step--costa .step__node { background: var(--sea); box-shadow: none; }
.step__where { margin: 0 0 1.1rem; font: italic 350 1.45rem/1 var(--serif); color: var(--ink); }
.step__label { margin: 0 0 .5rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.step__title { margin: 0 0 .6rem; font: 350 1.8rem/1.08 var(--serif); font-variation-settings: "opsz" 48; letter-spacing: -.012em; }
.step__text { margin: 0; color: var(--ink-2); max-width: 26em; }
.ret { margin-top: clamp(56px, 8vw, 96px); padding-top: 2rem; border-top: 1px solid var(--ink); display: grid; gap: 1rem; }
.ret__title { margin: 0; font: 350 clamp(1.7rem, 3.6vw, 2.3rem)/1.1 var(--serif); font-variation-settings: "opsz" 48; }
.ret__tbc { margin: 0; font: italic 350 1.15rem/1.45 var(--serif); color: var(--ink-2); max-width: 32em; }
.ret__grid { display: grid; gap: 1.6rem; }
.ret__k { margin: 0 0 .6rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ret__times, .ret__stops { list-style: none; margin: 0; padding: 0; }
.ret__times { display: flex; flex-wrap: wrap; gap: .5rem; }
.ret__times li { padding: .5rem .9rem; border: 1px solid var(--line-strong); font: 600 1rem var(--sans); font-variant-numeric: tabular-nums; }
.ret__stops li { padding: .7rem 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1rem; }
.t-note { margin: 2.2rem 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; color: var(--ink-2); max-width: 46em; }
@media (min-width: 960px) {
  .route { grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); column-gap: 32px; }
  .route::before { left: 0; right: 0; top: 7px; bottom: auto; width: auto; height: 1px; }
  .step { padding: 40px 24px 0 0; }
  .step__node { top: 0; }
  .ret { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .ret__title { grid-column: 1 / 6; }
  .ret > :not(.ret__title) { grid-column: 6 / 13; }
  .ret__grid { grid-template-columns: 1fr 1fr; column-gap: 32px; }
}

/* ------------------------------------------------------------ Alojamiento */
.stays { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-strong); }
.stay { display: grid; gap: 22px; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line-strong); }
.stay__num { margin: 0; font: italic 350 1.25rem/1 var(--serif); color: var(--olive); }
.stay__name { margin: 0; font: 350 clamp(2rem, 5.4vw, 2.9rem)/1.02 var(--serif); font-variation-settings: "opsz" 60; letter-spacing: -.02em; }
.stay__loc { margin: .6rem 0 1rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.stay__desc { margin: 0 0 .4rem; color: var(--ink-2); max-width: 30em; }
.stay__links { display: flex; flex-wrap: wrap; gap: 0 1.5rem; }
.howto { margin: 0; }
.howto__k { margin: 0 0 .5rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.howto ol { margin: 0; padding: 0; list-style: none; counter-reset: h; display: grid; gap: .45rem; max-width: 34em; }
.howto li { counter-increment: h; display: grid; grid-template-columns: 1.6rem 1fr; font-size: .98rem; color: var(--ink-2); }
.howto li::before { content: counter(h) "."; font: italic 400 1rem var(--serif); color: var(--olive); }
.stay__deal { padding: 1.5rem 1.4rem 1.4rem; background: var(--ivory); border-top: 2px solid var(--olive); align-self: start; }
.deal__k { margin: 0 0 .6rem; font: 600 .68rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.deal__big { margin: 0; font: 300 clamp(3.4rem, 10vw, 4.6rem)/.9 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; color: var(--olive); font-variant-numeric: lining-nums; }
.deal__detail { margin: .5rem 0 1.1rem; font: italic 350 1.12rem/1.3 var(--serif); }
.deal__mid { margin: 0 0 1rem; font: 350 1.55rem/1.15 var(--serif); font-variation-settings: "opsz" 36; }
.deal__cond { margin: .9rem 0 0; font-size: .95rem; color: var(--ink-2); }
.code { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: stretch; border: 1px dashed var(--ink); background: var(--paper); }
.code__k { grid-column: 1 / -1; display: flex; align-items: center; padding: .55rem .9rem; font: 600 .64rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); border-bottom: 1px dashed var(--line-strong); }
@media (min-width: 1180px) { .code { grid-template-columns: auto minmax(0, 1fr) auto; } .code__k { grid-column: auto; border-bottom: 0; border-right: 1px dashed var(--line-strong); } }
.code__v { min-width: 0; display: flex; align-items: center; padding: .85rem .9rem; font: 700 1.12rem/1 var(--sans); letter-spacing: .14em; font-variant-numeric: tabular-nums; user-select: all; -webkit-user-select: all; }
.code__copy { min-height: 48px; padding: 0 1rem; background: var(--ink); color: var(--paper); border: 0; font: 600 .68rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.code--soon { display: block; padding: .9rem 1rem; border-style: dashed; font: italic 350 1.02rem/1.4 var(--serif); color: var(--ink-2); }
@media (min-width: 960px) {
  .stay { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; row-gap: 26px; }
  .stay__num { grid-column: 1 / 2; grid-row: 1; padding-top: .7rem; }
  .stay__main { grid-column: 2 / 8; grid-row: 1; }
  .howto { grid-column: 2 / 8; grid-row: 2; }
  .stay__deal { grid-column: 8 / 13; grid-row: 1 / span 2; }
}

/* ------------------------------------------------------------ Confirmación */
.s-rsvp { background-image: radial-gradient(120% 90% at 100% 0%, rgba(110, 146, 160, .30), transparent 60%); }
.s-rsvp .kicker { color: var(--on-ink-2); }
.s-rsvp .kicker__n { color: var(--sage); }
.rsvp { display: grid; gap: 36px; }
.rsvp .h2 { font-size: clamp(2.6rem, 7vw, 4.8rem); }
.rsvp__body p { color: rgba(244, 238, 228, .82); max-width: 33em; }
.rsvp__body .lead { color: var(--on-ink); }
.rsvp__soon { margin-top: 1.8rem; padding: 1.2rem 1.3rem; border: 1px solid rgba(244, 238, 228, .3); font: italic 350 1.15rem/1.45 var(--serif); color: var(--on-ink) !important; }
.rsvp__contact { margin-top: 2rem; font-size: .95rem; }
.rsvp__contact a, .s-rsvp .link { color: var(--on-ink); text-decoration-color: rgba(244, 238, 228, .4); text-underline-offset: .3em; }
@media (min-width: 960px) {
  .rsvp { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 32px; }
  .rsvp__head { grid-column: 1 / 6; }
  .rsvp__body { grid-column: 7 / 13; padding-top: 2.6rem; }
}

/* ------------------------------------------------------------------ Regalo */
.gift { max-width: 700px; text-align: center; display: flex; flex-direction: column; align-items: center; }
.gift .kicker { justify-content: center; }
.gift .h2 { margin-bottom: 1.8rem; }
.gift > p { color: var(--ink-2); max-width: 30em; margin-left: auto; margin-right: auto; }
.gift__arch { width: 54px; height: 72px; margin-bottom: 2.2rem; border: 1px solid var(--stone); border-bottom: 0; border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; position: relative; }
.gift__arch::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 1px; height: 46%; background: var(--stone); }
.iban { width: 100%; margin: 1.6rem 0 1.4rem; padding: 1.8rem 1.2rem 1.6rem; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); display: flex; flex-direction: column; align-items: center; gap: .3rem; }
.iban__k { margin: 0 0 .4rem; font: 600 .7rem/1.3 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.iban__v { margin: 0; font: 350 clamp(1.15rem, 4.6vw, 1.7rem)/1.3 var(--serif); letter-spacing: .04em; font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }
.iban__v--ph { color: var(--stone); }
.iban__holder { margin: .2rem 0 1rem; font-size: .95rem; color: var(--ink-2); }
.gift__note { font-size: .95rem; }
.gift__thanks { margin-top: 1rem; font: italic 350 1.5rem/1.2 var(--serif); color: var(--olive) !important; }

/* ------------------------------------------------------------------ Footer */
.foot { padding: clamp(72px, 10vw, 120px) 0 calc(48px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.foot__in { text-align: center; }
.foot__names { margin: 0 0 .8rem; font: 350 clamp(2.6rem, 8vw, 4rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.03em; }
.foot__names i { color: var(--olive); }
.foot__date { font: 600 .7rem/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.foot__contact { font-size: .95rem; color: var(--ink-2); }
.foot__contact a, .foot__links a { text-decoration-color: var(--stone); text-underline-offset: .28em; }
.foot__links { display: flex; justify-content: center; gap: .8rem; font-size: .92rem; margin: 1.6rem 0 0; }
.foot__links a { display: inline-flex; align-items: center; min-height: 44px; }
.foot__links span { display: inline-flex; align-items: center; color: var(--stone); }

/* ---------------------------------------------------- CTA fijo en móvil */
.dock {
  position: fixed; z-index: 20;
  left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
  min-height: 54px; display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: var(--paper); text-decoration: none;
  font: 600 .78rem/1 var(--sans); letter-spacing: .17em; text-transform: uppercase;
  animation: dockIn .5s var(--ease);
}
@keyframes dockIn { from { transform: translateY(120%); } to { transform: none; } }
@media (min-width: 760px) { .dock { display: none !important; } }

/* ------------------------------------------------------------------ Toast */
.toast { position: fixed; left: 50%; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 60; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: .9rem 1.3rem; background: var(--ink); color: var(--paper); font: 500 .92rem var(--sans); transition: opacity .3s, transform .3s var(--ease); max-width: calc(100vw - 32px); text-align: center; }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------------------------------------------------------- Modo borrador */
.draft { position: fixed; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 70; max-width: min(420px, calc(100vw - 24px)); }
.draft__btn { min-height: 40px; padding: 0 1rem; background: #F7E3B5; border: 1px dashed #C08A2E; color: #7A4B07; font: 700 .7rem/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.draft__panel { margin-bottom: 8px; padding: 1rem 1.1rem; background: #FFF8E8; border: 1px dashed #C08A2E; font-size: .9rem; max-height: 60vh; overflow: auto; order: -1; }
.draft { display: flex; flex-direction: column-reverse; align-items: flex-start; }
.draft__panel ol { margin: .4rem 0 0; padding-left: 1.2rem; }
.is-draft .dock { bottom: calc(60px + env(safe-area-inset-bottom)); }

/* ==========================================================================
   PÁGINA DE CONFIRMACIÓN
   ========================================================================== */
.page-rsvp { min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; }
.r-top { height: calc(var(--nav-h) + env(safe-area-inset-top)); padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--line); }
.r-top__in { height: var(--nav-h); max-width: 760px; margin: 0 auto; padding: 0 var(--pad); display: flex; align-items: center; justify-content: space-between; }
.r-top .link { font-size: .9rem; }
.r-main { flex: 1; width: 100%; max-width: 760px; margin: 0 auto; padding: clamp(36px, 7vw, 72px) var(--pad) calc(72px + env(safe-area-inset-bottom)); }
.r-h1 { margin: 0 0 1rem; font: 350 clamp(2.4rem, 8.6vw, 3.9rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.025em; text-wrap: balance; }
.r-h1:focus { outline: none; }
.r-lead { font: 350 clamp(1.18rem, 3.6vw, 1.38rem)/1.42 var(--serif); font-variation-settings: "opsz" 24; color: var(--ink-2); max-width: 30em; }
.r-progress { display: flex; align-items: center; gap: 14px; margin: 0 0 2.2rem; }
.r-progress__label { font: 600 .7rem/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.r-progress__bar { flex: 1; display: grid; grid-auto-flow: column; gap: 4px; }
.r-progress__bar span { height: 3px; background: var(--line); }
.r-progress__bar span.on { background: var(--olive); }
.r-block { margin: 2.2rem 0 0; }
.r-q { margin: 0 0 1rem; font: 350 1.5rem/1.2 var(--serif); font-variation-settings: "opsz" 36; }
.r-hint { margin: -.4rem 0 1.2rem; color: var(--muted); font-size: .98rem; }

.person { margin: 0; padding: 1.3rem 0 1.4rem; border: 0; border-top: 1px solid var(--line); min-width: 0; }
.person:last-of-type { border-bottom: 1px solid var(--line); }
.person__name { padding: 0; margin: 0 0 .9rem; font: 350 1.45rem/1.15 var(--serif); font-variation-settings: "opsz" 36; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem .8rem; border: 1px solid var(--line-strong); background: var(--paper); text-align: center; font: 600 .95rem/1.2 var(--sans); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; -webkit-tap-highlight-color: transparent; }
.seg label::before { content: ""; width: 16px; height: 16px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.seg input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:checked + label::before { box-shadow: inset 0 0 0 5px currentColor; }
.seg input[value="no"]:checked + label { background: var(--ink-2); border-color: var(--ink-2); }
.seg input:focus-visible + label { outline: 2px solid var(--sea); outline-offset: 2px; }
.person.is-error .seg label { border-color: #9B3B21; }

.field { margin-top: .9rem; }
.field label { display: block; margin-bottom: .45rem; font: 600 .72rem/1.3 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.field textarea, .field select, .field input[type="text"] { width: 100%; min-height: 56px; padding: .85rem 1rem; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 0; font: 400 1.05rem/1.45 var(--sans); }
.field textarea { min-height: 96px; resize: vertical; }
.field textarea:focus, .field select:focus, .field input:focus { outline: none; border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.field__count { margin: .3rem 0 0; font-size: .82rem; color: var(--muted); text-align: right; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip label { min-height: 50px; display: inline-flex; align-items: center; gap: .55rem; padding: 0 1rem; border: 1px solid var(--line-strong); background: var(--paper); font: 600 .95rem/1.2 var(--sans); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.chip label::before { content: ""; width: 18px; height: 18px; box-shadow: inset 0 0 0 1.5px currentColor; flex: none; }
.chip input:checked + label { background: var(--olive); border-color: var(--olive); color: var(--paper); }
.chip input:checked + label::before { box-shadow: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4 9.5l3.2 3L14 5.5' fill='none' stroke='%23F4EEE4' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; box-shadow: inset 0 0 0 1.5px currentColor; }
.chip input:focus-visible + label { outline: 2px solid var(--sea); outline-offset: 2px; }
.mini { display: flex; gap: 1.2rem; margin: .2rem 0 .8rem; }
.mini button { min-height: 40px; padding: 0; background: none; border: 0; font: 600 .7rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; text-decoration: underline; text-underline-offset: .35em; text-decoration-color: var(--stone); color: var(--ink-2); }
.choose { display: grid; gap: 8px; }
.choose__b { justify-content: flex-start; text-transform: none; letter-spacing: 0; font: 600 1rem/1.2 var(--sans); }
.rsvp__go { margin-top: 2rem; display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; }
.rsvp__help { margin: 0; color: var(--on-ink-2); font-size: .95rem; }
/* Lista de opciones de una sola respuesta (alojamiento) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.opts { margin: 0; padding: 0; border: 0; min-width: 0; display: grid; gap: 8px; }
.opt { position: relative; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt label { min-height: 58px; display: grid; grid-template-columns: 18px 1fr; column-gap: .8rem; align-items: center; padding: .7rem 1rem; border: 1px solid var(--line-strong); background: var(--paper); cursor: pointer; -webkit-tap-highlight-color: transparent; transition: background-color .2s, color .2s, border-color .2s; }
.opt label::before { content: ""; grid-row: 1 / 3; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; }
.opt__t { font: 600 1rem/1.25 var(--sans); }
.opt__s { grid-column: 2; font-size: .88rem; line-height: 1.3; color: var(--muted); }
.opt input:checked + label { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.opt input:checked + label .opt__s { color: rgba(251, 249, 245, .75); }
.opt input:checked + label::before { box-shadow: inset 0 0 0 5px currentColor; }
.opt input:focus-visible + label { outline: 2px solid var(--sea); outline-offset: 2px; }
.opts.is-error .opt label { border-color: #9B3B21; }
[data-stay-other] { margin-top: 1rem; }
.bus-q { padding: 1.3rem 0 1.4rem; border-top: 1px solid var(--line); }
.bus-q:last-of-type { border-bottom: 1px solid var(--line); }
.bus-q h3 { margin: 0 0 .2rem; font: 350 1.35rem/1.2 var(--serif); }
.bus-q p { margin: 0 0 .6rem; color: var(--muted); font-size: .95rem; }

.consent { display: grid; grid-template-columns: 26px 1fr; gap: .8rem; align-items: start; margin-top: 1.6rem; padding: 1.1rem 1.1rem; background: var(--ivory); border-left: 2px solid var(--olive); font-size: .98rem; cursor: pointer; }
.consent input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--olive); }
.consent.is-error { border-left-color: #9B3B21; }

.r-actions { display: flex; flex-wrap: wrap-reverse; align-items: center; justify-content: space-between; gap: 14px; margin-top: 2.6rem; padding-top: 1.6rem; border-top: 1px solid var(--line-strong); }
.r-actions .btn { flex: 1 1 220px; }
.r-actions .btn--ghost { flex: 0 1 auto; }
.r-err { margin: 1.4rem 0 0; padding: .9rem 1rem; background: #F6E2DA; border-left: 2px solid #9B3B21; color: #6E2A16; font-size: .98rem; }
.r-ok { margin: 0 0 1.4rem; width: 54px; height: 72px; border: 1px solid var(--olive); border-bottom: 0; border-radius: 50% 50% 0 0 / 37.5% 37.5% 0 0; display: grid; place-items: center; color: var(--olive); }
.r-ok svg { width: 22px; height: 22px; margin-top: 12px; }

.summary { margin: 1.8rem 0 0; padding: 0; list-style: none; border-top: 1px solid var(--ink); }
.summary li { padding: 1rem 0; border-bottom: 1px solid var(--line); display: grid; gap: .25rem; }
.summary__name { font: 350 1.3rem/1.2 var(--serif); }
.summary__st { font: 600 .7rem/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; }
.summary__st.yes { color: var(--olive); }
.summary__st.no { color: var(--muted); }
.summary__det { font-size: .95rem; color: var(--ink-2); }
.summary-extra { margin-top: 1.2rem; font-size: .98rem; color: var(--ink-2); }

.r-links { display: flex; flex-wrap: wrap; gap: 0 1.6rem; margin-top: 1.8rem; }
.r-danger { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.r-danger p { color: var(--muted); font-size: .95rem; }
.loading { display: flex; align-items: center; gap: .8rem; font: italic 350 1.2rem var(--serif); color: var(--muted); }
.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--stone); border-top-color: var(--ink); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.r-step { animation: fade .5s var(--ease) both; }
.person--flat, .person--flat:last-of-type { border-bottom: 0; }
.r-hint--after { margin-top: 1.4rem; }
.r-links--tight { margin-top: .4rem; align-items: center; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------------------------------------------------- Página de privacidad */
.legal { max-width: 720px; margin: 0 auto; padding: clamp(40px, 7vw, 80px) var(--pad) 96px; }
.legal h1 { margin: 0 0 1.2rem; font: 350 clamp(2.4rem, 7vw, 3.6rem)/1 var(--serif); font-variation-settings: "opsz" 72; letter-spacing: -.025em; }
.legal h2 { margin: 2.4rem 0 .7rem; font: 350 1.5rem/1.2 var(--serif); }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { padding-left: 1.2rem; }

@media print {
  .nav, .dock, .menu, .draft, .map, .map__filters, .hero__down { display: none !important; }
  body { background: #fff; }
  .s { padding: 32px 0; }
}

/* ==========================================================================
   VERSIÓN FOTOGRÁFICA
   La fotografía manda; tipografía, paleta y filetes se mantienen.
   ========================================================================== */

/* ------------------------------------------------------- Portada con foto */
.hero--photo { display: block; padding: 0; min-height: 100vh; min-height: 100svh; background: #2a2f36; color: var(--on-ink); overflow: hidden; }
.hero__photo { position: absolute; inset: 0; margin: 0; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero__photo::before, .hero__photo::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.hero__photo::before { top: 0; height: 46%; background: linear-gradient(180deg, rgba(28, 38, 54, .42), rgba(28, 38, 54, 0)); }
.hero__photo::after { bottom: 0; height: 58%; background: linear-gradient(0deg, rgba(24, 19, 15, .82) 0%, rgba(24, 19, 15, .55) 45%, rgba(24, 19, 15, 0) 100%); }
.hero__copy { position: relative; z-index: 2; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: space-between; padding: calc(var(--nav-h) + env(safe-area-inset-top) + 18px) var(--pad) calc(30px + env(safe-area-inset-bottom)); }
.hero--photo .hero__kicker { color: rgba(244, 238, 228, .9); margin-bottom: 16px; }
.hero--photo .hero__kicker .rule { background: rgba(244, 238, 228, .6); }
.hero--photo .hero__names { margin: 0; color: #F7F1E7; font-size: clamp(4.6rem, 23vw, 7.4rem); text-shadow: 0 2px 40px rgba(20, 28, 40, .22); }
.hero--photo .hero__names i { color: #EBCB9A; }
.hero--photo .hero__meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: .4rem 1rem; }
.hero--photo .hero__date { margin: 0; color: #F7F1E7; font-size: clamp(1.45rem, 6vw, 2rem); }
.hero--photo .hero__place { border: 0; padding: 0 0 0 1rem; border-left: 1px solid rgba(244, 238, 228, .5); color: rgba(244, 238, 228, .9); }
.hero--photo .hero__phrase { color: rgba(244, 238, 228, .88); margin: 16px 0 22px; font-size: clamp(1.1rem, 4.4vw, 1.4rem); }
.hero--photo .hero__btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.hero--photo .hero__btn:hover { background: var(--sand); border-color: var(--sand); }
.hero--photo .hero__count { color: rgba(244, 238, 228, .82); }
.hero--photo .hero__count b { color: #F7F1E7; }
.hero--photo .hero__down { color: rgba(244, 238, 228, .8); }
@media (prefers-reduced-motion: no-preference) {
  .is-ready .hero__photo img { animation: heroIn 2.4s var(--ease) both; }
  .is-ready .hero--photo .hero__bottom { animation: fade 1.2s var(--ease) both; animation-delay: .45s; }
}
@keyframes heroIn { from { opacity: .3; transform: scale(1.06); } to { opacity: 1; transform: none; } }

/* Móvil: la foto entera arriba (nombres sobre la hiedra) y el texto debajo, sin tapar a la pareja */
@media (max-width: 959px) {
  .hero--photo { display: flex; flex-direction: column; min-height: 0; background: var(--paper) var(--grain); color: var(--ink); }
  .hero__photo { position: relative; inset: auto; height: 86vh; height: 86svh; min-height: 520px; max-height: 1000px; }
  .hero__photo::before { height: 52%; background: linear-gradient(180deg, rgba(24, 32, 44, .5) 0%, rgba(24, 32, 44, .22) 55%, rgba(24, 32, 44, 0) 100%); }
  .hero__photo::after { height: 16%; background: linear-gradient(0deg, rgba(24, 19, 15, .28), rgba(24, 19, 15, 0)); }
  .hero__copy { display: contents; }
  .hero__top { position: absolute; z-index: 2; top: 0; left: 0; right: 0; padding: calc(var(--nav-h) + env(safe-area-inset-top) + 18px) var(--pad) 0; }
  .hero__bottom { position: relative; z-index: 2; padding: 30px var(--pad) 48px; }
  .hero--photo .hero__date { color: var(--ink); }
  .hero--photo .hero__place { color: var(--ink); border-left-color: var(--stone); }
  .hero--photo .hero__phrase { color: var(--ink-2); margin: 14px 0 26px; }
  .hero--photo .hero__btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .hero--photo .hero__btn:hover { background: var(--olive); border-color: var(--olive); }
  .hero--photo .hero__count { color: var(--muted); }
  .hero--photo .hero__count b { color: var(--ink); }
  .hero--photo .hero__down { display: none; }
}

/* Navegación sobre la foto (estado superior) */
.has-photo-hero .nav[data-state="top"]:not([data-menu="open"]) { color: #F7F1E7; }
.has-photo-hero .nav[data-state="top"]:not([data-menu="open"]) .nav__mono i { color: #EBCB9A; }
.has-photo-hero .nav[data-state="top"]:not([data-menu="open"]) .nav__cta { background: var(--paper); color: var(--ink); border-color: var(--paper); }

@media (min-width: 960px) {
  .hero--photo { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); background: var(--paper) var(--grain); color: var(--ink); }
  .hero__photo { position: relative; grid-column: 2; grid-row: 1; min-height: 100svh; }
  .hero__photo::after { display: none; }
  .hero__photo::before { height: 22%; background: linear-gradient(180deg, rgba(28, 38, 54, .35), rgba(28, 38, 54, 0)); }
  .hero__copy { grid-column: 1; grid-row: 1; justify-content: center; gap: 0;
    padding: calc(var(--nav-h) + 40px) clamp(32px, 4vw, 64px) 56px max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); }
  .hero--photo .hero__kicker { color: var(--muted); }
  .hero--photo .hero__kicker .rule { background: var(--stone); }
  .hero--photo .hero__names { color: var(--ink); text-shadow: none; font-size: clamp(6rem, 8.6vw, 9.8rem); margin: 0 0 clamp(28px, 4vh, 44px); }
  .hero--photo .hero__names i { color: var(--olive); }
  .hero--photo .hero__date { color: var(--ink); font-size: clamp(1.5rem, 2vw, 2rem); }
  .hero--photo .hero__place { color: var(--ink); border-left-color: var(--stone); }
  .hero--photo .hero__phrase { color: var(--ink-2); margin: 22px 0 30px; max-width: 22em; }
  .hero--photo .hero__btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
  .hero--photo .hero__btn:hover { background: var(--olive); border-color: var(--olive); }
  .hero--photo .hero__count { color: var(--muted); }
  .hero--photo .hero__count b { color: var(--ink); }
  .hero--photo .hero__down { left: 23%; color: var(--muted); }
  .has-photo-hero .nav[data-state="top"]:not([data-menu="open"]) .nav__mono { color: var(--ink); }
  .has-photo-hero .nav[data-state="top"]:not([data-menu="open"]) .nav__mono i { color: var(--olive); }
  .has-photo-hero .nav[data-state="top"] .nav__links a { text-shadow: 0 1px 12px rgba(20, 28, 40, .35); }
}

/* --------------------------------------------------- Intro con foto en arco */
.arch--photo { box-shadow: 0 0 0 8px var(--paper), 0 0 0 9px var(--stone); }
.arch--photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__photo { margin: 8px auto 0; width: min(86%, 420px); }
@media (min-width: 960px) {
  .intro { grid-template-rows: auto auto 1fr; }
  .intro__head { grid-column: 1 / 8; grid-row: 1; }
  .intro__body { grid-column: 1 / 7; grid-row: 2; }
  .intro__facts { grid-column: 1 / 7; grid-row: 3; margin-top: 8px; }
  .intro__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; border-bottom: 0; }
  .intro__facts div { border-top: 1px solid var(--line-strong); }
  .intro__photo { grid-column: 8 / 13; grid-row: 1 / 4; align-self: center; width: 100%; max-width: 460px; justify-self: end; margin: 0; }
}

/* ------------------------------------------------------------- Galería */
.s-galeria { padding-top: 0; }
.gal { display: grid; grid-auto-flow: column; grid-auto-columns: 80%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: none; }
.gal::-webkit-scrollbar { display: none; }
.gal__note { grid-row: 1; grid-column: 1 / span var(--n, 3); justify-self: start; position: sticky; left: 0; padding: 0 0 18px; }
.gal { grid-template-rows: auto auto; }
.gal > .gal__item { grid-row: 2; }
.gal--sin-nota { grid-template-rows: auto; }
.gal--sin-nota > .gal__item { grid-row: 1; }
.gal__title { margin: 0; font: italic 350 clamp(1.6rem, 6vw, 2.4rem)/1.1 var(--serif); font-variation-settings: "opsz" 48; }
.gal__item { margin: 0; scroll-snap-align: start; }
.gal__img { overflow: hidden; background: var(--sand); aspect-ratio: 4 / 5; }
.gal__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.4s var(--ease); }
.gal__item:hover .gal__img img { transform: scale(1.03); }
.gal__item figcaption { margin-top: .7rem; font: italic 350 1rem/1.3 var(--serif); color: var(--muted); }
@media (min-width: 960px) {
  .gal { grid-auto-flow: row; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 28px; row-gap: 28px; overflow: visible; align-items: start; }
  .gal__item--1 { grid-column: 1 / 5; grid-row: 1 / 3; }
  .gal__item--1 .gal__img { aspect-ratio: 3 / 4; }
  .gal__item--2 { grid-column: 5 / 13; grid-row: 1; }
  .gal__item--2 .gal__img { aspect-ratio: 16 / 9; }
  .gal__note { grid-column: 5 / 7; grid-row: 2; align-self: start; justify-self: stretch; position: static; padding: 6px 0 0; }
  .gal { grid-template-rows: none; }
  .gal > .gal__item--1 { grid-row: 1 / 3; }
  .gal > .gal__item--2 { grid-row: 1; }
  .gal > .gal__item--3, .gal > .gal__item--4 { grid-row: 2; }
  /* Sin frase: tríptico vertical arriba y la foto apaisada debajo, desplazada */
  .gal--sin-nota > .gal__item--1 { grid-column: 1 / 5; grid-row: 1; }
  .gal--sin-nota > .gal__item--3 { grid-column: 5 / 9; grid-row: 1; margin-top: 72px; }
  .gal--sin-nota > .gal__item--4 { grid-column: 9 / 13; grid-row: 1; margin-top: 0; }
  .gal--sin-nota > .gal__item--2 { grid-column: 3 / 11; grid-row: 2; margin-top: 20px; }
  .gal--sin-nota .gal__item .gal__img { aspect-ratio: 3 / 4; }
  .gal--sin-nota .gal__item--2 .gal__img { aspect-ratio: 16 / 9; }
  .gal__item--3 { grid-column: 7 / 10; grid-row: 2; }
  .gal__item--4 { grid-column: 10 / 13; grid-row: 2; margin-top: 56px; }
  .gal__item--3 .gal__img, .gal__item--4 .gal__img { aspect-ratio: 3 / 4; }
}

/* ------------------------------------------------- Eventos con fotografía */
.ev__photo { margin: .4rem 0 0; overflow: hidden; background: var(--sand); }
.ev__photo img { width: 100%; height: 100%; object-fit: cover; display: block; aspect-ratio: 3 / 2; }
.ev__photo--tall img { aspect-ratio: 4 / 5; }
@media (max-width: 959px) {
  .ev__photo { order: -1; margin: 0 0 .6rem; }
  .ev__photo--tall img { aspect-ratio: 5 / 4; }
}
@media (min-width: 960px) {
  .ev--photo { grid-template-columns: 9.5rem minmax(0, 1fr) minmax(0, 15rem); column-gap: 28px; }
  .ev__photo { margin: 0; align-self: start; }
}

/* ------------------------------------------------- Bandas de foto */
.band { position: relative; margin: 0; height: clamp(240px, 42vh, 440px); overflow: hidden; background: var(--sand); }
.band img { width: 100%; height: 100%; object-fit: cover; display: block; }
.band::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(0deg, rgba(24, 19, 15, .5), rgba(24, 19, 15, 0)); pointer-events: none; }
.band figcaption { position: absolute; z-index: 1; left: max(var(--pad), calc((100vw - var(--maxw)) / 2 + var(--pad))); bottom: clamp(18px, 3vw, 32px); margin: 0; font: italic 350 clamp(1.05rem, 2vw, 1.3rem)/1.2 var(--serif); color: #F7F1E7; }
@media (min-width: 960px) { .band { height: min(58vh, 540px); } }

/* ------------------------------------------- Confirmación con fotografía */
.rsvp__photo { margin: 0; overflow: hidden; background: #241c16; }
.rsvp__photo img { width: 100%; display: block; aspect-ratio: 5 / 4; object-fit: cover; opacity: .92; }
@media (min-width: 960px) {
  .rsvp { grid-template-rows: auto 1fr; }
  .rsvp__head { grid-row: 1; }
  .rsvp__photo { grid-column: 1 / 6; grid-row: 2; align-self: start; margin-top: 8px; }
  .rsvp__photo img { aspect-ratio: 4 / 5; }
  .rsvp__body { grid-row: 1 / 3; }
}

/* ------------------------------------------------- Pie con fotografía */
.foot--photo { position: relative; overflow: hidden; border-top: 0; color: #F7F1E7; padding-top: clamp(200px, 42vh, 360px); }
.foot__bg { position: absolute; inset: 0; }
.foot__bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foot__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(22, 26, 30, .05) 0%, rgba(22, 26, 30, .5) 40%, rgba(22, 20, 18, .9) 75%, rgba(22, 20, 18, .94) 100%); }
.foot--photo .foot__in { position: relative; z-index: 1; }
.foot__phrase { margin: 0 0 .6rem; font: italic 350 clamp(1.3rem, 3vw, 1.7rem)/1.2 var(--serif); color: rgba(247, 241, 231, .9); }
.foot--photo .foot__names i { color: #EBCB9A; }
.foot--photo .foot__date, .foot--photo .foot__contact { color: rgba(247, 241, 231, .8); }
.foot--photo a { color: #F7F1E7; text-decoration-color: rgba(247, 241, 231, .45); }
.foot--photo .foot__links span { color: rgba(247, 241, 231, .5); }
.foot__credits { margin: 1.6rem 0 0; font-size: .78rem; color: rgba(247, 241, 231, .6); }
.foot:not(.foot--photo) .foot__credits { color: var(--muted); }
.map__veil[hidden] { display: none; }
.map.leaflet-container a, .map .pop a { color: var(--ink); }
.howto__one { margin: 0; font-size: .98rem; color: var(--ink-2); max-width: 34em; }
.step__note { margin: .7rem 0 0; font: italic 350 1rem/1.4 var(--serif); color: var(--muted); max-width: 26em; }
.q-why { font-size: .72em; font-style: italic; color: var(--muted); white-space: nowrap; }

/* ---------------------------------------------- Color de fondo por bloque */
:root { --t-sand: #EFE4D2; --t-clay: #EADCC6; --t-sage: #E2E6D8; --t-rose: #F0DED0; }
.s-intro { background: var(--t-sand) var(--grain); }
.s-galeria { background: var(--paper) var(--grain); }
.s-programa { background: var(--t-clay) var(--grain); }
.s-lugares { background: var(--paper) var(--grain); }
.s-transporte { background: var(--t-sage) var(--grain); }
.s-alojamiento { background: var(--t-sand) var(--grain); }
.s-regalo { background: var(--t-rose) var(--grain); }
.s-alojamiento .stay__deal { background: var(--paper); }
.s-intro .arch--photo { box-shadow: 0 0 0 8px var(--t-sand), 0 0 0 9px var(--stone); }

/* ------------------------------------------- Fotos con marco (más encanto) */
:root { --mat: #FFFDF9; --shadow-photo: 0 1px 2px rgba(51, 40, 31, .10), 0 14px 30px -14px rgba(51, 40, 31, .42); }
/* Galería: como copias en papel, con margen blanco y ligeramente giradas */
.gal { padding: 14px 6px 26px; }
.gal__img { background: var(--mat); padding: 9px 9px 30px; box-shadow: var(--shadow-photo); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.gal__img img { transition: none; }
.gal__item:hover .gal__img img { transform: none; }
.gal__item--1 .gal__img { transform: rotate(-1.6deg); }
.gal__item--2 .gal__img { transform: rotate(1deg); }
.gal__item--3 .gal__img { transform: rotate(1.8deg); }
.gal__item--4 .gal__img { transform: rotate(-1.2deg); }
.gal__item:hover .gal__img { transform: rotate(0) translateY(-3px); box-shadow: 0 2px 4px rgba(51, 40, 31, .10), 0 22px 40px -16px rgba(51, 40, 31, .48); }
@media (min-width: 960px) { .gal__img { padding: 12px 12px 40px; } }
/* Programa: foto con passe-partout fino */
.ev__photo { background: var(--mat); padding: 6px; box-shadow: var(--shadow-photo); }
/* Confirmación: la puerta enmarcada sobre el azul */
.rsvp__photo { background: var(--mat); padding: 8px; box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55); transform: rotate(-1deg); }
@media (prefers-reduced-motion: reduce) { .gal__img, .ev__photo--tall, .rsvp__photo { transition: none; } }
