/* ==========================================================================
   Mediterránea — sobre, postales y polaroids. Mobile-first.
   ========================================================================== */

/* ---------- Temas ---------- */
:root, :root[data-theme="menorca"] {
  --c-bg: #fbf8f2; --c-ink: #1d2b44; --c-muted: #5a6478; --c-line: #dcd6ca; --c-surface: #ffffff;
  --c-accent: #1f4e8c; --c-accent-ink: #ffffff; --c-accent-2: #e9dfc8; --c-soft: #eef2f6;
  --c-env: #efe7d8; --c-env-shade: #e2d7c3; --c-seal: #1f4e8c; --c-seal-hi: #4f7bb8;
  --f-script: "Parisienne", cursive; --f-display: "Cormorant Garamond", Georgia, serif; --f-body: "Nunito Sans", system-ui, sans-serif;
  --display-weight: 500; --radius: 18px; --btn-radius: 999px;
}
:root[data-theme="amalfi"] {
  --c-bg: #fbf6e9; --c-ink: #23331f; --c-muted: #5b6652; --c-line: #e0d8bf; --c-surface: #fffdf6;
  --c-accent: #2f5d3a; --c-accent-ink: #fffdf3; --c-accent-2: #f2c230; --c-soft: #f6eccb;
  --c-env: #f5e9c4; --c-env-shade: #ead9a6; --c-seal: #2f5d3a; --c-seal-hi: #58885f;
  --f-script: "Allura", cursive; --f-display: "Libre Caslon Text", Georgia, serif; --f-body: "Karla", system-ui, sans-serif;
  --display-weight: 400; --radius: 14px; --btn-radius: 999px;
}
:root[data-theme="provenza"] {
  --c-bg: #f7f4fb; --c-ink: #2e2541; --c-muted: #645a78; --c-line: #ddd5ea; --c-surface: #ffffff;
  --c-accent: #6a57a3; --c-accent-ink: #ffffff; --c-accent-2: #d9cfee; --c-soft: #ece6f6;
  --c-env: #ece5f4; --c-env-shade: #ddd2ec; --c-seal: #5b4894; --c-seal-hi: #8e7cc6;
  --f-script: "Great Vibes", cursive; --f-display: "Lora", Georgia, serif; --f-body: "Mulish", system-ui, sans-serif;
  --display-weight: 400; --radius: 20px; --btn-radius: 999px;
}
:root[data-theme="atardecer"] {
  --c-bg: #fff4ec; --c-ink: #3a1f17; --c-muted: #6f4d42; --c-line: #efd6c6; --c-surface: #fffaf6;
  --c-accent: #b4472f; --c-accent-ink: #fff8f2; --c-accent-2: #f1b98f; --c-soft: #fbe3d3;
  --c-env: #f6dccb; --c-env-shade: #ecc8b0; --c-seal: #a63f28; --c-seal-hi: #d76d4f;
  --f-script: "Pinyon Script", cursive; --f-display: "Gilda Display", Georgia, serif; --f-body: "Jost", system-ui, sans-serif;
  --display-weight: 400; --radius: 10px; --btn-radius: 999px;
}

:root {
  --pad: 20px;
  --nav-h: 60px;
  --paper: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.4 0 0 0 0 0.33 0 0 0 0 0.22 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  --ease: cubic-bezier(.2, .8, .2, 1);
}
@media (min-width: 768px) { :root { --pad: 40px; --nav-h: 68px; } }

html { scroll-padding-top: calc(var(--nav-h) + 12px); }
body { background-color: var(--c-bg); background-image: var(--paper); font-size: 16px; line-height: 1.6; }
body.is-gated { overflow: hidden; height: 100svh; }
h1, h2, h3, h4 { margin: 0; font-weight: var(--display-weight); }
p { margin: 0; }
.script { font-family: var(--f-script); font-weight: 400; }
.eyebrow { margin: 0 0 10px; font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--c-accent); }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border: 1.5px solid var(--c-accent); border-radius: var(--btn-radius); font-family: var(--f-body); font-size: 16px; font-weight: 700; letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: transform .3s var(--ease), box-shadow .3s, background .3s, color .3s; }
.btn--primary { background: var(--c-accent); color: var(--c-accent-ink); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -14px var(--c-accent); }
.btn--ghost { background: transparent; color: var(--c-accent); }
.btn--ghost:hover { background: color-mix(in srgb, var(--c-accent) 8%, transparent); }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: 15px; }
.round-btn { width: 48px; height: 48px; display: grid; place-items: center; border: 1.5px solid var(--c-line); border-radius: 50%; background: var(--c-surface); color: var(--c-ink); transition: border-color .25s, transform .25s var(--ease), opacity .25s; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:hover { border-color: var(--c-accent); color: var(--c-accent); transform: scale(1.05); }
.round-btn:disabled { opacity: .35; cursor: default; transform: none; }

/* ==========================================================================
   SOBRE
   ========================================================================== */
.gate { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 24px var(--pad) calc(24px + env(safe-area-inset-bottom)); background-color: var(--c-bg); background-image: var(--paper), radial-gradient(120% 80% at 50% 40%, var(--c-surface), var(--c-bg) 70%); overflow: hidden; }
.gate[hidden] { display: none; }
.gate__inner { display: flex; flex-direction: column; align-items: center; gap: 22px; width: 100%; }
.gate__kicker { font-size: 12px; font-weight: 700; letter-spacing: .26em; text-transform: uppercase; color: var(--c-muted); }
.gate__hint { margin-top: -8px; font-size: 14px; color: var(--c-muted); }
.gate__cta { min-width: 220px; }

.env { position: relative; width: min(84vw, 460px); aspect-ratio: 1.45; perspective: 1400px; margin-top: 18px; animation: envFloat 5s ease-in-out infinite; }
@keyframes envFloat { 50% { transform: translateY(-6px) rotate(-.4deg); } }
.env__back, .env__pocket, .env__flap { position: absolute; inset: 0; border-radius: 6px; }
.env__back { background: var(--c-env-shade); box-shadow: 0 30px 60px -30px rgba(40, 30, 10, .45), 0 2px 6px rgba(40, 30, 10, .12); }
.env__card { position: absolute; left: 6%; right: 6%; top: 6%; bottom: 8%; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px; border-radius: 4px; background: var(--c-surface); background-image: var(--paper); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); text-align: center; outline: 1px solid var(--c-line); outline-offset: -8px; }
.env__card-names { font-family: var(--f-script); font-size: clamp(30px, 9vw, 46px); line-height: 1.1; color: var(--c-ink); }
.env__card-names i { font-style: normal; color: var(--c-accent); }
.env__card-date { font-family: var(--f-display); font-size: 15px; letter-spacing: .2em; color: var(--c-ink); }
.env__card-place { font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--c-muted); }
.env__pocket { z-index: 3; background-color: var(--c-env); background-image: var(--paper), linear-gradient(160deg, rgba(255,255,255,.35), transparent 60%); clip-path: polygon(0 0, 50% 54%, 100% 0, 100% 100%, 0 100%); filter: drop-shadow(0 -1px 0 rgba(0,0,0,.05)); }
.env__pocket::before { content: ""; position: absolute; inset: 0; background: linear-gradient(to top right, transparent calc(50% - 1px), rgba(0,0,0,.06) 50%, transparent calc(50% + 1px)) left bottom / 50% 100% no-repeat, linear-gradient(to top left, transparent calc(50% - 1px), rgba(0,0,0,.06) 50%, transparent calc(50% + 1px)) right bottom / 50% 100% no-repeat; }
.env__to { position: absolute; left: 8%; bottom: 12%; max-width: 74%; font-family: var(--f-script); font-size: clamp(20px, 6.2vw, 32px); color: var(--c-ink); line-height: 1; }
.env__stamp { position: absolute; right: 6%; bottom: 10%; width: 13%; color: var(--c-accent); opacity: .8; transform: rotate(6deg); }
.env__flap { z-index: 4; height: 100%; transform-origin: 50% 0; transform-style: preserve-3d; }
.env__flap-in { position: absolute; inset: 0; background-color: var(--c-env); background-image: var(--paper), linear-gradient(180deg, rgba(255,255,255,.4), rgba(0,0,0,.04)); clip-path: polygon(0 0, 100% 0, 50% 58%); filter: drop-shadow(0 2px 2px rgba(0,0,0,.08)); }
.env__seal { position: absolute; z-index: 5; left: 50%; top: 58%; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; border: 0; border-radius: 48% 52% 50% 50% / 52% 48% 52% 48%; background: radial-gradient(circle at 35% 30%, var(--c-seal-hi), var(--c-seal) 55%, color-mix(in srgb, var(--c-seal) 70%, #000) 100%); color: rgba(255, 255, 255, .92); box-shadow: 0 6px 14px -4px rgba(0,0,0,.35), inset 0 -3px 6px rgba(0,0,0,.25), inset 0 2px 4px rgba(255,255,255,.25); transition: transform .4s var(--ease); }
.env__seal::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); }
.env__seal span { font-family: var(--f-script); font-size: 22px; white-space: nowrap; line-height: 1; text-shadow: 0 -1px 0 rgba(0,0,0,.3); }
.env__seal i { font-style: normal; font-size: .8em; }
.env__seal:hover { transform: scale(1.08) rotate(-4deg); }
.env__seal::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1.5px solid var(--c-seal); opacity: 0; animation: sealPulse 2.4s ease-out infinite 1s; }
@keyframes sealPulse { 0% { transform: scale(.9); opacity: .6; } 100% { transform: scale(1.35); opacity: 0; } }
.gate.is-opening .env { animation: none; }
.gate.is-opening .env__seal::after { display: none; }

/* ==========================================================================
   NAV
   ========================================================================== */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: calc(var(--nav-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--pad), env(safe-area-inset-right)) 0 max(var(--pad), env(safe-area-inset-left)); display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: background .4s, box-shadow .4s, transform .5s var(--ease); }
.nav.is-solid { background: color-mix(in srgb, var(--c-bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.3); -webkit-backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 var(--c-line); }
body.is-gated .nav { transform: translateY(-110%); }
.nav__brand { font-family: var(--f-script); font-size: 30px; line-height: 1; color: var(--c-ink); text-decoration: none; }
.nav__brand i { font-style: normal; color: var(--c-accent); font-size: .8em; }
.nav__links { display: none; }
.nav__right { display: flex; align-items: center; gap: 8px; }
.nav__menu { width: 44px; height: 44px; display: grid; place-content: center; gap: 6px; border: 0; background: transparent; }
.nav__menu span { display: block; width: 22px; height: 1.5px; background: var(--c-ink); transition: transform .35s var(--ease); }
.nav__menu[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__menu[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.sheet[hidden] { display: none; }
.sheet { position: absolute; top: 100%; left: 12px; right: 12px; display: grid; padding: 8px; border-radius: 18px; background: var(--c-surface); box-shadow: 0 30px 60px -20px rgba(0,0,0,.25); border: 1px solid var(--c-line); transform-origin: top center; animation: sheetIn .35s var(--ease); }
@keyframes sheetIn { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.sheet a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; border-radius: 12px; font-family: var(--f-display); font-size: 20px; text-decoration: none; color: var(--c-ink); }
.sheet a:hover { background: var(--c-soft); }
.sheet .sheet__cta { margin-top: 4px; background: var(--c-accent); color: var(--c-accent-ink); font-family: var(--f-body); font-size: 16px; font-weight: 700; }
@media (min-width: 960px) {
  .nav__links { display: flex; gap: 28px; }
  .nav__links a { position: relative; font-size: 14px; font-weight: 600; letter-spacing: .04em; text-decoration: none; color: var(--c-ink); padding: 10px 0; }
  .nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 1px; background: var(--c-accent); transform: scaleX(0); transition: transform .35s var(--ease); }
  .nav__links a:hover::after { transform: scaleX(1); }
  .nav__menu, .sheet { display: none !important; }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; min-height: 100svh; padding: calc(var(--nav-h) + env(safe-area-inset-top) + 16px) var(--pad) 96px; display: grid; place-items: center; overflow: hidden; isolation: isolate; }
.hero__inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 760px; }
.hero__kicker { max-width: 26ch; font-family: var(--f-display); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--c-muted); }
.hero__arch { position: relative; width: min(68vw, 330px); aspect-ratio: 3 / 4; margin-top: 22px; }
.hero__video { width: 100%; height: 100%; object-fit: cover; border-radius: 999px 999px 10px 10px; background: var(--c-soft); box-shadow: 0 40px 70px -40px rgba(30, 30, 50, .5); }
.hero__arch-line { position: absolute; inset: -12px; border: 1px solid color-mix(in srgb, var(--c-accent) 45%, transparent); border-radius: 999px 999px 14px 14px; pointer-events: none; }
.hero__names { display: flex; flex-direction: column; align-items: center; margin-top: -54px; font-family: var(--f-script); font-weight: 400; line-height: .95; color: var(--c-ink); }
.hero__name { font-size: clamp(68px, 21vw, 150px); text-shadow: 0 2px 30px var(--c-bg), 0 0 12px var(--c-bg); }
.hero__name .split-line { overflow: visible; padding: 0 .1em; }
.hero__amp { margin: -14px 0 -10px; font-size: clamp(40px, 11vw, 72px); color: var(--c-accent); }
.hero__date { display: grid; gap: 6px; margin-top: 18px; font-family: var(--f-display); font-size: 21px; line-height: 1.3; color: var(--c-ink); }
.hero__place { font-family: var(--f-body); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.hero__ctas { display: grid; gap: 10px; width: 100%; max-width: 340px; margin-top: 26px; }

@media (min-width: 768px) {
  .hero__arch { width: 340px; margin-top: 28px; }
  .hero__names { flex-direction: row; align-items: baseline; gap: .2em; margin-top: -70px; }
  .hero__amp { margin: 0; }
  .hero__ctas { display: flex; justify-content: center; max-width: none; }
}
@media (min-width: 1200px) {
  .hero__arch { width: 380px; }
}

/* Decoración */
.deco { position: absolute; z-index: 1; color: var(--c-accent); opacity: .55; pointer-events: none; }
.deco--olive { width: 110px; left: -18px; top: 18%; animation: bob 7s ease-in-out infinite; }
.deco--lemon { width: 92px; right: -10px; top: 46%; animation: bob 6s ease-in-out infinite -2s; }
.deco--sun { width: 70px; right: 8%; top: calc(var(--nav-h) + 10px); animation: bob 8s ease-in-out infinite -4s; }
.deco .fill-lemon { fill: var(--c-accent-2); opacity: .7; }
.deco .fill-olive { fill: var(--c-accent); opacity: .35; }
.sun-rays { transform-origin: 60px 60px; animation: spin 40s linear infinite; }
@keyframes bob { 50% { translate: 0 -10px; rotate: 2deg; } }
@keyframes spin { to { transform: rotate(360deg); } }
.deco .draw { stroke-dasharray: 400; stroke-dashoffset: 400; transition: stroke-dashoffset 2.8s var(--ease); }
.hero.is-in .deco .draw { stroke-dashoffset: 0; }
@media (min-width: 768px) {
  .deco--olive { width: 170px; left: 4%; top: 22%; }
  .deco--lemon { width: 130px; right: 6%; top: 58%; }
  .deco--sun { width: 100px; right: 14%; top: 16%; }
}

/* Olas */
.waves { position: absolute; left: 0; right: 0; bottom: 0; height: 56px; z-index: 1; overflow: hidden; pointer-events: none; }
.waves__l { position: absolute; bottom: 0; left: 0; width: 200%; max-width: none; height: 100%; animation: waves 14s linear infinite; }
.waves__l path { fill: var(--c-soft); }
.waves__l--2 { animation-duration: 22s; animation-direction: reverse; opacity: .7; }
.waves__l--2 path { fill: color-mix(in srgb, var(--c-accent) 14%, var(--c-bg)); }
@keyframes waves { to { transform: translateX(-50%); } }

/* ==========================================================================
   CUENTA ATRÁS
   ========================================================================== */
.countdown { padding: 56px var(--pad) 64px; background: var(--c-soft); text-align: center; }
.countdown .eyebrow { margin-bottom: 18px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; max-width: 520px; margin: 0 auto; }
.cd__tile { position: relative; padding: 16px 4px 12px; border-radius: 12px; background: var(--c-surface); box-shadow: 0 1px 0 var(--c-line), 0 14px 24px -18px rgba(0,0,0,.25); }
.cd__tile::after { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 1px; background: color-mix(in srgb, var(--c-ink) 7%, transparent); }
.cd__tile b { display: block; font-family: var(--f-display); font-size: clamp(30px, 9vw, 52px); font-weight: var(--display-weight); line-height: 1; color: var(--c-accent); font-variant-numeric: tabular-nums; }
.cd__tile b.tick { animation: tick .5s var(--ease); }
@keyframes tick { 0% { transform: rotateX(80deg); opacity: .2; } 100% { transform: none; opacity: 1; } }
.cd__tile span { display: block; margin-top: 8px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--c-muted); }
.countdown__sub { margin-top: 18px; font-size: 30px; color: var(--c-ink); }
@media (min-width: 768px) { .cd { gap: 16px; } .cd__tile { padding: 26px 8px 18px; } }

/* ==========================================================================
   SECCIONES
   ========================================================================== */
.section { padding: 80px var(--pad); max-width: 1200px; margin: 0 auto; }
.section__head { margin-bottom: 32px; }
.section__head--center { text-align: center; }
.section__head--row { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.section__title { font-family: var(--f-display); font-size: clamp(38px, 10vw, 68px); line-height: 1.02; letter-spacing: -.01em; color: var(--c-ink); }
.section__lead { margin-top: 12px; max-width: 46ch; font-size: 17px; color: var(--c-muted); }
.subhead { margin: 48px 0 18px; font-family: var(--f-display); font-size: 28px; line-height: 1.15; }
.card { padding: 26px 22px; border-radius: var(--radius); background: var(--c-surface); box-shadow: 0 1px 0 var(--c-line), 0 30px 50px -40px rgba(0,0,0,.3); }
@media (min-width: 768px) { .section { padding: 120px var(--pad); } .card { padding: 34px 32px; } }

/* Cuándo y dónde */
.where__grid { display: grid; gap: 16px; }
.where__card { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.where__icon { width: 48px; height: 48px; display: grid; place-items: center; margin-bottom: 6px; border-radius: 50%; background: var(--c-soft); color: var(--c-accent); }
.where__icon svg { width: 24px; height: 24px; }
.where__label { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.where__big { font-family: var(--f-display); font-size: 28px; line-height: 1.15; color: var(--c-ink); }
.where__text { color: var(--c-muted); margin-bottom: 10px; }
.where__photo { position: relative; margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; }
.where__photo img { position: absolute; left: 0; top: -9%; width: 100%; height: 118%; object-fit: cover; }
.where__photo::after { content: ""; position: absolute; inset: 50% 0 0; background: linear-gradient(transparent, rgba(0,0,0,.45)); pointer-events: none; }
.where__photo figcaption { z-index: 1; position: absolute; left: 18px; bottom: 12px; font-size: 34px; color: #fff; text-shadow: 0 2px 16px rgba(0,0,0,.45); }
@media (min-width: 900px) {
  .where__grid { grid-template-columns: 1fr 1fr 1.2fr; align-items: stretch; }
  .where__photo { aspect-ratio: auto; min-height: 340px; }
}

/* Programa — postales */
.carousel-nav { display: none; gap: 10px; }
@media (min-width: 768px) { .carousel-nav { display: flex; } }
.postcards { display: grid; grid-auto-flow: column; grid-auto-columns: min(80vw, 330px); gap: 18px; margin: 0 calc(var(--pad) * -1); padding: 12px var(--pad) 28px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--pad); overscroll-behavior-x: contain; scrollbar-width: none; }
.postcards::-webkit-scrollbar { display: none; }
.postcard { position: relative; scroll-snap-align: start; padding: 14px 14px 22px; background: var(--c-surface); border-radius: 6px; box-shadow: 0 1px 0 var(--c-line), 0 24px 40px -28px rgba(0,0,0,.35); transform: rotate(var(--r, 0deg)); transition: transform .5s var(--ease); }
.postcard:nth-child(odd) { --r: -1deg; }
.postcard:nth-child(even) { --r: 1deg; }
.postcard:hover { transform: rotate(0) translateY(-4px); }
.postcard__stamp { --r: 5px; padding: calc(2.2 * var(--r)); background: color-mix(in srgb, var(--c-accent) 7%, #fff);
  -webkit-mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r));
  mask: radial-gradient(var(--r), #0000 98%, #000) round calc(-1.5 * var(--r)) calc(-1.5 * var(--r)) / calc(3 * var(--r)) calc(3 * var(--r)), linear-gradient(#000 0 0) no-repeat 50% / calc(100% - 3 * var(--r)) calc(100% - 3 * var(--r)); }
.postcard { filter: none; }
.postcard__stamp img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.postmark { position: absolute; top: 16%; right: 18px; width: 76px; height: 76px; display: grid; place-items: center; border: 1.5px solid var(--c-accent); border-radius: 50%; font-family: var(--f-display); font-size: 18px; color: var(--c-accent); background: color-mix(in srgb, var(--c-surface) 70%, transparent); transform: rotate(-14deg); opacity: .85; }
.postmark::before { content: ""; position: absolute; inset: 5px; border: 1px dashed var(--c-accent); border-radius: 50%; opacity: .6; }
.postcard__time { margin-top: 18px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--c-accent); }
.postcard__title { margin-top: 4px; font-family: var(--f-display); font-size: 28px; line-height: 1.1; }
.postcard__text { margin-top: 8px; color: var(--c-muted); font-size: 15px; }
.swipe-hint { margin-top: 2px; font-size: 13px; color: var(--c-muted); text-align: right; }
@media (min-width: 768px) { .swipe-hint { display: none; } .postcards { grid-auto-columns: 340px; } }
@media (min-width: 1280px) { .postcards { grid-auto-columns: calc((100% - 3 * 18px) / 4); } }

/* Banda vídeo */
.band { position: relative; height: 70svh; min-height: 420px; display: grid; place-items: center; overflow: hidden; color: #fff; text-align: center; }
.band__video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.band::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.15), rgba(0,0,0,.45)); }
.band__quote { position: relative; z-index: 1; margin: 0; padding: 0 var(--pad); }
.band__quote p { font-size: clamp(44px, 12vw, 96px); line-height: 1.05; text-shadow: 0 4px 30px rgba(0,0,0,.35); }

/* Viaje */
.tips { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.tip { display: grid; grid-template-columns: 52px 1fr; gap: 16px; align-items: start; padding: 20px; border-radius: var(--radius); background: var(--c-surface); box-shadow: 0 1px 0 var(--c-line); }
.tip__icon { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 50%; background: var(--c-soft); color: var(--c-accent); }
.tip__icon svg { width: 26px; height: 26px; }
.tip h3 { font-family: var(--f-display); font-size: 23px; line-height: 1.2; }
.tip p { margin-top: 4px; color: var(--c-muted); font-size: 15px; }
.stays { display: grid; gap: 16px; }
.stay { overflow: hidden; border-radius: var(--radius); background: var(--c-surface); box-shadow: 0 1px 0 var(--c-line), 0 30px 50px -40px rgba(0,0,0,.35); }
.stay img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform 1.2s var(--ease); }
.stay:hover img { transform: scale(1.05); }
.stay__body { padding: 18px 20px 22px; }
.stay h4 { font-family: var(--f-display); font-size: 23px; line-height: 1.2; font-weight: var(--display-weight); }
.stay p { margin-top: 6px; color: var(--c-muted); font-size: 15px; }
.stay b { color: var(--c-accent); letter-spacing: .04em; }
@media (min-width: 768px) { .tips { grid-template-columns: repeat(3, 1fr); gap: 16px; } .tip { grid-template-columns: 1fr; padding: 28px; } .stays { grid-template-columns: repeat(3, 1fr); } }

/* Galería — polaroids */
.gallery { overflow: hidden; }
.gallery__grid { display: grid; gap: 28px; }
.gallery__ctrl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.gallery__count { min-width: 56px; text-align: center; font-family: var(--f-display); font-size: 20px; color: var(--c-muted); }
.gallery__count b { color: var(--c-ink); font-weight: var(--display-weight); }
.stack { position: relative; width: min(76vw, 360px); aspect-ratio: 4 / 5; margin: 10px auto 30px; }
.polaroid { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; padding: 12px 12px 0; background: #fffdf8; box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 30px 50px -30px rgba(0,0,0,.45); border-radius: 3px; cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; transform: rotate(var(--rot, 0deg)) translate(var(--x, 0), var(--y, 0)); transition: transform .55s var(--ease), box-shadow .3s; will-change: transform; }
.polaroid.is-drag { transition: none; cursor: grabbing; }
.polaroid img { width: 100%; aspect-ratio: 1; object-fit: cover; pointer-events: none; filter: saturate(1.05) contrast(1.02); }
.polaroid figcaption { flex: 1; display: grid; place-items: center; min-height: 0; padding: 6px 0 10px; font-family: var(--f-script); font-size: clamp(22px, 6.4vw, 30px); color: #2b2b2b; line-height: 1.1; text-align: center; }
@media (min-width: 900px) {
  .gallery__grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }
  .stack { width: 400px; margin: 0 auto; }
}

/* Info */
.info__grid { display: grid; gap: 16px; }
.info__label { font-family: var(--f-body); font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--c-muted); }
.info__big { margin-top: 8px; font-family: var(--f-display); font-size: 30px; line-height: 1.12; }
.info__text { margin-top: 10px; color: var(--c-muted); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
.chips li { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 6px; border: 1px solid var(--c-line); border-radius: 999px; font-size: 14px; background: var(--c-bg); }
.chips i { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.iban { display: grid; gap: 12px; margin-top: 18px; padding: 16px; border: 1.5px dashed var(--c-line); border-radius: 14px; background: var(--c-bg); }
.iban code { font-family: var(--f-body); font-size: 17px; font-weight: 700; letter-spacing: .06em; color: var(--c-ink); word-break: break-word; }
@media (min-width: 768px) { .info__grid { grid-template-columns: 1fr 1fr; } .iban { grid-template-columns: 1fr auto; align-items: center; } }
.faq { max-width: 760px; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { position: relative; display: flex; align-items: center; min-height: 64px; padding: 14px 44px 14px 0; font-family: var(--f-display); font-size: 21px; line-height: 1.3; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -10px; border-right: 1.5px solid var(--c-accent); border-bottom: 1.5px solid var(--c-accent); transform: rotate(45deg); transition: transform .35s var(--ease), margin .35s; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 0 20px; color: var(--c-muted); max-width: 60ch; }

/* RSVP — tarjeta de papelería */
.rsvp-sec { padding-bottom: 100px; }
#rsvp-app.rsvp { --r-bg: var(--c-surface); --r-shadow: 0 2px 4px rgba(0,0,0,.05), 0 40px 80px -40px rgba(30,25,15,.4); --r-radius: 8px; --r-title-font: var(--f-display); --r-title-weight: var(--display-weight); background-image: var(--paper); outline: 1px solid var(--c-line); outline-offset: -10px; }
#rsvp-app.rsvp::before { content: ""; position: absolute; left: 50%; top: 0; width: 60px; height: 4px; margin-left: -30px; border-radius: 0 0 4px 4px; background: var(--c-accent); }
#rsvp-app .rsvp-choice { background: var(--c-bg); }

/* Footer */
.footer { padding: 72px var(--pad) calc(48px + env(safe-area-inset-bottom)); text-align: center; background: var(--c-soft); }
.footer__names { font-size: clamp(52px, 14vw, 96px); line-height: 1; color: var(--c-ink); }
.footer__names i { font-style: normal; color: var(--c-accent); }
.footer__date { margin-top: 10px; font-family: var(--f-display); font-size: 18px; letter-spacing: .14em; }
.footer__tag { margin-top: 6px; font-weight: 700; color: var(--c-accent); }
.footer__credit { margin-top: 28px; font-size: 13px; color: var(--c-muted); }

/* Paleta flotante: que no tape el CTA de la nav en móvil */
@media (max-width: 767px) { .wb-palette__toggle { height: 44px; } }
@media (min-width: 1024px) { .env { width: 540px; } .gate__kicker { font-size: 13px; } }
