:root {
  --green-900: #1f3320;
  --green-800: #2f4a2b;
  --green-600: #4d6e3f;
  --green-100: #e6ecdc;
  --wheat: #c99a2e;
  --wheat-100: #f6ecd2;
  --cream: #faf7ef;
  --paper: #ffffff;
  --ink: #1f2420;
  --muted: #5d655b;
  --line: #e2ddcf;
  --wa: #1fa855;
  --wa-dark: #178a45;
  --amber: #b9771a;
  --gray: #8a8f87;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(31, 36, 32, .06), 0 8px 24px rgba(31, 36, 32, .07);
  --serif: "Fraunces", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; font: 400 16px/1.6 var(--sans); color: var(--ink); background: var(--cream); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--green-800); }
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.5vw, 2.5rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.wrap.narrow { width: min(760px, 100% - 32px); }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .75rem; font-weight: 600; color: var(--wheat); margin-bottom: .6em; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .8em 1.3em; border-radius: 999px; border: 1.5px solid transparent;
  background: var(--green-800); color: #fff; font: 600 .95rem/1 var(--sans);
  text-decoration: none; cursor: pointer; transition: background .15s, transform .15s, border-color .15s;
}
.btn:hover { background: var(--green-900); transform: translateY(-1px); }
.btn svg { width: 1.2em; height: 1.2em; }
.btn-sm { padding: .55em 1em; font-size: .85rem; }
.btn-block { width: 100%; }
.btn-wa { background: var(--wa); }
.btn-wa:hover { background: var(--wa-dark); }
.btn-ghost { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .7); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .25); }
.btn-ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .6); }
.btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); }
.btn-line { background: transparent; color: var(--green-800); border-color: var(--line); }
.btn-line:hover { background: var(--green-100); border-color: var(--green-100); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 239, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.brand { display: flex; align-items: center; gap: .55em; text-decoration: none; color: var(--ink); font-size: 1rem; white-space: nowrap; }
.brand strong { font-weight: 600; }
.brand-mark { width: 30px; height: 30px; color: var(--green-800); }
.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-size: .92rem; font-weight: 500; }
.nav a:not(.btn):hover { color: var(--green-600); }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: min(88vh, 760px); display: flex; align-items: flex-end; color: #fff; overflow: hidden; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 30, 20, .15) 0%, rgba(20, 30, 20, .25) 45%, rgba(20, 30, 20, .78) 100%); }
.hero-content { position: relative; padding: 0 0 clamp(40px, 8vh, 80px); }
.hero .eyebrow { color: var(--wheat-100); }
.hero h1 { font-size: clamp(2.2rem, 6vw, 4.2rem); max-width: 14ch; text-shadow: 0 2px 20px rgba(0, 0, 0, .25); }
.hero .lead { font-size: clamp(1.05rem, 2vw, 1.25rem); max-width: 46ch; opacity: .95; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* ---------- Datos clave ---------- */
.facts { background: var(--green-800); color: #fff; }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 26px 16px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid rgba(255, 255, 255, .14); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact-num { font-family: var(--serif); font-size: 1.55rem; font-weight: 600; }
.fact-label { font-size: .88rem; opacity: .8; }

/* ---------- Secciones ---------- */
.section { padding: clamp(64px, 10vw, 110px) 0; }
.section-alt { background: var(--paper); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head p:last-child { color: var(--muted); }
.section-head.left { text-align: left; margin: 0 0 28px; }

/* ---------- Lotes ---------- */
.lots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.lot-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.lot-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.lot-num { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--green-100); color: var(--green-800); font: 600 1.15rem var(--serif); }
.lot-card h3 { margin-bottom: .15em; }
.lot-official { font-size: .85rem; color: var(--muted); margin-bottom: .8em; }
.lot-area { font: 600 2rem/1 var(--serif); color: var(--green-800); margin-bottom: .5em; }
.lot-summary { font-weight: 500; }
.lot-card ul { margin: 0 0 1.2em; padding: 0; list-style: none; font-size: .92rem; color: var(--muted); }
.lot-card li { padding: .35em 0 .35em 1.5em; position: relative; border-top: 1px dashed var(--line); }
.lot-card li::before { content: ""; position: absolute; left: 2px; top: .85em; width: 9px; height: 5px; border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg); }
.lot-price { font: 600 1.6rem/1.2 var(--serif); margin: auto 0 16px; padding-top: 8px; }
.lot-price.ask { font: 600 1.05rem var(--sans); color: var(--wheat); }
.lot-price.sold { color: var(--gray); }
.lot-actions { display: grid; gap: 10px; }
.estado-vendido { opacity: .65; }

.pill { font-size: .75rem; font-weight: 600; padding: .3em .8em; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.pill-disponible { background: var(--green-100); color: var(--green-800); }
.pill-reservado { background: var(--wheat-100); color: var(--amber); }
.pill-vendido { background: #ececea; color: var(--gray); }

.pack { margin-top: 24px; background: var(--green-900); color: #fff; border-radius: var(--radius); padding: 26px 30px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.pack h3 { margin-bottom: .2em; }
.pack p { margin: 0; opacity: .85; }
.pack-right { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.pack-price { font: 600 1.5rem var(--serif); }
.pack-price.ask { font: 600 1rem var(--sans); color: var(--wheat-100); }

/* ---------- Plano ---------- */
.plano-grid { display: grid; grid-template-columns: minmax(260px, 400px) 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.plano-figure { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 16px 16px; }
#plano-svg { width: 100%; height: auto; max-height: 72vh; display: block; margin: 0 auto; font-family: var(--sans); }
.road { fill: #d9cfb8; }
.road-label { font-size: 11px; fill: #6b604a; font-weight: 600; letter-spacing: .02em; }
.lot { fill: #cfe0bf; stroke: var(--green-800); stroke-width: 1.5; cursor: pointer; transition: fill .15s; outline: none; }
.lot:hover, .lot:focus-visible { fill: #b9d3a3; }
.lot.selected { fill: var(--green-600); }
.lot.estado-reservado { fill: #f0deb0; }
.lot.estado-vendido { fill: #dcdcd8; }
.lot.selected.estado-reservado { fill: var(--wheat); }
.lot.selected.estado-vendido { fill: var(--gray); }
.easement { fill: #e9e1cb; stroke: #a8996f; stroke-width: .8; stroke-dasharray: 3 2; pointer-events: none; }
.lot-label { pointer-events: none; }
.ll-name { font: 600 16px var(--serif); fill: var(--green-900); }
.ll-sub { font-size: 11px; fill: var(--green-800); }
.lot-label.selected .ll-name, .lot-label.selected .ll-sub { fill: #fff; }
.neighbor { font-size: 11px; fill: #9a9585; letter-spacing: .08em; text-transform: uppercase; }
.north polygon { fill: var(--ink); }
.north text { font: 600 12px var(--sans); fill: var(--ink); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: .8rem; color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 6px; }
.sw { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.sw-easement { background: #e9e1cb; border: 1px dashed #a8996f; }
.sw-sel { background: var(--green-600); }
.plano-detail { background: var(--cream); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; }
.pd-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.pd-head h3 { margin: 0; }
.plano-detail .lot-price { margin: 4px 0 14px; }
.note { font-size: .82rem; color: var(--muted); }
.plano-fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(32px, 5vw, 56px); }
.plano-foto { margin: 0; }
.plano-foto a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: var(--green-100); aspect-ratio: 16 / 9; }
.plano-foto img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.plano-foto a:hover img { transform: scale(1.03); }
.plano-foto figcaption { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.plano-fotos-note { grid-column: 1 / -1; margin: 0; }

/* ---------- Ubicación ---------- */
.ubic-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(32px, 6vw, 72px); align-items: center; }
.checklist { list-style: none; padding: 0; margin: 0 0 28px; }
.checklist li { padding: .5em 0 .5em 2em; position: relative; border-bottom: 1px solid var(--line); }
.checklist li::before { content: ""; position: absolute; left: 4px; top: 1em; width: 11px; height: 6px; border-left: 2px solid var(--green-600); border-bottom: 2px solid var(--green-600); transform: rotate(-45deg); }
.map-frame { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; background: var(--green-100); }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- Galería ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 200px; gap: 10px; grid-auto-flow: dense; }
.g-item { padding: 0; border: 0; border-radius: 10px; overflow: hidden; cursor: zoom-in; background: var(--green-100); }
.g-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.g-item:hover img { transform: scale(1.04); }
.g-wide { grid-column: span 2; grid-row: span 2; }

.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(10, 14, 10, .92); }
.lightbox img { max-width: 92vw; max-height: 86vh; object-fit: contain; position: absolute; inset: 0; margin: auto; border-radius: 6px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: rgba(255, 255, 255, .25); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }

/* ---------- Video ---------- */
.video-frame { aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.video-frame iframe { width: 100%; height: 100%; border: 0; }

/* ---------- Antecedentes ---------- */
.docs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.doc { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px; border-top: 3px solid var(--wheat); }
.doc h3 { font-size: 1.1rem; }
.doc p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- FAQ ---------- */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 600; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.4rem; color: var(--green-600); transition: transform .2s; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 8px; }

/* ---------- Contacto ---------- */
.contact { background: var(--green-800); color: #fff; }
.contact .eyebrow { color: var(--wheat-100); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.contact p { opacity: .9; max-width: 44ch; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }
.form { background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 28px; display: grid; gap: 16px; box-shadow: 0 20px 50px rgba(0, 0, 0, .2); }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; }
.form input, .form select, .form textarea { font: 400 1rem var(--sans); padding: .75em .9em; border: 1px solid var(--line); border-radius: 10px; background: var(--cream); color: var(--ink); width: 100%; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--green-600); outline-offset: 1px; border-color: transparent; }
.form .invalid { border-color: #c0392b; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { margin: 0; font-size: .9rem; min-height: 1.2em; text-align: center; }
.form-status.ok { color: var(--green-600); font-weight: 600; }
.form-status.err { color: #b03a2e; }
.btn:disabled { opacity: .6; cursor: wait; transform: none; }
.form-note { font-size: .8rem; color: var(--muted); margin: 0; text-align: center; opacity: 1 !important; }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-900); color: rgba(255, 255, 255, .7); font-size: .85rem; }
.footer-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 24px 84px 24px 0; }
.footer-inner p { margin: 0; }
.site-footer a { color: #fff; }

/* ---------- WhatsApp flotante ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); transition: transform .15s; }
.wa-float:hover { transform: scale(1.06); }
.wa-float svg { width: 30px; height: 30px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav a:not(.btn) { display: none; }
  .lots { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .pack { max-width: 520px; margin-inline: auto; }
  .plano-grid, .ubic-grid, .contact-grid { grid-template-columns: 1fr; }
  .plano-figure { max-width: 380px; margin-inline: auto; width: 100%; }
  .docs { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .plano-fotos { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .brand span { font-size: .9rem; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact { padding: 18px 12px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .fact-num { font-size: 1.25rem; }
  .docs { grid-template-columns: 1fr; }
  .hero { min-height: 82vh; }
  .hero-cta .btn { flex: 1 1 100%; }
  .lot-card, .form { padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
