/* ==========================================================================
   CCE Capital — Real Estate Investment Group
   Design tokens: Navy #062b42 / White #FFFFFF / Gold #998044
   ========================================================================== */

:root {
  --navy: #062b42;
  --navy-ink: #041f30;
  --navy-soft: #0d4263;
  --gold: #998044;
  --gold-light: #b39a5f;
  --gold-dim: #c9b98d;
  --gold-text: #7c6635; /* darker gold, AA-safe for text on white/paper backgrounds */
  --white: #ffffff; /* literal white — used for text/surfaces on dark or photo backgrounds, never flips */
  --bg-page: #ffffff; /* adaptive page background */
  --paper: #f6f6f9;
  --paper-deep: #efeef4;
  --ink: #201e2b;
  --gray: #6c6a78;
  --gray-light: #9a97a6;
  --line: #e4e3ea;

  --radius-card: 2px;
  --radius-input: 4px;
  --radius-pill: 999px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --container: 1280px;
}


* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-page);
  color: var(--ink);
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  line-height: 1.15;
  margin: 0;
  color: var(--navy);
}

p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

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

.eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-text);
  font-weight: 500;
  margin-bottom: 14px;
  display: block;
}

.section {
  padding: 64px 0;
}

@media (min-width: 1024px) {
  .section { padding: 96px 0; }
}

.section-tight { padding: 48px 0; }

.section-head {
  max-width: 640px;
  margin-bottom: 40px;
}

.section-head.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-head h2 {
  font-size: clamp(2rem, 3.6vw, 2.75rem);
}

.lede {
  font-size: 1.05rem;
  color: var(--gray);
  max-width: 60ch;
  margin-top: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: var(--radius-pill);
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 500;
  text-transform: uppercase;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: transform 0.35s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease), border-color 0.3s var(--ease);
}

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

.btn-primary {
  background: var(--navy);
  color: var(--white);
}
.btn-primary:hover { background: var(--navy-soft); }

.btn-gold {
  background: var(--gold-text);
  color: var(--white);
}
.btn-gold:hover { background: var(--gold); }

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

.btn-outline-light {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-light:hover { background: var(--white); color: var(--navy); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  padding: 10px 0;
  border-radius: 0;
  font-size: 13px;
}
.btn-ghost svg { transition: transform 0.3s var(--ease); }
.btn-ghost:hover svg { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  background: transparent;
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}

.site-header.scrolled {
  background: rgba(255,255,255,0.66);
  border-bottom-color: rgba(6,43,66,0.08);
  box-shadow: 0 12px 30px -20px rgba(6,43,66,0.35);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

@media (min-width: 768px) {
  .nav-row { padding: 0 40px; }
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand img { height: 40px; width: auto; }

.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
}

@media (min-width: 900px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-text);
  position: relative;
  padding: 10px 18px;
  transition: color 0.35s var(--ease);
}

.nav-links a:hover {
  color: var(--gold);
}

.nav-links a.active {
  color: var(--gold-text);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-actions .btn { display: none; padding: 12px 26px; box-shadow: none; }
@media (min-width: 900px) { .nav-actions .btn { display: inline-flex; } }

.nav-actions .btn-gold {
  background: transparent;
  color: var(--gold-text);
  border: 1px solid var(--gold-text);
}
.nav-actions .btn-gold:hover { background: var(--gold-text); color: var(--white); }

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 10px;
}
@media (min-width: 900px) { .nav-toggle { display: none; } }
.nav-toggle span {
  width: 22px; height: 1px; background: var(--navy);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: rgba(255,255,255,0.92);
  border-top: 1px solid rgba(6,43,66,0.08);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  overflow: hidden;
}
.mobile-menu.open { display: flex; }
@media (min-width: 900px) { .mobile-menu { display: none !important; } }
.mobile-menu a:not(.btn) {
  padding: 16px 24px;
  border-bottom: 1px solid rgba(153,128,68,0.16);
  font-size: 14px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.mobile-menu .btn { margin: 20px 24px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 100dvh;
  margin-top: -85px;
  overflow: hidden;
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 85px 24px 64px;
  color: var(--white);
}
@media (min-width: 768px) {
  .hero-copy { padding: 85px 40px 96px; }
}
@media (min-width: 900px) {
  .hero-copy { max-width: 640px; padding-left: 40px; margin-left: clamp(40px, 7vw, 130px); }
}

.hero h1 {
  color: var(--white);
  font-size: clamp(2.5rem, 5.2vw, 4rem);
  letter-spacing: -0.01em;
}

.hero .lede {
  color: rgba(255,255,255,0.86);
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  margin-top: 20px;
  margin-bottom: 32px;
  max-width: 48ch;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.btn-hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 6px 6px 6px 24px;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.92);
  color: var(--navy);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
  box-shadow: 0 16px 32px -14px rgba(6,43,66,0.3);
  transition: transform 0.35s var(--ease), background 0.3s var(--ease);
}
.btn-hero-pill:active { transform: scale(0.97); }
.btn-hero-pill:hover { background: var(--white); }
.btn-hero-pill .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
  transition: transform 0.35s var(--ease);
}
.btn-hero-pill:hover .icon { transform: rotate(45deg); }

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(3,20,32,0.78) 0%, rgba(3,20,32,0.35) 42%, rgba(3,20,32,0.05) 65%, rgba(3,20,32,0.32) 100%);
}

.hero-stat {
  position: absolute;
  z-index: 2;
  right: 24px;
  bottom: 32px;
  width: 320px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border-radius: 28px;
  border: 1px solid rgba(255,255,255,0.35);
  background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(255,255,255,0.03) 45%, rgba(255,255,255,0.08) 100%);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 24px 48px -20px rgba(3,20,32,0.55),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 0 0 1px rgba(255,255,255,0.06);
}
.hero-stat-value {
  flex-shrink: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 3vw, 2.5rem);
  line-height: 1;
  color: var(--gold-dim);
  letter-spacing: -0.01em;
}
.hero-stat-text {
  margin-top: 0;
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 400;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0;
  color: rgba(255,255,255,0.82);
}
.hero-stat-text-lead {
  font-size: 15px;
}
@media (min-width: 768px) {
  .hero-stat { right: 40px; bottom: 48px; width: 360px; padding: 12px 16px; }
}
@media (min-width: 1100px) {
  .hero-stat { right: clamp(40px, 5vw, 100px); }
}
@media (max-width: 560px) {
  .hero { flex-wrap: wrap; }
  .hero-copy { flex: 1 1 100%; }
  .hero-stat {
    position: static;
    flex: 1 1 100%;
    width: auto;
    margin: 0 24px 40px;
    background: linear-gradient(160deg, rgba(255,255,255,0.16), rgba(6,43,66,0.35) 45%, rgba(255,255,255,0.08) 100%);
  }
}

/* ---------- Category tiles (Casas / Departamentos / Terrenos) ---------- */
.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; }
}

.category-card {
  position: relative;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 4 / 4.6;
}

.category-card img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.7s var(--ease);
}
.category-card:hover img { transform: scale(1.06); }

.category-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,28,0.65) 0%, rgba(18,16,28,0) 30%, rgba(18,16,28,0) 65%, rgba(18,16,28,0.7) 100%);
  z-index: 1;
}

.category-card-body {
  position: absolute; left: 0; right: 0; top: 0; bottom: 0;
  z-index: 2;
  padding: 32px 28px;
  color: var(--white);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.categories-section .section-head h2,
.category-card-body h3 {
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
}

.categories-section {
  position: relative;
  background: var(--navy);
  overflow: hidden;
}

.categories-section .container {
  position: relative;
  z-index: 1;
}

.categories-section::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% - 356px);
  background: var(--white);
  z-index: 0;
  pointer-events: none;
}

.categories-section::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 96px;
  height: 260px;
  background: linear-gradient(180deg,
    var(--white) 0%,
    #eef4f8 20%,
    #a6c3d4 45%,
    #3f7592 68%,
    var(--navy-soft) 85%,
    var(--navy) 100%);
  z-index: 0;
  pointer-events: none;
}

@media (max-width: 767px) {
  .categories-section::before { height: calc(100% - 244px); }
  .categories-section::after { height: 180px; bottom: 64px; }
}

.category-card-body h3 {
  color: var(--white);
  font-size: 1.7rem;
  line-height: 1.2;
}

.category-card-body .tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 6px 6px 20px;
  width: fit-content;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
}

.category-card-body .tag .tag-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  flex-shrink: 0;
}

.category-card-body .tag i { font-size: 15px; }
.category-card-body .tag .tag-icon i { transition: transform 0.3s var(--ease); }
.category-card:hover .category-card-body .tag .tag-icon i { transform: translateX(3px); }

/* ---------- Inversión destacada ---------- */
.featured-invest-section {
  background: var(--navy);
  padding-top: 140px;
}
.featured-invest-head {
  display: flex;
  flex-wrap: wrap-reverse;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: -120px;
  position: relative;
  z-index: 2;
}
.featured-invest-title {
  margin-top: 10px;
  transform: translateY(-80px);
  width: min(800px, 100%);
  text-align: center;
  color: var(--white);
  font-size: clamp(3.25rem, 7.5vw, 6.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.featured-invest-title a { color: inherit; text-decoration: none; transition: opacity 0.3s var(--ease); }
.featured-invest-title a:hover { opacity: 0.8; }
.featured-invest-eyebrow-col {
  max-width: 340px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 170px;
  position: relative;
  left: -20px;
}
.featured-invest-eyebrow-col .eyebrow { font-size: 17px; white-space: nowrap; font-weight: 700; }
.featured-invest-eyebrow-col .lede { margin-top: 12px; color: rgba(255, 255, 255, 0.78); }
.featured-invest-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: end;
}
@media (min-width: 900px) {
  .featured-invest-row { grid-template-columns: 1fr auto; gap: 48px; }
}
.featured-invest-media {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 4/3;
  overflow: hidden;
  border-radius: var(--radius-card);
}
.featured-invest-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-invest-media a { display: block; position: relative; height: 100%; }
.img-ilus-label { position: absolute; left: 14px; bottom: 14px; padding: 5px 10px; background: rgba(255,255,255,0.92); color: var(--navy); font-size: 12px; font-weight: 600; letter-spacing: 0.04em; pointer-events: none; }

.featured-invest-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy);
  font-size: 22px;
  flex-shrink: 0;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
}
.featured-invest-arrow i { transition: transform 0.35s var(--ease); }
.featured-invest-arrow:hover { background: rgba(255, 255, 255, 0.85); }
.featured-invest-arrow:hover i { transform: rotate(45deg); }

/* ---------- Steps ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 768px) {
  .steps-grid { grid-template-columns: repeat(3, 1fr); gap: 48px; }
}

.step {
  padding-top: 24px;
}

.step-number {
  font-family: "Manrope", serif;
  font-size: 2.75rem;
  color: var(--gold-dim);
  font-weight: 700;
  display: block;
  margin-bottom: 14px;
}

.steps-section-dark .section-head h2,
.step h3 {
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
}

.step h3 {
  font-size: 1.4rem;
  margin-bottom: 10px;
}

.step p { color: var(--gray); font-size: 0.95rem; }

.steps-section-dark {
  position: relative;
  background: var(--navy) url("../img/steps-bg-selva.png") center center / cover no-repeat;
  overflow: hidden;
}
.steps-section-dark::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--navy) 0%, rgba(6,43,66,0) 280px),
    rgba(6,43,66, 0.93);
  z-index: 0;
}
.steps-section-dark .container {
  position: relative;
  z-index: 1;
}
.steps-section-dark h2 { color: var(--white); }
.steps-section-dark .lede { color: rgba(255,255,255,0.72); }
.steps-section-dark .step h3 { color: var(--white); }
.steps-section-dark .step p { color: rgba(255,255,255,0.72); }

.steps-cta {
  margin-top: 48px;
  text-align: center;
}

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--white);
  color: var(--navy);
  padding: 80px 0;
  text-align: center;
}

.cta-band-tight { padding-top: 24px; }

.cta-band h2 {
  font-family: "Manrope", sans-serif;
  color: var(--navy);
  font-size: clamp(2rem, 4.2vw, 3.2rem);
  max-width: 780px;
  margin: 0 auto;
}

.cta-band .lede {
  color: var(--navy);
  opacity: 0.72;
  margin: 20px auto 34px;
  text-align: center;
}

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

.cta-band-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.78);
  padding: 64px 0;
}

.footer-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}
@media (min-width: 768px) {
  .footer-row { grid-template-columns: 1fr minmax(280px, 360px); align-items: start; gap: 64px; justify-content: space-between; }
}

.footer-info .wordmark {
  font-family: "Manrope", serif;
  font-size: 1.7rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.footer-info .wordmark strong { color: var(--gold-dim); font-weight: 500; }

.footer-info .tagline {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-top: 6px;
  display: block;
}

.footer-info address,
.footer-phone {
  display: block;
  font-style: normal;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--white);
}
.footer-info address { margin-top: 36px; }
.footer-phone { margin-top: 20px; transition: color 0.25s var(--ease); }
.footer-phone:hover { color: var(--gold-dim); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 40px;
}
.footer-icon {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  color: var(--navy);
  border-radius: var(--radius-pill);
  font-size: 1.25rem;
  transition: background 0.25s var(--ease);
}
.footer-icon:hover { background: var(--gold-dim); }
.footer-pill {
  padding: 9px 24px;
  border: 1px solid rgba(255,255,255,0.7);
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  color: var(--white);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.footer-pill:hover { border-color: var(--gold-dim); color: var(--gold-dim); }

.footer-form label {
  display: block;
  font-size: 0.95rem;
  color: var(--gold-dim);
  margin-bottom: 10px;
}
.footer-form input {
  width: 100%;
  height: 50px;
  padding: 0 20px;
  margin-bottom: 22px;
  background: var(--white);
  color: var(--ink);
  border: 2px solid transparent;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.95rem;
}
.footer-form input::placeholder { color: var(--gray-light); }
.footer-form input:focus { outline: none; border-color: var(--gold-dim); }
.footer-form input.invalid { border-color: #e0736b; }
.footer-submit {
  width: 100%;
  height: 50px;
  margin-top: 6px;
  background: var(--gold-dim);
  color: var(--navy-ink);
  border: 0;
  border-radius: var(--radius-pill);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.footer-submit:hover { background: var(--gold-light); }

/* ---------- Page header (interior pages) ---------- */
.page-header {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.page-header.no-border,
.page-header.no-line {
  border-bottom: none;
}
.page-header .eyebrow { margin-bottom: 10px; }
.page-header h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
}
.page-header.no-border h1 {
  font-size: clamp(2.8rem, 6vw, 4.4rem);
}
.page-header .lede { margin-top: 16px; }
.page-header.centered { text-align: center; }
.page-header.centered .lede { margin-left: auto; margin-right: auto; }
.page-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}
.page-header-logo {
  height: 220px;
  width: auto;
  flex-shrink: 0;
  margin-right: 10%;
  position: absolute;
  right: 13%;
  top: 50%;
  transform: translateY(-50%);
}
@media (max-width: 640px) {
  .page-header-logo { display: none; }
}

/* ---------- Filter bar ---------- */
.filter-bar {
  position: sticky;
  top: 85px;
  z-index: 40;
  background: var(--bg-page);
  padding: 20px 0;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.filter-pill {
  padding: 9px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--line);
  background: transparent;
  font-size: 13px;
  color: var(--gray);
  transition: all 0.25s var(--ease);
}
.filter-pill:hover { border-color: var(--gold-dim); }
.filter-pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.filter-dropdown {
  position: relative;
  min-width: 190px;
}

.filter-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 9px 14px 9px 16px;
  border-radius: var(--radius-input);
  border: 1px solid var(--line);
  background: var(--bg-page);
  color: var(--ink);
  font-size: 13px;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.filter-dropdown-toggle i {
  font-size: 13px;
  color: var(--gray-light);
  transition: transform 0.3s var(--ease);
}
.filter-dropdown-toggle:hover { border-color: var(--gold-dim); }
.filter-dropdown-toggle:focus-visible {
  outline: none;
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(153,128,68,0.15);
}
.filter-dropdown.open .filter-dropdown-toggle {
  border-color: var(--gold-dim);
  box-shadow: 0 0 0 3px rgba(153,128,68,0.15);
}
.filter-dropdown.open .filter-dropdown-toggle i { transform: rotate(180deg); }

.filter-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 50;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  box-shadow: 0 20px 40px -18px rgba(32,30,43,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.filter-dropdown.open .filter-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.filter-dropdown-menu li {
  padding: 9px 12px;
  border-radius: var(--radius-input);
  font-size: 13px;
  color: var(--gray);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.filter-dropdown-menu li:hover { background: var(--paper); color: var(--ink); }
.filter-dropdown-menu li.active {
  background: var(--navy);
  color: var(--white);
}

.filter-count {
  width: 100%;
  text-align: center;
  font-size: 13px;
  color: var(--gray-light);
}

/* ---------- Property grid & cards ---------- */
.property-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-top: 40px;
}
@media (min-width: 640px) {
  .property-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .property-grid { grid-template-columns: repeat(3, 1fr); }
}

.property-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.property-card:hover { border-color: var(--gold-dim); transform: translateY(-3px); }

.property-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.property-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s var(--ease); }
.property-card:hover .property-media img { transform: scale(1.05); }
/* Planos (SVG): se muestran completos, sin recortar */
.property-media img[src$=".svg"] { object-fit: contain; background: #f6f6f9; }

.property-tag {
  position: absolute; top: 14px; left: 14px;
  background: var(--white);
  color: var(--navy);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}

.property-body { padding: 22px; flex: 1; }
.property-zone {
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gold-text);
}
.property-body h3 {
  font-size: 1.3rem;
  margin-top: 8px;
}
.property-subtitle {
  margin: 6px 0 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--gray);
}
.property-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--gray);
}
.property-specs span { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.property-price {
  margin-top: 14px;
  font-family: "Manrope", serif;
  font-size: 1.5rem;
  color: var(--navy);
  font-weight: 700;
}

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--gray);
  display: none;
}
.empty-state.visible { display: block; }
.empty-state h3 { margin-bottom: 10px; }

/* ---------- Yucatán map hero ---------- */
.map-hero {
  padding: 56px 0 40px;
  overflow: hidden;
  /* el mapa sigue hacia abajo y se pierde detrás de las imágenes de las zonas */
  margin-bottom: -260px;
}
.map-hero + .section { position: relative; z-index: 1; }
@media (min-width: 900px) {
  .map-hero-copy { align-self: start; padding-top: 70px; }
}
.map-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  gap: 32px;
}
@media (min-width: 900px) {
  .map-hero-grid { grid-template-columns: 0.85fr 1fr; gap: 24px; }
}
.map-hero-grid > * { min-width: 0; }
.map-hero-copy h1 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); }
.map-hero-copy .lede { margin-top: 16px; max-width: 42ch; }
.map-hero-copy .lede span {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--navy); color: var(--white);
  font-size: 12px; line-height: 1; transform: translateY(-1px);
}

.yucatan-map-wrap { width: 100%; max-width: 420px; margin: 0 0 0 auto; }
@media (min-width: 900px) {
  .yucatan-map-wrap { margin-right: -70px; }
}
.yucatan-map { display: block; width: 100%; height: auto; overflow: visible; }

.map-state,
.map-island {
  fill: var(--navy);
  stroke: var(--navy-soft);
  stroke-width: 1.1;
  stroke-linejoin: round;
  opacity: 0.9;
}

.map-pin { cursor: pointer; }
.map-pin-dot {
  fill: #ffe9a8;
  stroke: #e0b94e;
  stroke-width: 1;
  filter: drop-shadow(0 0 3px #f5c542) drop-shadow(0 0 8px rgba(245, 197, 66, 0.8));
  transition: opacity 0.25s var(--ease);
  animation: pin-twinkle 2.6s ease-in-out infinite;
}
.map-pin-glow {
  fill: rgba(245, 197, 66, 0.35);
  filter: blur(2.5px);
  transition: opacity 0.25s var(--ease);
  animation: pin-twinkle 2.6s ease-in-out infinite;
}
.map-pin-pulse {
  fill: none;
  stroke: #f5c542;
  stroke-width: 1.2;
  transform-box: fill-box;
  transform-origin: center;
  transition: opacity 0.25s var(--ease);
  animation: pin-pulse 2.6s ease-out infinite;
}
.map-pin:nth-of-type(2) * { animation-delay: -0.7s; }
.map-pin:nth-of-type(3) * { animation-delay: -1.5s; }
.map-pin:nth-of-type(4) * { animation-delay: -2.1s; }
.map-pin:nth-of-type(5) * { animation-delay: -1.1s; }
.map-pin:nth-of-type(6) * { animation-delay: -1.8s; }
@keyframes pin-twinkle {
  0%, 100% { opacity: 1; }
  45% { opacity: 0.55; }
  60% { opacity: 1; }
  75% { opacity: 0.7; }
}
@keyframes pin-pulse {
  0% { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(3.2); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .map-pin-dot, .map-pin-glow, .map-pin-pulse { animation: none; }
}
.map-pin-halo {
  fill: var(--white);
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.3);
  filter: drop-shadow(0 6px 14px rgba(6,43,66, 0.35));
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.map-pin-plus {
  stroke: var(--navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}
.map-pin-label {
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 600;
  fill: var(--navy);
  opacity: 0;
  transition: opacity 0.25s var(--ease);
  pointer-events: none;
}

.map-pin:hover .map-pin-dot,
.map-pin:focus-visible .map-pin-dot,
.map-pin:hover .map-pin-glow,
.map-pin:focus-visible .map-pin-glow,
.map-pin:hover .map-pin-pulse,
.map-pin:focus-visible .map-pin-pulse { animation: none; opacity: 0; }
.map-pin:hover .map-pin-halo,
.map-pin:focus-visible .map-pin-halo {
  opacity: 1;
  transform: scale(2.6);
}
.map-pin:hover .map-pin-plus,
.map-pin:focus-visible .map-pin-plus,
.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label { opacity: 1; }

/* ---------- Zones: expanding panels ---------- */
.zone-expand {
  display: flex;
  gap: 10px;
  height: 460px;
}
.zone-panel {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: var(--radius-card);
  flex: 1 1 0;
  min-width: 64px;
  transition: flex-grow 0.65s var(--ease);
}
.zone-panel.is-active { flex-grow: 7; }
.zone-panel img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.zone-panel:hover img { transform: scale(1.05); }
.zone-panel-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(0deg, rgba(32,30,43,0.85) 0%, rgba(32,30,43,0.15) 45%, rgba(32,30,43,0.35) 100%);
  transition: background 0.5s var(--ease);
}
.zone-panel:not(.is-active) .zone-panel-scrim {
  background: linear-gradient(0deg, rgba(32,30,43,0.75) 0%, rgba(32,30,43,0.1) 55%, rgba(32,30,43,0.4) 100%);
}
.zone-panel-num {
  position: absolute; top: 20px; left: 20px; z-index: 2;
  font-size: 12px; letter-spacing: 0.08em; color: rgba(255,255,255,0.7);
}
.zone-panel-title {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  color: var(--white); font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.3rem; white-space: nowrap;
  writing-mode: vertical-rl; transform: rotate(180deg);
  transition: opacity 0.35s var(--ease), writing-mode 0s;
}
.zone-panel.is-active .zone-panel-title { opacity: 0; pointer-events: none; }
.zone-panel-copy {
  position: absolute; left: 24px; right: 24px; bottom: 24px; z-index: 2;
  color: var(--white); opacity: 0; transform: translateY(8px);
  transition: opacity 0.45s var(--ease) 0.15s, transform 0.45s var(--ease) 0.15s;
}
.zone-panel.is-active .zone-panel-copy { opacity: 1; transform: translateY(0); }
.zone-panel-kicker {
  display: block; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim);
}
.zone-panel-desc {
  display: block; margin-top: 8px; font-size: 0.95rem; color: rgba(255,255,255,0.82); max-width: 36ch;
}
.zone-panel-cta {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-dim);
}
.zone-panel-cta i { transition: transform 0.3s var(--ease); }
.zone-panel:hover .zone-panel-cta i { transform: translateX(5px); }

.zone-expand-controls {
  display: flex; align-items: center; gap: 16px; margin-top: 20px;
}
.zone-expand-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--gold-dim); background: transparent; color: var(--ink);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}
.zone-expand-arrow:hover { border-color: var(--gold-text); color: var(--gold-text); }
.zone-expand-count { font-size: 13px; letter-spacing: 0.06em; color: var(--ink); font-variant-numeric: tabular-nums; }

@media (max-width: 767px) {
  .zone-expand { flex-direction: column; height: auto; }
  .zone-panel { height: 72px; flex: none; transition: height 0.5s var(--ease); }
  .zone-panel.is-active { height: 320px; flex-grow: 0; }
  .zone-panel-title {
    writing-mode: initial; transform: none;
    left: 20px; right: 20px; bottom: auto; top: 24px;
    font-size: 1.1rem;
  }
  .zone-panel.is-active .zone-panel-title { opacity: 1; pointer-events: auto; top: 20px; }
  .zone-panel-copy { left: 20px; right: 20px; bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .zone-panel, .zone-panel img, .zone-panel-title, .zone-panel-copy { transition: none; }
}

/* ---------- Zones: cards row ---------- */
.zone-cards {
  display: grid;
  grid-template-columns: 1fr;
  background: var(--navy-ink);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
@media (min-width: 640px) {
  .zone-cards { grid-template-columns: repeat(2, 1fr); }
}
.zone-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 40px clamp(16px, 1.8vw, 32px);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.zone-card:first-child { border-top: 0; }
@media (min-width: 640px) {
  .zone-card:nth-child(2) { border-top: 0; }
  .zone-card:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, 0.12); }
}
.zone-card-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
}
.zone-cards-section { padding-left: 0; padding-right: 0; }
/* la sección se encima al mapa: que su relleno transparente no bloquee los pines */
.zone-cards-section { pointer-events: none; }
.zone-cards-section .zone-cards { pointer-events: auto; }
.zone-card-title { font-size: 1.05rem; font-weight: 700; color: var(--white); }
.zone-card-meta { font-size: 0.85rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); white-space: nowrap; }
.zone-card-img {
  display: block; overflow: hidden; aspect-ratio: 384 / 209.5;
}
.zone-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.9s var(--ease);
}
.zone-card:hover .zone-card-img img { transform: scale(1.05); }
.zone-card { position: relative; }
.zone-card-more {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  text-align: center;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.zone-card-more span {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-text);
  transform: translateY(6px); transition: transform 0.4s var(--ease);
}
.zone-card-more strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 2.2vw, 2rem); font-weight: 600; line-height: 1.1;
  transform: translateY(6px); transition: transform 0.4s var(--ease) 0.05s;
}
.zone-card:hover .zone-card-more,
.zone-card:focus-visible .zone-card-more { opacity: 1; }
.zone-card:hover .zone-card-more span,
.zone-card:hover .zone-card-more strong,
.zone-card:focus-visible .zone-card-more span,
.zone-card:focus-visible .zone-card-more strong { transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .zone-card-img img { transition: none; }
}

/* ---------- Split section (image + text) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}
@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split.reverse .split-media { order: 2; }
}
.split-media { border-radius: var(--radius-card); overflow: hidden; aspect-ratio: 4/5; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); }

/* ---------- About intro (full-width banner + two-column text) ---------- */
.about-intro { padding-top: 24px; }
.about-banner {
  border-radius: var(--radius-card);
  overflow: hidden;
  aspect-ratio: 16/9;
  margin-bottom: 40px;
}
.about-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-intro-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 900px) {
  .about-banner { aspect-ratio: 21/9; }
  .about-intro-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; }
}
.about-intro-lead {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}
.about-intro-support {
  font-size: 0.95rem;
  color: var(--gray);
  line-height: 1.7;
}
.about-intro-highlight {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}
.about-intro-highlight-num {
  font-family: "Manrope", serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.about-intro-highlight-label {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--gold);
  line-height: 1.3;
}

/* ---------- Values / cards ---------- */
.values-section { padding-top: 0; margin-top: -32px; }
.value-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 768px) {
  .value-list { grid-template-columns: repeat(3, 1fr); }
}
.value-item {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1 / 1;
  padding: 36px 32px;
  background: var(--paper);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  justify-self: center;
  transition: background 0.3s var(--ease);
}
.value-item h3 { font-family: "Manrope", -apple-system, "Segoe UI", sans-serif; font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; transition: color 0.3s var(--ease); }
.value-item p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; margin: 0; transition: color 0.3s var(--ease); }
.value-item:hover {
  background: var(--navy);
}
.value-item:hover h3,
.value-item:hover p {
  color: #fff;
}

/* ---------- Llámanos para (nosotros) ---------- */
.call-section {
  padding-top: 0;
}

.call-section h2,
.call-section h3 {
  font-family: "Manrope", sans-serif;
}

.call-list {
  border-top: 1px solid var(--line);
}

.call-item {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.call-item-body { flex: 1; }

.call-arrow {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--navy);
  transition: background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), transform 0.35s var(--ease);
}
.call-arrow:hover {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
  transform: rotate(45deg);
}

@media (min-width: 768px) {
  .call-arrow { width: 72px; height: 72px; }
  .call-arrow svg { width: 28px; height: 28px; }
}

.call-number {
  font-family: "Manrope", serif;
  font-size: 1.4rem;
  color: var(--gold-dim);
  font-weight: 700;
  flex: 0 0 auto;
  width: 40px;
}

.call-item-body h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.call-item-body p {
  color: var(--gray);
  max-width: 60ch;
}

@media (min-width: 768px) {
  .call-item { gap: 56px; padding: 44px 0; }
  .call-number { width: 60px; font-size: 1.6rem; }
}

.call-cta {
  margin-top: 48px;
  text-align: center;
}

.btn-hero-pill-light {
  background: var(--paper);
  box-shadow: none;
  border: 1px solid var(--line);
}
.btn-hero-pill-light:hover { background: var(--white); }

/* ---------- Mapa de zonas ---------- */
.map-container {
  width: 100%;
  height: 420px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  overflow: hidden;
  background: var(--paper);
}
@media (min-width: 768px) {
  .map-container { height: 520px; }
}

.map-section {
  padding-top: 120px;
  padding-left: 0;
  padding-right: 0;
}

.map-section-row {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
@media (min-width: 1024px) {
  .map-section-row {
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    min-height: 480px;
  }
}

.map-section-text-wrap {
  padding: 0 24px;
}
@media (min-width: 1024px) {
  .map-section-text-wrap {
    flex: 0 0 38%;
    max-width: 38%;
    display: flex;
    align-items: center;
    padding-left: max(24px, calc((100vw - var(--container)) / 2 + 24px));
    padding-right: 32px;
  }
}

.map-section-text {
  margin-bottom: 0;
  max-width: 420px;
}

.map-section-text h2 {
  font-family: "Manrope", -apple-system, "Segoe UI", sans-serif;
  font-weight: 700;
}

.map-container-half {
  height: 320px;
}
@media (min-width: 1024px) {
  .map-container-half {
    flex: 1 1 auto;
    width: auto;
    height: auto;
    border: none;
    border-radius: 0;
    margin-left: 0;
    margin-right: max(24px, calc((100vw - var(--container)) / 2 + 24px));
  }
}

.map-pin {
  background: none;
  border: none;
}
.map-pin img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(32, 30, 43, 0.45));
}

.leaflet-popup-content-wrapper {
  border-radius: var(--radius-card);
  font-family: "Manrope", sans-serif;
}
.leaflet-popup-content { margin: 10px 14px; font-size: 0.9rem; color: var(--ink); }
.leaflet-popup-content strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  color: var(--navy);
  font-size: 1.05rem;
}

/* ---------- Stats ---------- */
.stats-band {
  background: var(--paper);
  padding: 56px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  text-align: center;
}
@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}
.stat-num {
  font-family: "Manrope", serif;
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--navy);
  font-weight: 700;
}
.stat-label {
  font-size: 12.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--gray);
  margin-top: 8px;
}

/* ---------- Form (Vende tu propiedad) ---------- */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
}
@media (min-width: 968px) {
  .form-grid { grid-template-columns: 0.9fr 1.1fr; gap: 64px; }
}

.field {
  margin-bottom: 22px;
}
.field label {
  display: block;
  font-size: 13px;
  color: var(--navy);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--bg-page);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(153,128,68,0.15);
}
.field textarea { resize: vertical; min-height: 120px; }
.field-row { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 640px) { .field-row { grid-template-columns: 1fr 1fr; } }
.field-error {
  font-size: 12.5px;
  color: #b23b3b;
  margin-top: 6px;
  display: none;
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #b23b3b; }
.field.invalid .field-error { display: block; }

.form-success {
  display: none;
  padding: 28px;
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius-card);
  background: var(--paper);
  text-align: center;
}
.form-success.visible { display: block; }
.form-success h3 { margin-bottom: 8px; }
.form-success p { color: var(--gray); }

form.submitted .field { display: none; }
form.submitted .form-submit { display: none; }

/* ---------- Popup "Agenda una llamada" ---------- */
.agenda-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(3,20,32,0.6);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
  overflow-y: auto;
}
.agenda-modal-overlay.open { opacity: 1; visibility: visible; }

.contact-card {
  position: relative;
  width: 100%;
  max-width: 960px;
  max-height: 90vh;
  overflow-y: auto;
  margin: auto;
  background: var(--paper);
  border-radius: 20px;
  padding: 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 36px;
  box-shadow: 0 50px 100px -30px rgba(3,20,32,0.55);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.agenda-modal-overlay.open .contact-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}
@media (min-width: 640px) {
  .contact-card { padding: 44px 44px 44px; }
}
@media (min-width: 968px) {
  .contact-card { grid-template-columns: 1fr 0.85fr; gap: 48px; padding: 56px 48px 48px; }
}

.contact-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gray);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.contact-modal-close:hover { background: var(--paper-deep); color: var(--ink); }

.contact-card-form .field:last-of-type { margin-bottom: 24px; }

.contact-consent-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--gray);
  line-height: 1.5;
  cursor: pointer;
}
.contact-consent-label input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold-text);
  flex-shrink: 0;
}
.contact-consent-label a {
  color: var(--gold-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.contact-consent .field-error { margin-top: 8px; margin-left: 26px; }

.contact-card-media {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-card-image {
  border-radius: 14px;
  overflow: hidden;
  flex: 1;
  min-height: 220px;
}
.contact-card-image img { width: 100%; height: 100%; object-fit: cover; }

.contact-info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.contact-info-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg-page);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.contact-info-item:hover { border-color: var(--gold-dim); transform: translateY(-2px); }

.contact-info-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--paper);
  color: var(--navy);
  font-size: 15px;
}

.contact-info-label {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gray);
}
.contact-info-value {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--navy);
}

@media (max-width: 480px) {
  .contact-info-grid { grid-template-columns: 1fr; }
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap;
}

/* ---------- Deal modal (Nosotros — llámanos para) ---------- */
.deal-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(32,30,43,0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s;
}
.deal-modal-overlay.open { opacity: 1; visibility: visible; }

.deal-modal {
  position: relative;
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--bg-page);
  border-radius: 10px;
  padding: 44px;
  box-shadow: 0 40px 80px -20px rgba(32,30,43,0.4);
  transform: translateY(16px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.3s var(--ease);
}
.deal-modal-overlay.open .deal-modal {
  transform: translateY(0) scale(1);
  opacity: 1;
}

@media (max-width: 640px) {
  .deal-modal { padding: 32px 24px; }
}

.deal-modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--gray);
  border-radius: 50%;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
}
.deal-modal-close:hover { background: var(--paper); color: var(--ink); }

.deal-modal h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  padding-right: 32px;
}

.deal-modal-sub {
  color: var(--gray);
  margin-top: 10px;
  margin-bottom: 32px;
  font-size: 0.98rem;
}

.deal-field { margin-bottom: 22px; }
.deal-field-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
  margin-bottom: 22px;
}
@media (min-width: 560px) {
  .deal-field-row { grid-template-columns: 1fr 1fr; }
  .deal-field-row .deal-field { margin-bottom: 0; }
}

.deal-field label {
  display: block;
  font-size: 12.5px;
  letter-spacing: 0.03em;
  color: var(--gray);
  margin-bottom: 8px;
}
.deal-field input {
  width: 100%;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
}
.deal-field input::placeholder { color: var(--gray-light); }
.deal-field input:focus {
  outline: none;
  border-color: var(--gold);
}
.deal-field-error {
  display: none;
  font-size: 12px;
  color: #b23b3b;
  margin-top: 6px;
}
.deal-field.invalid input { border-color: #b23b3b; }
.deal-field.invalid .deal-field-error { display: block; }

.deal-dropdown { position: relative; }
.deal-dropdown-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 4px;
  border: none;
  border-bottom: 1px solid var(--line);
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  cursor: pointer;
}
.deal-dropdown-toggle i { color: var(--gray-light); transition: transform 0.3s var(--ease); }
.deal-dropdown.open .deal-dropdown-toggle i { transform: rotate(180deg); }
.deal-dropdown.open .deal-dropdown-toggle { border-color: var(--gold); }

.deal-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--bg-page);
  border: 1px solid var(--line);
  border-radius: var(--radius-input);
  box-shadow: 0 20px 40px -18px rgba(32,30,43,0.22);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease), visibility 0.2s;
}
.deal-dropdown.open .deal-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.deal-dropdown-menu li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--radius-input);
  font-size: 14px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s var(--ease);
}
.deal-dropdown-menu li:hover { background: var(--paper); }
.deal-dropdown-menu li i { opacity: 0; color: var(--gold-text); }
.deal-dropdown-menu li[aria-selected="true"] { background: var(--paper); font-weight: 600; }
.deal-dropdown-menu li[aria-selected="true"] i { opacity: 1; }

.deal-submit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
  padding: 16px 24px;
  border: none;
  border-radius: var(--radius-pill);
  background: var(--navy);
  color: var(--white);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  transition: background 0.3s var(--ease);
}
.deal-submit:hover { background: var(--navy-soft); }
.deal-submit .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
}

.deal-form-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}
.deal-form-success.visible { display: block; }
.deal-form-success h3 { margin-bottom: 10px; }
.deal-form-success p { color: var(--gray); }

#deal-form.submitted .deal-field,
#deal-form.submitted .deal-field-row,
#deal-form.submitted .deal-submit { display: none; }

/* ==========================================================================
   Inverted theme: navy page background, white footer
   Tokens (--ink, --gray, --line) flip to light values on the page and are
   restored inside components that keep a light surface.
   ========================================================================== */
:root { --page-bg: #062b42; }

body.theme-navy {
  --ink: #ffffff;
  --gray: rgba(255,255,255,0.72);
  --gray-light: rgba(255,255,255,0.55);
  --line: rgba(255,255,255,0.16);
  background: var(--page-bg);
  color: #fff;
}

/* light-surface components keep the original dark-on-light tokens */
body.theme-navy .deal-modal,
body.theme-navy .form-success,
body.theme-navy .value-item,
body.theme-navy .stats-band,
body.theme-navy .filter-dropdown,
body.theme-navy .contact-card,
body.theme-navy .field input,
body.theme-navy .field select,
body.theme-navy .field textarea,
body.theme-navy .footer-form input {
  --ink: #201e2b;
  --gray: #6c6a78;
  --gray-light: #9a97a6;
  --line: #e4e3ea;
}

body.theme-navy h1,
body.theme-navy h2,
body.theme-navy h3,
body.theme-navy h4 { color: #fff; }
body.theme-navy .deal-modal h1,
body.theme-navy .deal-modal h2,
body.theme-navy .deal-modal h3,
body.theme-navy .form-success h3,
body.theme-navy .value-item h3,
body.theme-navy .stats-band h3,
body.theme-navy .leaflet-popup-content strong { color: var(--navy); }
body.theme-navy .value-item:hover h3,
body.theme-navy .value-item:hover p { color: #fff; }

body.theme-navy .eyebrow,
body.theme-navy .property-zone,
body.theme-navy .about-intro-lead { color: var(--gold-dim); }
body.theme-navy .about-intro-lead { color: #fff; }
body.theme-navy .field label { color: #fff; }
body.theme-navy .contact-card .field label { color: var(--navy); }
body.theme-navy .contact-card h1,
body.theme-navy .contact-card h2,
body.theme-navy .contact-card h3,
body.theme-navy .contact-card h4 { color: var(--navy); }
body.theme-navy .property-price,
body.theme-navy .pd-sidebar .price { color: #fff; }
body.theme-navy .zone-card-more strong { color: var(--navy); }

/* header */
body.theme-navy .site-header.scrolled {
  background: rgba(6,43,66,0.72);
  border-bottom-color: rgba(255,255,255,0.08);
  box-shadow: 0 12px 30px -20px rgba(0,0,0,0.5);
}
body.theme-navy .nav-links a,
body.theme-navy .nav-links a.active,
body.theme-navy .mobile-menu a:not(.btn) { color: var(--gold-dim); }
body.theme-navy .nav-links a:hover { color: #fff; }
body.theme-navy .nav-actions .btn-gold { color: var(--gold-dim); border-color: var(--gold-dim); }
body.theme-navy .nav-actions .btn-gold:hover { background: var(--gold-dim); color: var(--navy-ink); }
body.theme-navy .nav-toggle span { background: #fff; }
body.theme-navy .mobile-menu { background: rgba(6,43,66,0.95); border-top-color: rgba(255,255,255,0.08); }
body.theme-navy .brand img,
body.theme-navy .page-header-logo { filter: brightness(0) invert(1); }

/* buttons that were navy-on-white */
body.theme-navy .btn-primary { background: #fff; color: var(--navy); }
body.theme-navy .btn-primary:hover { background: var(--gold-dim); }
body.theme-navy .btn-outline { color: #fff; border-color: rgba(255,255,255,0.6); }
body.theme-navy .btn-outline:hover { background: #fff; color: var(--navy); }
body.theme-navy .btn-ghost { color: #fff; }
body.theme-navy .call-arrow { color: #fff; }
body.theme-navy .call-arrow:hover { background: #fff; border-color: #fff; color: var(--navy); }
body.theme-navy .zone-expand-arrow { color: #fff; }
body.theme-navy .map-hero-copy .lede span { background: #fff; color: var(--navy); }
body.theme-navy .deal-submit { background: #fff; color: var(--navy); }
body.theme-navy .deal-submit:hover { background: var(--gold-dim); }
body.theme-navy .deal-submit .icon { background: rgba(6,43,66,0.12); }

/* filters */
body.theme-navy .filter-bar { background: var(--page-bg); }
body.theme-navy .filter-pill.active { background: #fff; border-color: #fff; color: var(--navy); }

/* CTA band takes the page navy */
body.theme-navy .cta-band { background: transparent; color: #fff; }
body.theme-navy .cta-band h2,
body.theme-navy .cta-band .lede { color: #fff; }
body.theme-navy .cta-band .btn-outline-light { color: #fff; border-color: rgba(255,255,255,0.6); }
body.theme-navy .cta-band .btn-outline-light:hover { background: #fff; color: var(--navy); }

/* vende-tu-propiedad inline paper section */
body.theme-navy section[style*="--paper"] { background: var(--navy-soft) !important; }

/* footer: white */
body.theme-navy .site-footer { background: #fff; color: var(--gray); --gray: #6c6a78; }
body.theme-navy .site-footer .footer-info .wordmark { color: var(--navy); }
body.theme-navy .site-footer .footer-info .wordmark strong,
body.theme-navy .site-footer .footer-info .tagline { color: var(--gold-text); }
body.theme-navy .site-footer .footer-info address,
body.theme-navy .site-footer .footer-phone { color: var(--navy); }
body.theme-navy .site-footer .footer-phone:hover { color: var(--gold-text); }
body.theme-navy .site-footer .footer-icon { background: var(--navy); color: #fff; }
body.theme-navy .site-footer .footer-icon:hover { background: var(--gold-text); }
body.theme-navy .site-footer .footer-pill { border-color: var(--navy); color: var(--navy); }
body.theme-navy .site-footer .footer-pill:hover { border-color: var(--gold-text); color: var(--gold-text); }
body.theme-navy .site-footer .footer-form label { color: var(--gold-text); }
body.theme-navy .site-footer .footer-form input { background: var(--paper); border-color: var(--line); }
body.theme-navy .site-footer .footer-form input:focus { border-color: var(--gold-text); }
body.theme-navy .site-footer .footer-submit { background: var(--navy); color: #fff; }
body.theme-navy .site-footer .footer-submit:hover { background: var(--navy-soft); }

/* property cards: white body under the image */
body.theme-navy .property-body {
  --ink: #201e2b;
  --gray: #6c6a78;
  --line: #e4e3ea;
  background: #fff;
}
body.theme-navy .property-body h3 { color: var(--navy); }
body.theme-navy .property-body .property-zone { color: var(--gold-text); }
body.theme-navy .property-body .property-price { color: var(--navy); }

/* ---------- Animación de ubicación del terreno (parcel-flyover.js) ---------- */
.parcel-flyover { position: relative; height: 60vh; min-height: 360px; max-height: 680px; margin-bottom: 16px; overflow: hidden; border-radius: var(--radius-card); background: var(--navy-ink); }
@media (min-width: 768px) { .parcel-flyover { height: 72vh; min-height: 440px; } }
/* Selector doble para ganarle a .maplibregl-map { position: relative } de MapLibre, que carga después */
.parcel-flyover .parcel-flyover-map { position: absolute; inset: 0; }
.parcel-flyover-card { position: absolute; left: 24px; bottom: 24px; max-width: 340px; padding: 18px 22px; background: rgba(4, 31, 48, 0.82); backdrop-filter: blur(8px); border-left: 2px solid var(--gold); color: var(--white); opacity: 0; transform: translateY(12px); transition: opacity .8s var(--ease), transform .8s var(--ease); pointer-events: none; }
.parcel-flyover-card.show { opacity: 1; transform: none; }
.parcel-flyover-card .eyebrow { color: var(--gold-light); margin-bottom: 4px; }
.parcel-flyover-card strong { display: block; font-family: "Cormorant Garamond", serif; font-weight: 600; font-size: 30px; line-height: 1.1; }
.parcel-flyover-card span:last-child { font-size: 14px; color: rgba(255,255,255,.75); }
.parcel-flyover-replay { position: absolute; top: 16px; right: 16px; padding: 8px 14px; border: 1px solid var(--gold-light); border-radius: var(--radius-pill); background: rgba(4, 31, 48, 0.7); color: var(--white); font: 600 12px Manrope, sans-serif; letter-spacing: .06em; cursor: pointer; }
.parcel-flyover-replay:hover { background: var(--gold); }
@media (max-width: 600px) { .parcel-flyover-card { left: 16px; right: 16px; bottom: 16px; max-width: none; } }
