/* ============================================================
   LA JUANA — Barrio Privado Biointeligente
   Sistema visual: cálido / natural · tierra · oliva · dorado
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Warm neutrals */
  --paper:      #f5efe4;   /* fondo principal, blanco cálido */
  --paper-2:    #dbd4bf;   /* greige/oliva, secciones alternas */
  --paper-3:    #e7dcc8;   /* sand más profundo, bordes suaves */
  --ink:        #2b2620;   /* texto principal, casi negro cálido */
  --ink-2:      #5c5346;   /* texto secundario */
  --ink-3:      #8c8174;   /* texto terciario / captions */
  --line:       #d8ccb6;   /* hairlines */

  /* Brand */
  --gold:       #8a7644;   /* dorado/oliva del logo */
  --gold-deep:  #6f5e34;   /* dorado oscuro para texto sobre claro */
  --gold-soft:  #c4b282;
  --olive:      #5b5a3a;   /* oliva natural */

  /* Dark warm (secciones oscuras) */
  --espresso:   #211e17;
  --espresso-2: #2c281f;

  /* Functional */
  --ok:         #5b7a4e;   /* verde "listo", sobrio */
  --ok-soft:    #e6ead9;

  /* Type */
  --display: "Marcellus", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Rhythm */
  --maxw: 1280px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;
  --shadow-soft: 0 1px 2px rgba(43,38,32,.04), 0 12px 40px -16px rgba(43,38,32,.18);
  --shadow-card: 0 1px 3px rgba(43,38,32,.06), 0 24px 60px -28px rgba(43,38,32,.30);

  /* Palette tweak knobs (overridden by Tweaks) */
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);
  --accent-contrast: #f5efe4;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--accent); color: var(--accent-contrast); }

/* ---------- Type scale ---------- */
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -0.01em;
  margin: 0;
  text-wrap: balance;
}
.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin: 0;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--accent-deep);
  opacity: .8;
}
.eyebrow.center::before { display: none; }

.lead {
  font-size: clamp(20px, 2.2vw, 26px);
  line-height: 1.5;
  color: var(--ink-2);
  font-weight: 400;
  text-wrap: pretty;
}
p { text-wrap: pretty; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 11vw, 150px); position: relative; }
.section--sand { background: var(--paper-2); }
.section--dark { background: var(--espresso); color: #ece4d3; }
.section--dark .lead { color: #c8bfac; }
.section--dark .eyebrow { color: var(--gold-soft); }
.section--dark .eyebrow::before { background: var(--gold-soft); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 16px 30px;
  border-radius: 100px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .3s, color .3s, border-color .3s, box-shadow .3s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary {
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 10px 30px -12px color-mix(in oklab, var(--accent), #000 10%);
}
.btn--primary:hover { background: var(--accent-deep); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--light {
  background: rgba(245,239,228,.12);
  color: #fff;
  border-color: rgba(245,239,228,.5);
  backdrop-filter: blur(6px);
}
.btn--light:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--solid-light { background: #fff; color: var(--ink); }
.btn--solid-light:hover { background: var(--paper-2); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--accent-deep);
  border-bottom: 1px solid transparent;
  padding-bottom: 2px;
  transition: gap .3s, border-color .3s;
}
.link-arrow svg { transition: transform .3s; }
.link-arrow:hover { gap: 14px; border-color: currentColor; }

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s cubic-bezier(.2,.7,.3,1), transform 1s cubic-bezier(.2,.7,.3,1);
  transition-delay: var(--d, 0ms);
}
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Utility ---------- */
.tag-num { font-variant-numeric: tabular-nums; }
.center { text-align: center; }
.mt-s { margin-top: 18px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: 48px; }

/* ============ NAV ============ */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  transition: background .45s ease, box-shadow .45s ease, padding .45s ease;
  padding-block: 22px;
  background: linear-gradient(to bottom, rgba(20,17,12,.55) 0%, rgba(20,17,12,.18) 60%, rgba(20,17,12,0) 100%);
}
.nav__inner {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__logo { flex: 0 0 auto; }
.nav__logo img {
  height: 58px;
  width: auto;
  transition: filter .45s ease, height .45s ease;
  /* arriba: logo en blanco para destacar sobre el scrim */
  filter: brightness(0) invert(1);
}
.nav__links {
  margin-left: auto;
  display: flex;
  gap: 30px;
}
.nav__links a {
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: #f3ecdf;
  position: relative;
  padding-block: 4px;
  transition: color .3s;
}
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s cubic-bezier(.2,.7,.3,1);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta { padding: 11px 22px; font-size: 14px; }

/* scrolled state */
.nav.scrolled {
  background: color-mix(in oklab, var(--paper), transparent 4%);
  box-shadow: 0 1px 0 var(--line), 0 14px 40px -28px rgba(43,38,32,.5);
  padding-block: 12px;
  backdrop-filter: blur(10px);
}
.nav.scrolled { background: color-mix(in oklab, var(--paper), transparent 4%); }
.nav.scrolled .nav__logo img { filter: none; height: 50px; }
.nav.scrolled .nav__links a { color: var(--ink); }

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 8px;
  margin-left: auto;
}
.nav__burger span {
  width: 26px; height: 2px;
  background: #f3ecdf;
  transition: background .4s, transform .4s, opacity .3s;
}
.nav.scrolled .nav__burger span { background: var(--ink); }
.nav__burger[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 0 var(--gutter);
  transform: translateY(-100%);
  transition: transform .5s cubic-bezier(.7,0,.2,1);
}
.mobile-menu.open { transform: none; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 30px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu .btn { font-family: var(--sans); margin-top: 24px; align-self: flex-start; font-size: 16px; }

/* ============ HERO ============ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding-bottom: clamp(64px, 9vh, 110px);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  animation: heroZoom 18s ease-out forwards;
}
@keyframes heroZoom { from { transform: scale(1.08); } to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(20,17,12,.78) 0%, rgba(20,17,12,.28) 42%, rgba(20,17,12,.12) 70%, rgba(20,17,12,.35) 100%);
}
.hero__content { position: relative; z-index: 2; color: #fff; max-width: 960px; }
.hero__kicker {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin: 0 0 22px;
}
.hero__title {
  font-size: clamp(42px, 6.6vw, 96px);
  line-height: 1.01;
  letter-spacing: -0.015em;
  color: #fff;
  text-shadow: 0 2px 30px rgba(0,0,0,.25);
}
.hero__sub {
  font-size: clamp(18px, 2vw, 23px);
  line-height: 1.5;
  max-width: 660px;
  margin: 26px 0 0;
  color: #ece4d3;
  font-weight: 400;
}
.hero__sub em { font-style: italic; color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }
.hero__micro {
  margin-top: 26px;
  font-size: 14px;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,.75);
}
.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 3;
  width: 26px; height: 42px;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 20px;
  display: none;
}
.hero__scroll span {
  position: absolute;
  left: 50%; top: 8px;
  width: 3px; height: 8px;
  background: #fff;
  border-radius: 2px;
  transform: translateX(-50%);
  animation: scrollDot 1.8s ease-in-out infinite;
}
@keyframes scrollDot { 0%,100% { opacity: 0; transform: translate(-50%,0); } 50% { opacity: 1; transform: translate(-50%,12px); } }
@media (min-height: 720px) { .hero__scroll { display: block; } }

/* ============ WHATSAPP ============ */
.wa {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: var(--espresso);
  color: #f3ecdf;
  padding: 13px 18px 13px 15px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 14px 34px -12px rgba(33,30,23,.6);
  transition: transform .35s cubic-bezier(.2,.7,.3,1), background .3s;
}
.wa:hover { transform: translateY(-3px); background: var(--gold-deep); }
.wa svg { flex: 0 0 auto; }
@media (max-width: 560px) { .wa span { display: none; } .wa { padding: 14px; } }

/* ============ NAV responsive ============ */
@media (max-width: 940px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 600px) {
  .nav { padding-block: 14px; }
  .nav__logo img { height: 40px; }
  .hero { padding-top: 92px; align-items: center; }
  .hero__title { font-size: clamp(33px, 8.5vw, 52px); }
  .hero__sub { font-size: 17px; }
}

/* ============ SECTION HEADER ============ */
.sec-head { max-width: 760px; }
.sec-head h2 {
  font-size: clamp(31px, 4.4vw, 56px);
  margin-top: 20px;
}
.sec-head .lead { margin-top: 22px; }
.sec-head.center { margin-inline: auto; text-align: center; }

/* ============ TRUST BAR ============ */
.trust {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-block: 0;
}
.trust__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}
.trust__item {
  padding: clamp(30px, 4vw, 52px) clamp(18px, 2.2vw, 32px);
  border-right: 1px solid var(--line);
}
.trust__item:last-child { border-right: 0; }
.trust__num {
  font-family: var(--display);
  font-size: clamp(34px, 3.4vw, 48px);
  line-height: 1;
  color: var(--accent-deep);
  letter-spacing: -0.02em;
}
.trust__num span { font-size: .5em; color: var(--ink-3); }
.trust__label {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--ink-2);
}
@media (max-width: 900px) {
  .trust__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__item:nth-child(2n) { border-right: 0; }
  .trust__item { border-bottom: 1px solid var(--line); }
  .trust__item:nth-last-child(-n+1):nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 520px) {
  .trust__grid { grid-template-columns: 1fr; }
  .trust__item { border-right: 0; }
}

/* ============ EDITORIAL TWO-COL ============ */
.editorial {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 6vw, 96px);
  align-items: start;
}
.editorial__title { font-size: clamp(31px, 4.4vw, 58px); }
.editorial__body p { margin: 0 0 20px; color: var(--ink-2); font-size: 18px; }
.editorial__body p strong { color: var(--ink); font-weight: 600; }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; gap: 28px; } }

/* ============ UBICACIÓN ============ */
.ubic {
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.ubic__map {
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--line);
}
.ubic__map {
  border-radius: 14px;
  overflow: hidden;
  background: #262a1d;
  box-shadow: 0 30px 70px -34px rgba(18,18,10,.7);
  border: 1px solid rgba(245,239,228,.08);
}
.ubic__map img { width: 100%; height: auto; }

/* interactive map (dark) */
.jmap { width: 100%; height: auto; display: block; background: radial-gradient(125% 75% at 60% 26%, #333823 0%, #2a2f20 46%, #20241a 100%); font-family: var(--sans); }
.jcontour { fill: none; stroke: #757a52; stroke-width: 1; opacity: .14; }
.jroad { fill: none; stroke: #cac5a6; stroke-linecap: round; }
.jroad-101 { stroke-width: 7; opacity: .40; }
.jroad-aromos { stroke-width: 3.5; opacity: .5; }
.jroad-lbl { fill: #9a9b76; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.jlink { fill: none; stroke: #cbb069; stroke-width: 1; stroke-dasharray: 3 5; opacity: .32; transition: opacity .35s, stroke-width .35s; }
.jlink.on { opacity: .95; stroke-width: 1.8; stroke-dasharray: none; }
.jlake { fill: #5f7d72; opacity: .85; }
.jpoi { cursor: pointer; }
.jpoi-dot { fill: #ece5d0; stroke: #20241a; stroke-width: 2; transition: transform .3s, fill .3s; transform-box: fill-box; transform-origin: center; }
.jpoi-name { fill: #cfc9af; font-size: 12px; font-weight: 600; letter-spacing: .015em; transition: fill .3s; }
.jbadge { opacity: 0; transition: opacity .35s; }
.jbadge rect { fill: #cbb069; }
.jbadge text { fill: #211e17; font-size: 10.5px; font-weight: 700; text-anchor: middle; letter-spacing: .02em; }
.jpoi.on .jpoi-dot { fill: #e7c971; transform: scale(1.5); }
.jpoi.on .jpoi-name { fill: #f5efe4; }
.jpoi.on .jbadge { opacity: 1; }
.jhome-glow { pointer-events: none; }
.jzone { fill: none; stroke: #d8be77; stroke-width: 1.3; stroke-dasharray: 4 6; opacity: .8; }
.jhome-dot { fill: #e7c971; stroke: #fff8e6; stroke-width: 2; }
.jhome-ring { fill: none; stroke: #e7c971; stroke-width: 1.5; opacity: .6; transform-box: fill-box; transform-origin: center; animation: jpulse 2.8s ease-in-out infinite; }
.jhome-lbl { fill: #f5efe4; font-family: var(--display); font-size: 17px; letter-spacing: .2em; text-anchor: middle; }
.jmap-corner { fill: #8f9170; font-size: 10px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; }
.jmap-corner.gold { fill: #cbab5f; }
@keyframes jpulse { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(2.4); opacity: 0; } }

.dist__row { cursor: pointer; transition: background .25s, padding .25s; border-radius: 6px; }
.dist__row:hover, .dist__row.on { background: color-mix(in oklab, var(--accent), transparent 88%); padding-inline: 12px; }
.dist__row.on dd { color: var(--accent-deep); }
.dist {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}
.dist__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px 2px;
  border-bottom: 1px solid var(--line);
  gap: 16px;
}
.dist__row dt { font-size: 17px; color: var(--ink); }
.dist__row dd {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  color: var(--accent-deep);
  white-space: nowrap;
}
.ubic__note { margin-top: 22px; font-size: 15px; color: var(--ink-3); }
@media (max-width: 860px) { .ubic { grid-template-columns: 1fr; } }

/* ============ BADGES ============ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 13px;
  border-radius: 100px;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--ok { background: var(--ok-soft); color: var(--ok); }
.badge--plan { background: color-mix(in oklab, var(--accent), var(--paper) 78%); color: var(--accent-deep); }
.badge--sold { background: #f3d9d6; color: #a8443c; }
.badge--sold::before { background: #c2554b; }
.badge--reserved { background: color-mix(in oklab, var(--accent), var(--paper) 72%); color: var(--accent-deep); }
.badge--reserved::before { background: var(--accent-deep); }
.badge--solid { background: var(--accent); color: var(--accent-contrast); }
.badge--solid::before { background: var(--accent-contrast); }
.badge--dark { background: rgba(245,239,228,.12); color: #ece4d3; }

/* ============ AMENITIES ============ */
.amen-block + .amen-block { margin-top: clamp(48px, 7vw, 86px); }
.amen-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.amen-head h3 { font-size: clamp(24px, 3vw, 36px); }

.amen-now {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.amen-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.section--sand .amen-card { background: #fff; }
.amen-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card); }
.amen-card h4 { font-size: 23px; margin: 16px 0 8px; }
.amen-card p { margin: 0; font-size: 15.5px; color: var(--ink-2); line-height: 1.55; }

.amen-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.amen-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 22px;
  min-height: 132px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: background .3s, transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.section--sand .amen-item { background: #fbf7ef; }
.amen-item:hover { background: #fff; transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.amen-item .ico { width: 26px; height: 26px; color: var(--accent-deep); margin-bottom: auto; }
.amen-item h4 { font-size: 19px; margin: 16px 0 5px; }
.amen-item p { margin: 0; font-size: 14px; color: var(--ink-3); }
.amen-note {
  margin-top: 30px;
  padding: 20px 26px;
  border-left: 2px solid var(--accent);
  background: color-mix(in oklab, var(--accent), var(--paper) 88%);
  font-size: 15.5px;
  color: var(--ink-2);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.amen-note strong { color: var(--ink); }
@media (max-width: 980px) {
  .amen-now { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .amen-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .amen-now { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .amen-grid { grid-template-columns: 1fr; } }

/* ============ SUSTENTABILIDAD (dark split) ============ */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 80px);
  align-items: center;
}
.split__media {
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: 0 40px 80px -40px rgba(0,0,0,.6);
}
.split__media img { width: 100%; height: 100%; object-fit: cover; }
.sust-list { margin: 32px 0 0; padding: 0; list-style: none; }
.sust-list li {
  padding: 18px 0;
  border-top: 1px solid rgba(245,239,228,.16);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 16px;
  align-items: baseline;
}
.sust-list li:last-child { border-bottom: 1px solid rgba(245,239,228,.16); }
.sust-list b { font-family: var(--display); font-weight: 400; font-size: 19px; color: #fff; }
.sust-list span { color: #c8bfac; font-size: 15px; }
.pullquote {
  font-family: var(--display);
  font-size: clamp(22px, 2.6vw, 30px);
  line-height: 1.35;
  color: #f3ecdf;
  margin: 0;
  text-wrap: balance;
}
.pullquote--light { color: var(--ink); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__media { aspect-ratio: 16 / 11; order: -1; }
}

/* ============ GALERÍA ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
  margin-top: 44px;
}
.gallery figure {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--paper-3);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2,.7,.3,1); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(20,17,12,.4), transparent 50%);
  opacity: 0; transition: opacity .4s;
}
.gallery figure:hover::after { opacity: 1; }
.g-wide { grid-column: span 2; }
.g-tall { grid-row: span 2; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(20,17,12,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity .4s;
  padding: 5vw;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 86vh; border-radius: var(--radius); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
.lightbox__close, .lightbox__nav {
  position: absolute;
  background: rgba(245,239,228,.12);
  border: 1px solid rgba(245,239,228,.4);
  color: #fff;
  width: 50px; height: 50px;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
  font-size: 22px;
}
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(245,239,228,.28); }
.lightbox__close { top: 24px; right: 24px; }
.lightbox__nav { top: 50%; transform: translateY(-50%); }
.lightbox__nav.prev { left: 24px; }
.lightbox__nav.next { right: 24px; }
@media (max-width: 640px) { .lightbox__nav { width: 42px; height: 42px; } .lightbox__nav.prev { left: 10px; } .lightbox__nav.next { right: 10px; } }

/* ============ DOS FORMAS DE COMPRAR ============ */
.paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 48px;
}
.path-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  min-height: 460px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 38px;
  color: #fff;
  isolation: isolate;
}
.path-card__bg { position: absolute; inset: 0; z-index: -2; }
.path-card__bg img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.3,1); }
.path-card:hover .path-card__bg img { transform: scale(1.05); }
.path-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(18,15,10,.94) 0%, rgba(18,15,10,.82) 32%, rgba(18,15,10,.55) 60%, rgba(18,15,10,.3) 100%);
}
.path-card .opt { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.path-card h3 { font-size: clamp(26px, 2.8vw, 36px); margin: 12px 0 14px; color: #fff; }
.path-card p { margin: 0 0 22px; color: #ddd4c2; font-size: 16px; max-width: 40ch; }
.path-card ul { margin: 0 0 26px; padding: 0; list-style: none; }
.path-card li { font-size: 14.5px; color: #cfc6b4; padding: 7px 0 7px 24px; position: relative; }
.path-card li::before {
  content: ""; position: absolute; left: 0; top: 14px;
  width: 11px; height: 6px; border-left: 1.5px solid var(--gold-soft); border-bottom: 1.5px solid var(--gold-soft);
  transform: rotate(-45deg);
}
.path-intro { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px,4vw,64px); align-items: end; }
.regla-note {
  margin-top: 28px;
  font-size: 16px;
  color: var(--ink-2);
  border-left: 2px solid var(--accent);
  padding-left: 22px;
}
.regla-note strong { color: var(--ink); }
@media (max-width: 820px) { .paths { grid-template-columns: 1fr; } .path-intro { grid-template-columns: 1fr; } .path-card { min-height: 400px; } }

/* ============ CASAS / FILTROS ============ */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 38px;
  padding: 18px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section--sand .filters { background: var(--paper); }
.filter-group { display: flex; flex-direction: column; gap: 5px; }
.filter-group label { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; padding-left: 2px; }
.filter-group select {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 9px 36px 9px 16px;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238c8174' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  transition: border-color .3s;
}
.filter-group select:focus { outline: none; border-color: var(--accent); }
.filter-count { margin-left: auto; font-size: 14px; color: var(--ink-2); align-self: end; padding-bottom: 9px; }
.filter-count b { color: var(--ink); font-weight: 600; }
.filter-reset {
  align-self: end;
  background: none; border: 0; cursor: pointer;
  font-family: var(--sans); font-size: 13.5px; color: var(--accent-deep);
  text-decoration: underline; padding-bottom: 11px;
}

.casas-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}
.casa {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s, opacity .4s;
}
.casa:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.casa__media { position: relative; aspect-ratio: 3 / 2; overflow: hidden; }
.casa__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.casa:hover .casa__media img { transform: scale(1.05); }
.casa__badge { position: absolute; top: 14px; left: 14px; }
.casa__body { padding: 22px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.casa__loc { font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; }
.casa__title { font-size: 23px; margin: 6px 0 14px; }
.casa__specs { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.casa__spec { font-size: 13.5px; color: var(--ink-2); }
.casa__spec b { display: block; font-family: var(--display); font-size: 19px; color: var(--ink); font-weight: 400; }
.casa__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.casa__price { font-family: var(--display); font-size: 26px; color: var(--accent-deep); }
.casa__price small { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.casa.hidden { display: none; }
.casa--sold .casa__media img, .casa--vendida .casa__media img { filter: grayscale(.4) brightness(.9); }
.casa--vendida .casa__media::after { content: ""; position: absolute; inset: 0; background: rgba(43,38,32,.14); }
.casa--vendida .casa__price, .casa--reservada .casa__price { color: var(--ink-3); }
.casa__soldtag { font-family: var(--display); color: #a8443c; }

/* ribbon esquina (reservada / vendida) */
.casa__ribbon {
  position: absolute;
  top: 18px; right: -52px;
  width: 180px;
  text-align: center;
  transform: rotate(45deg);
  padding: 7px 0;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  box-shadow: 0 8px 20px -6px rgba(43,38,32,.5);
  z-index: 3;
}
.casa__ribbon--reserved { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); }
.casa__ribbon--sold { background: linear-gradient(135deg, #c5564c, #9d3a32); }

.casas-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: clamp(48px,7vw,80px) 28px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: color-mix(in oklab, var(--accent), var(--paper) 90%);
}
.casas-empty h3 { font-size: 28px; margin-bottom: 10px; }
.casas-empty p { color: var(--ink-2); max-width: 46ch; margin: 0 auto 26px; }

/* lead capture inline */
.lead-form { display: flex; gap: 10px; max-width: 460px; margin: 0 auto; flex-wrap: wrap; }
.lead-form input {
  flex: 1; min-width: 200px;
  font-family: var(--sans); font-size: 15px;
  padding: 14px 18px; border: 1px solid var(--line); border-radius: 100px; background: #fff; color: var(--ink);
}
.lead-form input:focus { outline: none; border-color: var(--accent); }
@media (max-width: 980px) { .casas-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .casas-grid { grid-template-columns: 1fr; } }

/* ============ LOTES ============ */
.lotes-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.lote {
  border-radius: var(--radius); overflow: hidden;
  background: #fff; border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .4s cubic-bezier(.2,.7,.3,1), box-shadow .4s;
}
.lote:hover { transform: translateY(-5px); box-shadow: var(--shadow-card); }
.lote__media { aspect-ratio: 16 / 10; overflow: hidden; }
.lote__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s; }
.lote:hover .lote__media img { transform: scale(1.05); }
.lote__body { padding: 26px 24px 28px; display: flex; flex-direction: column; flex: 1; }
.lote__body h3 { font-size: 24px; }
.lote__body p { font-size: 15px; color: var(--ink-2); margin: 10px 0 18px; flex: 1; }
.lote__meta { font-size: 13.5px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 16px; margin-bottom: 18px; display: flex; flex-direction: column; gap: 5px; }
.lote__meta span { display: flex; justify-content: space-between; gap: 12px; }
.lote__meta b { color: var(--accent-deep); font-family: var(--display); font-size: 18px; font-weight: 400; }
.lotes-foot { margin-top: 28px; text-align: center; }
.lotes-foot p { font-size: 14px; color: var(--ink-3); max-width: 60ch; margin: 0 auto 22px; }
@media (max-width: 880px) { .lotes-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

/* ============ MASTERPLAN BAND ============ */
.mplan {
  position: relative;
  padding-block: clamp(80px, 12vw, 150px);
  color: #fff;
  isolation: isolate;
  text-align: center;
}
.mplan__bg { position: absolute; inset: 0; z-index: -2; background: #d8ccb6; }
.mplan__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.mplan::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 70% at 50% 50%, rgba(20,17,12,.72), rgba(20,17,12,.6) 60%, rgba(20,17,12,.5)); }
.mplan h2 { color: #fff; font-size: clamp(30px, 4.2vw, 56px); }
.mplan p { max-width: 56ch; margin: 18px auto 30px; color: #e8e0cf; }
.mplan .eyebrow { color: var(--gold-soft); justify-content: center; }
.mplan .eyebrow::before { background: var(--gold-soft); }

/* ============ REGLAMENTO / CONSTRUIR ============ */
.regla-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px,5vw,72px); align-items: start; }
.regla-aside { position: sticky; top: 110px; }
.regla-aside .btn { margin-top: 8px; }
.regla-aside .btn + .btn { margin-top: 12px; display: flex; }
.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 2px;
  display: flex;
  align-items: center;
  gap: 16px;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 24px);
  color: var(--ink);
  transition: color .3s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary:hover { color: var(--accent-deep); }
.acc summary .pl {
  margin-left: auto;
  position: relative;
  width: 18px; height: 18px; flex: 0 0 auto;
}
.acc summary .pl::before, .acc summary .pl::after {
  content: ""; position: absolute; background: var(--accent-deep); transition: transform .35s;
}
.acc summary .pl::before { top: 8px; left: 0; width: 18px; height: 2px; }
.acc summary .pl::after { left: 8px; top: 0; width: 2px; height: 18px; }
.acc details[open] summary .pl::after { transform: scaleY(0); }
.acc .acc-body { padding: 0 2px 24px; }
.acc .acc-body ul { margin: 0; padding-left: 20px; }
.acc .acc-body li { font-size: 15.5px; color: var(--ink-2); padding: 5px 0; }
.acc .acc-body li strong { color: var(--ink); font-weight: 600; }
.spec-strip { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 0 0 4px; padding: 0; list-style: none; }
.spec-strip li { font-size: 14px; color: var(--ink-2); }
.spec-strip b { font-family: var(--display); font-size: 22px; color: var(--accent-deep); font-weight: 400; display: block; }
@media (max-width: 860px) { .regla-layout { grid-template-columns: 1fr; } .regla-aside { position: static; } }

/* ============ TABS (reglamento) ============ */
.tabs { min-width: 0; }
.tabs__nav { display: flex; flex-wrap: nowrap; gap: 0 24px; border-bottom: 1px solid var(--line); margin-bottom: 4px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.tabs__nav::-webkit-scrollbar { display: none; }
.tab {
  font-family: var(--sans); font-size: 14.5px; font-weight: 600;
  color: var(--ink-3); background: none; border: 0; cursor: pointer;
  padding: 12px 2px; position: relative; transition: color .3s; white-space: nowrap; flex: 0 0 auto;
}
.tab::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform: scaleX(0); transition: transform .3s cubic-bezier(.2,.7,.3,1); }
.tab:hover { color: var(--ink); }
.tab.on { color: var(--accent-deep); }
.tab.on::after { transform: scaleX(1); }
.tabpanel { display: none; padding-top: 26px; animation: tabIn .5s cubic-bezier(.2,.7,.3,1); }
.tabpanel.on { display: block; }
@keyframes tabIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tabpanel ul { margin: 0; padding-left: 20px; }
.tabpanel li { font-size: 15.5px; color: var(--ink-2); padding: 6px 0; }
.tabpanel li strong { color: var(--ink); font-weight: 600; }

/* gate: parámetros borrosos hasta dejar email */
.tabs__locked { position: relative; }
.tabs__panels { transition: filter .5s ease; }
.tabs.locked .tabs__panels { filter: blur(7px); pointer-events: none; user-select: none; }
.tabs__gate {
  position: absolute; inset: -4px;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: linear-gradient(to bottom, color-mix(in oklab, var(--paper-2), transparent 22%), color-mix(in oklab, var(--paper-2), transparent 4%));
  z-index: 3;
}
.section--sand .tabs__gate { background: linear-gradient(to bottom, rgba(255,255,255,.6), rgba(255,255,255,.85)); }
.tabs.locked .tabs__gate { display: flex; }
.tabs__gate-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow-card);
  padding: 30px 30px 26px;
  max-width: 420px;
  text-align: center;
}
.section--sand .tabs__gate-card { background: #fff; }
.tabs__gate-ico { width: 34px; height: 34px; color: var(--accent-deep); margin: 0 auto 14px; }
.tabs__gate-card h4 { font-size: 23px; margin: 0 0 8px; }
.tabs__gate-card p { font-size: 15px; color: var(--ink-2); margin: 0 0 20px; line-height: 1.55; }
.tabs__gate-form { display: flex; gap: 10px; flex-wrap: wrap; }
.tabs__gate-form input { flex: 1; min-width: 180px; font-family: var(--sans); font-size: 15px; padding: 13px 16px; border: 1px solid var(--line); border-radius: 100px; background: var(--paper); color: var(--ink); }
.section--sand .tabs__gate-form input { background: var(--paper-2); }
.tabs__gate-form input:focus { outline: none; border-color: var(--accent); }
.tabs__gate-note { display: block; margin-top: 14px; font-size: 12.5px; color: var(--ink-3); }
.tabs__gate-card.ok h4 { color: var(--ok); }
@media (max-width: 560px) {
  .tabs__nav { gap: 0 18px; }
  .tab { font-size: 13.5px; }
}

/* ============ NUEVA ETAPA ============ */
.etapa-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 44px; }
.etapa-card { background: var(--paper); padding: 32px 30px; }
.etapa-card .n { font-family: var(--display); font-size: 15px; color: var(--accent-deep); letter-spacing: .04em; }
.etapa-card h4 { font-size: 22px; margin: 10px 0 8px; }
.etapa-card p { margin: 0; font-size: 15.5px; color: var(--ink-2); }
.seguridad { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }
.seguridad span { display: inline-flex; align-items: center; gap: 9px; font-size: 14.5px; color: var(--ink-2); background: var(--paper-2); padding: 10px 18px; border-radius: 100px; border: 1px solid var(--line); }
.seguridad span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
@media (max-width: 700px) { .etapa-cards { grid-template-columns: 1fr; } }

/* ============ VALORIZACIÓN BAND ============ */
.valor { text-align: center; }
.valor .pullquote { max-width: 20ch; margin: 0 auto; }
.valor-points { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 56px; text-align: left; }
.valor-point { padding-top: 20px; border-top: 1px solid rgba(245,239,228,.2); }
.valor-point b { font-family: var(--display); font-size: 19px; color: #fff; display: block; margin-bottom: 6px; }
.valor-point span { font-size: 14.5px; color: #c8bfac; }
@media (max-width: 800px) { .valor-points { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .valor-points { grid-template-columns: 1fr; } }

/* ============ VENDER ============ */
.vender { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px,5vw,72px); align-items: center; }
.vender ul { margin: 28px 0 0; padding: 0; list-style: none; }
.vender li { padding: 14px 0 14px 30px; border-top: 1px solid var(--line); position: relative; font-size: 16px; color: var(--ink-2); }
.vender li:last-child { border-bottom: 1px solid var(--line); }
.vender li strong { color: var(--ink); font-weight: 600; }
.vender li::before { content: ""; position: absolute; left: 0; top: 20px; width: 13px; height: 7px; border-left: 1.6px solid var(--accent); border-bottom: 1.6px solid var(--accent); transform: rotate(-45deg); }
@media (max-width: 800px) { .vender { grid-template-columns: 1fr; } }

/* ============ TESTIMONIOS ============ */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.testi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 34px 30px; display: flex; flex-direction: column; }
.section--sand .testi { background: #fff; }
.testi .mark { font-family: var(--display); font-size: 56px; line-height: .6; color: var(--accent); height: 32px; }
.testi blockquote { margin: 0; font-family: var(--display); font-size: 20px; line-height: 1.45; color: var(--ink); flex: 1; }
.testi cite { margin-top: 22px; font-style: normal; font-size: 14px; color: var(--ink-3); }
.testi cite b { display: block; font-style: normal; color: var(--ink); font-family: var(--sans); font-weight: 600; font-size: 15px; margin-bottom: 2px; }
@media (max-width: 860px) { .testi-grid { grid-template-columns: 1fr; } }

/* ============ VIDEO STORY ============ */
.vstory { display: grid; grid-template-columns: minmax(0,300px) 1fr; gap: clamp(28px,5vw,64px); align-items: center; margin-top: 56px; padding-top: 50px; border-top: 1px solid var(--line); }
.vstory__player { position: relative; aspect-ratio: 9 / 16; max-height: 540px; border-radius: 16px; overflow: hidden; background: var(--espresso); box-shadow: var(--shadow-card); justify-self: start; width: 100%; }
.vstory__player video { width: 100%; height: 100%; object-fit: cover; display: block; }
.vstory__play {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(to top, rgba(20,17,12,.5), rgba(20,17,12,.05) 45%, rgba(20,17,12,.25));
  border: 0; cursor: pointer; transition: opacity .4s;
}
.vstory__play.hide { opacity: 0; pointer-events: none; }
.vstory__play span {
  width: 66px; height: 66px; border-radius: 50%;
  background: rgba(245,239,228,.92); color: var(--espresso);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: transform .3s;
}
.vstory__play:hover span { transform: scale(1.08); }
.vstory__play span svg { margin-left: 3px; }
.vstory__tag { position: absolute; left: 16px; top: 16px; z-index: 3; }
.vstory__text h3 { font-size: clamp(24px,3vw,38px); margin: 14px 0 0; }
.vstory__text p { color: var(--ink-2); margin: 16px 0 0; font-size: 17px; max-width: 46ch; }
.vstory__text .who { font-size: 14px; color: var(--ink-3); margin-top: 18px; }
.vstory__text .who b { color: var(--ink); font-weight: 600; }
@media (max-width: 700px) { .vstory { grid-template-columns: 1fr; } .vstory__player { max-height: none; max-width: 300px; margin-inline: auto; justify-self: center; } }

/* ============ FAQ ============ */
.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(32px,5vw,72px); align-items: center; }
#faq .acc summary { padding: 14px 2px; font-size: clamp(16px, 1.6vw, 19px); }
#faq .acc .acc-body { padding: 0 2px 16px; }
#faq .acc .acc-body p { font-size: 14.5px; line-height: 1.55; }
@media (max-width: 860px) { .faq-layout { grid-template-columns: 1fr; align-items: start; } }

/* ============ CONTACTO / CTA ============ */
.contacto { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px,5vw,80px); align-items: center; }
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; min-width: 0; }
.field label { font-size: 13px; letter-spacing: .04em; color: #c8bfac; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: 16px; color: #fff;
  background: rgba(245,239,228,.07);
  border: 1px solid rgba(245,239,228,.2);
  border-radius: 8px; padding: 14px 16px;
  transition: border-color .3s, background .3s;
  min-width: 0;
}
.field textarea { resize: vertical; min-height: 90px; }
.field input::placeholder, .field textarea::placeholder { color: #8d8675; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold-soft); background: rgba(245,239,228,.11); }
.field select option { color: #2b2620; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .btn { margin-top: 8px; }
.form-alt { margin-top: 16px; font-size: 14px; color: #a89f8c; text-align: center; }
.form-alt a { color: var(--gold-soft); text-decoration: underline; }
.form-success { padding: 40px; text-align: center; border: 1px solid rgba(245,239,228,.2); border-radius: 12px; }
.form-success h3 { color: #fff; font-size: 28px; margin-bottom: 10px; }
.form-success p { color: #c8bfac; margin: 0; }
@media (max-width: 800px) { .contacto { grid-template-columns: 1fr; } .form-row { grid-template-columns: 1fr; } }

/* ============ FOOTER ============ */
.footer { background: #1a1812; color: #c8bfac; padding-block: clamp(54px,7vw,80px) 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(245,239,228,.12); }
.footer__logo img { height: 74px; width: auto; filter: brightness(1.5) saturate(.7); }
.footer__top p { font-size: 15px; line-height: 1.6; margin: 18px 0 0; max-width: 38ch; }
.footer h5 { font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #8d8675; margin: 0 0 16px; font-weight: 600; }
.footer__col a { display: block; font-size: 15px; padding: 6px 0; color: #c8bfac; transition: color .3s; }
.footer__col a:hover { color: #fff; }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; font-size: 13px; color: #6f6957; }
.footer__bottom a { color: #6f6957; text-decoration: underline; }
.footer__legal { max-width: 60ch; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr; gap: 32px; } }

/* ============ TWEAKS PANEL ============ */
.tweaks {
  position: fixed;
  right: 20px; top: 20px;
  z-index: 95;
  width: 280px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(43,38,32,.4);
  padding: 18px;
  display: none;
  font-family: var(--sans);
  color: var(--ink);
}
.tweaks.show { display: block; }
.tweaks__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.tweaks__head h4 { font-family: var(--sans); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.tweaks__close { background: none; border: 0; cursor: pointer; font-size: 20px; color: var(--ink-3); line-height: 1; }
.tweaks__group { margin-bottom: 18px; }
.tweaks__group:last-child { margin-bottom: 0; }
.tweaks__label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 9px; }
.tweaks__swatches { display: flex; gap: 9px; }
.tw-swatch {
  flex: 1;
  height: 42px;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  position: relative;
  transition: transform .2s;
  display: flex; align-items: flex-end; justify-content: center;
  padding-bottom: 4px;
  font-size: 9.5px; font-weight: 600; color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.4);
}
.tw-swatch:hover { transform: translateY(-2px); }
.tw-swatch.active { border-color: var(--ink); }
.tweaks__seg { display: flex; gap: 6px; }
.tw-seg {
  flex: 1; padding: 9px 8px; border-radius: 8px;
  border: 1px solid var(--line); background: transparent;
  cursor: pointer; font-family: var(--sans); font-size: 12.5px; color: var(--ink-2);
  transition: all .2s;
}
.tw-seg.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* ============ MODAL (proceso constructivo) ============ */
.modal {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: clamp(16px, 4vw, 48px);
  opacity: 0; pointer-events: none;
  transition: opacity .4s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }
.modal__scrim { position: absolute; inset: 0; background: rgba(18,15,10,.66); backdrop-filter: blur(4px); }
.modal__panel {
  position: relative;
  width: min(880px, 100%);
  max-height: min(92vh, 860px);
  background: var(--paper);
  border-radius: 16px;
  box-shadow: 0 50px 120px -30px rgba(18,15,10,.7);
  display: flex; flex-direction: column;
  overflow: hidden;
  transform: translateY(24px) scale(.98);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.modal__panel--wide { width: min(1020px, 100%); }
.modal.open .modal__panel { transform: none; }
.modal__close {
  position: absolute; top: 16px; right: 16px; z-index: 5;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(245,239,228,.9); border: 1px solid var(--line); color: var(--ink);
  font-size: 20px; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, transform .3s;
}
.modal__close:hover { background: var(--ink); color: var(--paper); transform: rotate(90deg); }

/* ---- Build modal (compacto, sin scroll) ---- */
.bm { display: grid; grid-template-columns: 0.92fr 1.08fr; }
.bm__head {
  padding: clamp(28px, 3.2vw, 44px);
  background: var(--espresso); color: #ece4d3;
  display: flex; flex-direction: column;
}
.bm__head .eyebrow { color: var(--gold-soft); }
.bm__head .eyebrow::before { background: var(--gold-soft); }
.bm__head h3 { color: #fff; font-size: clamp(24px, 2.6vw, 34px); margin-top: 14px; }
.bm__intro { font-size: 15px; color: #c8bfac; margin: 16px 0 0; line-height: 1.55; }
.bm__chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.bm__chips .chip {
  font-size: 12.5px; font-weight: 600; color: #ece4d3;
  background: rgba(245,239,228,.1); border: 1px solid rgba(245,239,228,.18);
  padding: 7px 13px; border-radius: 100px;
}
.bm__cta { margin-top: auto; align-self: flex-start; }
.bm__head .bm__cta { margin-top: 26px; }
.bm__foot { font-size: 13px; color: #a89f8c; margin: 12px 0 0; }
.bm__steps {
  list-style: none; margin: 0; padding: clamp(24px, 2.6vw, 36px);
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(16px, 1.8vw, 24px) 22px;
  align-content: start; overflow-y: auto;
}
.bstep { display: grid; grid-template-columns: 34px 1fr; gap: 13px; }
.bstep__n {
  width: 34px; height: 34px; border-radius: 50%;
  background: color-mix(in oklab, var(--accent), var(--paper) 82%);
  border: 1px solid color-mix(in oklab, var(--accent), var(--paper) 55%);
  color: var(--accent-deep); font-family: var(--display); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.bstep h4 { font-size: 16px; margin: 5px 0 4px; line-height: 1.2; }
.bstep p { margin: 0; font-size: 13.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 760px) {
  .bm { grid-template-columns: 1fr; }
  .bm__steps { grid-template-columns: 1fr; }
  .bm__head .bm__cta { margin-top: 22px; }
}

/* ---- Property modal ---- */
.pm { display: grid; grid-template-columns: 1.05fr 0.95fr; grid-template-rows: minmax(0, 1fr); max-height: min(90vh, 860px); }
.pm__gallery { background: var(--espresso); padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; }
.pm__main { position: relative; border-radius: 10px; overflow: hidden; background: #1a1812; flex: 1 1 auto; min-height: 0; }
.pm__main img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
.pm__badge { position: absolute; top: 14px; left: 14px; z-index: 2; }
.pm__navbtn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%;
  background: rgba(20,17,12,.5); color: #fff; border: 1px solid rgba(255,255,255,.35);
  font-size: 22px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s;
}
.pm__navbtn:hover { background: rgba(20,17,12,.85); }
.pm__navbtn.prev { left: 12px; }
.pm__navbtn.next { right: 12px; }
.pm__counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(20,17,12,.6); color: #fff;
  font-size: 12px; font-weight: 600; letter-spacing: .04em;
  padding: 5px 11px; border-radius: 100px;
}
.pm__thumbs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none; }
.pm__thumbs::-webkit-scrollbar { display: none; }
.pm__thumbs button { flex: 0 0 64px; height: 50px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; transition: border-color .25s, opacity .25s; opacity: .55; }
.pm__thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.pm__thumbs button:hover { opacity: 1; }
.pm__thumbs button.on { border-color: var(--gold-soft); opacity: 1; }

.pm__info { display: flex; flex-direction: column; min-height: 0; }
.pm__scroll { flex: 1; min-height: 0; overflow-y: auto; padding: clamp(26px, 3vw, 40px); }
.pm__info .casa__loc { color: var(--accent-deep); }
.pm__title { font-size: clamp(24px, 2.6vw, 32px); margin: 8px 0 0; }
.pm__price { font-family: var(--display); font-size: clamp(26px, 3vw, 34px); color: var(--accent-deep); margin: 16px 0; }
.pm__price-note { font-family: var(--sans); font-size: 13px; color: var(--ink-3); font-weight: 500; }
.pm__soldtag { color: #a8443c; }
.pm__specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pm__spec { display: flex; align-items: center; gap: 12px; }
.pm__spec svg { width: 26px; height: 26px; color: var(--accent-deep); flex: 0 0 auto; stroke-width: 1.4; }
.pm__spec b { display: block; font-family: var(--display); font-size: 19px; font-weight: 400; color: var(--ink); line-height: 1.1; }
.pm__spec span { font-size: 12.5px; color: var(--ink-3); }
.pm__desc { margin: 20px 0 0; }
.pm__desc p { margin: 0 0 12px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.pm__actions { flex: 0 0 auto; display: flex; gap: 12px; flex-wrap: wrap; padding: 16px clamp(26px, 3vw, 40px); border-top: 1px solid var(--line); background: var(--paper); }
.pm__actions .btn { flex: 1; min-width: 150px; }
@media (max-width: 820px) {
  .modal__panel--wide { overflow-y: auto; }
  .pm { grid-template-columns: 1fr; grid-template-rows: none; max-height: none; }
  .pm__scroll { overflow-y: visible; }
  .pm__main { flex: 0 0 auto; aspect-ratio: 4 / 3; }
}
