/* ============================================================
   La Amalita — hoja de estilos
   Paleta y tipografía derivadas de las fotos de la finca:
   teja de barro, pasto, madera oscura y muro encalado.
   ============================================================ */

/* ---------- 1. Tokens ---------- */
:root {
  /* color */
  --verde-tinta:   #17251A;   /* texto principal */
  --verde-hondo:   #1B2E1F;   /* fondos oscuros */
  --verde-musgo:   #2E4A33;   /* primario */
  --verde-salvia:  #6E8C73;
  --terracota:     #A9502C;   /* acento, techos de barro */
  --terracota-alt: #C4703F;
  --dorado:        #B8862F;
  --dorado-claro:  #E0B463;
  --crema:         #FAF6EE;   /* fondo base */
  --arena:         #F0E7D6;
  --hueso:         #FFFDF8;
  --linea:         #E2D8C4;
  --gris-texto:    #4E5A50;   /* secundario, 7.2:1 sobre crema */
  /* El verde de marca de WhatsApp (#25D366) sólo da 1.8:1 con texto
     blanco. Se usa un tono más oscuro: 5.4:1, sigue leyéndose como
     WhatsApp y cumple AA para texto normal. */
  --wa:            #25D366;
  --wa-oscuro:     #107A42;

  /* tipografía */
  --display: "Playfair Display", "Iowan Old Style", Georgia, serif;
  --texto:   "Karla", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* escala fluida */
  --t-xs:  0.8125rem;
  --t-sm:  0.9375rem;
  --t-md:  clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-lg:  clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
  --h3:    clamp(1.1875rem, 1.1rem + 0.4vw, 1.4375rem);
  --h2:    clamp(2rem, 1.5rem + 2.2vw, 3.5rem);
  --h1:    clamp(2.5rem, 1.7rem + 3.6vw, 5rem);

  /* ritmo */
  --shell:   1240px;
  --gutter:  clamp(1.25rem, 4vw, 3rem);
  --bloque:  clamp(4.5rem, 9vw, 8.5rem);
  --r-sm: 6px;
  --r-md: 14px;
  --r-lg: 22px;

  /* elevación */
  --sombra-sm: 0 1px 2px rgba(23, 37, 26, .06), 0 4px 12px rgba(23, 37, 26, .05);
  --sombra-md: 0 2px 6px rgba(23, 37, 26, .07), 0 14px 34px rgba(23, 37, 26, .09);
  --sombra-lg: 0 8px 20px rgba(23, 37, 26, .1), 0 30px 70px rgba(23, 37, 26, .16);

  /* capas */
  --z-sticky: 10;
  --z-header: 20;
  --z-float:  30;
  --z-modal:  50;

  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--crema);
  color: var(--verde-tinta);
  font-family: var(--texto);
  font-size: var(--t-md);
  line-height: 1.7;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, picture, svg, video { display: block; max-width: 100%; }
img { height: auto; background: var(--arena); }

/* La regla de arriba le gana a la del user-agent para [hidden], así que
   los <svg hidden> y <li hidden> seguirían visibles sin esto. */
[hidden] { display: none !important; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.015em;
  text-wrap: balance;
  margin: 0;
}
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

:where(a, button, summary, [tabindex]):focus-visible {
  outline: 2.5px solid var(--terracota);
  outline-offset: 3px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--verde-hondo); color: var(--hueso);
  padding: .75rem 1.25rem;
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-size: var(--t-sm); font-weight: 600; text-decoration: none;
  transition: transform .2s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 3. Layout ---------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.shell--narrow { max-width: 780px; }

.section { padding-block: var(--bloque); }
.section--sand { background: var(--arena); }
.section--dark { background: var(--verde-hondo); color: var(--crema); }

.section-head { max-width: 46rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-title { font-size: var(--h2); }
.section-lead {
  margin-top: 1.25rem;
  font-size: var(--t-lg);
  color: var(--gris-texto);
  max-width: 40rem;
}
.section-lead strong { color: var(--verde-tinta); font-weight: 600; }
.section-lead--light { color: rgba(250, 246, 238, .82); }
.section-lead--light strong { color: var(--hueso); }
.section--dark p { color: rgba(250, 246, 238, .82); }

.eyebrow {
  margin: 0 0 1rem;
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--terracota);
  display: flex; align-items: center; gap: .75rem;
}
.eyebrow::after {
  content: ""; flex: 1; height: 1px; max-width: 4.5rem;
  background: currentColor; opacity: .35;
}
.eyebrow--light { color: var(--dorado-claro); }

.icon { width: 24px; height: 24px; stroke: currentColor; fill: none;
        stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.icon--lg { width: 30px; height: 30px; }

/* ---------- 4. Botones ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: currentColor;
  display: inline-flex; align-items: center; justify-content: center;
  gap: .6rem;
  min-height: 46px;
  padding: .75rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit; font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .22s var(--ease), color .22s var(--ease),
              border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.btn .icon { width: 19px; height: 19px; flex: none; }

.btn--solid  { --btn-bg: var(--terracota); --btn-fg: #fff; box-shadow: var(--sombra-sm); }
.btn--solid:hover  { --btn-bg: #8E4123; box-shadow: var(--sombra-md); }

.btn--outline { --btn-fg: var(--verde-musgo); border-color: var(--verde-musgo); }
.btn--outline:hover { --btn-bg: var(--verde-musgo); --btn-fg: #fff; }

.btn--ghost {
  --btn-fg: #fff;
  border-color: rgba(255, 255, 255, .5);
  backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, .1);
}
.btn--ghost:hover { --btn-bg: rgba(255, 255, 255, .95); --btn-fg: var(--verde-hondo); border-color: transparent; }

.btn--lg { min-height: 54px; padding: .95rem 2rem; font-size: var(--t-md); }
.btn--sm { min-height: 40px; padding: .5rem 1.1rem; font-size: var(--t-sm); }

/* El subrayado va en un pseudo-elemento para poder darle alto de
   toque cómodo sin separar la línea del texto. */
.link-arrow {
  position: relative;
  display: inline-flex; align-items: center; gap: .5rem;
  margin-top: .5rem; padding-block: .55rem;
  font-weight: 600; font-size: var(--t-sm);
  color: var(--dorado-claro);
  text-decoration: none;
  transition: gap .22s var(--ease), color .22s var(--ease);
}
.link-arrow::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: .4rem;
  height: 1.5px; background: currentColor;
}
.link-arrow:hover { gap: .9rem; color: var(--hueso); }
.link-arrow .icon { width: 18px; height: 18px; }

/* ---------- 5. Header ---------- */
.site-header {
  position: fixed; inset: 1rem 1rem auto;
  z-index: var(--z-header);
  border-radius: 999px;
  background: rgba(27, 46, 31, .28);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid rgba(255, 255, 255, .16);
  color: var(--hueso);
  transition: background-color .3s var(--ease), color .3s var(--ease),
              border-color .3s var(--ease), box-shadow .3s var(--ease);
}
.site-header.is-stuck {
  background: rgba(255, 253, 248, .93);
  color: var(--verde-tinta);
  border-color: var(--linea);
  box-shadow: var(--sombra-md);
}
.site-header__inner {
  display: flex; align-items: center; gap: 1.25rem;
  min-height: 62px;
  padding-block: .4rem;
}

.brand {
  display: flex; align-items: center; gap: .65rem;
  text-decoration: none; color: inherit; margin-right: auto;
}
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__text strong {
  font-family: var(--display); font-size: 1.2rem; font-weight: 500;
  letter-spacing: -.01em;
}
.brand__text small {
  font-size: .625rem; letter-spacing: .16em; text-transform: uppercase;
  opacity: .72; font-weight: 500;
}

.site-nav { display: flex; gap: clamp(.5rem, 1.6vw, 1.5rem); }
.site-nav a {
  position: relative;
  padding: .4rem .1rem;
  font-size: var(--t-sm); font-weight: 500;
  text-decoration: none;
  opacity: .88;
  transition: opacity .2s var(--ease);
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1.5px; background: currentColor;
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s var(--ease);
}
.site-nav a:hover { opacity: 1; }
.site-nav a:hover::after, .site-nav a.is-current::after { transform: scaleX(1); }

.site-header__cta { flex: none; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; flex: none;
  padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 20px; height: 1.6px; margin: 4.5px auto;
  background: currentColor; border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s var(--ease);
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.1px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.1px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */
.hero {
  position: relative;
  min-height: min(100svh, 900px);
  display: flex; flex-direction: column; justify-content: flex-end;
  padding-block: 9rem clamp(3rem, 7vw, 5rem);
  color: var(--hueso);
  overflow: hidden;
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; background: var(--verde-hondo); }
/* El <video> muestra su poster mientras no hay fuente, así que el mismo
   elemento sirve de imagen de fondo cuando el video no se carga. */
.hero__video {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 50%;
  display: block;
}

/* Botón de pausa del video (WCAG 2.2.2) */
.hero__videobtn {
  position: absolute; right: 1.15rem; top: 5.5rem;
  z-index: 2;
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255, 253, 248, .35);
  border-radius: 999px;
  background: rgba(15, 26, 18, .45);
  backdrop-filter: blur(6px);
  color: var(--hueso);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.hero__videobtn:hover { background: rgba(15, 26, 18, .75); border-color: rgba(255, 253, 248, .6); }
.hero__videobtn svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round;
}
.hero__videobtn .hero__videobtn-play { fill: currentColor; stroke: none; }

.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(15, 26, 18, .93) 0%, rgba(15, 26, 18, .55) 42%, rgba(15, 26, 18, .18) 72%, rgba(15, 26, 18, .35) 100%);
}

.hero__body { max-width: 56rem; }
.hero__title { font-size: var(--h1); margin-bottom: 1.4rem; }
.hero__title em {
  font-style: italic; font-weight: 400;
  color: var(--dorado-claro);
}
.hero__lead {
  max-width: 40rem;
  font-size: var(--t-lg);
  color: rgba(255, 253, 248, .88);
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: .85rem;
  margin-top: 2rem;
}

.hero__stats {
  display: flex; flex-wrap: wrap;
  gap: clamp(1.5rem, 5vw, 3.5rem);
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding: 1.5rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 253, 248, .22);
}
.hero__stats li { display: flex; flex-direction: column; }
.hero__stats b {
  font-family: var(--display); font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 500; line-height: 1; font-variant-numeric: tabular-nums;
}
.hero__stats span {
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255, 253, 248, .68); margin-top: .4rem;
}

.hero__scroll {
  position: absolute; left: 50%; bottom: 1.25rem;
  transform: translateX(-50%);
  width: 26px; height: 42px;
  border: 1.5px solid rgba(255, 253, 248, .45);
  border-radius: 999px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 9px;
  width: 3px; height: 7px; margin-left: -1.5px;
  background: rgba(255, 253, 248, .8); border-radius: 2px;
  animation: scrollCue 1.9s var(--ease) infinite;
}
@keyframes scrollCue {
  0%, 100% { transform: translateY(0); opacity: 1; }
  60%      { transform: translateY(13px); opacity: 0; }
}

/* ---------- 7. Barra de ubicación ---------- */
.locbar {
  background: var(--verde-hondo);
  color: rgba(250, 246, 238, .82);
  font-size: var(--t-sm);
}
.locbar__track {
  display: flex; flex-wrap: wrap;
  gap: .6rem clamp(1.5rem, 4vw, 3.5rem);
  padding-block: 1.15rem;
}
.locbar p { margin: 0; display: flex; align-items: baseline; gap: .45rem; }
.locbar b { color: var(--dorado-claro); font-weight: 600; }

/* ---------- 8. Bento de experiencias ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: clamp(.85rem, 1.6vw, 1.25rem);
  list-style: none; margin: 0; padding: 0;
}
.bento__item {
  position: relative;
  display: flex; flex-direction: column; justify-content: flex-end;
  min-height: 260px;
  border-radius: var(--r-lg);
  background: var(--hueso);
  border: 1px solid var(--linea);
  overflow: hidden;
  isolation: isolate;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.bento__item:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }

.bento__item picture { position: absolute; inset: 0; z-index: -2; }
.bento__item picture img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s var(--ease);
}
.bento__item:hover picture img { transform: scale(1.05); }
/* Degradado generoso a propósito: el turco (mármol blanco) y la vista
   panorámica (cielo) son fotos claras y el texto va en blanco encima. */
.bento__item:has(picture)::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top,
    rgba(15, 26, 18, .94) 15%, rgba(15, 26, 18, .62) 52%, rgba(15, 26, 18, .1) 88%);
}
.bento__item:has(picture) .bento__body { color: var(--hueso); }
.bento__item:has(picture) .bento__body p { color: rgba(255, 253, 248, .8); }
.bento__item:has(picture) .bento__body .icon { color: var(--dorado-claro); }

.bento__body { padding: clamp(1.35rem, 2.4vw, 1.85rem); }
.bento__body .icon { color: var(--terracota); margin-bottom: .9rem; }
.bento__body h3 { font-size: var(--h3); margin-bottom: .45rem; }
.bento__body p { font-size: var(--t-sm); color: var(--gris-texto); line-height: 1.6; }
.bento__body--plain { display: flex; flex-direction: column; height: 100%; justify-content: flex-start; }

/* Tarjeta destacada: el aseo incluido es la objeción que más se repite */
.bento__item--acento {
  background: var(--verde-musgo);
  border-color: var(--verde-musgo);
  color: var(--hueso);
}
.bento__item--acento .bento__body .icon { color: var(--dorado-claro); }
.bento__item--acento .bento__body p { color: rgba(255, 253, 248, .84); }

@media (min-width: 900px) {
  /* 4 columnas × 3 filas, sin huecos:
     fila 1  jacuzzi(2)  turco       bbq
     fila 2  vista(2)    bronceo     aseo
     fila 3  chimenea    parqueadero corredores(2)     */
  .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 260px; }
  .bento__item--wide  { grid-column: span 2; }
  .bento__item--xwide { grid-column: span 3; }
  .bento__item--tall  { grid-row: span 2; }
}

/* ---------- 9. Split (texto + imagen) ---------- */
.split {
  display: grid;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__figure { order: -1; }
}
.split__text > p { max-width: 34rem; }
.split__text .section-title { margin-bottom: 1.5rem; }

.split__figure { margin: 0; }
.split__figure img {
  width: 100%; border-radius: var(--r-lg);
  box-shadow: var(--sombra-lg);
  object-fit: cover;
}
.split__figure figcaption {
  margin-top: .9rem; font-size: var(--t-sm); color: var(--gris-texto);
  font-style: italic;
}

/* Lista de distancias (sección Cómo llegar) */
.distances {
  display: grid; gap: .9rem;
  margin: 2rem 0; padding: 0;
  list-style: none;
}
.distances li {
  display: flex; align-items: flex-start; gap: .8rem;
  font-size: var(--t-sm); line-height: 1.5;
  color: var(--gris-texto);
}
.distances .icon { flex: none; width: 22px; height: 22px; margin-top: 1px; color: var(--terracota); }
.distances b {
  color: var(--verde-tinta); font-weight: 700;
  margin-right: .3rem;
}
.fineprint {
  font-size: var(--t-xs); color: var(--gris-texto);
  font-style: italic; margin-bottom: 1.5rem;
}

.collage {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(.7rem, 1.5vw, 1rem);
  list-style: none; margin: 0; padding: 0;
}
.collage { align-items: start; }
/* El desfase va por margen, no por transform: así el contenedor
   crece con él y la última fila no se sale de la sección. */
.collage li { margin: 0; }
.collage li:nth-child(odd) { margin-top: clamp(1rem, 3vw, 2.5rem); }
.collage img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--sombra-md);
  transition: transform .4s var(--ease);
}
.collage img:hover { transform: scale(1.03); }

/* ---------- 10. Habitaciones ---------- */
.rooms {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.75rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 960px) { .rooms { grid-template-columns: repeat(4, 1fr); } }
.room { display: flex; flex-direction: column; }
.room img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: var(--r-md);
  box-shadow: var(--sombra-sm);
  transition: box-shadow .3s var(--ease), transform .35s var(--ease);
}
.room:hover img { box-shadow: var(--sombra-md); transform: translateY(-4px); }
.room__body { padding-top: 1.1rem; }
.room__body h3 { font-size: var(--h3); margin-bottom: .3rem; }
.room__body p { font-size: var(--t-sm); color: var(--gris-texto); line-height: 1.6; }

/* ---------- 11. Granja ---------- */
.farm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 860px) { .farm { grid-template-columns: repeat(4, 1fr); } }
.farm__card { position: relative; border-radius: var(--r-md); overflow: hidden; isolation: isolate; }
.farm__card img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .6s var(--ease);
}
.farm__card:hover img { transform: scale(1.06); }
.farm__card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 18, .85) 4%, rgba(15, 26, 18, 0) 52%);
}
.farm__card h3 {
  position: absolute; left: 1.15rem; bottom: 1rem; z-index: 1;
  margin: 0; color: var(--hueso); font-size: var(--h3);
}

/* ---------- 12. Eventos ---------- */
.events {
  position: relative;
  color: var(--hueso);
  isolation: isolate;
  overflow: hidden;
}
.events__media { position: absolute; inset: 0; z-index: -2; }
.events__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.events::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, rgba(15, 26, 18, .95) 0%, rgba(15, 26, 18, .88) 42%, rgba(15, 26, 18, .55) 100%);
}
.events__text { max-width: 44rem; }
.events__text .section-title { margin-bottom: 1.25rem; }

.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 1.75rem 0 0; padding: 0; }
.chips li {
  padding: .4rem 1rem;
  border: 1px solid rgba(255, 253, 248, .3);
  border-radius: 999px;
  font-size: var(--t-sm);
  background: rgba(255, 253, 248, .07);
}

.specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
  gap: 1.25rem 1.75rem;
  margin: 2.25rem 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 253, 248, .22);
}
.specs div { display: flex; flex-direction: column; gap: .2rem; }
.specs dt {
  font-size: var(--t-xs); letter-spacing: .12em; text-transform: uppercase;
  color: var(--dorado-claro); font-weight: 600;
}
.specs dd { margin: 0; font-family: var(--display); font-size: 1.2rem; }

/* ---------- 12b. Ficha técnica (bloque extraíble) ---------- */
.lede { font-size: var(--t-lg); }
.lede strong { font-weight: 600; }

.split--data { align-items: start; }
@media (min-width: 900px) { .split--data { grid-template-columns: 1.05fr .95fr; } }

.ficha__titulo {
  font-size: var(--t-sm); font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--terracota);
  margin-bottom: 1rem;
  font-family: var(--texto);
}
.ficha {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--t-sm);
  background: var(--hueso);
  border: 1px solid var(--linea);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ficha tr + tr { border-top: 1px solid var(--linea); }
.ficha th, .ficha td { padding: .8rem 1.1rem; text-align: left; vertical-align: top; }
.ficha th {
  width: 42%;
  font-weight: 600; color: var(--verde-musgo);
  background: rgba(240, 231, 214, .5);
}
.ficha td { color: var(--gris-texto); }
.ficha td strong { color: var(--verde-tinta); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* ---------- 12c. Actividades ---------- */
.acts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none; margin: 0 0 clamp(2rem, 4vw, 3rem); padding: 0;
}
.act {
  padding: clamp(1.4rem, 2.4vw, 1.9rem);
  background: var(--hueso);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.act:hover { transform: translateY(-4px); box-shadow: var(--sombra-md); }
.act .icon { color: var(--terracota); margin-bottom: .9rem; }
.act h3 { font-size: var(--h3); margin-bottom: .45rem; }
.act p { font-size: var(--t-sm); color: var(--gris-texto); line-height: 1.6; }

/* ---------- 12d. Testimonios ---------- */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 1000px) {
  .quotes { grid-template-columns: repeat(6, 1fr); }
  .quote { grid-column: span 2; }
  .quote:nth-child(4) { grid-column: 2 / span 2; }
  .quote:nth-child(5) { grid-column: 4 / span 2; }
}
.quote {
  display: flex; flex-direction: column;
  padding: clamp(1.5rem, 2.6vw, 2rem);
  background: var(--hueso);
  border: 1px solid var(--linea);
  border-radius: var(--r-lg);
}
.quote__mark { width: 30px; height: 30px; color: var(--arena); margin-bottom: .5rem; flex: none; }

/* Variante de compromiso: mismo mosaico, pero con ícono y titular
   en vez de cita entrecomillada. */
.quote--pacto .icon { color: var(--terracota); margin-bottom: 1rem; flex: none; }
.quote--pacto h3 { font-size: var(--h3); margin-bottom: .5rem; }
.quote--pacto p { font-size: var(--t-sm); color: var(--gris-texto); line-height: 1.6; }
.quote blockquote { margin: 0; flex: 1; }
.quote blockquote p {
  font-family: var(--display); font-size: 1.15rem; line-height: 1.5;
  color: var(--verde-tinta);
}
.quote__autor {
  margin: 1.25rem 0 0; padding-top: 1rem;
  border-top: 1px solid var(--linea);
  display: flex; flex-direction: column; gap: .1rem;
}
.quote__autor b { font-size: var(--t-sm); font-weight: 700; }
.quote__autor span { font-size: var(--t-xs); color: var(--gris-texto); }

/* ---------- 12e. Mapa ---------- */
.mapa {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sombra-lg);
  background: var(--arena);
}
.mapa img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.mapa iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mapa__cargar {
  position: absolute; left: 50%; bottom: 1.1rem;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 46px; padding: .7rem 1.35rem;
  border: 0; border-radius: 999px;
  background: rgba(255, 253, 248, .95);
  backdrop-filter: blur(8px);
  color: var(--verde-tinta);
  font: inherit; font-size: var(--t-sm); font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--sombra-md);
  transition: background-color .2s var(--ease), color .2s var(--ease);
}
.mapa__cargar:hover { background: var(--verde-musgo); color: var(--hueso); }
.mapa__cargar .icon { width: 18px; height: 18px; }
.mapacciones { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.25rem; }

/* ---------- 13. Galería ---------- */
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.chip {
  min-height: 40px;
  padding: .45rem 1.15rem;
  border: 1.5px solid var(--linea);
  border-radius: 999px;
  background: var(--hueso);
  color: var(--gris-texto);
  font: inherit; font-size: var(--t-sm); font-weight: 600;
  cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.chip:hover { border-color: var(--verde-salvia); color: var(--verde-tinta); }
.chip.is-active { background: var(--verde-musgo); border-color: var(--verde-musgo); color: var(--hueso); }

.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);   /* móvil: siempre 2 columnas */
  gap: clamp(.6rem, 1.2vw, 1rem);
  list-style: none; margin: 0; padding: 0;
}
@media (min-width: 620px)  { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .gallery { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1180px) { .gallery { grid-template-columns: repeat(5, 1fr); } }
.gallery li { margin: 0; }
.gallery__btn {
  position: relative;
  display: block; width: 100%; padding: 0;
  border: 0; border-radius: var(--r-md);
  background: var(--arena);
  overflow: hidden; cursor: pointer;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.gallery__btn img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
  transition: transform .6s var(--ease);
}
.gallery__btn:hover { box-shadow: var(--sombra-md); transform: translateY(-3px); }
.gallery__btn:hover img { transform: scale(1.06); }
.gallery__btn::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(15, 26, 18, .55), transparent 55%);
  opacity: 0; transition: opacity .3s var(--ease);
}
.gallery__btn:hover::after, .gallery__btn:focus-visible::after { opacity: 1; }
.gallery__label {
  position: absolute; left: .85rem; right: .85rem; bottom: .75rem;
  color: var(--hueso); font-size: var(--t-xs); font-weight: 600;
  text-align: left; line-height: 1.35;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.gallery__btn:hover .gallery__label, .gallery__btn:focus-visible .gallery__label {
  opacity: 1; transform: none;
}
.gallery__empty { color: var(--gris-texto); font-style: italic; }

/* ---------- 14. FAQ ---------- */
.faq { border-top: 1px solid var(--linea); }
.faq details { border-bottom: 1px solid var(--linea); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display); font-size: var(--h3);
  cursor: pointer; list-style: none;
  transition: color .2s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--terracota); }
.faq summary::after {
  content: ""; flex: none;
  width: 13px; height: 13px;
  border-right: 1.8px solid currentColor; border-bottom: 1.8px solid currentColor;
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .3s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-3px, -3px); }
.faq__body { padding-bottom: 1.5rem; max-width: 44rem; }
.faq__body p { color: var(--gris-texto); font-size: var(--t-sm); }
.faq__body a { color: var(--terracota); font-weight: 600; }

/* ---------- 15. CTA final ---------- */
.cta-final {
  position: relative;
  padding-block: clamp(5rem, 10vw, 9rem);
  color: var(--hueso);
  text-align: center;
  isolation: isolate; overflow: hidden;
}
.cta-final__media { position: absolute; inset: 0; z-index: -2; }
.cta-final__media img { width: 100%; height: 100%; object-fit: cover; }
.cta-final::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, rgba(15, 26, 18, .82), rgba(15, 26, 18, .9));
}
.cta-final__body { max-width: 46rem; margin-inline: auto; }
.cta-final .eyebrow { justify-content: center; }
.cta-final .eyebrow::after { display: none; }
.cta-final .section-lead { margin-inline: auto; margin-bottom: 2.25rem; }
.cta-final__phone { margin-top: 1.5rem; font-size: var(--t-sm); color: rgba(255, 253, 248, .7); }
.cta-final__phone a { color: var(--dorado-claro); font-weight: 600; }

/* ---------- 16. Footer ---------- */
.site-footer { background: var(--verde-hondo); color: rgba(250, 246, 238, .78); padding-top: clamp(3rem, 6vw, 4.5rem); }
.site-footer__inner {
  display: grid; gap: 2.5rem;
  padding-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .site-footer__inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
}
.site-footer__brand { display: flex; gap: .9rem; align-items: flex-start; color: var(--crema); }
.site-footer__brand .brand__mark { width: 34px; height: 34px; flex: none; }
.site-footer__brand p { font-size: var(--t-sm); line-height: 1.6; }
.site-footer__brand strong { font-family: var(--display); font-size: 1.25rem; font-weight: 500; }

/* gap chico + padding vertical: mismo ritmo visual, pero cada enlace
   queda con un área de toque cómoda en celular. */
.site-footer__nav, .site-footer__contact { display: flex; flex-direction: column; gap: .1rem; }
.site-footer__nav a, .site-footer__contact a { padding-block: .55rem; }
.site-footer a { font-size: var(--t-sm); text-decoration: none; transition: color .2s var(--ease); }
.site-footer a:hover { color: var(--dorado-claro); }
.site-footer__contact a { font-weight: 600; color: var(--crema); }

.site-footer__legal {
  border-top: 1px solid rgba(250, 246, 238, .14);
  padding-block: 1.5rem;
  font-size: var(--t-xs);
  color: rgba(250, 246, 238, .55);
}

/* ---------- 17. WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 1.15rem; bottom: 1.15rem;
  z-index: var(--z-float);
  display: inline-flex; align-items: center; gap: .55rem;
  min-height: 54px; padding: .8rem 1.4rem;
  border-radius: 999px;
  background: var(--wa-oscuro); color: #fff;
  font-size: var(--t-sm); font-weight: 700;
  text-decoration: none;
  box-shadow: 0 6px 16px rgba(16, 122, 66, .3), var(--sombra-md);
  transition: background-color .22s var(--ease), box-shadow .22s var(--ease);
}
.wa-float:hover { background: #0D6E3C; box-shadow: 0 10px 26px rgba(16, 122, 66, .42); }
.wa-float svg { width: 24px; height: 24px; flex: none; }
@media (max-width: 600px) {
  .wa-float { padding: .85rem; }
  .wa-float span { display: none; }
}

/* ---------- 18. Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(.5rem, 2vw, 1.5rem);
  padding: clamp(1rem, 4vw, 3rem);
  background: rgba(11, 19, 13, .96);
  backdrop-filter: blur(8px);
  animation: fadeIn .25s var(--ease);
}
.lightbox[hidden] { display: none; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.lightbox__figure {
  grid-column: 2;
  margin: 0; display: flex; flex-direction: column; align-items: center;
  gap: 1rem; min-width: 0;
}
.lightbox__figure img {
  max-width: 100%; max-height: 78svh;
  width: auto; border-radius: var(--r-md);
  object-fit: contain; background: transparent;
  box-shadow: var(--sombra-lg);
}
.lightbox__figure figcaption {
  color: rgba(255, 253, 248, .8); font-size: var(--t-sm);
  text-align: center; max-width: 44rem;
}

.lightbox__close, .lightbox__nav {
  display: grid; place-items: center;
  width: 48px; height: 48px;
  border: 1px solid rgba(255, 253, 248, .25);
  border-radius: 999px;
  background: rgba(255, 253, 248, .08);
  color: var(--hueso);
  cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.lightbox__close:hover, .lightbox__nav:hover {
  background: rgba(255, 253, 248, .2); border-color: rgba(255, 253, 248, .5);
}
.lightbox__close { position: absolute; top: clamp(1rem, 3vw, 2rem); right: clamp(1rem, 3vw, 2rem); }
.lightbox__nav--prev { grid-column: 1; }
.lightbox__nav--next { grid-column: 3; }
.lightbox svg { width: 22px; height: 22px; fill: none; stroke: currentColor;
                stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.lightbox__counter {
  position: absolute; left: 50%; bottom: clamp(.75rem, 2vw, 1.5rem);
  transform: translateX(-50%);
  margin: 0; font-size: var(--t-xs); letter-spacing: .12em;
  color: rgba(255, 253, 248, .6); font-variant-numeric: tabular-nums;
}

body.is-locked { overflow: hidden; }

/* ---------- 19. Reveal al hacer scroll ----------
   Sólo se oculta si JS está activo (clase .js en <html>).
   Sin JS el contenido se ve siempre. */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}

/* ---------- 20. Responsive ---------- */
@media (max-width: 1040px) {
  .site-nav {
    position: absolute; inset: calc(100% + .6rem) 0 auto;
    flex-direction: column; gap: 0;
    padding: .6rem;
    border-radius: var(--r-lg);
    background: rgba(255, 253, 248, .97);
    backdrop-filter: blur(14px);
    border: 1px solid var(--linea);
    box-shadow: var(--sombra-lg);
    color: var(--verde-tinta);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  }
  .site-nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .site-nav a { padding: .85rem 1rem; border-radius: var(--r-sm); opacity: 1; }
  .site-nav a::after { display: none; }
  .site-nav a:hover { background: var(--arena); }
  .nav-toggle { display: block; }
  .site-header { border-radius: var(--r-lg); }
}

@media (max-width: 560px) {
  .site-header__cta { display: none; }

  /* En vertical la foto ocupa menos alto útil: se aligera el
     degradado y se ajusta el aire para que la casa se vea. */
  .hero { padding-block: 7rem 6.5rem; }
  .hero::after {
    background: linear-gradient(to top,
      rgba(15, 26, 18, .94) 0%, rgba(15, 26, 18, .78) 34%,
      rgba(15, 26, 18, .3) 62%, rgba(15, 26, 18, .42) 100%);
  }
  .hero__stats {
    display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem 1.5rem;
  }
  .hero__actions .btn { width: 100%; }
  .hero__scroll { display: none; }   /* choca con las estadísticas */
  .lightbox { grid-template-columns: 1fr; padding-inline: .75rem; }
  .lightbox__figure { grid-column: 1; }
  .lightbox__nav { position: absolute; bottom: 2.75rem; }
  .lightbox__nav--prev { left: 1rem; }
  .lightbox__nav--next { right: 1rem; }
  .lightbox__counter { bottom: 4.5rem; }
}

/* ---------- 21. Preferencias del usuario ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .hero__media img { animation: none; }
}

@media print {
  .site-header, .wa-float, .hero__scroll, .filters, .lightbox { display: none !important; }
  body { background: #fff; color: #000; }
}
