﻿/* ==========================================================================
   DP Propiedades — System Stylesheet (sitios de inmobiliarias)
   Design exact replica matching reference UI: Pink Magenta (#D81B60 / #D6006E)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Dancing+Script:wght@600;700&display=swap');

:root {
  --primary-pink: #d6006e;
  --primary-pink-hover: #b5005d;
  --pink-light-bg: #fdf2f7;
  --brand-rgb: 214, 0, 110;
  --brand-on-dark: #f8b4d0;
  --brand-soft-bg: #fff5f9;
  --brand-soft-border: #f3c6da;
  
  --dark-topbar: #0f1115;
  --dark-footer: #1e2124;
  --dark-subfooter: #16181b;
  
  --text-dark: #23272a;
  --text-body: #4a5568;
  --text-muted: #718096;
  --text-light: #f8f9fa;
  
  --bg-body: #ffffff;
  --bg-light-section: #f3f4f6;
  --bg-card: #ffffff;

  --border-color: #e2e8f0;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 6px 18px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 28px rgba(0, 0, 0, 0.12);
  
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-pill: 50px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Tema por inmobiliaria: Baña Walton — verde de marca (no rosa) */
[data-store="bwprop"] {
  --primary-pink: #1b3b26;
  --primary-pink-hover: #14301e;
  --pink-light-bg: #eef3ef;
  --brand-accent: #b8860b;
  --brand-rgb: 27, 59, 38;
  --brand-on-dark: #b7d0c0;
  --brand-soft-bg: #eef3ef;
  --brand-soft-border: #c5d4ca;
}

[data-store="bwprop"] .hero-divider {
  background: linear-gradient(90deg, var(--primary-pink), var(--brand-accent));
}

/* Reset & Base Styles */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
  background-color: var(--bg-body);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

ul {
  list-style: none;
}

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

/* Container */
.container {
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 28px;
}

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

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

/* Catálogo: tipografía responsive sin estilos inline */
.catalog-hero {
  background-color: var(--dark-topbar);
  color: #ffffff;
  padding: clamp(1.75rem, 4vw, 2.5rem) 0;
  margin-bottom: 1.75rem;
}

.catalog-hero .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
}

.catalog-hero h1 {
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 900;
  text-transform: uppercase;
  line-height: 1.15;
}

.catalog-hero p {
  color: #a0aec0;
  margin-top: 0.4rem;
  font-size: clamp(0.88rem, 2.4vw, 1rem);
  max-width: 40rem;
}

/* ==========================================================================
   1. TOP HEADER BAR (Dark)
   ========================================================================== */
.top-bar {
  background-color: var(--dark-topbar);
  color: #e2e8f0;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.top-bar-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.top-bar-item i {
  color: #ffffff;
  font-size: 0.85rem;
}

.top-bar-social {
  display: flex;
  align-items: center;
  gap: 12px;
}

.top-bar-social a {
  color: #ffffff;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  transition: var(--transition);
}

.top-bar-social a:hover {
  color: var(--primary-pink);
  transform: translateY(-1px);
}

/* ==========================================================================
   2. MAIN NAVIGATION HEADER
   ========================================================================== */
.main-header {
  background-color: #ffffff;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  padding: 16px 0;
  border-bottom: 1px solid #e2e8f0;
}

.main-header .header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-width: 0;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  min-width: 0;
  flex: 0 1 auto;
  max-width: min(480px, 70vw);
}

.brand-logo-img {
  height: 72px;
  width: auto;
  max-width: min(360px, 62vw);
  flex-shrink: 0;
  object-fit: contain;
}

/* Wordmark horizontal (Baña Walton): más ancho en header */
[data-store="bwprop"] .brand-logo-img {
  height: clamp(56px, 10vw, 84px);
  max-width: min(420px, 70vw);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 900;
  color: #23272a;
  text-transform: uppercase;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-tagline {
  font-size: 0.7rem;
  font-weight: 700;
  color: #718096;
  text-transform: uppercase;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-cpi-subtitle {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin-top: 1px;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1 1 auto;
  gap: clamp(10px, 1.1vw, 16px);
  min-width: 0;
  padding: 0;
}

.nav-link {
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.35px;
  padding: 10px 2px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

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

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--primary-pink);
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-whatsapp-header {
  background-color: var(--primary-pink);
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.8rem;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.5px;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-whatsapp-header i {
  font-size: 1.05rem;
}

.btn-whatsapp-header:hover {
  background-color: var(--primary-pink-hover);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.3);
}

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: var(--text-dark);
  cursor: pointer;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.mobile-toggle:hover {
  background: var(--pink-light-bg);
  color: var(--primary-pink);
}

/* ==========================================================================
   3. HERO BANNER SECTION (TALL HEIGHT MATCHING REFERENCE IMAGE)
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 640px;
  background-color: #f8fafc;
  background-image: linear-gradient(90deg, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.78) 48%, rgba(255,255,255,0.15) 85%);
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  padding: 80px 0 130px 0;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.12;
  margin-bottom: 18px;
  text-transform: uppercase;
  color: #23272a;
  letter-spacing: -0.8px;
}

.hero-title .highlight {
  color: var(--primary-pink);
}

.hero-subtitle {
  font-size: 1.02rem;
  font-weight: 500;
  line-height: 1.6;
  color: #4a5568;
  margin-bottom: 20px;
}

.hero-divider {
  width: 55px;
  height: 4px;
  background-color: var(--primary-pink);
  margin-bottom: 24px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-hero-pink {
  background-color: var(--primary-pink);
  color: #ffffff;
  padding: 13px 25px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-pink:hover {
  background-color: var(--primary-pink-hover);
  box-shadow: 0 4px 14px rgba(var(--brand-rgb), 0.35);
}

.btn-hero-dark {
  background-color: #2d3139;
  color: #ffffff;
  padding: 13px 25px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-dark:hover {
  background-color: #1a1d23;
}

.btn-hero-white {
  background-color: #ffffff;
  color: #23272a;
  padding: 13px 25px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #cbd5e0;
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-white:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.btn-hero-outline {
  background-color: rgba(255, 255, 255, 0.92);
  color: var(--primary-pink);
  padding: 13px 25px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid var(--primary-pink);
  cursor: pointer;
  transition: var(--transition);
}

.btn-hero-outline:hover {
  background-color: var(--primary-pink);
  color: #ffffff;
}

/* Dots slider */
.hero-slider-dots {
  position: absolute;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background-color: #ffffff;
  border: 2px solid var(--primary-pink);
  width: 12px;
  height: 12px;
}

/* ==========================================================================
   4. FLOATING PROPERTY SEARCH BAR
   ========================================================================== */
.search-container {
  margin-top: -55px;
  position: relative;
  z-index: 100;
  padding-bottom: 40px;
}

.search-box {
  background-color: #ffffff;
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(5, 1fr) 130px;
  gap: 14px;
  align-items: flex-end;
  border: 1px solid #edf2f7;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #718096;
}

.form-select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background-color: #ffffff;
  color: #4a5568;
  font-size: 0.82rem;
  font-weight: 500;
  outline: none;
  transition: var(--transition);
}

.form-select:focus {
  border-color: var(--primary-pink);
}

.btn-search {
  height: 40px;
  padding: 0 16px;
  background-color: var(--primary-pink);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-sizing: border-box;
  transition: var(--transition);
}

.btn-search i {
  font-size: 0.9rem;
  line-height: 1;
}

.btn-search:hover {
  background-color: var(--primary-pink-hover);
  color: #ffffff;
}

.catalog-hero .btn-search,
.properties-map-hero .btn-search {
  flex: 0 0 auto;
  align-self: center;
  height: 42px;
  padding: 0 18px;
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

.catalog-hero h1 .catalog-hero-accent {
  color: var(--brand-on-dark);
}

/* ==========================================================================
   CATALOG FILTERS (properties index)
   ========================================================================== */
.catalog-page {
  padding-bottom: 60px;
}

.catalog-filters {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
}

.catalog-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.catalog-filters-title {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.catalog-filters-title > i {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--primary-pink);
  flex-shrink: 0;
}

.catalog-filters-title strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 800;
  color: #1a202c;
  line-height: 1.2;
}

.catalog-filters-title span {
  display: block;
  font-size: 0.75rem;
  color: #718096;
  margin-top: 1px;
}

.catalog-filters-clear {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary-pink);
  text-decoration: none;
  white-space: nowrap;
}

.catalog-filters-clear:hover {
  text-decoration: underline;
}

.catalog-filters-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr)) minmax(118px, 0.85fr);
  gap: 10px;
  align-items: end;
}

.catalog-field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
  margin: 0;
}

.catalog-field-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #64748b;
  line-height: 1;
}

.catalog-field-label i {
  color: var(--primary-pink);
  font-size: 0.72rem;
  width: 0.85rem;
  text-align: center;
}

.catalog-field-label--spacer {
  visibility: hidden;
}

.catalog-select {
  width: 100%;
  height: 42px;
  padding: 0 34px 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background-color: #f8fafc;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%2364748b' d='M1.4 0.6 6 5.2 10.6.6 12 2 6 8 0 2z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 10px;
  color: #1a202c;
  font-size: 0.86rem;
  font-weight: 600;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.catalog-select:hover {
  border-color: #cbd5e1;
  background-color: #fff;
}

.catalog-select:focus {
  border-color: var(--primary-pink);
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.catalog-field-action {
  display: flex;
  flex-direction: column;
}

.catalog-filter-btn {
  height: 42px;
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  background: var(--primary-pink);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(var(--brand-rgb), 0.22);
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.catalog-filter-btn:hover {
  background: var(--primary-pink-hover);
}

.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 48px 20px;
  color: #718096;
  background: #f8fafc;
  border: 1px dashed #e2e8f0;
  border-radius: 12px;
}

.catalog-empty h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #1a202c;
}

.catalog-empty p {
  margin: 8px 0 14px;
}

.catalog-pagination {
  margin-top: 30px;
}

@media (max-width: 1100px) {
  .catalog-filters-row {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-field-action {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   5. FEATURED PROPERTIES SECTION
   ========================================================================== */
.section {
  padding: 35px 0 50px 0;
  border-bottom: 1px solid #e2e8f0;
}

/* ==========================================================================
   PAGE BANNER / PAGE HERO (CMS pages: nosotros, seguros, tasaciones, etc.)
   ========================================================================== */
.page-banner,
.page-hero {
  position: relative;
  isolation: isolate;
  color: #ffffff;
  padding: 48px 0 44px;
  margin-bottom: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 120% at 100% 0%, rgba(var(--brand-rgb), 0.2), transparent 55%),
    linear-gradient(165deg, #14171c 0%, var(--dark-topbar) 55%, #0a0c10 100%);
}

.page-hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-image: var(--page-hero-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  filter: saturate(0.85) contrast(1.05);
}

.page-hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(105deg, rgba(10, 12, 16, 0.92) 0%, rgba(10, 12, 16, 0.78) 42%, rgba(10, 12, 16, 0.45) 100%),
    radial-gradient(ellipse 70% 90% at 100% 0%, rgba(var(--brand-rgb), 0.28), transparent 55%);
}

.page-banner::after,
.page-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  z-index: 2;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(var(--brand-rgb), 0.5), transparent);
}

.page-banner-inner,
.page-hero-inner {
  position: relative;
  z-index: 3;
  max-width: 720px;
}

.page-hero-kicker {
  display: inline-block;
  margin: 0 0 14px;
  padding: 6px 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--brand-on-dark);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-banner-accent,
.page-hero-accent {
  width: 40px;
  height: 3px;
  background: var(--primary-pink);
  border-radius: 2px;
  margin-bottom: 16px;
}

.page-banner-title,
.page-hero-title {
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.4px;
  line-height: 1.15;
  margin: 0;
}

.page-banner-subtitle,
.page-hero-subtitle {
  color: #c4cad4;
  margin-top: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.55;
  max-width: 540px;
}

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

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
}

.section-title {
  font-size: 1.45rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.section-title span {
  color: var(--primary-pink);
}

.view-all-link {
  font-weight: 800;
  font-size: 0.8rem;
  color: #23272a;
  display: flex;
  align-items: center;
  gap: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.view-all-link:hover {
  color: var(--primary-pink);
}

/* Property Grid: 4 per row on PC */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}

.property-card {
  background-color: #ffffff;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.1);
  border-color: rgba(var(--brand-rgb), 0.28);
}

.property-thumb {
  position: relative;
  display: block;
  height: auto;
  aspect-ratio: 5 / 4;
  min-height: 280px;
  overflow: hidden;
  background: #e2e8f0;
}

.property-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.property-card:hover .property-thumb img {
  transform: scale(1.05);
}

.property-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background-color: var(--primary-pink);
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  box-shadow: 0 6px 14px rgba(var(--brand-rgb), 0.28);
}

.property-badge.alquiler {
  background-color: #0f172a;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.28);
}

.property-badge--static {
  position: static;
  display: inline-flex;
  margin-bottom: 10px;
}

.property-type-chip {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: #1a202c;
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
}

.property-content {
  padding: 14px 15px 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  gap: 5px;
}

.property-title {
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--text-dark);
  margin: 0;
  line-height: 1.3;
}

.property-title a {
  color: inherit;
  text-decoration: none;
}

.property-title a:hover {
  color: var(--primary-pink);
}

.property-location {
  font-size: 0.78rem;
  color: #718096;
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.property-location i {
  color: var(--primary-pink);
}

.property-features {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  padding: 10px 0;
  border-top: 1px solid #edf2f7;
  border-bottom: 1px solid #edf2f7;
  margin: 6px 0 0;
  font-size: 0.76rem;
  color: #64748b;
}

.feature-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.feature-item i {
  color: var(--primary-pink);
  width: 14px;
  text-align: center;
}

.property-footer {
  display: flex;
  align-items: center;
  justify-content: stretch;
  margin-top: auto;
  padding-top: 12px;
}

.property-price {
  font-size: 1.2rem;
  font-weight: 900;
  color: var(--primary-pink);
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.btn-consultar {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid rgba(var(--brand-rgb), 0.35);
  color: var(--primary-pink);
  background-color: rgba(var(--brand-rgb), 0.06);
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn-consultar:hover {
  background-color: var(--primary-pink);
  border-color: var(--primary-pink);
  color: #ffffff;
}

/* Property detail page */
.property-show {
  padding-bottom: 0;
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 28%);
  overflow-x: clip;
}

.property-show-top {
  padding: 28px 0 48px;
}

.property-show-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  margin-bottom: 20px;
}

.property-show-back,
.property-show-map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 44px;
}

.property-show-back {
  color: var(--primary-pink);
}

.property-show-map-link {
  color: #4a5568;
}

.property-show-map-link i {
  color: var(--primary-pink);
}

.property-show-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, 0.95fr);
  gap: 36px;
  align-items: start;
}

.property-show-gallery {
  position: sticky;
  top: 88px;
  min-width: 0;
}

.property-show-main-image {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  height: auto;
  max-height: min(68vh, 620px);
  min-height: 360px;
  background: #e2e8f0;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.property-show-main-trigger {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.property-show-main-image img,
.property-show-main-trigger img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
}

.property-show-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.18);
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.property-show-nav-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.04);
}

.property-show-nav-btn--prev {
  left: 12px;
}

.property-show-nav-btn--next {
  right: 12px;
}

.property-show-counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.property-show-expand {
  position: absolute;
  left: 12px;
  bottom: 12px;
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.property-show-expand:hover {
  background: var(--primary-pink);
  transform: scale(1.04);
}

.property-show-thumbs {
  display: flex;
  gap: 10px;
  margin-top: 14px;
  overflow-x: auto;
  padding: 2px 2px 8px;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.property-show-thumbs::-webkit-scrollbar {
  height: 6px;
}

.property-show-thumbs::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}

.property-show-thumb {
  border: 2px solid transparent;
  padding: 0;
  cursor: pointer;
  flex: 0 0 104px;
  width: 104px;
  height: 78px;
  border-radius: 10px;
  overflow: hidden;
  background: #e2e8f0;
  scroll-snap-align: start;
  opacity: 0.78;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.property-show-thumb:hover,
.property-show-thumb.is-active {
  opacity: 1;
  border-color: var(--primary-pink);
  transform: translateY(-1px);
}

.property-show-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.property-show-info {
  min-width: 0;
}

.property-show-info .property-badge--static {
  margin-bottom: 12px;
}

.property-show-title {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  font-weight: 900;
  color: var(--text-dark);
  margin: 0 0 10px;
  line-height: 1.18;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.property-show-location {
  margin-bottom: 12px;
  color: #64748b;
}

.property-show-price {
  font-size: clamp(1.45rem, 2vw, 1.85rem);
  margin-bottom: 16px;
  color: var(--primary-pink);
  font-weight: 900;
}

.property-show-features {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e8edf3;
}

.property-show-features .feature-item {
  background: #f8fafc;
  border: 1px solid #e8edf3;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.property-show-description {
  color: #475569;
  line-height: 1.65;
  margin-bottom: 14px;
  font-size: 0.95rem;
}

.property-show-amenities {
  margin-bottom: 14px;
}

.property-show-amenities-title {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f172a;
}

.property-show-features-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.property-show-features-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 0;
  padding: 7px 10px;
  border-radius: 10px;
  background: var(--brand-soft-bg);
  border: 1px solid var(--brand-soft-border);
  color: #334155;
  font-size: 0.88rem;
  line-height: 1.35;
}

.property-show-check {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--primary-pink);
  color: #fff;
  font-size: 0.62rem;
  margin-top: 1px;
}

.property-show-contact {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
}

.btn-whatsapp-direct {
  display: inline-flex;
  width: 100%;
  box-sizing: border-box;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
  box-shadow: 0 6px 14px rgba(37, 211, 102, 0.2);
  transition: transform 0.15s ease, filter 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-whatsapp-direct:hover {
  filter: brightness(1.04);
  transform: translateY(-1px);
}

.btn-whatsapp-direct i {
  font-size: 1.15rem;
}

.property-show-map {
  margin-top: 8px;
}

.property-similar {
  padding: 48px 0 60px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
}

/* Property lightbox */
.property-lightbox {
  position: fixed;
  inset: 0;
  z-index: 10050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding:
    max(12px, env(safe-area-inset-top))
    max(12px, env(safe-area-inset-right))
    max(12px, env(safe-area-inset-bottom))
    max(12px, env(safe-area-inset-left));
}

.property-lightbox[hidden] {
  display: none !important;
}

.property-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 12, 18, 0.92);
  cursor: pointer;
}

.property-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1100px, 100%);
  height: min(90dvh, 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  outline: none;
}

.property-lightbox__stage {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: pan-y;
  user-select: none;
}

.property-lightbox__stage img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  background: #0f172a;
}

.property-lightbox__close,
.property-lightbox__nav {
  position: absolute;
  z-index: 2;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, transform 0.15s ease;
}

.property-lightbox__close:hover,
.property-lightbox__nav:hover {
  background: #fff;
  transform: scale(1.04);
}

.property-lightbox__close {
  top: max(8px, env(safe-area-inset-top));
  right: max(8px, env(safe-area-inset-right));
  width: 48px;
  height: 48px;
  font-size: 1.2rem;
}

.property-lightbox__nav {
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  font-size: 1.05rem;
}

.property-lightbox__nav:hover {
  transform: translateY(-50%) scale(1.04);
}

.property-lightbox__nav--prev {
  left: max(8px, env(safe-area-inset-left));
}

.property-lightbox__nav--next {
  right: max(8px, env(safe-area-inset-right));
}

.property-lightbox__counter {
  position: absolute;
  top: max(16px, calc(env(safe-area-inset-top) + 8px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  pointer-events: none;
  white-space: nowrap;
}

body.lightbox-open {
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}

@media (max-width: 960px) {
  .property-show-top {
    padding: 20px 0 36px;
  }

  .property-show-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .property-show-gallery {
    position: static;
  }

  .property-show-main-image {
    min-height: 0;
    max-height: none;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
  }

  .property-show-nav-btn {
    width: 44px;
    height: 44px;
  }

  .property-show-thumb {
    flex: 0 0 96px;
    width: 96px;
    height: 74px;
  }

  .property-lightbox__panel {
    height: min(92dvh, 100%);
  }

  .property-lightbox__nav {
    width: 48px;
    height: 48px;
  }

  .property-lightbox__stage img {
    border-radius: 4px;
    max-height: calc(92dvh - 96px);
  }
}

@media (max-width: 768px) {
  .property-show-top {
    padding: 16px 0 28px;
  }

  .property-show-nav {
    margin-bottom: 14px;
    gap: 6px 12px;
  }

  .property-show-main-image {
    aspect-ratio: 1 / 1;
    border-radius: 12px;
  }

  .property-show-nav-btn--prev {
    left: 8px;
  }

  .property-show-nav-btn--next {
    right: 8px;
  }

  .property-show-counter {
    right: 10px;
    bottom: 10px;
  }

  .property-show-expand {
    left: 10px;
    bottom: 10px;
    width: 42px;
    height: 42px;
  }

  .property-show-thumbs {
    margin-top: 12px;
    gap: 8px;
    margin-inline: -4px;
    padding-inline: 4px;
  }

  .property-show-thumb {
    flex: 0 0 88px;
    width: 88px;
    height: 68px;
    border-radius: 8px;
  }

  .property-show-title {
    font-size: 1.35rem;
  }

  .property-show-price {
    font-size: 1.4rem;
    margin-bottom: 12px;
  }

  .property-show-features {
    gap: 8px;
    margin-bottom: 14px;
    padding-bottom: 14px;
  }

  .property-show-features .feature-item {
    padding: 8px 11px;
    font-size: 0.82rem;
  }

  .property-show-description {
    font-size: 0.92rem;
    margin-bottom: 12px;
  }

  .property-similar {
    padding: 36px 0 48px;
  }

  .property-lightbox {
    padding: 0;
  }

  .property-lightbox__panel {
    width: 100%;
    height: 100%;
    max-height: 100dvh;
  }

  .property-lightbox__stage {
    padding: 64px 56px 28px;
  }

  .property-lightbox__stage img {
    max-height: calc(100dvh - 120px);
    border-radius: 0;
    box-shadow: none;
  }

  .property-lightbox__close {
    top: max(10px, env(safe-area-inset-top));
    right: max(10px, env(safe-area-inset-right));
  }

  .property-lightbox__nav--prev {
    left: max(6px, env(safe-area-inset-left));
  }

  .property-lightbox__nav--next {
    right: max(6px, env(safe-area-inset-right));
  }

  .property-lightbox__counter {
    top: max(18px, calc(env(safe-area-inset-top) + 10px));
  }
}

@media (max-width: 390px) {
  .property-show-main-image {
    aspect-ratio: 5 / 4;
  }

  .property-show-thumb {
    flex: 0 0 78px;
    width: 78px;
    height: 62px;
  }

  .property-show-title {
    font-size: 1.25rem;
  }

  .property-show-price {
    font-size: 1.28rem;
  }

  .property-lightbox__stage {
    padding: 72px 48px 24px;
  }

  .property-lightbox__nav {
    width: 44px;
    height: 44px;
  }
}

/* ==========================================================================
   6. OUR SERVICES SECTION
   ========================================================================== */
.services-section {
  background-color: var(--bg-light-section);
  padding: 52px 0 56px;
  text-align: center;
  border-bottom: 1px solid #e2e8f0;
}

.services-title {
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 32px;
  letter-spacing: -0.3px;
}

.services-title span {
  color: var(--primary-pink);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  align-items: stretch;
}

.services-grid[data-count="1"] { grid-template-columns: minmax(0, 360px); justify-content: center; }
.services-grid[data-count="2"] { grid-template-columns: repeat(2, 1fr); }
.services-grid[data-count="3"] { grid-template-columns: repeat(3, 1fr); }
.services-grid[data-count="4"] { grid-template-columns: repeat(4, 1fr); }

.service-card {
  background: #ffffff;
  padding: 28px 22px 26px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  height: 100%;
}

.service-card:not(.service-card--static) {
  cursor: pointer;
}

.service-card:not(.service-card--static):hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.28);
  box-shadow: var(--shadow-md);
}

.service-card:not(.service-card--static):hover .service-icon-circle {
  background-color: var(--primary-pink-hover);
}

.service-icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background-color: var(--primary-pink);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 16px;
  box-shadow: 0 6px 16px rgba(var(--brand-rgb), 0.22);
  transition: var(--transition);
  flex-shrink: 0;
}

.service-name {
  font-size: 0.84rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--text-dark);
  margin-bottom: 8px;
  letter-spacing: 0.15px;
  line-height: 1.3;
}

.service-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 240px;
  margin: 0 auto;
}

/* ==========================================================================
   CMS LEAD FORMS — layouts distintos por tipo (tasacion / seguro / contact)
   ========================================================================== */
.cms-lead {
  padding: 64px 0;
  border-bottom: 1px solid var(--border-color);
}

.cms-lead-kicker {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary-pink);
}

.cms-lead-title {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-dark);
  text-transform: none;
}

.cms-lead-text {
  margin: 0;
  max-width: 42rem;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.65;
}

.cms-lead-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.cms-lead-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.cms-lead-fields--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cms-lead-fields--stack {
  grid-template-columns: 1fr;
}

.cms-lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.cms-lead-field--full,
.cms-lead-field--span2 {
  grid-column: 1 / -1;
}

.cms-lead-fields--3 .cms-lead-field--span2 {
  grid-column: span 2;
}

.cms-lead-fields--3 .cms-lead-field--span3 {
  grid-column: 1 / -1;
}

.cms-lead-field label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cms-lead-field input,
.cms-lead-field select,
.cms-lead-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #d8dee6;
  border-radius: 6px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.95rem;
  font-weight: 500;
  outline: none;
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.cms-lead-field textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.5;
}

.cms-lead-field input:focus,
.cms-lead-field select:focus,
.cms-lead-field textarea:focus {
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.cms-lead-submit {
  appearance: none;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 12px 22px;
  border-radius: 6px;
  background: var(--primary-pink);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, transform 0.15s ease;
}

.cms-lead-submit:hover {
  background: var(--primary-pink-hover, #b84e6d);
  transform: translateY(-1px);
}

.cms-lead-submit--outline {
  background: transparent;
  color: var(--primary-pink);
  border: 1.5px solid var(--primary-pink);
}

.cms-lead-submit--outline:hover {
  background: var(--primary-pink);
  color: #fff;
}

/* --- Tasación: banda clara + pasos + formulario ancho --- */
.cms-lead--tasacion {
  background:
    linear-gradient(180deg, #fbf7f4 0%, #f3eee8 48%, #ffffff 100%);
}

.cms-lead-tasacion {
  display: grid;
  gap: 28px;
}

.cms-lead-tasacion__head {
  max-width: 52rem;
}

.cms-lead-steps {
  list-style: none;
  margin: 22px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.cms-lead-steps li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid #e6ddd4;
  font-size: 0.82rem;
  font-weight: 700;
  color: #4a4240;
}

.cms-lead-steps span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-pink);
  color: #fff;
  font-size: 0.72rem;
}

.cms-lead-form--wide {
  padding: 24px;
  background: #fff;
  border: 1px solid #eadfd6;
  border-radius: 12px;
}

.cms-lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}

.cms-lead-actions .cms-lead-submit {
  width: auto;
  min-width: 200px;
}

.cms-lead-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* --- Seguro: intro + chips + formulario lateral --- */
.cms-lead--seguro {
  background:
    radial-gradient(ellipse 70% 60% at 0% 20%, rgba(var(--brand-rgb), 0.1), transparent 55%),
    #ffffff;
}

.cms-lead-seguro {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.1fr);
  gap: 36px;
  align-items: start;
}

.cms-lead-seguro__badge {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  background: rgba(var(--brand-rgb), 0.12);
  color: var(--primary-pink);
  font-size: 1.35rem;
}

.cms-lead-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0;
}

.cms-lead-chip {
  display: inline-flex;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f6f1f3;
  color: #5c4a52;
  font-size: 0.8rem;
  font-weight: 700;
}

.cms-lead-mail {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.cms-lead-mail:hover {
  color: var(--primary-pink);
}

.cms-lead-seguro .cms-lead-form {
  padding: 22px;
  border-radius: 12px;
  border: 1px solid #ecdde4;
  background: #fffafb;
}

/* --- Contacto: copy + canales + form minimal --- */
.cms-lead--contact {
  background: #f7f8fa;
}

.cms-lead-contact {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.15fr);
  gap: 40px;
  align-items: start;
  padding: 8px 0;
}

.cms-lead-contact__list {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cms-lead-contact__list li {
  position: relative;
  padding-left: 16px;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.45;
}

.cms-lead-contact__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary-pink);
}

.cms-lead-contact__channels {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.cms-lead-contact__channels a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid #dde3ea;
  color: var(--text-dark);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 700;
}

.cms-lead-contact__channels a:hover {
  border-color: var(--primary-pink);
  color: var(--primary-pink);
}

.cms-lead-form--minimal {
  padding: 0;
  background: transparent;
  border: none;
}

.cms-lead-form--minimal .cms-lead-submit {
  width: 100%;
}

@media (max-width: 900px) {
  .cms-lead-seguro,
  .cms-lead-contact {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cms-lead-fields,
  .cms-lead-fields--3 {
    grid-template-columns: 1fr;
  }

  .cms-lead-fields--3 .cms-lead-field--span2,
  .cms-lead-fields--3 .cms-lead-field--span3 {
    grid-column: 1;
  }

  .cms-lead-actions .cms-lead-submit {
    width: 100%;
  }
}

/* Legacy class hooks (páginas cacheadas / editor) */
.cms-form-section {
  background: #f7f8fa;
  padding: 56px 0 72px;
}
.cms-form-layout { display: block; }
.cms-form-aside { display: none; }
.cms-form-panel {
  background: #fff;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
}
.cms-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.cms-form-field--full { grid-column: 1 / -1; }
.cms-form .btn-submit-pink { width: 100%; }

/* CMS rich text / prose */
.cms-rich-section {
  background: #ffffff;
}

.cms-rich-wrap {
  max-width: 860px;
}

.cms-rich-heading {
  margin-bottom: 20px;
}

.cms-prose {
  color: var(--text-body);
  font-size: 1.02rem;
  line-height: 1.75;
}

.cms-prose p {
  margin: 0 0 1.05rem;
}

.cms-prose p:last-child {
  margin-bottom: 0;
}

.cms-prose p:first-child strong {
  display: inline-block;
  margin-bottom: 0.15rem;
  color: var(--text-dark);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.cms-prose strong {
  color: var(--text-dark);
  font-weight: 800;
}

.cms-prose ul,
.cms-prose ol {
  margin: 0 0 1.1rem;
  padding-left: 1.2rem;
}

.cms-prose li {
  margin-bottom: 0.45rem;
}

.cms-heading {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
  color: var(--primary-pink);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.cms-text-image-section {
  background: transparent;
}

.cms-text-image-section.cms-bg-none {
  background: linear-gradient(180deg, #fafbfc 0%, #ffffff 100%);
}

.cms-text-image {
  display: grid;
  grid-template-columns: minmax(220px, 0.85fr) minmax(0, 1.35fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

.cms-text-image.cms-text-image-reverse {
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.85fr);
}

.cms-text-image.cms-text-image-reverse .cms-text-image-media {
  order: 2;
}

.cms-text-image-heading {
  font-size: clamp(1.25rem, 2vw, 1.55rem);
  font-weight: 900;
  color: var(--primary-pink);
  text-transform: uppercase;
  margin: 0 0 14px;
  letter-spacing: -0.3px;
  line-height: 1.2;
}

.cms-text-image-copy {
  min-width: 0;
}

.cms-text-image-media {
  position: relative;
  aspect-ratio: 4 / 5;
  max-height: 520px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: #e8eaed;
}

.cms-text-image-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

.cms-stats-section {
  border-bottom: 1px solid var(--border-color);
}

.cms-stats-heading {
  margin-bottom: 28px;
  text-align: center;
}

.cms-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.cms-stats-grid[data-count="1"] { grid-template-columns: 1fr; }
.cms-stats-grid[data-count="2"] { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cms-stats-grid[data-count="3"] { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cms-stats-grid[data-count="4"] { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.cms-stat-item,
.cms-stat {
  text-align: center;
  padding: 28px 18px;
  border-right: 1px solid var(--border-color);
}

.cms-stat-item:last-child,
.cms-stat:last-child {
  border-right: none;
}

.cms-stat-value {
  display: block;
  font-size: clamp(1.45rem, 2.4vw, 2rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--primary-pink);
  line-height: 1.1;
  text-transform: uppercase;
}

.cms-stat-label {
  display: block;
  margin-top: 0.55rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.35;
}

.cms-cta-whatsapp {
  background:
    radial-gradient(ellipse 70% 100% at 100% 50%, rgba(var(--brand-rgb), 0.12), transparent 55%),
    var(--pink-light-bg);
  border-bottom: 1px solid var(--brand-soft-border);
  padding: 42px 0;
}

.cms-cta-whatsapp-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.cms-cta-whatsapp-copy h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
}

.cms-cta-whatsapp-copy p {
  margin: 0;
  color: var(--text-body);
  max-width: 520px;
  line-height: 1.55;
}

/* Subtle scroll reveals */
.site-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1), transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .site-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* ==========================================================================
   7. CPI SILVINA RAGOUT & CONTACT SECTION
   ========================================================================== */
.bio-contact-section {
  padding: 48px 0 56px;
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.bio-top-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  align-items: stretch;
  margin-bottom: 0;
}

.bio-top-grid--split {
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
}

.contact-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  background: #f8f9fa;
  padding: 24px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  box-sizing: border-box;
}

.bio-visit-stack {
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.bio-visit-stack .bio-card-modern {
  padding: 22px 24px 18px;
}

.bio-visit-block {
  padding: 18px 24px 22px;
  border-top: 1px solid #e2e8f0;
  background: transparent;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.bio-card-modern {
  /* inherits panel spacing via stack */
}

.bio-card-inner {
  display: grid;
  grid-template-columns: minmax(150px, 42%) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.bio-portrait-box {
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 220px;
  max-height: 280px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
  border: 1px solid #cbd5e0;
  background: #fff;
}

.bio-portrait-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
}

/* Logo wordmark en bio (no recortar como foto de persona) */
[data-store="bwprop"] .bio-portrait-box {
  aspect-ratio: 16 / 10;
  min-height: 140px;
  max-height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px 16px;
  background: #fff;
}

[data-store="bwprop"] .bio-portrait-box img {
  object-fit: contain;
  object-position: center;
  width: 100%;
  height: 100%;
}

.bio-info-box {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
  justify-content: flex-start;
}

.bio-name {
  font-size: 1.08rem;
  font-weight: 900;
  color: var(--primary-pink);
  text-transform: uppercase;
  margin-bottom: 2px;
  line-height: 1.2;
}

.bio-mp {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.bio-text {
  font-size: 0.84rem;
  color: #4a5568;
  line-height: 1.55;
  margin-bottom: 14px;
}

.bio-signature {
  font-family: 'Dancing Script', cursive;
  font-size: 1.85rem;
  color: #2d3748;
  line-height: 1;
  margin-top: auto;
}

.contact-info-block .block-title,
.contact-form-block .block-title {
  margin-bottom: 18px;
}

.bio-visit-block .block-title {
  margin-bottom: 14px;
}

.bio-visit-block .contact-info-list {
  gap: 12px;
}

.bio-visit-block .social-circle-buttons {
  margin-top: 16px;
  padding-top: 14px;
}

.block-title {
  font-size: 0.92rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  letter-spacing: 0.3px;
}

.block-title::before {
  content: '';
  width: 4px;
  height: 1.05em;
  border-radius: 2px;
  background: var(--primary-pink);
  flex-shrink: 0;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}

.info-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.82rem;
  color: #4a5568;
  line-height: 1.45;
  margin-bottom: 0;
}

.info-item i {
  color: var(--primary-pink);
  font-size: 0.95rem;
  width: 18px;
  text-align: center;
  margin-top: 2px;
  flex-shrink: 0;
}

.info-link {
  color: inherit;
  font-weight: 700;
  word-break: break-word;
}

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

.social-circle-buttons {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
}

.btn-social-circle {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: #3b5998;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.92;
}

.btn-social-circle.instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

[data-store="bwprop"] .btn-social-circle.instagram {
  background: var(--primary-pink);
}

.btn-social-circle.tiktok {
  background-color: #000000;
}

.contact-panel-form {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 10px;
}

.bio-form-lead {
  margin: -4px 0 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.contact-form-block {
  background:
    linear-gradient(180deg, #ffffff 0%, #fbf8f9 100%);
  border: 1px solid #ecdde4;
  box-shadow: 0 10px 28px rgba(28, 20, 24, 0.06);
  padding: 28px 26px 24px;
}

.contact-form-block .block-title {
  letter-spacing: 0.04em;
}

.bio-lead-form {
  gap: 14px;
}

.bio-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 2px;
}

.bio-lead-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.bio-lead-field--full {
  grid-column: 1 / -1;
}

.bio-lead-field label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8a7a82;
}

.bio-lead-field input,
.bio-lead-field select,
.bio-lead-field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #e4d6dc;
  border-radius: 10px;
  background: #fff;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-dark);
  min-height: 46px;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.bio-lead-field textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}

.bio-lead-field input:hover,
.bio-lead-field select:hover,
.bio-lead-field textarea:hover {
  border-color: #d4b8c3;
}

.bio-lead-field input:focus,
.bio-lead-field select:focus,
.bio-lead-field textarea:focus {
  border-color: var(--primary-pink);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(var(--brand-rgb), 0.12);
}

.bio-lead-extra[hidden] {
  display: none !important;
}

.bio-lead-form .btn-submit-pink {
  margin-top: 4px;
  min-height: 50px;
  border-radius: 10px;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  box-shadow: 0 8px 18px rgba(var(--brand-rgb), 0.22);
}

.bio-lead-form .btn-submit-pink:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(var(--brand-rgb), 0.28);
}

@media (max-width: 700px) {
  .bio-lead-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-block {
    padding: 22px 18px;
  }
}

/* ==========================================================================
   PATHWAYS — próximos pasos (landing)
   ========================================================================== */
.pathways-section {
  padding: 72px 0 76px;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(var(--brand-rgb), 0.08), transparent 55%),
    linear-gradient(180deg, #f7f4f1 0%, #ffffff 70%);
  border-bottom: 1px solid #ebe4de;
}

.pathways-header {
  max-width: 40rem;
  margin-bottom: 34px;
}

.pathways-title {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-dark);
}

.pathways-subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.pathways-grid[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pathways-grid[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.pathway-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 22px 20px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e8dfd7;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 8px 24px rgba(40, 28, 22, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.pathway-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--brand-rgb), 0.35);
  box-shadow: 0 16px 32px rgba(40, 28, 22, 0.08);
}

.pathway-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.pathway-card__index {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #b0a39a;
}

.pathway-card__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(var(--brand-rgb), 0.1);
  color: var(--primary-pink);
  font-size: 1.05rem;
}

.pathway-card__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary-pink);
}

.pathway-card__title {
  margin: 0;
  font-size: 1.18rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--text-dark);
}

.pathway-card__text {
  margin: 0;
  flex: 1;
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.pathway-card__cta {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--primary-pink);
}

a.pathway-card:hover .pathway-card__cta i {
  transform: translateX(3px);
}

.pathway-card__cta i {
  transition: transform 0.15s ease;
  font-size: 0.75rem;
}

@media (max-width: 1100px) {
  .pathways-grid,
  .pathways-grid[data-count="3"],
  .pathways-grid[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .pathways-section {
    padding: 56px 0 60px;
  }

  .pathways-grid,
  .pathways-grid[data-count="2"],
  .pathways-grid[data-count="3"],
  .pathways-grid[data-count="4"] {
    grid-template-columns: 1fr;
  }
}

.contact-form-block .form-input,
.contact-form-block textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background-color: #ffffff;
  margin-bottom: 0;
  font-size: 0.82rem;
}

.contact-form-block .form-input:focus,
.contact-form-block textarea:focus {
  outline: none;
  border-color: var(--primary-pink);
  box-shadow: 0 0 0 3px rgba(var(--brand-rgb), 0.12);
}

.contact-form-block textarea {
  resize: vertical;
  min-height: 88px;
  flex: 1;
}

.form-error {
  color: #b91c1c;
  font-size: 0.8rem;
}

.btn-submit-pink {
  width: 100%;
  background-color: var(--primary-pink);
  color: #ffffff;
  padding: 12px;
  border: none;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: var(--transition);
  margin-top: auto;
}

.btn-submit-pink:hover {
  background-color: var(--primary-pink-hover);
}

/* HUGE FEATURED GOOGLE MAP */
.featured-map-wrapper {
  margin-top: 10px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid #cbd5e0;
  box-shadow: var(--shadow-md);
  height: 350px;
  width: 100%;
}

.featured-map-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.map-section {
  padding: 0 !important;
  margin: 0;
  border-bottom: none;
}

.map-section.map-section-bleed,
.map-section.cms-section,
.section.map-section {
  padding: 0 !important;
  padding-block: 0 !important;
}

.map-section-heading {
  margin-bottom: 12px;
}

.map-heading-text {
  font-size: 0.92rem;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
}

.map-heading-text i {
  color: var(--primary-pink);
}

.featured-map-fullbleed {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 0;
  border: none;
  box-shadow: none;
  height: min(52vh, 520px);
  min-height: 380px;
}

.map-heading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 255, 255, 0.78) 70%, rgba(255, 255, 255, 0) 100%);
  font-size: 0.9rem;
  font-weight: 900;
  color: var(--text-dark);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  pointer-events: none;
}

.map-heading-overlay i {
  color: var(--primary-pink);
}

/* Properties map page (Leaflet) */
.properties-map-hero {
  background-color: var(--dark-topbar);
  color: #ffffff;
  padding: 40px 0 28px;
}

.properties-map-hero-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
}

.properties-map-title {
  font-size: 2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.properties-map-title span {
  color: var(--brand-on-dark);
}

.properties-map-subtitle {
  color: #a0aec0;
  margin-top: 6px;
  font-size: 0.95rem;
}

.properties-map-section {
  position: relative;
  background: var(--bg-light-section);
}

.properties-map-canvas {
  width: 100%;
  height: min(72vh, 720px);
  min-height: 420px;
  z-index: 1;
}

.properties-map-legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 400;
  display: flex;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-dark);
}

.properties-map-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.properties-map-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.properties-map-dot--venta {
  background: var(--primary-pink);
}

.properties-map-dot--alquiler {
  background: #2563eb;
}

.properties-map-marker {
  background: transparent;
  border: 0;
}

.properties-map-pin {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 36px;
  color: var(--pin-color, var(--primary-pink));
  font-size: 1.65rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.28));
  line-height: 1;
}

.properties-map-leaflet-popup .leaflet-popup-content-wrapper {
  padding: 0;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.properties-map-leaflet-popup .leaflet-popup-content {
  margin: 0;
  min-width: 220px;
}

.properties-map-popup {
  display: block;
  color: inherit;
  text-decoration: none;
}

.properties-map-popup img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}

.properties-map-popup-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px 14px;
}

.properties-map-popup-op {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-pink);
}

.properties-map-popup-body strong {
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text-dark);
  line-height: 1.25;
}

.properties-map-popup-loc {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.properties-map-popup-price {
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--text-dark);
  margin-top: 2px;
}

.properties-map-empty {
  padding: 48px 16px 64px;
}

.properties-map-empty-card {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 36px 28px;
  box-shadow: var(--shadow-sm);
}

.properties-map-empty-card i {
  font-size: 2rem;
  color: var(--primary-pink);
  margin-bottom: 12px;
}

.properties-map-empty-card h2 {
  font-size: 1.15rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.properties-map-empty-card p {
  color: var(--text-muted);
  margin-bottom: 18px;
  line-height: 1.5;
}

/* ==========================================================================
   8. FOOTER SECTION
   ========================================================================== */
.main-footer {
  background-color: var(--dark-footer);
  color: #a0aec0;
  padding: 45px 0 0 0;
  font-size: 0.8rem;
}

/* Ícono transparente → blanco sobre footer oscuro */
.footer-brand-logo {
  display: block;
  height: 52px;
  width: auto;
  max-width: min(280px, 70vw);
  object-fit: contain;
  margin-bottom: 12px;
  filter: brightness(0) invert(1);
}

/* Wordmark con fondo blanco: no invertir (si no, queda un rectángulo blanco) */
.footer-brand-logo--wordmark {
  height: auto;
  max-height: 72px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #ffffff;
  filter: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 1fr 1.2fr 0.8fr;
  gap: 24px;
  padding-bottom: 35px;
}

.footer-col-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 14px;
  letter-spacing: 0.5px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.footer-links a {
  color: #cbd5e0;
}

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

.footer-hours-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 0.78rem;
}

.sub-footer {
  background-color: var(--dark-subfooter);
  padding: 14px 0;
  font-size: 0.74rem;
  color: #718096;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.sub-footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

/* ==========================================================================
   9. FLOATING WHATSAPP BUTTON & MODAL
   ========================================================================== */
.whatsapp-float {
  position: fixed;
  bottom: 22px;
  right: 22px;
  width: 50px;
  height: 50px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.65rem;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.4);
  z-index: 9999;
  transition: var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.08);
  color: #ffffff;
}

/* Modal */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  max-width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 20px;
}

.modal-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-content {
  background-color: #ffffff;
  border-radius: 8px;
  max-width: 650px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  position: relative;
  box-shadow: var(--shadow-lg);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  border: none;
  font-size: 1.35rem;
  color: #718096;
  cursor: pointer;
}

.modal-close:hover {
  color: var(--primary-pink);
}

/* Header: collapse when nav spacing no longer fits comfortably */
@media (max-width: 1320px) {
  .main-header .header-bar {
    position: relative;
    gap: 16px;
  }

  .brand-link {
    max-width: calc(100% - 150px);
    flex: 1 1 auto;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    width: 100%;
    background-color: #ffffff;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: 10px 0 14px;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
    border-bottom: 1px solid var(--border-color);
    z-index: 1001;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-link {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.9rem;
    border-bottom: 1px solid #f1f5f9;
  }

  .nav-link.active::after {
    display: none;
  }

  .nav-link.active {
    background: var(--pink-light-bg);
  }

  .mobile-toggle {
    display: inline-flex;
  }
}

/* Responsive Media Queries */
@media (max-width: 1100px) {
  .properties-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid,
  .services-grid[data-count="3"],
  .services-grid[data-count="4"],
  .services-grid[data-count="5"] {
    grid-template-columns: repeat(3, 1fr);
  }
  .services-grid[data-count="2"] {
    grid-template-columns: repeat(2, 1fr);
  }
  .services-grid[data-count="1"] {
    grid-template-columns: minmax(0, 360px);
  }
  .bio-top-grid,
  .bio-top-grid--split {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bio-card-inner {
    grid-template-columns: minmax(140px, 38%) minmax(0, 1fr);
    gap: 16px;
    text-align: left;
    align-items: stretch;
  }

  .bio-portrait-box {
    min-height: 180px;
    max-height: 220px;
  }

  .bio-signature {
    text-align: left;
  }

  .social-circle-buttons {
    justify-content: flex-start;
  }
  .search-box {
    grid-template-columns: repeat(3, 1fr);
  }
  .hero-section {
    min-height: 500px;
    padding: 50px 0 110px 0;
  }
  .hero-title {
    font-size: 2.5rem;
  }
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .top-bar {
    padding: 5px 0;
  }

  .top-bar .container {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    white-space: nowrap;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    font-size: 0.7rem;
    padding-left: 14px;
    padding-right: 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .top-bar .container::-webkit-scrollbar {
    display: none;
  }

  .top-bar-info {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
    flex-shrink: 0;
  }

  .top-bar-item {
    flex-shrink: 0;
  }

  .main-header {
    padding: 12px 0;
  }

  .brand-logo-img {
    height: 52px;
  }

  .brand-name {
    font-size: 0.82rem;
  }

  .brand-tagline,
  .brand-cpi-subtitle {
    font-size: 0.64rem;
  }

  .btn-whatsapp-header {
    padding: 11px 14px;
  }

  .btn-whatsapp-label {
    display: none;
  }

  .hero-section {
    min-height: 420px;
    padding: 35px 0 85px 0;
    background-image: linear-gradient(180deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.72) 55%, rgba(255,255,255,0.35) 100%);
    background-position: center;
  }

  .hero-title {
    font-size: 1.85rem;
    letter-spacing: -0.4px;
  }

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

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

  .properties-grid--featured {
    display: grid;
    grid-template-rows: auto auto;
    grid-auto-flow: column;
    grid-auto-columns: minmax(240px, 78vw);
    gap: 14px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    padding: 2px 2px 14px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .properties-grid--featured::-webkit-scrollbar {
    display: none;
  }

  .properties-grid--featured .property-card {
    min-width: 0;
    max-width: none;
    width: 100%;
    height: auto;
    scroll-snap-align: start;
  }

  .properties-grid--featured .property-thumb {
    min-height: 180px;
  }

  .properties-grid:not(.properties-grid--featured) .property-card {
    min-width: 0;
    max-width: none;
  }

  .services-grid,
  .services-grid[data-count="2"],
  .services-grid[data-count="3"],
  .services-grid[data-count="4"],
  .services-grid[data-count="5"] {
    grid-template-columns: 1fr;
  }

  .services-grid[data-count="1"] {
    grid-template-columns: 1fr;
  }

  .page-hero {
    padding: 48px 0 44px;
  }

  .page-hero-title {
    font-size: 1.55rem;
  }

  .page-hero-actions {
    margin-top: 22px;
  }

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

  .cms-form-aside {
    padding: 28px 24px;
  }

  .cms-form-panel {
    padding: 28px 20px;
  }

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

  .cms-cta-whatsapp-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .bio-card-modern {
    /* panel styles already apply */
  }

  .bio-card-inner {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .bio-portrait-box {
    width: min(220px, 70%);
    min-height: 240px;
    max-height: none;
    aspect-ratio: 4 / 5;
  }

  .bio-signature {
    text-align: center;
  }

  .social-circle-buttons {
    justify-content: center;
  }

  .featured-map-wrapper {
    height: 280px;
  }

  .featured-map-fullbleed {
    height: min(48vh, 420px);
    min-height: 300px;
  }

  .properties-map-canvas {
    height: min(68vh, 560px);
    min-height: 360px;
  }

  .properties-map-legend {
    left: 10px;
    right: 10px;
    bottom: 10px;
    justify-content: center;
  }

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

.hero-align-center .hero-content {
  text-align: center;
  margin-inline: auto;
}

.hero-align-center .hero-actions {
  justify-content: center;
}

.hero-align-center .hero-divider {
  margin-inline: auto;
}

.cms-pad-compact {
  padding-block: 2rem !important;
}

.cms-pad-normal {
  padding-block: 3.5rem !important;
}

.cms-pad-spacious {
  padding-block: 5.5rem !important;
}

.cms-bg-light {
  background: #f8fafc;
}

.cms-bg-pink {
  background: var(--pink-light-bg, #fff0f6);
}

.cms-bg-dark {
  background: #0f172a;
  color: #f8fafc;
}

.cms-bg-dark .section-title,
.cms-bg-dark h2,
.cms-bg-dark h3 {
  color: #fff;
}

.cms-faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1.25rem;
  max-width: 820px;
}

.cms-faq-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.cms-faq-item[open] {
  border-color: var(--brand-soft-border);
  box-shadow: 0 8px 20px rgba(var(--brand-rgb), 0.08);
}

.cms-faq-item summary {
  cursor: pointer;
  font-weight: 800;
  color: #0f172a;
  list-style: none;
  position: relative;
  padding-right: 28px;
}

.cms-faq-item summary::-webkit-details-marker {
  display: none;
}

.cms-faq-item summary::after {
  content: '+';
  position: absolute;
  right: 0;
  top: 0;
  color: var(--primary-pink);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1;
}

.cms-faq-item[open] summary::after {
  content: '–';
}

.cms-faq-answer {
  margin-top: 0.75rem;
  color: #475569;
  line-height: 1.6;
}

.cms-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.cms-testimonial {
  padding: 1.35rem 1.25rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  margin: 0;
}

.cms-testimonial p,
.cms-testimonial-quote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
  color: #0f172a;
}

.cms-testimonial footer {
  margin-top: 1rem;
}

.cms-testimonial footer strong,
.cms-testimonial-author {
  font-weight: 700;
  font-size: 0.9rem;
}

.cms-testimonial footer span,
.cms-testimonial-role {
  display: block;
  margin-top: 0.15rem;
  font-weight: 500;
  font-size: 0.8rem;
  color: #64748b;
}

.cms-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.cms-gallery-item {
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: #e2e8f0;
  margin: 0;
}

.cms-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.cms-gallery-item figcaption {
  padding: 0.55rem 0.65rem;
  font-size: 0.8rem;
  color: #64748b;
  background: #fff;
}

.cms-video-wrap,
.cms-video-frame {
  margin-top: 1.25rem;
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  background: #0f172a;
}

.cms-video-wrap iframe,
.cms-video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.cms-video-caption {
  margin-top: 0.75rem;
  color: #64748b;
  font-size: 0.9rem;
}

.cms-spacer {
  width: 100%;
}

@media (max-width: 768px) {
  .cms-text-image,
  .cms-text-image.cms-text-image-reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cms-text-image.cms-text-image-reverse .cms-text-image-media {
    order: 0;
  }

  .cms-text-image-media {
    aspect-ratio: 4 / 5;
    max-height: 420px;
    height: auto;
    max-width: 340px;
    margin-inline: auto;
  }

  .cms-stats-grid,
  .cms-stats-grid[data-count="3"],
  .cms-stats-grid[data-count="4"] {
    grid-template-columns: 1fr 1fr;
  }

  .cms-stat-item,
  .cms-stat {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
  }

  .cms-stat-item:nth-last-child(-n+2),
  .cms-stat:nth-last-child(-n+2) {
    border-bottom: none;
  }

  .cms-stat-item:nth-child(odd),
  .cms-stat:nth-child(odd) {
    border-right: 1px solid var(--border-color);
  }

  .page-banner,
  .page-hero {
    padding: 36px 0 32px;
  }

  .cms-gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .catalog-filters {
    grid-template-columns: 1fr !important;
  }

  .catalog-filters-row {
    grid-template-columns: 1fr !important;
  }

  .catalog-field-action {
    grid-column: auto;
  }

  .catalog-filter-btn {
    width: 100%;
  }
}

