:root {
  --bg: #fdf8e4; --surface: #f8eecb; --text: #26200f;
  --accent: #a67716; --accent-2: #b34434; --accent-2-700: #7d2a1e;
  --a100: #fef6d2; --a400: #e8b62c; --a700: #825b10; --a800: #5d400b;
  --divider: rgba(38, 32, 15, .14);
  --muted: #514833; --kicker: #6a5f42; --rule: #e6d5a2; --navink: #3a3320;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Jost", system-ui, sans-serif;
  --navh: 57px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-weight: 300; font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--accent-2-700); }
a:hover { color: var(--accent-2); }
h1, h2, h3, p, ul, ol { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
section[id] { scroll-margin-top: calc(var(--navh) - 2px); }

.k { font-weight: 400; font-size: 11px; letter-spacing: .34em; text-transform: uppercase; color: var(--kicker); }
.lb { font-size: 10px; letter-spacing: .24em; text-transform: uppercase; color: var(--kicker); }
.d { font-family: var(--serif); font-weight: 300; text-transform: uppercase; letter-spacing: .12em; }
.muted { color: var(--muted); }
.link { color: var(--accent-2-700); text-decoration: none; border-bottom: 1px solid currentColor; }
.wrap { max-width: 1120px; margin: 0 auto; }
.pad { padding: clamp(48px, 8vw, 104px) clamp(20px, 6vw, 64px); }
.center { text-align: center; }
.h2 { font-size: clamp(30px, 5vw, 46px); line-height: 1.1; margin: 18px 0 14px; }

.cta, .cta2 { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; font-family: var(--sans); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; text-decoration: none; cursor: pointer; text-align: center; transition: background .2s; }
.cta { color: var(--bg); background: var(--a700); padding: 14px 30px; border: 0; }
.cta:hover { background: var(--a800); color: var(--bg); }
.cta2 { color: var(--a800); border: 1px solid var(--a400); padding: 13px 28px; background: transparent; }
.cta2:hover { background: var(--a100); color: var(--a800); }
.sm { padding: 0 16px; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(253, 248, 228, .94); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--divider); }
.nav-in { display: flex; align-items: center; justify-content: space-between; padding: 6px clamp(16px, 5vw, 48px); min-height: 56px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--serif); font-size: 20px; letter-spacing: .12em; text-transform: uppercase; color: var(--text); text-decoration: none; }
.brand span { color: var(--accent-2); font-style: italic; text-transform: none; }
.burger { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--text); }
.burger span, .burger span::before, .burger span::after { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s, background .25s; }
.burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
.burger span::before { top: -7px; } .burger span::after { top: 7px; }
.nav.open .burger span { background: transparent; }
.nav.open .burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.open .burger span::after { transform: translateY(-7px) rotate(-45deg); }
.menu { list-style: none; padding: 0; display: none; }
.nav.open .menu { display: grid; padding: 4px clamp(16px, 5vw, 48px) 16px; }
.menu a { display: flex; align-items: center; min-height: 48px; font-size: 12px; letter-spacing: .22em; text-transform: uppercase; text-decoration: none; color: var(--navink); border-bottom: 1px solid var(--divider); }
.menu a.active, .menu a:hover { color: var(--accent-2); }
@media (min-width: 760px) {
  .nav-in { display: none; }
  .menu, .nav.open .menu { display: flex; justify-content: center; gap: clamp(16px, 4vw, 40px); padding: 6px clamp(16px, 5vw, 48px); min-height: 56px; align-items: center; }
  .menu a { min-height: 44px; font-size: 11px; border-bottom: 1px solid transparent; padding: 0 2px; }
  .menu a.active, .menu a:hover { border-bottom-color: var(--accent-2); }
}

/* Hero */
.hero { padding: clamp(48px, 9vw, 120px) clamp(20px, 6vw, 64px) clamp(40px, 6vw, 72px); text-align: center; }
.palm { width: clamp(150px, 26vw, 230px); height: auto; margin: 0 auto 40px; opacity: .9; }
.h1 { font-size: clamp(40px, 8.5vw, 88px); margin: 0 0 28px; line-height: 1.04; }
.amp { color: var(--accent-2); font-style: italic; text-transform: none; letter-spacing: 0; }
.date { display: flex; align-items: center; justify-content: center; gap: 18px; margin-bottom: 34px; letter-spacing: .3em; font-size: 14px; }
.date i { width: 56px; height: 1px; background: var(--rule); }
.lead { font-family: var(--serif); font-style: italic; font-size: clamp(20px, 2.6vw, 26px); line-height: 1.5; color: var(--muted); margin: 0 auto 40px; }
.btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.hero-img { max-width: 1120px; margin: clamp(56px, 9vw, 104px) auto 0; aspect-ratio: 21/9; overflow: hidden; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo { max-width: 440px; margin: clamp(48px, 7vw, 88px) auto 0; aspect-ratio: 4/5; overflow: hidden; border-radius: 999px 999px 0 0; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 35%; }
.info { max-width: 760px; margin: clamp(48px, 7vw, 88px) auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(36px, 5vw, 64px); }
.info .d { font-size: clamp(22px, 2.6vw, 30px); white-space: nowrap; margin: 12px 0 10px; }
.info p { color: var(--muted); margin: 0 auto; max-width: 30ch; text-wrap: pretty; }

/* RSVP */
.rsvp { background: var(--surface); }
.rsvp .inner { max-width: 620px; margin: 0 auto; text-align: center; }
.rsvp .h2 { margin-top: 0; }
.tally { margin-top: 40px; text-align: left; }
.tally iframe { display: block; width: 100%; border: 0; min-height: 200px; }
.fallback { font-size: 14px; color: var(--muted); margin-top: 18px; }

/* Hoteles */
.group { display: flex; align-items: center; gap: 18px; margin: 0 0 22px; }
.group.mt { margin-top: clamp(48px, 7vw, 80px); }
.group .k { line-height: 1.7; }
.group i { min-width: 24px; flex: 1; height: 1px; background: var(--divider); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: clamp(16px, 2.4vw, 28px); }
.card { display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--divider); min-width: 0; }
.card .ph { aspect-ratio: 4/3; overflow: hidden; background: var(--rule); }
.card .ph img { width: 100%; height: 100%; object-fit: cover; }
.card .body { display: flex; flex-direction: column; flex: 1; padding: clamp(22px, 3vw, 30px); gap: 10px; }
.card .top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.dto { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--accent-2); white-space: nowrap; }
.card h3 { font-size: clamp(22px, 2.4vw, 27px); line-height: 1.15; margin-top: 4px; text-wrap: balance; }
.card p { color: var(--muted); margin-bottom: 8px; }
.actions { margin-top: auto; display: grid; gap: 10px; }
.code { display: flex; align-items: center; justify-content: space-between; gap: 10px; border: 1px dashed var(--a400); padding: 6px 6px 6px 14px; }
.code b { display: block; font-weight: 400; letter-spacing: .14em; font-size: 15px; margin-top: 2px; }
.soho-intro { background: var(--surface); padding: clamp(20px, 3vw, 28px) clamp(20px, 3vw, 32px); margin-bottom: clamp(16px, 2.4vw, 28px); }
.soho-intro > p { color: var(--muted); max-width: 64ch; text-wrap: pretty; }
.soho-intro strong { font-weight: 400; color: var(--accent-2-700); }
.howto { margin-top: 14px; }
.howto summary { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--a800); }
.howto summary::-webkit-details-marker { display: none; }
.howto summary::after { content: "+"; font-size: 18px; line-height: 1; letter-spacing: 0; color: var(--accent-2); }
.howto[open] summary::after { content: "–"; }
.howto summary:hover { color: var(--accent-2); }
.howto .hide, .howto[open] .show { display: none; }
.howto[open] .hide { display: inline; }
.howto .steps { margin-top: 14px; max-width: 64ch; }
.howto .aside { margin-top: 14px; font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.5; color: var(--muted); }
.how { margin-top: clamp(24px, 3vw, 32px); background: var(--surface); padding: clamp(26px, 4vw, 48px); display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: clamp(28px, 4vw, 56px); align-items: start; }
.how-1 { grid-template-columns: 1fr; max-width: 760px; margin-left: auto; margin-right: auto; }
.how h3 { font-size: clamp(24px, 3vw, 30px); margin: 12px 0 22px; line-height: 1.15; }
.steps { list-style: none; padding: 0; display: grid; gap: 18px; color: var(--muted); }
.steps li { display: grid; grid-template-columns: 34px 1fr; align-items: baseline; }
.steps li > span:first-child { font-family: var(--serif); font-size: 24px; color: var(--accent-2); }
.note { margin-top: 24px; color: var(--accent-2-700); line-height: 1.8; }
.tpl { background: var(--bg); border: 1px solid var(--divider); padding: clamp(22px, 3vw, 32px); display: grid; gap: 18px; }
.tpl-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tpl-body { font-size: 14px; line-height: 1.5; display: grid; gap: 12px; }
.tpl-body .red { color: var(--accent-2); font-weight: 400; letter-spacing: .06em; }
.field { display: grid; gap: 4px; }
.field::after { content: ""; height: 1px; background: var(--divider); }

.band { aspect-ratio: 3/1; overflow: hidden; }
.band img { width: 100%; height: 100%; object-fit: cover; }

/* Lista */
.lista { background: var(--surface); text-align: center; }
.lista .top { padding: clamp(56px, 9vw, 120px) clamp(20px, 6vw, 64px) 0; }
.lista .inner { max-width: 560px; margin: 0 auto; }
.lista p.muted { max-width: 40ch; margin: 0 auto 34px; }
.iban { border: 1px solid var(--divider); padding: 30px clamp(18px, 4vw, 26px); display: inline-block; background: var(--surface); max-width: 100%; }
.iban-n { font-size: clamp(15px, 2.6vw, 22px); letter-spacing: .12em; margin-top: 10px; white-space: nowrap; }
.iban-t { font-family: var(--serif); font-size: 20px; margin-top: 8px; }
.iban .cta2 { margin-top: 22px; }
.map { max-width: 1120px; margin: clamp(16px, 3vw, 32px) auto 0; }
.map img { width: 100%; height: auto; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 4%, #000 96%, transparent 100%); }

/* Cuenta atrás */
.count { max-width: 640px; margin: 0 auto; padding: clamp(48px, 7vw, 88px) clamp(20px, 6vw, 64px) clamp(40px, 6vw, 64px); }
.count h3 { font-size: clamp(28px, 4.4vw, 40px); margin: 14px 0 clamp(28px, 4vw, 44px); }
.units { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: 560px; margin: 0 auto; }
.unit { display: grid; gap: 10px; justify-items: center; padding: 4px 6px; }
.unit + .unit { border-left: 1px solid var(--divider); }
.num { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 9vw, 76px); line-height: 1; font-variant-numeric: tabular-nums; }
.unit:first-child .num { color: var(--accent-2); }
.foot-date { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: clamp(28px, 4vw, 40px); font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--muted); }
.foot-date i { width: 40px; height: 1px; background: var(--rule); }
.final { font-family: var(--serif); font-style: italic; font-size: clamp(32px, 6vw, 52px); color: var(--accent-2); }

footer { background: var(--surface); text-align: center; padding: 0 20px clamp(60px, 9vw, 120px); }
footer img { width: 130px; height: auto; margin: 0 auto; opacity: .55; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); background: var(--text); color: var(--bg); padding: 12px 22px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 50; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 600px) {
  .hero-img { aspect-ratio: 4/3; margin-left: calc(-1 * clamp(20px, 6vw, 64px)); margin-right: calc(-1 * clamp(20px, 6vw, 64px)); }
  .band { aspect-ratio: 3/2; }
  .map { margin-left: -20px; margin-right: -20px; }
  .info { gap: 40px; }
  .iban { padding-left: 16px; padding-right: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
