:root {
  --forest: #1d3528;
  --pine: #2e5640;
  --moss: #6f8a4e;
  --meadow: #b9c48a;
  --cream: #f6f2e9;
  --paper: #fffdf8;
  --ink: #1f2a23;
  --muted: #5d6a61;
  --line: #ddd6c6;
  --clay: #b8642f;
  --clay-dark: #934d21;
  --sold: #c9c2b3;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(29, 53, 40, .12);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); color: var(--forest); }
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--clay); margin: 0 0 .6rem; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 62ch; }
section { padding: clamp(64px, 9vw, 110px) 0; }

/* botones */
.btn { display: inline-flex; align-items: center; gap: .55em; padding: .85em 1.4em; border-radius: 999px; font-weight: 600; text-decoration: none; border: 0; cursor: pointer; font: 600 1rem var(--sans); transition: transform .15s, background .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--clay); color: #fff; box-shadow: 0 6px 18px rgba(184, 100, 47, .35); }
.btn-primary:hover { background: var(--clay-dark); }
.btn-ghost { background: rgba(255, 255, 255, .14); color: #fff; border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .24); }
.btn-outline { background: transparent; color: var(--forest); border: 1.5px solid var(--forest); }
.btn-outline:hover { background: var(--forest); color: #fff; }
.btn svg { width: 1.15em; height: 1.15em; flex: none; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .25s, box-shadow .25s; }
.nav.solid { background: rgba(29, 53, 40, .96); box-shadow: 0 2px 16px rgba(0, 0, 0, .18); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { color: #fff; text-decoration: none; display: flex; flex-direction: column; line-height: 1.1; }
.brand b { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; }
.brand small { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; opacity: .8; }
.nav nav { display: flex; gap: 26px; align-items: center; }
.nav nav a { color: #fff; text-decoration: none; font-size: .95rem; opacity: .9; }
.nav nav a:hover { opacity: 1; }
.nav .btn { padding: .6em 1.1em; font-size: .92rem; }
@media (max-width: 860px) { .nav nav a:not(.btn) { display: none; } }

/* hero */
.hero { position: relative; min-height: min(100svh, 880px); display: flex; align-items: flex-end; color: #fff; padding: 0 0 clamp(48px, 8vw, 96px); background: var(--forest) url("../img/portada.jpg") center 35% / cover no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15, 30, 22, .55) 0%, rgba(15, 30, 22, .1) 35%, rgba(15, 30, 22, .78) 100%); }
.hero .wrap { position: relative; }
.hero h1 { font-size: clamp(2.3rem, 6vw, 4.4rem); max-width: 16ch; margin-bottom: .35em; text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero p { font-size: clamp(1.05rem, 1.8vw, 1.3rem); max-width: 54ch; margin: 0 0 1.8rem; opacity: .95; }
.hero .eyebrow { color: var(--meadow); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* datos clave */
.facts { background: var(--forest); color: #fff; padding: 0; }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 22px; border-left: 1px solid rgba(255, 255, 255, .12); }
.fact:first-child { border-left: 0; }
.fact b { display: block; white-space: nowrap; font-family: var(--serif); font-size: clamp(1.15rem, 2.1vw, 1.75rem); font-weight: 600; color: var(--meadow); line-height: 1.1; }
.fact span { font-size: .9rem; opacity: .85; }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .fact:nth-child(3) { border-left: 0; } .fact { border-top: 1px solid rgba(255, 255, 255, .12); } }

/* lotes */
.lots-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px; align-items: start; margin-top: 36px; }
@media (max-width: 960px) { .lots-grid { grid-template-columns: 1fr; } }
.map-card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: sticky; top: 88px; }
@media (max-width: 960px) { .map-card { position: static; } }
.map-card svg { width: 100%; height: auto; max-height: 640px; display: block; }
.legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 14px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; }

.plano .lot { stroke: var(--forest); stroke-width: calc(var(--u) * .28); stroke-linejoin: round; transition: fill .2s; }
.plano .lot.disponible { fill: #cfe0a6; cursor: pointer; }
.plano .lot.disponible:hover, .plano .lot.disponible:focus, .plano .lot.disponible.active { fill: #e9a36f; outline: none; }
.plano .lot.vendido { fill: var(--sold); }
.plano .lot.no-disponible { fill: #e4dfd3; }
.plano .road { fill: #efe6d2; stroke: #a89a7c; stroke-width: calc(var(--u) * .18); }
.plano .well { fill: #8fb7c9; stroke: #4d7d92; stroke-width: calc(var(--u) * .15); }
.plano text { font-family: var(--sans); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.plano .lot-label { font-weight: 700; fill: var(--forest); }
.plano .lot-label.vendido, .plano .lot-label.no-disponible { fill: #7c7566; }
.plano .lot-area { fill: var(--ink); opacity: .75; }
.plano .road-label { fill: #8a7b5c; letter-spacing: .3em; font-weight: 600; }
.plano .ctx-label { fill: #8a8577; }
.north path { fill: var(--forest); }
.north text, .scalebar text { font-family: var(--sans); fill: var(--forest); font-weight: 700; text-anchor: middle; }
.scalebar text { text-anchor: start; dominant-baseline: middle; font-weight: 600; }
.scalebar .sb-a { fill: var(--forest); } .scalebar .sb-b { fill: #fff; stroke: var(--forest); stroke-width: .3; }

.lot-list { display: grid; gap: 16px; }
.lot-card { background: var(--paper); border-radius: var(--radius); padding: 22px 24px; box-shadow: 0 2px 10px rgba(29, 53, 40, .06); border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; scroll-margin-top: 90px; }
.lot-card.active { border-color: var(--clay); box-shadow: var(--shadow); }
.lot-card header { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.lot-card h3 { font-size: 1.5rem; margin: 0; color: var(--forest); }
.badge { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: .35em .8em; border-radius: 999px; background: #e3ecd0; color: var(--pine); white-space: nowrap; }
.badge.vendido { background: #ece8df; color: #7c7566; }
.lot-card dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px 14px; margin: 0 0 16px; }
.lot-card dt { font-size: .76rem; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.lot-card dd { margin: 0; font-weight: 600; font-size: 1.02rem; }
.lot-card .price { font-family: var(--serif); font-size: 1.55rem; color: var(--clay-dark); font-weight: 600; }
.lot-card .actions { display: flex; flex-wrap: wrap; gap: 10px; }
.lot-card .actions .btn { padding: .65em 1.1em; font-size: .92rem; }
@media (max-width: 520px) { .lot-card dl { grid-template-columns: 1fr 1fr; } }
.sold-row { font-size: .9rem; color: var(--muted); background: transparent; border: 1px dashed var(--line); border-radius: var(--radius); padding: 14px 18px; }

/* beneficios */
.benefits { background: var(--paper); }
.benefit-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px; margin-top: 38px; }
.benefit { padding: 26px; border-radius: var(--radius); background: var(--cream); }
.benefit .ico { width: 46px; height: 46px; border-radius: 12px; background: var(--forest); color: var(--meadow); display: grid; place-items: center; margin-bottom: 16px; }
.benefit .ico svg { width: 24px; height: 24px; }
.benefit h3 { font-size: 1.25rem; color: var(--forest); }
.benefit p { margin: 0; color: var(--muted); font-size: .97rem; }

/* galería */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; gap: 10px; margin-top: 36px; }
.gallery button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: #ccc; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery button:hover img { transform: scale(1.05); }
.gallery .big { grid-column: span 2; grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr 1fr; grid-auto-rows: 150px; } }
.lightbox { position: fixed; inset: 0; background: rgba(10, 18, 13, .92); display: none; align-items: center; justify-content: center; z-index: 80; padding: 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-height: 88vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .14); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.6rem; cursor: pointer; }
.lightbox .close { top: 16px; right: 16px; }
.lightbox .prev { left: 16px; top: 50%; } .lightbox .next { right: 16px; top: 50%; }

/* servicios / legal */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 36px; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.panel { background: var(--paper); border-radius: var(--radius); padding: 28px; box-shadow: 0 2px 10px rgba(29, 53, 40, .06); }
.panel h3 { color: var(--forest); font-size: 1.35rem; }
.svc { display: grid; grid-template-columns: 40px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.svc:first-of-type { border-top: 0; }
.svc .dot { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #e3ecd0; color: var(--pine); }
.svc .dot.warn { background: #f6e2d2; color: var(--clay-dark); }
.svc .dot svg { width: 20px; height: 20px; }
.svc b { display: block; }
.svc span { color: var(--muted); font-size: .95rem; }
.checks { list-style: none; padding: 0; margin: 0; }
.checks li { position: relative; padding: 10px 0 10px 30px; border-top: 1px solid var(--line); color: var(--ink); font-size: .97rem; }
.checks li:first-child { border-top: 0; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 16px; width: 14px; height: 8px; border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg); }

/* ubicación */
.location-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 28px; align-items: stretch; margin-top: 36px; }
@media (max-width: 860px) { .location-grid { grid-template-columns: 1fr; } }
.map-embed { border-radius: var(--radius); overflow: hidden; min-height: 380px; box-shadow: var(--shadow); background: #ddd; }
.map-embed iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }
.distances { list-style: none; margin: 0 0 22px; padding: 0; }
.distances li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.distances b { font-family: var(--serif); color: var(--forest); }

/* contacto */
.cta { background: linear-gradient(rgba(20, 38, 28, .82), rgba(20, 38, 28, .88)), url("../img/sierra-pinos.jpg") center / cover; color: #fff; text-align: center; }
.cta h2 { color: #fff; }
.cta p { max-width: 56ch; margin: 0 auto 28px; opacity: .92; font-size: 1.1rem; }
.cta .phone { display: block; font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); margin-top: 22px; color: var(--meadow); text-decoration: none; }
footer { background: #13241b; color: rgba(255, 255, 255, .75); font-size: .95rem; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-grid p { margin: 14px 0 0; max-width: 40ch; }
footer h4 { font: 700 .82rem var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #fff; margin: 4px 0 16px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 10px; }
footer a { text-decoration: none; }
footer a:hover { color: #fff; }
footer .u { text-decoration: underline; text-underline-offset: 3px; }
.bt-logo { display: inline-block; background: #fff; border-radius: 12px; padding: 14px 18px; margin-bottom: 14px; }
.bt-logo img { width: 96px; height: auto; }
.foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 40px; padding-top: 22px; font-size: .82rem; color: rgba(255, 255, 255, .55); }
.cta .by { margin: 26px auto 0; font-size: .95rem; opacity: .8; }
.cta .by a { font-weight: 700; color: #fff; text-underline-offset: 3px; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 8px 22px rgba(0, 0, 0, .25); }
.wa-float svg { width: 30px; height: 30px; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s, transform .7s; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
