:root {
  --bg: #f6f4ef;
  --surface: #ffffff;
  --surface-soft: #eef2ef;
  --ink: #1b2420;
  --muted: #55615b;
  --forest: #2d5a4c;
  --forest-dark: #1f4036;
  --gold: #a98650;
  --border: #dfe5df;
  --wa: #1f7a4c;
  --wa-hover: #17603b;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(24, 38, 32, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  padding-bottom: 68px;
}

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

.container {
  width: min(1200px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246, 244, 239, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.brand {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.brand-mark {
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 15px;
  color: var(--forest-dark);
}
.brand-sub {
  font-size: 12px;
  color: var(--muted);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-switch {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 3px;
}

.lang-btn {
  border: 0;
  background: transparent;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  color: var(--muted);
}
.lang-btn.is-active {
  background: var(--forest);
  color: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 10px;
  padding: 12px 18px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 8px; }
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--forest-dark); }
.btn-outline { background: var(--surface); border-color: var(--border); color: var(--forest-dark); }
.btn-outline:hover { border-color: var(--forest); }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: var(--wa-hover); }
.btn-outline-light { background: transparent; border-color: rgba(255,255,255,0.34); color: #fff; }
.btn-outline-light:hover { border-color: #fff; background: rgba(255,255,255,0.08); }

.hero {
  padding: 40px 0 28px;
  background: linear-gradient(180deg, #eceee9 0%, var(--bg) 100%);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 10px;
}
.hero h1 {
  margin: 0 0 14px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.12;
  color: var(--forest-dark);
}
.hero-lead {
  margin: 0 0 22px;
  font-size: 16px;
  color: var(--muted);
  max-width: 60ch;
}
.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-trust {
  display: grid;
  gap: 10px;
}
.trust-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}
.trust-card strong {
  display: block;
  font-size: 14px;
  color: var(--forest-dark);
  margin-bottom: 2px;
}
.trust-card span {
  font-size: 13px;
  color: var(--muted);
}

.offers-section {
  padding: 12px 0 44px;
}
.controls-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}
.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pill.is-active {
  background: var(--forest);
  border-color: var(--forest);
  color: #fff;
}

.sort-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
}
.sort-wrap select {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

.house-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.card-media {
  position: relative;
  background: #232b27;
  cursor: zoom-in;
  overflow: hidden;
  aspect-ratio: 1130 / 540;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}
.house-card:hover .card-media img { transform: scale(1.02); }

.card-zoom-badge {
  position: absolute;
  right: 12px;
  top: 12px;
  background: rgba(27, 36, 32, 0.78);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.card-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.status-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--forest);
  background: var(--surface-soft);
  padding: 4px 9px;
  border-radius: 999px;
  margin-bottom: 6px;
}
.house-title {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: var(--forest-dark);
}
.house-tag {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.price-box {
  text-align: right;
  flex-shrink: 0;
}
.price-net {
  display: block;
  font-size: 19px;
  font-weight: 800;
  color: var(--forest-dark);
  white-space: nowrap;
}
.price-gross {
  display: block;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  background: #faf9f6;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
}
.spec-item strong {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold);
}
.spec-item span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.highlights {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.card-actions {
  margin-top: auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  padding-top: 6px;
}

.steps-section {
  padding: 42px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.steps-section h2 {
  margin: 0 0 22px;
  font-size: clamp(22px, 3vw, 30px);
  color: var(--forest-dark);
}
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
}
.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--gold);
  margin-bottom: 6px;
}
.step-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--forest-dark);
}
.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.contact-banner {
  background: var(--forest-dark);
  color: #fff;
  padding: 42px 0;
}
.contact-banner .eyebrow { color: #d8c094; }
.contact-banner h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 30px); }
.contact-banner p { margin: 0; color: rgba(255,255,255,0.82); max-width: 52ch; }
.contact-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}
.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.site-footer {
  padding: 22px 0;
  font-size: 13px;
  color: var(--muted);
}
.footer-inner p { margin: 4px 0; }
.legal { font-size: 11px; color: #74807a; }

.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 22, 19, 0.78);
}
.lightbox-panel {
  position: relative;
  background: var(--surface);
  border-radius: 14px;
  width: min(860px, 100%);
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}
.lightbox-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}
.lightbox-header h3 { margin: 0; font-size: 17px; color: var(--forest-dark); }
.lightbox-header p { margin: 2px 0 0; font-size: 13px; color: var(--muted); font-weight: 600; }
.lightbox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.lightbox-close {
  border: 1px solid var(--border);
  background: var(--bg);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 16px;
  cursor: pointer;
}
.lightbox-body {
  overflow: auto;
  padding: 14px;
  background: #eceae3;
  text-align: center;
}
.lightbox-body img {
  margin: 0 auto;
  border-radius: 8px;
  max-width: 100%;
  height: auto;
}

.mobile-sticky {
  display: none;
}

@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .topbar-actions .btn-whatsapp { display: none; }
  .card-head { flex-direction: column; }
  .price-box { text-align: left; }
  .card-actions { grid-template-columns: 1fr; }
  .mobile-sticky {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 14px;
    background: rgba(246, 244, 239, 0.96);
    border-top: 1px solid var(--border);
  }
  .mobile-sticky .btn { width: 100%; }
}
