/* ============================================
   Variables y Reset
   ============================================ */
:root {
  --primary: #00a051;
  --primary-dark: #007f3f;
  --primary-light: #00c966;
  --primary-soft: #e6f7ef;

  --secondary: #1a1a1a;
  --secondary-light: #2d2d2d;

  --text-primary: #1a1a1a;
  --text-secondary: #6b7280;
  --text-light: #9ca3af;

  --bg-white: #ffffff;
  --bg-light: #f9fafb;
  --bg-soft: #f3f4f6;

  --border-light: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
  --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-2xl: 24px;
  --radius-full: 9999px;

  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 300ms cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all var(--transition-base);
}

button {
  font-family: inherit;
  cursor: pointer;
}

/* ============================================
   Utilidades
   ============================================ */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .container {
    padding: 0 40px;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0; /*0 60px;*/
  }
}

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: all var(--transition-base);
}

.site-header.scrolled {
  box-shadow: var(--shadow-md);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  gap: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  z-index: 10;
  max-height: 100%;
  height: 100%;
  padding: 10px;
}
 

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  position: relative;
  padding: 8px 0;
  transition: color var(--transition-base);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-link:hover {
  color: var(--primary);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
  z-index: 10;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  transition: all var(--transition-base);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 15px;
  font-weight: 600;
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  transition: all var(--transition-base);
  white-space: nowrap;
}

.btn-sm {
  padding: 8px 18px;
  font-size: 14px;
}

.btn-lg {
  padding: 16px 32px;
  font-size: 16px;
}

.btn-block {
  width: 100%;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 14px rgba(0, 160, 81, 0.3);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 160, 81, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border: 2px solid var(--primary);
  box-shadow: none;
}

.btn-outline:hover {
  background: var(--primary);
  color: white;
}

.btn-white {
  background: white;
  color: var(--text-primary);
  box-shadow: var(--shadow-md);
}

.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
  position: relative;
  min-height: 75vh;
  display: flex;
  align-items: center;
  padding: 120px 0 0px;
  overflow: hidden;
  margin-top: 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  /*background-image: linear-gradient(135deg, rgba(245, 247, 250, 0.5) 16%, rgba(101, 140, 203, 0.1) 100%), url(./hero3.jpeg);*/
  background-image: url(./hero3.jpeg?v=2707);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  
}

.hero-overlay {
  position: absolute;
  inset: 0;
  /*background:
    linear-gradient(to right, rgba(255,255,255,0.8) 0%, rgba(255,255,255,0.4) 100%);*/
  z-index: -1;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.hero-logo {
  order: 2;
  flex: 0 0 auto;
  width: clamp(239px, 49vw, 690px);
  pointer-events: none;
  margin-bottom: 80px;
}

.hero-logo img {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 12px 24px rgba(15, 23, 42, 0.18));
}

.hero-text {
  order: 1;
  max-width: 100%;
  margin-bottom: 60px;
  min-width: 0;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: transparent;
  color: var(--primary-dark);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
  margin-bottom: 24px;
  border: 1px solid;
}

.hero-badge-icon {
  flex: 0 0 auto;
}

.hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--text-primary);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.text-highlight {
  color: var(--primary);
  position: relative;
  display: inline-block;
}

.hero-subtitle {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 600px;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 48px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 24px;
  max-width: 720px;
}

.stat-card {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.scroll-indicator {
  position: absolute;
  bottom: 0px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0.6;
}

.scroll-indicator span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.scroll-line {
  width: 2px;
  height: 40px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0%, 100% { opacity: 0; transform: translateY(-10px); }
  50% { opacity: 1; transform: translateY(10px); }
}

/* ============================================
   Section Headers
   ============================================ */
.section-badge {
  display: inline-block;
  padding: 6px 14px;
  background: var(--primary-soft);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  width: max-content;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 64px;
  display: grid;
  justify-content: center;
  align-items: center;
}

.section-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text-primary);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.section-desc {
  font-size: 18px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============================================
   Divisiones Section
   ============================================ */
.divisiones {
  padding: 100px 0;
  background: var(--bg-white);
}

.division-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.division-card {
  position: relative;
  padding: 40px;
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-slow);
}

.division-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary);
}

.division-card--featured {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
}

.division-card--featured .division-icon,
.division-card--featured .division-title,
.division-card--featured .division-text,
.division-card--featured .division-features,
.division-card--featured .division-link {
  color: white;
}

.division-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-radius: var(--radius-full);
}

.division-icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.division-card--featured .division-icon {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.division-title {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--text-primary);
}

.division-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.division-card--featured .division-text {
  color: rgba(255, 255, 255, 0.9);
}

.division-features {
  list-style: none;
  margin-bottom: 28px;
}

.division-features li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  font-size: 14px;
  color: var(--text-secondary);
}

.division-card--featured .division-features li {
  color: rgba(255, 255, 255, 0.9);
}

.division-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
}

.division-card--featured .division-features li::before {
  background: white;
}

.division-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
  transition: gap var(--transition-base);
}

.division-link:hover {
  gap: 12px;
}

.division-card--featured .division-link {
  color: white;
}

/* ============================================
   Propiedades Section
   ============================================ */
.propiedades {
  padding: 100px 0;
  background: var(--bg-light);
}

/* ── Trust Bar ─────────────────────────────────────────── */
.trust-bar {
  background: #0d2718;
  border-radius: 17px;
  margin: auto;
  margin-top: -60px;
}

.trust-bar-tagline {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 32px;
  text-align: center;
  font-size: clamp(1rem, 2vw, 1.4rem);
  font-weight: 600;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.9);
}

.trust-bar-highlight {
  color: var(--primary-light);
}

@media (max-width: 768px) {
  .trust-bar-tagline {
    padding: 22px 20px;
  }
}
/* ────────────────────────────────────────────────────────── */

/* ── Feed Sections (campos / propiedades) ───────────────── */
.featured-properties-section {
  background: #fff;
  padding-top: 10px;
}

.featured-properties-header {
  text-align: center;
  margin-bottom: 0px;
}

.featured-properties-kicker {
  display: block;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--primary);
  margin-bottom: 8px;
}

.featured-properties-title {
  margin: 0;
  color: var(--primary);
  font-size: clamp(1.8rem, 3vw, 2.25rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
}
 

.feed-section {
  padding: 10px 0 0px;
  background: #fff;
}

.feed-section--propiedades {
  background: var(--bg-light);
}

.feed-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 5px;
  gap: 16px;
  flex-wrap: wrap;
}

.feed-section-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: auto;
  align-items: center;
}

.feed-section-kicker {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.feed-section-title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-right: auto;
  margin-left: 52px;
}

.feed-section-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  white-space: nowrap;
  flex-shrink: 0;
  transition: gap var(--transition-base), color var(--transition-base);
}

.feed-section-link:hover {
  gap: 10px;
  color: var(--primary);
}

/* Carousel */
.feed-carousel-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.feed-track-outer {
  flex: 1;
  overflow: hidden;
}

.feed-track {
  display: flex;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Arrows */
.feed-arrow {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.feed-arrow:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* Home card */
.hcard {
  flex: 0 0 calc((100% - 48px) / 4);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.hcard:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.hcard-image {
  height: 180px;
  background: var(--bg-soft) center/cover no-repeat;
  position: relative;
}

.hcard-badge {
  position: absolute;
  bottom: -5px;
  left: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.hcard-badge--venta {
  background: var(--primary);
  color: #fff;
}

.hcard-badge--arriendo {
  background: #0d6a8c;
  color: #fff;
}

.hcard-badge--alquiler {
  background: #0d6a8c;
  color: #fff;
}

.hcard-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hcard-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.3;
}

.hcard-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

.hcard-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.hcard-feat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.hcard-feat--tipo {
  color: var(--primary-dark);
  font-weight: 600;
}

/* Stats Banner */
.stats-banner {
  background: linear-gradient(135deg, #0d2718 0%, #163d23e6 60%, #1a4a2ae8 100%), url(./iagro.jpg);
  padding: 25px 0;
  background-position: bottom;
  background-size: cover;
}

.stats-banner-inner {
  margin: 0 auto;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 56px;
}

.stats-banner-left {
  flex: 0 0 300px;
}

.stats-banner-heading {
  font-size: clamp(1.35rem, 2.5vw, 0.75rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.stats-banner-accent {
  color: var(--primary-light);
}

.stats-banner-sub {
  font-size: 0.84rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.7;
}

.stats-banner-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.stats-banner-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  flex: 1;
}

.stats-banner-icon {
  color: var(--primary-light);
  opacity: 0.85;
}

.stats-banner-value {
  font-size: clamp(1.4rem, 2.5vw, 1rem);
  font-weight: 800;
  color: #fff;
  line-height: 1;
  letter-spacing: -0.02em;
}

.stats-banner-label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
}

.stats-banner-sep {
  font-size: 1.5rem;
  font-weight: 300;
  color: var(--primary-light);
  opacity: 0.5;
  flex-shrink: 0;
  padding: 0 4px;
}

@media (max-width: 1024px) {
  .hcard {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 768px) {
  .hcard {
    flex: 0 0 calc((100% - 16px) / 2);
  }
  .stats-banner-inner {
    flex-direction: column;
    gap: 40px;
  }
  .stats-banner-left {
    flex: none;
    text-align: center;
  }
  .stats-banner-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
  }
  .stats-banner-sep {
    display: none;
  }
  .stats-banner-stat {
    flex: 0 0 40%;
  }
}

@media (max-width: 520px) {
  .hcard {
    flex: 0 0 80vw;
  }
  .feed-arrow {
    width: 32px;
    height: 32px;
  }
  .stats-banner-stat {
    flex: 0 0 100%;
  }
}
/* ────────────────────────────────────────────────────────── */

/* ── Servicios Section ──────────────────────────────────── */
.servicios-section {
  padding: 30px 0 30px;
  background: #fff;
}

.servicios-header {
  text-align: center;
  margin-bottom: 30px;
}

.servicios-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.servicios-title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}

.servicios-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.servicios-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.servicio-card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 28px 24px 24px;
  display: flex; 
  gap: 16px;
  transition: box-shadow var(--transition-base), border-color var(--transition-base);
}

.servicio-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--primary-soft);
}

.servicio-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  color: var(--primary-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.servicio-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.servicio-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-dark);
  line-height: 1.3;
}

.servicio-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.servicio-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  transition: gap var(--transition-base), color var(--transition-base);
  margin-top: 4px;
}

.servicio-link:hover {
  gap: 9px;
  color: var(--primary);
}

@media (max-width: 900px) {
  .servicios-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .servicios-grid {
    grid-template-columns: 1fr;
  }
}
/* ────────────────────────────────────────────────────────── */

/* ── Reviews Section ───────────────────────────────────── */
.reviews-section {
  padding: 30px 0 10px;
  background: #fff;
}

.reviews-header {
  text-align: center;
  margin-bottom: 40px;
}

.reviews-kicker {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 12px;
}

.reviews-title {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.reviews-google-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.reviews-subtitle {
  font-size: 0.92rem;
  color: var(--text-secondary);
  margin-top: 8px;
}

.reviews-carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
}

.reviews-track-outer {
  flex: 1;
  overflow: hidden;
}

.reviews-track {
  display: flex;
  gap: 20px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.review-card {
  flex: 0 0 calc((100% - 40px) / 3);
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
}

.review-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-avatar--p  { background: #5b73d4; }
.review-avatar--f  { background: #4caf7d; }
.review-avatar--m  { background: #6c7fdb; }
.review-avatar--c  { background: #e07b39; }
.review-avatar--ca { background: #c75dac; }
.review-avatar--o  { background: #3a9fd1; }
.review-avatar--ma { background: #2e8b57; }
.review-avatar--j  { background: #d4822a; }
.review-avatar--a  { background: #e07b39; }
.review-avatar--s  { background: #c75dac; }
.review-avatar--r  { background: #3a9fd1; }

.review-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.review-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.review-time {
  font-size: 0.76rem;
  color: var(--text-secondary);
}

.review-stars {
  font-size: 1rem;
  color: #f4b400;
  letter-spacing: 1px;
  line-height: 1;
}

.review-text {
  font-size: 0.86rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}

.review-google-mark {
  display: flex;
  justify-content: flex-end;
  margin-top: 4px;
}

.reviews-arrow {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-medium);
  background: #fff;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}

.reviews-arrow:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

.reviews-footer {
  text-align: center;
  margin-top: 32px;
}

.reviews-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
  padding-bottom: 2px;
  transition: all var(--transition-base);
}

.reviews-more-link:hover {
  color: var(--primary);
  border-color: var(--primary);
  gap: 10px;
}

@media (max-width: 900px) {
  .review-card {
    flex: 0 0 calc((100% - 20px) / 2);
  }
}

@media (max-width: 600px) {
  .reviews-carousel-wrapper {
    gap: 8px;
  }
  .review-card {
    flex: 0 0 100%;
  }
  .reviews-arrow {
    width: 34px;
    height: 34px;
  }
}
/* ────────────────────────────────────────────────────────── */

.search-shortcuts {
  padding: 28px 0 0;
  background: var(--bg-white);
}

.search-shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-radius: 28px;
  overflow: hidden;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.search-shortcut-card {
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: flex-end;
  padding: 36px;
  overflow: hidden;
  isolation: isolate;
}

.search-shortcut-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  transition: transform 350ms ease;
}

.search-shortcut-card:hover::before {
  transform: scale(1.04);
}

.search-shortcut-card--campos::before {
  background-image: url('/assets/cat_campos.png');
}

.search-shortcut-card--propiedades::before {
  background-image: url('/assets/cat_prop.jpg');
}

.search-shortcut-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.search-shortcut-card--campos .search-shortcut-overlay {
  background: linear-gradient(135deg, rgba(14, 37, 19, 0.92) 0%, rgba(14, 37, 19, 0.72) 68%, rgba(14, 37, 19, 0.92) 100%);
}

.search-shortcut-card--propiedades .search-shortcut-overlay {
  background: linear-gradient(135deg, rgba(34, 22, 12, 0.64) 0%, rgba(34, 22, 12, 0.72) 68%, rgba(34, 22, 12, 0.92) 100%);
}

.search-shortcut-content {
  max-width: 420px;
  color: #fff;
}

.search-shortcut-kicker {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.78);
}

.search-shortcut-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 14px;
}

.search-shortcut-text {
  font-size: 16px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.86);
  margin-bottom: 24px;
}

.search-shortcut-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.property-group + .property-group {
  margin-top: 72px;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  margin-bottom: 48px;
}

.property-card {
  background: var(--bg-white);
  border-radius: 0px;
  overflow: hidden;
  border: 1px solid rgba(0, 160, 81, 0.14);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.01);
  transition: transform var(--transition-slow), box-shadow var(--transition-slow), border-color var(--transition-slow);
  position: relative;
}

.property-card:hover {
  transform: translateY(-10px);
  border-color: rgba(0, 160, 81, 0.26);
  box-shadow: 0 32px 60px rgba(15, 23, 42, 0.14);
}

.property-image {
  position: relative;
  width: 100%;
  height: 360px;
  background: linear-gradient(135deg, #7aa37f 0%, #375f42 100%);
  overflow: hidden;
}

.property-image-gallery {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.property-image-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 500ms ease, transform 1200ms ease;
}

.property-image-slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.property-card:nth-child(1) .property-image {
  background: linear-gradient(135deg, #7b9f67 0%, #3d5b3a 100%);
}

.property-card:nth-child(2) .property-image {
  background: linear-gradient(135deg, #b89e7a 0%, #826749 100%);
}

.property-card:nth-child(3) .property-image {
  background: linear-gradient(135deg, #6a8f73 0%, #304c3a 100%);
}

.property-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.08) 0%, rgba(15, 23, 42, 0.02) 30%, rgba(15, 23, 42, 0.58) 100%),
    radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.16) 0%, transparent 38%);
  pointer-events: none;
}

.property-image::after {
  content: '';
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 20px;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.52) 50%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.property-image-top,
.property-image-bottom {
  position: absolute;
  left: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.property-image-top {
  top: 22px;
  padding-left: 126px;
}

.property-image-bottom {
  bottom: 26px;
  align-items: flex-end;
}

.property-ref,
.property-type-chip {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.property-ref {
  background: rgba(255, 255, 255, 0.94);
  color: #102316;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.16);
}

.property-type-chip {
  background: rgba(7, 16, 12, 0.62);
  color: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.18);
  margin-left: auto;
}

.property-image-location {
  max-width: 70%;
  font-family: 'Manrope', sans-serif;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 10px 28px rgba(0, 0, 0, 0.34);
  text-transform: capitalize;
}

.property-image-meta {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.84);
  text-align: right;
  max-width: 28%;
}

.property-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(7, 16, 12, 0.04) 0%, rgba(7, 16, 12, 0.62) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity var(--transition-base);
  z-index: 2;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.property-badge {
  position: absolute;
  top: 22px;
  left: 22px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
  z-index: 3;
}

.property-badge--new {
  background: linear-gradient(135deg, #00a051 0%, #08783f 100%);
}

.property-badge--premium {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.property-badge--commercial {
  background: #8b5cf6;
}

.property-content {
  padding: 30px 32px 34px;
  position: relative;
}

.property-category {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  margin-bottom: 16px;
}

.property-name {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 14px;
  text-align: justify;
}

.property-detail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.property-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  color: #5b6472;
  margin-bottom: 0;
}

.property-location svg {
  flex-shrink: 0;
  color: var(--primary);
}

.property-ref-inline {
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #7b8794;
  position: absolute;
  bottom:10px;
  right:15px;
}

.property-desc {
  font-size: 16px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin-bottom: 24px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  line-clamp: 4;
  -webkit-box-orient: vertical;
}

.property-note {
  margin-bottom: 24px;
  padding: 14px 16px;
  border-left: 3px solid rgba(0, 160, 81, 0.62);
  background: linear-gradient(180deg, rgba(0, 160, 81, 0.05) 0%, rgba(0, 160, 81, 0.02) 100%);
  border-radius: 0 14px 14px 0;
  font-size: 13px;
  line-height: 1.7;
  color: #4b5563;
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  padding-top: 20px;
  position: relative;
}

.property-features:before{
  background: linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, rgb(0 160 81 / 50%) 50%, rgba(255, 255, 255, 0) 100%);
  content: " ";
  position: absolute;
  height: 1px;
  width: 100%;
  top: 0;
}

.property-feat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  color: #2d5a3d;
  white-space: nowrap;
  line-height: 1;
}

.property-feat svg {
  flex-shrink: 0;
  color: #00a051;
  opacity: 0.85;
}

.property-price-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.property-price-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #718096;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.property-price {
  font-family: 'Manrope', sans-serif;
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
}

.property-contact {
  padding: 12px 22px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-full);
  box-shadow: 0 14px 28px rgba(0, 160, 81, 0.22);
  transition: all var(--transition-base);
}

.property-contact:hover {
  background: linear-gradient(135deg, var(--primary-dark) 0%, #056333 100%);
  transform: translateX(4px);
}

.property-cta {
  text-align: center;
}

/* ============================================
   Catalogo Section
   ============================================ */
 
.catalogo-hero .section-title {
  max-width: 720px;
}

.catalogo-hero .section-desc {
  max-width: 720px;
}

.catalogo-hero-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   Catálogo
   ============================================ */

.catalogo {
  padding: 95px 0 100px;
  background: var(--bg-light);
}

/* ── Filtros wrap (sticky) ─────────────────── */
.filtros-wrap {
  position: sticky;
  top: 76px;
  z-index: 50;
  background: white;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-2xl);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  padding: 14px 20px;
  margin-bottom: 32px;
}

.filtros-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Buscador */
.filtros-search {
  flex: 1;
  min-width: 180px;
  position: relative;
  display: flex;
  align-items: center;
}

.filtros-search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-tertiary);
  pointer-events: none;
  display: flex;
}

.filtros-input {
  width: 100%;
  padding: 9px 78px 9px 36px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  font-size: 14px;
  font-family: inherit;
  color: var(--text-primary);
  background: var(--bg-soft);
  transition: all 0.18s ease;
}

.filtros-input:focus {
  outline: none;
  border-color: var(--primary);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 160, 81, 0.12);
}

/* Botón "Buscar" dentro del input: deja claro que la búsqueda se dispara aquí */
.filtros-search-btn {
  position: absolute;
  right: 5px;
  border: none;
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.18s ease;
}

.filtros-search-btn:hover {
  background: var(--primary-dark);
}

/* Pills de operación */
.filtros-operacion {
  display: flex;
  background: var(--bg-soft);
  border-radius: var(--radius-full);
  padding: 3px;
  border: 1.5px solid var(--border-light);
  gap: 2px;
  flex-shrink: 0;
}

.filtros-opcion {
  padding: 7px 16px;
  border-radius: var(--radius-full);
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
  font-family: inherit;
}

.filtros-opcion.is-active {
  background: var(--primary);
  color: white;
  box-shadow: 0 2px 8px rgba(0, 160, 81, 0.28);
}

/* Separador visual */
.filtros-divider {
  width: 1px;
  height: 26px;
  background: var(--border-light);
  flex-shrink: 0;
}

/* Selects compactos */
.filtros-select {
  padding: 8px 30px 8px 12px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  background: white url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 8px center / 13px no-repeat;
  appearance: none;
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filtros-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 160, 81, 0.12);
}

.filtros-select.has-value {
  border-color: var(--primary);
  color: var(--primary-dark);
  background-color: rgba(0, 160, 81, 0.07);
}

/* Botón limpiar */
.filtros-reset {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.18s ease;
  white-space: nowrap;
}

.filtros-reset:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}

.filtros-reset[hidden] {
  display: none;
}

/* Wrappers contextuales: transparentes en el flex, ocultos con hidden */
#ctx-ambientes,
#ctx-sup-ha,
#ctx-sup-m2,
#ctx-barrio {
  display: contents;
}
#ctx-ambientes[hidden],
#ctx-sup-ha[hidden],
#ctx-sup-m2[hidden],
#ctx-barrio[hidden] {
  display: none;
}

/* ── Meta row (chips + count + sort) ──────── */
.filtros-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--border-light);
  gap: 12px;
  flex-wrap: wrap;
  min-height: 36px;
}

.filtros-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1;
}

.filtros-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(0, 160, 81, 0.1);
  color: var(--primary-dark);
  font-size: 12px;
  font-weight: 700;
  border: 1px solid rgba(0, 160, 81, 0.22);
}

.filtros-chip-remove {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 16px;
  line-height: 1;
  transition: background 0.15s ease;
}

.filtros-chip-remove:hover {
  background: rgba(0, 160, 81, 0.2);
}

.filtros-meta-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.filtros-count {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  white-space: nowrap;
}

.filtros-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.filtros-sort label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

.filtros-sort-select {
  padding: 6px 28px 6px 10px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  appearance: none;
  background: white url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") right 6px center / 13px no-repeat;
  cursor: pointer;
}

.filtros-sort-select:focus {
  outline: none;
  border-color: var(--primary);
}

/* ── Loader ───────────────────────────────── */
.catalogo-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 60px 0;
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 600;
}

.catalogo-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-light);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Empty state ──────────────────────────── */
.catalogo-empty {
  margin-top: 40px;
  text-align: center;
  padding: 60px 40px;
  background: white;
  border-radius: var(--radius-2xl);
  border: 1.5px dashed var(--border-light);
}

.catalogo-empty-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--bg-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: var(--text-tertiary);
}

.catalogo-empty h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  margin-bottom: 10px;
  color: var(--text-primary);
}

.catalogo-empty p {
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* ── Grid (3 columnas en catálogo) ────────── */
.catalogo .property-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

/* ── Paginación ───────────────────────────── */
.catalogo-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 32px 0 16px;
}

.catalogo-pagination-info {
  font-size: 13px;
  color: var(--text-tertiary);
  font-weight: 600;
}

/* ============================================
   Detalle Section
   ============================================ */
/* ============================================
   Detalle Propiedad — Photo Grid Layout
   ============================================ */

.detalle-hero {
  padding: 110px 0 0;
}

/* Photo grid: main (left) + 2x2 secondary (right) */
.detalle-photo-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 8px;
  height: 480px;
  /*border-radius: var(--radius-2xl);*/
  overflow: hidden;
}

.detalle-photo-grid--single {
  grid-template-columns: 1fr;
}

.detalle-photo-main {
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  cursor: pointer;
  overflow: hidden;
  border-radius: 10px;
}

.detalle-photo-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
}

.detalle-photo-cell {
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: filter 0.22s ease;
  border-radius: 10px;
}

.detalle-photo-cell:hover {
  filter: brightness(0.82);
}

.detalle-photo-cell--more::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.detalle-photo-more {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  z-index: 1;
  letter-spacing: -0.5px;
}

.detalle-photo-badges {
  position: absolute;
  top: 18px;
  left: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  z-index: 2;
}

.detalle-pill {
  padding: 5px 12px 3px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.detalle-pill--primary {
  background: rgba(0, 160, 81, 0.95);
  color: #fff;
}

.detalle-pill--ghost {
  background: rgba(15, 23, 42, 0.35);
  color: #f8fafc;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.detalle-media-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 40%, rgba(15, 23, 42, 0.45) 100%);
}

/* --- Content section --- */
.detalle-content {
  padding: 0 0 80px;
}

.detalle-prop-header {
  padding: 32px 0 24px;
  border-bottom: 1px solid var(--border-light);
  margin-bottom: 36px;
}

.detalle-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  background: rgba(0, 160, 81, 0.15);
  color: var(--primary-dark);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.detalle-title {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.15;
  margin-bottom: 16px;
}

.detalle-specs-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 20px 28px;
}

.detalle-spec-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
}

.detalle-spec-item svg {
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.detalle-spec-item--location {
  color: var(--primary-dark);
}

.detalle-spec-item--location svg {
  color: var(--primary);
}

/* --- 2-col: main content + sidebar --- */
.detalle-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 48px;
  align-items: start;
}

/* --- Tabs --- */
.detalle-tabs {
  display: flex;
  border-bottom: 2px solid var(--border-light);
  margin-bottom: 28px;
}

.detalle-tab {
  padding: 12px 22px;
  border: none;
  background: none;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  cursor: pointer;
  margin-bottom: -2px;
  border-bottom: 2px solid transparent;
  transition: color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}

.detalle-tab.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

.detalle-tab:hover:not(.is-active) {
  color: var(--text-primary);
}

.detalle-tab-panel {
  display: none;
}

.detalle-tab-panel.is-active {
  display: block;
}

.detalle-text {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 15px;
}

.detalle-text-empty {
  color: var(--text-secondary);
  font-style: italic;
}

.detalle-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.detalle-amenity {
  padding: 8px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-light);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-soft);
}

.detalle-map-address {
  margin-bottom: 16px;
  color: var(--text-secondary);
  font-weight: 600;
}

.detalle-map-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border-light);
  height: 360px;
}

.detalle-map-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.detalle-map-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 600;
  color: var(--primary);
}

/* Ficha técnica */
.detalle-ficha {
  margin-top: 44px;
  padding-top: 36px;
  border-top: 1px solid var(--border-light);
}

.detalle-ficha h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.detalle-list {
  list-style: none;
}

.detalle-list li {
  display: flex;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-secondary);
}

.detalle-list li:last-child {
  border-bottom: none;
}

.detalle-list strong {
  color: var(--text-primary);
  font-weight: 600;
  min-width: 140px;
  flex-shrink: 0;
}

/* --- Sidebar sticky price card --- */
.detalle-price-card {
  position: sticky;
  top: 96px;
  background: white;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--border-light);
  padding: 28px;
  box-shadow: 0 8px 32px rgba(15, 23, 42, 0.1), 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.detalle-price-card-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.7px;
  margin: 0;
}

.detalle-price-big {
  font-family: 'Manrope', sans-serif;
  font-size: clamp(24px, 2.6vw, 32px);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.detalle-price-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.detalle-agent {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.detalle-agent-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 160, 81, 0.12);
  color: var(--primary-dark);
  font-weight: 800;
  font-size: 14px;
  font-family: 'Manrope', sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.detalle-agent-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detalle-agent-info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.detalle-agent-info span {
  font-size: 12px;
  color: var(--text-secondary);
}

.detalle-agent-contact {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.detalle-agent-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.detalle-agent-btn:hover {
  background: var(--bg-soft);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

.detalle-agent-btn--wa {
  background: #25d366;
  border-color: #25d366;
  color: white;
}

.detalle-agent-btn--wa:hover {
  background: #1db954;
  border-color: #1db954;
  color: white;
}

/* --- Compartir publicación --- */
.detalle-share {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.detalle-share-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.detalle-share-btns {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.detalle-share-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0;
}

.detalle-share-btn:hover {
  transform: translateY(-2px);
  color: white;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.12);
}

.detalle-share-btn--wa:hover { background: #25d366; border-color: #25d366; }
.detalle-share-btn--fb:hover { background: #1877f2; border-color: #1877f2; }
.detalle-share-btn--x:hover { background: #000; border-color: #000; }
.detalle-share-btn--mail:hover { background: var(--text-primary); border-color: var(--text-primary); }
.detalle-share-btn--copy:hover { background: var(--text-primary); border-color: var(--text-primary); }

.detalle-share-btn--copied {
  background: #00a051;
  border-color: #00a051;
  color: white;
}

/* --- CTA --- */
.detalle-cta {
  padding: 70px 0;
  background: linear-gradient(135deg, rgba(0, 160, 81, 0.12), rgba(255, 255, 255, 0.9));
}

.detalle-cta-content {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
}

.detalle-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.detalle-empty {
  padding: 140px 0;
  background: var(--bg-light);
}
/* ============================================
   Nosotros Section
   ============================================ */
.nosotros {
  padding: 100px 0;
  background: var(--bg-white);
}

.nosotros-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
  align-items: center;
}

.nosotros-text {
  font-size: 17px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.nosotros-features {
  margin-bottom: 40px;
}

.feature-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.feature-item:last-child {
  border-bottom: none;
}

.feature-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.feature-item h4 {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.feature-item p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.stats-card {
  display: grid;
  gap: 20px;
}

.stat-box {
  padding: 28px;
  background: var(--bg-soft);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-light);
}

.stat-box--large {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 40px;
}

.stat-box--large .stat-value,
.stat-box--large .stat-label,
.stat-box--large .stat-detail {
  color: white;
}

.stat-value {
  font-family: 'Manrope', sans-serif;
  font-size: 42px;
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.stat-detail {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.stat-box--large .stat-detail {
  color: rgba(255, 255, 255, 0.9);
}

.stat-box--highlight {
  background: var(--primary-soft);
  border: 2px dashed var(--primary);
  display: flex;
  align-items: center;
  gap: 16px;
}

.stat-icon {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  color: var(--primary);
  border-radius: var(--radius-lg);
}

.stat-highlight-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--primary-dark);
  line-height: 1.5;
}

/* ============================================
   Contacto Section
   ============================================ */
.contacto {
  padding: 100px 0;
  background: var(--bg-light);
}

.contacto-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 60px;
}

.contacto-intro {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.contacto-methods {
  margin-bottom: 40px;
}

.contact-method {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.contact-method:last-child {
  border-bottom: none;
}

.contact-method-icon {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: var(--radius-md);
}

.contact-method-label {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-light);
  margin-bottom: 6px;
}

.contact-method-value {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--transition-base);
}

a.contact-method-value:hover {
  color: var(--primary);
}

.contacto-horarios {
  padding: 24px;
  background: var(--primary-soft);
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--primary);
}

.contacto-horarios h4 {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 12px;
}

.contacto-horarios p {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contacto-form-wrapper {
  position: relative;
}

.contacto-form {
  background: var(--bg-white);
  padding: 40px;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-xl);
}

.contacto-form h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-subtitle {
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.form-group {
  margin-bottom: 24px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-primary);
  background: var(--bg-soft);
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  background: var(--bg-white);
  border-color: var(--primary);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

/* ============================================
   Footer
   ============================================ */
.site-footer {
  background: var(--secondary);
  color: white;
  padding: 80px 0 32px;
}

.floating-actions {
  position: fixed;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 1100;
}

.floating-btn {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  background: white;
  color: var(--text-primary);
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.floating-btn:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2xl);
}

.floating-btn--home {
  background: rgba(255, 255, 255, 0.9);
}

.floating-btn--whatsapp {
  background: #25d366;
  color: white;
}

.floating-btn--ai {
  background: var(--primary);
  color: white;
}

.footer-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 60px;
  margin-bottom: 34px;
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  height: 90px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  filter: contrast(1) grayscale(1) brightness(1) invert(1);
}

.footer-brand h3 {
  font-family: 'Manrope', sans-serif;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 12px;
}

.footer-tagline {
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 24px;
  max-width: 400px;
}

.footer-social {
  display: flex;
  gap: 12px;
}

.social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md);
  color: white;
  transition: all var(--transition-base);
}

.social-link:hover {
  background: var(--primary);
  transform: translateY(-3px);
}

.footer-links-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.footer-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 16px;
  color: white;
}

.footer-menu {
  list-style: none;
}

.footer-menu li {
  margin-bottom: 10px;
}

.footer-menu a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-base);
}

.footer-menu a:hover {
  color: var(--primary);
}

.footer-bottom {
  text-align: center;
  display: flex;
  align-items: center;
}

.footer-bottom p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 4px;
}

.footer-legal {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  margin: auto;
  margin-right: 0;
}

/* ============================================
   Animations
   ============================================ */
.fade-in {
  opacity: 0;
  animation: fadeIn 1s ease forwards;
}

.fade-in-delay {
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

[data-aos] {
  opacity: 0;
  transition: all 0.8s ease;
}

[data-aos].aos-animate {
  opacity: 1;
}

[data-aos="fade-up"] {
  transform: translateY(30px);
}

[data-aos="fade-up"].aos-animate {
  transform: translateY(0);
}

[data-aos="fade-right"] {
  transform: translateX(-30px);
}

[data-aos="fade-right"].aos-animate {
  transform: translateX(0);
}

[data-aos="fade-left"] {
  transform: translateX(30px);
}

[data-aos="fade-left"].aos-animate {
  transform: translateX(0);
}

[data-aos="zoom-in"] {
  transform: scale(0.95);
}

[data-aos="zoom-in"].aos-animate {
  transform: scale(1);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
  .nosotros-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
  }

  .detalle-layout {
    grid-template-columns: 1fr;
  }

  .detalle-sidebar {
    order: -1;
  }

  .detalle-price-card {
    position: static;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  /* Catalogo: 3→2 columnas en tablet */
  .catalogo .property-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Filtros: permitir scroll horizontal en la barra */
  .filtros-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .filtros-bar::-webkit-scrollbar { display: none; }
  .filtros-wrap { position: static; }

  .hero-logo {
    display: none;
  }
}

@media (max-width: 768px) {
  .nav {
    position: fixed;
    top: 80px;
    right: 0;
    bottom: 0;
    width: 280px;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: white;
    padding: 32px;
    box-shadow: var(--shadow-2xl);
    transform: translateX(100%);
    transition: transform var(--transition-slow);
    height: fit-content;
  }

  .nav.open {
    transform: translateX(0);
  }

  .nav-link {
    width: 100%;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-light);
  }

  .nav-toggle {
    display: flex;
  }

  .hero {
    min-height: auto;
    padding: 140px 0 60px;
    aspect-ratio: 1;
  }

  .catalogo-hero {
    padding: 120px 0 60px;
  }

  .detalle-hero {
    padding: 100px 0 0;
  }

  .detalle-photo-grid {
    grid-template-columns: 1fr;
    height: auto;
  }

  .detalle-photo-main {
    height: 260px;
  }

  .detalle-photo-secondary {
    display: none;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .division-grid,
  .property-grid,
  .catalogo .property-grid {
    grid-template-columns: 1fr;
  }

  .search-shortcuts-grid {
    grid-template-columns: 1fr;
  }

  .search-shortcut-card {
    min-height: 230px;
    padding: 28px 24px;
  }

  .property-image {
    height: 300px;
  }

  .property-image-top,
  .property-image-bottom,
  .property-detail-row,
  .property-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .property-image-top {
    padding-left: 0;
    top: 72px;
  }

  .property-image-location,
  .property-image-meta {
    max-width: 100%;
    text-align: left;
  }

  .property-image-location {
    font-size: 24px;
  }



  .property-content {
    padding: 24px;
  }

  .property-name {
    font-size: 22px;
  }

  .property-price {
    font-size: 30px;
  }

  .catalogo-filters {
    grid-template-columns: 1fr;
  }

  .catalogo-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .catalogo-actions,
  .catalogo-hero-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .detalle-cta-content {
    flex-direction: column;
    align-items: flex-start;
  }

  .detalle-map-frame {
    height: 240px;
  }

  .detalle-specs-row {
    gap: 12px 18px;
  }

  .nosotros-grid,
  .contacto-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-links-group {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  /* ── Catalogo: buscador usable en movil ───────────────────
     Desde 1024px la barra es una tira con scroll horizontal (nowrap), y ahi
     el buscador queda en su minimo de 180px con 78px tapados por el boton
     "Buscar": entran ~6 caracteres. En movil la busqueda pasa a ocupar su
     propia fila completa y los chips de filtro se acomodan debajo, sin
     scroll horizontal escondido. */
  .filtros-bar {
    flex-wrap: wrap;
    overflow: visible;
    gap: 8px;
  }

  .filtros-search {
    flex: 0 0 100%;
    min-width: 0;
  }

  .filtros-input {
    /* 16px evita el zoom automatico de iOS al enfocar */
    font-size: 16px;
    padding: 11px 84px 11px 38px;
  }

  .filtros-wrap {
    padding: 12px;
    margin-bottom: 18px;
  }

  /* Despliegue de filtros al enfocar la busqueda (mismo patron que el
     buscador de la home): 0fr -> 1fr anima la altura automatica. */
  .filtros-reveal {
    flex: 0 0 100%;
    display: grid;
    grid-template-rows: 0fr;
    opacity: 0;
    transition: grid-template-rows 320ms cubic-bezier(0.22, 1, 0.36, 1), opacity 220ms ease;
  }

  .filtros-reveal-inner {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    min-height: 0;
    overflow: hidden;
    /* plegado no es solo invisible: sin esto se puede tabular hacia los
       filtros ocultos. Se apaga recien al terminar la animacion. */
    visibility: hidden;
    transition: visibility 0s linear 320ms;
  }

  .filtros-wrap.is-open .filtros-reveal {
    grid-template-rows: 1fr;
    opacity: 1;
  }

  .filtros-wrap.is-open .filtros-reveal-inner {
    visibility: visible;
    transition-delay: 0s;
  }
}

@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
  .filtros-reveal {
    transition: none;
  }

  /* ── Footer compacto en movil ─────────────────────────── */
  .site-footer {
    padding: 32px 0 20px;
  }

  .footer-content {
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
  }

  .footer-logo {
    height: 56px;
    margin-bottom: 10px;
  }

  .footer-tagline {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 14px;
  }

  /* Las .footer-column vacias son separadores del grid de desktop;
     apiladas en una sola columna solo aportan gap muerto. */
  .footer-column:empty {
    display: none;
  }

  .footer-title {
    font-size: 14px;
    margin-bottom: 8px;
  }

  .footer-menu li {
    margin-bottom: 6px;
  }

  .social-link {
    width: 34px;
    height: 34px;
  }

  .footer-bottom p {
    font-size: 12px;
    line-height: 1.4;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .floating-actions {
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 20px;
  }

  .hero-title {
    font-size: 36px;
  }

  .section-title {
    font-size: 32px;
  }

  .hero-cta {
    flex-direction: column;
  }

  .btn-lg {
    width: 100%;
  }
}

/* En desktop el wrapper de filtros es transparente: los chips vuelven a ser
   hijos directos de .filtros-bar y el layout es el de siempre. En movil pasa a
   ser un bloque desplegable (ver el @media de abajo). */
.filtros-reveal,
.filtros-reveal-inner {
  display: contents;
}

/* ════════════════════════════════════════════════════════════
   FacetSelect — "select moderno" con conteos de combinaciones
   (mejora progresiva sobre los <select> nativos del catálogo)
   ════════════════════════════════════════════════════════════ */
.fselect {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

/* El <select> nativo sigue en el DOM como fuente de verdad, oculto. */
.fselect-native {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* Botón: misma silueta que .filtros-select para integrarse en la barra */
.fselect-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 240px;
  padding: 8px 10px 8px 13px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light);
  background: white;
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  color: var(--text-primary);
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.fselect-btn:hover { border-color: var(--primary); }

.fselect-btn:focus-visible {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0, 160, 81, 0.12);
}

.fselect-label {
  overflow: hidden;
  text-overflow: ellipsis;
}

.fselect-btn.has-value {
  border-color: var(--primary);
  color: var(--primary-dark);
  background-color: rgba(0, 160, 81, 0.07);
}

.fselect-caret {
  flex-shrink: 0;
  color: var(--text-tertiary, #6b7280);
  transition: transform 0.18s ease;
}
.fselect.is-open .fselect-caret { transform: rotate(180deg); }

.fselect.is-disabled .fselect-btn {
  opacity: 0.5;
  cursor: not-allowed;
  border-color: var(--border-light);
  color: var(--text-secondary);
  background: var(--bg-soft);
}

/* Panel desplegable — posicionado por JS (position:fixed) para no ser recortado
   por el contenedor con overflow donde viven los filtros. */
.fselect-panel {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  min-width: 220px;
  max-width: min(340px, 92vw);
  max-height: 340px;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg, 14px);
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.16);
  overflow: hidden;
  animation: fselect-in 0.16s ease;
}

@keyframes fselect-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

/* Buscador interno (listas largas: ciudades, barrios) */
.fselect-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-tertiary, #6b7280);
}
.fselect-search-input {
  flex: 1;
  min-width: 0;
  border: none;
  outline: none;
  background: transparent;
  font: inherit;
  font-size: 13px;
  color: var(--text-primary);
}

.fselect-list {
  overflow-y: auto;
  padding: 6px;
}

.fselect-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius-md, 8px);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
}
.fselect-opt-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fselect-opt:hover { background: var(--primary-soft, rgba(0, 160, 81, 0.08)); }

.fselect-opt.is-selected {
  background: var(--primary);
  color: #fff;
}
.fselect-opt.is-selected:hover { background: var(--primary-dark); }

.fselect-opt--placeholder { color: var(--text-secondary); font-weight: 600; }

/* Opción sin resultados con los filtros activos: deshabilitada */
.fselect-opt.is-empty {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* Badge de conteo de combinaciones */
.fselect-count {
  flex-shrink: 0;
  min-width: 22px;
  padding: 1px 7px;
  border-radius: var(--radius-full);
  background: var(--bg-soft);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.fselect-opt:hover .fselect-count { background: rgba(0, 160, 81, 0.16); color: var(--primary-dark); }
.fselect-opt.is-selected .fselect-count { background: rgba(255, 255, 255, 0.26); color: #fff; }
.fselect-opt.is-empty .fselect-count { background: var(--bg-soft); color: var(--text-tertiary, #9ca3af); }

@media (prefers-reduced-motion: reduce) {
  .fselect-panel { animation: none; }
  .fselect-caret { transition: none; }
}
