/* ===== Juliana & Guillermo — identity from save-the-date suite =====
   Warm paper, sage green frame, forest green spaced-caps serif headings,
   italic serif accents, pill buttons, J/G diagonal monogram. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-italic-var.woff2') format('woff2');
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-var.woff2') format('woff2');
  font-weight: 300 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F5F3EB;
  --ink: #23221D;
  --green: #55654A;      /* forest green — headings, buttons */
  --sage: #C6CFBA;       /* page frame, tints */
  --sage-deep: #8A987A;  /* borders and decorative strokes only (fails text contrast) */
  --muted: #6E6A5E;      /* 4.6:1 on paper */
  --error: #7E3B1E;
  /* Flower accents from the real table decoration (bud-vase mock photo) —
     tiny doses only: flower marks, never large surfaces */
  --flor-naranja: #D97E3E;  /* orange gerbera */
  --flor-roja: #C1503F;     /* scarlet gerbera */
  --flor-rosa: #D9A6BB;     /* pink pompon */
  --flor-azul: #8D97C2;     /* delphinium blue */
  --flor-crema: #E8DFAF;    /* cream stock — flower centers */
  --bloom: #D97E3E;         /* main accent = gerbera orange */
  --rule: #DFDBCC;
  --tint: #E9EADE;         /* tinted surfaces: countdown, footer, chips */
  --card: #FCFBF5;         /* floating UI: dropdowns */
  --hero-a: #E0E3D5;
  --hero-b: #E7E8DC;
  --header-bg: rgba(245, 243, 235, .94);
  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --body: 'Inter', -apple-system, 'Helvetica Neue', sans-serif;
  --measure: 38rem;
  --wide: 68rem;
  --frame: 10px;
}

/* Dark mode: warm forest night. Printed objects (stamps, boarding pass,
   luggage tag) intentionally stay paper-colored, like real artifacts. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #1E1D18; --ink: #ECE7DA;
    --green: #A9B893; --sage: #39412F;
    --muted: #9B968A; --rule: #383630; --error: #E09B77;
    --tint: #2A2922; --card: #262520;
    --hero-a: #262B20; --hero-b: #22261D;
    --header-bg: rgba(30, 29, 24, .92);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #1E1D18; --ink: #ECE7DA;
  --green: #A9B893; --sage: #39412F;
  --muted: #9B968A; --rule: #383630; --error: #E09B77;
  --tint: #2A2922; --card: #262520;
  --hero-a: #262B20; --hero-b: #22261D;
  --header-bg: rgba(30, 29, 24, .92);
}

* { box-sizing: border-box; margin: 0; }

[hidden] { display: none !important; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 340;
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Sage frame around the whole page, like the printed card */
.frame {
  position: fixed; inset: 0; z-index: 90;
  border: var(--frame) solid var(--sage);
  pointer-events: none;
}
@media (max-width: 760px) { :root { --frame: 6px; } }

h1, h2, h3 { font-family: var(--display); font-weight: 420; line-height: 1.15; }

/* Spaced-caps forest green headings, à la "CONFIRMACIÓN DE ASISTENCIA" */
h2 {
  font-style: italic;
  font-weight: 480;
  font-size: clamp(1.5rem, 3.6vw, 2.3rem);
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--green);
  margin-bottom: 1.5rem;
}
h3 { font-size: 1.3rem; margin-bottom: .35rem; }

a { color: var(--ink); text-underline-offset: 3px; }
.muted { color: var(--muted); }

.label {
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 1.25rem;
}

.prose { max-width: var(--measure); }
.prose p + p { margin-top: 1em; }

/* Flight-path divider: dashed rule + little plane crossing it */
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: clamp(4rem, 9vw, 7.5rem) clamp(1.4rem, 5vw, 3rem);
  /* the wavy dashed route lives in the ::after tile with the flowers */
  position: relative;
}
.section::before {
  content: '✈';
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -55%);
  background: var(--paper);
  padding: 0 .7em;
  color: var(--sage-deep);
  font-size: .95rem;
  line-height: 1;
}
/* Flowers scattered along the route: one wide tile repeats, flowers sit
   above/below the line at varied sizes and tilts; even sections shift the
   tile half a period so no two dividers look alike. Plane stays on top. */
.section::before { z-index: 1; }
.section::after {
  content: '';
  position: absolute;
  top: -13px; left: 0; right: 0;
  height: 26px;
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='26' viewBox='0 0 360 26'%3E%3Cpath d='M0 13 L360 13' fill='none' stroke='%238A987A' stroke-width='1.1' stroke-dasharray='4 5'/%3E%3Cdefs%3E%3Cg id='f'%3E%3Ccircle cx='0' cy='-3.4' r='2.1'/%3E%3Ccircle cx='3.23' cy='-1.05' r='2.1'/%3E%3Ccircle cx='2' cy='2.75' r='2.1'/%3E%3Ccircle cx='-2' cy='2.75' r='2.1'/%3E%3Ccircle cx='-3.23' cy='-1.05' r='2.1'/%3E%3C/g%3E%3C/defs%3E%3Cuse href='%23f' fill='%23D97E3E' transform='translate(30 7) scale(.85) rotate(15)'/%3E%3Ccircle cx='30' cy='7' r='1.4' fill='%23E8DFAF'/%3E%3Cg fill='none' stroke='%238A987A' stroke-width='1'%3E%3Cellipse cx='62' cy='18' rx='3.5' ry='1.4' transform='rotate(-25 62 18)'/%3E%3Cellipse cx='69' cy='16' rx='3.5' ry='1.4' transform='rotate(20 69 16)'/%3E%3C/g%3E%3Cuse href='%23f' fill='%238D97C2' transform='translate(105 20) scale(.7) rotate(-20)'/%3E%3Ccircle cx='105' cy='20' r='1.2' fill='%23E8DFAF'/%3E%3Cuse href='%23f' fill='%23D9A6BB' transform='translate(172 5) scale(1) rotate(30)'/%3E%3Ccircle cx='172' cy='5' r='1.6' fill='%23E8DFAF'/%3E%3Cg fill='none' stroke='%238A987A' stroke-width='1'%3E%3Cellipse cx='215' cy='9' rx='3.5' ry='1.4' transform='rotate(25 215 9)'/%3E%3C/g%3E%3Cuse href='%23f' fill='%23C1503F' transform='translate(252 19) scale(.8) rotate(-10)'/%3E%3Ccircle cx='252' cy='19' r='1.35' fill='%23E8DFAF'/%3E%3Cuse href='%23f' fill='%23D97E3E' transform='translate(322 8) scale(.65) rotate(40)'/%3E%3Ccircle cx='322' cy='8' r='1.1' fill='%23E8DFAF'/%3E%3C/svg%3E") left center / 360px 26px repeat-x;
}
.section:nth-of-type(even)::after { background-position-x: 180px; }

/* ===== Buttons — pill, italic serif, like the postcard link ===== */
.btn {
  display: inline-block;
  background: var(--green);
  color: var(--paper);
  font-family: var(--display);
  font-style: italic;
  font-size: .95rem;
  letter-spacing: .05em;
  text-decoration: none;
  border: 1px solid var(--green);
  border-radius: 999px;
  padding: .7rem 1.7rem;
  cursor: pointer;
  transition: background .25s, color .25s;
}
.btn:hover { background: var(--ink); border-color: var(--ink); }
.btn-outline { background: transparent; color: var(--green); }
.btn-outline:hover { background: var(--green); color: var(--paper); border-color: var(--green); }
.btn-small { padding: .35rem 1rem; font-size: .85rem; }

/* ===== Monogram J/G ===== */
.monogram { width: 2.2rem; height: 2.2rem; color: var(--green); }
.monogram-lg { width: 3.6rem; height: 3.6rem; }
.monogram line { stroke: currentColor; stroke-width: 1.2; }
.monogram text {
  font-family: var(--display);
  font-size: 24px;
  fill: currentColor;
  text-anchor: middle;
}

/* ===== Gate ===== */
.gate {
  position: fixed; inset: 0; z-index: 100;
  background: var(--paper);
  border: var(--frame) solid var(--sage);
  display: flex; align-items: center; justify-content: center;
  text-align: center;
}
.gate-inner .monogram { margin-bottom: 1.5rem; }
.gate-prompt { max-width: 20rem; margin: 0 auto 1.5rem; }
.gate input {
  font: inherit; text-align: center;
  color: var(--ink);
  border: none; border-bottom: 1px solid var(--ink);
  background: transparent; padding: .5rem;
  width: 14rem; outline: none;
}
#gate-form button {
  margin-left: .75rem;
  font-family: var(--display); font-style: italic; font-size: .95rem;
  background: var(--green); color: var(--paper); border: none;
  border-radius: 999px; padding: .6rem 1.4rem; cursor: pointer;
}
.gate-error { color: var(--error); margin-top: 1rem; font-size: .9rem; }
.gate-lang { margin-top: 2.2rem; }

/* ===== Header ===== */
.header {
  position: fixed; top: var(--frame); left: var(--frame); right: var(--frame); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .6rem clamp(1rem, 4vw, 2.2rem);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  transition: transform .3s ease;
}
.header.hidden { transform: translateY(calc(-100% - var(--frame))); }
.header-monogram { display: flex; text-decoration: none; }
.header-monogram .monogram { width: 1.9rem; height: 1.9rem; }
.header-nav { display: flex; gap: 1.4rem; }
.header-nav a {
  font-size: .78rem; letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; color: var(--ink);
}
.header-nav a:hover { color: var(--green); }
.header-right { display: flex; align-items: center; gap: 1rem; }
.lang-toggle { font-size: .78rem; color: var(--muted); }
.lang-toggle button {
  font: inherit; background: none; border: none; cursor: pointer;
  color: var(--muted); padding: .2rem;
}
.lang-toggle button.active { color: var(--ink); font-weight: 600; }

/* Mobile: nav becomes a horizontally scrollable strip (never hidden) */
@media (max-width: 760px) {
  .header { flex-wrap: wrap; row-gap: .1rem; }
  .header-nav {
    order: 3;
    flex-basis: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 1.1rem;
    padding: .2rem 0 .35rem;
  }
  .header-nav::-webkit-scrollbar { display: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.hero-media {
  position: absolute; inset: 0;
  /* Placeholder until hero photo: sage wash on paper
     (static hexes are the color-mix values, for old browsers) */
  background:
    radial-gradient(90rem 60rem at 72% 18%, var(--hero-a) 0%, transparent 60%),
    radial-gradient(70rem 50rem at 18% 82%, var(--hero-b) 0%, transparent 55%),
    var(--paper);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; width: 100%; padding: 6rem 1.4rem 3rem; }
.hero-names {
  /* symmetric &-centered layout needs 2× the longer name to fit,
     so the font scales at ~6vw, not 8.5vw */
  font-size: clamp(2.2rem, 6vw, 6.5rem);
  font-weight: 430;
  text-transform: uppercase;
  letter-spacing: .05em;
  margin: .8rem 0 1.2rem;
  /* & sits at the exact horizontal center; names grow outward,
     so unequal name lengths never look off-center */
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: baseline;
  column-gap: .3em;
}
.hero-names .name:first-child { justify-self: end; }
.hero-names .name:last-child { justify-self: start; }
/* Narrow screens: stack the names (side-by-side would clip) */
@media (max-width: 640px) {
  .hero-names {
    display: block;
    font-size: clamp(2.6rem, 11vw, 4rem);
  }
  /* justify-self also applies in block layout (Chrome 123+) — reset it */
  .hero-names .name,
  .hero-names .name:first-child,
  .hero-names .name:last-child { display: block; justify-self: auto; }
  .hero-names .amp { display: block; line-height: 1.3; }
}
.hero-names .amp {
  font-style: italic;
  text-transform: none;
  font-weight: 320;
  color: var(--green);
  font-size: .8em;
  letter-spacing: 0;
}
.hero-date {
  font-family: var(--display); font-style: italic;
  font-size: 1.05rem; letter-spacing: .08em;
  margin-bottom: 2.5rem;
}
.hero-date .dot { color: var(--green); margin: 0 .4rem; }

/* Botanical flourish — spring flowers, like the wedding decoration */
.flourish {
  display: block;
  width: 130px;
  margin: 1.2rem auto 1.6rem;
  color: var(--sage-deep);
}
.footer .flourish { margin-bottom: 1.4rem; }

/* ===== Countdown ===== */
.countdown {
  position: relative;
  display: flex; align-items: baseline; justify-content: center; gap: .6rem;
  padding: 1.3rem;
  background: var(--tint);
  border-top: 1px solid var(--rule);
  font-size: .8rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
}
/* Cancellation postmark stamped over the strip */
.postmark {
  position: absolute;
  right: clamp(.5rem, 5vw, 4rem);
  top: 50%;
  height: 120px;
  transform: translateY(-50%) rotate(7deg);
  color: var(--green);
  opacity: .5;
  pointer-events: none;
}
@media (max-width: 620px) { .postmark { display: none; } }
.countdown strong {
  font-family: var(--display);
  font-size: 1.6rem; color: var(--ink); letter-spacing: 0;
}

/* ===== Venue / gran día ===== */
.venue-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: start;
}
.venue-info p { margin-bottom: .6rem; }
.itinerary {
  list-style: none;
  counter-reset: it;
  margin: 1rem 0;
  padding: 0;
  max-width: var(--measure);
}
.itinerary li {
  counter-increment: it;
  position: relative;
  padding: 0 0 .7rem 2.2rem;
}
.itinerary li::before {
  content: counter(it, decimal-leading-zero);
  position: absolute; left: 0; top: .1em;
  font-family: var(--display); font-style: italic;
  font-size: .95rem;
  color: var(--green);
}
.venue-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.map-placeholder {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--sage-deep);
  background: var(--tint);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: .85rem; letter-spacing: .1em;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) { .venue-grid { grid-template-columns: 1fr; } }

/* ===== Dress code ===== */
.dresscode { margin-top: clamp(2.5rem, 5vw, 4rem); }
.dress-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 640px) { .dress-grid { grid-template-columns: 1fr; } }
.dress-card {
  border: 1px solid var(--rule);
  border-radius: 24px 10px 22px 12px;
  padding: 1.3rem 1.4rem;
}
.dress-grid .dress-card:nth-of-type(2) { border-radius: 10px 26px 12px 22px; }
.dress-card h3 { color: var(--green); font-size: 1.15rem; margin-bottom: .5rem; }
.dress-card p { margin-bottom: .5rem; }
.dress-no { color: var(--muted); font-size: .92rem; }
.dress-palette {
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
  margin: 1.2rem 0 .8rem;
}
.dress-palette-label {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
  margin-right: .3rem;
}
.swatch {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--c);
  border: 1px solid rgba(35, 34, 29, .18);
}

/* ===== Timeline (días previos) ===== */
.timeline { list-style: none; padding: 0; margin-top: 2.5rem; max-width: var(--measure); }
.timeline li {
  position: relative;
  padding: 0 0 2.5rem 2rem;
  /* wavy dashed route, like a path on a travel map */
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='44' viewBox='0 0 13 44'%3E%3Cpath d='M6.5 0 Q12 11 6.5 22 Q1 33 6.5 44' fill='none' stroke='%238A987A' stroke-width='1.2' stroke-dasharray='4 5'/%3E%3C/svg%3E") left top repeat-y;
}
.timeline li:last-child { padding-bottom: 0; }
/* Tiny flowers instead of plain dots — colors from the real table decoration */
.timeline li::before {
  content: '';
  position: absolute; left: 0; top: .35rem;
  width: 13px; height: 13px;
  background: center / contain no-repeat;
}
.timeline li:nth-child(1)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.5' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.timeline li:nth-child(2)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.5' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.timeline li:nth-child(3)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%238D97C2'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.5' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.timeline li:nth-child(4)::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23C1503F'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.5' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.timeline-when {
  display: block;
  font-family: var(--display); font-style: italic;
  font-size: .95rem;
  color: var(--green); margin-bottom: .3rem;
}
/* Postage stamps: white perforated frame (mask scallops), tilted + overlapping */
.timeline-thumbs {
  float: right;
  display: flex;
  margin: 0 0 .6rem 1.2rem;
}
.stamp {
  --tilt: 0deg;
  width: clamp(70px, 17vw, 100px);
  transform: rotate(var(--tilt));
  background: #FCFBF5;
  padding: 6px 6px 4px;
  display: flex; flex-direction: column; gap: 3px;
  box-shadow: 0 1px 4px rgba(35, 34, 29, .2);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.5px, #0000 99%, #000 101%) -6px -6px / 12px 12px round;
  mask:
    linear-gradient(#000 0 0) content-box,
    radial-gradient(circle 3.5px, #0000 99%, #000 101%) -6px -6px / 12px 12px round;
  mask-composite: add;
  -webkit-mask-composite: source-over;
}
.stamp + .stamp { margin-left: -14px; }
.stamp-pic {
  aspect-ratio: 4 / 5;
  background: linear-gradient(150deg, #E7E8DC, #CFD6BF);
  overflow: hidden;
}
.stamp-pic.alt { background: linear-gradient(210deg, #E2E5D7, #C6CFBA); }
.stamp-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stamp-cap {
  font-size: 7px; font-weight: 500;
  letter-spacing: .09em; text-transform: uppercase;
  color: #55654A; text-align: center; /* printed ink */
  white-space: nowrap; overflow: hidden;
}
.timeline li::after { content: ''; display: block; clear: both; }
.stamp-pic img { cursor: zoom-in; }

/* ===== Lightbox ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  background: rgba(20, 19, 16, .88);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility 0s linear .3s;
  cursor: zoom-out;
}
.lightbox.open {
  opacity: 1; visibility: visible;
  transition: opacity .3s ease;
}
.lightbox img {
  border: 6px solid #FCFBF5;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .5);
  transition: transform .38s cubic-bezier(.2, .9, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  .lightbox, .lightbox img { transition: none; }
}
.lb-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 2.8rem; height: 2.8rem;
  border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(245, 243, 235, .92);
  color: #23221D;
  font-size: 1.2rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.lb-prev { left: max(1rem, env(safe-area-inset-left)); }
.lb-next { right: max(1rem, env(safe-area-inset-right)); }
.lb-dots {
  position: absolute; bottom: 1.3rem; left: 0; right: 0;
  display: flex; justify-content: center; gap: .5rem;
}
.lb-dots span {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(245, 243, 235, .45);
}
.lb-dots span.active { background: #F5F3EB; }
.lb-spinner {
  position: absolute;
  width: 40px; height: 40px;
  border: 3px solid rgba(245, 243, 235, .25);
  border-top-color: #F5F3EB;
  border-radius: 50%;
  animation: lb-spin .8s linear infinite;
}
@keyframes lb-spin { to { transform: rotate(360deg); } }
.lightbox img.loading { opacity: 0; }
.lightbox img { max-width: 92vw; max-height: 86vh; }

/* ===== Hotel ===== */
.hotel-card {
  display: grid; grid-template-columns: 1fr 1.4fr;
  gap: clamp(1.5rem, 4vw, 3rem); align-items: center;
}
.hotel-photo {
  aspect-ratio: 4 / 3;
  background: linear-gradient(140deg, var(--hero-a), var(--hero-b));
  border: 1px solid var(--sage-deep);
}
.hotel-photo iframe { width: 100%; height: 100%; border: 0; display: block; }
.hotel-card p { margin-bottom: .8rem; }
/* Booking code as a luggage tag — tap to copy */
.booking-code {
  display: inline-block;
  position: relative;
  font: inherit;
  color: #23221D;            /* printed ink — never themed */
  text-align: left;
  cursor: pointer;
  background: #FCFBF5;
  border: 1px solid var(--sage-deep);
  border-radius: 14px 4px 4px 14px;
  padding: .55rem 1rem .55rem 1.9rem;
  transform: rotate(-2deg);
  box-shadow: 0 1px 4px rgba(35, 34, 29, .14);
  transition: box-shadow .2s, transform .2s;
}
.booking-code:hover {
  box-shadow: 0 3px 10px rgba(35, 34, 29, .2);
  transform: rotate(-2deg) translateY(-1px);
}
.code-copied { color: #55654A; font-size: .85rem; margin-left: .4rem; }
.booking-code::before {
  content: '';
  position: absolute;
  left: .6rem; top: 50%;
  width: 9px; height: 9px;
  transform: translateY(-50%);
  border: 1.5px solid var(--sage-deep);
  border-radius: 50%;
  background: var(--paper);
}
.booking-code code {
  font-family: var(--display); font-style: italic;
  font-size: 1.15rem; letter-spacing: .12em;
  color: #55654A;            /* printed ink */
}
@media (max-width: 760px) { .hotel-card { grid-template-columns: 1fr; } }

/* ===== Recomendaciones ===== */
.reco-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1rem; margin-top: 2.5rem;
}
@media (max-width: 640px) { .reco-grid { grid-template-columns: 1fr; } }
/* Soft, hand-cut corners — each card slightly different, with a pressed
   flower tucked in the corner */
.reco-card {
  position: relative;
  border: 1px solid var(--rule);
  border-radius: 22px 8px 26px 10px;
  padding: 1.3rem 1.4rem;
}
.reco-grid .reco-card:nth-of-type(2) { border-radius: 10px 24px 8px 22px; }
.reco-grid .reco-card:nth-of-type(3) { border-radius: 8px 20px 24px 8px; }
.reco-grid .reco-card:nth-of-type(4) { border-radius: 24px 10px 10px 26px; }
.reco-grid .reco-card:nth-of-type(5) { border-radius: 16px 24px 14px 22px; }
.reco-card::after {
  content: '';
  position: absolute;
  top: 1rem; right: 1.1rem;
  width: 22px; height: 22px;
  opacity: .55;
  pointer-events: none;
  background: center / contain no-repeat;
}
.reco-grid .reco-card:nth-of-type(1)::after { transform: rotate(12deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.reco-grid .reco-card:nth-of-type(2)::after { transform: rotate(-18deg) scale(.9); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.reco-grid .reco-card:nth-of-type(3)::after { transform: rotate(25deg) scale(.85); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%238D97C2'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.reco-grid .reco-card:nth-of-type(4)::after { transform: rotate(-8deg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23C1503F'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.reco-grid .reco-card:nth-of-type(5)::after { transform: rotate(30deg) scale(.95); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.reco-card h3 { color: var(--green); font-size: 1.15rem; margin-bottom: .6rem; }
.reco-card ul { margin: 0; padding-left: 1.1rem; }
.reco-card li { margin-bottom: .35rem; }
.reco-card li::marker { color: var(--sage-deep); }

/* ===== Regalos ===== */
.iban-box { margin-top: 2rem; }
#iban-value {
  display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  margin-top: 1rem;
}
#iban-value code {
  font-size: 1.05rem; letter-spacing: .06em;
  border-bottom: 1px solid var(--rule); padding-bottom: .2rem;
}

/* ===== Gallery ===== */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: .6rem;
}
.gallery-item {
  aspect-ratio: 1;
  background: linear-gradient(160deg, var(--hero-a), var(--hero-b));
  border: 1px solid var(--rule);
  border-radius: 16px 6px 14px 7px;
  overflow: hidden;
}
.gallery-item:nth-child(4n+2) { border-radius: 7px 15px 6px 16px; }
.gallery-item:nth-child(4n+3) { border-radius: 6px 16px 15px 6px; }
.gallery-item:nth-child(4n) { border-radius: 14px 7px 7px 16px; }
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  cursor: zoom-in;
  transition: transform .3s ease;
}
.gallery-item img:hover { transform: scale(1.04); }

/* ===== Check-in form ===== */
#checkin-form { max-width: 44rem; display: grid; gap: 1.6rem; margin-top: 2rem; }

/* Event cards: tap to join, gets a "stamp" like the postcard.
   Selection state is a JS-managed .selected class (no :has dependency). */
.event-cards {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem;
  border: none; padding: 0; margin: 0;
}
.event-cards-legend {
  grid-column: 1 / -1;
  padding: 0; margin-bottom: .3rem;
  font-size: .95rem;
}
@media (max-width: 640px) { .event-cards { grid-template-columns: 1fr; } }
.event-card {
  position: relative;
  display: grid; gap: .15rem;
  border: 1px solid var(--rule);
  border-radius: 20px 8px 24px 10px;
  padding: 1.1rem 1.2rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  -webkit-user-select: none; user-select: none;
}
.event-cards .event-card:nth-of-type(2) { border-radius: 10px 22px 8px 24px; }
.event-cards .event-card:nth-of-type(3) { border-radius: 8px 24px 20px 10px; }
.event-cards .event-card:nth-of-type(4) { border-radius: 24px 10px 12px 22px; }
.event-card:hover { border-color: var(--sage-deep); }
.event-card input { position: absolute; opacity: 0; pointer-events: none; }
.event-day {
  font-size: .7rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--green);
}
.event-title { font-family: var(--display); font-size: 1.15rem; }
.event-time { font-family: var(--display); font-style: italic; color: var(--green); font-size: .95rem; }
.event-note { font-size: .8rem; color: var(--muted); margin-top: .3rem; }
/* Passport-style rubber stamp: oval double ring, green ink, date line */
.event-stamp {
  position: absolute; top: .55rem; right: .7rem;
  font-size: .58rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  line-height: 1.3; text-align: center;
  color: var(--green);
  border: 1.5px solid var(--green);
  border-radius: 999px;
  padding: .5em 1.1em .55em;
  box-shadow: inset 0 0 0 2.5px var(--paper), inset 0 0 0 3.8px var(--green);
  transform: rotate(-9deg);
  opacity: 0;
}
.event-stamp::after {
  content: attr(data-date); /* each card stamps its own event date */
  display: block;
  font-size: .5rem; font-weight: 500; letter-spacing: .1em;
}

/* Pressed flower — appears only once the card is confirmed */
.event-card::after {
  content: '';
  position: absolute;
  width: 30px; height: 30px;
  opacity: 0;
  transform: scale(.3);
  transition: opacity .3s ease .1s, transform .3s cubic-bezier(.2, 1.4, .5, 1) .1s;
  pointer-events: none;
  background: center / contain no-repeat;
}
.event-card:nth-of-type(1)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.event-card:nth-of-type(2)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.event-card:nth-of-type(3)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%238D97C2'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.event-card:nth-of-type(4)::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23C1503F'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.event-card.selected::after { opacity: .8; }
.event-card:nth-of-type(1).selected::after { transform: rotate(14deg); }
.event-card:nth-of-type(2).selected::after { transform: rotate(-19deg) scale(.85); }
.event-card:nth-of-type(3).selected::after { transform: rotate(31deg) scale(.9); }
.event-card:nth-of-type(4).selected::after { transform: rotate(-8deg) scale(1.1); }
.event-card:nth-of-type(1)::after { right: 12px; bottom: 10px; transform: rotate(14deg); }
.event-card:nth-of-type(2)::after { right: 26px; bottom: 16px; transform: rotate(-19deg) scale(.85); }
.event-card:nth-of-type(3)::after { right: 10px; bottom: 22px; transform: rotate(31deg) scale(.9); }
.event-card:nth-of-type(4)::after { right: 20px; bottom: 8px; transform: rotate(-8deg) scale(1.1); }
.event-card.selected .event-stamp {
  opacity: .92;
  animation: stamp-down .28s cubic-bezier(.2, 1.4, .5, 1);
}
@keyframes stamp-down {
  from { opacity: 0; transform: rotate(-16deg) scale(1.7); }
  to   { opacity: .92; transform: rotate(-9deg) scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .event-card.selected .event-stamp { animation: none; }
}
.event-card:focus-within {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
.event-card.selected {
  border: 1px dashed var(--sage-deep);
  background: var(--tint);
}

#checkin-form label:not(.event-card) { display: grid; gap: .4rem; font-size: .95rem; }

/* ===== Guest picker ===== */
.people-field { display: grid; gap: .6rem; font-size: .95rem; }
.people-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.people-chips:empty { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem;
  background: var(--tint);
  border: 1px solid var(--sage-deep);
  border-radius: 999px;
  padding: .3rem .5rem .3rem .9rem;
  font-size: .9rem;
}
.chip button {
  font: inherit; line-height: 1;
  width: 1.3rem; height: 1.3rem;
  border: none; border-radius: 50%;
  background: var(--green); color: var(--paper);
  cursor: pointer;
}
.chip-suggest {
  background: transparent;
  border: 1px dashed var(--sage-deep);
  color: var(--ink);
  padding: .35rem .9rem;
  cursor: pointer;
  font: inherit; font-size: .9rem;
}
.chip-suggest:hover { background: var(--tint); }
.people-box { position: relative; }
.people-box input {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--ink);
  padding: .45rem 0;
  outline: none;
}
.people-box input:focus { border-bottom-color: var(--green); }
.people-results {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 10;
  margin: 0; padding: .3rem 0; list-style: none;
  background: var(--card);
  border: 1px solid var(--sage-deep);
  border-radius: 6px;
  box-shadow: 0 6px 20px rgba(35, 34, 29, .15);
}
.people-results li { padding: .5rem 1rem; cursor: pointer; }
.people-results li:hover, .people-results li.active { background: var(--tint); }
.people-results li.add-typed { font-style: italic; color: var(--green); }
.people-sugg { display: grid; gap: .45rem; }
.people-sugg-label {
  font-size: .72rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--green);
}
.people-suggestions { display: flex; flex-wrap: wrap; gap: .5rem; }
#checkin-form input[type="text"],
#checkin-form input[type="number"],
#checkin-form textarea {
  font: inherit;
  color: var(--ink);
  background: transparent;
  border: none; border-bottom: 1px solid var(--ink);
  padding: .45rem 0;
  outline: none;
}
#checkin-form input:focus, #checkin-form textarea:focus { border-bottom-color: var(--green); }
#checkin-form .btn { justify-self: start; }
.honeypot { position: absolute; left: -9999px; }
.form-msg.ok { color: var(--green); }
.form-msg.err { color: var(--error); }

/* ===== Boarding pass (check-in success) ===== */
.boarding-pass {
  max-width: 30rem;
  color: #23221D;            /* printed ink — never themed */
  background: #FCFBF5;
  border: 1px solid var(--sage-deep);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(35, 34, 29, .12);
  animation: bp-in .4s ease-out;
}
@keyframes bp-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: none; }
}
.bp-header {
  display: flex; justify-content: space-between; align-items: center;
  background: #55654A;
  color: #F5F3EB;
  padding: .6rem 1.1rem;
  font-size: .72rem; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
}
.bp-body {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .9rem 1rem;
  padding: 1.1rem;
  border-bottom: 1px dashed var(--sage-deep);
  position: relative;
}
/* ticket notches on the dashed tear line */
.bp-body::before, .bp-body::after {
  content: '';
  position: absolute;
  bottom: -8px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--sage-deep);
}
.bp-body::before { left: -9px; }
.bp-body::after { right: -9px; }
.bp-field { display: grid; gap: .1rem; }
.bp-wide { grid-column: 1 / -1; }
.bp-label {
  font-size: .62rem; letter-spacing: .18em; text-transform: uppercase;
  color: #6E6A5E;            /* printed ink */
}
.bp-field strong {
  font-family: var(--display);
  font-size: 1rem;
  letter-spacing: .04em;
}
.bp-note { padding: .8rem 1.1rem 1rem; color: #55654A; font-size: .95rem; }
@media (max-width: 560px) { .bp-body { grid-template-columns: repeat(2, 1fr); } }

/* ===== FAQ ===== */
#faq details { border-bottom: 1px solid var(--rule); max-width: var(--measure); }
#faq summary {
  font-family: var(--display); font-size: 1.15rem;
  padding: 1.1rem 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center;
}
#faq summary::after { content: '+'; color: var(--green); font-size: 1.3rem; }
#faq details[open] summary::after { content: '–'; }
#faq details p { padding: 0 0 1.2rem; color: var(--muted); }

/* ===== Footer ===== */
.footer {
  text-align: center;
  padding: 4rem 1.4rem calc(4rem + var(--frame));
  background: var(--tint);
  border-top: 1px solid var(--rule);
  font-family: var(--display); font-style: italic;
  font-size: .95rem; letter-spacing: .06em;
}
.footer .monogram { margin-bottom: 1rem; }
.footer p + p { margin-top: .5rem; }

/* ===== Post-wedding mode ===== */
.video-wrap {
  aspect-ratio: 16 / 9;
  max-width: 52rem;
  margin-top: 2rem;
  border: 1px solid var(--sage-deep);
  background: #000;
}
.video-wrap iframe { width: 100%; height: 100%; border: 0; display: block; }
body.post-wedding .countdown,
body.post-wedding .header-nav,
body.post-wedding .hero .btn,
body.post-wedding main .section:not(#despues) { display: none !important; }
body.post-wedding .hero { min-height: 62svh; }

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

/* ===== Group visibility ===== */
[data-groups].group-hidden { display: none !important; }

.timeline-links { font-size: .9rem; }
.timeline-links a { color: var(--green); }

/* ===== Theme toggle ===== */
.theme-toggle {
  font: inherit; font-size: 1rem;
  background: none; border: none; cursor: pointer;
  padding: .2rem .3rem; line-height: 1;
}

/* ===== Joke contact modal ===== */
.modal {
  position: fixed; inset: 0; z-index: 110;
  background: rgba(20, 19, 16, .6);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.modal-card {
  max-width: 24rem;
  background: var(--paper);
  border: 1px solid var(--sage-deep);
  border-radius: 26px 10px 22px 12px;
  padding: 2rem 1.8rem;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, .3);
}
.modal-card h3 { color: var(--green); margin-bottom: .8rem; }
.modal-card p { margin-bottom: 1.4rem; }

.faq-actions { padding-top: 1.5rem; }
#faq-end { padding-top: 1.5rem; font-style: italic; }

/* Dark-mode maps: the free embed has no dark theme, so invert + rotate hue.
   Roads/water read correctly; pins shift slightly — acceptable trade. */
:root[data-theme="dark"] .map-placeholder iframe,
:root[data-theme="dark"] .hotel-photo iframe {
  filter: invert(.88) hue-rotate(180deg) saturate(.8) contrast(.95);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .map-placeholder iframe,
  :root:not([data-theme="light"]) .hotel-photo iframe {
    filter: invert(.88) hue-rotate(180deg) saturate(.8) contrast(.95);
  }
}

/* "Jardín que respira": flowers bloom in and out across the hero */
.hero-flowers { position: absolute; inset: 0; pointer-events: none; }
.hero-flowers span {
  position: absolute;
  opacity: 0;
  background: center / contain no-repeat;
  animation: hero-bloom var(--dur) ease-in-out var(--delay) infinite;
}
@keyframes hero-bloom {
  0% { opacity: 0; transform: scale(.2) rotate(-10deg); }
  18% { opacity: .55; transform: scale(1) rotate(4deg); }
  55% { opacity: .55; transform: scale(1.06) rotate(10deg); }
  75%, 100% { opacity: 0; transform: scale(.7) rotate(16deg); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-flowers span { animation: none; opacity: .3; }
}
.hero-flowers span:nth-child(1) { left: 8%; top: 14%; width: 22px; height: 22px; --dur: 8.5s; --delay: 0s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(2) { left: 85%; top: 18%; width: 28px; height: 28px; --dur: 9.5s; --delay: 2.1s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(3) { left: 16%; top: 78%; width: 26px; height: 26px; --dur: 10.5s; --delay: 4.4s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%238D97C2'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(4) { left: 78%; top: 74%; width: 20px; height: 20px; --dur: 8s; --delay: 1.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23C1503F'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(5) { left: 28%; top: 26%; width: 16px; height: 16px; --dur: 11s; --delay: 6s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(6) { left: 64%; top: 12%; width: 24px; height: 24px; --dur: 9s; --delay: 3.3s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%238D97C2'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(7) { left: 44%; top: 84%; width: 30px; height: 30px; --dur: 10s; --delay: 5.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(8) { left: 92%; top: 48%; width: 18px; height: 18px; --dur: 8.8s; --delay: 7s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D9A6BB'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(9) { left: 5%; top: 52%; width: 22px; height: 22px; --dur: 11.5s; --delay: 3.8s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23C1503F'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }
.hero-flowers span:nth-child(10) { left: 55%; top: 38%; width: 14px; height: 14px; --dur: 9.8s; --delay: 8.2s; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E"); }

/* ===== Idle easter egg ===== */
.peek {
  position: fixed;
  width: clamp(130px, 22vw, 200px);
  z-index: 95;
  pointer-events: none;
  transform: translateX(105%);
  transition: transform .6s cubic-bezier(.3, 1.3, .5, 1);
}
@media (prefers-reduced-motion: reduce) { .peek { display: none; } }

/* Boarding pass flower + save button */
.boarding-pass { position: relative; }
.boarding-pass::after {
  content: '';
  position: absolute;
  right: 14px; bottom: 12px;
  width: 26px; height: 26px;
  opacity: .75;
  transform: rotate(-12deg);
  pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cg fill='%23D97E3E'%3E%3Ccircle cx='6' cy='2.6' r='2.1'/%3E%3Ccircle cx='9.2' cy='4.9' r='2.1'/%3E%3Ccircle cx='8' cy='8.8' r='2.1'/%3E%3Ccircle cx='4' cy='8.8' r='2.1'/%3E%3Ccircle cx='2.8' cy='4.9' r='2.1'/%3E%3C/g%3E%3Ccircle cx='6' cy='5.8' r='1.6' fill='%23E8DFAF'/%3E%3C/svg%3E") center / contain no-repeat;
}
.bp-actions { padding: 0 1.1rem 1rem; }

.btn.loading { opacity: .75; cursor: progress; }
.btn.loading::after {
  content: '';
  display: inline-block;
  width: .8em; height: .8em;
  margin-left: .5em;
  vertical-align: -0.1em;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: lb-spin .7s linear infinite;
}

/* countdown strip already separates — no divider right below it */
#historia::before, #historia::after { content: none; }

/* recommendation links: quiet underline + external mark */
.reco-card li a { text-decoration-color: var(--sage-deep); }
.reco-card li a::after { content: ' ↗'; font-size: .78em; color: var(--sage-deep); }

/* iOS zooms into focused fields with font-size < 16px — never go below */
#checkin-form input[type="text"],
#checkin-form input[type="number"],
#checkin-form textarea,
.people-box input,
.gate input { font-size: max(16px, 1em); }
