/* ==========================================================================
   Monserrat Bungalows · Pinamar — "Sombra de pino"
   ========================================================================== */

@font-face { font-family: "Figtree"; font-style: normal; font-weight: 300 900; font-display: swap; src: url("../fonts/figtree.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 200 800; font-display: swap; src: url("../fonts/newsreader-italic.woff2") format("woff2"); }

:root {
  /* color */
  --paper: #FAF7F1;
  --sand: #F3ECDF;
  --dune: #E6DCCB;
  --ink: #1C2620;
  --body: #3D4741;
  --muted: #66675C;
  --pine: #24402F;
  --pine-deep: #1A3123;
  --atlantic: #3F5B67;
  --clay: #A4502F;
  --lichen: #BFC8B8;
  --line: #D8CCB6;
  --field: #FFFDF9;

  /* type */
  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-text: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step--1: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.18vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.12rem + 0.3vw, 1.375rem);
  --step-2: clamp(1.5rem, 1.35rem + 0.7vw, 2rem);
  --step-3: clamp(2rem, 1.7rem + 1.5vw, 3rem);
  --step-4: clamp(2.5rem, 1.9rem + 3vw, 4.5rem);
  --step-5: clamp(3rem, 2.3rem + 3.5vw, 5.5rem);

  /* layout */
  --gutter: clamp(20px, 5vw, 64px);
  --content: min(1240px, 100vw - 2 * var(--gutter));
  --col-gap: 24px;
  --section-y: clamp(4rem, 3rem + 5vw, 8rem);
  --header-h: 72px;
  --r-photo: 4px;
  --r-card: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);

  color-scheme: light;
}

@media (max-width: 767px) {
  :root { --gutter: 20px; --header-h: 64px; --col-gap: 16px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-h);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-text);
  font-size: var(--step-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p, h1, h2, h3, dl, dd, figure, blockquote, ul { margin: 0; }
ul { padding: 0; list-style: none; }
button, input, textarea, select { font: inherit; color: inherit; }
address { font-style: normal; }
em { font-style: italic; }

:focus-visible { outline: 2px solid var(--atlantic); outline-offset: 3px; border-radius: 2px; }
.site-footer :focus-visible { outline-color: var(--paper); }
.btn-primary:focus-visible { outline-color: var(--atlantic); }

.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: 12px; top: -100px; z-index: 100;
  background: var(--pine); color: var(--paper); padding: 10px 16px; border-radius: 999px;
  text-decoration: none; font-weight: 600; transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.wrap { width: var(--content); margin-inline: auto; }

/* ---------- type ---------- */
.display, .h2, .h2-sm, .h3, .score-num, .facts dd {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  color: var(--ink);
  font-weight: 400;
}
.display { font-size: clamp(2.75rem, 1.6rem + 4.6vw, 5.75rem); line-height: 1.02; letter-spacing: -0.015em; text-wrap: balance; }
.h2 { font-size: var(--step-3); line-height: 1.08; letter-spacing: -0.015em; text-wrap: balance; }
.h2-sm { font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.01em; }
.h3 { font-size: var(--step-1); line-height: 1.25; font-weight: 500; }
.display em, .h2 em { font-style: italic; }
.br-lg { display: none; }
@media (min-width: 768px) { .br-lg { display: inline; } .display { text-wrap: wrap; } }

.lead, .body-lg { font-size: var(--step-1); line-height: 1.55; max-width: 62ch; text-wrap: pretty; }
.body-lg { font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem); }

.eyebrow {
  font-family: var(--font-text);
  font-size: var(--step--1);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.3;
  color: var(--clay);
  margin-bottom: 1.25rem;
}
.eyebrow-ink { color: var(--ink); }
.eyebrow-plain { margin: 0; color: var(--muted); }

.text-link {
  display: inline-flex; align-items: center; gap: .4em;
  color: var(--pine); font-weight: 600; text-decoration: none;
  min-height: 44px;
}
.text-link .tl-text {
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, var(--pine) 45%, transparent);
  transition: text-decoration-thickness .15s var(--ease), text-decoration-color .15s var(--ease);
}
.text-link:hover .tl-text { text-decoration-thickness: 2px; text-decoration-color: var(--pine); }
.text-link span[aria-hidden] { transition: transform .2s var(--ease); }
.text-link:hover span[aria-hidden] { transform: translateX(2px); }

/* ---------- buttons ---------- */
.btn {
  --btn-h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: var(--btn-h); padding: 0 1.5em;
  border-radius: 999px; border: 1.5px solid transparent;
  font-family: var(--font-text); font-weight: 600; font-size: 1rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease), transform .15s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--pine); color: var(--paper); }
.btn-primary:hover { background: var(--pine-deep); }
.btn-outline { background: transparent; color: var(--pine); border-color: var(--pine); }
.btn-outline:hover { background: var(--pine); color: var(--paper); }
.btn-sm { --btn-h: 40px; padding: 0 1.1em; font-size: .9375rem; }
.btn-lg { --btn-h: 56px; padding: 0 1.75em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: color-mix(in srgb, var(--paper) 0%, transparent);
  border-bottom: 1px solid transparent;
  transition: background-color .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.2) blur(10px);
  backdrop-filter: saturate(1.2) blur(10px);
  border-bottom-color: var(--line);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

/* logo del cliente: conserva sus colores; en el footer, copia mono en crema (monserrat-logo-cream.svg) */
.brand { display: inline-flex; align-items: center; min-height: 44px; flex: none; text-decoration: none; }
.brand-logo { width: auto; height: 44px; }
.brand-logo-footer { width: 168px; height: auto; }
@media (max-width: 959px) {
  .header-inner { gap: 12px; }
  .header-actions { gap: 4px; flex: none; }
  .header-cta { --btn-h: 44px; padding: 0 .5em; }
  .nav-toggle { padding: 0 0 0 8px; gap: 8px; min-width: 44px; justify-content: center; }
}
@media (max-width: 767px) { .brand-logo { height: 34px; } }
@media (max-width: 359px) {
  .brand-logo { height: 30px; }
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

.site-nav ul { display: flex; gap: clamp(16px, 2.4vw, 36px); }
.site-nav ul a {
  display: inline-flex; align-items: center; min-height: 44px;
  text-decoration: none; font-weight: 500; color: var(--ink); font-size: .9875rem;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(50% + .8em);
  transition: background-size .25s var(--ease);
}
.site-nav ul a:hover, .site-nav ul a[aria-current="true"] { background-size: 100% 1px; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.nav-wa { display: none; }

.nav-toggle {
  display: none; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 4px 0 12px; background: none; border: 0; cursor: pointer;
  font-weight: 600; color: var(--ink);
}
.nav-toggle-icon { position: relative; width: 22px; height: 12px; }
.nav-toggle-icon span {
  position: absolute; left: 0; right: 0; height: 1.5px; background: currentColor; border-radius: 2px;
  transition: transform .25s var(--ease), top .25s var(--ease);
}
.nav-toggle-icon span:first-child { top: 0; }
.nav-toggle-icon span:last-child { top: 10px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:first-child { top: 5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon span:last-child { top: 5px; transform: rotate(-45deg); }

@media (min-width: 960px) {
  .site-nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
}
@media (max-width: 959px) {
  .nav-toggle { display: inline-flex; }
  .header-cta { background: transparent; color: var(--pine); padding: 0 .6em; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
  .header-cta:hover { background: transparent; text-decoration-thickness: 2px; }
  .site-nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 49;
    background: var(--sand);
    display: flex; flex-direction: column; justify-content: space-between;
    padding: 32px var(--gutter) calc(32px + env(safe-area-inset-bottom));
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .25s var(--ease), visibility 0s linear .25s;
    overflow-y: auto;
  }
  .site-nav.is-open { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .site-nav ul { flex-direction: column; gap: 4px; }
  .site-nav ul a {
    font-family: var(--font-display); font-size: var(--step-3); font-weight: 400; letter-spacing: -0.015em;
    min-height: 56px; background-position: 0 85%;
  }
  .site-nav ul li { border-bottom: 1px solid var(--line); }
  .nav-wa { display: inline-flex; width: 100%; margin-top: 32px; --btn-h: 56px; }
  body.nav-open .site-header { background: var(--sand); border-bottom-color: var(--line); }
}

/* ---------- media frames ---------- */
.media { position: relative; overflow: hidden; border-radius: var(--r-photo); background: var(--dune); }
.media picture, .media img { width: 100%; height: 100%; }
.media img { object-fit: cover; transition: transform .7s var(--ease); }
.r-4x5 { aspect-ratio: 4 / 5; }
.r-3x4 { aspect-ratio: 3 / 4; }
.r-3x2 { aspect-ratio: 3 / 2; }
.r-4x3 { aspect-ratio: 4 / 3; }
.r-1x1 { aspect-ratio: 1 / 1; }
@media (hover: hover) and (pointer: fine) {
  .media:hover img, a:hover > .media img { transform: scale(1.03); }
}

/* ---------- sections ---------- */
.section { padding-block: var(--section-y); }
.section-paper { background: var(--paper); }
.section-sand { background: var(--sand); }
.section-dune { background: var(--dune); }
.section-head { margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem); max-width: 40rem; }
.section-head-split { max-width: none; display: grid; gap: 1.5rem; align-items: end; }
@media (min-width: 1024px) {
  .section-head-split { grid-template-columns: 7fr 5fr; gap: var(--col-gap); align-items: last baseline; }
  .section-head-link > :last-child { justify-self: end; }
}

/* ---------- hero ---------- */
.hero { display: grid; background: var(--paper); }
.hero-text { padding: 2rem var(--gutter) 3rem; }
.hero-text .eyebrow { margin-bottom: 1.5rem; }
.hero .display { margin-bottom: 1.5rem; }
.hero .lead { margin-bottom: 2rem; max-width: 34ch; }
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-bottom: 2rem; }
.proof { font-size: var(--step--1); color: var(--muted); letter-spacing: .01em; }
.proof span[aria-hidden="true"]:first-child { color: var(--clay); }
.proof .dot { margin-inline: .45em; }
.hero-media { position: relative; overflow: hidden; background: var(--dune); height: clamp(220px, 42svh, 420px); }
.hero-media picture, .hero-media img { width: 100%; height: 100%; }
.hero-media img { object-fit: cover; object-position: 50% 20%; }
@media (max-width: 767px) {
  .hero-text { padding: 1.25rem var(--gutter) 2.5rem; }
  .hero-text .eyebrow, .hero .display { margin-bottom: .75rem; }
  .hero .lead { margin-bottom: 1.25rem; }
  .hero-ctas { margin-bottom: 1.25rem; }
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns:
      [full-start] minmax(var(--gutter), 1fr)
      [text-start] minmax(0, calc(var(--content) * 5 / 12))
      [text-end] clamp(32px, 5vw, 96px)
      [media-start] minmax(0, calc(var(--content) * 7 / 12 - clamp(32px, 5vw, 96px)))
      minmax(var(--gutter), 1fr) [full-end];
    min-height: max(560px, calc(88svh - var(--header-h)));
  }
  .hero-text { grid-column: text; grid-row: 1; align-self: center; padding: 3rem 0 4rem; }
  .hero-media { grid-column: media-start / full-end; grid-row: 1; height: auto; min-height: 560px; border-radius: var(--r-photo) 0 0 var(--r-photo); }
  .hero-media img { object-position: 42% 45%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .hero { grid-template-columns: [full-start] var(--gutter) [text-start] minmax(0, 1fr) [text-end] 32px [media-start] minmax(0, 1fr) var(--gutter) [full-end]; }
}

/* ---------- intro ---------- */
.intro-grid { display: grid; gap: 3rem; }
.intro-text .h2 { margin-bottom: 1.5rem; }
.facts {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem var(--col-gap);
  margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--line);
}
.facts div { display: flex; flex-direction: column; }
.facts dd { order: -1; font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; margin-bottom: .5rem; }
.facts dt { font-size: var(--step--1); color: var(--muted); line-height: 1.3; }
.facts-note { margin-top: 1.25rem; font-size: .8125rem; color: var(--muted); }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  .intro-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: start; }
  .intro-text { grid-column: 1 / 8; }
  .intro-photo { grid-column: 9 / 13; margin-top: 64px; }
}

/* ---------- complejo mosaic ---------- */
.features { display: grid; gap: 1.75rem; }
.features li { padding-top: 1.25rem; border-top: 1px solid var(--line); }
.features .h3 { margin-bottom: .35rem; }
.features p { max-width: 40ch; }
.mosaic > a { display: block; }
.mosaic .thumb-label, .mosaic > a:focus-visible .thumb-label { z-index: 1; }
.mosaic > a:hover .thumb-label, .mosaic > a:focus-visible .thumb-label { opacity: 1; transform: none; }
@media (max-width: 1023px) {
  .mosaic { display: grid; grid-template-columns: 1fr; }
  .m-text { display: contents; }
  .mosaic > .m-b { display: none; }
  .m-a { order: 1; } .m-text li:nth-child(1) { order: 2; }
  .m-c { order: 3; } .m-text li:nth-child(2) { order: 4; }
  .m-d { order: 5; } .m-text li:nth-child(3) { order: 6; }
  .m-a { aspect-ratio: 3 / 2; }
  .m-c, .m-d { aspect-ratio: 4 / 3; }
  .m-text li { border-top: 0; padding: 1.25rem 0 2.5rem; }
  .m-text li:last-child { padding-bottom: 0; }
}
@media (min-width: 1024px) {
  .mosaic {
    display: grid; gap: var(--col-gap);
    grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; align-items: stretch;
  }
  .m-a { grid-column: 1 / 9; grid-row: 1; }
  .m-b { grid-column: 9 / 13; grid-row: 1; aspect-ratio: auto; }
  .m-c { grid-column: 1 / 6; grid-row: 2; aspect-ratio: auto; min-height: 24rem; }
  .m-d { grid-column: 6 / 9; grid-row: 2; aspect-ratio: auto; }
  .m-b picture, .m-c picture, .m-d picture { position: absolute; inset: 0; }
  .m-text {
    grid-column: 9 / 13; grid-row: 2; padding: 0; align-self: stretch;
    display: flex; flex-direction: column; justify-content: space-between; gap: 1.25rem;
  }
  .m-text li:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- bungalows (una sola unidad: dúplex en desnivel) ---------- */
.unit-hero { display: grid; gap: 2.5rem; }
.unit-intro .h2 { margin-bottom: 1.5rem; }
.unit-intro .body-lg { max-width: 46ch; }
.unit-facts {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem var(--col-gap);
  margin: 2.5rem 0 1.25rem; padding-top: 1.75rem; border-top: 1px solid var(--line);
}
.unit-facts div { display: flex; flex-direction: column; }
.unit-facts dd { order: -1; font-family: var(--font-display); font-size: var(--step-3); line-height: 1; letter-spacing: -0.015em; color: var(--ink); margin-bottom: .5rem; }
.unit-facts dt { font-size: var(--step--1); color: var(--muted); line-height: 1.3; max-width: 14ch; }
@media (min-width: 1024px) {
  .unit-hero { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: center; }
  .unit-photo { grid-column: 1 / 7; }
  .unit-intro { grid-column: 8 / 13; }
}

.inside { display: grid; gap: 2rem; margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: 2rem; border-top: 1px solid var(--line); }
.inside-head p { color: var(--muted); margin-top: .5rem; }
.levels { list-style: none; padding: 0; margin: 0; display: grid; }
.levels li { padding: 1.5rem 0; border-top: 1px solid var(--line); }
.levels li:first-child { border-top: 0; padding-top: 0; }
.levels .h3 { margin: .35rem 0 .4rem; }
.levels p:not(.level-tag) { max-width: 44ch; }
.level-tag {
  display: flex; align-items: center; gap: .6rem;
  font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); line-height: 1.3;
}
.level-mark { width: 21px; height: 18px; flex: none; fill: none; stroke: var(--line); stroke-width: 2; stroke-linecap: round; }
.level-mark .on { stroke: var(--clay); stroke-width: 2.5; }
/* planos: en mobile, pestañas; en desktop, corte junto a los niveles y las dos plantas abajo */
.plans-tabs { display: none; }
.js .plans-tabs {
  display: flex; gap: 4px; padding: 4px; margin-bottom: 1rem;
  background: var(--sand); border: 1px solid var(--line); border-radius: 999px;
}
.plans-tabs button {
  flex: 1; min-height: 44px; padding: 0 .75rem; border: 0; border-radius: 999px; background: transparent;
  font-size: .9375rem; font-weight: 600; color: var(--body); cursor: pointer; white-space: nowrap;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.plans-tabs button[aria-selected="true"] { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.plans-tabs button:focus-visible { outline-offset: -2px; }
.plan svg { width: 100%; height: auto; overflow: visible; }
.plan figcaption { margin-top: .9rem; font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
.plan figcaption span { display: block; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: .15rem; }
.plans-note { font-size: var(--step--1); color: var(--muted); font-style: italic; margin-top: 1rem; }
.plan-pair { display: grid; gap: 2.5rem; }
@media (max-width: 767px) {
  .js .plan:not(.is-active) { display: none; }
  .plan svg text { font-size: 19px; }
  .plan svg text[font-size="10.5"] { font-size: 14.5px; }
  .plan-corte svg text { font-size: 16.5px; }
  .plan { padding: 1rem 0 0; }
}
@media (min-width: 768px) {
  .js .plans-tabs { display: none; }
  .plan-pair { grid-template-columns: 670fr 412fr; column-gap: clamp(2rem, 1rem + 4vw, 5rem); align-items: end; }
  .plans { margin-top: 1rem; }
  .plan-corte { margin-bottom: 3rem; }
}
@media (min-width: 768px) and (max-width: 1279px) {
  .plan svg text { font-size: 16px; }
  .plan svg text[font-size="10.5"] { font-size: 13px; }
  .plan-corte svg text { font-size: 16.5px; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .unit-photo { aspect-ratio: 4 / 3; }
  .unit-photo img { object-position: 50% 48%; }
}
@media (min-width: 1024px) {
  .inside { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2.5rem; align-items: start; }
  .inside-head { grid-column: 1 / 6; grid-row: 1; }
  .levels { grid-column: 1 / 6; grid-row: 2; }
  .plans { display: contents; }
  .plan-corte { grid-column: 7 / 13; grid-row: 1 / span 2; align-self: center; margin: 0; }
  .plan-corte svg text { font-size: 15px; }
  .plan-pair { grid-column: 2 / 12; grid-row: 3; margin-top: 2.5rem; padding-top: 3rem; border-top: 1px solid var(--line); }
  .plans-note { grid-column: 2 / 12; grid-row: 4; margin: 0; }
}

.included { margin-top: clamp(4rem, 3rem + 4vw, 7rem); padding-top: 2rem; border-top: 1px solid var(--line); display: grid; gap: 1.5rem; }
.included-list { display: grid; gap: 0 var(--col-gap); }
.included-list li { padding: .8rem 0 .8rem 1.4rem; border-bottom: 1px solid var(--line); position: relative; }
.included-list li::before {
  content: ""; position: absolute; left: 0; top: calc(.8rem + .8em); width: .6rem; height: 1px; background: var(--clay);
}
.li-note { display: block; font-size: var(--step--1); color: var(--muted); line-height: 1.4; margin-top: 2px; }
@media (min-width: 640px) { .included-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .included { grid-template-columns: 3fr 9fr; column-gap: var(--col-gap); }
  .included-list { grid-template-columns: repeat(3, 1fr); }
}

.gallery { margin-top: clamp(3.5rem, 3rem + 3vw, 6rem); }
.gallery-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 1rem; }
.gallery-strip {
  display: grid; grid-auto-flow: column; grid-auto-columns: 72vw; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.gallery-strip::-webkit-scrollbar { display: none; }
.gallery-strip li { scroll-snap-align: start; }
.thumb { display: block; height: 100%; }
.thumb-label {
  position: absolute; left: 12px; bottom: 12px;
  padding: 6px 12px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: var(--step--1); font-weight: 600; opacity: 0; transform: translateY(4px);
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.thumb:hover .thumb-label, .thumb:focus-visible .thumb-label { opacity: 1; transform: none; }
@media (min-width: 768px) {
  .gallery-strip {
    grid-auto-flow: row; grid-template-columns: repeat(5, 1fr); gap: 12px;
    overflow: visible; margin: 0; padding: 0;
  }
  .gallery-strip li:first-child { grid-column: span 2; grid-row: span 2; }
  .gallery-strip li:first-child .thumb { aspect-ratio: auto; }
}

/* ---------- interludio: de noche (texto al lado de la foto, nunca encima) ---------- */
.night { background: var(--pine-deep); color: var(--lichen); padding-block: var(--section-y); }
.night-grid { display: grid; gap: 2.5rem; }
.night .eyebrow { color: var(--lichen); }
.night .h2 { color: var(--paper); margin-bottom: 1.5rem; }
.night .body-lg { color: var(--lichen); max-width: 40ch; }
.night .media { background: #0f1d14; }
.night figcaption { color: var(--lichen); margin-top: .75rem; }
.night :focus-visible { outline-color: var(--paper); }
@media (min-width: 768px) {
  .night-grid { grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 96px); align-items: center; }
  .night-photo { grid-column: 2; grid-row: 1; }
  .night-text { grid-column: 1; grid-row: 1; }
}
@media (min-width: 1024px) {
  .night-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); }
  .night-text { grid-column: 2 / 7; }
  .night-photo { grid-column: 8 / 13; }
}

/* ---------- reviews ---------- */
.reviews { display: grid; gap: 3rem; }
.score-num { font-size: var(--step-5); line-height: .9; letter-spacing: -0.02em; margin: 0 0 .75rem; }
.score-meta { color: var(--ink); font-weight: 500; margin-bottom: 2rem; }
.bars { display: grid; gap: .9rem; max-width: 22rem; }
.bars li { display: grid; grid-template-columns: 7.5rem 1fr 2rem; align-items: center; gap: 12px; font-size: var(--step--1); color: var(--body); }
.bars li span:last-child { text-align: right; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.bar { height: 2px; background: var(--line); position: relative; }
.bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 100%); background: var(--atlantic); }
.reviews-head .h2 { margin: 0; }
.quote-featured { margin-top: .5rem; }
.quote-featured blockquote p {
  font-family: var(--font-display); font-style: italic; font-size: var(--step-2);
  line-height: 1.3; color: var(--ink); letter-spacing: -0.01em; max-width: 30ch; text-wrap: balance;
}
figcaption { font-size: var(--step--1); color: var(--body); margin-top: 1rem; }
.quote-row { display: grid; gap: 2rem var(--col-gap); margin: 3rem 0 2rem; }
.quote { padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--ink) 18%, transparent); display: flex; flex-direction: column; }
.quote figcaption { margin-top: auto; padding-top: 1rem; }
.quote blockquote p { color: var(--ink); line-height: 1.55; }
@media (min-width: 768px) { .quote-row { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .reviews { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); row-gap: 2.5rem; align-items: start; }
  .reviews-head { grid-column: 6 / 13; grid-row: 1; }
  .score { grid-column: 1 / 5; grid-row: 1 / span 2; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
  .quotes { grid-column: 6 / 13; grid-row: 2; }
}

/* ---------- pinamar ---------- */
.triptych {
  display: grid; grid-auto-flow: column; grid-auto-columns: 80vw; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.triptych::-webkit-scrollbar { display: none; }
.triptych li { scroll-snap-align: start; }
.triptych figcaption { color: var(--muted); margin-top: .75rem; }
@media (min-width: 768px) {
  .triptych { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: var(--col-gap); overflow: visible; margin: 0; padding: 0; }
}
.location { display: grid; gap: 2.5rem; margin-top: clamp(3rem, 2.5rem + 3vw, 5.5rem); }
.location-text { display: grid; gap: 1.75rem; align-content: start; }
.location address { color: var(--ink); line-height: 1.6; padding-left: 1rem; border-left: 2px solid var(--clay); }
@media (min-width: 1024px) {
  .location { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: center; }
  .location-text { grid-column: 1 / 6; }
  .map { grid-column: 7 / 13; }
}
.map { background: var(--sand); border: 1px solid var(--line); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-facade {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
  background: var(--sand); color: var(--pine); display: grid; place-items: center; align-content: center; gap: 12px;
}
.map-art { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--pine); }
.map-pin { position: relative; width: 44px; height: 44px; color: var(--clay); transition: transform .3s var(--ease); }
.map-pin svg { width: 100%; height: 100%; }
.map-label {
  position: relative; display: inline-flex; align-items: center; min-height: 40px; padding: 0 18px;
  border-radius: 999px; background: var(--pine); color: var(--paper); font-weight: 600; font-size: .9375rem;
  transition: background-color .15s var(--ease);
}
.map-facade:hover .map-pin { transform: translateY(-3px); }
.map-facade:focus-visible { outline: 3px solid var(--atlantic); outline-offset: -6px; }
.map-facade:hover .map-label { background: var(--pine-deep); }

/* ---------- info ---------- */
.info-grid { display: grid; gap: 3rem; }
.info-grid .h2 { margin-bottom: 2.5rem; }
.info-list { display: grid; gap: 0 var(--col-gap); }
.info-list div { padding: 1.1rem 0; border-top: 1px solid var(--line); display: grid; gap: .2rem; }
.info-list dt { font-size: var(--step--1); font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.info-list dd { color: var(--ink); font-size: var(--step-1); line-height: 1.4; }
.info-photo figcaption { color: var(--muted); margin-top: .75rem; }
@media (min-width: 640px) { .info-list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) {
  .info-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: start; }
  .info-grid > div { grid-column: 1 / 8; }
  .info-photo { grid-column: 8 / 13; align-self: end; }
}

/* ---------- contact form ---------- */
.contact-grid { display: grid; gap: 3rem; }
.contact-photo { display: none; }
.contact-body .h2 { margin-bottom: 1rem; }
.contact-body > .body-lg { margin-bottom: 2.5rem; }
@media (min-width: 1024px) {
  .contact-grid { grid-template-columns: repeat(12, 1fr); column-gap: var(--col-gap); align-items: start; }
  .contact-photo { display: block; grid-column: 1 / 6; position: sticky; top: calc(var(--header-h) + 24px); }
  .contact-body { grid-column: 7 / 13; }
}

.form { display: grid; gap: 1.5rem; max-width: 36rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { position: relative; display: grid; gap: .5rem; min-width: 0; border: 0; padding: 0; margin: 0; }
.field label, .field .label, .field legend {
  font-size: .9375rem; font-weight: 600; color: var(--ink); padding: 0;
}
.opt { font-weight: 400; color: var(--muted); }
.field input[type="date"], .field input[type="text"], .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  background: var(--field); border: 1px solid var(--muted); border-radius: var(--r-card);
  color: var(--ink); font-size: 1rem; line-height: 1.4;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
  -webkit-appearance: none; appearance: none;
}
.field input[type="date"] { min-width: 0; }
.field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
@supports (-webkit-touch-callout: none) {
  .field input[type="date"] {
    display: flex; align-items: center; padding-right: 40px;
    background: var(--field) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2324402F' stroke-width='1.8'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E") no-repeat right 12px center / 20px;
  }
  .field input[type="date"].is-empty::before { content: "dd/mm/aaaa"; color: var(--muted); }
}
@media (max-width: 359px) {
  .field-row { gap: 8px; }
  .field input[type="date"] { padding-inline: 8px; }
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:hover, .field textarea:hover { border-color: var(--ink); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--atlantic); outline-offset: 2px; border-color: var(--atlantic); }
.stepper input:focus-visible { outline: none; }
.stepper:has(input:focus-visible) { outline: 2px solid var(--atlantic); outline-offset: 2px; }
::placeholder { color: var(--muted); opacity: 1; }
.field-error { color: var(--clay); font-size: .875rem; font-weight: 500; line-height: 1.35; min-height: 0; }
.field-error:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nights { margin-top: -1rem; font-size: .875rem; color: var(--muted); }
.nights:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.guests-note {
  margin-top: -.5rem; padding: .85rem 1rem; border-radius: var(--r-card);
  background: var(--sand); border: 1px solid var(--line);
  font-size: .9375rem; line-height: 1.5; color: var(--ink);
}
.guests-note:empty { position: absolute; width: 1px; height: 1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.stepper {
  display: grid; grid-template-columns: 44px 1fr 44px; align-items: center;
  min-height: 48px; padding: 2px; background: var(--field);
  border: 1px solid var(--muted); border-radius: var(--r-card); padding: 1px;
}
.stepper button {
  width: 44px; height: 44px; border-radius: 6px; border: 0; background: transparent; color: var(--pine);
  display: grid; place-items: center; cursor: pointer; transition: background-color .15s var(--ease);
}
.stepper button:hover:not(:disabled) { background: var(--sand); }
.stepper button:disabled { color: var(--line); cursor: not-allowed; }
.stepper input {
  width: 100%; border: 0; background: transparent; text-align: center; padding: 0;
  font-family: var(--font-display); font-size: 1.375rem; color: var(--ink);
  -moz-appearance: textfield; appearance: textfield; pointer-events: none;
}
.stepper input::-webkit-outer-spin-button, .stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }


.preview { background: var(--sand); border-radius: var(--r-card); padding: 1.25rem 1.25rem 1.35rem; border: 1px solid var(--line); }
.preview-label { font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--clay); margin-bottom: .6rem; }
.preview-text { white-space: pre-line; color: var(--ink); font-size: .9375rem; line-height: 1.6; }

.form-actions { display: grid; gap: 12px; }
@media (min-width: 560px) { .form-actions { grid-template-columns: auto auto; justify-content: start; } }
.helper { font-size: .875rem; color: var(--muted); margin-top: -.5rem; }
.form-status { font-size: .9375rem; color: var(--pine); font-weight: 600; }
.form-status:empty { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- footer ---------- */
.site-footer { background: var(--pine); color: var(--lichen); padding: clamp(3.5rem, 3rem + 3vw, 6rem) 0 2rem; }
.site-footer a { color: var(--paper); text-decoration-color: color-mix(in srgb, var(--paper) 40%, transparent); text-underline-offset: 4px; }
.site-footer a:hover { text-decoration-color: var(--paper); }
.footer-grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid color-mix(in srgb, var(--lichen) 25%, transparent); }
.footer-claim { margin-top: 1.5rem; font-family: var(--font-display); font-style: italic; font-size: var(--step-1); color: var(--paper); }
.footer-label { font-size: var(--step--1); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--lichen); margin-bottom: .6rem; }
.footer-col p:not(.footer-label) { color: var(--paper); line-height: 1.5; }
.footer-col a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; padding-top: 1.5rem; font-size: var(--step--1); }
.footer-bottom a { display: inline-flex; align-items: center; gap: .35em; min-height: 44px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 6fr 3fr 3fr; } }

/* ---------- sticky mobile CTA ---------- */
.sticky-cta { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .site-footer { margin-bottom: calc(-84px - env(safe-area-inset-bottom)); padding-bottom: calc(2rem + 84px + env(safe-area-inset-bottom)); }
  .sticky-cta {
    position: fixed; left: 16px; right: 16px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40;
    display: flex; align-items: center; justify-content: center; gap: .6em;
    min-height: 56px; border-radius: 999px; background: var(--pine); color: var(--paper);
    font-weight: 600; text-decoration: none; box-shadow: 0 6px 24px rgb(28 38 32 / .18);
  }
  .sticky-cta:focus-visible { outline: 2px solid var(--atlantic); outline-offset: 3px; }
  html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
  .gallery-strip { padding-block: 6px; }
  /* hidden/visible state lives in components.css (driven by main.js) */
  body.nav-open .sticky-cta { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .media img { transition: none; }
}
