/* ==========================================================================
   PORTAL INMOBILIARIO PÚBLICO - ESTILOS LUXURY & MODERNOS
   ========================================================================== */

:root {
  --primary-navy: #2f414a;
  --navy-dark: #1d2a30;
  --navy-light: #3d525c;
  --accent-gold: #c59b27;
  --accent-gold-hover: #b0891d;
  --accent-gold-light: #fef7e7;
  --accent-emerald: #059669;
  --accent-emerald-light: #ecfdf5;
  --accent-blue: #2563eb;
  
  --text-main: #1e293b;
  --text-muted: #64748b;
  --text-light: #f8fafc;
  
  --bg-page: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-subtle: #f1f5f9;
  
  --border-color: #e2e8f0;
  --border-light: #f1f5f9;
  --border-gold: rgba(197, 155, 39, 0.3);

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(34, 49, 58, 0.08);
  --shadow-lg: 0 12px 28px rgba(34, 49, 58, 0.12);
  --shadow-xl: 0 20px 40px rgba(34, 49, 58, 0.16);
  --shadow-gold: 0 6px 20px rgba(197, 155, 39, 0.25);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;

  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-main);
  background-color: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

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

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

.container {
  width: 100%;
  max-width: 1240px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
}

/* ================= TOP BAR ================= */
.top-bar {
  background: var(--navy-dark);
  color: #94a3b8;
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
  position: relative;
  z-index: 100;
}

.top-bar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left, .top-bar-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  vertical-align: middle;
  margin-right: 4px;
  color: var(--accent-gold);
}

/* ================= SELECTOR DE DÓLAR INTERACTIVO ================= */
.dolar-selector-wrapper {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 2px 10px 2px 8px;
  border-radius: var(--radius-full);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dolar-selector-wrapper:hover {
  background: rgba(234, 179, 8, 0.12);
  border-color: var(--accent-gold);
  box-shadow: 0 0 12px rgba(234, 179, 8, 0.35);
}

.dolar-pulse-icon {
  color: var(--accent-gold);
  width: 16px;
  height: 16px;
  display: inline-block;
  vertical-align: middle;
  animation: pulseDollarIcon 1.8s infinite ease-in-out;
}

@keyframes pulseDollarIcon {
  0% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.6));
    color: var(--accent-gold);
  }
  50% {
    transform: scale(1.3);
    filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.95));
    color: #38bdf8;
  }
  100% {
    transform: scale(1);
    filter: drop-shadow(0 0 2px rgba(234, 179, 8, 0.6));
    color: var(--accent-gold);
  }
}

.dolar-type-select {
  background: transparent;
  color: #f1f5f9;
  border: none;
  font-size: 0.8125rem;
  font-weight: 700;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  padding: 2px 4px;
}

.dolar-type-select option {
  background: #22313a;
  color: #f1f5f9;
  font-weight: 600;
  padding: 8px;
}

.top-divider {
  color: rgba(255, 255, 255, 0.2);
}

.top-link:hover {
  color: var(--text-light);
}

.currency-selector {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 6px;
  border-radius: var(--radius-full);
}

.currency-label {
  font-size: 0.75rem;
  color: #64748b;
  margin-right: 2px;
}

.currency-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.currency-btn.active {
  background: var(--accent-gold);
  color: #ffffff;
}

.crm-access-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #cbd5e1;
  font-weight: 600;
  padding: 3px 10px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: all var(--transition-fast);
}

.crm-access-link:hover {
  background: var(--accent-gold);
  color: #ffffff;
  border-color: var(--accent-gold);
}

/* ================= HEADER / NAVBAR ================= */
.main-header {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

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

.brand-logo-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  flex-shrink: 0;
}

.brand-logo-img {
  height: 48px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  border-radius: 6px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-name {
  font-family: 'Outfit', -apple-system, sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #22313a;
  line-height: 1.15;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.brand-tagline {
  font-size: 0.72rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  white-space: nowrap;
  margin-top: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  list-style: none;
  gap: 18px;
  align-items: center;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  padding: 8px 4px;
  position: relative;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: color var(--transition-fast);
}

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

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

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

.nav-link.highlight-link {
  color: var(--accent-gold);
  font-weight: 700;
}

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

.header-actions .btn {
  white-space: nowrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-icon {
  width: 16px;
  height: 16px;
}

.btn-outline-gold {
  border-color: var(--accent-gold);
  color: var(--accent-gold);
  background: transparent;
}

.btn-outline-gold:hover {
  background: var(--accent-gold);
  color: #ffffff;
  box-shadow: var(--shadow-gold);
}

.btn-whatsapp-header {
  background: #25d366;
  color: #ffffff;
  border-color: #25d366;
}

.btn-whatsapp-header:hover {
  background: #1eb956;
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-navy);
  cursor: pointer;
  padding: 6px;
}

.mobile-menu-toggle i {
  width: 26px;
  height: 26px;
}

.mobile-menu-drawer {
  display: none;
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 16px 20px;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-nav-link {
  display: block;
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-navy);
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.mobile-crm-item .mobile-nav-link {
  color: var(--accent-gold);
  border-bottom: none;
}

/* ================= HERO SECTION ================= */
.hero-section {
  position: relative;
  overflow: hidden;
  padding: 85px 0 110px;
  color: #ffffff;
  min-height: 560px;
  display: flex;
  align-items: center;
  background-color: #2f414a;
}

.hero-video-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.hero-video-bg {
  position: absolute;
  top: 50%;
  left: 50%;
  min-width: 100%;
  min-height: 100%;
  width: auto;
  height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0.85;
  z-index: 1;
}

.hero-cinematic-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.cinematic-slide {
  position: absolute;
  top: -5%;
  left: -5%;
  width: 110%;
  height: 110%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.8s ease-in-out;
  animation: kenBurnsLoop 18s ease-in-out infinite alternate;
}

.cinematic-slide.active {
  opacity: 1;
}

@keyframes kenBurnsLoop {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -0.8%);
  }
  100% {
    transform: scale(1.03) translate(0.8%, 0.4%);
  }
}

.hero-video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(23, 52, 128, 0.80) 0%,
    rgba(103, 124, 93, 0.55) 55%,
    rgba(16, 30, 70, 0.70) 100%
  );
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

.hero-headings {
  text-align: center;
  max-width: 840px;
  margin: 0 auto 40px;
}

.hero-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(197, 155, 39, 0.2);
  border: 1px solid rgba(197, 155, 39, 0.4);
  color: #fde68a;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 18px;
}

.badge-icon {
  width: 14px;
  height: 14px;
}

.hero-title {
  font-family: 'Jost', Georgia, serif;
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: #cbd5e1;
  font-weight: 300;
  max-width: 680px;
  margin: 0 auto;
}

/* ================= SEARCH CARD ================= */
.search-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  max-width: 1060px;
  margin: 0 auto;
  overflow: hidden;
  color: var(--text-main);
}

.search-tabs {
  display: flex;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-color);
}

.search-tab {
  flex: 1;
  background: transparent;
  border: none;
  padding: 14px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  border-bottom: 3px solid transparent;
}

.search-tab:hover {
  color: var(--primary-navy);
}

.search-tab.active {
  background: #ffffff;
  color: var(--accent-gold);
  border-bottom-color: var(--accent-gold);
  font-weight: 700;
}

.search-form {
  padding: 24px;
}

.search-grid {
  display: grid;
  grid-template-columns: minmax(125px, 1.25fr) minmax(125px, 1.25fr) minmax(110px, 1.05fr) minmax(95px, 0.95fr) minmax(95px, 0.95fr) minmax(100px, 0.95fr) auto;
  gap: 10px;
  align-items: flex-end;
}

@media (max-width: 1200px) {
  .search-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  .search-submit-col {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .search-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

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

.search-field label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  height: 18px;
  line-height: 18px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
  padding: 0;
}

.field-icon {
  width: 13px;
  height: 13px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.search-select, .form-control.search-input, .form-control {
  width: 100%;
  height: 44px;
  padding: 0 10px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background-color: #f8fafc;
  color: var(--text-main);
  font-size: 0.88rem;
  font-weight: 500;
  outline: none;
  box-sizing: border-box;
  transition: all var(--transition-fast);
}

.search-select:focus, .form-control.search-input:focus, .form-control:focus {
  border-color: var(--accent-gold);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px rgba(197, 155, 39, 0.15);
}

/* Limpiar spinner en inputs numéricos de precio */
.search-input[type=number]::-webkit-inner-spin-button, 
.search-input[type=number]::-webkit-outer-spin-button { 
  -webkit-appearance: none; 
  margin: 0; 
}
.search-input[type=number] {
  -moz-appearance: textfield;
}

.btn-search-hero {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 0 24px;
  height: 44px;
  border-radius: var(--radius-md);
  font-size: 0.92rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 8px rgba(47, 65, 74, 0.15);
  transition: all var(--transition-fast);
  box-sizing: border-box;
}

.btn-search-hero:hover {
  background: var(--accent-gold);
  box-shadow: var(--shadow-gold);
}

.quick-tags-container {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  flex-wrap: wrap;
}

.quick-tag-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.quick-tag {
  background: var(--bg-card-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-tag:hover {
  background: var(--accent-gold-light);
  border-color: var(--accent-gold);
  color: var(--accent-gold-hover);
}

/* ================= STATS BANNER ================= */
.stats-banner {
  background: #ffffff;
  border-bottom: 1px solid var(--border-color);
  padding: 30px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-number {
  font-family: 'Jost', Georgia, serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--accent-gold);
  line-height: 1;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ================= CATALOG SECTION ================= */
.catalog-section {
  padding: 80px 0;
}

.section-kicker {
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: block;
  margin-bottom: 6px;
}

.section-kicker.kicker-gold {
  color: #fde68a;
}

.section-title {
  font-family: 'Jost', Georgia, serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1.2;
  margin-bottom: 8px;
}

.section-title.text-light {
  color: #ffffff;
}

.section-desc {
  font-size: 1rem;
  color: var(--text-muted);
}

.catalog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 20px;
  flex-wrap: wrap;
}

.catalog-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-search-box {
  position: relative;
  min-width: 260px;
}

.quick-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--text-muted);
}

.quick-search-box input {
  width: 100%;
  padding: 9px 12px 9px 36px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: #ffffff;
  outline: none;
}

.quick-search-box input:focus {
  border-color: var(--accent-gold);
}

.sort-box {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sort-label {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.sort-select {
  padding: 8px 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  background: #ffffff;
  outline: none;
}

.view-switch-box {
  display: flex;
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.view-btn {
  background: transparent;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-btn.active {
  background: var(--primary-navy);
  color: #ffffff;
}

/* Active Filter Chips */
.active-filter-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 12px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  flex-wrap: wrap;
}

.chips-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

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

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent-gold-light);
  border: 1px solid var(--accent-gold);
  color: var(--accent-gold-hover);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
}

.chip-remove {
  cursor: pointer;
  display: flex;
  align-items: center;
}

.btn-clear-all {
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  margin-left: auto;
}

/* ================= PROPERTY CARDS ================= */
.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

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

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(197, 155, 39, 0.4);
}

.card-image-wrapper {
  position: relative;
  height: 240px;
  background: #22313a;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  pointer-events: none;
}

.badge-operation {
  background: var(--primary-navy);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: var(--shadow-sm);
}

.badge-operation.alquiler {
  background: var(--accent-emerald);
}

.badge-status {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.badge-status.reservada {
  background: #f59e0b;
  color: #ffffff;
}

.badge-photo-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  color: #ffffff;
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 4px;
}

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

.card-price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.card-price {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--primary-navy);
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.card-price-secondary {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

.dolar-rate-tag {
  display: block;
  font-size: 0.625rem;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  opacity: 0.75;
  margin-top: 4px;
  white-space: normal;
  line-height: 1.3;
}

.card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.card-location i {
  width: 15px;
  height: 15px;
  color: var(--accent-gold);
}

.card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-features-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  margin-top: auto;
  margin-bottom: 16px;
}

.feature-pill {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--text-main);
  font-weight: 600;
}

.feature-pill i {
  width: 15px;
  height: 15px;
  color: var(--text-muted);
}

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

.btn-view-detail {
  background: var(--primary-navy);
  color: #ffffff;
  padding: 9px 14px;
  font-size: 0.875rem;
}

.btn-view-detail:hover {
  background: var(--accent-gold);
}

.btn-card-wa {
  background: #25d366;
  color: #ffffff;
  padding: 9px 12px;
}

.btn-card-wa:hover {
  background: #1eb956;
}

/* Empty State */
.empty-results-box {
  text-align: center;
  padding: 60px 20px;
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-color);
}

.empty-icon {
  width: 48px;
  height: 48px;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.empty-results-box h3 {
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.empty-results-box p {
  color: var(--text-muted);
  margin-bottom: 20px;
}

/* ================= VALUATION SECTION ================= */
.valuation-section {
  background: linear-gradient(135deg, #2f414a 0%, #3d525c 100%);
  padding: 90px 0;
  color: #ffffff;
}

.valuation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}

.valuation-desc {
  font-size: 1.05rem;
  color: #cbd5e1;
  margin-bottom: 28px;
  line-height: 1.7;
}

.valuation-perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.valuation-perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: #e2e8f0;
}

.perk-icon {
  width: 20px;
  height: 20px;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.valuation-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  padding: 36px;
  color: var(--text-main);
  box-shadow: var(--shadow-xl);
}

.val-card-title {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 4px;
}

.val-card-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

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

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 6px;
}

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

.form-divider {
  height: 1px;
  background: var(--border-light);
  margin: 16px 0;
}

.btn-gold-solid {
  background: var(--accent-gold);
  color: #ffffff;
  border: none;
  font-size: 0.9375rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  width: 100%;
}

.btn-gold-solid:hover {
  background: var(--accent-gold-hover);
  box-shadow: var(--shadow-gold);
}

.form-feedback {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  text-align: center;
  font-weight: 600;
}

.form-feedback.success {
  background: #ecfdf5;
  border: 1px solid #10b981;
  color: #047857;
}

.form-feedback.error {
  background: #fef2f2;
  border: 1px solid #ef4444;
  color: #b91c1c;
}

/* ================= DEVELOPMENTS ================= */
.developments-section {
  padding: 90px 0;
  background: #ffffff;
}

.developments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}

.dev-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.dev-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.dev-img-box {
  position: relative;
  height: 220px;
}

.dev-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dev-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--accent-gold);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.dev-content {
  padding: 22px;
}

.dev-location {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--accent-gold);
  font-weight: 600;
  margin-bottom: 6px;
}

.dev-location i {
  width: 14px;
  height: 14px;
}

.dev-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 8px;
}

.dev-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 18px;
}

.dev-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
}

.dev-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  display: block;
}

.dev-price-val {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.btn-outline-dark {
  border: 1px solid var(--primary-navy);
  color: var(--primary-navy);
  background: transparent;
  padding: 6px 14px;
  font-size: 0.8125rem;
  border-radius: var(--radius-md);
}

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

/* ================= ABOUT SECTION ================= */
.about-section {
  padding: 90px 0;
  background: var(--bg-page);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 860px;
  margin: 0 auto;
  align-items: center;
}

.about-lead {
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--primary-navy);
  margin-bottom: 14px;
}

.about-p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.feat-box {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.feat-icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--accent-gold-light);
  color: var(--accent-gold-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feat-icon-box i {
  width: 22px;
  height: 22px;
}

.feat-box h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 2px;
}

.feat-box p {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.about-image-collage {
  position: relative;
}

.collage-main-img {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.collage-badge-card {
  position: absolute;
  bottom: -20px;
  left: -20px;
  background: #ffffff;
  padding: 20px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border-left: 4px solid var(--accent-gold);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.card-badge-icon {
  width: 24px;
  height: 24px;
  color: var(--accent-gold);
}

.badge-card-number {
  font-family: 'Jost', Georgia, serif;
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-navy);
  line-height: 1;
}

.badge-card-text {
  font-size: 0.8125rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ================= CONTACT SECTION ================= */
.contact-section {
  padding: 90px 0;
  background: #ffffff;
}

.contact-card {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.contact-info-panel {
  background: var(--primary-navy);
  padding: 44px;
  color: #ffffff;
}

.contact-desc {
  font-size: 0.95rem;
  color: #cbd5e1;
  margin-bottom: 30px;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.channel-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.chan-icon {
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-gold);
  flex-shrink: 0;
}

.chan-icon i {
  width: 18px;
  height: 18px;
}

.channel-item h5 {
  font-size: 0.8125rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.channel-item p {
  font-size: 0.9375rem;
  color: #ffffff;
  font-weight: 500;
}

.contact-form-panel {
  background: #ffffff;
  padding: 44px;
}

.contact-form-panel h3 {
  font-family: 'Jost', Georgia, serif;
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 20px;
}

.btn-primary {
  background: var(--primary-navy);
  color: #ffffff;
  border: none;
}

.btn-primary:hover {
  background: var(--accent-gold);
}

/* ================= FOOTER ================= */
.main-footer {
  background: var(--navy-dark);
  color: #94a3b8;
  padding-top: 70px;
}

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

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-logo-img {
  height: 42px;
  width: auto;
  border-radius: 4px;
}

.footer-brand-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.3rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.footer-bio {
  font-size: 0.875rem;
  line-height: 1.6;
  margin-bottom: 20px;
}

.footer-socials {
  display: flex;
  gap: 10px;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.social-btn i, .social-btn svg {
  width: 18px;
  height: 18px;
}

.social-btn:hover {
  background: var(--accent-gold);
  border-color: var(--accent-gold);
  color: #2f414a;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(197, 155, 39, 0.35);
}

.footer-heading {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.875rem;
  color: #94a3b8;
}

.footer-links a:hover {
  color: var(--accent-gold);
  padding-left: 4px;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  margin-bottom: 10px;
}

.footer-contact-item i {
  width: 16px;
  height: 16px;
  color: var(--accent-gold);
}

.btn-whatsapp-footer {
  background: #25d366;
  color: #ffffff;
  width: 100%;
  margin-top: 14px;
  padding: 10px;
}

.btn-whatsapp-footer:hover {
  background: #1eb956;
}

.footer-bottom {
  padding: 24px 0;
  font-size: 0.8125rem;
}

.footer-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-text {
  color: #64748b;
}

/* ================= FLOATING WHATSAPP ================= */
.floating-whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 24px rgba(37, 211, 102, 0.45);
  z-index: 9999;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.floating-whatsapp-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.6);
}

.floating-wa-icon {
  width: 32px;
  height: 32px;
}

.floating-wa-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  background: #ef4444;
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  border: 2px solid #ffffff;
}

/* ================= MODAL DETALLE DE PROPIEDAD ================= */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(47, 65, 74, 0.8);
  backdrop-filter: blur(6px);
  z-index: 100000;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 20px;
  overflow-y: auto;
}

.property-modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 1100px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: var(--shadow-xl);
  animation: modalFadeIn 0.25s ease-out;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close-btn {
  position: sticky;
  top: 14px;
  float: right;
  margin-right: 14px;
  margin-top: 14px;
  background: #ffffff;
  border: 1px solid var(--border-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
}

.modal-body {
  padding: 30px;
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 32px;
}

/* Galería de Fotos Modal */
.modal-gallery-wrapper {
  margin-bottom: 24px;
}

.gallery-main-img-box {
  position: relative;
  height: 420px;
  background: #22313a;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 12px;
}

.gallery-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumbs-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.gallery-thumb-item {
  width: 80px;
  height: 60px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.gallery-thumb-item.active, .gallery-thumb-item:hover {
  opacity: 1;
  border-color: var(--accent-gold);
}

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

/* Ficha de Detalles */
.modal-prop-header {
  margin-bottom: 20px;
}

.modal-prop-code {
  font-size: 0.8125rem;
  color: var(--accent-gold);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.modal-prop-title {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 2.1rem;
  font-weight: 800;
  color: #677c5d;
  text-transform: uppercase;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin: 6px 0 10px;
}

.modal-prop-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.modal-prop-price-box {
  background: var(--bg-card-subtle, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: var(--radius-md, 14px);
  padding: 18px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-price-val {
  font-family: 'Outfit', system-ui, -apple-system, sans-serif;
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-navy, #2f414a);
  letter-spacing: -0.5px;
  line-height: 1.15;
  white-space: nowrap;
}

.modal-price-ars {
  font-size: 0.92rem;
  color: #0e8a70;
  font-weight: 600;
}

.modal-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 24px;
}

.modal-spec-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.modal-spec-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.modal-spec-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: #22313a;
}

.modal-section-h4 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary-navy);
  margin-bottom: 12px;
}

.modal-prop-desc {
  font-size: 0.95rem;
  color: #334155;
  line-height: 1.7;
  white-space: pre-line;
  margin-bottom: 28px;
}

/* Barra Lateral de Contacto Modal */
.modal-contact-sidebar {
  background: #f8fafc;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
  position: sticky;
  top: 0;
}

.modal-agent-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 20px;
}

.modal-agent-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-gold);
}

.modal-agent-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--primary-navy);
}

.modal-agent-role {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.btn-wa-modal {
  background: #25d366;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px;
  border-radius: var(--radius-md);
  width: 100%;
  margin-bottom: 16px;
}

.btn-wa-modal:hover {
  background: #1eb956;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
}

/* ================= WHATSAPP AI CHAT WIDGET ================= */
.whatsapp-widget-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
}

.whatsapp-chat-box {
  width: 375px;
  max-width: calc(100vw - 32px);
  height: 540px;
  max-height: calc(100vh - 120px);
  background: #efeae2;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(0, 0, 0, 0.1);
  animation: waPopup 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes waPopup {
  from { opacity: 0; transform: scale(0.92) translateY(20px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.wa-chat-header {
  background: #075e54;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar-box {
  position: relative;
  width: 42px;
  height: 42px;
}

.wa-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #25d366;
}

.wa-online-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: #25d366;
  border-radius: 50%;
  border: 2px solid #075e54;
}

.wa-bot-name {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.wa-bot-status {
  font-size: 0.75rem;
  color: #cbe7d6;
  display: flex;
  align-items: center;
  gap: 4px;
}

.wa-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wa-action-icon-btn {
  background: rgba(255, 255, 255, 0.15);
  border: none;
  color: #ffffff;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wa-action-icon-btn:hover {
  background: rgba(255, 255, 255, 0.3);
}

.wa-action-icon-btn i {
  width: 16px;
  height: 16px;
}

.wa-chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(#d1d7db 1px, transparent 1px);
  background-size: 20px 20px;
}

.wa-date-divider {
  text-align: center;
  margin: 4px 0 8px;
}

.wa-date-divider span {
  background: rgba(255, 255, 255, 0.85);
  color: #54656f;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.wa-chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wa-msg-row {
  display: flex;
  width: 100%;
}

.wa-msg-row.bot {
  justify-content: flex-start;
}

.wa-msg-row.user {
  justify-content: flex-end;
}

.wa-msg-bubble {
  max-width: 84%;
  padding: 10px 14px 6px;
  border-radius: 12px;
  font-size: 0.875rem;
  line-height: 1.45;
  position: relative;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  word-break: break-word;
}

.wa-msg-row.bot .wa-msg-bubble {
  background: #ffffff;
  color: #111b21;
  border-top-left-radius: 2px;
}

.wa-msg-row.user .wa-msg-bubble {
  background: #d9fdd3;
  color: #111b21;
  border-top-right-radius: 2px;
}

.wa-msg-time {
  display: block;
  text-align: right;
  font-size: 0.6875rem;
  color: #667781;
  margin-top: 4px;
}

.wa-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.wa-chip {
  background: #ffffff;
  border: 1px solid #128c7e;
  color: #075e54;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.wa-chip:hover {
  background: #128c7e;
  color: #ffffff;
}

.wa-chat-footer {
  background: #f0f2f5;
  padding: 10px 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  border-top: 1px solid #e9edef;
}

.wa-chat-footer input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #e9edef;
  border-radius: var(--radius-full);
  padding: 10px 16px;
  font-size: 0.875rem;
  outline: none;
}

.wa-chat-footer input:focus {
  border-color: #128c7e;
}

.wa-mic-btn {
  background: #ffffff;
  color: #54656f;
  border: 1px solid #e9edef;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wa-mic-btn:hover {
  background: #f0f2f5;
  color: #00a884;
  border-color: #00a884;
}

.wa-mic-btn.recording {
  background: #ef4444 !important;
  color: #ffffff !important;
  border-color: #ef4444 !important;
  animation: waMicPulse 1.2s infinite ease-in-out;
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
}

@keyframes waMicPulse {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.wa-send-btn {
  background: #00a884;
  color: #ffffff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.wa-send-btn:hover {
  background: #075e54;
}

.wa-send-btn i, .wa-mic-btn i {
  width: 18px;
  height: 18px;
}

.wa-typing-dots {
  display: inline-flex;
  gap: 4px;
  padding: 4px 8px;
}

.wa-typing-dots span {
  width: 6px;
  height: 6px;
  background: #8696a0;
  border-radius: 50%;
  animation: waDot 1.4s infinite ease-in-out both;
}

.wa-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.wa-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes waDot {
  0%, 80%, 100% { transform: scale(0); }
  40% { transform: scale(1); }
}

/* ================= RESPONSIVE ================= */
@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.8rem;
  }
  .search-grid {
    grid-template-columns: 1fr 1fr;
  }
  .search-submit-col {
    grid-column: 1 / -1;
  }
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .developments-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .valuation-grid, .about-grid, .contact-card, .modal-detail-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .top-bar-left {
    display: none;
  }
  .main-nav, .header-actions .btn {
    display: none;
  }
  .mobile-menu-toggle {
    display: block;
  }
  .mobile-menu-drawer.open {
    display: block;
  }
  .hero-title {
    font-size: 2.2rem;
  }
  .hero-section {
    padding: 50px 0 70px;
  }
  .search-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .properties-grid, .developments-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .modal-specs-grid {
    grid-template-columns: 1fr 1fr;
  }
  .gallery-main-img-box {
    height: 260px;
  }
  .whatsapp-chat-box {
    width: 100vw;
    height: 80vh;
    border-radius: 16px 16px 0 0;
    position: fixed;
    bottom: 0;
    right: 0;
    max-width: 100vw;
  }
  .whatsapp-widget-container {
    bottom: 16px;
    right: 16px;
  }
}

/* ================= VISTA DE PÁGINA COMPLETA DE PROPIEDAD (CENTRADA & LUXURY) ================= */
.property-page-layout {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 20px 80px 20px;
  width: 100%;
  box-sizing: border-box;
}

.prop-detail-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
  align-items: start;
  width: 100%;
  box-sizing: border-box;
}

.prop-content-card {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.04);
  padding: 36px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.prop-sidebar-card {
  position: sticky;
  top: 100px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.prop-gallery-main {
  height: 480px;
  border-radius: 14px;
  overflow: hidden;
  background: #22313a;
  margin-bottom: 14px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

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

@media (max-width: 1024px) {
  .prop-detail-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .prop-sidebar-card {
    position: static;
  }
  .prop-gallery-main {
    height: 380px;
  }
}

@media (max-width: 640px) {
  .property-page-layout {
    padding: 20px 14px 60px 14px;
  }
  .prop-content-card {
    padding: 20px 16px;
    border-radius: 14px;
  }
  .prop-gallery-main {
    height: 260px;
  }
}

/* ==========================================================================
   LIGHTBOX / POPUP DE FOTOGRAFÍAS EN ALTA RESOLUCIÓN
   ========================================================================== */
.prop-gallery-main {
  cursor: pointer;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.prop-gallery-main:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.18);
}
.prop-gallery-main:hover .gallery-zoom-badge {
  transform: scale(1.05);
  background: rgba(103, 124, 93, 0.92) !important;
}

.photo-lightbox-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(29, 42, 48, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  user-select: none;
}
.photo-lightbox-backdrop.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-top-bar {
  width: 100%;
  max-width: 1200px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #f8fafc;
  z-index: 10;
}
.lightbox-counter {
  font-size: 14px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.12);
  padding: 6px 16px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.lightbox-close-btn {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 20px;
  transition: all 0.2s ease;
}
.lightbox-close-btn:hover {
  background: #ef4444;
  border-color: #ef4444;
  transform: rotate(90deg) scale(1.1);
}

.lightbox-main-stage {
  position: relative;
  flex: 1;
  width: 100%;
  max-width: 1200px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 10px 0;
}

.lightbox-img-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  max-height: 100%;
}
.lightbox-img-wrapper img {
  max-width: 92vw;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65);
  transition: transform 0.2s ease;
}

.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  backdrop-filter: blur(8px);
  z-index: 10;
}
.lightbox-nav-btn:hover {
  background: #677c5d;
  border-color: #677c5d;
  transform: translateY(-50%) scale(1.12);
}
.lightbox-nav-prev {
  left: 12px;
}
.lightbox-nav-next {
  right: 12px;
}

.lightbox-thumbs-container {
  width: 100%;
  max-width: 900px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 4px 4px;
  scrollbar-width: thin;
  justify-content: center;
}
.lightbox-thumb {
  width: 60px;
  height: 44px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.5;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.lightbox-thumb.active {
  opacity: 1;
  border-color: #677c5d;
  transform: scale(1.08);
}
.lightbox-thumb:hover {
  opacity: 0.9;
}
.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Portada: con fotos claras de fondo, el texto necesita sombra para leerse */
.hero-title, .hero-subtitle {
  text-shadow: 0 2px 14px rgba(10, 20, 55, 0.55);
}
