@import url("https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600&family=DM+Sans:wght@300;400;500&display=swap");
@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");

:root {
  --brand: #274abb;
  --brand-dark: #1b3590;
  --brand-light: #eef1fb;
  --text: #0f1117;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --white: #ffffff;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* =========================================================
     NAV
  ========================================================= */
.re-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.re-logo {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  letter-spacing: -0.3px;
  text-decoration: none;
}
.re-logo span {
  color: var(--text);
  font-weight: 400;
}

.re-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.re-nav-links a {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.re-nav-links a:hover {
  color: var(--brand);
}

.re-nav-cta {
  background: var(--brand) !important;
  color: white !important;
  padding: 9px 20px;
  border-radius: 7px;
  font-weight: 500 !important;
  transition: background 0.2s !important;
}
.re-nav-cta:hover {
  background: var(--brand-dark) !important;
}

/* Nav transparente — estado inicial (sobre hero) */
.re-nav.transparent {
  position: sticky;
  top: 0;
  background: transparent;
  border-bottom: none;
  z-index: 1000;
  transition:
    background 0.3s,
    box-shadow 0.3s;
}

.re-nav.transparent .re-nav-links > li > a:not(.re-nav-cta) {
  color: rgba(255, 255, 255, 0.75);
}
.re-nav.transparent .re-nav-links > li > a:not(.re-nav-cta):hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}
.re-nav.transparent .re-logo {
  color: #fff;
}
.re-nav.transparent .re-logo span {
  color: rgba(255, 255, 255, 0.55);
}
.re-nav.transparent .re-nav-sep {
  background: rgba(255, 255, 255, 0.2);
}
.re-nav.transparent .re-lang-switcher {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.2);
}
.re-nav.transparent .lang-btn {
  color: rgba(255, 255, 255, 0.65) !important;
}
.re-nav.transparent .lang-btn.active {
  background: rgba(255, 255, 255, 0.25);
  color: #fff !important;
}
.re-nav.transparent .re-nav-cta {
  background: rgba(255, 255, 255, 0.15) !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
}
.re-nav.transparent .re-hamburger {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

/* Nav scrolled — cuando se agrega la clase .scrolled */
.re-nav.transparent.scrolled {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.re-nav.transparent.scrolled .re-nav-links > li > a:not(.re-nav-cta) {
  color: #6b7280;
}
.re-nav.transparent.scrolled .re-nav-links > li > a:not(.re-nav-cta):hover {
  color: #274abb;
  background: #eef1fb;
}
.re-nav.transparent.scrolled .re-logo {
  color: #274abb;
}
.re-nav.transparent.scrolled .re-logo span {
  color: #0f1117;
}
.re-nav.transparent.scrolled .re-nav-sep {
  background: #e5e7eb;
}
.re-nav.transparent.scrolled .re-lang-switcher {
  background: #f9fafb;
  border-color: #e5e7eb;
}
.re-nav.transparent.scrolled .lang-btn {
  color: #6b7280 !important;
}
.re-nav.transparent.scrolled .lang-btn.active {
  background: #274abb;
  color: #fff !important;
}
.re-nav.transparent.scrolled .re-nav-cta {
  background: #274abb !important;
  border: none !important;
  color: #fff !important;
}
.re-nav.transparent.scrolled .re-hamburger {
  border-color: #e5e7eb;
  color: #0f1117;
}
/* ============================================================
       VARIABLES GLOBALES
    ============================================================ */
:root {
  --brand: #274abb;
  --brand-dark: #1b3590;
  --brand-light: #eef1fb;
  --re-text: #0f1117;
  --re-muted: #6b7280;
  --re-border: #e5e7eb;
  --re-surface: #f9fafb;
  --re-white: #ffffff;
  --nav-h: 68px;
}

/* ============================================================
       WHATSAPP FLOAT
    ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 9999;
  width: 54px;
  height: 54px;
  background: #25d366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.35);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.whatsapp-float:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.45);
  color: #fff;
}

/* ============================================================
       NAVBAR DESKTOP
    ============================================================ */
.re-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  height: var(--nav-h);
  border-bottom: 1px solid var(--re-border);
  background: var(--re-white);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.re-logo {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.3px;
  flex-shrink: 0;
}
.re-logo span {
  color: var(--re-text);
  font-weight: 400;
}

.re-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.re-nav-links > li > a {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--re-muted);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  transition:
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.re-nav-links > li > a:hover,
.re-nav-links > li > a.active {
  color: var(--brand);
  background: var(--brand-light);
}

.re-nav-sep {
  width: 1px;
  height: 20px;
  background: var(--re-border);
  margin: 0 8px;
  flex-shrink: 0;
}

/* Selector idioma */
.re-lang-switcher {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--re-surface);
  border: 1px solid var(--re-border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--re-muted) !important;
  background: transparent;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  line-height: 1;
  transition: all 0.15s;
}
.lang-btn.active {
  background: var(--brand);
  color: #fff !important;
}
.lang-btn:not(.active):hover {
  background: var(--re-border);
  color: var(--re-text);
}

/* CTA nav */
.re-nav-cta {
  background: var(--brand) !important;
  color: #fff !important;
  padding: 8px 20px !important;
  border-radius: 7px !important;
  font-weight: 500 !important;
  font-size: 14px !important;
  transition: background 0.2s !important;
}
.re-nav-cta:hover {
  background: var(--brand-dark) !important;
}

/* Hamburger */
.re-hamburger {
  display: none;
  background: transparent;
  border: 1px solid var(--re-border);
  border-radius: 7px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--re-text);
  cursor: pointer;
  flex-shrink: 0;
}

/* ============================================================
       MOBILE SIDEBAR
    ============================================================ */
.re-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1998;
  opacity: 0;
  transition: opacity 0.25s;
}
.re-sidebar-overlay.show {
  display: block;
  opacity: 1;
}

.re-mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100%;
  background: var(--re-white);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}
.re-mobile-nav.show {
  transform: translateX(0);
}

.re-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--re-border);
  flex-shrink: 0;
}
.re-mobile-logo {
  font-family: "Playfair Display", serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
}
.re-mobile-logo span {
  color: var(--re-text);
  font-weight: 400;
}
.re-mobile-close {
  background: transparent;
  border: 1px solid var(--re-border);
  border-radius: 7px;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--re-muted);
  cursor: pointer;
}

.re-mobile-links {
  list-style: none;
  padding: 12px 0;
  margin: 0;
  flex: 1;
}
.re-mobile-links li a {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: var(--re-text);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  transition:
    background 0.15s,
    color 0.15s;
}
.re-mobile-links li a i {
  font-size: 17px;
  color: var(--brand);
  flex-shrink: 0;
}
.re-mobile-links li a:hover,
.re-mobile-links li a.active {
  background: var(--brand-light);
  color: var(--brand);
}

.re-mobile-footer {
  padding: 16px 20px 28px;
  border-top: 1px solid var(--re-border);
  flex-shrink: 0;
}
.re-mobile-cta {
  display: block;
  background: var(--brand);
  color: #fff;
  text-align: center;
  padding: 12px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background 0.2s;
}
.re-mobile-cta:hover {
  background: var(--brand-dark);
  color: #fff;
}

.re-mobile-lang {
  display: flex;
  gap: 6px;
}
.re-mobile-lang .lang-btn {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border: 1px solid var(--re-border);
  border-radius: 6px;
  font-size: 13px;
}
.re-mobile-lang .lang-btn.active {
  border-color: var(--brand);
}

/* ============================================================
       RESPONSIVE
    ============================================================ */
@media (max-width: 992px) {
  .re-nav-links {
    display: none !important;
  }
  .re-nav-sep {
    display: none !important;
  }
  .re-hamburger {
    display: flex !important;
  }
}
@media (max-width: 576px) {
  .re-nav {
    padding: 0 20px;
  }
  .whatsapp-float {
    bottom: 18px;
    right: 18px;
    width: 48px;
    height: 48px;
    font-size: 22px;
  }
}

/* =========================================================
     HERO
  ========================================================= */
/* ── HERO VIDEO ── */
.re-hero-video {
  position: relative;
  min-height: 100vh;
  margin-top: calc(-1 * var(--nav-h)); /* ← sube 68px */
  padding-top: var(--nav-h); /* ← compensa el contenido */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  text-align: center;
}

.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.hero-video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.2) 0%,
    rgba(0, 0, 0, 0.48) 60%,
    rgba(0, 0, 0, 0.68) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 10;
  padding: 80px 24px 80px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(6px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 30px;
  margin-bottom: 28px;
}

.hero-headline {
  font-family: "Cormorant Garamond", sans-serif;
  font-size: 68px;
  font-weight: 700;
  line-height: 1.05;
  color: #fff;
  letter-spacing: -2px;
  margin-bottom: 0;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.hero-headline em {
  font-style: italic;
  font-weight: 400;
  color: #7aabff;
}
.hero-location {
  display: block;
  font-size: 52px;
  font-weight: 600;
  color: #fff;
  letter-spacing: -1px;
  margin-top: 4px;
}

.hero-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 24px 0;
}
.hero-divider-line {
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.35));
}
.hero-divider-line.rev {
  background: linear-gradient(to left, transparent, rgba(255, 255, 255, 0.35));
}
.hero-divider-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #7aabff;
}

.hero-sub {
  font-size: 18px;
  font-weight: 400;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin: 0 auto 36px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.01em;
}

.hero-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-hero-primary {
  background: #274abb;
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(39, 74, 187, 0.45);
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-hero-primary:hover {
  background: #1b3590;
  transform: translateY(-2px);
  color: #fff;
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 15px 30px;
  border-radius: 8px;
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.32);
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition:
    background 0.2s,
    transform 0.15s;
}
.btn-hero-outline:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  color: #fff;
}

.hero-stats {
  display: flex;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  backdrop-filter: blur(10px);
  overflow: hidden;
  max-width: 560px;
  margin: 0 auto;
}
.hero-stat {
  flex: 1;
  padding: 18px 10px;
  text-align: center;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.hero-stat:last-child {
  border-right: none;
}
.stat-n {
  font-family: "DM Sans", serif;
  font-size: 26px;
  font-weight: 600;
  color: #7aabff;
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}
.stat-l {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.3px;
}

/* Responsive */
@media (max-width: 768px) {
  .hero-headline {
    font-size: 44px;
  }
  .hero-location {
    font-size: 36px;
  }
  .hero-sub {
    font-size: 15px;
  }
  .hero-stats {
    flex-wrap: wrap;
  }
  .hero-stat {
    min-width: 50%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* =========================================================
     SEARCH BAR
  ========================================================= */
.re-search-wrap {
  padding: 0 40px;
  margin-top: -20px;
  position: relative;
  z-index: 10;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.re-search {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: 0 8px 32px rgba(39, 74, 187, 0.1);
}
.re-search-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 20px;
}
.stab {
  padding: 7px 20px;
  border-radius: 7px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
  cursor: pointer;
  border: 1px solid transparent;
  background: transparent;
  transition: all 0.15s;
}
.stab.active {
  background: var(--brand);
  color: white;
  font-weight: 500;
}
.stab:not(.active):hover {
  border-color: var(--border);
  background: var(--surface);
}

.re-search-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto;
  gap: 10px;
  align-items: center;
}
.re-search-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.re-search-field label {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.re-search-field select,
.re-search-field input {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--text);
  border: none;
  outline: none;
  background: transparent;
  padding: 2px 0;
  width: 100%;
}
.re-search-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  align-self: center;
  flex-shrink: 0;
}
.re-search-btn {
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 9px;
  padding: 14px 22px;
  cursor: pointer;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  flex-shrink: 0;
}
.re-search-btn:hover {
  background: var(--brand-dark);
}

/* =========================================================
     SECTIONS SHARED
  ========================================================= */
.re-section {
  padding: 72px 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 36px;
}
.section-tag {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: var(--brand);
  letter-spacing: 0.9px;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.section-title {
  font-family: "DM Sans", sans-serif;
  font-size: 30px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.2;
}
.section-link {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  color: var(--brand);
  text-decoration: none;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: gap 0.2s;
}
.section-link:hover {
  gap: 8px;
}

/* =========================================================
     LISTINGS GRID
  ========================================================= */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.prop-card {
  border-radius: 12px;
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--white);
  transition:
    box-shadow 0.25s,
    transform 0.25s;
  cursor: pointer;
  text-decoration: none;
  display: block;
}
.prop-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(39, 74, 187, 0.13);
}

.prop-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  font-size: 48px;
}
/* Replace these backgrounds with actual property images */
.prop-img.blue {
  background: #dde4f5;
}
.prop-img.green {
  background: #d5e8e4;
}
.prop-img.gray {
  background: #e8eaec;
}

/* If using real images: */
/* .prop-img img { width:100%; height:100%; object-fit:cover; } */

.prop-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 5px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
.prop-badge.sale {
  background: var(--brand);
  color: white;
}
.prop-badge.rent {
  background: #0f9b6e;
  color: white;
}
.prop-badge.comm {
  background: #7c3aed;
  color: white;
}

.prop-info {
  padding: 18px;
}
.prop-price {
  font-family: "DM Sans", sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--brand);
  margin-bottom: 5px;
}
.prop-name {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 5px;
}
.prop-addr {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.prop-features {
  display: flex;
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.prop-feat {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.prop-feat i {
  font-size: 14px;
  color: var(--brand);
}

/* =========================================================
     CATEGORIES
  ========================================================= */
.cats-section {
  background: var(--surface);
  padding: 72px 0;
}
.cats-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 40px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cat-card {
  padding: 28px 22px;
  border-radius: 12px;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.cat-card:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}
.cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--brand);
  transition: all 0.2s;
}
.cat-card:hover .cat-icon {
  background: var(--brand);
  color: white;
}
.cat-title {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.cat-count {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* =========================================================
     WHY US
  ========================================================= */
.why-section {
  background: var(--brand);
  padding: 72px 40px;
}
.why-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.why-section .section-tag {
  color: rgba(255, 255, 255, 0.55);
}
.why-section .section-title {
  color: white;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}
.why-item {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 24px;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.why-icon-wrap {
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, 0.15);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: white;
  flex-shrink: 0;
}
.why-title {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: white;
  margin-bottom: 5px;
}
.why-text {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
}

/* =========================================================
     AGENTS
  ========================================================= */
.agents-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.agent-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  background: var(--white);
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}
.agent-card:hover {
  box-shadow: 0 8px 24px rgba(39, 74, 187, 0.1);
  transform: translateY(-3px);
}
.agent-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 600;
  font-family: "DM Sans", sans-serif;
}
.av1 {
  background: #dde4f5;
  color: var(--brand);
}
.av2 {
  background: #d5ede8;
  color: #0f7a5a;
}
.av3 {
  background: #ede8f5;
  color: #5a3aab;
}
.agent-name {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: var(--text);
}
.agent-role {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 3px;
  margin-bottom: 14px;
}
.agent-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.agt-num {
  font-family: "DM Sans", sans-serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--brand);
  display: block;
}
.agt-lbl {
  font-family: "DM Sans", sans-serif;
  font-size: 10px;
  color: var(--muted);
}

/* =========================================================
     CTA
  ========================================================= */
.cta-section {
  padding: 80px 40px;
  text-align: center;
  background: var(--surface);
  border-top: 1px solid var(--border);
}
.cta-title {
  font-family: "DM Sans", sans-serif;
  font-size: 36px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.22;
}
.cta-title em {
  color: var(--brand);
  font-style: normal;
}
.cta-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--muted);
  margin-bottom: 32px;
  font-weight: 600;
}
.cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.cta-btns .btn-primary,
.cta-btns .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.cta-btns .btn-primary {
    background: var(--brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(39,74,187,.3);
}

.cta-btns .btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.cta-btns .btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}

.cta-btns .btn-outline:hover {
    background: var(--brand-light);
    color: var(--brand);
    transform: translateY(-2px);
}

/* =========================================================
     FOOTER
  ========================================================= */
.re-footer {
  background: #0f1117;
  padding: 56px 40px 24px;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}
.footer-top {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: "Playfair Display", serif;
  font-size: 20px;
  color: white;
  margin-bottom: 12px;
  display: block;
}
.footer-logo span {
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
}
.footer-desc {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 240px;
}
.footer-col h4 {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  font-weight: 500;
  color: white;
  letter-spacing: 0.7px;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none;
}
.footer-col li {
  margin-bottom: 10px;
}
.footer-col a {
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-col a:hover {
  color: white;
}
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
}
/* ── FOOTER SOCIAL ── */
.footer-social {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.footer-social a {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: rgba(255,255,255,.5);
    text-decoration: none;
    transition: background .2s, color .2s;
}

.footer-social a:hover {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

/* ── FOOTER BOTTOM LINKS ── */
.footer-bottom-links a {
    color: rgba(255,255,255,.28);
    text-decoration: none;
    transition: color .2s;
}

.footer-bottom-links a:hover {
    color: rgba(255,255,255,.7);
}
/* =========================================================
     RESPONSIVE (basic)
  ========================================================= */
@media (max-width: 900px) {
  .re-hero-title {
    font-size: 36px;
  }
  .listings-grid,
  .cats-grid,
  .agents-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .re-search-row {
    grid-template-columns: 1fr;
  }
  .re-search-sep {
    display: none;
  }
}
@media (max-width: 600px) {
  .re-nav-links {
    display: none;
  }
  .re-hero::before {
    display: none;
  }
  .listings-grid,
  .cats-grid,
  .agents-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }
  .footer-top {
    grid-template-columns: 1fr;
  }
  .re-hero-stats {
    flex-wrap: wrap;
    gap: 20px;
  }
}

/* =========================================================
   REALTOR PROFILE SECTION
========================================================= */
.realtor-section {
  padding: 60px 40px;
  background: var(--white);
  border-top: 1px solid var(--border);
}

.realtor-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 72px;
  align-items: start;
}

/* ── COLUMNA FOTO ── */
.realtor-photo-col {
  position: sticky;
  top: calc(var(--nav-h) + 24px);
}

.realtor-photo-wrap {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4/5;
  background: var(--brand-light);
}

.realtor-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.realtor-license-badge {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 40px;
  padding: 10px 20px 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.realtor-license-badge i {
  font-size: 22px;
  color: var(--brand);
  flex-shrink: 0;
}

.realtor-license-badge span {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  line-height: 1.2;
}

.realtor-license-badge small {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.realtor-photo-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.rp-stat {
  flex: 1;
  text-align: center;
  padding: 16px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rp-stat-n {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--brand);
  line-height: 1;
}

.rp-stat-l {
  font-family: "DM Sans", sans-serif;
  font-size: 11px;
  color: var(--muted);
}

.rp-stat-sep {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ── COLUMNA CONTENIDO ── */
.realtor-name {
  font-family: "DM Sans", serif;
  font-size: 40px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.1;
  margin: 8px 0 6px;
  letter-spacing: -0.5px;
}

.realtor-title-line {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  color: var(--brand);
  font-weight: 500;
  letter-spacing: 0.2px;
}

.realtor-divider {
  width: 48px;
  height: 3px;
  background: var(--brand);
  border-radius: 2px;
  margin: 20px 0;
}

.realtor-bio {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
  margin-bottom: 16px;
}

/* ── CERTIFICACIONES ── */
.realtor-certs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 28px 0 32px;
}

.cert-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  transition:
    border-color 0.2s,
    background 0.2s;
}

.cert-item:hover {
  border-color: var(--brand);
  background: var(--brand-light);
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--brand-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--brand);
  flex-shrink: 0;
  transition:
    background 0.2s,
    color 0.2s;
}

.cert-item:hover .cert-icon {
  background: var(--brand);
  color: white;
}

.cert-title {
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.cert-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  color: var(--muted);
}

/* ── CTA ── */
.realtor-cta {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.realtor-cta .btn-primary,
.realtor-cta .btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.realtor-cta .btn-primary {
    background: var(--brand);
    color: #fff;
    border: none;
    box-shadow: 0 4px 14px rgba(39,74,187,.3);
}

.realtor-cta .btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-2px);
}

.realtor-cta .btn-outline {
    background: transparent;
    color: var(--brand);
    border: 1.5px solid var(--brand);
}

.realtor-cta .btn-outline:hover {
    background: var(--brand-light);
    color: var(--brand);
    transform: translateY(-2px);
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .realtor-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .realtor-photo-col {
    position: static;
    max-width: 380px;
    margin: 0 auto;
    width: 100%;
  }
  .realtor-name {
    font-size: 32px;
  }
}

@media (max-width: 600px) {
  .realtor-section {
    padding: 60px 20px;
  }
  .realtor-cta {
    flex-direction: column;
  }
  .realtor-cta .btn-primary,
  .realtor-cta .btn-outline {
    justify-content: center;
  }
}




/* ── BOTONES GLOBALES ── */
.btn-primary,
.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: 8px;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background .2s, transform .15s;
}

.btn-primary {
    background: var(--brand);
    color: #fff !important;
    border: none;
    box-shadow: 0 4px 14px rgba(39,74,187,.3);
}

.btn-primary:hover {
    background: var(--brand-dark);
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--brand) !important;
    border: 1.5px solid var(--brand);
}

.btn-outline:hover {
    background: var(--brand-light);
    transform: translateY(-2px);
}