/* ============================================================
   Construcciones MS — Design System
   Dark Premium Industrial Theme
   ============================================================ */

/* ---------- Google Fonts ---------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Barlow+Condensed:wght@400;500;600;700;800&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --bg: #F4F7FA;
  --bg2: #FFFFFF;
  --bg3: #E2E8F0;
  --glass: rgba(15, 23, 42, 0.02);
  --glass-hover: rgba(15, 23, 42, 0.05);
  --glass-border: rgba(15, 23, 42, 0.08);

  --gold: #C5A028;
  --gold-light: #D4AF37;
  --gold-dark: #8E701C;
  --gold-bg: rgba(197, 160, 40, 0.06);
  --gold-border: rgba(197, 160, 40, 0.2);

  --steel: #1E3A8A;
  --steel-light: #3B82F6;

  --text: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;

  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;

  --r: 14px;
  --r-sm: 8px;
  --r-lg: 20px;

  --shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --shadow-gold: 0 0 40px rgba(197, 160, 40, 0.1);
  --shadow-card: 0 4px 20px rgba(15, 23, 42, 0.03);

  --nav-h: 72px;
  --ease: cubic-bezier(.4,0,.2,1);
  --t: .3s var(--ease);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
input, select, textarea { font-family: inherit; }
ul { list-style: none; }

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--steel); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Typography ---------- */
.font-barlow { font-family: 'Barlow Condensed', sans-serif; }
.text-navy { color: var(--steel); }
.text-muted { color: var(--text-2); }

/* ---------- Layout ---------- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #0A0A0A;
  font-weight: 700; font-size: .9rem; letter-spacing: .5px;
  padding: 14px 28px;
  border-radius: var(--r-sm);
  transition: var(--t);
  white-space: nowrap;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(212,175,55,.35);
}
.btn-primary:active { transform: translateY(0); }
.btn-primary.btn-full { width: 100%; }
.btn-primary.btn-gold { background: linear-gradient(135deg, #c8a820, var(--gold)); }

.btn-outline {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: transparent;
  color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 13px 24px;
  border: 1.5px solid var(--glass-border);
  border-radius: var(--r-sm);
  transition: var(--t);
}
.btn-outline:hover { border-color: var(--steel); color: var(--steel); }
.btn-sm { padding: 8px 16px; font-size: .8rem; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: #ffffff;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  transition: var(--t);
}
.navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
.nav-container {
  max-width: 1280px; margin: 0 auto; padding: 0 24px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
}
.nav-brand { flex-shrink: 0; }
.nav-logo { display: flex; align-items: center; gap: 12px; }
.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: #080C18; font-size: 1.1rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1.1; }
.logo-main { font-family: 'Barlow Condensed',sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--text); letter-spacing: .5px; }
.logo-accent { font-family: 'Barlow Condensed',sans-serif; font-weight: 800; font-size: 1.3rem; color: var(--steel); letter-spacing: 2px; }

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
  transition: var(--t);
}
.logo-img:hover {
  transform: translateY(-1px);
}

.footer .logo-img {
  background: #ffffff;
  padding: 6px 14px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  display: block;
}

.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  font-size: .9rem; font-weight: 600; color: #080C18;
  transition: var(--t); position: relative; padding: 4px 0;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -2px; left: 0; width: 0; height: 2px;
  background: var(--gold-dark); transition: var(--t);
}
.nav-link:hover { color: var(--steel); }
.nav-link:hover::after { width: 100%; }
.nav-phone { font-size: .85rem; color: #080C18; font-weight: 600; display: flex; align-items: center; gap: 6px; transition: var(--t); }
.nav-phone:hover { color: var(--steel); }

.nav-actions { display: flex; align-items: center; gap: 12px; }
.btn-whatsapp-nav {
  display: flex; align-items: center; gap: 6px;
  background: #25D366; color: #fff;
  font-size: .85rem; font-weight: 700;
  padding: 8px 16px; border-radius: var(--r-sm);
  transition: var(--t);
}
.btn-whatsapp-nav:hover { background: #1ebe58; transform: translateY(-1px); }

.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 30px; padding: 4px;
}
.nav-toggle span {
  display: block; height: 2px; background: #080C18;
  border-radius: 2px; transition: var(--t);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
}
.hero-img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(8,12,24,.6) 0%,
    rgba(8,12,24,.4) 40%,
    rgba(244,247,250,.7) 80%,
    rgba(244,247,250,1) 100%
  );
}
.hero-content {
  position: relative; z-index: 1;
  text-align: center; padding: calc(var(--nav-h) + 40px) 24px 40px;
  max-width: 860px; margin: 0 auto;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: #ffffff; font-size: .8rem; font-weight: 700; letter-spacing: 1.5px;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 20px; text-transform: uppercase;
}
.hero-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 800; line-height: 1.05;
  letter-spacing: -1px;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.6);
}
.hero-subtitle {
  font-size: 1.1rem; color: #ffffff;
  max-width: 560px; margin: 0 auto 40px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.85), 0 2px 12px rgba(0,0,0,0.6);
  font-weight: 500;
}

/* Hero Search Bar */
.hero-search { margin-bottom: 0; }
.search-bar {
  display: flex; align-items: center;
  background: rgba(255,255,255,0.06);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 8px 8px 8px 8px;
  gap: 0;
}
.search-field {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 20px; flex: 1;
  border-right: 1px solid var(--glass-border);
}
.search-field:last-of-type { border-right: none; }
.search-field i { color: var(--steel); font-size: .9rem; flex-shrink: 0; }
.search-field select {
  background: transparent; border: none; outline: none;
  color: var(--text); font-size: .9rem; width: 100%;
  cursor: pointer;
  -webkit-appearance: none;
}
.search-field select option { background: var(--bg2); color: var(--text); }
.search-btn {
  display: flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080C18; font-weight: 700; font-size: .9rem;
  padding: 14px 28px; border-radius: var(--r-sm);
  transition: var(--t); white-space: nowrap; flex-shrink: 0;
}
.search-btn:hover { transform: scale(1.02); box-shadow: 0 4px 20px rgba(212,175,55,.4); }

/* Hero Stats */
.hero-stats {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: center; gap: 0;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 20px 40px;
  margin: 32px 24px 0;
  flex-wrap: wrap;
}
.stat-item { text-align: center; padding: 8px 32px; }
.stat-num {
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--steel);
  line-height: 1;
}
.stat-label { display: block; font-size: .78rem; color: var(--text-2); margin-top: 4px; text-transform: uppercase; letter-spacing: 1px; }
.stat-divider { width: 1px; height: 40px; background: var(--glass-border); flex-shrink: 0; }

/* ============================================================
   SECTION COMMONS
   ============================================================ */
.section-header { text-align: center; margin-bottom: 48px; }
.section-tag {
  display: inline-block;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  color: var(--steel); font-size: .75rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 5px 14px; border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: clamp(2rem, 4vw, 3rem); font-weight: 800;
  line-height: 1.1; margin-bottom: 14px;
}
.section-desc { color: var(--text-2); max-width: 540px; margin: 0 auto; }

/* ============================================================
   PROPERTIES SECTION
   ============================================================ */
.properties-section { padding: 100px 0 80px; }

/* Filters Bar */
.filters-bar {
  display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap;
  background: var(--bg2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r);
  padding: 24px;
  margin-bottom: 24px;
}
.filters-group {
  display: flex; gap: 12px; flex-wrap: wrap; flex: 1;
}
.filter-item { display: flex; flex-direction: column; gap: 6px; min-width: 160px; flex: 1; }
.filter-item label { font-size: .72rem; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; }
.filter-item select {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: .88rem;
  padding: 10px 14px; border-radius: var(--r-sm);
  outline: none; transition: var(--t); cursor: pointer;
  -webkit-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 fill='%2394A3B8' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 32px;
}
.filter-item select:focus { border-color: var(--steel); }
.filter-item select option { background: var(--bg2); }
.filter-reset {
  display: flex; align-items: center; gap: 6px;
  color: var(--text-2); font-size: .85rem; font-weight: 500;
  padding: 10px 16px; border-radius: var(--r-sm);
  border: 1px solid var(--glass-border);
  transition: var(--t); white-space: nowrap;
  align-self: flex-end;
}
.filter-reset:hover { color: var(--error); border-color: var(--error); }

/* Results bar */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 24px;
  font-size: .88rem; color: var(--text-2);
}
.view-toggle { display: flex; gap: 4px; }
.view-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm); border: 1px solid var(--glass-border);
  color: var(--text-2); transition: var(--t);
}
.view-btn.active, .view-btn:hover { color: var(--steel); border-color: var(--steel); background: var(--gold-bg); }

/* Property Grid */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.properties-grid.list-view { grid-template-columns: 1fr; }

/* Property Card */
.prop-card {
  background: var(--bg2);
  border: 1px solid rgba(15,23,42,.08);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: var(--t);
  cursor: pointer;
  position: relative;
  box-shadow: 0 2px 12px rgba(15,23,42,.04);
}
.prop-card:hover {
  transform: translateY(-6px);
  border-color: var(--gold-border);
  box-shadow: 0 16px 40px rgba(197,160,40,.12), 0 4px 16px rgba(15,23,42,.06);
}
.prop-card-img {
  position: relative; height: 220px; overflow: hidden;
}
.prop-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s var(--ease);
}
.prop-card:hover .prop-card-img img { transform: scale(1.05); }
.prop-badge {
  position: absolute; top: 14px; left: 14px;
  background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(8px);
  border: 1px solid; border-radius: 100px;
  font-size: .7rem; font-weight: 700; letter-spacing: .5px;
  padding: 4px 12px; text-transform: uppercase;
}
.prop-badge.available { color: var(--success); border-color: rgba(34,197,94,.35); }
.prop-badge.unavailable { color: var(--text-2); border-color: var(--glass-border); }
.prop-price-badge {
  position: absolute; top: 14px; right: 14px;
  background: rgba(212,175,55,.9); backdrop-filter: blur(8px);
  color: #080C18; font-weight: 800; font-size: .8rem;
  padding: 6px 12px; border-radius: var(--r-sm);
}
.prop-tags {
  position: absolute; bottom: 14px; left: 14px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.prop-tag {
  background: rgba(255, 255, 255, 0.85); backdrop-filter: blur(8px);
  border: 1px solid var(--glass-border);
  color: var(--text-2); font-size: .67rem; font-weight: 600;
  padding: 3px 8px; border-radius: 4px; text-transform: uppercase; letter-spacing: .5px;
}
.prop-card-body { padding: 20px; }
.prop-subtitle { font-size: .72rem; color: var(--steel); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.prop-name { font-family: 'Barlow Condensed',sans-serif; font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; line-height: 1.2; }
.prop-address { font-size: .8rem; color: var(--text-2); margin-bottom: 16px; display: flex; align-items: center; gap: 6px; }
.prop-address i { color: var(--steel); font-size: .75rem; }
.prop-specs {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 12px; margin-bottom: 16px;
  padding: 14px; background: var(--glass);
  border-radius: var(--r-sm); border: 1px solid var(--glass-border);
}
.spec-mini { text-align: center; }
.spec-mini-val { display: block; font-weight: 700; font-size: 1rem; color: var(--text); }
.spec-mini-lbl { display: block; font-size: .65rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .5px; margin-top: 2px; }
.prop-card-footer { display: flex; gap: 10px; }
.btn-card-detail {
  flex: 1; padding: 10px 16px; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-sm); font-size: .83rem; font-weight: 600;
  color: var(--text); transition: var(--t);
}
.btn-card-detail:hover { border-color: var(--steel); color: var(--steel); }
.btn-card-lead {
  flex: 1.2; padding: 10px 16px; text-align: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080C18; font-size: .83rem; font-weight: 700;
  border-radius: var(--r-sm); transition: var(--t);
}
.btn-card-lead:hover { transform: translateY(-2px); box-shadow: 0 4px 16px rgba(212,175,55,.35); }

/* List view card */
.properties-grid.list-view .prop-card {
  display: grid; grid-template-columns: 320px 1fr; align-items: stretch;
}
.properties-grid.list-view .prop-card-img { height: auto; min-height: 200px; }
.properties-grid.list-view .prop-tags { display: none; }

/* No results */
.no-results {
  text-align: center; padding: 80px 24px;
  color: var(--text-2);
}
.no-results i { font-size: 3rem; margin-bottom: 16px; color: var(--text-3); }
.no-results h3 { font-size: 1.3rem; margin-bottom: 8px; color: var(--text); }
.no-results p { margin-bottom: 24px; }

/* ============================================================
   ABOUT SECTION
   ============================================================ */
.about-section { padding: 100px 0; background: var(--bg2); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.about-desc { color: var(--text-2); margin-bottom: 32px; line-height: 1.8; }
.about-values { display: flex; flex-direction: column; gap: 20px; }
.value-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: var(--r);
  transition: var(--t);
}
.value-item:hover { border-color: var(--gold-border); }
.value-item > i {
  width: 40px; height: 40px; flex-shrink: 0;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: 1rem;
}
.value-item h4 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.value-item p { font-size: .83rem; color: var(--text-2); }

.about-stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 32px 24px; text-align: center;
  transition: var(--t);
}
.stat-card:hover { border-color: var(--gold-border); transform: translateY(-4px); }
.stat-card-num {
  display: block;
  font-family: 'Barlow Condensed',sans-serif; font-size: 2.8rem;
  font-weight: 800; color: var(--steel); line-height: 1;
  margin-bottom: 8px;
}
.stat-card-label { font-size: .85rem; color: var(--text-2); }

/* ============================================================
   CONTACT SECTION
   ============================================================ */
.contact-section { padding: 100px 0; }
.contact-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 24px; }
.contact-item {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--bg2);
  border: 1px solid var(--glass-border); border-radius: var(--r);
}
.contact-item > i {
  width: 44px; height: 44px; flex-shrink: 0;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--steel); font-size: 1.1rem;
}
.contact-item h4 { font-size: .8rem; font-weight: 700; color: var(--text-2); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.contact-item a { color: var(--steel); font-weight: 600; transition: var(--t); }
.contact-item a:hover { color: var(--steel-light); }
.contact-item p { color: var(--text-2); font-size: .88rem; }
.contact-form {
  background: var(--bg2); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); padding: 36px;
}

/* ============================================================
   FORMS (shared)
   ============================================================ */
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group label { font-size: .78rem; font-weight: 600; color: var(--text-2); text-transform: uppercase; letter-spacing: .7px; }
.form-group input,
.form-group select,
.form-group textarea {
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-size: .9rem;
  padding: 12px 16px; border-radius: var(--r-sm);
  outline: none; transition: var(--t); width: 100%;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--steel); box-shadow: 0 0 0 3px rgba(212,175,55,.1); }
.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-3); }
.form-group select option { background: var(--bg2); }
.form-group textarea { resize: vertical; min-height: 100px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-buttons { display: flex; gap: 12px; justify-content: flex-end; margin-top: 8px; }
.checkbox-label {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: .85rem; color: var(--text-2); cursor: pointer;
}
.checkbox-label input[type="checkbox"] { width: 18px; height: 18px; flex-shrink: 0; accent-color: var(--steel); margin-top: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg2); border-top: 1px solid var(--glass-border); padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 48px; padding-bottom: 48px; }
.footer-brand p { font-size: .85rem; color: var(--text-2); margin-top: 16px; line-height: 1.7; }
.footer-links h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; }
.footer-links ul { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: .85rem; color: var(--text-2); transition: var(--t); }
.footer-links a:hover { color: var(--steel); }
.footer-contact h4 { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text); margin-bottom: 16px; }
.footer-contact p { font-size: .85rem; color: var(--text-2); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.footer-contact p i { color: var(--steel); width: 14px; }
.footer-social { display: flex; gap: 10px; margin-top: 16px; }
.social-btn {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-sm); color: var(--text-2);
  transition: var(--t); font-size: .9rem;
}
.social-btn:hover { background: var(--gold-bg); border-color: var(--gold-border); color: var(--steel); }
.social-btn.whatsapp:hover { background: rgba(37,211,102,.15); border-color: rgba(37,211,102,.4); color: #25D366; }
.footer-bottom {
  border-top: 1px solid var(--glass-border);
  padding: 20px 0;
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; color: var(--text-3);
}

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(15,23,42,.55); backdrop-filter: blur(12px);
  display: none; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.modal-overlay.active { display: flex; }
.modal {
  background: var(--bg2); border: 1px solid var(--glass-border);
  border-radius: var(--r-lg); position: relative;
  width: 100%; max-height: 90vh; overflow-y: auto;
  animation: modalIn .3s var(--ease);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.96) translateY(10px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-large  { max-width: 900px; }
.modal-medium { max-width: 640px; }
.modal-small  { max-width: 440px; }
.modal-flyer  { max-width: 760px; }

.modal-close {
  position: absolute; top: 16px; right: 16px; z-index: 10;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: 50%; color: var(--text-2); font-size: 1rem;
  transition: var(--t);
}
.modal-close:hover { background: var(--error); color: #fff; border-color: var(--error); }

/* Property Detail Modal */
.modal-gallery { position: relative; border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--bg-secondary); }
.modal-gallery > div:first-child { height: 340px; position: relative; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.modal-gallery img#modalMainImg { width: 100%; height: 100%; object-fit: cover; }
.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  border: 1px solid rgba(15,23,42,.1);
  border-radius: 50%; color: var(--text); font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: var(--t); z-index: 5;
}
.gallery-btn:hover { background: var(--gold); color: #fff; border-color: var(--steel); }
.gallery-btn.prev { left: 16px; }
.gallery-btn.next { right: 16px; }
.gallery-counter {
  position: absolute; bottom: 14px; right: 14px;
  background: rgba(255,255,255,.85); backdrop-filter: blur(8px);
  color: var(--text-2); font-size: .75rem;
  padding: 4px 10px; border-radius: 100px;
}

/* Thumbnail strip below gallery main image */
.thumbnail-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 10px 14px;
  background: var(--bg-secondary);
  scrollbar-width: thin;
  scrollbar-color: var(--steel) transparent;
}
.thumbnail-strip::-webkit-scrollbar { height: 4px; }
.thumbnail-strip::-webkit-scrollbar-track { background: transparent; }
.thumbnail-strip::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 4px; }
.thumbnail-strip img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  cursor: pointer;
  border-radius: 5px;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.15s;
  flex-shrink: 0;
}
.thumbnail-strip img:hover { transform: scale(1.05); border-color: var(--gold-muted, #b8941f); }
.thumbnail-strip img.active-thumb { border-color: var(--steel); }

.modal-info { padding: 28px 32px 0; }
.modal-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 20px; }
.modal-title-group {}
.modal-subtitle { font-size: .75rem; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px; }
.modal-title { font-family: 'Barlow Condensed',sans-serif; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.modal-address { font-size: .85rem; color: var(--text-2); margin-top: 6px; display: flex; align-items: center; gap: 6px; }
.modal-price-box {
  text-align: right; flex-shrink: 0;
  background: var(--gold-bg); border: 1px solid var(--gold-border);
  border-radius: var(--r); padding: 14px 20px;
}
.modal-price-val {
  font-family: 'Barlow Condensed',sans-serif; font-size: 2rem; font-weight: 800; color: var(--steel); display: block; line-height: 1;
}
.modal-price-label { font-size: .72rem; color: var(--text-2); display: block; margin-top: 4px; }
.modal-avail { display: flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; margin-top: 6px; }
.modal-avail.available { color: var(--success); }
.modal-avail.unavailable { color: var(--text-2); }
.modal-avail i { font-size: .8rem; }

.modal-tabs {
  display: flex; gap: 4px;
  border-bottom: 1px solid var(--glass-border);
  margin: 0 -32px; padding: 0 32px;
  overflow-x: auto;
}
.modal-tab {
  padding: 12px 20px; font-size: .85rem; font-weight: 600;
  color: var(--text-2); border-bottom: 2px solid transparent;
  transition: var(--t); white-space: nowrap; cursor: pointer;
}
.modal-tab.active { color: var(--steel); border-bottom-color: var(--steel); }

.tab-content { display: none; padding: 24px 0; }
.tab-content.active { display: block; }

.specs-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.spec-box {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r); padding: 16px; text-align: center;
  transition: var(--t);
}
.spec-box:hover { border-color: var(--gold-border); }
.spec-box-val { font-family: 'Barlow Condensed',sans-serif; font-size: 1.5rem; font-weight: 700; color: var(--steel); display: block; }
.spec-box-lbl { font-size: .85rem; color: var(--text-2); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px; display: block; }

.access-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.access-chip {
  background: #EFF6FF; border: 1px solid #BFDBFE;
  color: #1E3A8A; font-size: .8rem; font-weight: 600;
  padding: 6px 14px; border-radius: 100px;
  display: flex; align-items: center; gap: 6px;
}
.access-chip i { color: var(--steel); font-size: .8rem; }

.features-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }
.feature-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r-sm); padding: 10px 14px;
  font-size: .84rem; color: var(--text-2);
}
.feature-item i { color: var(--success); font-size: .9rem; }

#modalMap { height: 280px; border-radius: var(--r); margin-top: 8px; border: 1px solid var(--glass-border); }

.modal-desc { font-size: .9rem; color: var(--text-2); line-height: 1.8; margin-top: 8px; }

.modal-actions {
  display: flex; gap: 12px; padding: 24px 32px;
  border-top: 1px solid var(--glass-border);
  position: sticky; bottom: 0; background: var(--bg2);
}
.btn-modal-lead {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080C18; font-weight: 700; font-size: .95rem;
  padding: 16px; border-radius: var(--r-sm); transition: var(--t);
}
.btn-modal-lead:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(212,175,55,.35); }
.btn-modal-flyer {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 16px 24px; border-radius: var(--r-sm); transition: var(--t);
}
.btn-modal-flyer:hover { border-color: var(--steel); color: var(--steel); }
.btn-modal-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3);
  color: #25D366; font-weight: 600; font-size: .9rem;
  padding: 16px 20px; border-radius: var(--r-sm); transition: var(--t);
}
.btn-modal-whatsapp:hover { background: rgba(37,211,102,.2); }

/* Lead Modal */
.modal-header-lead {
  padding: 32px 32px 0;
  border-bottom: 1px solid var(--glass-border);
  padding-bottom: 24px;
}
.modal-header-lead h2 { font-family: 'Barlow Condensed',sans-serif; font-size: 1.6rem; font-weight: 800; }
.modal-header-lead p { color: var(--steel); font-size: .85rem; margin-top: 4px; }

.form-steps {
  display: flex; align-items: center; gap: 0;
  margin-top: 20px; overflow-x: auto; padding-bottom: 2px;
}
.step {
  display: flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; color: var(--text-3);
  white-space: nowrap; flex-shrink: 0;
}
.step span {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid var(--glass-border);
  font-size: .75rem; font-weight: 700;
}
.step.active { color: var(--steel); }
.step.active span { background: var(--gold); border-color: var(--steel); color: #080C18; }
.step.done span { background: var(--success); border-color: var(--success); color: #fff; }
.step-line { height: 1px; background: var(--glass-border); flex: 1; min-width: 20px; }

.form-step { padding: 28px 32px; display: flex; flex-direction: column; gap: 16px; }

/* Confirm Summary */
.confirm-summary {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--r); padding: 20px;
  margin-bottom: 8px;
}
.confirm-summary h4 { font-size: .8rem; font-weight: 700; color: var(--steel); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.confirm-row { display: flex; justify-content: space-between; font-size: .85rem; padding: 6px 0; border-bottom: 1px solid var(--glass-border); }
.confirm-row:last-child { border-bottom: none; }
.confirm-row .label { color: var(--text-2); }
.confirm-row .value { font-weight: 600; color: var(--text); }

/* Flyer Modal */
.flyer-modal-header { padding: 28px 28px 0; }
.flyer-modal-header h2 { display: flex; align-items: center; gap: 10px; font-family: 'Barlow Condensed',sans-serif; font-size: 1.5rem; font-weight: 800; }
.flyer-modal-header h2 i { color: var(--steel); }
.flyer-modal-header p { color: var(--text-2); font-size: .85rem; margin-top: 4px; }
.flyer-preview-wrapper { padding: 20px; display: flex; justify-content: center; overflow: auto; }
.flyer-preview {
  background: #fff; color: #111;
  width: 595px; min-height: 840px; flex-shrink: 0;
  box-shadow: var(--shadow);
  transform-origin: top center;
}
.flyer-actions {
  display: flex; gap: 12px; padding: 0 28px 28px; flex-wrap: wrap;
}
.btn-flyer-download {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #080C18; font-weight: 700; font-size: .9rem;
  padding: 14px; border-radius: var(--r-sm); transition: var(--t);
  min-width: 160px;
}
.btn-flyer-download:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(212,175,55,.35); }
.btn-flyer-whatsapp {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(37,211,102,.12); border: 1px solid rgba(37,211,102,.3);
  color: #25D366; font-weight: 600; font-size: .9rem;
  padding: 14px; border-radius: var(--r-sm); transition: var(--t); min-width: 160px;
}
.btn-flyer-whatsapp:hover { background: rgba(37,211,102,.2); }
.btn-flyer-email {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--glass); border: 1px solid var(--glass-border);
  color: var(--text); font-weight: 600; font-size: .9rem;
  padding: 14px; border-radius: var(--r-sm); transition: var(--t); min-width: 160px;
}
.btn-flyer-email:hover { border-color: var(--steel); color: var(--steel); }

/* Success Modal */
.success-content { padding: 48px 36px; text-align: center; }
.success-icon {
  width: 72px; height: 72px; border-radius: 50%;
  background: rgba(34,197,94,.12); border: 2px solid rgba(34,197,94,.3);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; color: var(--success); font-size: 2rem;
}
.success-content h2 { font-family: 'Barlow Condensed',sans-serif; font-size: 1.8rem; font-weight: 800; margin-bottom: 12px; }
.success-content p { color: var(--text-2); margin-bottom: 8px; }
.success-email { font-size: .82rem; }
.success-actions { display: flex; gap: 12px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }

/* ============================================================
   LOADING / SPINNER
   ============================================================ */
.spinner {
  width: 20px; height: 20px;
  border: 2px solid rgba(255,255,255,.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   TOAST
   ============================================================ */
.toast-container {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  display: flex; flex-direction: column; gap: 10px;
}
.toast {
  background: var(--bg2); border: 1px solid var(--glass-border);
  border-radius: var(--r-sm); padding: 14px 18px;
  display: flex; align-items: center; gap: 10px;
  font-size: .88rem; min-width: 240px;
  animation: toastIn .3s var(--ease), toastOut .3s var(--ease) 3.7s forwards;
  box-shadow: var(--shadow);
}
.toast.success { border-left: 3px solid var(--success); }
.toast.error   { border-left: 3px solid var(--error); }
.toast.info    { border-left: 3px solid var(--gold); }
.toast i { font-size: 1rem; }
.toast.success i { color: var(--success); }
.toast.error i   { color: var(--error); }
.toast.info i    { color: var(--steel); }
@keyframes toastIn  { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes toastOut { from { opacity: 1; } to { opacity: 0; pointer-events: none; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .nav-links { display: none; flex-direction: column; gap: 16px; padding: 24px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--bg2); border-bottom: 1px solid var(--glass-border);
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .btn-whatsapp-nav span { display: none; }

  .hero-title { font-size: 2.5rem; }
  .search-bar { flex-direction: column; border-radius: var(--r); }
  .search-field { border-right: none; border-bottom: 1px solid var(--glass-border); width: 100%; }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { width: 100%; justify-content: center; border-radius: var(--r-sm); margin: 4px; width: calc(100% - 8px); }
  .hero-stats { flex-direction: column; gap: 0; }
  .stat-divider { width: 80%; height: 1px; }

  .properties-grid { grid-template-columns: 1fr; }
  .filters-group { gap: 10px; }
  .filter-item { min-width: calc(50% - 5px); }

  .form-row { grid-template-columns: 1fr; }
  .specs-grid { grid-template-columns: 1fr 1fr; }
  .about-stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .modal-info { padding: 20px; }
  .modal-actions { flex-direction: column; }
  .form-step { padding: 20px; }
  .modal-header-lead { padding: 20px 20px 0; }

  .flyer-preview { transform: scale(.55); transform-origin: top left; }
  .flyer-preview-wrapper { justify-content: flex-start; }

  .features-grid { grid-template-columns: 1fr; }
  .properties-grid.list-view .prop-card { grid-template-columns: 1fr; }
  .properties-grid.list-view .prop-card-img { height: 200px; }
}

@media (max-width: 480px) {
  .filter-item { min-width: 100%; }
  .hero-stats { padding: 16px 24px; }
  .stat-item { padding: 8px 16px; }
  .modal-large, .modal-medium { border-radius: var(--r) var(--r) 0 0; margin-bottom: 0; align-self: flex-end; max-height: 95vh; }
  .modal-overlay { align-items: flex-end; padding: 0; }
}

/* Footer availability badges */
.footer-links .avail-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 6px;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.footer-links .avail-badge.available {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.25);
}
.footer-links .avail-badge.rented {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.25);
}
