/* Fuentes alojadas localmente (antes Google Fonts) */
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:300;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-300-normal.woff2) format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Plus Jakarta Sans';font-style:normal;font-weight:800;font-display:swap;src:url(/assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/playfair-display-latin-500-normal.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/playfair-display-latin-600-normal.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/playfair-display-latin-700-normal.woff2) format('woff2');}
@font-face{font-family:'Playfair Display';font-style:italic;font-weight:400;font-display:swap;src:url(/assets/fonts/playfair-display-latin-400-italic.woff2) format('woff2');}
/* ==========================================================================
   DESIGN TOKENS & RESET
   ========================================================================== */
:root {
  --navy-900: #0B1B2C;
  --navy-800: #142B45; /* Color corporativo principal */
  --navy-700: #1D3B5C;
  --navy-600: #254B73;
  --navy-100: #E6EDF4;
  --navy-50:  #F0F4F8;

  --sand-50:  #FAFAF8; /* Fondo blanco cálido */
  --sand-100: #F4F4F0;
  --sand-200: #EBEBE6;

  --gold-600: #A88330;
  --gold-500: #C9A24D; /* Acento premium */
  --gold-400: #D8B76E;
  --gold-100: #FBF4E6;
  --gold-50:  #FCF9F2;

  --silver-500: #8C9BA8;
  --silver-300: #CBD5E1;
  --silver-200: #E2E8F0;
  --silver-100: #F1F5F9;

  --ink-900: #0D1B2A;
  --ink-700: #2A3B4C;
  --ink-500: #5A6D80;
  --ink-400: #7E90A0;

  --white: #FFFFFF;
  --ok: #1E8E5A;
  --err: #C2392F;

  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  --shadow-sm: 0 2px 8px rgba(11, 27, 44, 0.04);
  --shadow-md: 0 12px 24px -6px rgba(11, 27, 44, 0.07), 0 4px 8px -2px rgba(11, 27, 44, 0.03);
  --shadow-lg: 0 24px 48px -12px rgba(11, 27, 44, 0.12), 0 8px 16px -4px rgba(11, 27, 44, 0.04);
  --shadow-xl: 0 36px 64px -16px rgba(11, 27, 44, 0.22);

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 9999px;
  --tr-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-base: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  --tr-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-700);
  background: var(--sand-50);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body.lock {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

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

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

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

input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--gold-500);
  outline-offset: 3px;
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

section {
  padding: 96px 0;
}

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--navy-900);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 600;
}

h1 {
  font-size: clamp(34px, 4.8vw, 62px);
}

h2 {
  font-size: clamp(28px, 3.6vw, 44px);
}

h3 {
  font-size: clamp(20px, 2.4vw, 28px);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: 12px;
}

.eyebrow::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 1.5px;
  background: var(--gold-500);
}

.lead {
  font-size: clamp(16px, 1.4vw, 19px);
  color: var(--ink-500);
  line-height: 1.65;
  max-width: 42em;
}

/* ==========================================================================
   BUTTONS & BADGES
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 50px;
  padding: 0 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: all var(--tr-base);
  user-select: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn-gold {
  background: var(--gold-500);
  color: var(--navy-900);
  box-shadow: 0 4px 14px rgba(201, 162, 77, 0.35);
}

.btn-gold:hover {
  background: var(--gold-400);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(201, 162, 77, 0.45);
}

.btn-navy {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(20, 43, 69, 0.25);
}

.btn-navy:hover {
  background: var(--navy-700);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(20, 43, 69, 0.35);
}

.btn-outline-white {
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: var(--white);
  backdrop-filter: blur(8px);
}

.btn-outline-white:hover {
  background: var(--white);
  color: var(--navy-900);
  border-color: var(--white);
}

.btn-outline-navy {
  background: transparent;
  border: 1.5px solid var(--silver-300);
  color: var(--navy-900);
}

.btn-outline-navy:hover {
  border-color: var(--navy-800);
  background: var(--navy-50);
}

.btn-sm {
  height: 40px;
  padding: 0 18px;
  font-size: 13.5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge-gold {
  background: var(--gold-500);
  color: var(--navy-900);
}

.badge-navy {
  background: var(--navy-800);
  color: var(--white);
}

.badge-white {
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy-900);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

/* ==========================================================================
   HEADER
   ========================================================================== */
header.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  transition: background var(--tr-smooth), box-shadow var(--tr-smooth), padding var(--tr-smooth);
  padding: 16px 0;
}

header.site-header.scrolled,
header.site-header.menu-open {
  background: rgba(11, 27, 44, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

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

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
}

.brand-svg-mark {
  height: 34px;
  width: auto;
  color: var(--white);
}

.brand-tag {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  padding-left: 10px;
  border-left: 1px solid rgba(255, 255, 255, 0.25);
}

.brand-tag .city {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-400);
}

.brand-tag .sub {
  font-size: 10px;
  color: var(--silver-300);
  letter-spacing: 0.05em;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-menu a {
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  position: relative;
  padding: 6px 0;
}

.nav-menu a:hover {
  color: var(--white);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gold-400);
  transition: width var(--tr-base);
}

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

.header-cta {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
  align-items: center;
  justify-content: center;
}

.burger-btn svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

@media (max-width: 1024px) {
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-900);
    flex-direction: column;
    align-items: flex-start;
    padding: 20px 24px 30px;
    gap: 0;
    display: none;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
  }

  header.site-header.menu-open .nav-menu {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu a {
    display: block;
    padding: 14px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 16px;
    color: var(--white);
  }

  .nav-menu a::after {
    display: none;
  }

  .burger-btn {
    display: flex;
  }

  .header-cta .btn-gold {
    display: none;
  }
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  background: var(--navy-900);
  color: var(--white);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

/* Slideshow: cada imagen ocupa todo el bg, sólo la activa es visible */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.2s ease;
  pointer-events: none;
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.0);
  will-change: transform;
}

/* Ken Burns: zoom suave cuando la slide es activa */
.hero-slide.is-active img {
  animation: kenburns 8s ease-out forwards;
}

@keyframes kenburns {
  from { transform: scale(1.0); }
  to   { transform: scale(1.07); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-slide.is-active img {
    animation: none;
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    110deg,
    rgba(11, 27, 44, 0.91) 0%,
    rgba(11, 27, 44, 0.72) 48%,
    rgba(11, 27, 44, 0.55) 100%
  );
}

/* Controls: arrows + counter bottom-right */
.hero-controls {
  position: absolute;
  bottom: 32px;
  right: 32px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.3);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--tr-fast), transform var(--tr-fast);
  backdrop-filter: blur(6px);
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.hero-arrow:hover {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.hero-counter {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.08em;
  min-width: 52px;
  text-align: center;
}

/* Dots: bottom-center */
.hero-dots {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  align-items: center;
}

.hero-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.35);
  border: 1.5px solid rgba(255,255,255,0.55);
  cursor: pointer;
  transition: all var(--tr-fast);
  padding: 0;
}

.hero-dot.is-active {
  background: var(--gold-500);
  border-color: var(--gold-500);
  width: 22px;
  border-radius: 4px;
}

/* Info strip: bottom-left */
.hero-info-strip {
  position: absolute;
  bottom: 32px;
  left: 0;
  right: 240px;
  z-index: 9;
  padding: 0 32px;
}

.hero-scene-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(11,27,44,0.65);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(201,162,77,0.3);
  border-radius: var(--r-full);
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
}

.hero-scene-label span.dot-gold {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .hero-controls {
    bottom: 16px;
    right: 16px;
  }
  .hero-dots {
    bottom: 24px;
  }
  .hero-info-strip {
    display: none;
  }
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(201, 162, 77, 0.4);
  padding: 6px 16px;
  border-radius: var(--r-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gold-400);
  margin-bottom: 24px;
  backdrop-filter: blur(8px);
}

.hero-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.hero-title {
  color: var(--white);
  margin-bottom: 20px;
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--gold-400);
}

.hero-lead {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  margin-bottom: 36px;
  max-width: 36em;
}

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

/* Quick filter floating bar inside hero */
.hero-filter-bar {
  margin-top: 48px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: var(--r-xl);
  padding: 16px 20px;
  color: var(--navy-900);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  display: grid;
  grid-template-columns: auto 1.2fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

.hero-filter-seg {
  display: flex;
  background: var(--sand-100);
  border-radius: var(--r-full);
  padding: 4px;
}

.hero-filter-seg button {
  padding: 8px 18px;
  border-radius: var(--r-full);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ink-500);
  transition: all var(--tr-fast);
}

.hero-filter-seg button[aria-pressed="true"] {
  background: var(--navy-800);
  color: var(--white);
}

.filter-input-wrap {
  display: flex;
  flex-direction: column;
}

.filter-input-wrap label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-400);
  margin-bottom: 3px;
}

.filter-input-wrap select,
.filter-input-wrap input {
  border: 1px solid var(--silver-200);
  border-radius: var(--r-md);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy-900);
  background: var(--white);
  outline: none;
  cursor: pointer;
  height: 42px;
}

.filter-input-wrap select:focus,
.filter-input-wrap input:focus {
  border-color: var(--gold-500);
}

@media (max-width: 900px) {
  .hero-filter-bar {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--r-lg);
    padding: 16px;
  }

  .hero-filter-seg {
    grid-column: 1 / -1;
  }

  .hero-filter-bar .btn-gold {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .hero-filter-bar {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   TRUST BAR
   ========================================================================== */
.trust-bar {
  background: var(--white);
  border-bottom: 1px solid var(--silver-200);
  padding: 24px 0;
}

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

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

.trust-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: var(--gold-50);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.trust-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.trust-text b {
  display: block;
  font-size: 15px;
  color: var(--navy-900);
  font-weight: 700;
  line-height: 1.25;
  margin-bottom: 2px;
}

.trust-text span {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.35;
}

@media (max-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
}

@media (max-width: 480px) {
  .trust-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

/* ==========================================================================
   QUIÉNES SOMOS (Editorial layout)
   ========================================================================== */
.about-section {
  background: var(--sand-50);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 64px;
  align-items: center;
}

.about-visual {
  position: relative;
}

.about-photo-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  aspect-ratio: 4/5;
  background: var(--navy-900);
}

.about-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.about-stamp {
  position: absolute;
  bottom: -20px;
  right: -20px;
  background: var(--navy-800);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(201, 162, 77, 0.3);
  max-width: 240px;
}

.about-stamp .years {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--gold-400);
  line-height: 1;
}

.about-stamp .label {
  font-size: 12px;
  color: var(--silver-300);
  margin-top: 4px;
  line-height: 1.3;
}

.about-content h2 {
  margin-bottom: 24px;
  text-wrap: balance;
}

.about-text-body p {
  font-size: 16.5px;
  line-height: 1.75;
  color: var(--ink-700);
  margin-bottom: 18px;
}

.about-text-body p:last-child {
  margin-bottom: 0;
}

.about-pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--silver-200);
}

.pillar-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pillar-item svg {
  width: 20px;
  height: 20px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.pillar-item span {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .about-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-stamp {
    right: 12px;
    bottom: 12px;
  }
}

/* ==========================================================================
   PROPIEDADES (Comprar / Alquilar)
   ========================================================================== */
.catalog-section {
  background: var(--sand-100);
}

.catalog-header {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-bottom: 36px;
}

.catalog-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}

.op-switch-container {
  display: inline-flex;
  background: var(--white);
  padding: 6px;
  border-radius: var(--r-full);
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
}

.op-switch-btn {
  padding: 10px 28px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-500);
  transition: all var(--tr-base);
}

.op-switch-btn[aria-pressed="true"] {
  background: var(--navy-800);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}

/* Filter bar */
.catalog-filters {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 18px 24px;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}

.catalog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 20px;
}

.catalog-count {
  font-size: 15px;
  color: var(--ink-500);
}

.catalog-count b {
  color: var(--navy-900);
  font-weight: 700;
}

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

.btn-fav-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-full);
  border: 1.5px solid var(--silver-200);
  background: var(--white);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-700);
  transition: all var(--tr-fast);
}

.btn-fav-filter[aria-pressed="true"] {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.btn-fav-filter svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
}

.btn-fav-filter[aria-pressed="true"] svg {
  fill: currentColor;
}

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

.prop-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
  display: flex;
  flex-direction: column;
}

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

.prop-media {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--navy-900);
  cursor: pointer;
}

.prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.prop-card:hover .prop-media img {
  transform: scale(1.05);
}

.prop-badge-wrap {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  z-index: 2;
}

.prop-fav-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  width: 38px;
  height: 38px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
  transition: all var(--tr-fast);
}

.prop-fav-btn svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  transition: transform var(--tr-fast);
}

.prop-fav-btn[aria-pressed="true"] {
  color: var(--err);
}

.prop-fav-btn[aria-pressed="true"] svg {
  fill: var(--err);
  stroke: var(--err);
}

.prop-fav-btn:hover {
  transform: scale(1.1);
}

.prop-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.prop-price {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 700;
  color: var(--navy-900);
  letter-spacing: -0.01em;
}

.prop-price s {
  font-family: var(--sans);
  font-size: 15px;
  color: var(--ink-400);
  margin-left: 8px;
  font-weight: 400;
}

.prop-sqm-price {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gold-600);
}

.prop-title {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy-900);
  line-height: 1.35;
  margin-bottom: 6px;
}

.prop-loc {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  color: var(--ink-500);
  margin-bottom: 18px;
}

.prop-loc svg {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

.prop-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 14px 0;
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
  margin-top: auto;
  margin-bottom: 18px;
  list-style: none;
}

.spec-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.spec-cell svg {
  width: 18px;
  height: 18px;
  stroke: var(--navy-700);
  stroke-width: 1.8;
  fill: none;
  margin-bottom: 4px;
}

.spec-cell .val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--navy-900);
}

.spec-cell .lbl {
  font-size: 11px;
  color: var(--ink-400);
}

.prop-card-actions {
  display: flex;
  gap: 10px;
}

.prop-card-actions .btn {
  flex: 1;
}

@media (max-width: 1024px) {
  .catalog-filters {
    grid-template-columns: 1fr 1fr;
  }

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

@media (max-width: 680px) {
  .catalog-filters {
    grid-template-columns: 1fr;
  }

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

/* Empty state */
.catalog-empty {
  grid-column: 1 / -1;
  background: var(--white);
  border: 2px dashed var(--silver-300);
  border-radius: var(--r-xl);
  padding: 48px 24px;
  text-align: center;
}

.catalog-empty h3 {
  margin-bottom: 8px;
}

.catalog-empty p {
  color: var(--ink-500);
  max-width: 34em;
  margin: 0 auto 24px;
}

/* ==========================================================================
   SERVICIOS
   ========================================================================== */
.services-section {
  background: var(--sand-50);
}

.services-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

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

.service-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 32px 24px;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--gold-400);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-lg);
  background: var(--gold-50);
  color: var(--gold-600);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.service-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

.service-card h3 {
  font-family: var(--sans);
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 12px;
}

.service-card p {
  font-size: 14.5px;
  color: var(--ink-500);
  line-height: 1.6;
  margin-bottom: 20px;
}

.service-features {
  list-style: none;
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--silver-100);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--ink-700);
  margin-bottom: 8px;
}

.service-features li:last-child {
  margin-bottom: 0;
}

.service-features svg {
  width: 14px;
  height: 14px;
  color: var(--gold-600);
  flex-shrink: 0;
}

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

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   CASOS DE ÉXITO REALES
   ========================================================================== */
.cases-section {
  background: var(--sand-100);
}

.cases-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 48px;
}

.cases-carousel-wrap {
  position: relative;
  overflow: hidden;
  user-select: none;
}

.cases-track {
  display: flex;
  gap: 28px;
  transition: transform 0.52s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Cada tarjeta: 33.33% menos gap proporcional */
.case-card {
  flex: 0 0 calc(33.333% - 19px);
  min-width: 0;
}

.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  border: 1.5px solid var(--silver-200);
  color: var(--navy-900);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  transition: all var(--tr-fast);
  font-size: 20px;
  padding: 0;
}

.carousel-nav-btn:hover {
  background: var(--navy-800);
  color: var(--white);
  border-color: var(--navy-800);
  box-shadow: var(--shadow-lg);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav-btn.is-prev {
  left: -24px;
}

.carousel-nav-btn.is-next {
  right: -24px;
}

.carousel-dots {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--silver-300);
  border: none;
  cursor: pointer;
  transition: all var(--tr-fast);
  padding: 0;
}

.carousel-dot.is-active {
  background: var(--navy-800);
  width: 24px;
  border-radius: 4px;
}

.carousel-counter {
  text-align: center;
  margin-top: 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-400);
  letter-spacing: 0.08em;
}

@media (max-width: 1024px) {
  .case-card {
    flex: 0 0 calc(50% - 14px);
  }
}

@media (max-width: 640px) {
  .case-card {
    flex: 0 0 calc(100%);
  }
  .carousel-nav-btn {
    display: none;
  }
}

.case-card {
  background: var(--white);
  border-radius: var(--r-xl);
  overflow: hidden;
  border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform var(--tr-base), box-shadow var(--tr-base);
  cursor: default;
}

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

.case-media {
  position: relative;
  aspect-ratio: 16/10;
  background: var(--navy-900);
  overflow: hidden;
}

.case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.case-tag {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(11, 27, 44, 0.88);
  backdrop-filter: blur(6px);
  color: var(--gold-400);
  padding: 4px 12px;
  border-radius: var(--r-full);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.case-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

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

.case-names {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--navy-900);
}

.case-loc {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-400);
}

.case-desc {
  font-size: 14.5px;
  color: var(--ink-700);
  line-height: 1.6;
  margin-bottom: 18px;
}

.case-stat-badge {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--gold-50);
  border-radius: var(--r-md);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gold-600);
}

.case-stat-badge svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

.cases-notice {
  margin-top: 36px;
  text-align: center;
  font-size: 13.5px;
  color: var(--ink-400);
}

/* casos responsive handled in carousel rules above */

/* ==========================================================================
   CAPTACIÓN DE PROPIETARIOS («¿Tienes un inmueble?»)
   ========================================================================== */
.owner-section {
  background: var(--navy-800);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.owner-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 162, 77, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.owner-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}

.owner-content h2 {
  color: var(--white);
  margin-bottom: 20px;
}

.owner-content .lead {
  color: var(--silver-300);
  margin-bottom: 36px;
}

.owner-steps {
  list-style: none;
  display: grid;
  gap: 20px;
}

.owner-step-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.owner-step-num {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gold-500);
  color: var(--navy-900);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.owner-step-text b {
  display: block;
  font-size: 16px;
  color: var(--white);
  margin-bottom: 2px;
}

.owner-step-text span {
  font-size: 14px;
  color: var(--silver-300);
  line-height: 1.5;
}

.owner-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px;
  color: var(--navy-900);
  box-shadow: var(--shadow-xl);
}

.owner-card-head {
  margin-bottom: 24px;
}

.owner-card-head h3 {
  font-size: 24px;
  margin-bottom: 6px;
}

.owner-card-head p {
  font-size: 14px;
  color: var(--ink-500);
}

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

.form-full {
  grid-column: 1 / -1;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 5px;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  height: 46px;
  border: 1.5px solid var(--silver-200);
  background: var(--white);
  color: var(--navy-900);
  border-radius: var(--r-md);
  padding: 0 14px;
  font-size: 14.5px;
  transition: border-color var(--tr-fast), box-shadow var(--tr-fast);
}

.form-field textarea {
  height: 84px;
  padding: 10px 14px;
  resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--gold-500);
  box-shadow: 0 0 0 4px rgba(201, 162, 77, 0.15);
  outline: none;
}

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

.form-chips label {
  position: relative;
  cursor: pointer;
  flex: 1;
}

.form-chips input {
  position: absolute;
  opacity: 0;
}

.form-chips span {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  border: 1.5px solid var(--silver-200);
  border-radius: var(--r-full);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-500);
  transition: all var(--tr-fast);
}

.form-chips input:checked + span {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: var(--white);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--ink-500);
  margin-top: 12px;
}

.form-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-500);
  margin-top: 2px;
  flex-shrink: 0;
}

.form-check a, .form-check button {
  color: var(--navy-800);
  font-weight: 600;
  text-decoration: underline;
}

.form-done-box {
  padding: 24px 12px;
  text-align: center;
}

.form-done-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ok);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.form-done-icon svg {
  width: 28px;
  height: 28px;
  stroke: currentColor;
  stroke-width: 3;
  fill: none;
}

@media (max-width: 900px) {
  .owner-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .owner-card {
    padding: 24px;
  }
}

/* ==========================================================================
   VALORACIÓN DE VIVIENDA (CTA STRIP)
   ========================================================================== */
.valuation-cta-section {
  background: linear-gradient(135deg, var(--gold-100) 0%, var(--sand-50) 100%);
  border-top: 1px solid var(--gold-400);
  border-bottom: 1px solid var(--gold-400);
  padding: 64px 0;
}

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

.valuation-cta-text h3 {
  font-size: 32px;
  margin-bottom: 8px;
}

.valuation-cta-text p {
  font-size: 16px;
  color: var(--ink-700);
  max-width: 36em;
}

/* ==========================================================================
   ZONAS
   ========================================================================== */
.zones-section {
  background: var(--sand-50);
}

.zones-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 36px;
}

.zone-chip-btn {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--r-lg);
  padding: 16px;
  text-align: left;
  transition: all var(--tr-fast);
  display: flex;
  flex-direction: column;
}

.zone-chip-btn:hover {
  border-color: var(--gold-500);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.zone-chip-btn b {
  font-size: 15px;
  color: var(--navy-900);
}

.zone-chip-btn span {
  font-size: 12.5px;
  color: var(--ink-400);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .zones-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

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

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq-section {
  background: var(--sand-100);
}

.faq-container {
  max-width: 840px;
  margin: 36px auto 0;
}

details.faq-item {
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--r-lg);
  margin-bottom: 12px;
  overflow: hidden;
  transition: border-color var(--tr-fast);
}

details.faq-item[open] {
  border-color: var(--gold-500);
}

summary.faq-q {
  padding: 20px 24px;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--navy-900);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
}

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

summary.faq-q svg {
  width: 18px;
  height: 18px;
  stroke: var(--gold-600);
  stroke-width: 2.2;
  fill: none;
  transition: transform var(--tr-base);
  flex-shrink: 0;
}

details.faq-item[open] summary.faq-q svg {
  transform: rotate(180deg);
}

.faq-a {
  padding: 0 24px 22px;
  color: var(--ink-700);
  font-size: 15px;
  line-height: 1.65;
}

/* ==========================================================================
   CONTACTO
   ========================================================================== */
.contact-section {
  background: var(--navy-900);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  color: var(--white);
  margin-bottom: 16px;
}

.contact-info .lead {
  color: var(--silver-300);
  margin-bottom: 36px;
}

.contact-channels {
  display: grid;
  gap: 20px;
}

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

.contact-channel-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-md);
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-channel-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
}

.contact-channel-item b {
  display: block;
  font-size: 15px;
  color: var(--white);
  margin-bottom: 2px;
}

.contact-channel-item p,
.contact-channel-item a {
  font-size: 14.5px;
  color: var(--silver-300);
}

.contact-channel-item a:hover {
  color: var(--gold-400);
}

.contact-card {
  background: var(--white);
  border-radius: var(--r-xl);
  padding: 36px;
  color: var(--navy-900);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }

  .contact-card {
    padding: 24px;
  }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer.site-footer {
  background: #071320;
  color: var(--silver-500);
  padding: 64px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

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

.footer-brand .brand-svg-full {
  height: 44px;
  width: auto;
  color: var(--white);
  margin-bottom: 16px;
}

.footer-brand p {
  font-size: 14px;
  color: var(--silver-500);
  max-width: 30em;
  line-height: 1.6;
}

.footer-col h4 {
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 18px;
}

.footer-links {
  list-style: none;
  display: grid;
  gap: 10px;
}

.footer-links a, .footer-links button {
  font-size: 14px;
  color: var(--silver-500);
  text-align: left;
}

.footer-links a:hover, .footer-links button:hover {
  color: var(--gold-400);
}

.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}

.version-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--silver-300);
  font-size: 12px;
}

.version-pill::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-500);
}

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

/* ==========================================================================
   MODAL / DIALOG (Ficha de Inmueble y Legal)
   ========================================================================== */
dialog {
  border: 0;
  padding: 0;
  border-radius: var(--r-xl);
  max-width: 880px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 40px);
  background: var(--white);
  color: var(--navy-900);
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.45);
  margin: auto;
  overflow: hidden;
}

dialog::backdrop {
  background: rgba(11, 27, 44, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.dialog-wrap {
  position: relative;
  max-height: calc(100vh - 40px);
  overflow-y: auto;
}

.dialog-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: var(--r-full);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-900);
  transition: transform var(--tr-fast);
}

.dialog-close-btn:hover {
  transform: scale(1.1);
}

.dialog-close-btn svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 2.2;
  fill: none;
}

.dlg-prop-media {
  aspect-ratio: 16/9;
  background: var(--navy-900);
  overflow: hidden;
  position: relative;
}

.dlg-prop-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.dlg-prop-content {
  padding: 32px;
}

.dlg-price-row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 8px;
}

.dlg-price {
  font-family: var(--serif);
  font-size: 34px;
  font-weight: 700;
  color: var(--navy-900);
}

.dlg-price s {
  font-family: var(--sans);
  font-size: 18px;
  color: var(--ink-400);
}

.dlg-specs-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 20px 0;
  margin: 20px 0;
  border-top: 1px solid var(--silver-200);
  border-bottom: 1px solid var(--silver-200);
}

.dlg-spec-box dt {
  font-size: 12px;
  color: var(--ink-400);
  margin-bottom: 2px;
}

.dlg-spec-box dd {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-900);
}

.dlg-desc {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--ink-700);
  margin-bottom: 28px;
}

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

.dlg-actions .btn {
  flex: 1 1 200px;
}

/* Legal Dialog Content */
.legal-content {
  padding: 36px 32px;
}

.legal-content h2 {
  font-size: 28px;
  margin-bottom: 16px;
}

.legal-content h3 {
  font-family: var(--sans);
  font-size: 17px;
  margin: 20px 0 6px;
}

.legal-content p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--ink-700);
}

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

  .dlg-prop-content {
    padding: 20px;
  }
}

/* ==========================================================================
   FLOATING ACTION BUTTON (WhatsApp direct)
   ========================================================================== */
.fab-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 14px 22px;
  border-radius: var(--r-full);
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
  transform: translateY(100px);
  opacity: 0;
  transition: all var(--tr-base);
}

.fab-whatsapp.visible {
  transform: translateY(0);
  opacity: 1;
}

.fab-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  background: #20BA5A;
}

.fab-whatsapp svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

@media (max-width: 600px) {
  .fab-whatsapp {
    bottom: 16px;
    right: 16px;
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ==========================================================================
   VERSIÓN FINAL: portada, comprar/alquilar, carrusel, páginas, blog, pie
   ========================================================================== */
header.site-header.on-page {
  background: rgba(11, 27, 44, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  padding: 10px 0;
}

/* Portada */
.hx {
  position: relative;
  overflow: hidden;
  color: var(--white);
  padding: 140px 0 128px;
  background:
    radial-gradient(900px 520px at 88% 18%, rgba(201, 162, 77, 0.18), transparent 62%),
    linear-gradient(135deg, #0B1B2C 0%, #142B45 55%, #1D3B5C 100%);
}
.hx-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: center;
}
.hx h1 {
  color: var(--white);
  font-size: clamp(40px, 5.2vw, 72px);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.hx h1 em {
  font-style: italic;
  color: var(--gold-400);
}
.hx-sub {
  margin-top: 26px;
  padding-left: 18px;
  border-left: 3px solid var(--gold-500);
  font-size: clamp(18px, 1.7vw, 23px);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.9);
}
.hx-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 40px;
}
.hx-photo {
  position: relative;
  justify-self: end;
  width: min(100%, 440px);
}
.hx-photo::before {
  content: "";
  position: absolute;
  inset: 20px -20px -20px 20px;
  border: 2px solid var(--gold-500);
  border-radius: var(--r-xl);
  opacity: 0.75;
}
.hx-photo img {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 18%;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-xl);
}

/* Comprar / Alquilar */
.ops {
  position: relative;
  z-index: 5;
  margin-top: -48px;
  padding: 0 0 8px;
}
.ops-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.op-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.op-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.op-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-100);
  color: var(--gold-600);
  margin-bottom: 6px;
}
.op-ico svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.op-card h3 { font-size: 30px; }
.op-card p { color: var(--ink-500); max-width: 30em; }
.op-link {
  margin-top: 6px;
  display: inline-flex;
  gap: 8px;
  font-weight: 700;
  color: var(--navy-800);
}

/* Propiedades destacadas */
.feat-section { padding: 72px 0 96px; }
.feat-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.feat-nav { display: flex; gap: 10px; flex-shrink: 0; }
.feat-arrow {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--silver-300);
  background: var(--white);
  color: var(--navy-800);
  font-size: 20px;
  line-height: 1;
  transition: all var(--tr-base);
}
.feat-arrow:hover { background: var(--navy-800); color: var(--white); border-color: var(--navy-800); }
.feat-track {
  display: flex;
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 6px 4px 24px;
  margin: 0 -4px;
  -webkit-overflow-scrolling: touch;
}
.feat-track::-webkit-scrollbar { display: none; }
.feat-track > .prop-card {
  flex: 0 0 calc((100% - 56px) / 3);
  min-width: 0;
  scroll-snap-align: start;
}
.feat-more { display: flex; justify-content: center; margin-top: 8px; }
@media (max-width: 1023px) {
  .feat-track > .prop-card { flex-basis: calc((100% - 28px) / 2); }
}

/* Cabecera de páginas interiores */
.page-head {
  padding: 140px 0 56px;
  color: var(--white);
  background: linear-gradient(135deg, #0B1B2C 0%, #142B45 100%);
}
.page-head h1 { color: var(--white); font-size: clamp(30px, 4vw, 50px); max-width: 18em; }
.page-head p { margin-top: 14px; max-width: 42em; color: rgba(255, 255, 255, 0.82); font-size: 18px; }
.catalog-title-row { justify-content: flex-start; }

/* Blog */
.blog-section { padding: 72px 0 96px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: start;
}
.blog-card {
  padding: 32px;
  background: var(--white);
  border: 1px solid var(--silver-200);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-sm);
}
.blog-tag {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-600);
}
.blog-card h3 { margin: 10px 0 12px; font-size: 24px; }
.blog-card > p { color: var(--ink-500); }
.blog-card summary {
  margin-top: 18px;
  cursor: pointer;
  font-weight: 700;
  color: var(--navy-800);
  list-style: none;
}
.blog-card summary::-webkit-details-marker { display: none; }
.blog-card summary::after { content: " \2192"; color: var(--gold-600); }
.blog-card details[open] summary::after { content: " \2191"; }
.blog-body { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--silver-200); }
.blog-body p { margin-bottom: 12px; }
.blog-body ul, .blog-body ol { margin: 0 0 14px 20px; }
.blog-body li { margin-bottom: 6px; }

/* Pie: placa API */
.footer-plaque { margin-top: 20px; max-width: 280px; }
.footer-plaque img {
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}

@media (max-width: 900px) {
  .hx { padding: 112px 0 112px; }
  .hx-grid { grid-template-columns: 1fr; gap: 48px; }
  .hx-photo { justify-self: center; width: min(86%, 380px); }
  .hx-photo::before { inset: 14px -14px -14px 14px; }
  .ops-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .feat-head { align-items: flex-start; flex-direction: column; }
  .feat-nav { display: none; }
}
@media (max-width: 639px) {
  .feat-track > .prop-card { flex-basis: 86%; }
  .feat-section { padding: 56px 0 72px; }
  .page-head { padding: 112px 0 40px; }
  .hx-actions .btn { flex: 1 1 100%; }
}


/* Portada con carrusel de inmuebles */
.hero-section { min-height: 88vh; padding: 140px 0 120px; }
.hero-title { font-size: clamp(40px, 5.4vw, 74px); line-height: 1.06; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-sub {
  margin: 0 0 40px;
  padding-left: 18px;
  border-left: 3px solid var(--gold-500);
  max-width: 28em;
  font-size: clamp(18px, 1.8vw, 24px);
  font-weight: 500;
  line-height: 1.4;
  color: rgba(255,255,255,.94);
  text-shadow: 0 1px 12px rgba(0,0,0,.4);
}
.hero-overlay { background: linear-gradient(90deg, rgba(11,27,44,.86) 0%, rgba(11,27,44,.62) 48%, rgba(11,27,44,.30) 100%) !important; }
@media (max-width: 768px) {
  .hero-section { min-height: 78vh; padding: 110px 0 90px; }
  .hero-controls { display: none; }
  .hero-dots { left: 50%; transform: translateX(-50%); bottom: 20px; }
  .hero-actions .btn { flex: 1 1 100%; }
}

/* Blog */
.blog-intro { max-width: 1240px; }
.blog-grid { grid-template-columns: repeat(2, 1fr); gap: 32px; align-items: stretch; }
.blog-card {
  display: flex; flex-direction: column; padding: 0; overflow: hidden;
  border-radius: var(--r-xl); border: 1px solid var(--silver-200);
  box-shadow: var(--shadow-md);
  transition: transform var(--tr-base), box-shadow var(--tr-base);
}
.blog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.blog-cover {
  position: relative; height: 170px; display: flex; align-items: flex-end; padding: 22px 28px;
  color: var(--white);
  background:
    radial-gradient(260px 160px at 90% 10%, rgba(201,162,77,.35), transparent 70%),
    linear-gradient(135deg, #0B1B2C, #1D3B5C);
}
.blog-cover svg { position: absolute; right: 26px; top: 24px; width: 64px; height: 64px; fill: none; stroke: var(--gold-400); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: .95; }
.blog-cover .blog-tag { background: var(--gold-500); color: var(--navy-900); padding: 5px 12px; border-radius: var(--r-full); font-size: 11.5px; }
.blog-card-body { display: flex; flex-direction: column; flex: 1; padding: 28px; }
.blog-meta { font-size: 13px; color: var(--ink-400); margin-bottom: 10px; }
.blog-card h3 { margin: 0 0 12px; font-size: clamp(21px, 2vw, 26px); line-height: 1.25; }
.blog-card h3 a:hover { color: var(--gold-600); }
.blog-card-body > p { color: var(--ink-500); margin-bottom: 20px; }
.blog-more { margin-top: auto; font-weight: 700; color: var(--navy-800); display: inline-flex; gap: 8px; }
.blog-more:hover { color: var(--gold-600); }

.post { padding: 64px 0 96px; }
.post-wrap { max-width: 780px; margin: 0 auto; padding: 0 24px; }
.post-back { display: inline-flex; gap: 8px; font-weight: 600; color: var(--gold-600); margin-bottom: 28px; }
.post-lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-700); line-height: 1.7; margin-bottom: 8px; }
.post h2 { font-size: clamp(24px, 2.6vw, 32px); margin: 44px 0 14px; }
.post p { margin-bottom: 16px; line-height: 1.75; font-size: 17px; }
.post ul, .post ol { margin: 0 0 20px; padding: 0; list-style: none; counter-reset: n; }
.post li { position: relative; padding: 12px 16px 12px 52px; margin-bottom: 10px; background: var(--white); border: 1px solid var(--silver-200); border-radius: var(--r-md); line-height: 1.6; }
.post ul li::before { content: ""; position: absolute; left: 18px; top: 18px; width: 18px; height: 18px; border-radius: 50%; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B1B2C' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center/12px no-repeat; }
.post ol li { counter-increment: n; }
.post ol li::before { content: counter(n); position: absolute; left: 14px; top: 11px; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--navy-800); color: var(--white); font-weight: 700; font-size: 14px; }
.post-cta { margin-top: 48px; padding: 32px; border-radius: var(--r-xl); color: var(--white); background: linear-gradient(135deg, #0B1B2C, #1D3B5C); }
.post-cta h3 { color: var(--white); font-size: 26px; margin-bottom: 8px; }
.post-cta p { color: rgba(255,255,255,.85); margin-bottom: 20px; }
.post-cta .btn { margin-right: 10px; margin-bottom: 6px; }
.post-others { margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--silver-200); }
.post-others h3 { font-size: 20px; margin-bottom: 14px; }
.post-others a { display: block; padding: 12px 0; font-weight: 600; color: var(--navy-800); border-bottom: 1px solid var(--silver-100); }
.post-others a:hover { color: var(--gold-600); }
@media (max-width: 900px) { .blog-grid { grid-template-columns: 1fr; } .post-cta { padding: 24px; } }


.ops { margin-top: 0; padding: 48px 0 8px; }

/* Ajustes finales: portada más contenida, menos texto, formulario primero en móvil */
.hero-title { font-size: clamp(34px, 4.4vw, 60px); }
.hero-sub { font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 34px; }
@media (max-width: 768px) {
  .hero-title { font-size: 30px; line-height: 1.12; margin-bottom: 14px; }
  .hero-sub { font-size: 16px; margin-bottom: 26px; }
  .owner-card { order: -1; }
  .owner-step-text span { display: none; }
  .owner-step-item { align-items: center; }
}

.footer-plaque { margin: 0 0 26px; max-width: 250px; }
.footer-plaque img { border-radius: 10px; box-shadow: 0 16px 36px rgba(0,0,0,.4); }
.footer-logo-below { margin-top: 0; }

.footer-plaque { margin: 4px 0 0; max-width: 170px; }
.footer-plaque img { border-radius: 8px; box-shadow: 0 10px 26px rgba(0,0,0,.4); display: block; }
