/* Mundo Natural Guatemala — site.css (v3 "fields and angles", white + green palette (update 8))
   Mobile first. Colours are tokens; each section is a colour FIELD (white / mist / moss / forest)
   that sets its own text, link, button and chip colours through custom properties. */

:root {
  /* palette (update 8: "purification, purity and nature": white + greens, brown only in tiny details) */
  --white: #ffffff;     /* main page ground */
  --mist: #f3f7ef;      /* alternate light sections: very light green, almost white */
  --sage: #e2edd6;      /* chips, slabs, secondary buttons, cards on mist */
  --sage-2: #cfe2bd;    /* borders, dividers, hover on light */
  --leaf: #7db543;      /* logo leaf green: accents, icons */
  --leaf-2: #a9cf6c;    /* light leaf: highlights and buttons on dark */
  --grass: #2f6b2c;     /* primary buttons and links on light (white text 6.3:1) */
  --moss: #3d7a3a;      /* mid-green field (replaces the terracotta sections) */
  --forest: #163226;    /* deep green field: hero, footer, dark sections */
  --forest-2: #1f4536;
  --forest-3: #2c5c47;
  --bark: #563d1e;      /* logo brown: timeline years and small labels only */
  --ink: #1b211c;
  --ink-soft: #4b5a4d;  /* muted text: greenish grey */
  --cream: #f7faf3;     /* text on dark fields */
  --danger: #8a2a1c;    /* form errors only */

  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, "Noto Serif", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Helvetica Neue", Arial, sans-serif;

  --s-display: clamp(2.6rem, 1.6rem + 5.2vw, 6rem);
  --s-h2: clamp(2rem, 1.4rem + 2.9vw, 3.8rem);
  --s-h3: clamp(1.35rem, 1.15rem + 0.8vw, 1.85rem);
  --s-body: 1.0625rem;
  --s-small: 0.9375rem;

  --gutter: 16px;
  --max: 1320px;
  --section: clamp(72px, 10vw, 168px);
  --cut: clamp(26px, 5.2vw, 96px);   /* height of the diagonal section edges */
  --bar-h: 0px;
  color-scheme: light;

  /* field variables (default = white page ground) */
  --bg: var(--white); --fg: var(--ink); --muted: var(--ink-soft); --link: var(--grass);
  --btn-bg: var(--grass); --btn-fg: #ffffff; --btn2-bg: var(--sage); --btn2-fg: var(--ink);
  --chip: var(--sage); --slab: var(--sage); --rule: var(--grass); --accent: var(--grass);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

.on-white { --bg: var(--white); }   /* light field that still takes the diagonal edge */
.on-mist { --bg: var(--mist); --chip: var(--sage); --slab: var(--sage); --btn2-bg: var(--sage); }
.on-green, .hero, .page-hero, .sticky-bar, .tile, .site-footer {
  --bg: var(--forest); --fg: var(--cream); --muted: #cbd8c6; --link: var(--cream);
  --btn-bg: var(--leaf-2); --btn-fg: var(--forest); --btn2-bg: var(--cream); --btn2-fg: var(--forest);
  --chip: var(--forest-2); --slab: var(--forest-2); --rule: var(--leaf-2); --accent: var(--leaf-2);
}
.on-moss {   /* replaces the terracotta fields */
  --bg: var(--moss); --fg: #ffffff; --muted: #ecf5e6; --link: #ffffff;   /* muted 4.6:1 (#dcebd2 would be 4.2:1) */
  --btn-bg: var(--white); --btn-fg: var(--forest); --btn2-bg: var(--sage); --btn2-fg: var(--ink);
  --chip: #356c33; --slab: #356c33; --rule: var(--leaf-2); --accent: #ffffff;   /* leaf-2 only for lines/dots here (2.9:1 as text) */
}
.on-white, .on-mist, .on-green, .on-moss, .reviews, .page-hero { background: var(--bg); color: var(--fg); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(84px + var(--demo-h, 0px)); }   /* anchors land below the sticky bar + header */
body {
  margin: 0; background: var(--white); color: var(--ink);
  font: 400 var(--s-body)/1.55 var(--sans);
  overflow-x: hidden; padding-bottom: var(--bar-h);
}
::selection { background: var(--leaf-2); color: var(--forest); }
.on-moss ::selection { background: var(--leaf-2); color: var(--forest); }
html { scrollbar-color: var(--forest-3) var(--mist); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--grass); outline-offset: 3px; border-radius: 4px; }
.on-green :focus-visible, .hero :focus-visible, .page-hero :focus-visible, .on-moss :focus-visible, .sticky-bar :focus-visible { outline-color: var(--cream); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.02em; line-height: 1.04; margin: 0 0 0.5em; text-wrap: balance; }
h1 { font-size: var(--s-display); letter-spacing: -0.035em; line-height: 0.98; }
h2 { font-size: var(--s-h2); }
h3 { font-size: var(--s-h3); line-height: 1.15; }
p { margin: 0 0 1em; max-width: 68ch; }
ul, ol { padding-left: 1.2em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section { --pt: var(--section); padding: var(--pt) 0 var(--section); }
.section-tight { --pt: calc(var(--section) * 0.6); padding: var(--pt) 0 calc(var(--section) * 0.6); }
.section.pt-0, .section-tight.pt-0 { --pt: clamp(16px, 2.5vw, 32px); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--forest); color: var(--cream); padding: 10px 14px; z-index: 100; border-radius: 6px; }
.skip:focus { top: 8px; }
.lead { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); line-height: 1.45; max-width: 40ch; }
.note { color: var(--muted); font-size: var(--s-small); }
.brand span { white-space: nowrap; }

/* ---------- Diagonal edges ----------
   A section after another section overlaps it by --cut and is clipped on a gentle diagonal,
   so the two colour fields meet on an angle. Alternate sections slope the other way. */
main > :is(section.on-white, section.on-green, section.on-moss, section.on-mist, section.svc, section.band, section.reviews):not(:first-child),
main > :is(.on-white, .on-green, .on-moss, .on-mist, .page-hero, .band, .reviews, .svc) + :is(section.section, section.section-tight) {
  position: relative; margin-top: calc(var(--cut) * -1); padding-top: calc(var(--pt, var(--section)) + var(--cut));
  clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%);
}
main > section:nth-of-type(odd):is(.on-white, .on-green, .on-moss, .on-mist, .svc, .band, .reviews, .section, .section-tight):not(:first-child) {
  clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%);
}
.site-footer { clip-path: polygon(0 var(--cut), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--cut) * -1); position: relative; }
/* Tilted photos, offset blocks and heading slabs stay inside the screen width (no sideways scroll).
   overflow-x: clip cuts only the horizontal overflow, so the angles and vertical overlaps stay. */
main > section, main > nav, main > .vine, .site-footer { overflow-x: clip; }

/* Angled colour slab behind key headings: starts off-screen left, ends on a slant past the text */
.page-hero h1, .svc-head h2, .svc-intro h2, #locs-title, .strip-head h2, .story h2 {
  position: relative; z-index: 0; width: fit-content; max-width: 100%;
}
.page-hero h1::before, .svc-head h2::before, .svc-intro h2::before, #locs-title::before, .strip-head h2::before, .story h2::before {
  content: ""; position: absolute; z-index: -1; left: -100vw; right: -0.55em; top: 0.32em; bottom: -0.06em;
  background: var(--slab); transform: skewX(-18deg); transform-origin: 0 100%;
}
.page-hero h1::after { /* the crest's red, as one thin stroke under the page title */
  content: ""; position: absolute; z-index: -1; left: -100vw; right: -0.55em; bottom: -0.06em; height: 4px;
  background: var(--leaf); transform: skewX(-18deg); transform-origin: 0 100%;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0.7em 1.35em; border-radius: 999px; border: 0;
  font: 600 1rem/1.1 var(--sans); text-decoration: none; cursor: pointer;
  background: var(--btn-bg); color: var(--btn-fg);
  box-shadow: 0 6px 18px -10px rgba(10, 20, 14, .55);
  transition: transform .15s ease, background-color .2s ease, box-shadow .2s ease;
}
.btn:hover { background: color-mix(in srgb, var(--btn-bg) 86%, #000); color: var(--btn-fg); }
.btn:active { transform: scale(0.97); }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }
.btn-light { --btn-bg: var(--cream); --btn-fg: var(--forest); }
.btn-leaf { --btn-bg: var(--leaf-2); --btn-fg: var(--forest); }
.btn-sand { --btn-bg: var(--btn2-bg); --btn-fg: var(--btn2-fg); }
.hero .btn:not(.btn-light):not(.btn-leaf) { --btn-bg: var(--moss); --btn-fg: #ffffff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: var(--demo-h, 0px); z-index: 50; background: var(--white); box-shadow: 0 1px 0 rgba(27, 33, 28, .08); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; }
.brand img { width: 27px; height: 40px; }
.brand span { font: 500 1.3rem/1 var(--serif); letter-spacing: -0.01em; }
.main-nav { display: none; }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 4px; font-weight: 500; white-space: nowrap; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--grass); text-decoration: underline; text-decoration-thickness: 2px; }
.header-cta { display: none; }
.lang { display: flex; gap: 2px; font-size: 0.875rem; font-weight: 600; }
.lang a { color: var(--ink-soft); text-decoration: none; padding: 8px 6px; border-radius: 6px; }
.lang a[aria-current="true"] { color: var(--ink); background: var(--sage); }
.menu-btn { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); cursor: pointer; }
.menu-btn svg { width: 22px; height: 22px; }
.mobile-nav { display: none; background: var(--white); padding: 8px var(--gutter) 24px; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: 12px 0; font: 500 1.35rem/1.2 var(--serif); color: var(--ink); text-decoration: none; }
.mobile-nav .lang { margin-top: 12px; font-size: 1rem; }
@media (min-width: 1240px) {   /* 7 menu items (with FAQ) + ball logo + language + button need ~1220px (Portuguese) */
  .main-nav { display: flex; gap: 14px; }
  .header-cta { display: inline-flex; min-height: 44px; }
  .menu-btn, .mobile-nav, .mobile-nav.open { display: none; }
}

/* ---------- Hero (home) ---------- */
.hero { position: relative; color: var(--cream); background: var(--forest); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.hero-media::after { /* scrim under text, tinted from the forest green */
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(14,32,24,0) 12%, rgba(14,32,24,.52) 46%, rgba(14,32,24,.88) 84%);
}
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; min-height: calc(100svh - 64px - var(--bar-h) - var(--demo-h, 0px)); padding-top: 32vh; padding-bottom: calc(28px + var(--cut)); }
.hero h1 { margin-bottom: 0.25em; }
.hero .lead { margin-bottom: 20px; }
.hero .btn-row .btn { flex: 1 1 auto; }
.open-status { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: var(--s-small); }
.open-status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #c3cbbf; flex: none; }
.open-status[data-open="true"]::before { background: var(--leaf-2); }
@media (max-height: 700px) and (max-width: 767px) {
  .hero-inner { padding-top: 20vh; }
  .hero h1 { font-size: 2.45rem; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 14px; }
  .open-status { margin-top: 12px; }
}
@media (min-width: 768px) {
  .hero-inner { padding-bottom: calc(56px + var(--cut)); }
  .hero .btn-row .btn { flex: 0 0 auto; }
}

/* ---------- Page hero (inner pages): green field, photo set at an angle over a clay slab ---------- */
.page-hero { position: relative; padding: clamp(40px, 7vw, 104px) 0 calc(clamp(40px, 6vw, 88px) + var(--cut)); }
.page-hero:has(+ nav) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--cut)), 0 100%); }
.page-hero .wrap { display: grid; gap: 36px; align-items: end; }
.page-hero .lead { margin: 0; }
.page-hero-img { position: relative; margin: 0 6px; }
.page-hero-img::before { content: ""; position: absolute; inset: 0; background: var(--moss); transform: rotate(3deg) translate(10px, 8px); }
.page-hero-img img { position: relative; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transform: rotate(-1.6deg); box-shadow: 0 18px 40px -22px rgba(0,0,0,.6); }
@media (min-width: 900px) {
  .page-hero .wrap { grid-template-columns: 1.1fr 1fr; gap: 64px; }
  .page-hero-img::before { transform: rotate(3.5deg) translate(18px, 14px); }
  .page-hero-img img { transform: rotate(-2.2deg); }
}

/* ---------- Home: services mosaic ---------- */
.svc-head { display: grid; gap: 12px; margin-bottom: 40px; }
@media (min-width: 900px) { .svc-head { grid-template-columns: 1fr 1fr; align-items: end; gap: 56px; } .svc-head p { margin: 0; } }
.mosaic { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.tile { position: relative; display: block; overflow: hidden; color: var(--cream); text-decoration: none; background: var(--forest-2); }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14,32,24,0) 38%, rgba(14,32,24,.82) 100%); }
.tile-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 20px; z-index: 1; }
.tile h3 { margin: 0 0 4px; color: var(--cream); }
.tile p { margin: 0; font-size: var(--s-small); max-width: 36ch; }
.tile:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.15em; }
@media (min-width: 640px) { .mosaic { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .mosaic li:nth-child(1), .mosaic li:nth-child(2) { grid-column: span 6; }
  .mosaic li:nth-child(n+3) { grid-column: span 3; }
  .mosaic li:nth-child(1) img, .mosaic li:nth-child(2) img { aspect-ratio: 16 / 10; }
  .mosaic li:nth-child(n+3) img { aspect-ratio: 3 / 4; }
  .mosaic li:nth-child(2), .mosaic li:nth-child(4), .mosaic li:nth-child(6) { margin-top: 40px; }   /* terraces */
}

/* ---------- Home: history teaser — photo tilted over a clay slab, text panel overlapping ---------- */
.story { display: grid; gap: 40px; align-items: center; }
.story blockquote { margin: 0; font: 400 clamp(1.4rem, 1.1rem + 1.3vw, 2.2rem)/1.3 var(--serif); letter-spacing: -0.01em; max-width: 30ch; }
.story > img, .story-photo { position: relative; }
.story > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transform: rotate(2deg); box-shadow: 18px 22px 0 -2px var(--moss), 0 24px 50px -26px rgba(0,0,0,.55); }
@media (min-width: 900px) {
  .story { grid-template-columns: 1.25fr 1fr; gap: 0; }
  .story > div { position: relative; z-index: 1; background: var(--white); padding: clamp(28px, 3.5vw, 56px); margin-right: -64px; transform: rotate(-1deg); box-shadow: 0 24px 60px -30px rgba(0,0,0,.45); }
  .story > div > * { transform: rotate(1deg); }
  .story > img { max-width: 520px; justify-self: end; }
}

/* ---------- Locations ---------- */
.locs { display: grid; gap: 48px; }
.loc { min-width: 0; }
.loc h3 { font-size: clamp(1.8rem, 1.4rem + 1.6vw, 2.8rem); margin-bottom: 0.3em; }
.loc address { font-style: normal; margin-bottom: 16px; max-width: 42ch; }
.loc dl { margin: 0 0 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 16px; }
.loc dt { font-weight: 600; }
.loc dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 479px) { .loc dl { grid-template-columns: minmax(0, 1fr); } .loc dd + dt { margin-top: 8px; } }
.book > *, .locs > * { min-width: 0; }
.field select { max-width: 100%; text-overflow: ellipsis; }
.site-footer a[href^="mailto:"] { overflow-wrap: anywhere; }
.loc .btn-row { margin-top: 8px; }
.hours { margin: 0 0 18px; padding: 0; list-style: none; }
.hours li { display: flex; justify-content: space-between; gap: 16px; max-width: 360px; padding: 3px 0; }
@media (min-width: 900px) {
  .locs { grid-template-columns: 1fr 1fr; gap: 0; }
  .locs > .loc:first-child { padding-right: 64px; }
  .locs > .loc + .loc { padding-left: 64px; position: relative; }
  .locs > .loc + .loc::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--rule); opacity: .45; transform: skewX(-6deg); }
}
.map-embed { width: 100%; aspect-ratio: 4 / 3; border: 0; background: var(--sage); margin-top: 20px; }

/* ---------- Gallery strip & gallery ---------- */
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 72%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--gutter) 8px; margin: 0; list-style: none; scrollbar-width: thin; }
.strip li { scroll-snap-align: start; }
.strip li:nth-child(even) { margin-top: 28px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 768px) { .strip { grid-auto-columns: 34%; } }
@media (min-width: 1200px) { .strip { grid-auto-columns: 24%; } }
.strip-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.strip-head h2 { margin: 0; }
.gallery { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); list-style: none; padding: 0; margin: 0; }
.gallery button { display: block; width: 100%; padding: 0; border: 0; background: var(--sage); cursor: zoom-in; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
@media (hover: hover) and (pointer: fine) {
  .gallery img { transition: transform 1s cubic-bezier(0.23, 1, 0.32, 1); }
  .gallery button:hover img { transform: scale(1.04); }
}
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .gallery { grid-template-columns: repeat(4, 1fr); } }
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(10,22,16,.95); display: none; align-items: center; justify-content: center; padding: 56px 12px; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 1100px; width: 100%; text-align: center; color: var(--cream); }
.lightbox img { max-height: 78vh; width: auto; margin: 0 auto; }
.lightbox figcaption { margin-top: 12px; font-size: var(--s-small); }
.lb-btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--cream); color: var(--forest); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.lb-close { top: 12px; right: 12px; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }

/* ---------- Services page: each service is its own field (sand → green → clay) ---------- */
.svc-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px var(--gutter) calc(14px + var(--cut)); margin: 0; list-style: none; }
.svc-nav a { display: inline-block; white-space: nowrap; padding: 10px 16px; border-radius: 999px; background: var(--sage); color: var(--ink); text-decoration: none; font-weight: 500; }
.svc-nav a:hover { background: var(--sage-2); }
.svc { --pt: var(--section); padding: var(--section) 0; background: var(--bg); color: var(--fg); }
main > section.svc:nth-of-type(3n+2) { --bg: var(--white); }
main > section.svc:nth-of-type(3n) { --bg: var(--mist); --chip: var(--sage); --slab: var(--sage); --btn2-bg: var(--sage); }
main > section.svc:nth-of-type(3n+1) {
  --bg: var(--moss); --fg: #ffffff; --muted: #ecf5e6; --link: #ffffff;
  --btn-bg: var(--white); --btn-fg: var(--forest); --btn2-bg: var(--sage); --btn2-fg: var(--ink);
  --chip: #356c33; --slab: #356c33; --rule: var(--leaf-2); --accent: #ffffff;
}
.svc-intro { display: grid; gap: 32px; margin-bottom: 40px; }
.svc-intro img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; box-shadow: 14px 16px 0 -2px var(--slab), 0 22px 48px -28px rgba(0,0,0,.6); transform: rotate(1.2deg); }
.svc-intro.flip img { transform: rotate(-1.2deg); box-shadow: -14px 16px 0 -2px var(--slab), 0 22px 48px -28px rgba(0,0,0,.6); }
@media (min-width: 900px) { .svc-intro { grid-template-columns: 1fr 1fr; gap: 72px; align-items: start; } .svc-intro.flip > :first-child { order: 2; } }
.svc-body { columns: 1; }
.svc-cols { display: grid; gap: 28px 56px; }
@media (min-width: 900px) { .svc-cols { grid-template-columns: 1fr 1fr; } .svc-cols.three { grid-template-columns: repeat(3, 1fr); } }
.svc-cols h3 { margin-bottom: 0.35em; }
.svc-cols ul { margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 24px; }
.tags li { background: var(--chip); padding: 8px 14px; border-radius: 999px; font-size: var(--s-small); }
.svc-cta { margin-top: 40px; }
.svc h4 { font: 600 1.05rem/1.3 var(--sans); margin: 0 0 4px; }
.pair { display: grid; gap: 12px; margin-top: 28px; }
.pair img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (min-width: 640px) { .pair { grid-template-columns: 1fr 1fr; } .pair img:last-child { margin-top: 32px; } }

/* ---------- Prices ---------- */
.price-groups { display: grid; gap: 48px; }
@media (min-width: 1000px) { .price-groups { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.price-group h2 { font-size: var(--s-h3); padding-bottom: 10px; border-bottom: 3px solid var(--moss); }
.price-list { margin: 0; padding: 0; list-style: none; }
.price-list li { display: grid; grid-template-columns: 1fr auto 40px; align-items: center; gap: 12px; padding: 10px 8px 10px 14px; }
.price-list li:nth-child(odd) { background: var(--chip); }
.price-list .precio { font-weight: 600; white-space: nowrap; color: var(--link); text-align: right; font-variant-numeric: tabular-nums; }
.price-foot { margin-top: 40px; }
.pl-name small { display: block; font-size: 0.8125rem; line-height: 1.35; margin-top: 2px; }
.pl-tag { color: var(--accent); font-weight: 600; }
.pl-note { color: var(--muted); }
.precio-text { white-space: normal !important; max-width: 15ch; font-size: var(--s-small); line-height: 1.3; }
.row-wa { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: var(--link); }
.row-wa:hover { background: var(--bg); }
.row-wa svg { width: 20px; height: 20px; }

/* ---------- Sumpango ---------- */
.trio { display: grid; gap: 28px; list-style: none; padding: 0; margin: 0; }
.trio h3 { font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem); margin-bottom: 0.2em; color: var(--accent); }
.trio p { margin: 0; }
@media (min-width: 900px) { .trio { grid-template-columns: repeat(3, 1fr); gap: 48px; } }
.programs { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 28px 0; }
.programs li { background: var(--forest); color: var(--cream); padding: 22px 16px; text-align: center; clip-path: polygon(0 8%, 100% 0, 100% 92%, 0 100%); }
.programs strong { display: block; font: 500 clamp(2.6rem, 2rem + 3vw, 4.8rem)/1 var(--serif); color: var(--leaf-2); }
.goals { display: grid; gap: 10px 40px; padding-left: 1.2em; }
@media (min-width: 768px) { .goals { grid-template-columns: 1fr 1fr; } }
.split { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split.flip > :first-child { order: 2; } }
.split img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; transform: rotate(-1.2deg); box-shadow: 14px 16px 0 -2px var(--slab); }
.photo-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; }
.photo-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.photo-row li:nth-child(even) { margin-top: 28px; }
@media (min-width: 900px) { .photo-row { grid-template-columns: repeat(4, 1fr); } .photo-row-3 { grid-template-columns: repeat(3, 1fr); } }
.photo-row-3 li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.photo-row-3 li:last-child:nth-child(odd) img { aspect-ratio: 16 / 9; }
@media (min-width: 900px) { .photo-row-3 li:last-child:nth-child(odd) { grid-column: auto; } .photo-row-3 li:last-child:nth-child(odd) img { aspect-ratio: 3 / 4; } }

/* ---------- Sumpango, update 9: greener page built from boxes and bands ---------- */
:root { --leaf-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 2.5C11.5 2.5 4.5 6.8 4.5 14.6c0 1.6.4 3 1.2 4.2L2.8 21.7l1.5 1.5 2.9-2.9c1.2.8 2.7 1.2 4.3 1.2 8.2 0 9.5-9.6 9.5-19zM8.6 18.3c1.4-4.6 4.4-8.2 9-10.8-3.6 3.2-6 6.6-7.3 11.1z'/%3E%3C/svg%3E"); }
.lp-points li, .goal-cards li { position: relative; }
.lp-points li::before, .goal-cards li::before { content: ""; position: absolute; width: 22px; height: 22px; background: var(--leaf-c, var(--grass));
  -webkit-mask: var(--leaf-icon) center / contain no-repeat; mask: var(--leaf-icon) center / contain no-repeat; }

/* Mente, cuerpo, alma: three cards on the forest field */
.trio-cards li { background: var(--forest-2); border: 1px solid rgba(169, 207, 108, .28); border-radius: 14px; padding: clamp(22px, 3vw, 34px); }
.trio-cards h3 { color: var(--leaf-2); }
.trio-cards p { color: var(--cream); }

/* Nuestros programas: mist intro with a moss accent line */
.intro-moss { border-left: 4px solid var(--moss); padding-left: clamp(16px, 2.5vw, 28px); margin-bottom: 36px; }
.intro-moss h2 { margin-bottom: .3em; }
.intro-moss .lead { margin: 0; }

/* The framed panel with the living background (pine forest, Ken Burns, drifting light).
   Contrast: the --lp-* values below are read by check.py, which works out the brightest possible
   background under the text (white sun in the photo, lightest scrim, a light blob, a tile) and needs ≥ 4.5:1. */
.live-panel { --lp-scrim-a: .9; --lp-scrim-b: .82; --lp-photo: .78; --lp-blob: .15; --lp-tile: .08;
  position: relative; overflow: hidden; isolation: isolate; border: 1px solid var(--leaf-2); border-radius: 22px;
  padding: clamp(26px, 5vw, 64px); color: #ffffff; background: var(--forest); }
.lp-bg { position: absolute; inset: 0; z-index: -3; }
.lp-bg picture, .lp-bg img { width: 100%; height: 100%; object-fit: cover; }
.lp-bg img { filter: brightness(var(--lp-photo)); transform-origin: 60% 40%; will-change: transform; }
.live-panel::before { content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(160deg, rgba(22, 50, 38, var(--lp-scrim-a)) 0%, rgba(31, 69, 54, var(--lp-scrim-b)) 100%); }
.lp-blob { position: absolute; z-index: -1; width: 46%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--leaf-2) 0%, var(--leaf) 45%, transparent 70%); filter: blur(48px); opacity: var(--lp-blob); }
.lp-blob.b1 { left: -12%; top: -20%; }
.lp-blob.b2 { right: -10%; top: 20%; width: 38%; }
.lp-blob.b3 { left: 30%; bottom: -30%; width: 42%; }
.lp-title { font: 500 clamp(1.35rem, 1.1rem + 1vw, 2rem)/1.25 var(--serif); max-width: 32ch; margin: 0 0 clamp(20px, 3vw, 32px); }
.lp-points { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 768px) { .lp-points { grid-template-columns: 1fr 1fr; gap: 16px; } }
.lp-points li { --leaf-c: var(--leaf-2); background: rgba(255, 255, 255, var(--lp-tile)); border: 1px solid rgba(255, 255, 255, .2); border-radius: 14px;
  padding: 16px 18px 16px 52px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lp-points li::before { left: 18px; top: 17px; }
@media (prefers-reduced-motion: no-preference) {
  .lp-bg img { animation: lp-kb 20s ease-in-out infinite alternate; }
  .lp-blob.b1 { animation: lp-drift-1 26s ease-in-out infinite alternate; }
  .lp-blob.b2 { animation: lp-drift-2 32s ease-in-out infinite alternate; }
  .lp-blob.b3 { animation: lp-drift-3 38s ease-in-out infinite alternate; }
  .live-panel:not(.is-live) .lp-bg img, .live-panel:not(.is-live) .lp-blob { animation-play-state: paused; }   /* site.js: off-screen or hidden tab */
}
@keyframes lp-kb { from { transform: scale(1) translate3d(0, 0, 0); } to { transform: scale(1.08) translate3d(-2%, -1.5%, 0); } }
@keyframes lp-drift-1 { to { transform: translate3d(28%, 18%, 0); } }
@keyframes lp-drift-2 { to { transform: translate3d(-24%, 22%, 0); } }
@keyframes lp-drift-3 { to { transform: translate3d(-18%, -26%, 0); } }

/* 7 / 14 / 21: forest, moss, grass */
.programs li:nth-child(2) { background: var(--moss); color: #ffffff; }
.programs li:nth-child(3) { background: var(--grass); color: #ffffff; }
.programs li:nth-child(n+2) strong { color: #ffffff; }   /* leaf-2 is too light on moss and grass */

/* Program goals: sage cards with a leaf */
.goals.goal-cards { list-style: none; padding: 0; gap: 12px; margin: 20px 0 0; }
@media (min-width: 768px) { .goals.goal-cards { gap: 16px; } }
.goal-cards li { background: var(--sage); color: var(--ink); border-radius: 14px; padding: 16px 18px 16px 52px; }
.goal-cards li::before { left: 18px; top: 17px; }

/* "Donde hay esperanza, hay salud": moss band */
.hope-quote { font: 400 clamp(1.6rem, 1.2rem + 2vw, 3rem)/1.2 var(--serif); letter-spacing: -0.015em; color: #ffffff; max-width: 26ch; margin: 0 0 28px; }
.hope-quote strong { display: block; font-weight: 500; margin-top: .25em; }

/* Las instalaciones: captions on sage chips */
.photo-row li { position: relative; }
.cap-chip { position: absolute; left: 10px; bottom: 10px; background: var(--sage); color: var(--ink); font-size: var(--s-small); font-weight: 600;
  line-height: 1.2; padding: 5px 11px; border-radius: 999px; max-width: calc(100% - 20px); }

/* Mission and vision: two boxes on the forest field */
.mv-boxes > div { color: var(--ink); --fg: var(--ink); --link: var(--grass); padding: clamp(24px, 3.5vw, 44px); border-radius: 14px; }
.mv-boxes > div:first-child { background: var(--sage); }
.mv-boxes > div:last-child { background: var(--mist); border-top: 5px solid var(--grass); }
.mv-boxes h3 { color: var(--forest); }
.mv-boxes p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .mv.mv-boxes { gap: 28px; } }

/* ---------- October 2025 shoot (update 9) ---------- */
.moves picture img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; margin-bottom: 14px; }   /* /servicios: the six massage movements */
.svc-intro picture img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.loc-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: -4px 0 20px; max-width: 460px; }   /* home: restaurant and store */
.loc-photos img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.photo-row-2 { grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .photo-row-2 { grid-template-columns: 1fr 1fr; } .photo-row-2 img { aspect-ratio: 4 / 3; } }
.pkg picture { display: block; }
.band-media picture { display: block; height: 100%; }   /* responsive photo in a band: fill the band, not its own height */
.tile picture, .mosaic picture { display: contents; }

/* Cómo llegar y contacto: the location cards on a moss field */
.loc-field { border-radius: 22px; padding: clamp(24px, 4vw, 56px); margin-top: 32px; }

/* ---------- Generic blocks ---------- */
.mv { display: grid; gap: 40px; }
@media (min-width: 900px) { .mv { grid-template-columns: 1fr 1fr; gap: 72px; } }
.prose h2 { margin-top: 1.2em; }
.prose h2:first-child { margin-top: 0; }
.bio { display: grid; gap: 32px; align-items: start; }
.bio > img { width: 100%; max-width: 420px; transform: rotate(-1.5deg); box-shadow: 14px 16px 0 -2px var(--slab), 0 22px 48px -28px rgba(0,0,0,.55); }
.bio > img.crest { transform: none; box-shadow: none; max-width: 300px; margin: 0 auto; filter: drop-shadow(0 18px 30px rgba(20, 40, 28, .16)); }
@media (min-width: 900px) { .bio { grid-template-columns: 360px 1fr; gap: 72px; } }
.bio-wide { align-items: center; }
.bio-wide > img { max-width: none; aspect-ratio: 3 / 2; object-fit: cover; }
@media (min-width: 900px) { .bio-wide { grid-template-columns: 1.3fr 1fr; } }
.gen-of { color: var(--bark); font-size: var(--s-small); margin: -0.3em 0 0.8em; }
.feature { display: grid; gap: 24px; padding: clamp(48px, 7vw, 112px) 0; align-items: center; }
.feature + .feature { padding-top: 0; }
.feature img { width: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
@media (min-width: 900px) { .feature { grid-template-columns: 1fr 1fr; gap: 64px; } .feature:nth-child(even) > :first-child { order: 2; } }
.video-btn { position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-btn img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; opacity: .85; }
.video-btn span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 10px; background: var(--cream); color: var(--forest); padding: 14px 22px; border-radius: 999px; font-weight: 600; }
.video-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }
.rec-group + .rec-group { margin-top: var(--section); }
.recs { display: grid; gap: 14px; list-style: none; padding: 0; margin: 0; }
.recs li { background: var(--sage); padding: 24px; border-top: 4px solid var(--moss); }
.recs h3 { margin-bottom: 0.4em; }
.recs p { margin: 0 0 6px; }
@media (min-width: 768px) { .recs { grid-template-columns: 1fr 1fr; } }

/* ---------- Booking form ---------- */
.book { display: grid; gap: 56px; }
@media (min-width: 1000px) { .book { grid-template-columns: 1.25fr 1fr; gap: 72px; align-items: start; } }
.form { display: grid; gap: 18px; background: var(--mist); padding: clamp(20px, 4vw, 40px); border-top: 6px solid var(--grass); }
.field { display: grid; gap: 6px; }
.field label, .field legend { font-weight: 600; }
.field .hint { font-size: var(--s-small); color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); caret-color: var(--grass);
  background: #ffffff; border: 1.5px solid #6f8a6b; border-radius: 8px;
}
.field input::placeholder { color: #5b6a5d; }
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--forest-2); outline-offset: 1px; border-color: var(--forest-2); }
.field-row { display: grid; gap: 18px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radios { display: flex; flex-wrap: wrap; gap: 10px; }
.radios label { display: flex; align-items: center; gap: 8px; background: #ffffff; padding: 10px 16px; border-radius: 999px; font-weight: 500; cursor: pointer; }
.radios input { width: 20px; height: 20px; min-height: 0; accent-color: var(--forest-2); }
.req { color: var(--danger); }
.error { color: var(--danger); font-size: var(--s-small); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { padding: 20px; background: var(--forest); color: var(--cream); }
.form-msg a { color: var(--cream); }
.form-msg h2 { font-size: var(--s-h3); }
.form-msg.err { background: #fbe9e7; color: var(--ink); }
.form-msg.err a { color: var(--forest-2); }
.form-msg .btn-row { margin-top: 12px; }

/* ---------- Footer: sand field, the Mundo Natural logo next to the name ---------- */
.site-footer { background: var(--forest); color: var(--cream); padding: calc(clamp(56px, 8vw, 112px) + var(--cut)) 0 40px; --link: var(--cream); }
.site-footer a { color: var(--cream); }
.foot-brand { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 36px; margin: 0 0 48px; padding-bottom: 36px; border-bottom: 1px solid rgba(247,250,243,.2); }
.foot-brand img { width: clamp(200px, 30vw, 320px); height: auto; }
.foot-name { font: 500 clamp(2rem, 1.3rem + 3vw, 4rem)/0.98 var(--serif); letter-spacing: -0.035em; margin: 0; }
.foot-name span { display: block; font-size: 0.5em; letter-spacing: -0.01em; color: var(--leaf-2); margin-top: 0.2em; }
.foot-tag { margin: 6px 0 0; color: #cbd8c6; }
.foot-grid { display: grid; gap: 36px; }
.foot-grid h2 { font-size: 1.35rem; margin-bottom: 0.5em; color: var(--leaf-2); }
.foot-grid p, .foot-grid ul { margin: 0 0 8px; font-size: var(--s-small); }
.foot-grid ul { list-style: none; padding: 0; }
.foot-grid li { padding: 3px 0; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .foot-grid { grid-template-columns: 1.2fr 1.2fr 1fr 0.8fr; } }
.foot-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; font-size: 0.875rem; }
.site-footer .lang a { color: var(--cream); }
.site-footer .lang a[aria-current="true"] { background: var(--forest-2); }
.site-footer .place { font-size: var(--s-small); margin-bottom: 8px; }

/* ---------- Sticky bar (phones) ---------- */
.sticky-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: auto auto minmax(0, 1fr); background: var(--forest); padding: 5px 5px calc(5px + env(safe-area-inset-bottom)); gap: 4px; }
.sticky-bar a { display: flex; align-items: center; justify-content: center; gap: 5px; min-width: 0; min-height: 46px; padding: 0 9px; color: var(--cream); text-decoration: none; font-weight: 600; font-size: 0.875rem; line-height: 1.15; text-align: center; border-radius: 999px; }
@media (max-width: 380px) { .sticky-bar a { font-size: 0.84rem; padding: 0 7px; } }
.sticky-bar a:last-child { background: var(--leaf-2); color: var(--forest); }
.sticky-bar svg { width: 18px; height: 18px; }
@media (max-width: 767px) { :root { --bar-h: 58px; } }
@media (min-width: 768px) { .sticky-bar { display: none; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; display: grid; align-content: center; gap: 32px; }
.nf-langs { display: grid; gap: 28px; }
@media (min-width: 900px) { .nf-langs { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Locations: name, address, Waze · Google Maps ---------- */
.loc-pre { display: block; font-size: 0.42em; letter-spacing: 0; line-height: 1.3; margin-bottom: 0.15em; }
.place { font-style: normal; display: grid; gap: 6px; margin: 0 0 18px; max-width: 46ch; }
.place-links a { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; }
.place-links a:hover { text-decoration-thickness: 2px; }
.loc-extra { font-size: var(--s-small); }

/* ---------- Packages ---------- */
.pkgs { display: grid; gap: 20px; list-style: none; padding: 0; margin: 0; }
@media (min-width: 900px) { .pkgs { grid-template-columns: 1fr 1fr; gap: 32px; } .pkgs > li:nth-child(2) { margin-top: 56px; } }
.pkg { background: var(--chip); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.pkg img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; clip-path: polygon(0 0, 100% 0, 100% 88%, 0 100%); }
.pkg-body { padding: clamp(20px, 3vw, 36px); padding-top: 12px; }
.pkg h2, .pkg h3 { font-size: clamp(1.7rem, 1.3rem + 1.5vw, 2.6rem); margin-bottom: 0.2em; }
.pkg-price, p.pkg-price { font: 500 1.3rem/1.3 var(--serif); margin: 0.6em 0 0.2em; }
.pkg .btn-row { margin-top: 18px; }
.svc-cta.btn-row { gap: 10px; }

/* ---------- Timeline (history) ---------- */
.timeline { position: relative; list-style: none; margin: 28px 0; padding: 0 0 0 28px; display: grid; gap: 22px; }
.timeline li { position: relative; }
.timeline li::before { content: ""; position: absolute; left: -28px; top: 0.85em; width: 11px; height: 11px; margin-left: -5px; background: var(--rule); transform: rotate(45deg); }
.timeline strong { display: block; font: 500 clamp(2.2rem, 1.7rem + 2.2vw, 3.8rem)/1 var(--serif); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; color: var(--bark); }
.on-green .timeline strong { color: var(--cream); }
.timeline span { font-size: var(--s-small); display: block; max-width: 40ch; }
.tl-line { position: absolute; left: 0; top: 0.85em; bottom: 0; width: 1.5px; margin-left: -0.75px; background: var(--rule); transform-origin: top; }
.timeline-v { gap: 28px; }
.timeline-v strong { font-size: clamp(1.9rem, 1.5rem + 1.6vw, 3rem); }
@media (min-width: 900px) {
  .timeline-v { padding-left: 40px; }
  .timeline-v li::before { left: -40px; }
  .timeline-v li { display: grid; grid-template-columns: 9ch 1fr; gap: 24px; align-items: baseline; }
  .timeline:not(.timeline-v) { padding: 30px 0 0; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 24px; }
  .timeline:not(.timeline-v) li::before { left: 0; top: -30px; margin: -5px 0 0; }
  .timeline:not(.timeline-v) .tl-line { left: 0; right: 0; top: 0; bottom: auto; width: auto; height: 1.5px; margin: -0.75px 0 0; transform-origin: left; }
}

/* ---------- Generations, founder ---------- */
.gens { display: grid; gap: 32px; list-style: none; padding: 0; margin: 36px 0 0; }
@media (min-width: 900px) { .gens { grid-template-columns: repeat(3, 1fr); gap: 56px; } }
/* one portrait per generation, all in the same frame (as the other Nosotros portraits): tilt over an offset slab */
.gen-photo { margin: 0 0 18px; }
.gen-photo img { width: calc(100% - 16px); max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; transform: rotate(-1.5deg);
  box-shadow: 14px 16px 0 -2px var(--slab), 0 22px 48px -28px rgba(0,0,0,.55); }
.gen-photo figcaption { margin-top: 26px; font: 400 clamp(1.15rem, 1.05rem + 0.4vw, 1.35rem)/1.3 var(--serif); color: var(--muted); text-wrap: balance; }
.gen-photo figcaption h3 { display: inline; margin: 0; font: inherit; font-weight: 500; letter-spacing: -0.01em; color: var(--fg); }
.gens li:has(.gen-photo) { border-top: 0; padding-top: 0; }
.gens li:has(.gen-photo) .gen-of { border-top: 3px solid var(--moss); padding-top: 12px; margin-top: 4px; }
.gens li { border-top: 3px solid var(--moss); padding-top: 18px; }
.gen-name { font-weight: 600; margin-bottom: 4px; }
.founder { margin: 36px 0 8px; max-width: 320px; }
/* same frame as the other Nosotros portraits (.bio > img): slight tilt over an offset slab */
.founder img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; transform: rotate(-1.5deg); box-shadow: 14px 16px 0 -2px var(--slab), 0 22px 48px -28px rgba(0,0,0,.55); }
.founder figcaption { margin-top: 24px; font: 500 1.1rem/1.3 var(--serif); }

/* ---------- Courtyard band (home): full-bleed photo under a green-to-clay colour wash ---------- */
.band { --pt: 0px; position: relative; height: clamp(360px, 66vh, 720px); overflow: hidden; background: var(--forest); color: var(--cream); }
.band-media { position: absolute; inset: -12% 0; }
.band-media img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.band::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, rgba(14,32,24,.86) 0%, rgba(14,32,24,.55) 42%, rgba(61,122,58,.22) 100%),
              linear-gradient(180deg, rgba(14,32,24,0) 50%, rgba(14,32,24,.55) 100%); }
.band-text { position: absolute; left: 0; right: 0; bottom: calc(clamp(24px, 4vw, 64px) + var(--cut)); z-index: 1; }
.band-text p { font: 400 clamp(1.5rem, 1.1rem + 1.6vw, 2.6rem)/1.22 var(--serif); max-width: 24ch; margin: 0; }
main > .band + section { clip-path: polygon(0 0, 100% var(--cut), 100% 100%, 0 100%); }

/* ---------- Reviews, social, booking extras ---------- */
.reviews h2 { margin-bottom: 0.3em; color: var(--forest); }   /* white band, forest heading, sage chips (btn-sand) */
.rev-line { font: 400 clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem)/1.3 var(--serif); margin-bottom: 20px; }
.social { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 12px 0; }
.social a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; }
.social svg { width: 22px; height: 22px; }
.book-extra { margin-top: 40px; }
.book-extra h2 { font-size: var(--s-h3); margin-bottom: 0.2em; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--sage-2); }
.faq summary { cursor: pointer; padding: 18px 0; font: 500 clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem)/1.3 var(--serif); }
.faq .faq-a { padding: 0 0 20px; }

/* ---------- Closed-date notice (filled by site.js from config.js) ---------- */
.notice { background: var(--moss); color: #ffffff; font-weight: 600; font-size: var(--s-small); }
.notice .wrap { padding-top: 10px; padding-bottom: 10px; }
.notice p { margin: 0; max-width: none; }

/* ---------- Leaf line between sections (decorative) ---------- */
.vine { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); height: 56px; color: var(--forest-3); }
.vine svg { display: block; width: 100%; height: 100%; overflow: visible; }
.vine path { fill: none; stroke: currentColor; stroke-width: 1.25; vector-effect: non-scaling-stroke; opacity: .6; stroke-linecap: round; }

/* ---------- Sauna mist: soft haze drifting over the photo, never over text ---------- */
.mist { position: relative; overflow: hidden; }
.mist::before, .mist::after {
  content: ""; position: absolute; inset: -20% -40%; pointer-events: none;
  background: radial-gradient(ellipse 38% 30% at 30% 45%, rgba(255,255,255,.34), rgba(255,255,255,0) 70%),
              radial-gradient(ellipse 30% 24% at 72% 62%, rgba(255,255,255,.26), rgba(255,255,255,0) 70%);
  animation: mist-a 22s ease-in-out infinite alternate paused;
}
.mist::after { opacity: .7; animation-name: mist-b; animation-duration: 31s; }
.mist.live::before, .mist.live::after { animation-play-state: running; }
.mist-top::before, .mist-top::after { -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 62%); mask-image: linear-gradient(180deg, #000 30%, transparent 62%); }
@keyframes mist-a { from { transform: translate3d(-9%, 2%, 0); } to { transform: translate3d(9%, -3%, 0); } }
@keyframes mist-b { from { transform: translate3d(8%, -2%, 0) scale(1.1); } to { transform: translate3d(-8%, 3%, 0) scale(1); } }
@media (max-width: 767px) { .mist::after { display: none; } }

/* ---------- Hero: slideshow and headline ---------- */
.hero-media .slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-in-out); }
.hero-media .slide.is-on { opacity: 1; }
.hero-media.playing .slide.is-on { animation: hero-zoom 7s linear both; }
.hero-media.playing .slide.is-leaving { opacity: 0; transform: scale(var(--zoom)); }
@keyframes hero-zoom { from { transform: scale(1); } to { transform: scale(var(--zoom)); } }
.h-line { display: inline-block; animation: hero-line 1s var(--ease-out) both; }
.h-line + .h-line { animation-delay: .16s; }
@keyframes hero-line { from { opacity: .45; filter: blur(8px); transform: translateY(.12em); } to { opacity: 1; filter: blur(0); transform: none; } }

/* ---------- Motion system: two-way scroll reveal ----------
   Content is visible by default. site.js marks blocks with .rv / .cv / .words / .vine-rv and toggles .in:
   on when a block enters the screen (from below OR from above), off once it has fully left,
   so it plays again next time. --dir is 1 when it will come in from below, -1 from above.
   Prices, the booking form and the Solicitar cita / WhatsApp / Llamar buttons are never marked. */
:root { --ease-out: cubic-bezier(0.23, 1, 0.32, 1); --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1); --zoom: 1.08; --rv: 28px; }
@media (max-width: 767px) { :root { --zoom: 1.04; --rv: 14px; } }
.rv.in { transition: opacity .8s var(--ease-out) var(--d, 0s), transform .9s var(--ease-out) var(--d, 0s); }
.rv:not(.in) { opacity: 0; transform: translate3d(0, calc(var(--dir, 1) * var(--rv)), 0); }
.cv.in { transition: clip-path 1s var(--ease-out), opacity .6s var(--ease-out); }
.cv:not(.in) { clip-path: inset(0 0 100% 0); opacity: .2; }
.cv[data-from="above"]:not(.in) { clip-path: inset(100% 0 0 0); }
.words .w { display: inline-block; }
.words.in .w { transition: opacity .7s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i) * 55ms); }
.words:not(.in) .w { opacity: 0; transform: translateY(calc(var(--dir, 1) * .45em)); }
.vine-rv.in svg { transition: clip-path 1.1s var(--ease-out); }
.vine-rv:not(.in) svg { clip-path: inset(0 100% 0 0); }
@media (max-width: 767px) {
  .rv.in { transition-duration: .55s, .6s; }
  .cv.in { transition-duration: .7s, .5s; }
}

/* Desktop hover: the card lifts a little, its photo zooms in slowly */
@media (hover: hover) and (pointer: fine) {
  .tile { transition: transform .6s var(--ease-out); }
  .tile:hover { transform: translateY(-6px); }
  .tile img, .pkg img { transition: transform 1s var(--ease-out); }
  .tile:hover img, .pkg:hover img { transform: scale(1.05); }
  .btn:hover { box-shadow: 0 10px 24px -12px rgba(10, 20, 14, .6); }
}

/* Soft fade between pages (browsers without View Transitions just change page) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .6s var(--ease-out) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-out) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
.site-header { view-transition-name: site-header; }
.sticky-bar { view-transition-name: sticky-bar; }

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .cv, .words .w, .vine-rv svg { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .h-line { filter: none !important; }
}

/* (language links in the header row: desktop only; phones/tablets use the language button, see below) */

/* ---------- Restaurant (links to the digital menu; no prices on the site) ---------- */
.only-tag { display: inline-block; margin: 18px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--chip); color: var(--fg); font-size: var(--s-small); font-weight: 600; }
.btn-big { min-height: 56px; padding: 0.85em 1.7em; font-size: 1.08rem; }
.dishes { display: grid; gap: 0; list-style: none; padding: 0; margin: 0; border-top: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.dishes li { padding: 22px 0; border-bottom: 1px solid color-mix(in srgb, var(--fg) 35%, transparent); }
.dishes h3 { margin: 0 0 6px; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.dishes p { margin: 0; max-width: 52ch; }
@media (min-width: 900px) {
  .dishes { grid-template-columns: 1fr 1fr; column-gap: 64px; }
  .dishes li { padding: 28px 0; }
}

/* ---------- FAQ: location lines inside answers ("Solo en…" + Waze · Google Maps, as in the contact blocks) ---------- */
.faq .faq-a p { max-width: 68ch; }
.faq-where { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0 0 8px; font-size: var(--s-small); }
.faq-where .only-tag { margin: 0; }
.faq details[open] summary { color: var(--grass); }

/* ---------- Demo bar (config.js → DEMO: true) ----------
   In every page's HTML; shown only when <head> adds html.is-demo (config.js loaded and DEMO is true).
   Sticky at the very top; the header sticks right below it (top: --demo-h). --demo-h is set here per layout
   and corrected by site.js to the bar's real height. */
.demo-bar { display: none; }
html.is-demo { --demo-h: 46px; }
html.is-demo .demo-bar {
  position: sticky; top: 0; z-index: 51;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 0.45em;
  min-height: var(--demo-h); padding: 12px var(--gutter);
  background: var(--forest); color: var(--cream);            /* contrast 13 : 1 */
  font: 700 18px/22px var(--sans); letter-spacing: 0.01em; text-align: center;
}
.demo-bar a { color: inherit; font: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }
.demo-bar a:hover { text-decoration-thickness: 3px; }
.demo-bar a:focus-visible { outline: 3px solid #ffffff; outline-offset: 2px; }
/* narrow screens: two centred lines (same size), not smaller text */
/* measured one-line widths at 18px: ES/PT ~430px of text (fits from ~465px screens), EN ~325px (from ~360px) */
@media (max-width: 479px) {
  html.is-demo { --demo-h: 68px; }
  .demo-sep { display: none; }
  .demo-part { flex-basis: 100%; }
}
@media (min-width: 380px) and (max-width: 479px) {        /* English still fits on one line here */
  html[lang="en"].is-demo { --demo-h: 46px; }
  html[lang="en"] .demo-sep { display: inline; }
  html[lang="en"] .demo-part { flex-basis: auto; }
}
@media (min-width: 768px) {
  html.is-demo, html[lang="en"].is-demo { --demo-h: 48px; }
  html.is-demo .demo-bar { font-size: 22px; line-height: 28px; padding: 10px var(--gutter); }
}
/* ---------- Location chooser (general WhatsApp / Llamar buttons) ---------- */
.chooser { padding: 0; border: 0; background: transparent; max-width: none; max-height: none; width: 100%; height: 100%; margin: 0; }
.chooser[open] { display: grid; place-items: center; }
.chooser::backdrop { background: rgba(14, 32, 24, 0.62); }
.chooser-box { position: relative; width: min(100% - 32px, 440px); background: var(--white); color: var(--ink);
  padding: 28px 22px 22px; border-top: 6px solid var(--moss); box-shadow: 0 24px 60px -20px rgba(0,0,0,.55); }
.chooser h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.85rem); margin: 0 44px 20px 0; }
.chooser-opts { display: grid; gap: 12px; }
.chooser-opt { display: grid; gap: 2px; justify-items: center; padding: 16px 18px; border-radius: 16px; text-decoration: none;
  background: var(--forest-2); color: var(--cream); min-height: 64px; }
.chooser-opt + .chooser-opt { background: var(--moss); }
.chooser-opt:hover { filter: brightness(1.08); color: var(--cream); }
.chooser-opt:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.chooser-name { font: 700 1.3rem/1.2 var(--sans); }
.chooser-tel { font-size: var(--s-small); opacity: .9; font-variant-numeric: tabular-nums; }
.chooser-x { position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; display: grid; place-items: center;
  border: 0; border-radius: 50%; background: var(--sage); color: var(--ink); cursor: pointer; }
.chooser-x svg { width: 20px; height: 20px; }
.chooser-x:hover { background: var(--sage-2); }
@media (prefers-reduced-motion: no-preference) {
  .chooser[open] .chooser-box { animation: chooser-in .28s var(--ease-out) both; }
  @keyframes chooser-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
}


/* ---------- Language button + list (phones and tablets, i.e. whenever the ☰ button shows) ---------- */
.lang-pick { display: none; position: relative; }
@media (max-width: 1239px) {
  html.js .site-header .wrap > .lang { display: none; }     /* replaced by the button (without JavaScript the links stay) */
  html.js .lang-pick { display: block; }
}
@media (max-width: 479px) {
  html:not(.js) .site-header .wrap > .lang { display: none; }
  .site-header .wrap { gap: 8px; }
  .brand { gap: 8px; }
}
.lang-btn { display: inline-flex; align-items: center; gap: 5px; height: 48px; padding: 0 12px 0 11px; border: 0; border-radius: 999px;
  background: var(--sage); color: var(--ink); font: 700 0.95rem/1 var(--sans); letter-spacing: 0.02em; cursor: pointer; }
.lang-btn:hover { background: var(--sage-2); }
.lang-globe { width: 18px; height: 18px; flex: none; }
.lang-chev { width: 14px; height: 14px; flex: none; transition: transform .2s var(--ease-out); }
.lang-btn[aria-expanded="true"] .lang-chev { transform: rotate(180deg); }
@media (max-width: 379px) { .lang-globe { display: none; } .lang-btn { padding: 0 12px 0 14px; } }   /* 360px phones: logo, ES ▾ and ☰ in one row */
.lang-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 60; min-width: 200px; padding: 6px;
  background: var(--sage); border-radius: 16px; box-shadow: 0 16px 36px -14px rgba(20, 30, 22, .45), 0 2px 6px rgba(20, 30, 22, .12); }
.lang-menu a { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 0 14px;
  border-radius: 10px; color: var(--ink); font: 500 1.05rem/1.2 var(--sans); text-decoration: none; }
.lang-menu a:hover { background: var(--sage-2); }
.lang-menu a:focus-visible { outline: 3px solid var(--grass); outline-offset: -3px; }
.lang-menu a[aria-current="true"] { color: var(--forest-2); font-weight: 700; }
.lang-tick { width: 20px; height: 20px; flex: none; color: var(--forest-2); }
@media (prefers-reduced-motion: no-preference) {
  .lang-menu:not([hidden]) { animation: lang-in .2s var(--ease-out) both; transform-origin: top right; }
  @keyframes lang-in { from { opacity: 0; transform: translateY(-6px) scale(.98); } }
}
/* ---------- Responsive photos (<picture>, update 8) ---------- */
picture { display: block; }
picture > img { width: 100%; height: auto; }
.split picture img, .pair picture img { object-fit: cover; }
.pair picture img { aspect-ratio: 3 / 4; }
.split > picture img { aspect-ratio: 4 / 3; }

/* ---------- Page hero with a full-bleed photo (Sumpango) ---------- */
.page-hero.page-hero-photo { position: relative; overflow: hidden; color: var(--cream); background: var(--forest);
  min-height: min(88svh, 760px); display: flex; align-items: flex-end; padding-top: 0; }
.page-hero-photo .page-hero-bg { position: absolute; inset: 0; z-index: 0; }
.page-hero-photo .page-hero-bg picture, .page-hero-photo .page-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
.page-hero-photo::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;   /* dark forest scrim only at the bottom, where the text sits */
  background: linear-gradient(180deg, rgba(22,50,38,0) 30%, rgba(22,50,38,.55) 62%, rgba(22,50,38,.9) 100%); }
.page-hero-photo .wrap { position: relative; z-index: 2; width: 100%; grid-template-columns: 1fr; }
.page-hero-photo .wrap > div { max-width: 640px; }

/* ---------- Sumpango testimonials (rendered only when there are some) ---------- */
.testis { display: grid; gap: 20px; list-style: none; padding: 0; margin: 28px 0 0; }
@media (min-width: 900px) { .testis { grid-template-columns: repeat(3, 1fr); } }
.testis li { background: var(--chip); padding: 24px; border-radius: 16px; }
.testis blockquote { margin: 0 0 12px; font: 400 1.15rem/1.45 var(--serif); }
.testi-who { margin: 0; color: var(--muted); font-size: var(--s-small); }

/* FAQ pointer lines (Solicitar cita, Precios) */
.faq-hint { margin: 14px 0 0; font-size: var(--s-small); color: var(--muted); }
.faq-hint a { font-weight: 600; }

/* ---------- The ball logo: header, hero, phone menu, footer, 404 (original artwork since update 9) ---------- */
.ball-pic { display: contents; }   /* the <picture> wrapper does not change the layout: the <img> sits where it always did */
.brand img.brand-ball { width: 56px; height: 56px; flex: none; filter: drop-shadow(0 2px 3px rgba(20, 40, 28, .14)); }
@media (min-width: 1240px) {
  .site-header .wrap { min-height: 80px; }
  .brand img.brand-ball { width: 68px; height: 68px; }
}
.nav-ball { display: block; width: 64px; height: 64px; margin: 4px 0 8px; }
.foot-brand img.foot-ball { width: 104px; height: 104px; }
.nf-ball { width: 160px; height: 160px; }

/* hero: ball above the headline on phones, beside it on desktop; never over the buttons or the hours line */
.hero-ball { position: relative; align-self: flex-start; width: clamp(180px, 54vw, 212px); margin: 0 0 14px -6px; }
.hero-ball::before { content: ""; position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;   /* soft light behind the ball */
  background: radial-gradient(circle, rgba(255,255,255,.10) 0%, rgba(255,255,255,.06) 40%, rgba(255,255,255,0) 68%); }
.hero-ball img { position: relative; width: 100%; height: auto; display: block; }
@media (max-height: 700px) and (max-width: 767px) { .hero-ball { width: 140px; margin-bottom: 8px; } }   /* short phones: keep the 3 buttons on the first screen */
@media (min-width: 900px) {
  .hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; column-gap: 48px; }
  .hero-ball { order: 2; align-self: center; width: clamp(280px, 26vw, 336px); margin: 0 0 24px; }
  .hero-text { order: 1; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero-ball img { animation: ball-in .7s var(--ease-out) both, ball-float 6s ease-in-out .7s infinite alternate; }
  @keyframes ball-in { from { opacity: 0; transform: translateY(7px); } }
  @keyframes ball-float { from { transform: translateY(0); } to { transform: translateY(-3px); } }
}

/* narrow phones: ball, name, ES ▾ and ☰ in one row; the two buttons never shrink */
.menu-btn, .lang-btn { flex: none; }
@media (max-width: 399px) {
  .brand img.brand-ball { width: 52px; height: 52px; }
  .brand span { font-size: 1.15rem; }
}