/* ============================================
   GALLERY PROPERTIES — Unified CSS
   Design System: Verde Premium
   Basado en: Plantilla Naty (Inmovilla)
   Autor: margarit.co
   ============================================ */

/* ═══════════════════════════════════════════
   1. ROOT VARIABLES (GP Design System)
   ═══════════════════════════════════════════ */
:root {
  --gold: #c9a96e;
  --gold-light: #e2d5b7;
  --gold-dark: #a68b4b;
  --gold-accent: #d4b87a;
  --brown: #2d4a3e;
  --brown-dark: #1a2e26;
  --brown-light: #4a6b5d;
  --cream: #f5f8f6;
  --cream-dark: #e8f0ec;
  --white: #ffffff;
  --text: #1a2e26;
  --text-light: #6b8578;
  --text-muted: #a3b5ac;
  --bg: #faf9f7;
  --border: #e8e3dc;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-sm: 0 1px 3px rgba(45,74,62,0.06);
  --shadow-md: 0 4px 20px rgba(45,74,62,0.08);
  --shadow-lg: 0 8px 40px rgba(45,74,62,0.12);
  --shadow-xl: 0 16px 60px rgba(45,74,62,0.16);
  --radius: 12px;
  --radius-sm: 10px;
  --font-serif: 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  --font-sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  /* Aliases for mockup compatibility */
  --serif: var(--font-serif);
  --sans: var(--font-sans);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  /* Panel-specific palette extensions */
  --green: #2d4a3e;
  --green-light: #3d6354;
  --green-lighter: #4a7566;
  --green-soft: #e6f0eb;
  --green-accent: #059669;
  --red: #dc2626;
  --orange: #d97706;
}

/* ═══════════════════════════════════════════
   2. RESET & BASE
   ═══════════════════════════════════════════ */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

/* ═══════════════════════════════════════════
   3. HEADER (modulo-cabecera)
   ═══════════════════════════════════════════ */
.modulo-cabecera {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.04);
  height: 80px;
}
.cabecera-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  height: 100%;
}
.cabecera-logo {
  display: flex; align-items: center; gap: 14px;
  text-decoration: none;
}
.cabecera-logo-mark {
  width: 48px; height: 48px;
  background: linear-gradient(135deg, #2d4a3e, #1a2e26);
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-accent); font-family: var(--serif);
  font-size: 22px; font-weight: 600;
}
.cabecera-logo-img {
  width: 48px; height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.cabecera-logo-text {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--brown); letter-spacing: 0.5px;
}
.cabecera-logo-text small {
  display: block; font-family: var(--sans); font-size: 9px;
  letter-spacing: 2.5px; text-transform: uppercase; color: var(--text-light);
  font-weight: 500; margin-top: 1px;
}

/* Navigation */
.cabecera-nav { display: flex; gap: 4px; align-items: center; }
.cabecera-nav a {
  font-size: 12px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brown-light);
  text-decoration: none; padding: 8px 14px; border-radius: 6px;
  transition: var(--transition);
}
.cabecera-nav a:hover { color: var(--brown); background: var(--cream); }
.cabecera-nav a.active { color: var(--gold-dark); border-bottom: 2px solid var(--gold-accent); border-radius: 0; }

/* Actions row */
.cabecera-actions { display: flex; align-items: center; gap: 16px; }
.cabecera-right { display: flex; align-items: center; gap: 12px; }

/* Phone */
.cabecera-phone {
  display: flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; color: var(--brown);
  letter-spacing: 0.5px; text-decoration: none;
}
.cabecera-phone-icon {
  width: 32px; height: 32px; background: var(--cream);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 14px;
}

/* Favorites badge */
.cabecera-fav {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; background: var(--cream); border-radius: 50%;
  font-size: 14px; color: var(--text-light);
  transition: var(--transition); border: none;
}
.cabecera-fav:hover { color: var(--gold-dark); }
.cabecera-fav .fav-badge {
  position: absolute; top: -2px; right: -4px;
  background: var(--gold-dark); color: white;
  width: 16px; height: 16px; border-radius: 50%;
  font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
/* Alternate favs class from ficha */
.cabecera-favs {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  color: var(--brown-light); font-size: 16px; cursor: pointer;
  transition: var(--transition); border: none; position: relative;
}
.cabecera-favs:hover { color: var(--gold-dark); }
.cabecera-favs .badge {
  position: absolute; top: -2px; right: -2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); color: white; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}

/* Profile avatar */
.cabecera-profile {
  display: flex; align-items: center; gap: 6px;
  background: var(--brown); color: white;
  padding: 6px 14px 6px 8px;
  border-radius: 20px; font-size: 12px;
  font-weight: 500; letter-spacing: 0.3px;
  text-decoration: none;
  transition: background 0.2s;
}
.cabecera-profile:hover { background: #1a2e26; }
.cabecera-profile-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--gold); color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700;
}

/* Language selector */
.cabecera-lang {
  display: flex; gap: 6px; margin-left: 4px; padding-left: 12px;
  border-left: 1px solid var(--cream-dark);
}
.cabecera-lang a {
  font-size: 11px; font-weight: 500; color: var(--text-muted);
  text-decoration: none; padding: 4px; transition: var(--transition);
}
.cabecera-lang a.active { color: var(--gold-dark); font-weight: 600; }

/* Hamburger button (mobile) */
.hamburger-btn {
  display: none;
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; padding: 4px;
}
.hamburger-btn span {
  display: block; width: 22px; height: 2px;
  background: var(--brown); border-radius: 2px;
  transition: var(--transition);
}
.hamburger-btn.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger-btn.active span:nth-child(2) { opacity: 0; }
.hamburger-btn.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* Mobile nav overlay */
.mobile-nav-overlay {
  display: none;
  position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(20px);
  z-index: 999;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding-top: 40px;
  gap: 8px;
}
.mobile-nav-overlay.open { display: flex; }
.mobile-nav-overlay a {
  font-size: 16px; font-weight: 500; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--brown-light);
  text-decoration: none; padding: 14px 24px;
  transition: var(--transition);
}
.mobile-nav-overlay a:hover, .mobile-nav-overlay a.active {
  color: var(--gold-dark);
}
.mobile-nav-overlay .mobile-lang {
  display: flex; gap: 16px; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid var(--cream-dark);
}
.mobile-nav-overlay .mobile-lang a {
  font-size: 13px; padding: 8px 12px;
}

/* ═══════════════════════════════════════════
   4. HERO (modulo-hero) & SLIDER
   ═══════════════════════════════════════════ */

/* Full-height slider (homepage) */
.modulo-slider {
  position: relative; height: 88vh; min-height: 620px;
  overflow: hidden;
}
.slider-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat;
  transition: transform 8s ease;
}
.modulo-slider:hover .slider-bg { transform: scale(1.04); }
.slider-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,38,0.2) 0%, rgba(26,46,38,0.3) 40%, rgba(26,46,38,0.55) 100%);
}
.slider-content {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0 20px;
}
.slider-claim {
  text-align: center; color: white; margin-bottom: 50px;
}
.slider-claim h1 {
  font-family: var(--serif); font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.5px;
}
.slider-claim h1 em {
  font-style: italic; font-weight: 400; color: var(--gold-light);
}
.slider-claim p {
  font-size: 15px; color: rgba(255,255,255,0.7); margin-top: 14px;
  font-weight: 300; letter-spacing: 0.3px;
}
.slider-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.slider-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.6);
  cursor: pointer; transition: var(--transition);
}
.slider-dots span.active { background: white; border-color: white; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(0,0,0,0.25); backdrop-filter: blur(8px);
  color: white; border: 1px solid rgba(255,255,255,0.15);
  font-size: 20px; cursor: pointer; transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: rgba(0,0,0,0.5); }
.slider-arrow.left { left: 30px; }
.slider-arrow.right { right: 30px; }

/* Page hero banner (sub-pages) */
.modulo-hero {
  position: relative; height: 340px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=80') center/cover no-repeat;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,38,0.4) 0%, rgba(26,46,38,0.65) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
}
.hero-content h1 {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 52px);
  font-weight: 300; line-height: 1.2; letter-spacing: -0.5px;
}
.hero-content h1 em {
  font-style: italic; font-weight: 400; color: var(--gold-light);
}
.hero-content p {
  font-size: 15px; color: rgba(255,255,255,0.7); margin-top: 10px;
  font-weight: 300; letter-spacing: 0.3px;
}

/* ═══════════════════════════════════════════
   5. SEARCH BAR (slider-buscador)
   ═══════════════════════════════════════════ */

/* In-slider search */
.slider-buscador {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(16px);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  display: flex; gap: 10px; align-items: end;
  flex-wrap: wrap;
  width: 100%; max-width: 1100px;
}

/* Standalone search bar (listing pages) */
.modulo-buscador-standalone {
  background: var(--white);
  padding: 30px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.buscador-standalone-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.buscador-standalone-inner .slider-buscador {
  background: var(--cream);
  box-shadow: none;
  border: 1px solid var(--cream-dark);
}

/* Search field & buttons */
.buscador-field { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 5px; }
.buscador-field label {
  font-size: 9px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-light);
}
.buscador-field select, .buscador-field input {
  font-family: var(--sans); font-size: 13px; padding: 10px 12px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  appearance: none; cursor: pointer; transition: var(--transition);
  width: 100%;
}
.buscador-field select:hover, .buscador-field input:hover { border-color: var(--gold); }
.buscador-btns { display: flex; gap: 8px; flex-shrink: 0; }
.buscador-btn {
  padding: 11px 20px; border: none; border-radius: 8px;
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; cursor: pointer;
  transition: var(--transition); white-space: nowrap;
}
.buscador-btn.primary { background: var(--brown); color: var(--gold-light); }
.buscador-btn.primary:hover { background: var(--text); }
.buscador-btn.secondary { background: transparent; color: var(--brown-light); border: 1px solid #e8e4df; }
.buscador-btn.secondary:hover { border-color: var(--gold); color: var(--gold-dark); }

/* ═══════════════════════════════════════════
   6. PROPERTIES GRID
   ═══════════════════════════════════════════ */
.modulo-propiedades { padding: 50px 0 80px; background: var(--cream); }
.propiedades-container {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.propiedades-header {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 28px; flex-wrap: wrap; gap: 16px;
}
.propiedades-title {
  font-family: var(--serif); font-size: 32px; font-weight: 400;
  color: var(--brown);
}
.propiedades-title em { font-style: italic; }
.propiedades-count {
  font-size: 13px; color: var(--text-light);
}
.propiedades-count strong { color: var(--text); font-weight: 600; }
.propiedades-filters {
  display: flex; gap: 8px; align-items: center;
}

/* Mobile filter toggle (hidden on desktop) */
.mobile-filter-toggle {
  display: none; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: var(--cream); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--brown);
  letter-spacing: 0.5px; cursor: pointer;
  font-family: var(--font-sans);
  transition: background 0.2s;
}
.mobile-filter-toggle:active { background: var(--cream-dark); }
.mobile-filter-toggle svg { flex-shrink: 0; }
.propiedades-filters select {
  font-family: var(--sans); font-size: 12px; padding: 8px 14px;
  border: 1px solid #e8e4df; border-radius: 6px;
  background: white; color: var(--text); cursor: pointer;
  transition: var(--transition); appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%236b8578'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
}
.propiedades-tab {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 20px;
  border: 1px solid #e8e4df; background: white;
  font-size: 12px; font-weight: 500; color: var(--text-light);
  cursor: pointer; transition: var(--transition);
}
.propiedades-tab:hover { border-color: var(--gold); color: var(--gold-dark); }
.propiedades-tab .icon { font-size: 14px; }
.btn-publicar {
  padding: 8px 20px; border-radius: 20px;
  border: 1.5px solid var(--brown); background: transparent;
  font-size: 12px; font-weight: 600; color: var(--brown);
  cursor: pointer; transition: var(--transition);
  letter-spacing: 0.5px;
}
.btn-publicar:hover { background: var(--brown); color: var(--gold-light); }

/* Grid layout */
.propiedades-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* Property card */
.prop-card {
  background: white; border-radius: 12px; overflow: hidden;
  box-shadow: 0 2px 16px rgba(0,0,0,0.05);
  transition: var(--transition); cursor: pointer;
}
.prop-card:hover { transform: translateY(-5px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.prop-img { position: relative; aspect-ratio: 3/2; overflow: hidden; }
.prop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.prop-card:hover .prop-img img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--brown); color: var(--gold-light);
  padding: 4px 12px; border-radius: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase;
  z-index: 2;
}
.prop-badge.rebaja { background: #c0392b; color: white; }
.prop-ref {
  position: absolute; top: 14px; right: 14px;
  background: rgba(0,0,0,0.45); color: rgba(255,255,255,0.85);
  padding: 3px 8px; border-radius: 4px; font-size: 10px; font-weight: 500;
  backdrop-filter: blur(4px); z-index: 2;
}

/* Favorite heart button */
.prop-fav {
  position: absolute; top: 52px; right: 14px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.9); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition); z-index: 2;
  border: none; font-size: 15px; color: var(--text-muted);
}
.prop-fav:hover { color: #c0392b; background: white; }
.prop-fav.active { color: #c0392b; background: white; }

/* Agent hover line */
.prop-agent-overlay { display: none; }
.prop-agent-line {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0 20px;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}
.prop-card:hover .prop-agent-line {
  max-height: 50px;
  opacity: 1;
  padding: 10px 20px 14px;
  border-top: 1px solid rgba(45,74,62,0.12);
}
.prop-agent-line .initials { display: none; }
.prop-agent-line .photo {
  width: 30px; height: 30px; border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1.5px solid var(--gold);
}
.prop-agent-line .name {
  font-size: 13.5px; color: var(--brown);
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  letter-spacing: 0.3px;
}
.prop-agent-line .role {
  font-size: 9.5px; color: var(--gold);
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* Card body */
.prop-body { padding: 18px 20px; }
.prop-title {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: var(--brown); margin-bottom: 4px; line-height: 1.3;
}
.prop-location { font-size: 12px; color: var(--text-light); margin-bottom: 14px; }
.prop-price-row {
  display: flex; align-items: baseline; gap: 10px; margin-bottom: 16px;
  padding-bottom: 14px; border-bottom: 1px solid var(--cream-dark);
}
.prop-price {
  font-family: var(--serif); font-size: 22px; font-weight: 600; color: var(--brown);
}
.prop-price-old {
  font-size: 13px; color: var(--text-muted); text-decoration: line-through;
}
.prop-discount {
  font-size: 11px; font-weight: 600; color: #c0392b;
  background: #fef2f2; padding: 2px 8px; border-radius: 4px;
}
.prop-meta {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
}
.prop-meta-item {
  display: flex; align-items: center; gap: 5px;
  font-size: 12px; color: var(--text-light);
}
.prop-meta-item .icon { font-size: 14px; color: var(--gold); display: inline-flex; align-items: center; }
.prop-meta-item .icon svg { color: var(--gold); }
.prop-meta-item strong { color: var(--text); font-weight: 600; }
.prop-cta {
  display: block; text-align: center; margin-top: 14px;
  padding: 10px; background: var(--cream); border-radius: 6px;
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--brown); text-decoration: none;
  transition: var(--transition);
}
.prop-cta:hover { background: var(--brown); color: var(--gold-light); }

/* Pagination — soporta tanto <a> como <button class="pag-btn"> que genera app.js */
.propiedades-pag {
  display: flex; justify-content: center; align-items: center;
  gap: 6px; margin-top: 48px; flex-wrap: wrap;
}
.propiedades-pag a,
.propiedades-pag .pag-btn {
  min-width: 42px; height: 42px;
  padding: 0 14px;
  border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid #e8e0d4;
  background: #fff;
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 14px; font-weight: 500;
  color: var(--text-light, #6b8578);
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 1px 3px rgba(45,74,62,0.04);
}
.propiedades-pag a:hover,
.propiedades-pag .pag-btn:hover {
  border-color: var(--gold, #c9a96e);
  color: var(--gold-dark, #a68b4b);
  background: #fdfbf6;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(201,169,110,0.15);
}
.propiedades-pag a.active,
.propiedades-pag .pag-btn.active {
  background: linear-gradient(135deg, var(--brown, #2d4a3e), #3d6354);
  color: var(--gold-light, #e2d5b7);
  border-color: var(--brown, #2d4a3e);
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(45,74,62,0.25);
}
.propiedades-pag a.active:hover,
.propiedades-pag .pag-btn.active:hover {
  transform: none;
  color: var(--gold-light, #e2d5b7);
}
.propiedades-pag .pag-btn:disabled {
  opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none;
}

/* ═══════════════════════════════════════════
   7. SPLIT VIEW (listado + mapa)
   ═══════════════════════════════════════════ */
.split-view {
  display: flex; gap: 28px;
}
.split-list {
  /* Scroll normal de p\u00e1gina, no interno — evita el "scroll loco" al hover.
     El mapa al lado mantiene `sticky` para seguir en pantalla mientras se explora. */
  flex: 0 0 60%;
}
.split-map {
  flex: 1; position: sticky; top: 108px;
  height: calc(100vh - 108px); border-radius: 12px; overflow: hidden;
}

/* Mobile FAB "Ver mapa" (hidden on desktop) */
.fab-map {
  display: none;
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  z-index: 90;
  background: var(--brown); color: var(--white);
  border: none; border-radius: 28px;
  padding: 12px 24px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.8px;
  align-items: center; gap: 8px;
  box-shadow: 0 6px 24px rgba(0,0,0,0.25);
  cursor: pointer; transition: all 0.3s;
  font-family: var(--font-sans);
}
.fab-map:active { transform: translateX(-50%) scale(0.96); }
.fab-map svg { flex-shrink: 0; }

/* Mobile Map Overlay (hidden on desktop) */
.map-overlay {
  display: none;
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1000;
  background: var(--white);
  transform: translateY(100%);
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1);
}
.map-overlay.open { transform: translateY(0); }
.map-overlay-header {
  background: var(--white);
  padding: 16px 16px 12px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.map-overlay-header::before {
  content: ''; position: absolute; top: 6px; left: 50%; transform: translateX(-50%);
  width: 36px; height: 4px; background: #d0d0d0; border-radius: 4px;
}
.map-overlay-title {
  font-family: var(--font-serif); font-size: 18px; font-weight: 600; color: var(--brown);
}
.map-overlay-close {
  background: var(--cream); border: none; border-radius: 50%;
  width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 20px; color: var(--text-light);
  transition: background 0.2s;
}
.map-overlay-close:active { background: var(--cream-dark); }
.map-overlay-body {
  width: 100%; height: calc(100vh - 56px); height: calc(100dvh - 56px);
}

/* Map container & placeholder */
.map-container {
  width: 100%; height: 100%;
  background: #e8ede9;
  position: relative;
  overflow: hidden;
}
.map-label {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  text-align: center; z-index: 2;
}
.map-label span {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-muted); letter-spacing: 1px; text-transform: uppercase;
}
.map-label small {
  display: block; font-size: 11px; color: var(--text-muted); margin-top: 4px;
  font-weight: 400; opacity: 0.7;
}

/* Map decorative elements */
.map-road { position: absolute; background: #d5ddd8; }
.map-road.h1 { top: 25%; left: 0; right: 0; height: 3px; }
.map-road.h2 { top: 55%; left: 10%; right: 0; height: 2px; }
.map-road.h3 { top: 78%; left: 0; right: 20%; height: 2px; }
.map-road.v1 { left: 30%; top: 0; bottom: 0; width: 3px; }
.map-road.v2 { left: 60%; top: 10%; bottom: 10%; width: 2px; }
.map-road.v3 { left: 82%; top: 0; bottom: 0; width: 2px; }
.map-road.d1 { top: 35%; left: 5%; width: 200px; height: 2px; transform: rotate(-25deg); }
.map-water {
  position: absolute; bottom: 0; left: 0; right: 0; height: 15%;
  background: linear-gradient(180deg, #c8dbd2, #b5cec2);
  opacity: 0.5;
}
.map-block {
  position: absolute; background: #d0dbd4; border-radius: 3px;
}

/* Map pins */
.map-pin {
  position: absolute; z-index: 3;
  width: 24px; height: 24px;
  transform: translate(-50%, -100%);
}
.map-pin::before {
  content: '';
  display: block; width: 24px; height: 24px;
  background: var(--brown);
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
}
.map-pin::after {
  content: '';
  position: absolute; top: 6px; left: 6px;
  width: 12px; height: 12px;
  background: var(--gold-accent);
  border-radius: 50%;
}
.map-pin.active::before { background: var(--gold-dark); }
.map-pin.active::after { background: white; }

/* Map section (modulo-mapa) */
.modulo-mapa {
  position: relative; height: 320px;
  background: linear-gradient(135deg,#e8f0ec,#d5e0d8);
  overflow: hidden;
}
.mapa-placeholder {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(30%) contrast(0.9);
}
.mapa-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(26,46,38,0.15);
}
.mapa-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 16px 36px; background: white; border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-size: 13px; font-weight: 600; color: var(--brown);
  text-decoration: none; transition: var(--transition);
  letter-spacing: 0.5px;
}
.mapa-btn:hover { background: var(--brown); color: var(--gold-light); }
.mapa-btn .pin { font-size: 20px; }

/* ═══════════════════════════════════════════
   8. FAVORITES POPUP
   ═══════════════════════════════════════════ */
.fav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.fav-overlay.visible { opacity: 1; pointer-events: all; }
.fav-popup {
  background: white; border-radius: 16px;
  width: 380px; max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.fav-overlay.visible .fav-popup { transform: translateY(0) scale(1); }
.fav-popup-header {
  background: var(--brown); padding: 24px 28px;
  text-align: center; position: relative;
}
.fav-popup-heart {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.fav-popup-heart svg { color: var(--gold-light); }
.fav-popup-title {
  font-family: var(--serif); font-size: 22px;
  color: white; font-weight: 400;
}
.fav-popup-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.fav-popup-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.15); border: none;
  color: rgba(255,255,255,0.6); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.fav-popup-close:hover { background: rgba(255,255,255,0.25); }
.fav-popup-body { padding: 24px 28px 28px; }
.fav-field { margin-bottom: 16px; }
.fav-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--brown); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px;
}
.fav-field input {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e8e4df; border-radius: 8px;
  font-size: 15px; font-family: var(--sans);
  color: var(--text); transition: border-color 0.2s;
  box-sizing: border-box;
}
.fav-field input:focus { outline: none; border-color: var(--gold); }
.fav-field input::placeholder { color: #bbb; }
.fav-submit {
  width: 100%; padding: 14px;
  background: var(--gold); color: white;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer;
  transition: background 0.2s;
  font-family: var(--sans);
}
.fav-submit:hover { background: var(--gold-dark); }
.fav-legal {
  font-size: 11px; color: #aaa; text-align: center;
  margin-top: 14px; line-height: 1.5;
}
.fav-legal a { color: var(--gold); text-decoration: none; }

/* Property mini-card inside popup */
.fav-prop-mini {
  display: flex; gap: 12px; align-items: center;
  background: var(--cream); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 20px;
}
.fav-prop-mini img {
  width: 60px; height: 45px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.fav-prop-mini-info { flex: 1; min-width: 0; }
.fav-prop-mini-title {
  font-family: var(--serif); font-size: 13.5px;
  color: var(--brown); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fav-prop-mini-price {
  font-size: 12px; color: var(--gold-dark); font-weight: 600;
  margin-top: 1px;
}

/* ═══════════════════════════════════════════
   9. FICHA (Property Detail)
   ═══════════════════════════════════════════ */

/* Breadcrumb */
.breadcrumb {
  max-width: 1400px; margin: 0 auto; padding: 16px 40px;
  font-size: 12px; color: var(--text-muted);
}
.breadcrumb a {
  color: var(--text-light); text-decoration: none; transition: var(--transition);
}
.breadcrumb a:hover { color: var(--gold-dark); }
.breadcrumb span { margin: 0 6px; color: var(--text-muted); }

/* Image Gallery */
.gallery-section {
  max-width: 1400px; margin: 0 auto; padding: 0 40px 30px;
}
.gallery-main {
  position: relative; width: 100%; aspect-ratio: 16/9; max-height: 520px;
  border-radius: 14px; overflow: hidden; margin-bottom: 10px;
  cursor: pointer;
}
.gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-main:hover img { transform: scale(1.03); }
.gallery-badge {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
  color: white; padding: 8px 16px; border-radius: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  display: flex; align-items: center; gap: 6px;
}
.gallery-thumbs {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 8px;
}
.gallery-thumb {
  aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; cursor: pointer;
  opacity: 0.7; transition: var(--transition);
}
.gallery-thumb:hover, .gallery-thumb.active { opacity: 1; }
.gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
}

/* Main content 2-column layout */
.ficha-content {
  max-width: 1400px; margin: 0 auto; padding: 0 40px 60px;
  display: grid; grid-template-columns: 1fr 420px; gap: 40px;
  align-items: start;
}
.ficha-left {}

/* Header */
.ficha-header {
  margin-bottom: 30px;
}
.ficha-title, .ficha-titulo {
  font-family: var(--serif); font-size: 34px; font-weight: 400;
  color: var(--brown); line-height: 1.2; margin-bottom: 12px;
}
.ficha-meta {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.ficha-type-badge {
  background: var(--brown); color: var(--gold-light);
  padding: 4px 14px; border-radius: 4px;
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ficha-location {
  font-size: 13px; color: var(--text-light);
}
.ficha-ref {
  font-size: 11px; color: var(--text-muted); margin-left: auto;
}
.ficha-fav-btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--cream-dark); background: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: var(--transition);
  font-size: 18px; color: var(--text-muted);
}
.ficha-fav-btn:hover { border-color: var(--gold); color: #e74c3c; }

/* Price card */
.ficha-precio { font-family: var(--serif); font-size: 42px; font-weight: 500; color: var(--brown); }
.price-box {
  background: linear-gradient(135deg, var(--brown), #1a2e26);
  border-radius: 14px; padding: 32px 28px;
  text-align: center;
}
.price-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--gold-light); margin-bottom: 8px;
}
.price-amount {
  font-family: var(--serif); font-size: 42px; font-weight: 500;
  color: white; line-height: 1;
}
.price-sub {
  font-size: 12px; color: rgba(255,255,255,0.5); margin-top: 8px;
}

/* Specs grid */
.ficha-specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin-bottom: 36px;
}
.spec-card {
  background: white; border: 1px solid var(--cream-dark);
  border-radius: 12px; padding: 22px 20px;
  display: flex; align-items: center; gap: 16px;
  transition: var(--transition);
}
.spec-card:hover { border-color: var(--gold-light); box-shadow: 0 4px 16px rgba(0,0,0,0.04); }
.spec-icon {
  width: 48px; height: 48px; border-radius: 10px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--brown); flex-shrink: 0;
}
.spec-info {}
.spec-label {
  font-size: 10px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 4px;
}
.spec-value {
  font-family: var(--serif); font-size: 26px; font-weight: 500;
  color: var(--brown);
}
.spec-value small {
  font-family: var(--sans); font-size: 13px; font-weight: 400;
  color: var(--text-light);
}

/* Sections */
.ficha-section {
  margin-bottom: 36px;
}
.ficha-section-title {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--brown); margin-bottom: 18px; padding-bottom: 10px;
  border-bottom: 1px solid var(--cream-dark);
}

/* Description */
.ficha-descripcion p, .ficha-desc p {
  font-size: 14px; line-height: 1.8; color: var(--text-light);
  margin-bottom: 16px;
}

/* Feature categories (Caracteristicas with tabs) */
.ficha-caracteristicas {}
.features-categories {
  display: flex; flex-direction: column; gap: 28px;
}
.feature-category {}
.feature-category-title {
  font-family: var(--serif); font-size: 16px; font-weight: 600;
  color: var(--gold-dark); letter-spacing: 0.5px;
  margin-bottom: 14px;
  display: flex; align-items: center; gap: 10px;
}
.feature-category-title::after {
  content: ''; flex: 1; height: 1px;
  background: linear-gradient(90deg, var(--cream-dark), transparent);
}

/* Features grid (caract-grid) */
.features-grid, .caract-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px;
}
.feature-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px; border-radius: 10px;
  background: white; border: 1px solid var(--cream-dark);
  font-size: 13.5px; color: var(--text); transition: var(--transition);
}
.feature-item:hover { border-color: var(--gold-light); background: rgba(201,169,110,0.03); }
.feature-item .fi-icon {
  width: 34px; height: 34px; border-radius: 8px;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; color: var(--brown);
}
.feature-item .fi-icon svg { width: 18px; height: 18px; }
.feature-item .fi-label {
  font-family: var(--sans); font-size: 13.5px; font-weight: 400;
  color: var(--text);
}
.feature-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 8px 16px; border-radius: 8px;
  background: white; border: 1px solid var(--cream-dark);
  font-size: 13px; color: var(--text); transition: var(--transition);
}
.feature-pill .check { color: var(--brown); font-weight: 700; font-size: 14px; }

/* Agent card */
.ficha-agente {}
.agent-card {
  background: white; border-radius: 14px; padding: 28px;
  border: 1px solid var(--cream-dark);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.agent-photo {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-light); font-family: var(--serif);
  font-size: 28px; font-weight: 500; margin-bottom: 14px;
}
.agent-name {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: var(--brown); margin-bottom: 4px;
}
.agent-role {
  font-size: 11px; color: var(--text-muted); letter-spacing: 1px;
  text-transform: uppercase; font-weight: 500; margin-bottom: 14px;
}
.agent-contact {
  display: flex; flex-direction: column; gap: 6px; width: 100%;
}
.agent-contact a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px; border-radius: 8px; font-size: 13px; font-weight: 500;
  text-decoration: none; transition: var(--transition);
}
.agent-contact .agent-phone {
  background: var(--cream); color: var(--brown);
}
.agent-contact .agent-phone:hover { background: var(--brown); color: var(--gold-light); }
.agent-contact .agent-email {
  color: var(--text-light);
}
.agent-contact .agent-email:hover { color: var(--gold-dark); }

/* Contact form */
.ficha-contacto-form {}
.contact-box {
  background: white; border-radius: 14px; padding: 28px;
  border: 1px solid var(--cream-dark);
}
.contact-box h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--brown); margin-bottom: 16px;
}
.contact-form {
  display: flex; flex-direction: column; gap: 10px;
}
.contact-form input, .contact-form textarea {
  font-family: var(--sans); font-size: 13px; padding: 12px 16px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition); width: 100%;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.contact-form textarea { height: 90px; resize: vertical; }
.contact-form input::placeholder, .contact-form textarea::placeholder {
  color: var(--text-muted);
}
.btn-enviar {
  padding: 14px 32px; background: var(--brown); color: var(--gold-light);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  width: 100%;
}
.btn-enviar:hover { background: var(--text); }

/* Mortgage calculator */
.ficha-calculadora {}
.mortgage-box {
  background: white; border-radius: 14px; padding: 28px;
  border: 1px solid var(--cream-dark);
}
.mortgage-box h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--brown); margin-bottom: 16px;
}
.mortgage-form {
  display: flex; flex-direction: column; gap: 14px;
}
.mortgage-field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-light); margin-bottom: 6px;
}
.mortgage-field input[type="text"],
.mortgage-field input[type="number"] {
  font-family: var(--sans); font-size: 14px; padding: 11px 14px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition); width: 100%;
}
.mortgage-field input:focus { outline: none; border-color: var(--gold); }
.mortgage-field .range-row {
  display: flex; align-items: center; gap: 12px;
}
.mortgage-field input[type="range"] {
  flex: 1; accent-color: var(--brown); height: 4px;
  -webkit-appearance: none; appearance: none;
  background: var(--cream-dark); border-radius: 4px; outline: none;
}
.mortgage-field input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px;
  border-radius: 50%; background: var(--brown); cursor: pointer;
  border: 2px solid white; box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.mortgage-field .range-val {
  font-size: 14px; font-weight: 600; color: var(--brown);
  min-width: 44px; text-align: right;
}
.mortgage-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
}
.mortgage-result {
  margin-top: 4px; padding: 20px; border-radius: 10px;
  background: var(--cream); text-align: center;
}
.mortgage-result-label {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px;
}
.mortgage-result-amount {
  font-family: var(--serif); font-size: 36px; font-weight: 500;
  color: var(--brown);
}
.mortgage-result-amount small {
  font-family: var(--sans); font-size: 14px; font-weight: 400;
  color: var(--text-light);
}

/* Valoration banner (sidebar) */
.valoration-banner {
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  border-radius: 14px; padding: 28px; text-align: center;
}
.valoration-banner h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  color: white; margin-bottom: 8px;
}
.valoration-banner p {
  font-size: 13px; color: rgba(255,255,255,0.65); margin-bottom: 18px;
  line-height: 1.5;
}
.btn-valoracion {
  display: inline-block; padding: 12px 28px;
  background: var(--gold-dark); color: white;
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 11px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-valoracion:hover { background: var(--gold); }

/* Right column sticky */
.ficha-right {
  position: sticky; top: 100px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Map in ficha */
.ficha-mapa {}
.ficha-map-placeholder {
  width: 100%; height: 200px; border-radius: 12px;
  background: linear-gradient(135deg, #e8f0ec, #d5e0d8);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; margin-bottom: 8px;
}
.ficha-map-label {
  font-size: 13px; color: var(--text-light); margin-bottom: 20px;
}

/* Energy certificate */
.energy-cert {}
.energy-bars {
  display: flex; flex-direction: column; gap: 4px; max-width: 360px;
}
.energy-row {
  display: flex; align-items: center; gap: 8px;
}
.energy-bar {
  height: 28px; border-radius: 4px; display: flex; align-items: center;
  padding: 0 10px; font-size: 11px; font-weight: 700; color: white;
  letter-spacing: 1px; transition: var(--transition);
}
.energy-bar.a { background: #1a9641; width: 80px; }
.energy-bar.b { background: #56b949; width: 110px; }
.energy-bar.c { background: #a6d96a; width: 140px; }
.energy-bar.d { background: #fee08b; width: 170px; color: var(--text); }
.energy-bar.e { background: #fdae61; width: 200px; }
.energy-bar.f { background: #f46d43; width: 230px; }
.energy-bar.g { background: #d73027; width: 260px; }
.energy-active {
  transform: scaleY(1.15);
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  position: relative;
}
.energy-arrow {
  width: 0; height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-right: 10px solid var(--brown);
}

/* Similar properties */
.ficha-similares {}
.similares-section {
  padding: 60px 0 80px; background: var(--white);
}
.similares-container {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.similares-title {
  font-family: var(--serif); font-size: 30px; font-weight: 400;
  color: var(--brown); margin-bottom: 28px;
}
.similares-title em { font-style: italic; }
.similares-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}

/* Breadcrumb (ficha) */
.ficha-breadcrumb {}

/* ═══════════════════════════════════════════
   10. VENDER PAGE
   ═══════════════════════════════════════════ */

/* Hero */
.vender-hero {
  position: relative; height: 70vh; min-height: 500px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.vender-hero-bg {
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1613490493576-7fde63acd811?w=1920&q=80') center/cover no-repeat;
  transition: transform 8s ease;
}
.vender-hero:hover .vender-hero-bg { transform: scale(1.04); }
.vender-hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(26,46,38,0.3) 0%, rgba(26,46,38,0.5) 50%, rgba(26,46,38,0.7) 100%);
}
.vender-hero-content {
  position: relative; z-index: 2;
  text-align: center; color: white;
  max-width: 800px; padding: 0 24px;
}
.vender-hero-content h1 {
  font-family: var(--serif); font-size: clamp(36px, 5vw, 62px);
  font-weight: 300; line-height: 1.15; letter-spacing: -0.5px;
  margin-bottom: 18px;
}
.vender-hero-content h1 em {
  font-style: italic; font-weight: 400; color: var(--gold-light);
}
.vender-hero-content p {
  font-size: 16px; color: rgba(255,255,255,0.75); margin-bottom: 36px;
  font-weight: 300; letter-spacing: 0.3px; line-height: 1.6;
  max-width: 600px; margin-left: auto; margin-right: auto;
}
.btn-gold {
  display: inline-block; padding: 16px 40px;
  background: var(--gold); color: white;
  border: none; border-radius: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.btn-gold:hover { background: var(--gold-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(201,169,110,0.3); }

/* Statistics row */
.vender-stats {
  background: var(--cream);
  padding: 60px 0;
}
.stats-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px;
}
.stat-box {
  text-align: center; padding: 30px 20px;
  background: var(--white); border-radius: 12px;
  transition: var(--transition);
}
.stat-box:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.stat-number {
  font-family: var(--serif); font-size: clamp(40px, 4vw, 56px);
  font-weight: 600; color: var(--gold); line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-family: var(--sans); font-size: 10px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-light);
}

/* Valorador Residelia section */
.vender-valorador {
  padding: 80px 0;
  background: var(--white);
}
.valorador-section-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.vender-valorador .section-header { margin-bottom: 32px; }
.section-subtitle {
  font-size: 15px; color: var(--text-light); line-height: 1.7;
  max-width: 560px; margin: 12px auto 0;
  text-align: center;
}
.valorador-cta-box {
  text-align: center; margin-bottom: 16px;
}
.btn-valorador {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 44px; font-size: 14px;
}
.residelia-container {
  min-height: 500px;
  border-radius: 12px; overflow: hidden;
  background: var(--cream);
  padding: 32px;
  margin-top: 24px;
  position: relative;
}
#residelia-widget-vender { position: relative; overflow: hidden; }

/* Proceso (3-phase timeline) */
.vender-proceso {
  padding: 100px 0; background: var(--white);
}
.proceso-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.section-header {
  text-align: center; margin-bottom: 60px;
}
.section-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
  display: block;
}
.section-title {
  font-family: var(--serif); font-size: clamp(32px, 4vw, 44px);
  font-weight: 300; color: var(--brown); line-height: 1.2;
}
.section-title em { font-style: italic; font-weight: 400; }
.fases-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.fase-card {
  background: var(--cream); border-radius: 14px; padding: 40px 32px;
  text-align: center; transition: var(--transition);
  position: relative;
}
.fase-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.1); }
.fase-number {
  font-family: var(--serif); font-size: 64px; font-weight: 600;
  color: var(--gold-light); line-height: 1; margin-bottom: 12px;
  opacity: 0.7;
}
.fase-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-size: 26px; margin: 0 auto 20px;
}
.fase-card h3 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: var(--brown); margin-bottom: 14px;
}
.fase-card p {
  font-size: 13px; color: var(--text-light); line-height: 1.7;
}

/* Por que (checkmark list) */
.vender-porque {
  padding: 100px 0; background: var(--brown);
  color: white;
}
.porque-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px;
  align-items: center;
}
.porque-img {
  border-radius: 14px; overflow: hidden;
  height: 480px;
}
.porque-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.porque-img:hover img { transform: scale(1.05); }
.porque-content h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.5vw, 42px);
  font-weight: 300; margin-bottom: 36px; line-height: 1.2;
}
.porque-content h2 em { font-style: italic; font-weight: 400; color: var(--gold-light); }
.porque-list {
  list-style: none; display: flex; flex-direction: column; gap: 22px;
}
.porque-list li {
  display: flex; align-items: flex-start; gap: 16px;
  font-size: 15px; line-height: 1.6; color: rgba(255,255,255,0.8);
}
.porque-check {
  flex-shrink: 0; width: 28px; height: 28px;
  border-radius: 50%; background: rgba(201,169,110,0.15);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 14px; margin-top: 1px;
}

/* Testimonials */
.vender-testimonios {
  padding: 100px 0; background: var(--cream);
}
.testimonios-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
}
.testimonios-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px;
  margin-top: 60px;
}
.testimonio-card {
  background: var(--white); border-radius: 14px; padding: 36px 30px;
  transition: var(--transition);
}
.testimonio-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.testimonio-stars {
  display: flex; gap: 3px; margin-bottom: 18px;
}
.testimonio-stars span {
  color: var(--gold); font-size: 16px;
}
.testimonio-quote {
  font-family: var(--serif); font-size: 17px; font-style: italic;
  font-weight: 400; color: var(--brown); line-height: 1.6;
  margin-bottom: 24px;
}
.testimonio-author {
  font-size: 13px; font-weight: 600; color: var(--text);
}
.testimonio-location {
  font-size: 12px; color: var(--text-light); margin-top: 2px;
}

/* CTA / Valuation form */
.vender-cta {
  padding: 100px 0; background: var(--white);
}
.cta-inner {
  max-width: 800px; margin: 0 auto; padding: 0 40px;
  text-align: center;
}
.cta-inner h2 {
  font-family: var(--serif); font-size: clamp(36px, 4.5vw, 52px);
  font-weight: 300; color: var(--brown); margin-bottom: 14px;
}
.cta-inner h2 em { font-style: italic; font-weight: 400; }
.cta-subtitle {
  font-size: 15px; color: var(--text-light); line-height: 1.7;
  margin-bottom: 48px; max-width: 520px; margin-left: auto; margin-right: auto;
}
.vender-form, .cta-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  text-align: left; max-width: 640px; margin: 0 auto;
}
.cta-form input, .cta-form select, .cta-form textarea,
.vender-form input, .vender-form select, .vender-form textarea {
  font-family: var(--sans); font-size: 14px; padding: 14px 18px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition); width: 100%;
}
.cta-form input:focus, .cta-form select:focus, .cta-form textarea:focus,
.vender-form input:focus, .vender-form select:focus, .vender-form textarea:focus {
  outline: none; border-color: var(--gold);
}
.cta-form select, .vender-form select {
  appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b8578' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.cta-form .full, .vender-form .full { grid-column: 1 / -1; }
.cta-form textarea, .vender-form textarea { height: 120px; resize: vertical; }
.cta-form .cta-submit, .vender-form .cta-submit {
  grid-column: 1 / -1;
  padding: 16px 36px; background: var(--brown); color: var(--gold-light);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.cta-form .cta-submit:hover, .vender-form .cta-submit:hover { background: var(--text); }

/* Valoracion section (homepage) */
.modulo-valoracion {
  position: relative; overflow: hidden;
  display: flex; min-height: 380px;
}
.valoracion-img {
  flex: 0 0 45%; position: relative; overflow: hidden;
}
.valoracion-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.valoracion-img:hover img { transform: scale(1.05); }
.valoracion-content {
  flex: 1; display: flex; flex-direction: column;
  justify-content: center; padding: 60px 70px;
  background: var(--white);
}
.valoracion-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px;
}
.valoracion-content h2 {
  font-family: var(--serif); font-size: 38px; font-weight: 300;
  color: var(--brown); margin-bottom: 14px; line-height: 1.2;
}
.valoracion-content h2 em { font-style: italic; font-weight: 400; }
.valoracion-content p {
  color: var(--text-light); font-size: 14px; line-height: 1.7;
  margin-bottom: 28px; max-width: 420px;
}
.valoracion-form {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  max-width: 460px;
}
.valoracion-form input, .valoracion-form select {
  font-family: var(--sans); font-size: 13px; padding: 12px 16px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition);
}
.valoracion-form input:focus, .valoracion-form select:focus {
  outline: none; border-color: var(--gold);
}
.valoracion-form .full { grid-column: 1 / -1; }
.valoracion-submit {
  grid-column: 1 / -1;
  padding: 14px 32px; background: var(--brown); color: var(--gold-light);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
}
.valoracion-submit:hover { background: var(--text); }

/* ═══════════════════════════════════════════
   11. EMPRESA PAGE
   ═══════════════════════════════════════════ */
.empresa-section {
  padding: 80px 0;
}
.empresa-section:nth-child(even) {
  background: var(--white);
}
.empresa-container {
  max-width: 900px; margin: 0 auto; padding: 0 40px;
}
.empresa-section h2 {
  font-family: var(--serif); font-size: 36px; font-weight: 300;
  color: var(--brown); margin-bottom: 20px; line-height: 1.2;
}
.empresa-section h2 em { font-style: italic; font-weight: 400; }
.empresa-section p {
  color: var(--text-light); font-size: 15px; line-height: 1.8;
  max-width: 700px;
}
.valores-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
  margin-top: 40px;
}
.valor-card {
  background: var(--cream); border-radius: 12px; padding: 36px 28px;
  text-align: center; transition: var(--transition);
}
.valor-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,0.08); }
.valor-card .valor-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brown), var(--brown-light));
  color: var(--gold-light); display: flex; align-items: center; justify-content: center;
  font-size: 24px; margin: 0 auto 18px;
}
.valor-card h3 {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  color: var(--brown); margin-bottom: 10px;
}
.valor-card p {
  font-size: 13px; color: var(--text-light); line-height: 1.6;
}

/* ═══════════════════════════════════════════
   12. CONTACTO PAGE
   ═══════════════════════════════════════════ */
.contacto-section {
  padding: 80px 0;
}
.contacto-container {
  max-width: 1100px; margin: 0 auto; padding: 0 40px;
}
.contacto-grid {
  display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px;
}
.contacto-info h3 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  color: var(--brown); margin-bottom: 24px;
}
.contacto-info-item {
  display: flex; align-items: flex-start; gap: 14px;
  margin-bottom: 20px; font-size: 14px; color: var(--text-light);
  line-height: 1.6;
}
.contacto-info-item .icon {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.contacto-info-item strong {
  display: block; color: var(--brown); margin-bottom: 2px;
}
.contacto-form-large {
  display: flex; flex-direction: column; gap: 14px;
}
.contacto-form-large .form-row {
  display: flex; gap: 14px;
}
.contacto-form-large .form-row input { flex: 1; }
.contacto-form-large input, .contacto-form-large textarea {
  font-family: var(--sans); font-size: 14px; padding: 14px 18px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition); width: 100%;
}
.contacto-form-large input:focus, .contacto-form-large textarea:focus {
  outline: none; border-color: var(--gold);
}
.contacto-form-large textarea { height: 140px; resize: vertical; }
.contacto-form-large .contacto-submit {
  padding: 14px 36px; background: var(--brown); color: var(--gold-light);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  align-self: flex-start;
}
.contacto-form-large .contacto-submit:hover { background: var(--text); }
.contacto-mapa {
  margin-top: 60px; border-radius: 12px; overflow: hidden;
  height: 400px;
}
.contacto-mapa iframe {
  width: 100%; height: 100%; border: 0;
}

/* ═══════════════════════════════════════════
   13. FOOTER (modulo-pie)
   ═══════════════════════════════════════════ */
.modulo-pie { background: var(--brown); color: rgba(255,255,255,0.7); padding: 60px 0 0; }
.pie-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.pie-grid {
  display: grid; grid-template-columns: 1fr 1.5fr 1.5fr; gap: 50px;
  margin-bottom: 50px;
}
.pie-nav h4, .pie-datos h4, .pie-contacto h4,
.pie-grid h4 {
  font-family: var(--serif); font-size: 18px; font-weight: 500;
  color: white; margin-bottom: 20px;
}
.pie-nav ul { list-style: none; }
.pie-nav ul li { margin-bottom: 8px; }
.pie-nav ul a {
  color: rgba(255,255,255,0.55); text-decoration: none;
  font-size: 13px; transition: var(--transition);
  display: flex; align-items: center; gap: 6px;
  padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,0.06);
}
.pie-nav ul a:hover { color: var(--gold-light); }
.pie-datos {
  display: flex; flex-direction: column; gap: 12px;
}
.pie-datos .brand-text {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  color: white; margin-bottom: 4px;
}
.pie-datos p { font-size: 13px; line-height: 1.6; }
.pie-datos .social { display: flex; gap: 10px; margin-top: 12px; }
.pie-datos .social a {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.12);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.5); text-decoration: none;
  font-size: 14px; transition: var(--transition);
}
.pie-datos .social a:hover { border-color: var(--gold); color: var(--gold-light); }

/* Footer contact form */
.pie-contacto-form {
  display: flex; flex-direction: column; gap: 10px;
}
.pie-contacto-form input, .pie-contacto-form textarea {
  font-family: var(--sans); font-size: 13px; padding: 12px 16px;
  border: 1px solid rgba(255,255,255,0.1); border-radius: 8px;
  background: rgba(255,255,255,0.06); color: white;
  transition: var(--transition);
}
.pie-contacto-form input::placeholder, .pie-contacto-form textarea::placeholder {
  color: rgba(255,255,255,0.35);
}
.pie-contacto-form input:focus, .pie-contacto-form textarea:focus {
  outline: none; border-color: var(--gold-dark); background: rgba(255,255,255,0.1);
}
.pie-contacto-form textarea { height: 80px; resize: vertical; }
.pie-contacto-form .row { display: flex; gap: 10px; }
.pie-contacto-form .row input { flex: 1; }
.pie-submit {
  padding: 12px 28px; background: var(--gold-dark); color: white;
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  align-self: flex-start;
}
.pie-submit:hover { background: var(--gold); }

/* Footer contact info (ficha variant) */
.pie-contacto-info { display: flex; flex-direction: column; gap: 10px; }
.pie-contacto-info p {
  font-size: 13px; line-height: 1.6;
  display: flex; align-items: center; gap: 8px;
}

/* Footer bottom bar */
.pie-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 18px 0; display: flex; justify-content: space-between;
  align-items: center; font-size: 11px;
}
.pie-bottom a { color: rgba(255,255,255,0.4); text-decoration: none; transition: var(--transition); }
.pie-bottom a:hover { color: var(--gold-light); }
.pie-legal { display: flex; gap: 18px; }

/* Inmovilla badge */
.modulo-inmovilla {
  background: #1a2e26; padding: 14px 0;
  text-align: center; font-size: 11px;
  color: rgba(255,255,255,0.3); letter-spacing: 1px;
}

/* ═══════════════════════════════════════════
   14. PANEL PROPIETARIO
   ═══════════════════════════════════════════ */

/* Loading screen */
.portal-loading {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--green);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}
.portal-loading.hide {
  opacity: 0; visibility: hidden; pointer-events: none;
}
.portal-loading .logo-text {
  font-family: var(--serif);
  font-size: 32px; font-weight: 500;
  color: var(--white); letter-spacing: 1px;
  margin-bottom: 6px;
}
.portal-loading .logo-sub {
  font-family: var(--sans);
  font-size: 11px; font-weight: 400;
  color: var(--gold); letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 40px;
}
.loading-bar {
  width: 200px; height: 2px;
  background: rgba(255,255,255,0.1);
  border-radius: 2px; overflow: hidden;
}
.loading-bar-inner {
  width: 0%; height: 100%;
  background: linear-gradient(90deg, var(--gold), var(--gold-accent));
  border-radius: 2px;
  animation: loadProgress 1.8s ease-in-out forwards;
}
@keyframes loadProgress {
  0% { width: 0%; }
  50% { width: 70%; }
  100% { width: 100%; }
}

/* Portal header */
.portal-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(45,74,62,0.06);
  height: 72px;
}
.header-inner {
  max-width: 1340px; margin: 0 auto;
  padding: 0 32px; height: 100%;
  display: flex; align-items: center;
  justify-content: space-between;
}
.header-logo {
  display: flex; align-items: center;
  gap: 12px; text-decoration: none;
}
.header-logo-icon {
  width: 36px; height: 36px;
  background: var(--green);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.header-logo-icon svg { width: 20px; height: 20px; }
.header-logo-text {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: var(--green);
}
.header-logo-text small {
  display: block; font-family: var(--sans);
  font-size: 9px; font-weight: 400;
  color: var(--gold); letter-spacing: 2px;
  text-transform: uppercase;
}
.header-greeting {
  font-family: var(--serif);
  font-size: 18px; color: var(--text);
  font-weight: 400;
}
.header-greeting strong {
  color: var(--green); font-weight: 600;
}
.header-agent {
  display: flex; align-items: center; gap: 12px;
}
.header-agent-photo {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-accent));
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 16px; font-weight: 600;
  flex-shrink: 0;
}
.header-agent-info {
  text-align: right;
}
.header-agent-name {
  font-size: 13px; font-weight: 600;
  color: var(--text);
}
.header-agent-phone {
  font-size: 11px; color: var(--text-light);
}
.header-agent-phone a {
  color: var(--gold-dark); text-decoration: none;
}

/* Portal hero */
.portal-hero {
  background: linear-gradient(160deg, var(--green) 0%, #1e3a30 60%, #162b23 100%);
  padding: 60px 32px 80px;
  position: relative;
  overflow: hidden;
}
.portal-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 20%, rgba(201,169,110,0.08) 0%, transparent 60%);
}
.portal-hero::after {
  content: '';
  position: absolute; bottom: -2px; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to bottom, transparent, var(--cream));
}
.hero-inner {
  max-width: 1340px; margin: 0 auto;
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 60px; align-items: center;
}
.hero-text h1 {
  font-family: var(--serif);
  font-size: 48px; font-weight: 400;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero-text h1 em {
  color: var(--gold);
  font-style: italic;
}
.hero-text p {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  max-width: 480px;
}

/* Portal agent card (overrides in portal context) */
.portal-hero .agent-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 20px;
  padding: 36px 32px;
  backdrop-filter: blur(16px);
  text-align: center;
  position: relative;
}
.portal-hero .agent-card::before {
  content: 'TU ASESOR PERSONAL';
  position: absolute; top: -10px; left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--gold), var(--gold-accent));
  color: var(--green);
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 16px;
  border-radius: 20px;
}
.agent-card-photo {
  width: 90px; height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  border: 3px solid var(--gold);
  margin-bottom: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-family: var(--serif);
  font-size: 32px; font-weight: 600;
  margin-left: auto; margin-right: auto;
}
.agent-card-name {
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  color: var(--white);
  margin-bottom: 4px;
}
.agent-card-role {
  font-size: 11px; color: var(--gold);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.agent-card-contacts {
  display: flex; flex-direction: column;
  gap: 8px;
}
.agent-card-contacts a {
  display: flex; align-items: center;
  gap: 10px; justify-content: center;
  font-size: 13px; color: rgba(255,255,255,0.7);
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
  transition: var(--transition);
}
.agent-card-contacts a:hover {
  background: rgba(255,255,255,0.08);
  color: var(--white);
}
.agent-card-contacts .icon {
  font-size: 15px; width: 20px;
  text-align: center;
  opacity: 0.7;
}

/* Portal stats dashboard */
.portal-stats {
  max-width: 1340px; margin: -40px auto 0;
  padding: 0 32px;
  position: relative; z-index: 2;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
  cursor: default;
  border: 2px solid transparent;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.stat-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), var(--green-lighter));
  opacity: 0;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.stat-card:hover::before { opacity: 1; }
.stat-icon {
  width: 44px; height: 44px;
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  border-radius: 12px;
  color: var(--green);
}
.stat-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-count {
  font-family: var(--serif);
  font-size: 36px; font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 4px;
}

/* Portal content sections */
.portal-content {
  max-width: 1340px; margin: 40px auto 0;
  padding: 0 32px;
}

/* Collapsible section cards */
.section {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  transition: var(--transition);
  border-left: 4px solid var(--green);
}
.section:hover {
  box-shadow: var(--shadow-lg);
}
.portal-content .section-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 22px 28px;
  cursor: pointer;
  transition: var(--transition);
  border-bottom: 1px solid transparent;
  text-align: left;
  margin-bottom: 0;
}
.section.open .section-header {
  border-bottom-color: var(--cream-dark);
}
.portal-content .section-header:hover {
  background: var(--cream);
}
.section-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--green);
}
.section-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.portal-content .section-title {
  font-family: var(--serif);
  font-size: 20px; font-weight: 600;
  color: var(--text);
  flex: 1;
}
.section-badge {
  font-family: var(--sans);
  font-size: 11px; font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(45,74,62,0.1), rgba(45,74,62,0.05));
  color: var(--green);
  letter-spacing: 0.3px;
}
.section-chevron {
  color: var(--text-muted);
  transition: transform .3s ease;
  flex-shrink: 0;
  display: flex; align-items: center;
}
.section-chevron svg { width: 16px; height: 16px; stroke: var(--text-muted); fill: none; stroke-width: 2; }
.section.open .section-chevron svg {
  transform: rotate(180deg);
}
.section-body {
  display: none;
  padding: 24px 28px;
}
.section.open .section-body {
  display: block;
  animation: fadeInBody 0.3s ease;
}
@keyframes fadeInBody {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Owner bar */
.owner-bar {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  border-left: 4px solid var(--green);
}
.owner-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif);
  font-size: 22px; font-weight: 600;
  flex-shrink: 0;
}
.owner-info { flex: 1; }
.owner-name {
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}
.owner-meta {
  font-size: 12px;
  color: var(--text-light);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 4px;
}
.owner-tag {
  font-size: 10px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  background: linear-gradient(135deg, rgba(45,74,62,0.12), rgba(45,74,62,0.06));
  color: var(--green);
}

/* Documents */
.doc-list { list-style: none; }
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.doc-item:last-child { border-bottom: none; }
.doc-check {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 14px;
}
.doc-check.done {
  background: var(--green-soft);
  color: var(--green-accent);
}
.doc-check.done svg { width: 16px; height: 16px; stroke: var(--green-accent); fill: none; stroke-width: 2.5; }
.doc-check.pending {
  background: var(--cream-dark);
  border: 2px solid var(--text-muted);
  width: 24px; height: 24px;
  margin: 2px;
}
.doc-name {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}
.doc-status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.doc-status.signed {
  background: linear-gradient(135deg, #e6f9ef, #d1f5e0);
  color: var(--green-accent);
}
.doc-status.pending-status {
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  color: var(--orange);
}
.doc-action {
  font-size: 12px;
  color: var(--green);
  text-decoration: none;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 8px;
  background: var(--green-soft);
  transition: var(--transition);
  white-space: nowrap;
}
.doc-action:hover {
  background: var(--green);
  color: var(--white);
}

/* Portals / Publications */
.portal-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--cream-dark);
}
.portal-row:last-child { border-bottom: none; }
.portal-logo {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--cream);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  font-size: 11px; font-weight: 700;
  color: var(--text-light);
  letter-spacing: -0.3px;
}
.portal-name {
  font-weight: 600;
  font-size: 14px;
  flex: 1;
  color: var(--text);
}
.portal-status {
  font-size: 11px;
  padding: 4px 12px;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.3px;
  display: flex; align-items: center; gap: 5px;
}
.portal-status.active {
  background: linear-gradient(135deg, #e6f9ef, #d1f5e0);
  color: #059669;
}
.portal-status .status-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* Contacts highlight box */
.contacts-highlight {
  text-align: center;
  padding: 40px 20px;
  background: linear-gradient(135deg, var(--green-soft), #dceee5);
  border-radius: var(--radius-sm);
  border: 1px solid rgba(45,74,62,0.08);
}
.contacts-number {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 600;
  color: var(--green);
  line-height: 1;
  margin-bottom: 6px;
}
.contacts-label {
  font-size: 15px;
  color: var(--text-light);
  font-weight: 500;
}
.contacts-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

/* Horizontal timeline */
.timeline-h {
  overflow-x: auto;
  padding: 20px 0;
  -webkit-overflow-scrolling: touch;
}
.timeline-h::-webkit-scrollbar { height: 4px; }
.timeline-h::-webkit-scrollbar-track { background: var(--cream-dark); border-radius: 2px; }
.timeline-h::-webkit-scrollbar-thumb { background: var(--green-light); border-radius: 2px; }
.timeline-h-inner {
  display: flex;
  align-items: flex-start;
  min-width: max-content;
  position: relative;
  padding: 0 10px;
}
.timeline-h-event {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 150px;
  position: relative;
  padding: 0 10px;
}
.tl-h-date {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 12px;
  white-space: nowrap;
}
.tl-h-dot-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: center;
  margin-bottom: 12px;
}
.tl-h-line-left,
.tl-h-line-right {
  flex: 1;
  height: 2px;
  background: var(--green-light);
}
.timeline-h-event:first-child .tl-h-line-left {
  background: transparent;
}
.timeline-h-event:last-child .tl-h-line-right {
  background: transparent;
}
.tl-h-dot {
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--green-soft);
  box-shadow: 0 0 0 2px var(--green);
  flex-shrink: 0;
  z-index: 1;
}
.tl-h-label {
  font-size: 12px;
  color: var(--text-light);
  text-align: center;
  line-height: 1.5;
  max-width: 130px;
}

/* Links grid */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}
.link-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  border: 1px solid transparent;
}
.link-card:hover {
  border-color: var(--green);
  background: var(--white);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.link-card .link-icon {
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-soft);
  border-radius: 12px;
  flex-shrink: 0;
  color: var(--green);
}
.link-card .link-icon svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 1.8; }
.link-card .link-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}
.link-card .link-url {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Portal footer */
.portal-footer {
  margin-top: 80px;
  background: var(--green);
  padding: 50px 32px 30px;
}
.footer-inner {
  max-width: 1340px; margin: 0 auto;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding-bottom: 30px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 24px;
}
.footer-brand {
  font-family: var(--serif);
  font-size: 22px; font-weight: 500;
  color: var(--white);
  margin-bottom: 4px;
}
.footer-brand small {
  display: block; font-family: var(--sans);
  font-size: 10px; color: var(--gold);
  letter-spacing: 2px; text-transform: uppercase;
  margin-top: 4px;
}
.footer-contact-info {
  display: flex; gap: 40px;
}
.footer-contact-info a {
  font-size: 13px; color: rgba(255,255,255,0.6);
  text-decoration: none; transition: var(--transition);
  display: flex; align-items: center; gap: 8px;
}
.footer-contact-info a:hover { color: var(--gold); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-size: 12px; color: rgba(255,255,255,0.25);
}
.footer-links {
  display: flex; gap: 20px;
}
.footer-links a {
  font-size: 12px; color: rgba(255,255,255,0.35);
  text-decoration: none; transition: var(--transition);
}
.footer-links a:hover { color: var(--gold-light); }

/* ═══════════════════════════════════════════
   14b. HOME — NEW SECTIONS
   ═══════════════════════════════════════════ */

/* --- Propiedades Destacadas --- */
.modulo-destacadas {
  padding: 100px 0 80px;
  background: var(--white);
}
.destacadas-container {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.destacadas-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 48px;
}
.destacadas-header-text {}
.destacadas-tag {
  font-size: 10px; font-weight: 600; letter-spacing: 3px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 10px;
}
.destacadas-titulo {
  font-family: var(--serif); font-size: clamp(32px, 3.5vw, 46px);
  font-weight: 300; color: var(--brown); line-height: 1.15;
}
.destacadas-titulo em { font-style: italic; font-weight: 400; }
.destacadas-arrows {
  display: flex; gap: 10px;
}
.destacadas-arrow {
  width: 48px; height: 48px; border-radius: 50%;
  border: 1.5px solid var(--cream-dark); background: transparent;
  color: var(--brown); font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.destacadas-arrow:hover {
  border-color: var(--brown); background: var(--brown); color: var(--gold-light);
}
.destacadas-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px;
}
.dest-card {
  border-radius: 14px; overflow: hidden;
  background: var(--white);
  box-shadow: 0 4px 24px rgba(0,0,0,0.06);
  transition: var(--transition);
  cursor: pointer;
  text-decoration: none; color: inherit;
}
.dest-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.12);
}
.dest-card-img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.dest-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.6s ease;
}
.dest-card:hover .dest-card-img img {
  transform: scale(1.06);
}
.dest-card-overlay {
  position: absolute; bottom: 0; left: 0;
  background: linear-gradient(135deg, rgba(45,74,62,0.94), rgba(45,74,62,0.85));
  padding: 18px 24px;
  border-radius: 0 12px 0 0;
  min-width: 240px;
}
.dest-card-price {
  font-family: var(--serif); font-size: 26px; font-weight: 600;
  color: var(--gold-light); margin-bottom: 6px;
}
.dest-card-specs {
  display: flex; gap: 16px; font-size: 12px; color: rgba(255,255,255,0.75);
}
.dest-card-specs span {
  display: flex; align-items: center; gap: 4px;
}
.dest-card-body {
  padding: 20px 24px;
}
.dest-card-zone {
  font-size: 10px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; color: var(--gold-dark); margin-bottom: 4px;
}
.dest-card-title {
  font-family: var(--serif); font-size: 20px; font-weight: 400;
  font-style: italic; color: var(--brown); line-height: 1.3;
}

/* --- Banner Valorador --- */
.modulo-valorador {
  position: relative;
  background: var(--brown);
  padding: 80px 0;
  overflow: hidden;
}
.modulo-valorador::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.valorador-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px;
  position: relative; z-index: 1;
}
.valorador-text { flex: 1; }
.valorador-text h2 {
  font-family: var(--serif); font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 300; font-style: italic;
  color: white; line-height: 1.25; margin-bottom: 16px;
}
.valorador-text h2 span { color: var(--gold-light); }
.valorador-text p {
  font-size: 14px; color: rgba(255,255,255,0.6);
  line-height: 1.7; max-width: 500px;
}
.valorador-actions {
  display: flex; gap: 14px; flex-shrink: 0; align-items: center;
}
.valorador-btn {
  padding: 16px 36px; border-radius: 8px;
  font-family: var(--sans); font-size: 12px; font-weight: 600;
  letter-spacing: 1.5px; text-transform: uppercase;
  cursor: pointer; transition: var(--transition);
  text-decoration: none; white-space: nowrap;
}
.valorador-btn.gold {
  background: var(--gold); color: var(--text); border: none;
}
.valorador-btn.gold:hover { background: var(--gold-light); }
.valorador-btn.outline {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,0.35);
}
.valorador-btn.outline:hover {
  border-color: var(--gold-light); color: var(--gold-light);
}

/* --- Reseñas Google --- */
.modulo-resenas {
  padding: 100px 0 80px;
  background: var(--cream-dark);
}
.resenas-container {
  max-width: 1400px; margin: 0 auto; padding: 0 40px;
}
.resenas-header {
  text-align: center; margin-bottom: 56px;
}
.resenas-stars {
  font-size: 28px; color: var(--gold); margin-bottom: 14px;
  letter-spacing: 4px;
}
.resenas-titulo {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 40px);
  font-weight: 300; color: var(--brown); margin-bottom: 8px;
}
.resenas-powered {
  font-size: 11px; color: var(--text-muted); letter-spacing: 1px;
  text-transform: uppercase; font-weight: 500;
}
.resenas-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px;
}
.resena-card {
  background: var(--white); border-radius: 14px;
  padding: 36px 32px; text-align: center;
  box-shadow: 0 2px 16px rgba(0,0,0,0.04);
  transition: var(--transition);
  /* tarjeta clicable (<a>) sin estilos de enlace */
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.resena-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(0,0,0,0.08);
}
.resena-link-hint {
  opacity: 0;
  transition: opacity .2s ease;
  margin-left: 4px;
  color: var(--gold, #c9a96e);
  font-weight: 600;
}
.resena-card:hover .resena-link-hint { opacity: 1; }
.resena-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 20px;
  filter: grayscale(100%);
  transition: var(--transition);
}
.resena-card:hover .resena-avatar { filter: grayscale(0%); }
.resena-avatar-initial {
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 28px; font-weight: 500;
  background: var(--cream-dark, #e8f0ec);
  color: var(--green, #2d4a3e);
}
/* Badge "Comprador" / "Vendedor" sobre cada rese\u00f1a */
.resena-badge-row {
  text-align: center;
  margin-bottom: 14px;
  margin-top: -10px;
}
.resena-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 20px;
  font-family: 'Inter', sans-serif;
}
.resena-badge-comprador {
  background: #dbeafe;
  color: #1e40af;
}
.resena-badge-vendedor {
  background: #dcfce7;
  color: #166534;
}
.resena-stars {
  color: #fbbc04;
  font-size: 14px;
  letter-spacing: 2px;
  margin: 4px 0 12px;
  line-height: 1;
}
.resena-quote {
  font-family: var(--serif); font-size: 17px; font-style: italic;
  color: var(--brown); line-height: 1.6; margin-bottom: 20px;
  position: relative;
}
.resena-quote::before {
  content: '\201C';
  font-family: var(--serif); font-size: 48px;
  color: var(--gold-light); line-height: 1;
  display: block; margin-bottom: -8px;
}
.resena-name {
  font-size: 13px; font-weight: 600; color: var(--text);
  letter-spacing: 0.5px;
}
.resena-role {
  font-size: 11px; color: var(--text-muted); margin-top: 2px;
}

/* --- Contacto Rapido --- */
.modulo-contacto-rapido {
  padding: 80px 0;
  background: var(--white);
}
.contacto-rapido-container {
  max-width: 800px; margin: 0 auto; padding: 0 40px;
  text-align: center;
}
.contacto-rapido-titulo {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 38px);
  font-weight: 300; color: var(--brown); margin-bottom: 10px;
}
.contacto-rapido-sub {
  font-family: var(--serif); font-size: 16px; font-style: italic;
  color: var(--text-light); margin-bottom: 36px;
}
.contacto-rapido-form {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
}
.contacto-rapido-form input {
  font-family: var(--sans); font-size: 14px; padding: 14px 20px;
  border: 1px solid #e8e4df; border-radius: 8px;
  background: var(--cream); color: var(--text);
  transition: var(--transition);
  flex: 1; min-width: 180px;
}
.contacto-rapido-form input:focus {
  outline: none; border-color: var(--gold);
}
.contacto-rapido-btn {
  padding: 14px 36px; background: var(--brown); color: var(--gold-light);
  border: none; border-radius: 8px; font-family: var(--sans);
  font-size: 12px; font-weight: 600; letter-spacing: 2px;
  text-transform: uppercase; cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.contacto-rapido-btn:hover { background: var(--text); }

/* ═══════════════════════════════════════════
   15. UTILITIES
   ═══════════════════════════════════════════ */

/* Chat float */
.chat-float {
  position: fixed; bottom: 24px; left: 24px; z-index: 1000;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.chat-float-btn {
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--brown); color: var(--gold-light);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  text-decoration: none; transition: var(--transition);
}
.chat-float-btn:hover { transform: scale(1.08); background: var(--text); }
.chat-float-label {
  font-size: 9px; font-weight: 700; letter-spacing: 1px;
  text-transform: uppercase; color: var(--brown);
}

/* Loading spinner */
.loading-spinner {
  width: 40px; height: 40px;
  border: 3px solid var(--cream-dark);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast notification */
.toast {
  position: fixed; bottom: 24px; right: 24px;
  background: var(--brown); color: white;
  padding: 14px 24px; border-radius: 10px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 8px 30px rgba(0,0,0,0.2);
  z-index: 10000;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s ease;
}
.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

/* Leaflet pin marker */
.gp-pin-marker { background: none !important; border: none !important; }

/* Leaflet popup custom styling */
.gp-popup .leaflet-popup-content-wrapper {
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.18);
  padding: 0;
  overflow: hidden;
}
.gp-popup .leaflet-popup-content { margin: 0; width: auto !important; }
.gp-popup .leaflet-popup-tip { box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.gp-map-popup { overflow: hidden; border-radius: 12px; }
.gp-map-popup a { display: block; text-decoration: none; color: inherit; }
.gp-map-popup-img { position: relative; width: 260px; height: 170px; overflow: hidden; }
.gp-map-popup-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.gp-map-popup:hover .gp-map-popup-img img { transform: scale(1.05); }
.gp-map-popup-body { padding: 14px 16px 16px; }
.gp-map-popup-price { font-family: 'Cormorant Garamond', serif; font-size: 22px; font-weight: 600; color: #2d4a3e; margin-bottom: 4px; }
.gp-map-popup-title { font-size: 13px; font-weight: 500; color: #2d4a3e; line-height: 1.35; margin-bottom: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gp-map-popup-zona { font-size: 11px; color: #6b8578; margin-bottom: 8px; }
.gp-map-popup-meta { display: flex; gap: 12px; font-size: 11px; color: #6b8578; padding-top: 8px; border-top: 1px solid #f0ece4; }

/* "Ver en lista" button in popup (mobile only) */
.gp-map-popup-list-btn {
  display: none;
  width: 100%; padding: 9px 0; margin-top: 0;
  background: var(--brown, #2d4a3e); color: #fff;
  border: none; border-radius: 0 0 12px 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.5px;
  cursor: pointer; align-items: center; justify-content: center; gap: 6px;
}
@media (max-width: 768px) {
  .gp-map-popup-list-btn { display: flex; }
}

/* Card highlight when clicked from map */
.prop-card.map-active {
  border: 2px solid #c9a96e !important;
  box-shadow: 0 0 0 3px rgba(201,169,110,0.2), 0 8px 30px rgba(0,0,0,0.12) !important;
  transition: border 0.3s ease, box-shadow 0.3s ease;
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in-up {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}
.fade-in-up:nth-child(1) { animation-delay: 0.05s; }
.fade-in-up:nth-child(2) { animation-delay: 0.1s; }
.fade-in-up:nth-child(3) { animation-delay: 0.15s; }
.fade-in-up:nth-child(4) { animation-delay: 0.2s; }
.fade-in-up:nth-child(5) { animation-delay: 0.25s; }
.fade-in-up:nth-child(6) { animation-delay: 0.3s; }
.fade-in-up:nth-child(7) { animation-delay: 0.35s; }
.fade-in-up:nth-child(8) { animation-delay: 0.4s; }

/* ═══════════════════════════════════════════
   16. RESPONSIVE
   ═══════════════════════════════════════════ */

/* --- Tablet / Medium screens --- */
@media (max-width: 1200px) {
  .propiedades-grid { grid-template-columns: repeat(2, 1fr); }
  .similares-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1024px) {
  .slider-buscador { flex-wrap: wrap; }
  .buscador-field { min-width: calc(50% - 7px); }
  .pie-grid { grid-template-columns: 1fr 1fr; }
  .valores-grid { grid-template-columns: repeat(2, 1fr); }
  .contacto-grid { grid-template-columns: 1fr; }
  /* New home sections */
  .destacadas-grid { grid-template-columns: 1fr 1fr; }
  .resenas-grid { grid-template-columns: repeat(2, 1fr); }
  .valorador-inner { flex-direction: column; text-align: center; }
  .valorador-text p { margin: 0 auto; }
  /* Ficha */
  .ficha-content { grid-template-columns: 1fr; }
  .ficha-right { position: static; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  /* Vender */
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .fases-grid { grid-template-columns: repeat(2, 1fr); }
  .porque-inner { grid-template-columns: 1fr; }
  .porque-img { height: 360px; }
  .testimonios-grid { grid-template-columns: repeat(2, 1fr); }
  /* Panel */
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .portal-hero .agent-card { max-width: 380px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* --- Mobile --- */
@media (max-width: 768px) {
  /* Header */
  .cabecera-nav, .cabecera-lang { display: none; }
  .hamburger-btn { display: flex; }
  .cabecera-inner { padding: 0 20px; }

  /* Slider / Hero */
  .modulo-slider { height: 65vh; }
  .slider-claim h1 { font-size: 32px; }
  .slider-buscador { flex-direction: column; max-width: 340px; }
  .buscador-field { min-width: 100%; }
  .modulo-hero { height: 140px; }

  /* Collapse search on listing pages (toggled via JS) */
  .modulo-buscador-standalone {
    max-height: 0; overflow: hidden; padding: 0;
    transition: max-height 0.35s ease, padding 0.35s ease;
  }
  .modulo-buscador-standalone.open {
    max-height: 500px; padding: 20px 0;
  }

  /* Mobile filter toggle button */
  .mobile-filter-toggle { display: flex; }

  /* Valoracion */
  .modulo-valoracion { flex-direction: column; }
  .valoracion-img { flex: 0 0 250px; }
  .valoracion-content { padding: 40px 24px; }
  .valoracion-form { grid-template-columns: 1fr; }

  /* Properties */
  .propiedades-grid { grid-template-columns: 1fr; }
  .propiedades-header {
    flex-direction: row; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 0 4px;
  }
  .propiedades-count { font-size: 13px; }
  .orden-select { font-size: 12px; padding: 6px 10px; }

  /* New home sections */
  .destacadas-grid { grid-template-columns: 1fr; }
  .destacadas-header { flex-direction: column; align-items: flex-start; gap: 20px; }
  .resenas-grid { grid-template-columns: 1fr; }
  .valorador-inner { flex-direction: column; gap: 30px; }
  .valorador-actions { flex-direction: column; width: 100%; }
  .valorador-btn { width: 100%; text-align: center; }
  .contacto-rapido-form { flex-direction: column; }
  .contacto-rapido-form input { min-width: 100%; }

  /* Split view on mobile: list only, map hidden (shown in overlay) */
  .split-view { flex-direction: column; }
  .split-list {
    flex: 1 1 100%;
    max-height: none;
    overflow-y: visible;
    position: static;
  }
  .split-map { display: none; }

  /* Show FAB + overlay on mobile */
  .fab-map { display: flex; }
  .map-overlay { display: block; }

  /* Agent line always visible on mobile (no hover) */
  .prop-agent-line {
    max-height: 50px; opacity: 1;
    padding: 10px 16px 12px;
    border-top: 1px solid rgba(45,74,62,0.08);
  }

  /* Add bottom padding for FAB */
  .propiedades-grid { padding-bottom: 80px; }

  /* Ficha */
  .breadcrumb { padding: 12px 20px; }
  .gallery-section { padding: 0 20px 20px; }
  .ficha-content { padding: 0 20px 40px; }
  .ficha-specs { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); }
  .similares-grid { grid-template-columns: 1fr; }
  .features-grid, .caract-grid { grid-template-columns: 1fr; }

  /* Vender */
  .vender-hero { height: 60vh; min-height: 420px; }
  .vender-hero-content h1 { font-size: 32px; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .fases-grid { grid-template-columns: 1fr; }
  .porque-inner { grid-template-columns: 1fr; gap: 40px; }
  .porque-img { height: 280px; }
  .testimonios-grid { grid-template-columns: 1fr; }
  .cta-form, .vender-form { grid-template-columns: 1fr; }
  .cta-form .full, .vender-form .full { grid-column: 1; }
  .vender-proceso, .vender-porque, .vender-testimonios, .vender-cta { padding: 60px 0; }
  .vender-valorador { padding: 50px 0; }
  .valorador-section-inner { padding: 0 16px; }
  .residelia-container { padding: 12px; min-height: 400px; }

  /* Empresa / Contacto */
  .valores-grid { grid-template-columns: 1fr; }
  .contacto-grid { grid-template-columns: 1fr; }
  .contacto-form-large .form-row { flex-direction: column; }

  /* Footer */
  .pie-grid { grid-template-columns: 1fr; }
  .pie-bottom { flex-direction: column; gap: 10px; text-align: center; }

  /* Panel propietario */
  .portal-header { height: 60px; }
  .header-inner { padding: 0 20px; }
  .header-greeting { display: none; }
  .header-agent-info { display: none; }
  .portal-hero { padding: 40px 20px 60px; }
  .hero-text h1 { font-size: 32px; }
  .stat-card { padding: 20px 14px; }
  .stat-count { font-size: 28px; }
  .portal-content { padding: 0 20px; }
  .portal-content .section-header { padding: 18px 20px; }
  .section-body { padding: 20px; }
  .owner-bar { flex-direction: column; text-align: center; }
  .footer-top { flex-direction: column; }
  .footer-contact-info { flex-direction: column; gap: 12px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .doc-item { flex-wrap: wrap; }
}

/* --- Small phone --- */
@media (max-width: 480px) {
  .propiedades-grid { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat-box { padding: 20px 14px; }
  .stats-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .links-grid { grid-template-columns: 1fr; }
  .gallery-thumbs { grid-template-columns: repeat(4, 1fr); gap: 4px; }
  .ficha-title, .ficha-titulo { font-size: 26px; }
  .price-amount { font-size: 32px; }
  .mortgage-row { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   LEAD CAPTURE MODALS (GP)
   ═══════════════════════════════════════════ */
.gp-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  backdrop-filter: blur(4px); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.gp-overlay.visible { opacity: 1; pointer-events: all; }
.gp-modal {
  background: white; border-radius: 16px;
  width: 420px; max-width: 90vw;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
  overflow: hidden;
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.gp-overlay.visible .gp-modal { transform: translateY(0) scale(1); }
.gp-modal-header {
  background: var(--brown); padding: 24px 28px;
  text-align: center; position: relative;
}
.gp-modal-icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
}
.gp-modal-icon svg { color: var(--gold-light); }
.gp-modal-title {
  font-family: var(--serif); font-size: 22px;
  color: white; font-weight: 400;
}
.gp-modal-subtitle {
  font-size: 13px; color: rgba(255,255,255,0.6);
  margin-top: 4px;
}
.gp-modal-close {
  position: absolute; top: 14px; right: 14px;
  background: rgba(255,255,255,0.15); border: none;
  color: rgba(255,255,255,0.6); width: 28px; height: 28px;
  border-radius: 50%; cursor: pointer; font-size: 16px;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.gp-modal-close:hover { background: rgba(255,255,255,0.25); }
.gp-modal-body { padding: 24px 28px 28px; }
.gp-field { margin-bottom: 16px; }
.gp-field label {
  display: block; font-size: 11px; font-weight: 600;
  color: var(--brown); letter-spacing: 1px;
  text-transform: uppercase; margin-bottom: 6px;
}
.gp-field input,
.gp-field select {
  width: 100%; padding: 12px 14px;
  border: 1.5px solid #e8e4df; border-radius: 8px;
  font-size: 15px; font-family: var(--sans);
  color: var(--text); transition: border-color 0.2s;
  box-sizing: border-box; background: white;
  -webkit-appearance: none; appearance: none;
}
.gp-field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b8578' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.gp-field input:focus,
.gp-field select:focus { outline: none; border-color: var(--gold); }
.gp-field input::placeholder { color: #bbb; }
.gp-field-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.gp-modal-submit {
  width: 100%; padding: 14px;
  background: var(--gold); color: white;
  border: none; border-radius: 8px;
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.5px; cursor: pointer;
  transition: background 0.2s;
  font-family: var(--sans);
  margin-top: 4px;
}
.gp-modal-submit:hover { background: var(--gold-dark); }
.gp-modal-submit:disabled {
  opacity: 0.6; cursor: not-allowed;
}
.gp-modal-legal {
  font-size: 11px; color: #aaa; text-align: center;
  margin-top: 14px; line-height: 1.5;
}
.gp-modal-legal a { color: var(--gold); text-decoration: none; }
.gp-modal-error {
  background: #fff0f0; color: #c53030;
  border-radius: 8px; padding: 10px 14px;
  font-size: 13px; margin-bottom: 14px;
  border: 1px solid #fecaca;
}
.gp-modal-prop-mini {
  display: flex; gap: 12px; align-items: center;
  background: var(--cream); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 20px;
}
.gp-modal-prop-mini img {
  width: 60px; height: 45px; object-fit: cover;
  border-radius: 6px; flex-shrink: 0;
}
.gp-modal-prop-info { flex: 1; min-width: 0; }
.gp-modal-prop-title {
  font-family: var(--serif); font-size: 13.5px;
  color: var(--brown); font-weight: 500;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.gp-modal-prop-price {
  font-size: 12px; color: var(--gold-dark); font-weight: 600;
  margin-top: 1px;
}

@media (max-width: 480px) {
  .gp-field-row { grid-template-columns: 1fr; }
  .gp-modal { width: 100%; max-width: 100vw; border-radius: 16px 16px 0 0; }
  .gp-overlay { align-items: flex-end; }
}

/* ═══════════════════════════════════════════════════════════════
 * GP-OVERLAY / GP-MODAL — fix for missing styles on revision 00045
 * Added 2026-05-08 to hide stray modal markup from end of pages
 * and provide proper styling when JS opens them.
 * ═══════════════════════════════════════════════════════════════ */

.gp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 46, 38, 0.55);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: gpFadeIn 0.3s ease;
}
.gp-overlay.visible { display: flex; }
@keyframes gpFadeIn { from { opacity: 0; } to { opacity: 1; } }

.gp-modal {
  background: #fff;
  border-radius: 16px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: gpModalIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes gpModalIn {
  from { transform: translateY(20px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0)    scale(1);    opacity: 1; }
}

.gp-modal-header {
  position: relative;
  padding: 32px 32px 20px;
  text-align: center;
  border-bottom: 1px solid #f0eadf;
}
.gp-modal-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 32px; height: 32px;
  border: none;
  background: #f5f0eb;
  border-radius: 50%;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  line-height: 1;
}
.gp-modal-close:hover { background: #e8e0d4; color: #2d4a3e; }

.gp-modal-icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  background: linear-gradient(135deg, #c9a96e, #d4b87a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d4a3e;
}

.gp-modal-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 600;
  color: #2d4a3e;
  margin-bottom: 8px;
  line-height: 1.2;
}
.gp-modal-subtitle {
  font-size: 14px;
  color: #888;
  line-height: 1.5;
  margin: 0;
}

.gp-modal-body {
  padding: 24px 32px 32px;
}

.gp-modal-prop-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  background: #f8f5f0;
  padding: 12px;
  border-radius: 12px;
  margin-bottom: 20px;
}
.gp-modal-prop-mini img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
}
.gp-modal-prop-info { flex: 1; min-width: 0; }
.gp-modal-prop-title {
  font-size: 14px;
  font-weight: 600;
  color: #2d4a3e;
  margin-bottom: 4px;
  line-height: 1.3;
}
.gp-modal-prop-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: #c9a96e;
  font-weight: 600;
}

.gp-field { margin-bottom: 16px; }
.gp-field label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #2d4a3e;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.gp-field input,
.gp-field select,
.gp-field textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e8e0d4;
  border-radius: 10px;
  font-size: 14px;
  font-family: 'Inter', sans-serif;
  color: #2d4a3e;
  background: #fff;
  transition: all 0.2s;
  box-sizing: border-box;
}
.gp-field textarea { min-height: 80px; resize: vertical; }
.gp-field input:focus,
.gp-field select:focus,
.gp-field textarea:focus {
  outline: none;
  border-color: #c9a96e;
  box-shadow: 0 0 0 3px rgba(201, 169, 110, 0.15);
}

.gp-modal-error {
  background: #fee;
  color: #c0392b;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 13px;
  margin-bottom: 12px;
  border: 1px solid #fcc;
}

.gp-modal-submit {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, #c9a96e, #d4b87a);
  color: #2d4a3e;
  border: none;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s;
  font-family: 'Inter', sans-serif;
}
.gp-modal-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.4);
}
.gp-modal-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.gp-modal-legal {
  text-align: center;
  font-size: 11px;
  color: #999;
  margin-top: 14px;
  line-height: 1.5;
}
.gp-modal-legal a {
  color: #888;
  text-decoration: underline;
}

.gp-modal-channels {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.gp-modal-channel {
  flex: 1;
  min-width: 100px;
  padding: 10px 12px;
  border: 1.5px solid #e8e0d4;
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
  color: #888;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}
.gp-modal-channel:hover { border-color: #c9a96e; color: #2d4a3e; }
.gp-modal-channel.active {
  border-color: #c9a96e;
  background: #faf6ed;
  color: #2d4a3e;
  font-weight: 600;
}

@media (max-width: 480px) {
  .gp-modal        { border-radius: 12px; }
  .gp-modal-header { padding: 24px 20px 16px; }
  .gp-modal-body   { padding: 20px; }
  .gp-modal-title  { font-size: 22px; }
}
