/* =========================================================
   Jardín de Heliconias · Prototipo web
   Orden: tokens → base → layout → componentes → secciones
   Mobile first · breakpoints Divi: 768 · 981 · 1280
   ========================================================= */

/* ---------- 1. TOKENS ---------- */
:root {
  --forest-700: #0D4A3E;
  --moss-500: #6D7F45;
  --heliconia-600: #D64B2A;
  --heliconia-700: #B8401F;
  --ivory: #F7F3EB;
  --surface: #FFFDF8;
  --ink: #17332E;
  --muted: #5D6963;

  /* Tintes derivados (solo color-mix sobre los tokens) */
  --line: color-mix(in srgb, var(--ink) 13%, transparent);
  --line-strong: color-mix(in srgb, var(--ink) 24%, transparent);
  --forest-hover: color-mix(in srgb, var(--forest-700) 70%, var(--ink));
  --forest-tint: color-mix(in srgb, var(--forest-700) 7%, var(--ivory));
  --forest-soft: color-mix(in srgb, var(--forest-700) 10%, var(--surface));
  --moss-tint: color-mix(in srgb, var(--moss-500) 9%, var(--ivory));
  --on-dark-line: color-mix(in srgb, var(--surface) 16%, transparent);
  --on-dark-fill: color-mix(in srgb, var(--surface) 7%, transparent);
  --busy-bg: color-mix(in srgb, var(--ink) 10%, var(--surface));
  --disabled-bg: color-mix(in srgb, var(--muted) 22%, var(--ivory));
  --on-dark: var(--surface);
  --on-dark-soft: color-mix(in srgb, var(--surface) 90%, transparent);
  --on-dark-muted: color-mix(in srgb, var(--surface) 80%, transparent);
  --scrim: color-mix(in srgb, var(--ink) 88%, transparent);

  --font-serif: "EB Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.125rem, 1.45rem + 2.9vw, 3.75rem);      /* 34 → 60 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.5vw, 2.625rem);       /* 28 → 42 */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);        /* 20 → 24 */
  --fs-body: clamp(1rem, 0.97rem + 0.12vw, 1.0625rem);     /* 16 → 17 */
  --fs-small: 0.875rem;                                    /* 14 */
  --fs-eyebrow: 0.78rem;                                   /* 12.5 */

  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px;
  --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  --r-btn: 8px;
  --r-img: 16px;
  --r-card: 20px;

  --gutter: 20px;
  --content: 1200px;
  --reading: 768px;
  --page: 1440px;
  --header-h: 64px;
  --section-y: 64px;

  --shadow-header: 0 1px 0 var(--line), 0 6px 18px color-mix(in srgb, var(--ink) 8%, transparent);
  --shadow-card: 0 10px 30px color-mix(in srgb, var(--ink) 10%, transparent);
  /* elementos flotantes: sombra corta y nítida + amplia y difusa (luz desde arriba) */
  --shadow-float: 0 1px 2px color-mix(in srgb, var(--ink) 10%, transparent), 0 10px 24px -6px color-mix(in srgb, var(--ink) 14%, transparent);
  --t: 180ms ease;
}

@media (min-width: 768px) {
  :root { --gutter: 32px; }
}
@media (min-width: 981px) {
  :root { --header-h: 76px; --section-y: 104px; }
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 var(--s-4); }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }

h1, h2, h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--forest-700);
  line-height: 1.15;
  margin: 0;
  text-wrap: balance;
}
h2 { font-size: var(--fs-h2); line-height: 1.1; letter-spacing: -0.01em; }
h3 { font-size: var(--fs-h3); line-height: 1.2; }
p, li { text-wrap: pretty; }

section[id] { scroll-margin-top: var(--header-h); }

:focus-visible {
  outline: 2px solid var(--heliconia-600);
  outline-offset: 2px;
  border-radius: 4px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: var(--s-4); top: -100px; z-index: 100;
  background: var(--forest-700); color: var(--on-dark);
  padding: var(--s-3) var(--s-4); border-radius: var(--r-btn);
}
.skip-link:focus { top: var(--s-3); }

.icon-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 24px; height: 24px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- 3. LAYOUT ---------- */
.container {
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
}
.container--narrow { width: min(100% - 2 * var(--gutter), var(--reading)); }

.section { padding-block: var(--section-y); }
.section--surface { background: var(--surface); }
.section--tint { background: var(--moss-tint); }
.section--forest { background: var(--forest-700); color: var(--on-dark); }
.section--forest h2,
.section--forest h3 { color: var(--on-dark); }

.section-head { max-width: 62ch; margin-bottom: var(--s-6); }
.section-head h2 + .lead,
.section-head h2 + p { margin-top: var(--s-4); }
.section-head .lead:last-child { margin-bottom: 0; }
.section-head--center { text-align: center; margin-inline: auto; }
.section-head--row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-3) var(--s-5); max-width: none; }
.section-foot { margin: var(--s-6) 0 0; }
.section-head--split { max-width: none; display: grid; gap: var(--s-5); align-items: end; }
.section-head--split > div { max-width: 62ch; }
@media (min-width: 981px) {
  .section-head--split { grid-template-columns: minmax(0, 1fr) auto; gap: var(--s-8); }
}

.lead { font-size: 1.0625rem; color: var(--muted); }
.section--forest .lead { color: var(--on-dark-muted); }

@media (min-width: 981px) {
  .section-head { margin-bottom: var(--s-7); }
  .lead { font-size: 1.125rem; }
}

/* ---------- 4. COMPONENTES ---------- */

/* Eyebrow */
.eyebrow {
  font-family: var(--font-sans);
  font-size: var(--fs-eyebrow);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--heliconia-700);
  margin: 0 0 var(--s-2);
}
.eyebrow--on-dark { color: var(--on-dark); }

/* Botones */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  min-height: 48px;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  border: 1.5px solid transparent;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color var(--t), color var(--t), border-color var(--t);
}
.btn--sm { min-height: 44px; padding: 10px 18px; font-size: 0.9375rem; }
.btn--lg { min-height: 54px; padding: 14px 28px; font-size: 1.0625rem; }

.btn--primary { background: var(--forest-700); color: var(--on-dark); }
.btn--primary:hover { background: var(--forest-hover); }

.btn--secondary { background: transparent; color: var(--forest-700); border-color: var(--forest-700); }
.btn--secondary:hover { background: var(--forest-soft); }

.btn--on-dark { background: var(--surface); color: var(--forest-700); }
.btn--on-dark:hover { background: var(--ivory); }

.btn:disabled,
.btn[aria-disabled="true"] {
  background: var(--disabled-bg);
  color: var(--muted);
  border-color: transparent;
  cursor: not-allowed;
}

.section--forest :focus-visible,
.site-footer :focus-visible,
.lightbox :focus-visible { outline-color: var(--surface); }

/* Enlace terciario */
.link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  min-height: 44px;
  color: var(--forest-700);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 5px;
  transition: color var(--t), text-decoration-color var(--t);
}
.link:hover { color: var(--forest-hover); text-decoration-color: var(--heliconia-600); }
.link .icon { width: 20px; height: 20px; }

/* Listas con icono */
.icon-list { display: grid; gap: var(--s-5); }
.icon-list li { display: flex; gap: var(--s-4); align-items: flex-start; }
.icon-list .icon { color: var(--forest-700); margin-top: 2px; }
.icon-list strong { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.icon-list span { display: block; color: var(--muted); font-size: 0.9375rem; line-height: 1.5; margin-top: 2px; }
.icon-list--plain span { color: var(--ink); font-size: var(--fs-body); margin-top: 0; }
.icon-list--plain strong { display: inline; }

.check-list { display: grid; gap: var(--s-3); }
.check-list li { position: relative; padding-left: 28px; }
.check-list li::before {
  content: "";
  position: absolute; left: 2px; top: 0.5em;
  width: 12px; height: 7px;
  border-left: 1.75px solid var(--forest-700);
  border-bottom: 1.75px solid var(--forest-700);
  transform: rotate(-45deg);
}

/* Carrusel nativo (galería y reseñas en móvil) */
.carousel-count {
  margin: var(--s-4) 0 0;
  text-align: center;
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.carousel-count--on-dark { color: var(--on-dark-muted); }

/* ---------- 5. SECCIONES ---------- */

/* 5.1 Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--t);
}
.site-header.is-scrolled { box-shadow: var(--shadow-float); border-bottom-color: transparent; }
.site-header__inner {
  height: var(--header-h);
  width: min(100% - 2 * var(--gutter), var(--content));
  margin-inline: auto;
  display: flex; align-items: center; gap: var(--s-5);
}

.brand { display: flex; align-items: center; text-decoration: none; margin-right: auto; border-radius: 6px; }
.brand__logo { display: none; height: 58px; width: auto; }
.brand__compact { display: flex; align-items: center; gap: 10px; }
.brand__compact img { width: auto; height: 36px; }
.brand__name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 500; color: var(--forest-700); line-height: 1; white-space: nowrap; }

.site-header__cta { display: none; }

.menu-toggle {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; margin-right: -10px;
  background: none; border: 0; border-radius: var(--r-btn);
  color: var(--forest-700); cursor: pointer;
}
.menu-toggle .icon--close { display: none; }
.menu-toggle[aria-expanded="true"] .icon--open { display: none; }
.menu-toggle[aria-expanded="true"] .icon--close { display: block; }

/* Menú móvil a pantalla completa */
.menu {
  display: none;
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
  background: var(--surface);
  padding: var(--s-6) var(--gutter) calc(var(--s-6) + env(safe-area-inset-bottom));
  flex-direction: column; justify-content: space-between;
  overflow-y: auto;
}
.menu.is-open { display: flex; }
.menu__list { display: grid; }
.menu__list a {
  display: flex; align-items: center;
  min-height: 60px;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-serif);
  font-size: 1.75rem;
  color: var(--forest-700);
  text-decoration: none;
}
.menu__cta { width: 100%; margin-top: var(--s-6); }

@media (prefers-reduced-motion: no-preference) {
  .menu.is-open { animation: fade-in 160ms ease-out; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 981px) {
  .brand__logo { display: block; }
  .brand__compact { display: none; }
  .menu-toggle { display: none; }
  .site-header__cta { display: inline-flex; }
  .menu {
    display: flex; position: static; inset: auto; padding: 0; background: none;
    flex-direction: row; overflow: visible;
  }
  .menu__list { display: flex; gap: var(--s-1); }
  .menu__list a {
    min-height: 44px; padding: 0 var(--s-3); border: 0;
    font-family: var(--font-sans); font-size: 0.9375rem; font-weight: 500; color: var(--ink);
    border-radius: var(--r-btn);
    transition: color var(--t);
  }
  .menu__list a:hover { color: var(--forest-700); text-decoration: underline; text-underline-offset: 6px; }
  .menu__cta { display: none; }
}

/* Header transparente sobre el hero (excepción §8 de auditoria-visual.md).
   Sin JS el header queda sólido; main.js añade .is-transparent mientras el hero está debajo. */
.site-header { transition: background-color var(--t), box-shadow var(--t), border-color var(--t); }
.site-header.is-transparent { background: transparent; border-bottom-color: transparent; box-shadow: none; }
.site-header.is-transparent .brand__name,
.site-header.is-transparent .menu-toggle { color: var(--on-dark); }
.site-header.is-transparent :focus-visible { outline-color: var(--surface); }

@media (min-width: 981px) {
  .site-header.is-transparent .brand__logo { display: none; }
  .site-header.is-transparent .brand__compact { display: flex; }
  .site-header.is-transparent .brand__compact img { height: 44px; }
  .site-header.is-transparent .brand__name { font-size: 1.5rem; }
  .site-header.is-transparent .menu__list a { color: var(--on-dark); }
  .site-header.is-transparent .site-header__cta { background: var(--surface); color: var(--forest-700); }
  .site-header.is-transparent .site-header__cta:hover { background: var(--ivory); }
}

/* 5.2 Hero
   Móvil y tablet (< 981): la foto ocupa la parte superior (bajo el header transparente) y se funde
   con un panel forest; eyebrow + H1 montan sobre el fundido; subtítulo, CTA y confianza en el panel.
   La altura de la foto se calcula con svh para que el CTA quede siempre en el primer viewport.
   Desktop (≥ 981): foto a sangre en toda la pantalla, texto abajo a la izquierda con scrim localizado
   y la tarjeta de datos rápidos montando sobre el borde inferior. */
.hero {
  --hero-photo-h: clamp(380px, calc(100svh - 300px), 640px);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  margin-top: calc(-1 * var(--header-h));
  background: var(--forest-700);
  color: var(--on-dark);
  overflow: hidden;
}
.hero__media {
  grid-row: 1; grid-column: 1;
  position: relative;
  height: var(--hero-photo-h);
  overflow: hidden;
}
.hero__media picture,
.hero__media img { display: block; width: 100%; height: 100%; }
.hero__media img { object-fit: cover; object-position: 78% 50%; }
.hero__media::before,
.hero__media::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
/* degradado superior: legibilidad del header transparente */
.hero__media::before {
  z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 55%, transparent) 0, transparent 150px);
}
/* fundido inferior hacia el panel forest */
.hero__media::after {
  background: linear-gradient(to bottom, transparent 54%, color-mix(in srgb, var(--forest-700) 82%, transparent) 80%, var(--forest-700) 100%);
}

.hero__content { display: contents; }
.hero__head {
  grid-row: 1; grid-column: 1;
  align-self: end;
  position: relative; z-index: 2;
  padding: 0 var(--gutter) var(--s-1);
}
.hero__title {
  font-size: var(--fs-h1);
  font-weight: 500;
  color: var(--on-dark);
  line-height: 1.05;
  letter-spacing: -0.015em;
  margin: 0;
}
.hero__title-sub {
  display: block;
  margin-top: var(--s-2);
  font-size: clamp(1.1875rem, 0.95rem + 1vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--on-dark-soft);
}
.hero__subtitle {
  grid-column: 1;
  margin: 0;
  padding: var(--s-4) var(--gutter) 0;
  max-width: calc(60ch + 2 * var(--gutter));
  font-size: 1rem; line-height: 1.5;
  color: var(--on-dark-soft);
}
.hero__actions { grid-column: 1; padding: var(--s-5) var(--gutter) 0; }
.hero__actions .btn { width: 100%; }
.hero__proof {
  grid-column: 1;
  display: grid; gap: var(--s-2);
  padding: var(--s-4) var(--gutter) var(--s-6);
  font-size: var(--fs-small);
  color: var(--on-dark-muted);
}
.hero__proof li { display: flex; align-items: center; gap: var(--s-2); }
.hero__proof strong { color: var(--on-dark); font-weight: 600; }
.hero__proof .icon { width: 18px; height: 18px; color: var(--on-dark); }

/* «Ver todas las fotos»: chip sobre la foto en móvil y tablet */
.hero__photos {
  position: absolute; z-index: 3;
  top: calc(var(--header-h) + var(--s-3)); right: var(--gutter);
  padding: 0 var(--s-4);
  border-radius: 999px;
  background: color-mix(in srgb, var(--ink) 62%, transparent);
  color: var(--on-dark);
  font-size: var(--fs-small);
  text-decoration: none;
}
.hero__photos:hover { color: var(--on-dark); background: color-mix(in srgb, var(--ink) 80%, transparent); }
.hero :focus-visible { outline-color: var(--surface); }

@media (prefers-reduced-motion: no-preference) {
  .hero__media img { animation: hero-zoom 1.2s cubic-bezier(.22, .61, .36, 1) both; }
  .hero__head, .hero__subtitle, .hero__actions, .hero__photos, .hero__proof { animation: hero-in .8s .2s ease-out both; }
}
@keyframes hero-zoom { from { transform: scale(1.04); } to { transform: scale(1); } }
@keyframes hero-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (min-width: 768px) {
  .hero__br { display: none; }
  .hero__actions .btn { width: auto; }
}

@media (min-width: 981px) {
  .hero {
    --hero-h: clamp(600px, calc(100svh - 72px), 1000px);
    grid-template-areas: "stack";
  }
  .hero__media { grid-area: stack; height: var(--hero-h); }
  .hero__media img { object-position: 50% 40%; }
  .hero__media::before { background: linear-gradient(to bottom, color-mix(in srgb, var(--ink) 60%, transparent) 0, transparent 170px); }
  /* scrim localizado: solo la columna de texto (pilar y ladera); hamaca y montaña quedan limpias */
  .hero__media::after {
    background:
      linear-gradient(to right, color-mix(in srgb, var(--ink) 82%, transparent) 0%, color-mix(in srgb, var(--ink) 70%, transparent) 30%, color-mix(in srgb, var(--ink) 25%, transparent) 50%, transparent 62%),
      linear-gradient(to top, color-mix(in srgb, var(--ink) 40%, transparent) 0, transparent 26%);
  }
  .hero__content {
    grid-area: stack;
    align-self: end;
    position: relative; z-index: 2;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas: "head head" "sub sub" "actions photos" "proof proof";
    align-items: center;
    column-gap: var(--s-5);
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
    padding-bottom: calc(var(--s-8) + 48px); /* 48 px los cubre la tarjeta de datos */
  }
  .hero__head { grid-area: head; padding: 0; max-width: 700px; }
  .hero__subtitle { grid-area: sub; padding: var(--s-4) 0 0; max-width: 46ch; font-size: 1.0625rem; }
  .hero__actions { grid-area: actions; padding: var(--s-6) 0 0; }
  .hero__photos {
    grid-area: photos; justify-self: start;
    position: static;
    margin-top: var(--s-6); padding: 0;
    border-radius: 0; background: none;
    font-size: 1rem;
    text-decoration: underline;
  }
  .hero__photos:hover { background: none; }
  .hero__proof {
    grid-area: proof;
    padding: var(--s-5) 0 0;
    font-size: 0.9375rem;
  }
}

/* 5.3 Datos rápidos (móvil: banda surface; desktop: tarjeta que monta sobre el hero) */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: var(--s-5); }
.facts__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: var(--s-4) var(--s-4);
}
.facts__list li { display: flex; align-items: center; gap: var(--s-3); font-size: 0.9375rem; font-weight: 500; line-height: 1.3; }
.facts__list .icon { color: var(--moss-500); }
.facts__list strong { font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; color: var(--forest-700); white-space: nowrap; }

@media (min-width: 768px) {
  .facts__list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (min-width: 981px) {
  .facts {
    position: relative; z-index: 3;
    margin-top: -48px;
    padding: 0;
    background: none; border: 0;
  }
  .facts .container {
    background: var(--surface);
    border-radius: var(--r-card);
    box-shadow: var(--shadow-float);
    padding: var(--s-5) var(--s-6);
  }
}
@media (min-width: 1280px) {
  .facts__list { grid-template-columns: repeat(7, auto); justify-content: space-between; gap: var(--s-4); }
  .facts__list li > span { max-width: 18ch; }
}

/* 5.4 Galería */
.gallery-section { padding-bottom: 0; }
.gallery-section__all { margin-bottom: -6px; }
.gallery__more-item { display: none; }
.gallery__more {
  display: inline-flex; align-items: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-4);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  color: var(--forest-700);
  font-size: 0.9375rem; font-weight: 600;
  text-decoration: none;
  transition: background-color var(--t), color var(--t);
}
.gallery__more:hover { background: var(--forest-700); color: var(--on-dark); }
.gallery__more .icon { width: 20px; height: 20px; }
.gallery {
  display: flex; gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery li { flex: 0 0 84%; scroll-snap-align: start; }
.gallery__item { display: block; border-radius: var(--r-img); overflow: hidden; background: var(--forest-tint); }
.gallery__item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 200ms ease; }

@media (min-width: 768px) {
  .gallery li { flex-basis: 56%; }
}
@media (min-width: 981px) {
  .gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: var(--s-4);
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
    padding: 0; overflow: visible;
  }
  .gallery li:nth-child(n + 6) { display: none; }
  .gallery li:first-child { grid-row: span 2; }
  .gallery li:first-child .gallery__item,
  .gallery li:first-child img { height: 100%; aspect-ratio: auto; }
  /* botón «Ver todas las fotos (13)» sobre la última miniatura (misma celda de la rejilla, sin posición absoluta) */
  .gallery li:nth-child(5) { grid-column: 3; grid-row: 2; }
  .gallery li.gallery__more-item {
    display: block;
    grid-column: 3; grid-row: 2;
    align-self: end; justify-self: end;
    margin: var(--s-3);
    z-index: 1;
  }
  .gallery__item:hover img { transform: scale(1.02); }
  .gallery-section .carousel-count,
  .gallery-section__all { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .gallery__item img { transition: none; }
  .gallery__item:hover img { transform: none; }
}

/* 5.5 El apartamento */
.spaces { display: grid; gap: var(--s-7); }
.space__img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-img); margin-bottom: var(--s-4); }
.space h3 { margin-bottom: var(--s-2); }
/* datos de cada espacio, escaneables y separados por punto medio */
.space__facts { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); max-width: 56ch; font-size: 0.9375rem; line-height: 1.5; color: var(--ink); }
.space__facts li { display: inline-flex; align-items: center; gap: var(--s-2); }
.space__facts li::before { content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%; background: var(--moss-500); }

@media (min-width: 768px) {
  .spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-7) var(--s-6); }
}

/* 5.6 Servicios e impacto (banda forest) */
.services__title { margin-bottom: var(--s-5); }
.feature-list { display: grid; gap: var(--s-5); margin-bottom: var(--s-7); }
.feature-list li { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: var(--s-4); row-gap: var(--s-1); align-items: start; align-content: start; }
.feature-list__icon {
  grid-row: span 2;
  display: inline-grid; place-items: center;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--on-dark-fill);
  box-shadow: inset 0 0 0 1px var(--on-dark-line);
  color: var(--on-dark);
}
.feature-list__icon .icon { width: 28px; height: 28px; }
.feature-list strong { font-weight: 600; font-size: 1.0625rem; line-height: 1.35; color: var(--on-dark); padding-top: 4px; }
.feature-list li > span:last-child { font-size: 0.9375rem; line-height: 1.5; color: var(--on-dark-muted); }

.impact-list { display: grid; gap: var(--s-4) var(--s-6); }
.impact-list li { display: flex; gap: var(--s-3); align-items: flex-start; }
.impact-list .icon { width: 22px; height: 22px; color: var(--on-dark-muted); margin-top: 1px; }
.impact-list strong { display: block; font-weight: 600; font-size: 0.9375rem; line-height: 1.4; color: var(--on-dark); }
.impact-list span { display: block; font-size: var(--fs-small); line-height: 1.5; color: var(--on-dark-muted); }

@media (min-width: 768px) {
  .feature-list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s-6); }
  .feature-list li { grid-template-columns: minmax(0, 1fr); }
  .feature-list__icon { grid-row: auto; margin-bottom: var(--s-3); }
  .impact-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 981px) {
  .feature-list { margin-bottom: var(--s-8); }
  .impact-list { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s-5); }
}

/* 5.7 Ubicación */
.location { display: grid; gap: var(--s-6); }
.location h3 { margin-bottom: var(--s-4); }

/* distancias como datos grandes */
.distance-list { display: grid; gap: var(--s-4); }
.distance-list li { display: grid; gap: 2px; }
.distance-list strong { font-family: var(--font-serif); font-size: 1.75rem; font-weight: 500; line-height: 1.1; color: var(--forest-700); }
.distance-list span { display: flex; align-items: flex-start; gap: var(--s-2); font-size: 0.9375rem; line-height: 1.4; color: var(--muted); }
.distance-list .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--moss-500); }

/* momento a sangre: la foto llega al borde de la pantalla */
.moment { display: grid; margin-top: var(--s-7); }
.moment__img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.moment__text { padding: var(--s-5) var(--gutter) 0; }
.moment__text p { margin: 0; color: var(--muted); max-width: 44ch; }
.moment__quote {
  position: relative;
  padding-top: var(--s-5);
  font-family: var(--font-serif);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--forest-700) !important;
  margin-bottom: var(--s-3) !important;
  text-wrap: balance;
}
.moment__quote::before { content: ""; position: absolute; top: 0; left: 0; width: 48px; height: 2px; background: var(--heliconia-600); }

@media (min-width: 981px) {
  .location { grid-template-columns: 1fr 1.1fr 1.1fr; gap: var(--s-7); }
  .moment { grid-template-columns: minmax(0, 560px) minmax(0, 1fr); align-items: center; gap: var(--s-8); margin-top: var(--s-8); }
  .moment__img { height: 480px; aspect-ratio: auto; border-radius: 0 var(--r-img) var(--r-img) 0; }
  .moment__text { padding: 0 var(--gutter) 0 0; max-width: 560px; }
}

/* 5.8 Reseñas */
/* el dato de confianza es el elemento dominante de la cabecera */
.reviews__count { display: grid; gap: var(--s-1); margin: 0; }
.reviews__count-num {
  font-family: var(--font-serif);
  font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--on-dark);
}
.reviews__count-where { font-size: 0.9375rem; color: var(--on-dark-muted); }
@media (min-width: 981px) {
  .reviews__count { padding-left: var(--s-5); border-left: 2px solid var(--on-dark-line); }
}
.reviews {
  display: flex; gap: var(--s-3);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-inline: var(--gutter);
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  flex: 0 0 86%;
  scroll-snap-align: start;
  display: flex; flex-direction: column;
  padding: var(--s-5);
  border-radius: var(--r-card);
  background: var(--on-dark-fill);
}
.review blockquote { margin: 0 0 var(--s-4); }
/* comillas tipográficas grandes, decorativas */
.review blockquote::before {
  content: "“";
  display: block;
  height: 32px;
  font-family: var(--font-serif);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--moss-500);
}
.review blockquote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--on-dark);
}
.review__meta { margin: auto 0 var(--s-2); font-size: var(--fs-small); color: var(--on-dark-muted); }
.review__meta strong { color: var(--on-dark); font-weight: 600; }
.review__translation summary {
  display: inline-flex; align-items: center; min-height: 44px;
  cursor: pointer;
  font-size: var(--fs-small); font-weight: 600;
  color: var(--on-dark);
  text-decoration: underline; text-underline-offset: 4px;
  list-style: none;
}
.review__translation summary::-webkit-details-marker { display: none; }
.review__translation[open] summary { margin-bottom: var(--s-1); }
.review__translation p { margin: 0; font-size: 0.9375rem; color: var(--on-dark-muted); }

@media (min-width: 768px) {
  .reviews {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5);
    width: min(100% - 2 * var(--gutter), var(--content));
    margin-inline: auto;
    padding: 0; overflow: visible;
  }
  .review { padding: var(--s-6); }
  #resenas .carousel-count { display: none; }
}

/* 5.9 Precios */
.pricing { display: grid; gap: var(--s-6); }
.price-caption { margin-bottom: var(--s-3); font-size: var(--fs-small); font-weight: 600; letter-spacing: 0.02em; color: var(--muted); }
.price-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3); }
.price-tile {
  display: grid; gap: var(--s-1); align-content: start;
  padding: var(--s-5) var(--s-4);
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
}
.price-tile__people { display: flex; margin-bottom: var(--s-2); color: var(--moss-500); }
.price-tile__people .icon { width: 20px; height: 20px; margin-right: -3px; }
.price-tile__guests { font-size: 0.9375rem; font-weight: 500; color: var(--ink); }
.price-tile__price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s-2); }
.price-tile__price strong {
  font-family: var(--font-serif);
  font-size: clamp(1.625rem, 1.4rem + 0.8vw, 2rem);
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--forest-700);
}
.price-tile__price span { font-size: var(--fs-small); font-weight: 500; color: var(--muted); }

.pricing__notes h3 { margin-bottom: var(--s-4); }
.pricing__notes .check-list { margin-bottom: var(--s-5); }
.pricing__notes p { color: var(--muted); }
.pricing__notes .btn { margin-top: var(--s-2); }

@media (min-width: 981px) {
  .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-8); align-items: start; }
  .price-tiles { gap: var(--s-4); }
  .price-tile { padding: var(--s-5); }
}

/* 5.10 Disponibilidad · calendario (componente aislado) */
.avail-calendar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-card);
  padding: var(--s-4) 10px var(--s-5);
}
.avail-calendar__tag {
  display: table;
  margin: 0 auto var(--s-3);
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--forest-tint);
  font-size: 0.75rem; font-weight: 500;
  color: var(--muted);
}
.avail-calendar__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s-2); margin-bottom: var(--s-3); }
.avail-calendar__month {
  font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; color: var(--forest-700);
  text-transform: capitalize;
}
.avail-calendar__nav {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--forest-700);
  cursor: pointer;
  transition: background-color var(--t), border-color var(--t);
}
.avail-calendar__nav:hover:not(:disabled) { background: var(--forest-soft); border-color: var(--forest-700); }
.avail-calendar__nav:disabled { color: color-mix(in srgb, var(--muted) 45%, transparent); background: var(--ivory); border-color: var(--line); cursor: not-allowed; }

.avail-calendar__weekdays,
.avail-calendar__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.avail-calendar__weekdays li { text-align: center; font-size: 0.75rem; font-weight: 600; color: var(--muted); padding-block: var(--s-2); }

.cal-day {
  position: relative;
  display: grid; place-items: center;
  aspect-ratio: 1;
  min-height: 40px;
  border-radius: var(--r-btn);
  font-size: 0.9375rem; font-weight: 500;
  font-variant-numeric: tabular-nums;
  border: 1px solid transparent;
}
.cal-day--free { border-color: var(--line-strong); background: var(--surface); }
.cal-day--busy { background: var(--busy-bg); color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.cal-day--past { color: color-mix(in srgb, var(--muted) 45%, transparent); }
.cal-day--today { border: 2px solid var(--forest-700); font-weight: 700; color: var(--forest-700); }
.cal-day--today::after {
  content: ""; position: absolute; bottom: 4px; left: 50%;
  width: 4px; height: 4px; margin-left: -2px;
  border-radius: 50%; background: var(--forest-700);
}

.avail-calendar__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-2) var(--s-4);
  margin-top: var(--s-4); padding: var(--s-3) var(--s-2) 0;
  border-top: 1px solid var(--line);
  font-size: 0.8125rem; color: var(--muted);
}
.avail-calendar__legend { display: flex; gap: var(--s-4); }
.avail-calendar__legend li { display: flex; align-items: center; gap: var(--s-2); color: var(--ink); }
.avail-calendar__updated { margin: 0; }
.swatch { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; font-size: 0.6875rem; }
.swatch--free { border: 1px solid var(--line-strong); background: var(--surface); }
.swatch--busy { background: var(--busy-bg); color: var(--muted); text-decoration: line-through; }

@media (min-width: 768px) {
  .avail-calendar { padding: var(--s-5) var(--s-6) var(--s-5); }
  .avail-calendar__weekdays, .avail-calendar__grid { gap: 6px; }
  .cal-day { aspect-ratio: auto; height: 52px; font-size: 1rem; }
}

/* calendario + acción: apilados en móvil y tablet; 2 columnas en desktop (CLAUDE.md §6) */
.availability { display: grid; gap: var(--s-6); max-width: var(--reading); margin-inline: auto; }

/* bloque de acción: tarjeta con filete superior forest */
.booking-action {
  padding: var(--s-6) var(--s-5);
  border-radius: var(--r-card);
  border-top: 3px solid var(--forest-700);
  background: var(--surface);
  box-shadow: 0 1px 2px color-mix(in srgb, var(--ink) 8%, transparent);
}
.booking-action__icon { width: 40px; height: 40px; color: var(--forest-700); margin-bottom: var(--s-3); stroke-width: 1.4; }
.booking-action h3 { margin-bottom: var(--s-3); }
.booking-action > p { color: var(--muted); max-width: 46ch; }
.booking-action .btn { margin-top: var(--s-2); width: 100%; }
.booking-action__note { font-size: var(--fs-small); margin: var(--s-4) 0 0; }

.channels { margin-top: var(--s-6); }
.channels > p:not(.divider-text) { color: var(--muted); font-size: 0.9375rem; max-width: 46ch; }
.divider-text {
  display: flex; align-items: center; gap: var(--s-4);
  font-size: var(--fs-small); font-weight: 600; color: var(--ink);
  margin-bottom: var(--s-3);
}
.divider-text::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.channels__buttons { display: grid; gap: var(--s-3); }
.channels__buttons .btn { font-weight: 500; }

@media (min-width: 768px) {
  .channels__buttons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 981px) {
  .availability { max-width: none; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s-7); align-items: start; }
  .booking-action { padding: var(--s-6); }
}

/* 5.11 FAQ */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  min-height: 60px; padding-block: var(--s-3);
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.0625rem; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--forest-700); }
.faq__icon {
  display: inline-grid; place-items: center; flex: none;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--forest-soft);
  color: var(--forest-700);
  transition: background-color var(--t), color var(--t);
}
.faq__icon .icon { width: 18px; height: 18px; }
.faq .icon--minus,
.faq details[open] .icon--plus { display: none; }
.faq details[open] .icon--minus { display: block; }
.faq summary:hover .faq__icon { background: var(--forest-700); color: var(--on-dark); }
.faq details p { margin: 0 0 var(--s-5); color: var(--muted); max-width: 62ch; }

/* desktop: título a la izquierda, acordeón a la derecha */
@media (min-width: 981px) {
  .faq-layout { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s-8); align-items: start; }
  .faq-layout .section-head { margin-bottom: 0; }
}

/* 5.12 Footer */
.site-footer { background: var(--forest-700); color: var(--on-dark-muted); padding: var(--s-8) 0 var(--s-5); }
.site-footer__inner { display: grid; gap: var(--s-6); }
.site-footer__brand img { width: 96px; height: auto; margin-bottom: var(--s-4); }
.site-footer__brand p { margin-bottom: var(--s-2); font-size: 0.9375rem; }
.site-footer__brand strong { color: var(--on-dark); font-family: var(--font-serif); font-size: 1.375rem; font-weight: 500; }
.site-footer__nav ul { display: grid; gap: 0; }
.site-footer__nav a { display: inline-flex; align-items: center; min-height: 44px; color: var(--on-dark); text-decoration: none; }
.site-footer__nav a:hover { text-decoration: underline; text-underline-offset: 5px; }
.site-footer__cta p { color: var(--on-dark); font-family: var(--font-serif); font-size: 1.5rem; line-height: 1.2; margin-bottom: var(--s-4); }
.site-footer__legal {
  margin-top: var(--s-7); padding-top: var(--s-4);
  border-top: 1px solid color-mix(in srgb, var(--surface) 18%, transparent);
  font-size: 0.8125rem;
}

@media (max-width: 980px) {
  /* deja sitio a la barra CTA móvil */
  .site-footer { padding-bottom: calc(var(--s-5) + 76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 981px) {
  .site-footer__inner { grid-template-columns: 1.3fr 1fr 1fr; align-items: start; }
}

/* Barra CTA móvil */
.cta-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  padding: var(--s-3) var(--gutter) calc(var(--s-3) + env(safe-area-inset-bottom));
  background: var(--surface);
  /* elemento flotante: sombra hacia arriba, corta + difusa */
  box-shadow: 0 -1px 3px color-mix(in srgb, var(--ink) 8%, transparent), 0 -12px 32px color-mix(in srgb, var(--ink) 12%, transparent);
  transform: translateY(110%);
  visibility: hidden;
  transition: transform 200ms ease, visibility 0s linear 200ms;
}
.cta-bar .btn { width: 100%; }
.cta-bar.is-visible { transform: none; visibility: visible; transition: transform 200ms ease, visibility 0s; }
@media (min-width: 981px) {
  .cta-bar { display: none; }
}

/* Lightbox */
.lightbox {
  width: 100%; height: 100%;
  max-width: none; max-height: none;
  margin: 0; padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--ink) 96%, transparent);
  color: var(--on-dark);
  overflow: hidden;
}
.lightbox[open] { display: grid; grid-template-rows: auto 1fr; }
.lightbox::backdrop { background: color-mix(in srgb, var(--ink) 70%, transparent); }
.lightbox__bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s-2) var(--s-3) var(--s-2) var(--s-5);
}
.lightbox__count { margin: 0; font-size: var(--fs-small); font-weight: 500; font-variant-numeric: tabular-nums; }
.lightbox__btn {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border: 0; border-radius: 50%;
  background: color-mix(in srgb, var(--surface) 12%, transparent);
  color: var(--on-dark);
  cursor: pointer;
  transition: background-color var(--t);
}
.lightbox__btn:hover { background: color-mix(in srgb, var(--surface) 24%, transparent); }
.lightbox__figure {
  min-height: 0;
  display: grid; grid-template-rows: 1fr auto; place-items: center;
  gap: var(--s-3);
  padding: 0 var(--s-3) calc(var(--s-5) + env(safe-area-inset-bottom));
  touch-action: pan-y;
}
.lightbox__img {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain;
  min-height: 0;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  user-select: none;
}
.lightbox__caption { font-size: 0.9375rem; text-align: center; color: var(--on-dark-muted); }
.lightbox__nav { position: fixed; top: 50%; margin-top: -24px; }
.lightbox__nav--prev { left: var(--s-3); }
.lightbox__nav--next { right: var(--s-3); }

@media (max-width: 767px) {
  /* en móvil se navega con gesto; las flechas bajan junto al pie */
  .lightbox__nav { top: auto; bottom: calc(var(--s-3) + env(safe-area-inset-bottom)); margin-top: 0; }
  .lightbox__figure { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
}
@media (min-width: 981px) {
  .lightbox__figure { padding-inline: 96px; }
}
