/* =====================================================
   Cohen House - Estilo Premium / Lujo Sobrio
   100% autocontenido. Sin CDNs, sin fuentes externas.
   ===================================================== */

:root {
  /* ===== Paleta refinada ===== */
  --primary:        #1a4d6e;   /* azul petrolero profundo */
  --primary-light:  #2a7099;
  --primary-dark:   #0f3247;
  --primary-hover:  #153d56;

  --accent:         #c9a86a;   /* dorado champán */
  --accent-hover:   #b8965a;
  --accent-soft:    #e8d9b8;

  --dark:           #0a1f2c;   /* navy casi negro */
  --dark-soft:      #142b3a;

  --bg:             #fafaf7;   /* off-white cálido */
  --bg-soft:        #f3f1ec;
  --white:          #ffffff;

  --text:           #1a1a1a;
  --text-light:     #5a5a5a;
  --text-muted:     #9a9a9a;

  --border:         #e5e2da;
  --border-subtle:  #efeee9;

  --success:        #4a7c59;
  --warn:           #c9a86a;

  /* ===== Sombras premium ===== */
  --shadow-xs:      0 1px 3px rgba(10, 31, 44, 0.04);
  --shadow-sm:      0 2px 12px rgba(10, 31, 44, 0.06);
  --shadow:         0 4px 30px rgba(10, 31, 44, 0.08);
  --shadow-lg:      0 12px 50px rgba(10, 31, 44, 0.10);
  --shadow-xl:      0 20px 70px rgba(10, 31, 44, 0.14);

  /* ===== Formas ===== */
  --radius-sm:      6px;
  --radius:         12px;
  --radius-lg:      18px;
  --radius-xl:      24px;
  --radius-full:    999px;

  /* ===== Transición ===== */
  --transition:     all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== Tipografía dual ===== */
  --font-serif:     'Cormorant Garamond', 'Playfair Display', 'Georgia', 'Times New Roman', serif;
  --font:           system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  /* ===== Layout ===== */
  --container:      1280px;
  --header-height:  72px;
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--dark);
}

p { color: var(--text-light); }

/* ===== Iconos SVG ===== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke-width: 0;
  fill: currentColor;
  vertical-align: -0.125em;
}

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

/* ===== Botones ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 14px 32px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  border-color: var(--primary-hover);
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-accent {
  color: var(--dark);
  background-color: var(--accent);
  border-color: var(--accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-secondary {
  color: var(--white);
  background-color: var(--accent);
  border-color: var(--accent);
}
.btn-secondary:hover {
  background-color: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--white);
}

.btn-outline {
  color: var(--primary);
  background-color: transparent;
  border-color: var(--primary);
}
.btn-outline:hover {
  color: var(--white);
  background-color: var(--primary);
  transform: translateY(-2px);
}

.btn-ghost {
  color: var(--white);
  background-color: transparent;
  border: 1px solid rgba(255,255,255,0.4);
}
.btn-ghost:hover {
  background-color: var(--white);
  color: var(--dark);
  border-color: var(--white);
}

.btn-white {
  color: var(--dark);
  background-color: var(--white);
  border-color: var(--white);
}
.btn-white:hover { background-color: var(--bg-soft); }

.btn-sm { padding: 9px 18px; font-size: 11px; }
.btn-lg { padding: 18px 42px; font-size: 13px; }

/* =====================================================
   HEADER
   ===================================================== */
.header {
  background-color: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  height: var(--header-height);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.header.scrolled {
  box-shadow: var(--shadow-sm);
  border-bottom-color: transparent;
}

.header .container {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
}

.header-logo {
  justify-self: start;
  display: flex;
  align-items: center;
  height: 100%;
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  text-decoration: none;
  transition: var(--transition);
}
.header-logo:hover { color: var(--dark); }
.header-logo span {
  color: var(--accent);
  font-weight: 600;
}

.header-nav { justify-self: center; display: flex; align-items: center; height: 100%; }

.header-nav-list {
  display: flex;
  align-items: center;
  height: 100%;
  gap: 4px;
}

.header-nav-list > li {
  height: 100%;
  position: relative;
}

.header-nav-list > li > a {
  display: flex;
  align-items: center;
  height: var(--header-height);
  padding: 0 18px;
  color: var(--dark);
  font-size: 12px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  transition: var(--transition);
  text-decoration: none;
}

.header-nav-list > li > a:hover,
.header-nav-list > li > a.active {
  color: var(--accent);
}

.header-nav-list > li > a .icon {
  font-size: 9px;
  margin-left: 6px;
  transition: var(--transition);
}
.header-nav-list > li:hover > a .icon { transform: rotate(180deg); }

/* Dropdown */
.header-nav-list .dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background-color: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: var(--transition);
  padding: 8px 0;
  z-index: 100;
  border: 1px solid var(--border-subtle);
}

.header-nav-list li:hover > .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.header-nav-list .dropdown li a {
  display: block;
  padding: 11px 22px;
  color: var(--text);
  font-size: 13px;
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
  text-decoration: none;
}
.header-nav-list .dropdown li:last-child a { border-bottom: none; }
.header-nav-list .dropdown li a:hover {
  color: var(--accent);
  background-color: var(--bg);
  padding-left: 28px;
}

.header-actions {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
}

.header-actions .btn-create {
  color: var(--white);
  background-color: var(--dark);
  border: 1px solid var(--dark);
  padding: 10px 20px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.header-actions .btn-create:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}

.header-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 6px;
}
.header-toggle .icon { width: 22px; height: 22px; }

/* =====================================================
   MOBILE NAV (off-canvas drawer)
   ===================================================== */
.mobile-nav-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(10, 31, 44, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1100;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.mobile-nav-overlay.active { opacity: 1; visibility: visible; }

.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 320px;
  max-width: 85vw;
  height: 100vh;
  background-color: var(--white);
  z-index: 1200;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.15);
  overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }

.mobile-nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
}

.logo-text {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--dark);
}
.logo-text span { color: var(--accent); }

.mobile-nav-close {
  background: none;
  border: none;
  color: var(--dark);
  cursor: pointer;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}
.mobile-nav-close:hover { color: var(--accent); transform: rotate(90deg); }
.mobile-nav-close .icon { width: 20px; height: 20px; }

.mobile-nav-list { flex: 1; }
.mobile-nav-list li { border-bottom: 1px solid var(--border-subtle); }
.mobile-nav-list li:last-child { border-bottom: none; padding-top: 20px; }

.mobile-nav-list a {
  display: block;
  padding: 14px 4px;
  color: var(--dark);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  transition: var(--transition);
}
.mobile-nav-list a:hover {
  color: var(--accent);
  padding-left: 12px;
}
.mobile-nav-list a.btn { margin-top: 0; padding: 14px 20px; }
.mobile-nav-list a.btn:hover { padding-left: 20px; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  padding: 100px 0 80px;
  overflow: hidden;
  background-color: var(--dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('img/hero.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
  /* Parallax sutil controlado por JS */
  transform: translateZ(0);
  will-change: transform;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,44,0.85) 0%, rgba(10,31,44,0.55) 50%, rgba(10,31,44,0.75) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text {
  color: var(--white);
  max-width: 620px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  background: rgba(201, 168, 106, 0.12);
  border: 1px solid rgba(201, 168, 106, 0.35);
  border-radius: var(--radius-full);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 28px;
}
.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.hero-text h1 {
  font-family: var(--font-serif);
  font-size: clamp(38px, 5.5vw, 64px);
  font-weight: 500;
  line-height: 1.05;
  color: var(--white);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}
.hero-text h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.hero-text p {
  font-size: 17px;
  line-height: 1.7;
  color: rgba(255,255,255,0.85);
  margin-bottom: 36px;
  font-weight: 300;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 50px;
}

.hero-trust {
  display: flex;
  gap: 50px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-trust-item .num {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.hero-trust-item .lbl {
  font-size: 12px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

/* Hero Search (lateral) */
.hero-search {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-xl);
  position: relative;
  z-index: 1;
}

.hero-search-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--border);
}

.hero-search-tab {
  padding: 12px 0;
  margin-right: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: var(--transition);
  background: none;
  border-top: none;
  border-left: none;
  border-right: none;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-search-tab.active,
.hero-search-tab:hover {
  color: var(--primary);
  border-bottom-color: var(--accent);
}

.hero-search-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 4px;
}
.hero-search-subtitle {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 24px;
}

.hero-search-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.hero-search-form .form-group.full { grid-column: 1 / -1; }
.hero-search-form .form-group { position: relative; margin-bottom: 0; }

.hero-search-form .form-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-search-form select,
.hero-search-form input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a4d6e' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 10px;
  padding-right: 36px;
}

.hero-search-form input { background-image: none; padding-right: 14px; }

.hero-search-form select:focus,
.hero-search-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.15);
}

.hero-search-form .btn-search {
  grid-column: 1 / -1;
  padding: 16px 24px;
  background-color: var(--dark);
  color: var(--white);
  border: 1px solid var(--dark);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 8px;
}
.hero-search-form .btn-search:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--dark);
}
.hero-search-form .btn-search .icon { width: 16px; height: 16px; }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 100px 0; }
.section-sm { padding: 70px 0; }
.section-lg { padding: 130px 0; }

.bg-white { background-color: var(--white); }
.bg-soft  { background-color: var(--bg-soft); }
.bg-dark  { background-color: var(--dark); color: var(--white); }
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 { color: var(--white); }
.bg-dark p { color: rgba(255,255,255,0.75); }

.section-header {
  text-align: center;
  margin-bottom: 60px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.section-header.left { text-align: left; margin-left: 0; margin-right: 0; }

.section-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--accent);
  margin-bottom: 16px;
  position: relative;
}

.section-header h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
  letter-spacing: -0.015em;
}
.bg-dark .section-header h2 { color: var(--white); }

.section-header h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.section-header p {
  font-size: 16px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.bg-dark .section-header p { color: rgba(255,255,255,0.75); }

.section-divider {
  width: 50px;
  height: 2px;
  background-color: var(--accent);
  margin: 20px auto 0;
  border-radius: 2px;
}
.section-header.left .section-divider { margin-left: 0; }

/* =====================================================
   FEATURES GRID
   ===================================================== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.feature-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  padding: 40px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.feature-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.feature-card:hover::after { transform: scaleX(1); }

.feature-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  border-radius: 50%;
  color: var(--white);
  transition: var(--transition);
}
.feature-card:hover .icon-wrap {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-hover) 100%);
  transform: scale(1.08);
}
.feature-card .icon-wrap .icon { width: 26px; height: 26px; }

.feature-card h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}

.feature-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 20px;
}

.feature-card a {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.feature-card a:hover { gap: 10px; }

/* =====================================================
   PROPIEDADES - Carousel & Grid
   ===================================================== */
.property-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.property-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
}

.property-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.property-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
  background-color: var(--bg-soft);
}
.property-card-image a { display: block; width: 100%; height: 100%; }
.property-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.property-card:hover .property-card-image img { transform: scale(1.08); }

.property-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.property-badge {
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.property-badge.featured { background-color: var(--accent); color: var(--dark); }
.property-badge.status-sale { background-color: rgba(26, 77, 110, 0.95); color: var(--white); }
.property-badge.status-rent { background-color: rgba(74, 124, 89, 0.95); color: var(--white); }
.property-badge.status-pausada { background-color: rgba(202, 138, 4, 0.95); color: var(--white); }
.property-badge.status-vendida { background-color: rgba(180, 40, 50, 0.95); color: var(--white); }
.property-badge.status-arrendada { background-color: rgba(56, 119, 154, 0.95); color: var(--white); }

.property-card-actions {
  position: absolute;
  top: 16px;
  right: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  transform: translateX(8px);
  transition: var(--transition);
}
.property-card:hover .property-card-actions { opacity: 1; transform: translateX(0); }

.property-card-actions button {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background-color: rgba(255,255,255,0.95);
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.property-card-actions button:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: scale(1.08);
}
.property-card-actions button .icon { width: 16px; height: 16px; }

.property-card-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }

.property-card-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 14px;
  flex-wrap: wrap;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.property-card-meta span {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
}
.property-card-meta span .icon { width: 14px; height: 14px; color: var(--primary); }

.property-card-title {
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 500;
  margin-bottom: 8px;
  line-height: 1.3;
}
.property-card-title a { color: var(--dark); text-decoration: none; transition: var(--transition); }
.property-card-title a:hover { color: var(--accent); }

.property-card-address {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 18px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: flex;
  align-items: center;
  gap: 6px;
}
.property-card-address .icon { width: 13px; height: 13px; color: var(--accent); flex-shrink: 0; }

.property-card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.property-card-price {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
}
.price-uf {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  color: var(--primary);
  line-height: 1;
}
.price-clp {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 400;
  margin-top: 4px;
}

.property-card-type {
  font-size: 10px;
  color: var(--text-light);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 1.5px;
  padding: 5px 10px;
  background: var(--bg-soft);
  border-radius: var(--radius-sm);
}

/* ===== Property Carousel (scroll-snap nativo) ===== */
.property-carousel { position: relative; }

.property-carousel-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 4px 0;
}
.property-carousel-track::-webkit-scrollbar { display: none; }

.property-carousel .property-card {
  min-width: calc(33.333% - 19px);
  flex-shrink: 0;
  scroll-snap-align: start;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 40px;
}
.carousel-nav button {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background-color: var(--white);
  color: var(--dark);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}
.carousel-nav button:hover {
  background-color: var(--dark);
  color: var(--white);
  border-color: var(--dark);
  transform: scale(1.05);
}
.carousel-nav button .icon { width: 16px; height: 16px; }

/* =====================================================
   TYPES GRID
   ===================================================== */
.types-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  height: 520px;
}

.type-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  text-decoration: none;
}
.type-card:nth-child(1) { grid-row: 1 / 3; }
.type-card:nth-child(2) { grid-row: 1 / 2; }
.type-card:nth-child(3) { grid-row: 1 / 2; }
.type-card:nth-child(4) { grid-row: 2 / 3; grid-column: 2 / 4; }

.type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}
.type-card:hover img { transform: scale(1.1); }

.type-card-overlay {
  position: absolute;
  inset: 0;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(180deg, transparent 40%, rgba(10,31,44,0.85) 100%);
  color: var(--white);
  transition: var(--transition);
}
.type-card:hover .type-card-overlay {
  background: linear-gradient(180deg, transparent 0%, rgba(10,31,44,0.92) 100%);
}

.type-card-overlay h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
  letter-spacing: -0.01em;
}
.type-card-overlay p {
  font-size: 13px;
  color: rgba(255,255,255,0.85);
  font-weight: 300;
}

.type-card-arrow {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  transition: var(--transition);
}
.type-card:hover .type-card-arrow {
  background: var(--accent);
  color: var(--dark);
  transform: rotate(-45deg);
}
.type-card-arrow .icon { width: 14px; height: 14px; }

/* =====================================================
   PROCESS / PROCESO
   ===================================================== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  position: relative;
}

.process-grid::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 16.66%;
  right: 16.66%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  z-index: 0;
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-number {
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 2px solid var(--accent);
  border-radius: 50%;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--accent);
  position: relative;
  transition: var(--transition);
}

.process-step:hover .process-number {
  background: var(--accent);
  color: var(--dark);
  transform: scale(1.05);
}

.process-step h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}
.bg-dark .process-step h3 { color: var(--white); }

.process-step p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.7;
  max-width: 280px;
  margin: 0 auto;
}
.bg-dark .process-step p { color: rgba(255,255,255,0.75); }

/* =====================================================
   INQUIRY
   ===================================================== */
.inquiry-wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}

.inquiry-wrap .info-content { padding-right: 20px; }

.inquiry-wrap .info-content h2 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 18px;
}
.inquiry-wrap .info-content h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.inquiry-wrap .info-content p {
  color: var(--text-light);
  line-height: 1.75;
  margin-bottom: 20px;
  font-size: 15px;
}

.inquiry-form {
  background: var(--white);
  padding: 44px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border-subtle);
}

.inquiry-form h3 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  margin-bottom: 8px;
  color: var(--dark);
}
.inquiry-form > p { font-size: 13px; color: var(--text-light); margin-bottom: 24px; }

/* ===== Form Controls ===== */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.12);
}

.form-group textarea { resize: vertical; min-height: 120px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* =====================================================
   STATS - Contador animado
   ===================================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.stat-card {
  text-align: center;
  padding: 20px 10px;
  position: relative;
  min-width: 0;
}
.stat-card:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 25%;
  bottom: 25%;
  width: 1px;
  background: var(--border);
}

.stat-card .number {
  font-family: var(--font-serif);
  font-size: 56px;
  font-weight: 500;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-card .label {
  font-size: 13px;
  color: var(--text-light);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.bg-dark .stat-card .label { color: rgba(255,255,255,0.7); }
.bg-dark .stat-card .number { color: var(--accent); }
.bg-dark .stat-card:not(:last-child)::after { background: rgba(255,255,255,0.1); }

/* =====================================================
   AGENTS
   ===================================================== */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.agent-card {
  background-color: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  text-align: center;
  border: 1px solid var(--border-subtle);
}
.agent-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.agent-card-image {
  height: 320px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-soft);
}
.agent-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s ease;
  filter: grayscale(20%);
}
.agent-card:hover .agent-card-image img {
  transform: scale(1.05);
  filter: grayscale(0%);
}

.agent-card-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10,31,44,0.4) 100%);
  pointer-events: none;
}

.agent-card-body { padding: 24px 22px; }

.agent-card-body h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--dark);
}
.agent-card-body h3 a { color: var(--dark); text-decoration: none; }
.agent-card-body h3 a:hover { color: var(--accent); }

.agent-card-body .role {
  font-size: 11px;
  color: var(--accent);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 600;
}

.agent-card-body p {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.65;
  margin-bottom: 16px;
}

.agent-card-body .view-profile {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
}
.agent-card-body .view-profile:hover { gap: 10px; color: var(--primary); }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  position: relative;
  border: 1px solid var(--border-subtle);
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: 18px;
  right: 26px;
  font-family: var(--font-serif);
  font-size: 80px;
  color: var(--accent-soft);
  line-height: 1;
  font-weight: 600;
}

.testimonial-card > p {
  font-family: var(--font-serif);
  font-size: 17px;
  font-style: italic;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
}

.testimonial-author img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.testimonial-author .name {
  font-size: 14px;
  font-weight: 600;
  color: var(--dark);
  font-family: var(--font-serif);
  font-size: 16px;
  font-weight: 500;
}
.testimonial-author .company {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* =====================================================
   FOOTER
   ===================================================== */
.footer {
  background-color: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 0;
  position: relative;
  overflow: hidden;
}

.footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url('img/office.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.08;
  z-index: 0;
}

.footer > * { position: relative; z-index: 1; }

.footer-top {
  padding: 90px 0 50px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: 50px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
  display: inline-block;
  text-decoration: none;
}
.footer-brand span { color: var(--accent); }

.footer p {
  font-size: 14px;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
}

.footer h4 {
  font-family: var(--font-serif);
  font-size: 18px;
  font-weight: 500;
  color: var(--white);
  margin-bottom: 22px;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 12px;
}
.footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--accent);
}

.footer ul li { margin-bottom: 10px; }
.footer ul li a {
  color: rgba(255,255,255,0.65);
  font-size: 14px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.footer ul li a:hover {
  color: var(--accent);
  transform: translateX(4px);
}
.footer ul li a .icon { width: 12px; height: 12px; }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  color: rgba(255,255,255,0.7);
  font-size: 14px;
  line-height: 1.6;
}
.footer-contact-item .icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(201, 168, 106, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}
.footer-contact-item .icon { width: 14px; height: 14px; }

.footer .social-links {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}
.footer .social-links a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.08);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.06);
}
.footer .social-links a:hover {
  background-color: var(--accent);
  color: var(--dark);
  border-color: var(--accent);
  transform: translateY(-3px);
}
.footer .social-links a .icon { width: 16px; height: 16px; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 0;
  font-size: 13px;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a {
  color: rgba(255,255,255,0.6);
  margin-left: 22px;
  text-decoration: none;
  transition: var(--transition);
}
.footer-bottom a:hover { color: var(--accent); }

/* =====================================================
   BACK TO TOP
   ===================================================== */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--dark);
  color: var(--white);
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: var(--transition);
  z-index: 998;
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-4px);
}
.back-to-top .icon { width: 18px; height: 18px; }

/* =====================================================
   FLOATING WHATSAPP BUTTON
   ===================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 30px;
  right: 92px;
  z-index: 997;
}

.whatsapp-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: #25D366;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
  transition: var(--transition);
  position: relative;
}
.whatsapp-btn:hover {
  background-color: #1eb958;
  color: var(--white);
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.55);
}
.whatsapp-btn .icon { width: 28px; height: 28px; }

.whatsapp-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid #25D366;
  animation: whatsapp-pulse 2s ease-out infinite;
  pointer-events: none;
}

@keyframes whatsapp-pulse {
  0%   { transform: scale(1);   opacity: 0.6; }
  100% { transform: scale(1.4); opacity: 0; }
}

.whatsapp-tooltip {
  position: absolute;
  right: 70px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--dark);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-50%) translateX(8px);
  transition: var(--transition);
  pointer-events: none;
}
.whatsapp-tooltip::after {
  content: '';
  position: absolute;
  right: -6px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
  width: 12px;
  height: 12px;
  background: var(--white);
}
.whatsapp-float:hover .whatsapp-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* =====================================================
   PAGE BANNER
   ===================================================== */
.page-banner {
  position: relative;
  padding: 120px 0 90px;
  text-align: center;
  color: var(--white);
  overflow: hidden;
  background-color: var(--dark);
}

.page-banner-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.45;
  z-index: 0;
}

.page-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,44,0.85) 0%, rgba(10,31,44,0.55) 100%);
  z-index: 1;
}

.page-banner .container { position: relative; z-index: 2; }

.page-banner h1 {
  font-family: var(--font-serif);
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 500;
  color: var(--white);
  margin-bottom: 14px;
  letter-spacing: -0.02em;
}

.page-banner h1 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.page-banner .breadcrumbs {
  font-size: 13px;
  color: rgba(255,255,255,0.7);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.page-banner .breadcrumbs a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  transition: var(--transition);
}
.page-banner .breadcrumbs a:hover { color: var(--accent); }
.page-banner .breadcrumbs span { margin: 0 10px; color: var(--accent); }

/* =====================================================
   ABOUT
   ===================================================== */
.about-story {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
  padding: 100px 0;
}

.about-story h2 {
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 44px);
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 24px;
  line-height: 1.15;
}
.about-story h2 em {
  font-style: italic;
  color: var(--accent);
  font-weight: 400;
}

.about-story p {
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-story .image-wrap {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4/5;
}
.about-story .image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s ease;
}
.about-story .image-wrap:hover img { transform: scale(1.04); }

.about-story .image-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 50%, rgba(201,168,106,0.15) 100%);
  pointer-events: none;
}

.about-story .image-accent {
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 200px;
  height: 200px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-lg);
  z-index: -1;
}

/* ===== Values Grid ===== */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}
.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.value-card .icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--accent);
  transition: var(--transition);
}
.value-card:hover .icon-wrap {
  background: var(--accent);
  color: var(--dark);
}
.value-card .icon-wrap .icon { width: 26px; height: 26px; }

.value-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 10px;
  color: var(--dark);
}
.value-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.65;
}

/* =====================================================
   PROPERTIES LAYOUT (listado con filtros)
   ===================================================== */
.properties-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  padding: 60px 0 100px;
  align-items: start;
}

.filters-sidebar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
}

.filters-sidebar h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 22px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 10px;
}
.filters-sidebar h3 .icon { width: 16px; height: 16px; color: var(--accent); }

.filter-group {
  margin-bottom: 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border-subtle);
}
.filter-group:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-group label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--dark);
  margin-bottom: 10px;
}

.filter-group select,
.filter-group input[type="text"],
.filter-group input[type="number"] {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background-color: var(--white);
  transition: var(--transition);
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201,168,106,0.12);
}

.range-inputs { display: flex; align-items: center; gap: 8px; }
.range-inputs input { width: 50%; text-align: center; padding: 11px 8px; }
.range-inputs span { color: var(--text-muted); font-size: 13px; }

.filter-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.filter-buttons .btn { width: 100%; }

.properties-main { min-width: 0; }

.properties-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 14px;
  padding: 18px 24px;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border-subtle);
}

.results-count { font-size: 14px; color: var(--text-light); }
.results-count span { font-weight: 700; color: var(--dark); }

.results-sort { display: flex; align-items: center; gap: 10px; }
.results-sort label { font-size: 13px; color: var(--text-light); }
.results-sort select {
  padding: 8px 32px 8px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: var(--font);
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%231a4d6e' d='M6 8L0 0h12z'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 9px;
}
.results-sort select:focus { outline: none; border-color: var(--accent); }

.properties-results-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.no-results {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-light);
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
}
.no-results .icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin: 0 auto 16px;
  display: block;
}
.no-results h3 { font-size: 20px; color: var(--dark); margin-bottom: 8px; font-family: var(--font-serif); }

/* =====================================================
   PROPERTY DETAIL
   ===================================================== */
.property-detail { padding: 60px 0 100px; }

.property-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  height: 560px;
  box-shadow: var(--shadow);
}

.property-gallery-main { width: 100%; height: 100%; }
.property-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.6s ease;
}
.property-gallery:hover .property-gallery-main img { transform: scale(1.02); }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  z-index: 2;
}
.gallery-nav:hover {
  background-color: var(--accent);
  color: var(--dark);
  transform: translateY(-50%) scale(1.08);
}
.gallery-nav .icon { width: 18px; height: 18px; }
.gallery-nav.prev { left: 20px; }
.gallery-nav.next { right: 20px; }

.gallery-counter {
  position: absolute;
  bottom: 20px;
  right: 20px;
  padding: 8px 14px;
  background: rgba(10,31,44,0.85);
  backdrop-filter: blur(8px);
  color: var(--white);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  z-index: 2;
}

.property-detail-header { margin-bottom: 36px; }

.property-detail-header .status-badge {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  background-color: var(--primary);
  color: var(--white);
  margin-bottom: 16px;
}
.property-detail-header .status-badge.rent { background-color: var(--success); }

.property-detail-header h1 {
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.5vw, 40px);
  font-weight: 500;
  margin-bottom: 10px;
  line-height: 1.2;
  color: var(--dark);
}

.property-detail-header .address {
  font-size: 15px;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 8px;
}
.property-detail-header .address .icon { width: 16px; height: 16px; color: var(--accent); }

.property-detail-price {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: baseline;
  gap: 14px;
  flex-wrap: wrap;
}
.property-detail-price .uf {
  font-family: var(--font-serif);
  font-size: 38px;
  font-weight: 500;
  color: var(--primary);
  line-height: 1;
}
.property-detail-price .clp { font-size: 14px; color: var(--text-muted); }

.property-detail-content {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 50px;
  align-items: start;
}

.property-overview {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
  margin-bottom: 30px;
}

.property-overview-item {
  background: var(--white);
  padding: 22px 12px;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}
.property-overview-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}
.property-overview-item .icon {
  width: 22px;
  height: 22px;
  color: var(--accent);
  margin: 0 auto 10px;
  display: block;
}
.property-overview-item .value {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  line-height: 1;
}
.property-overview-item .label {
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 6px;
}

.property-description,
.property-features {
  background: var(--white);
  padding: 36px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
  border: 1px solid var(--border-subtle);
}

.property-description h3,
.property-features h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--dark);
}

.property-description p { font-size: 15px; line-height: 1.85; color: var(--text-light); }

.features-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.features-list li {
  font-size: 14px;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
}
.features-list li .icon {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex-shrink: 0;
}

.property-map {
  height: 320px;
  margin-top: 18px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}
.property-map iframe { width: 100%; height: 100%; border: 0; }

/* Agent sidebar */
.agent-sidebar { position: sticky; top: 92px; }

.agent-widget {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 24px;
  border: 1px solid var(--border-subtle);
}

.agent-widget-header {
  background: var(--dark);
  color: var(--white);
  padding: 30px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.agent-widget-header::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 200px;
  height: 200px;
  background: var(--accent);
  opacity: 0.08;
  border-radius: 50%;
}

.agent-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  margin: 0 auto 14px;
  border: 3px solid var(--accent);
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.agent-avatar img { width: 100%; height: 100%; object-fit: cover; }

.agent-widget-header h4 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--white);
  position: relative;
  z-index: 1;
  letter-spacing: 0.3px;
}
.agent-widget-header .agent-role {
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}

.agent-widget-body { padding: 24px; }
.agent-widget-body .btn { margin-bottom: 10px; }
.agent-widget-body .btn:last-child { margin-bottom: 0; }

.similar-properties {
  margin-top: 80px;
  padding-top: 60px;
  border-top: 1px solid var(--border-subtle);
}
.similar-properties h3 {
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 500;
  margin-bottom: 36px;
  color: var(--dark);
}
.similar-properties h3 em { font-style: italic; color: var(--accent); font-weight: 400; }

/* =====================================================
   CONTACT
   ===================================================== */
.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid var(--border-subtle);
}
.contact-info-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--accent);
}

.contact-info-card .icon-wrap {
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-soft);
  border-radius: 50%;
  color: var(--accent);
  transition: var(--transition);
}
.contact-info-card:hover .icon-wrap {
  background: var(--accent);
  color: var(--dark);
}
.contact-info-card .icon-wrap .icon { width: 24px; height: 24px; }

.contact-info-card h4 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 500;
  margin-bottom: 12px;
  color: var(--dark);
}
.contact-info-card p { font-size: 14px; color: var(--text-light); line-height: 1.7; }

.contact-section {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: start;
}

.map-container {
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-subtle);
  margin: 60px auto;
  max-width: var(--container);
}
.map-container iframe { width: 100%; height: 100%; border: 0; }

/* =====================================================
   REVEAL-ON-SCROLL
   ===================================================== */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: opacity, transform;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0.05s; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 0.15s; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 0.25s; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 0.35s; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 0.45s; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 0.55s; }

/* =====================================================
   TEAM GRID (acerca-de)
   ===================================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

/* =====================================================
   UTILITIES
   ===================================================== */
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-stagger > * { opacity: 1 !important; transform: none !important; }
}
