/* ===== Tokens ===== */
:root {
  --ink: #16211d;
  --forest: #234a3c;
  --forest-soft: #cdd9d1;
  --sage: #5c7d6a;
  --sage-soft: #e1e9e2;
  --gold: #b08a4a;
  --sand: #f3efe8;
  --cream: #faf8f4;
  --line: #e6e0d6;
  --muted: #6b7570;
  --white: #ffffff;

  --maxw: 1160px;
  --radius: 10px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(22, 33, 29, .05), 0 6px 20px rgba(22, 33, 29, .05);
  --shadow-md: 0 10px 40px rgba(22, 33, 29, .10);

  --font-serif: "Fraunces", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ===== Reset ===== */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Typography ===== */
h1, h2, h3 { font-family: var(--font-serif); font-weight: 500; line-height: 1.12; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(2.25rem, 5.2vw, 3.9rem); font-weight: 400; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.35rem; }
p { color: #35413b; }
strong { font-weight: 600; color: var(--ink); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--font-sans); font-size: .98rem; font-weight: 600;
  padding: .85rem 1.5rem; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s ease, background .2s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: #1b3a2f; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); color: var(--forest); }
.btn-block { width: 100%; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, .82);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .6rem; }
.brand-mark {
  width: 24px; height: 24px; border-radius: 6px;
  background: linear-gradient(135deg, var(--forest), var(--sage));
  position: relative; flex: none;
}
.brand-mark::after {
  content: ""; position: absolute; inset: 7px; border-radius: 2px;
  border: 2px solid rgba(255,255,255,.85); border-bottom: none; border-right: none;
  transform: rotate(45deg);
}
.brand-name { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
.brand-name span { color: var(--sage); }

.nav { display: flex; gap: 2rem; }
.nav a { font-size: .95rem; font-weight: 500; color: #3c473f; position: relative; padding: .25rem 0; }
.nav a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 0; height: 2px; background: var(--forest); transition: width .2s ease; }
.nav a:hover { color: var(--forest); }
.nav a:hover::after { width: 100%; }
.btn-header { padding: .6rem 1.2rem; }

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile { display: none; flex-direction: column; gap: .25rem; padding: 0 24px 16px; border-bottom: 1px solid var(--line); background: var(--cream); }
.nav-mobile a { padding: .75rem .25rem; font-weight: 500; border-bottom: 1px solid var(--line); }
.nav-mobile a:last-child { border: 0; margin-top: .5rem; }
.nav-mobile.open { display: flex; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; display: flex; align-items: center; min-height: clamp(520px, 80vh, 780px); padding: clamp(4.5rem, 9vw, 7rem) 0; }
.hero-scene { position: absolute; inset: 0; z-index: 0; }
.hero-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,24,19,.82) 0%, rgba(14,24,19,.48) 48%, rgba(14,24,19,.12) 100%),
    linear-gradient(0deg, rgba(14,24,19,.55) 0%, rgba(14,24,19,0) 55%);
}

.hero-content { position: relative; z-index: 1; max-width: 760px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: #bcd3c4; margin-bottom: 1.1rem; }
.hero-content h1 { margin-bottom: 1.3rem; color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hero-sub { font-size: 1.18rem; color: rgba(255,255,255,.9); max-width: 620px; margin-bottom: 2rem; text-shadow: 0 1px 12px rgba(0,0,0,.3); }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.55); background: rgba(255,255,255,.06); }
.hero .btn-ghost:hover { color: #fff; border-color: #fff; background: rgba(255,255,255,.14); }

/* ===== Stats ===== */
.stats { background: var(--forest); color: #fff; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 2rem 1rem; text-align: center; border-right: 1px solid rgba(255,255,255,.12); }
.stat:last-child { border-right: 0; }
.stat-num { display: block; font-family: var(--font-serif); font-size: 1.9rem; font-weight: 500; }
.stat-label { display: block; font-size: .85rem; color: rgba(255,255,255,.72); margin-top: .35rem; letter-spacing: .02em; }

/* ===== Sections ===== */
.section { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.section-alt { background: var(--sand); }
.section-eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 600; color: var(--sage); margin-bottom: .9rem; }
.section-head { max-width: 680px; margin-bottom: 3rem; }
.section-head h2 { margin-bottom: 1rem; }
.section-lead { font-size: 1.1rem; color: var(--muted); }

/* two column */
.two-col { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3.5rem; align-items: center; }
.col-text h2 { margin-bottom: 1.25rem; }
.col-text p { margin-bottom: 1rem; }
.feature-list { margin-top: 1.5rem; display: grid; gap: .85rem; }
.feature-list li { position: relative; padding-left: 1.8rem; color: #35413b; }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: .5em; width: .7rem; height: .7rem;
  border-radius: 50%; background: var(--sage-soft); border: 2px solid var(--sage);
}

.location-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.location-visual svg { width: 100%; height: auto; }
.location-meta { padding: 1.4rem 1.6rem 1.7rem; display: grid; gap: 1rem; }
.location-meta div { display: flex; flex-direction: column; gap: .15rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.location-meta div:last-child { border-bottom: 0; padding-bottom: 0; }
.location-meta span { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.location-meta strong { font-size: 1.02rem; }

/* ===== Parcelas cards ===== */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.parcela-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2rem 2rem 2.2rem; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease;
}
.parcela-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.parcela-card--feature { border-color: var(--gold); position: relative; }
.parcela-card--feature::before {
  content: ""; position: absolute; inset: 0; border-radius: var(--radius-lg);
  box-shadow: inset 0 0 0 1px var(--gold); pointer-events: none;
}
.parcela-tag {
  align-self: flex-start; font-size: .75rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; color: var(--sage); background: var(--sage-soft);
  padding: .35rem .75rem; border-radius: 999px; margin-bottom: 1.25rem;
}
.parcela-tag--gold { color: #8a6a2d; background: #f3e9d4; }
.parcela-card h3 { font-size: 1.6rem; margin-bottom: .75rem; }
.parcela-desc { color: #45514a; margin-bottom: 1.5rem; }
.parcela-specs { display: grid; gap: .7rem; margin-bottom: 1.6rem; padding-bottom: 1.6rem; border-bottom: 1px solid var(--line); }
.parcela-specs li { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.parcela-specs span { color: var(--muted); font-size: .92rem; }
.parcela-specs strong { text-align: right; }
.parcela-price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.5rem; }
.parcela-price span { color: var(--muted); font-size: .9rem; }
.parcela-price strong { font-family: var(--font-serif); font-size: 2rem; font-weight: 500; color: var(--forest); }
.parcela-card .btn { margin-top: auto; }

.full-field-note {
  margin-top: 2rem; text-align: center; color: var(--muted);
  background: var(--white); border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 1.1rem 1.5rem;
}
.full-field-note a { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ===== Detalle de lotes ===== */
.lots { margin-top: 3rem; }
.lots-head { margin-bottom: 1.25rem; }
.lots-head h3 { font-size: 1.5rem; margin-bottom: .35rem; }
.lots-head p { color: var(--muted); font-size: 1rem; }
.lots-table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.lots-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.lots-table thead th {
  text-align: left; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em;
  font-weight: 600; color: var(--muted); background: var(--sand);
  padding: .95rem 1.25rem; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.lots-table td { padding: .85rem 1.25rem; border-bottom: 1px solid var(--line); color: #35413b; vertical-align: middle; }
.lots-table tbody tr:last-child td { border-bottom: 0; }
.lots-table tbody tr:hover { background: var(--cream); }
.lots-table td:first-child { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 500; color: var(--ink); }
.cat { display: inline-block; font-size: .78rem; font-weight: 600; padding: .25rem .7rem; border-radius: 999px; white-space: nowrap; }
.cat-volcan { color: var(--sage); background: var(--sage-soft); }
.cat-embalse { color: #8a6a2d; background: #f3e9d4; }
.lots-table td:last-child { white-space: nowrap; color: var(--muted); }
.dot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #3fae6a; margin-right: .5rem; vertical-align: middle; }
.lots-note { margin-top: .9rem; font-size: .82rem; color: var(--muted); }

@media (max-width: 680px) {
  .lots-table-wrap { box-shadow: none; }
  .lots-table thead { display: none; }
  .lots-table, .lots-table tbody, .lots-table tr, .lots-table td { display: block; width: 100%; }
  .lots-table tr { border-bottom: 1px solid var(--line); padding: .4rem 0; }
  .lots-table tbody tr:last-child { border-bottom: 0; }
  .lots-table tbody tr:hover { background: transparent; }
  .lots-table td { border: 0; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .45rem 1.1rem; }
  .lots-table td::before { content: attr(data-label); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; color: var(--muted); }
  .lots-table td:first-child { font-size: 1.15rem; }
}

/* ===== Servicios ===== */
.service-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.75rem; }
.service-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 2rem; box-shadow: var(--shadow-sm); }
.service-icon { width: 48px; height: 48px; border-radius: 12px; background: var(--sage-soft); color: var(--forest); display: grid; place-items: center; margin-bottom: 1.25rem; }
.service-icon svg { width: 26px; height: 26px; }
.service-card h3 { margin-bottom: .8rem; }
.service-card p { margin-bottom: 1rem; color: #45514a; }
.service-legal { font-size: .95rem; color: var(--muted); background: var(--sand); border-left: 3px solid var(--sage); padding: .9rem 1.1rem; border-radius: 0 8px 8px 0; }
.service-cost { font-size: 1rem; color: var(--ink) !important; margin-top: 1.1rem !important; margin-bottom: 0 !important; }
.service-cost strong { color: var(--forest); }
.disclaimer { margin-top: 1.75rem; font-size: .88rem; color: var(--muted); text-align: center; }

/* ===== Galería ===== */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; grid-auto-rows: 230px; }
.gallery-item {
  margin: 0; border-radius: var(--radius); overflow: hidden; position: relative;
  border: 1px solid var(--line); background: var(--sage-soft);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 1.6rem .95rem .75rem; font-size: .9rem; font-weight: 500; color: #fff;
  background: linear-gradient(0deg, rgba(10,18,14,.78) 0%, rgba(10,18,14,0) 100%);
  text-shadow: 0 1px 8px rgba(0,0,0,.3);
}
.gallery-item--wide { grid-column: span 2; }

/* ===== CTA ===== */
.cta-section { background: var(--ink); color: #fff; }
.cta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3.5rem; align-items: start; }
.cta-text h2 { color: #fff; margin-bottom: 1.1rem; }
.cta-text p { color: rgba(255,255,255,.78); margin-bottom: 1.75rem; max-width: 420px; }
.section-eyebrow--light { color: #9ab8a6; }
.cta-whatsapp {
  display: inline-flex; align-items: center; gap: .6rem; font-weight: 600;
  color: #fff; border: 1px solid rgba(255,255,255,.25); padding: .8rem 1.3rem; border-radius: 999px;
  transition: background .2s ease, border-color .2s ease;
}
.cta-whatsapp svg { width: 20px; height: 20px; color: #25d366; }
.cta-whatsapp:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.5); }

.cta-form { background: var(--cream); border-radius: var(--radius-lg); padding: 2rem; display: grid; gap: 1.1rem; box-shadow: var(--shadow-md); }
.field { display: grid; gap: .4rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field label { font-size: .85rem; font-weight: 600; color: var(--ink); }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: var(--font-sans); font-size: 1rem; color: var(--ink);
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; width: 100%;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--sage); box-shadow: 0 0 0 3px var(--sage-soft);
}
.field input.invalid, .field select.invalid { border-color: #c0553f; box-shadow: 0 0 0 3px #f3dcd4; }
.cta-form .btn { margin-top: .3rem; }
.form-note { font-size: .9rem; text-align: center; min-height: 1.2em; color: var(--forest); }
.form-note.error { color: #c0553f; }

/* ===== Footer ===== */
.site-footer { background: var(--ink); color: rgba(255,255,255,.75); padding: 3.5rem 0 2rem; border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; align-items: start; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,.1); }
.footer-brand .brand-name { color: #fff; font-size: 1.3rem; }
.footer-brand .brand-name span { color: var(--sage); }
.footer-brand p { color: rgba(255,255,255,.6); margin-top: .6rem; max-width: 300px; font-size: .95rem; }
.footer-nav, .footer-contact { display: grid; gap: .7rem; }
.footer-nav a, .footer-contact a { color: rgba(255,255,255,.78); font-size: .95rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #fff; }
.footer-legal { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; padding-top: 1.5rem; }
.footer-legal p { color: rgba(255,255,255,.5); font-size: .82rem; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .nav, .btn-header { display: none; }
  .nav-toggle { display: flex; }
  .two-col { grid-template-columns: 1fr; gap: 2.5rem; }
  .cta-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid rgba(255,255,255,.12); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .cards, .service-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery-item--wide { grid-column: span 2; }
  .field-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; gap: 1.75rem; }
  .hero-actions .btn { flex: 1; }
}
@media (max-width: 420px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat { border-right: 0 !important; border-bottom: 1px solid rgba(255,255,255,.12); }
}
