/* ============================================================
   LGM REAL ESTATE — Design System
   Paleta: Dark Luxe (negro cálido + dorado)
   Tipografía: Cormorant Garamond (display) + Geist (UI)
   ============================================================ */

:root {
  /* Paleta principal - Dark Luxe */
  --bg: #0e0e0c;
  --bg-2: #141411;
  --bg-3: #1c1b17;
  --surface: #1a1914;
  --surface-2: #22201a;
  --border: rgba(232, 226, 212, 0.08);
  --border-strong: rgba(232, 226, 212, 0.16);

  --text: #e8e2d4;
  --text-dim: #a89f8a;
  --text-mute: #6f6857;

  --gold: #c9a876;
  --gold-2: #d9bd8e;
  --gold-dim: #8e7851;

  --accent: #c9a876;

  /* Tipografía */
  --f-display: "Cormorant Garamond", "Times New Roman", serif;
  --f-ui: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", "SF Mono", Monaco, monospace;

  /* Escala tipográfica */
  --fs-xs: 11px;
  --fs-sm: 12px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 28px;
  --fs-3xl: 42px;
  --fs-4xl: 64px;
  --fs-5xl: 96px;
  --fs-6xl: 140px;

  /* Espaciado */
  --section-y: 140px;
  --container: 1440px;
  --gutter: 48px;

  /* Transiciones */
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Scroll progress */
  --scroll-progress: 0;
}

/* Paleta alterna: Cream (modo claro tweakable) */
body.theme-light {
  --bg: #f5f0e6;
  --bg-2: #ebe4d4;
  --bg-3: #e1d8c3;
  --surface: #fbf7ee;
  --surface-2: #f0ead9;
  --border: rgba(20, 20, 18, 0.08);
  --border-strong: rgba(20, 20, 18, 0.18);
  --text: #14120e;
  --text-dim: #544c3b;
  --text-mute: #8a8168;
  --gold: #9a7a42;
  --gold-2: #b08b4a;
  --gold-dim: #c9a876;
  --accent: #9a7a42;
}

/* Paleta alterna: Coastal (azul profundo) */
body.theme-coastal {
  --bg: #0a1620;
  --bg-2: #112131;
  --bg-3: #182b3d;
  --surface: #152638;
  --surface-2: #1d3246;
  --gold: #d9be8e;
  --gold-2: #eacfa0;
  --accent: #d9be8e;
}

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

html { scroll-behavior: smooth; overflow-x: hidden; max-width: 100vw; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--f-ui);
  font-size: var(--fs-md);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: "ss01", "cv11";
  overflow-x: hidden;
  max-width: 100vw;
}

/* Overflow safety net — fixed drawers (mobile + fav) shouldn't trigger horizontal scroll */
#root, .route-main { overflow-x: hidden; max-width: 100vw; }

/* Selección */
::selection { background: var(--gold); color: var(--bg); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 0; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }

/* Tipografía display */
h1, h2, h3, .display {
  font-family: var(--f-display);
  font-weight: 300;
  letter-spacing: -0.015em;
  line-height: 1.02;
  font-feature-settings: "ss01", "liga", "dlig";
  color: var(--text);
}

h1 em, h2 em, h3 em, .display em {
  font-style: italic;
  font-weight: 300;
  color: var(--gold);
}

.eyebrow {
  font-family: var(--f-ui);
  font-size: var(--fs-xs);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}

.mono {
  font-family: var(--f-mono);
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

/* Utilities */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.rule { height: 1px; background: var(--border); width: 100%; }
.rule-strong { height: 1px; background: var(--border-strong); }

button { font-family: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
a { color: inherit; text-decoration: none; }
input, select, textarea { font-family: inherit; color: inherit; }

/* Botón dorado */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: var(--gold);
  color: #14120e;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.4s var(--ease-out);
  border-radius: 0;
  position: relative;
  overflow: hidden;
}
.btn-gold:hover { background: var(--gold-2); transform: translateY(-1px); }
.btn-gold .arrow { transition: transform 0.4s var(--ease-out); }
.btn-gold:hover .arrow { transform: translateX(4px); }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  background: transparent;
  color: var(--text);
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid var(--border-strong);
  transition: all 0.4s var(--ease-out);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-sm);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--gold);
  transition: all 0.3s var(--ease);
}
.btn-text:hover { color: var(--gold); }

/* ============================================================
   SCROLL PROGRESS
   ============================================================ */
.scroll-progress {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: transparent;
  z-index: 1000;
  pointer-events: none;
}
.scroll-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, transparent 0%, var(--gold) 60%, var(--gold-2) 100%);
  width: calc(var(--scroll-progress) * 100%);
  transition: width 0.1s linear;
  box-shadow: 0 0 20px var(--gold);
}

/* ============================================================
   CUSTOM CURSOR
   ============================================================ */
.cursor-dot, .cursor-ring {
  position: fixed;
  pointer-events: none;
  z-index: 9999;
  top: 0; left: 0;
  will-change: transform;
  mix-blend-mode: difference;
}
.cursor-dot {
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.08s var(--ease-out), width 0.3s, height 0.3s, background 0.3s;
}
.cursor-ring {
  width: 36px; height: 36px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease-out), width 0.3s, height 0.3s, border-color 0.3s;
}
.cursor-ring.hover { width: 64px; height: 64px; border-color: var(--gold-2); }
.cursor-dot.hover { width: 2px; height: 2px; }
@media (hover: none), (max-width: 1024px) {
  .cursor-dot, .cursor-ring { display: none; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.6s var(--ease), border-color 0.6s var(--ease), padding 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(14, 14, 12, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: var(--border);
  padding: 14px var(--gutter);
}
body.theme-light .nav.scrolled { background: rgba(245, 240, 230, 0.82); }
body.theme-coastal .nav.scrolled { background: rgba(10, 22, 32, 0.82); }

.nav__logo {
  display: flex; align-items: center; gap: 12px;
  height: 48px;
}
.nav__logo img {
  height: 40px; width: auto;
  transition: filter 0.3s;
}
.nav__links {
  display: flex; gap: 36px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 400;
}
.nav__links a {
  color: var(--text);
  opacity: 0.78;
  transition: opacity 0.3s, color 0.3s;
  position: relative;
  padding-bottom: 2px;
}
.nav__links a:hover { opacity: 1; color: var(--gold); }
.nav__links a::after {
  content: "";
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease-out);
}
.nav__links a:hover::after { transform: scaleX(1); }

.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__wa {
  display: inline-flex;
  align-items: center; gap: 10px;
  padding: 10px 20px;
  background: var(--gold);
  color: #14120e;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  transition: all 0.3s;
}
.nav__wa:hover { background: var(--gold-2); }

.nav__lang {
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text);
  opacity: 0.78;
  cursor: pointer;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  position: relative;
  background: transparent;
  transition: opacity 0.25s, color 0.25s, border-color 0.25s;
}
.nav__lang:hover { opacity: 1; border-color: var(--gold); color: var(--gold); }

/* Theme selector (3 variants: light / dark / coastal) */
.nav__theme-group {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 2px;
  overflow: hidden;
}
.nav__theme-btn {
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center; justify-content: center;
  background: transparent;
  border: 0;
  border-right: 1px solid var(--border);
  color: var(--text);
  opacity: 0.55;
  cursor: pointer;
  transition: opacity 0.25s, background 0.25s, color 0.25s;
}
.nav__theme-btn:last-child { border-right: 0; }
.nav__theme-btn:hover { opacity: 1; color: var(--gold); }
.nav__theme-btn.active {
  opacity: 1;
  color: var(--gold);
  background: color-mix(in srgb, var(--gold) 14%, transparent);
}

.nav__burger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  cursor: pointer;
}
.nav__burger span {
  display: block;
  height: 1px;
  background: var(--text);
  transition: all 0.3s var(--ease);
}
.nav__burger span:nth-child(1) { width: 100%; }
.nav__burger span:nth-child(2) { width: 70%; margin-left: auto; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  /* z-index: 2 eleva toda la pila del hero sobre siblings (ticker, featured, etc.)
     para que el dropdown panel del buscador pueda tapar la barra del ticker
     cuando se abre. No afecta nav/modals/drawers (z-index >= 100). */
  z-index: 2;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: 120px var(--gutter) 80px;
  background: var(--bg);
}
/* 3D scene: perspective on parent creates real depth for rotateX/Y on image. */
.hero {
  perspective: 1600px;
  perspective-origin: 50% 45%;
}

/* Máscara que clipea el bg (con inset negativo) a los bordes reales del hero.
   Antes el clip vivía en .hero { overflow: hidden } pero eso también clipeaba
   los dropdowns del buscador. Ahora solo el bg se clipa. */
.hero__bg-mask {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.hero__bg {
  position: absolute;
  inset: -12% 0 -12% 0;
  z-index: 0;
  will-change: transform;
  overflow: hidden;
  transform-style: preserve-3d;
}

/* Warm sun-glint + cool ocean reflection. Dramatic drift. */
.hero__bg::before {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 50% 38% at 28% 32%, rgba(255, 210, 140, 0.42), transparent 58%),
    radial-gradient(ellipse 35% 28% at 75% 70%, rgba(120, 200, 255, 0.28), transparent 62%),
    radial-gradient(ellipse 25% 20% at 60% 20%, rgba(255, 180, 100, 0.22), transparent 70%);
  mix-blend-mode: soft-light;
  animation: heroSunDrift 18s ease-in-out infinite alternate;
  will-change: transform, opacity;
  filter: blur(20px);
}

/* Secondary glint layer: fast sparkle flashes. */
.hero__bg .hero__sparkle,
.hero__bg::after {
  pointer-events: none;
}

.hero__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background:
    /* Strong scrim behind text (bottom-left quadrant) for legibility */
    radial-gradient(ellipse 85% 75% at 25% 85%, rgba(14,14,12,0.88) 0%, rgba(14,14,12,0.55) 40%, transparent 75%),
    /* Bottom fade to solid for search bar */
    radial-gradient(ellipse 120% 70% at 50% 110%, rgba(14,14,12,0.95) 0%, rgba(14,14,12,0.35) 55%, transparent 80%),
    /* Top-to-bottom vertical scrim */
    linear-gradient(180deg, rgba(14,14,12,0.55) 0%, rgba(14,14,12,0.30) 30%, rgba(14,14,12,0.20) 50%, rgba(14,14,12,0.55) 75%, rgba(14,14,12,0.95) 100%),
    /* Left-side darkening */
    linear-gradient(90deg, rgba(14,14,12,0.65) 0%, rgba(14,14,12,0.15) 55%, rgba(14,14,12,0.05) 100%);
}

.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform-origin: 50% 55%;
  backface-visibility: hidden;
  animation:
    heroDroneCam 28s cubic-bezier(0.42, 0, 0.58, 1) 0s infinite alternate,
    heroLightStorm 9s ease-in-out 0s infinite alternate;
  will-change: transform, filter;
}

/* Drone orbit: 3D rotation + strong pan + zoom pulses.
   5 organic keyframes → never looks symmetric. Feel: drone circling the villa. */
@keyframes heroDroneCam {
  0% {
    transform: scale(1.12) translate3d(0, 0, 0)
               rotateX(0deg) rotateY(0deg) rotateZ(0deg);
  }
  22% {
    transform: scale(1.18) translate3d(-3.2%, -1.8%, 0)
               rotateX(0.7deg) rotateY(-2.2deg) rotateZ(0.3deg);
  }
  48% {
    transform: scale(1.14) translate3d(2.6%, -2.4%, 0)
               rotateX(-0.6deg) rotateY(1.8deg) rotateZ(-0.35deg);
  }
  74% {
    transform: scale(1.22) translate3d(-1.8%, 1.2%, 0)
               rotateX(1deg) rotateY(-1deg) rotateZ(0.2deg);
  }
  100% {
    transform: scale(1.16) translate3d(2.2%, -1.8%, 0)
               rotateX(-0.4deg) rotateY(1.4deg) rotateZ(-0.25deg);
  }
}

/* Light storm: aggressive brightness + saturation oscillation.
   Simulates sun breaking through clouds, dappled light.
   Capped at 0.62 max to keep text readable over any frame. */
@keyframes heroLightStorm {
  0%   { filter: brightness(0.50) saturate(0.88) contrast(1.06) blur(0); }
  28%  { filter: brightness(0.60) saturate(1.10) contrast(1.12) blur(0); }
  55%  { filter: brightness(0.46) saturate(0.92) contrast(1.04) blur(0.4px); }
  80%  { filter: brightness(0.58) saturate(1.05) contrast(1.10) blur(0); }
  100% { filter: brightness(0.52) saturate(0.98) contrast(1.06) blur(0); }
}

/* Sun + ocean glint drift: wider range, dramatic opacity swings. */
@keyframes heroSunDrift {
  0% {
    transform: translate3d(-9%, -4%, 0) scale(0.95) rotate(0deg);
    opacity: 0.45;
  }
  33% {
    transform: translate3d(6%, 3%, 0) scale(1.18) rotate(3deg);
    opacity: 1;
  }
  66% {
    transform: translate3d(-4%, -7%, 0) scale(1.08) rotate(-2deg);
    opacity: 0.7;
  }
  100% {
    transform: translate3d(8%, 1%, 0) scale(1.22) rotate(4deg);
    opacity: 0.95;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg img,
  .hero__bg::before { animation: none; transform: none; }
  .hero__bg img { filter: brightness(0.52) saturate(0.9) contrast(1.06); }
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 48px;
  align-items: end;
}

.hero__main { max-width: 900px; }
.hero__eyebrow {
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 28px;
  display: flex; align-items: center; gap: 16px;
}
.hero__eyebrow::before {
  content: "";
  width: 40px; height: 1px;
  background: var(--gold);
}

.hero__title {
  font-family: var(--f-display);
  font-size: clamp(54px, 9vw, 140px);
  line-height: 0.95;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 32px;
  text-wrap: pretty;
  color: #f5efe0;
  text-shadow:
    0 2px 12px rgba(0,0,0,0.85),
    0 4px 48px rgba(0,0,0,0.6),
    0 0 2px rgba(0,0,0,0.5);
}
.hero__title span { display: block; }
.hero__title .italic {
  font-style: italic;
  color: var(--gold);
  text-shadow:
    0 2px 12px rgba(0,0,0,0.9),
    0 4px 32px rgba(0,0,0,0.7),
    0 0 1px rgba(0,0,0,0.6);
}

.hero__sub {
  max-width: 560px;
  font-size: 16px;
  line-height: 1.6;
  color: #d8d0bf;
  margin-bottom: 48px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.75);
}

.hero__eyebrow {
  text-shadow: 0 1px 6px rgba(0,0,0,0.7);
}

.hero__meta {
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: flex-end;
  text-align: right;
  padding-bottom: 10px;
}
.hero__meta-item {
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.hero__meta-item strong {
  display: block;
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3.5vw, 2.625rem);
  font-weight: 300;
  color: var(--gold);
  letter-spacing: -0.02em;
  text-transform: none;
  line-height: 1;
  margin-bottom: 4px;
}

/* Hero scroll indicator */
.hero__scroll {
  position: absolute;
  bottom: 40px;
  left: var(--gutter);
  z-index: 3;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex; align-items: center; gap: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s var(--ease-out), gap 0.25s var(--ease-out);
}
.hero__scroll:hover { color: var(--gold); gap: 22px; }
.hero__scroll:hover .hero__scroll-line { animation: none; transform: scaleX(1); opacity: 1; }
.hero__scroll-line {
  width: 60px; height: 1px;
  background: var(--gold);
  animation: scrollLine 2s ease-in-out infinite;
  transform-origin: left;
}
@keyframes scrollLine {
  0%, 100% { transform: scaleX(1); opacity: 1; }
  50% { transform: scaleX(0.3); opacity: 0.4; }
}

/* Buscador del hero */
.search {
  position: relative;
  z-index: 3;
  margin: -60px auto 0;
  max-width: var(--container);
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr auto;
  gap: 1px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5);
}
.search__field {
  background: var(--bg-2);
  padding: 22px 24px;
  display: flex; flex-direction: column; gap: 4px;
  position: relative;
}
.search__field:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0; top: 16px; bottom: 16px;
  width: 1px;
  background: var(--border);
}
.search__label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.search__control {
  background: transparent;
  border: 0;
  color: var(--text);
  font-size: 15px;
  font-family: var(--f-display);
  outline: none;
  padding: 0;
  width: 100%;
  cursor: pointer;
}
.search__control option { background: var(--bg-2); color: var(--text); }
.search__btn {
  background: var(--gold);
  color: #14120e;
  border: 0;
  padding: 0 40px;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s;
  display: flex; align-items: center; gap: 10px;
  justify-content: center;
}
.search__btn:hover { background: var(--gold-2); }

/* ============================================================
   TICKER / MARQUEE
   ============================================================ */
.ticker {
  padding: 32px 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  position: relative;
}
.ticker__track {
  display: flex;
  white-space: nowrap;
  gap: 80px;
  animation: ticker 40s linear infinite;
  align-items: center;
}
.ticker__track span {
  font-family: var(--f-display);
  font-size: clamp(32px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.01em;
  color: var(--text);
  display: flex; align-items: center; gap: 80px;
}
.ticker__track span:nth-child(even) {
  color: var(--gold);
  font-style: italic;
}
.ticker__dot {
  display: inline-block;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gold);
  margin: 0 40px;
  vertical-align: middle;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section {
  padding: var(--section-y) var(--gutter);
  position: relative;
}
.section-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 60px;
  align-items: end;
  margin-bottom: 80px;
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 1000px;
  text-wrap: pretty;
}
.section-head p {
  max-width: 360px;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}
.section-head .eyebrow { margin-bottom: 24px; display: block; }

/* ============================================================
   FEATURED CAROUSEL
   ============================================================ */
.featured {
  padding: var(--section-y) 0;
  overflow: hidden;
  position: relative;
}
.featured .container { max-width: none; padding: 0 var(--gutter); }
.featured .section-head { padding: 0; }
.featured__carousel {
  display: flex;
  gap: 24px;
  padding: 0 var(--gutter);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
  user-select: none;
}
.featured__carousel::-webkit-scrollbar { display: none; }
.featured__carousel.dragging { cursor: grabbing; scroll-snap-type: none; }

.carousel-nav {
  display: flex; gap: 12px;
  margin-top: 32px;
  padding: 0 var(--gutter);
  align-items: center;
}
.carousel-nav__btn {
  width: 56px; height: 56px;
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  color: var(--text);
}
.carousel-nav__btn:hover:not(:disabled) { border-color: var(--gold); color: var(--gold); background: rgba(201, 168, 118, 0.05); }
.carousel-nav__btn:disabled { opacity: 0.3; cursor: default; }
.carousel-nav__progress {
  flex: 1;
  height: 1px;
  background: var(--border);
  margin: 0 20px;
  position: relative;
}
.carousel-nav__progress-fill {
  position: absolute;
  left: 0; top: 0; height: 100%;
  background: var(--gold);
  transition: width 0.4s var(--ease);
}
.carousel-nav__count {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.1em;
}

/* ============================================================
   PROPERTY CARD (carrusel)
   ============================================================ */
.pcard {
  flex: 0 0 calc(33.333% - 16px);
  min-width: 380px;
  scroll-snap-align: start;
  background: var(--bg-2);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: all 0.5s var(--ease-out);
  position: relative;
  overflow: hidden;
}
.pcard:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.pcard__img {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--bg-3);
}
.pcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 0.6s;
}
.pcard:hover .pcard__img img { transform: scale(1.06); filter: brightness(1.05); }

.pcard__badges {
  position: absolute;
  top: 16px; left: 16px;
  display: flex; gap: 8px;
  z-index: 2;
}
.pcard__badge {
  padding: 6px 12px;
  background: rgba(14,14,12,0.75);
  backdrop-filter: blur(8px);
  color: var(--text);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  border: 1px solid var(--border-strong);
}
.pcard__badge--gold { background: var(--gold); color: #14120e; border-color: var(--gold); }
.pcard__badge--vacation {
  background: rgba(86, 163, 166, 0.18);
  color: #7fd4d7;
  border-color: rgba(127, 212, 215, 0.45);
}

.pcard__fav {
  position: absolute;
  top: 16px; right: 16px;
  width: 40px; height: 40px;
  background: rgba(14,14,12,0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-strong);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s;
  color: var(--text);
}
.pcard__fav:hover { border-color: var(--accent); color: var(--accent); }
.pcard__fav.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.pcard__body {
  padding: 24px 26px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.pcard__ref {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
}
.pcard__name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin: 4px 0 2px;
}
.pcard__zone {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.pcard__zone .dot { color: var(--gold); margin: 0 6px; }

.pcard__specs {
  display: flex;
  gap: 20px;
  padding-top: 16px;
  margin-top: auto;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-dim);
}
.pcard__specs > div { display: flex; align-items: center; gap: 6px; }

.pcard__price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 14px;
  font-family: var(--f-display);
}
.pcard__price-main {
  font-size: 22px;
  font-weight: 400;
  color: var(--gold);
  letter-spacing: -0.01em;
}
.pcard__price-alt {
  font-size: 12px;
  color: var(--text-dim);
  font-family: var(--f-ui);
  letter-spacing: 0.06em;
}

/* ============================================================
   FEATURED CAROUSEL V2 — screenshot redesign
   ============================================================ */
.featured-v2 { padding: 40px 0 var(--section-y); overflow: hidden; position: relative; }
.featured-v2 .container { max-width: none; padding: 0 var(--gutter); }

.featured-v2__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 14px;
  gap: 40px;
  flex-wrap: wrap;
}
.featured-v2__title {
  font-family: var(--f-display);
  font-size: clamp(44px, 5.2vw, 72px);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--fg);
  margin: 0;
}
.featured-v2__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 300;
  display: inline-block;
  margin-left: 0.15em;
}
.featured-v2__all {
  color: var(--text-dim);
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
  white-space: nowrap;
  background: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  font-family: var(--f-ui);
  cursor: pointer;
}
.featured-v2__all:hover { color: var(--gold); border-bottom-color: var(--gold); }

.featured-v2__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.featured-v2__chip {
  padding: 10px 22px;
  border: 1px solid rgba(255,255,255,0.18);
  background: transparent;
  color: var(--fg);
  font-family: var(--f-ui);
  font-size: clamp(0.6875rem, 1.2vw, 0.75rem);
  letter-spacing: 0.1em;
  border-radius: 999px;
  cursor: pointer;
  transition: all .25s ease;
  text-transform: none;
}
.featured-v2__chip:hover { border-color: var(--gold); color: var(--gold); }
.featured-v2__chip.active {
  background: rgba(198, 161, 91, 0.10);
  color: var(--gold);
  border-color: var(--gold);
  box-shadow: inset 0 0 0 1px rgba(198, 161, 91, 0.35);
}

.featured-v2__track {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-left: var(--gutter);
  padding-bottom: 8px;
  cursor: grab;
  scrollbar-width: none;
  /* Mobile/tablet: swipe horizontal nativo con dedo. pan-x = browser maneja scroll-x sin delay */
  touch-action: pan-x;
  -webkit-overflow-scrolling: touch;
}
.featured-v2__track::-webkit-scrollbar { display: none; }
.featured-v2__track.dragging { cursor: grabbing; scroll-snap-type: none; }
.featured-v2__track.auto-scrolling { scroll-snap-type: none; scroll-behavior: auto; }
.featured-v2__track.auto-rotating { scroll-snap-type: none; scroll-behavior: auto; }

.fcard {
  flex: 0 0 calc(25% - 17px);
  min-width: 280px;
  scroll-snap-align: start;
  cursor: pointer;
  display: block;
  background: transparent;
  transition: transform .45s cubic-bezier(.2,.7,.2,1);
}
.fcard:hover { transform: translateY(-6px); }

.fcard__img {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 2px;
  background: #0f0d0a;
}
.fcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2,.7,.2,1), filter .6s ease;
}
.fcard:hover .fcard__img img { transform: scale(1.06); }

.fcard__shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(to top,
      rgba(10,8,6,0.92) 0%,
      rgba(10,8,6,0.78) 22%,
      rgba(10,8,6,0.45) 46%,
      rgba(10,8,6,0.12) 70%,
      rgba(10,8,6,0) 100%);
}

.fcard__over {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  z-index: 2;
  padding: 22px 22px 22px;
  color: #f3ead9;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fcard__corner {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--gold);
  color: #14120e;
  font-family: var(--f-ui);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 7px 13px;
  border-radius: 2px;
  z-index: 2;
}

.fcard__fav {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(20, 18, 14, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  z-index: 2;
  transition: all .25s ease;
}
.fcard__fav:hover { border-color: var(--accent); color: var(--accent); }
.fcard__fav.active { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.fcard__loc {
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(243, 234, 217, 0.7);
  margin-bottom: 4px;
}
.fcard__name {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.15;
  color: #f3ead9;
  margin: 0 0 6px 0;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.fcard__price {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 20px;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 10px;
}
.fcard__meta {
  display: flex;
  gap: 16px;
  font-family: var(--f-ui);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(243, 234, 217, 0.6);
  text-transform: uppercase;
  padding-top: 10px;
  border-top: 1px solid rgba(243, 234, 217, 0.18);
}

.featured-v2__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.featured-v2__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all .3s ease;
}
.featured-v2__dot.active { background: var(--gold); width: 26px; border-radius: 4px; }

@media (max-width: 1280px) {
  .fcard { flex: 0 0 calc(33.333% - 15px); min-width: 280px; }
}
@media (max-width: 1024px) {
  .fcard { flex: 0 0 calc(50% - 11px); min-width: 260px; }
  .featured-v2__head { align-items: flex-start; }
}
@media (max-width: 640px) {
  .fcard { flex: 0 0 78%; min-width: 0; }
  .featured-v2__chips { gap: 8px; }
  .featured-v2__chip { padding: 8px 16px; }
}

/* ============================================================
   EDITORIAL GRID
   ============================================================ */
.editorial__filters {
  display: flex;
  gap: 4px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.editorial__filter {
  padding: 10px 22px;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.3s;
  background: transparent;
}
.editorial__filter:hover { color: var(--text); }
.editorial__filter.active {
  color: var(--gold);
  border-color: var(--gold);
}

.editorial__grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 24px;
  max-width: var(--container);
  margin: 0 auto;
}

.gcard { position: relative; cursor: pointer; overflow: hidden; }
.gcard__img {
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.gcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out), filter 0.6s;
}
.gcard:hover .gcard__img img { transform: scale(1.05); }

.gcard__info {
  padding: 20px 0 8px;
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 16px;
}
.gcard__info h4 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 300;
  line-height: 1.1;
  margin-bottom: 6px;
}
.gcard__info p {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.08em;
}
.gcard__op {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 4px 10px;
  border: 1px solid var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.gcard__price {
  font-family: var(--f-display);
  font-size: 20px;
  color: var(--gold);
}

/* Tamaños variables del grid */
.gcard--w3 { grid-column: span 3; }
.gcard--w4 { grid-column: span 4; }
.gcard--w5 { grid-column: span 5; }
.gcard--w6 { grid-column: span 6; }
.gcard--w7 { grid-column: span 7; }
.gcard--w8 { grid-column: span 8; }

.gcard--w3 .gcard__img { aspect-ratio: 3 / 4; }
.gcard--w4 .gcard__img { aspect-ratio: 4 / 5; }
.gcard--w5 .gcard__img { aspect-ratio: 1 / 1; }
.gcard--w6 .gcard__img { aspect-ratio: 4 / 3; }
.gcard--w7 .gcard__img { aspect-ratio: 16 / 10; }
.gcard--w8 .gcard__img { aspect-ratio: 16 / 9; }

/* ============================================================
   PILLARS (WHY LGM)
   ============================================================ */
.pillars {
  background: var(--bg-2);
  padding: var(--section-y) var(--gutter);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pillars__grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
}
.pillar {
  padding: 56px 32px 56px 0;
  border-right: 1px solid var(--border);
  position: relative;
  transition: background 0.4s;
}
.pillar:last-child { border-right: 0; padding-right: 0; }
.pillar:first-child { padding-left: 0; }
.pillar:not(:first-child) { padding-left: 32px; }
.pillar__num {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
  margin-bottom: 32px;
  display: flex; align-items: center; gap: 12px;
}
.pillar__num::before {
  content: "";
  width: 24px; height: 1px;
  background: var(--gold);
}
.pillar__title {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 300;
  line-height: 1.05;
  margin-bottom: 20px;
  letter-spacing: -0.01em;
  text-wrap: pretty;
}
.pillar__desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-dim);
}

/* ============================================================
   PROCESS
   ============================================================ */
.process {
  padding: var(--section-y) var(--gutter);
}
.process__steps {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
}
.process__line {
  position: absolute;
  top: 30px;
  left: 0; right: 0;
  height: 1px;
  background: var(--border);
  z-index: 0;
}
.process__line-fill {
  position: absolute;
  top: 30px; left: 0;
  height: 1px;
  background: var(--gold);
  width: 0;
  transition: width 1.2s var(--ease-out);
  z-index: 1;
}
.pstep {
  position: relative;
  padding: 0 32px 0 0;
  z-index: 2;
}
.pstep__num {
  width: 60px; height: 60px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--gold);
  margin-bottom: 36px;
  font-style: italic;
  transition: all 0.4s var(--ease);
}
.pstep.active .pstep__num {
  background: var(--gold);
  color: #14120e;
  border-color: var(--gold);
}
.pstep__title {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.pstep__desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 260px;
}

/* ============================================================
   SELL BANNER — Full-bleed editorial split (image + text panel)
   ============================================================ */
.sell-banner {
  position: relative;
  padding: 0;
  overflow: hidden;
  background: var(--bg);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.sell-banner__content {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  min-height: 620px;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}
/* Image side */
.sell-banner__bg {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  will-change: transform;
}
.sell-banner__bg img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) brightness(0.85);
}
.sell-banner__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(14,14,12,0) 60%, var(--bg) 100%),
    linear-gradient(180deg, rgba(14,14,12,0.25) 0%, rgba(14,14,12,0.45) 100%);
  pointer-events: none;
}
.sell-banner__badge {
  position: absolute;
  top: 28px; left: 28px;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: rgba(14,14,12,0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(201,168,118,0.35);
  color: var(--gold);
  font-size: 11px;
  font-family: var(--f-display);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.sell-banner__badge::before {
  content: "";
  width: 6px; height: 6px;
  background: var(--gold);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(201,168,118,0.25);
}
/* Text panel side */
.sell-banner__panel {
  position: relative;
  padding: clamp(56px, 6vw, 96px) clamp(32px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 24px;
  background: var(--bg);
}
.sell-banner__panel::before {
  content: "";
  position: absolute;
  left: 0; top: clamp(40px, 5vw, 72px);
  width: 2px;
  height: 60px;
  background: var(--gold);
}
.sell-banner__panel .eyebrow {
  color: var(--gold) !important;
  margin: 0 !important;
  display: block;
  font-size: 11px;
  letter-spacing: 0.22em;
}
.sell-banner__title {
  font-family: var(--f-display);
  font-size: clamp(32px, 3.8vw, 52px);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.015em;
  color: var(--text);
  text-wrap: balance;
  margin: 0;
}
.sell-banner__title em {
  font-style: italic;
  color: var(--gold);
  font-weight: 400;
}
.sell-banner__sub {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.65;
  max-width: 480px;
  margin: 0;
}
.sell-banner__meta {
  display: flex;
  gap: 24px;
  padding-top: 20px;
  margin-top: 4px;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.sell-banner__meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sell-banner__meta-val {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 2vw, 1.25rem);
  color: var(--gold);
  letter-spacing: -0.01em;
}
.sell-banner__meta-lbl {
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sell-banner__cta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.sell-banner__cta-note {
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.04em;
}

/* ============================================================
   MAP
   ============================================================ */
.map-section {
  padding: var(--section-y) var(--gutter);
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.map-wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 40px;
}
.map-container {
  height: 560px;
  border: 1px solid var(--border-strong);
  background: var(--bg-3);
  position: relative;
  overflow: hidden;
}
#leaflet-map { width: 100%; height: 100%; }

.map-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.map-legend h4 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 300;
  margin-bottom: 8px;
}
.map-legend__city {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: color 0.3s;
}
.map-legend__city:hover { color: var(--gold); }
.map-legend__city-name {
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.map-legend__count {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
}

/* Leaflet dark theme */
.leaflet-container { background: var(--bg-3) !important; }
.leaflet-tile-pane { filter: grayscale(0.85) brightness(0.55) contrast(1.1) invert(0.92) hue-rotate(180deg); }
body.theme-light .leaflet-tile-pane { filter: grayscale(0.4) brightness(0.95); }
.leaflet-control-attribution {
  background: rgba(14,14,12,0.8) !important;
  color: var(--text-mute) !important;
  font-size: 10px !important;
  padding: 4px 8px !important;
}
.leaflet-control-attribution a { color: var(--gold) !important; }
.leaflet-popup-content-wrapper {
  background: var(--bg-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--gold) !important;
  border-radius: 0 !important;
  padding: 4px 8px;
}
.leaflet-popup-tip { background: var(--gold) !important; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
  padding: var(--section-y) var(--gutter);
}
.contact__wrap {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact__left h2 {
  font-family: var(--f-display);
  font-size: clamp(48px, 7vw, 108px);
  font-weight: 300;
  line-height: 0.95;
  letter-spacing: -0.02em;
  margin: 20px 0 32px;
}
.contact__sub {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.6;
  max-width: 400px;
  margin-bottom: 56px;
}
.contact__channels {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.contact__channel {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s var(--ease);
}
.contact__channel:hover { padding-left: 12px; }
.contact__channel-label {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  flex: 0 0 140px;
}
.contact__channel-value {
  flex: 1;
  font-family: var(--f-display);
  font-size: clamp(0.875rem, 2vw, 1rem);
  color: var(--text);
  transition: color 0.3s;
}
.contact__channel:hover .contact__channel-value { color: var(--gold); }

.contact__form {
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  padding: 48px;
}
.contact__form h3 {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  margin-bottom: 32px;
}
.form-row { margin-bottom: 24px; position: relative; }
.form-row label {
  display: block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 10px;
}
.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--border-strong);
  padding: 10px 0 12px;
  font-size: 16px;
  color: var(--text);
  outline: none;
  transition: border-color 0.3s;
  font-family: var(--f-ui);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus { border-bottom-color: var(--gold); }
.form-row textarea { resize: vertical; min-height: 100px; font-family: var(--f-ui); }
.form-row select option { background: var(--bg-2); color: var(--text); }

.form-success {
  padding: 40px;
  text-align: center;
  font-family: var(--f-display);
  font-size: 22px;
  color: var(--gold);
  border: 1px solid var(--gold);
  margin-top: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--bg);
  padding: 100px var(--gutter) 40px;
  border-top: 1px solid var(--border);
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 60px;
}
.footer__brand img { height: 52px; margin-bottom: 24px; }
.footer__tagline { color: var(--text-dim); max-width: 320px; font-size: 14px; line-height: 1.6; }
.footer h5 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 20px;
  font-weight: 400;
}
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.footer ul a {
  color: var(--text-dim);
  font-size: 14px;
  transition: color 0.3s;
}
.footer ul a:hover { color: var(--gold); }
.footer__bottom {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 30px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-mute);
  letter-spacing: 0.08em;
}
.footer__vertix {
  max-width: var(--container);
  margin: 18px auto 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.footer__vertix a {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
  transition: opacity .2s ease;
}
.footer__vertix a:hover { opacity: 0.75; }

/* ============================================================
   FAVORITES DRAWER
   ============================================================ */
.fav-drawer-btn {
  position: fixed;
  bottom: 24px; right: 24px;
  z-index: 90;
  background: rgba(20, 19, 15, 0.92);
  border: 1px solid var(--border-strong);
  padding: 14px 20px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
  font-size: clamp(0.625rem, 1.2vw, 0.75rem);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
  backdrop-filter: blur(10px);
}
body.theme-light .fav-drawer-btn { background: rgba(245, 240, 230, 0.88); }
body.theme-coastal .fav-drawer-btn { background: rgba(10, 22, 32, 0.88); }
.fav-drawer-btn:hover { border-color: var(--gold); color: var(--gold); }
.fav-drawer-btn__count {
  background: var(--gold);
  color: #14120e;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center; justify-content: center;
  font-family: var(--f-mono);
  font-size: 11px;
  padding: 0 7px;
  font-weight: 600;
}

.fav-drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 420px;
  max-width: 100vw;
  background: var(--bg-2);
  border-left: 1px solid var(--border-strong);
  z-index: 200;
  transform: translateX(100%);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.fav-drawer.open { transform: translateX(0); }
.fav-drawer__head {
  padding: 32px 32px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.fav-drawer__head h3 {
  font-family: var(--f-display);
  font-size: clamp(1.125rem, 3vw, 1.5rem);
  font-weight: 300;
}
.fav-drawer__tabs {
  display: flex; gap: 4px;
  padding: 16px 32px;
  border-bottom: 1px solid var(--border);
}
.fav-drawer__tab {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  cursor: pointer;
  border: 1px solid transparent;
}
.fav-drawer__tab.active { color: var(--gold); border-color: var(--gold); }
.fav-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.fav-drawer__empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
  font-family: var(--f-display);
  font-size: 18px;
  font-style: italic;
}
.fav-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: all 0.3s;
}
.fav-item:hover { padding-left: 8px; }
.fav-item img {
  width: 80px; height: 80px;
  object-fit: cover;
  flex-shrink: 0;
}
.fav-item__info { flex: 1; display: flex; flex-direction: column; gap: 3px; }
.fav-item__name {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}
.fav-item__zone { font-size: 11px; color: var(--text-dim); letter-spacing: 0.08em; }
.fav-item__price { font-size: 13px; color: var(--gold); font-family: var(--f-display); margin-top: 2px; }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed;
  bottom: 24px; left: 24px;
  z-index: 90;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: inline-flex;
  align-items: center; justify-content: center;
  color: #fff;
  box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35);
  transition: transform 0.3s var(--ease-out);
  animation: waPulse 2s infinite;
}
.wa-float:hover { transform: scale(1.08); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35), 0 0 0 0 rgba(37, 211, 102, 0.6); }
  50% { box-shadow: 0 8px 32px rgba(37, 211, 102, 0.35), 0 0 0 12px rgba(37, 211, 102, 0); }
}

/* ============================================================
   MODAL PROPERTY
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 300;
  display: flex;
  justify-content: center;
  align-items: stretch;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
  backdrop-filter: blur(8px);
  overflow-y: auto;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--bg);
  color: var(--text);
  width: 100%;
  max-width: 1320px;
  margin: 40px auto;
  border: 1px solid var(--border-strong);
  transform: translateY(40px);
  transition: transform 0.5s var(--ease-out);
  display: flex; flex-direction: column;
  position: relative;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal__close {
  position: fixed;
  top: 24px; right: 24px;
  width: 48px; height: 48px;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  color: var(--text);
  display: inline-flex;
  align-items: center; justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s;
}
.modal__close:hover { border-color: var(--gold); color: var(--gold); }

.modal__gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  gap: 4px;
  padding: 4px;
  background: var(--bg-2);
  aspect-ratio: 16 / 9;
  max-height: 640px;
}
.modal__gallery img {
  width: 100%; height: 100%; object-fit: cover;
  cursor: pointer;
  transition: opacity 0.3s;
}
.modal__gallery img:hover { opacity: 0.88; }
.modal__gallery img:nth-child(1) { grid-column: 1; grid-row: 1 / 4; }
.modal__gallery img:nth-child(2) { grid-column: 2; grid-row: 1 / 3; }
.modal__gallery img:nth-child(3) { grid-column: 3; grid-row: 1 / 3; }
.modal__gallery img:nth-child(4) { grid-column: 2; grid-row: 3; }
.modal__gallery img:nth-child(5) { grid-column: 3; grid-row: 3; }
.modal__gallery img:nth-child(6) { display: none; }

.modal__body {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 0;
  background: var(--bg);
  color: var(--text);
}
.modal__main {
  padding: 56px 56px 56px;
  border-right: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  min-width: 0;
}
.modal__head-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 8px;
}
.modal__ref {
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--gold);
  letter-spacing: 0.15em;
}
.modal__title {
  font-family: var(--f-display);
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
  margin: 16px 0 12px;
}
.modal__zone {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  margin-bottom: 32px;
}
.modal__price-row {
  display: flex;
  gap: 40px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.modal__price-item { display: flex; flex-direction: column; gap: 4px; }
.modal__price-label {
  font-size: 10px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
}
.modal__price-value {
  font-family: var(--f-display);
  font-size: 32px;
  color: var(--gold);
  font-weight: 400;
}

.modal__description {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 40px;
  max-width: 640px;
}

.modal__specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  padding: 32px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}
.modal__spec { display: flex; flex-direction: column; gap: 4px; }
.modal__spec-val {
  font-family: var(--f-display);
  font-size: 32px;
  font-weight: 300;
  color: var(--text);
}
.modal__spec-label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-mute);
}

.modal__features-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 16px;
}
.modal__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 24px;
  margin-bottom: 40px;
}
.modal__features li {
  font-size: 14px;
  list-style: none;
  padding-left: 20px;
  position: relative;
  color: var(--text-dim);
}
.modal__features li::before {
  content: "";
  position: absolute;
  left: 0; top: 10px;
  width: 10px; height: 1px;
  background: var(--gold);
}

.modal__alerts {
  display: flex;
  gap: 12px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.modal__alert {
  padding: 10px 16px;
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Modal side (form) */
.modal__side {
  padding: 56px 48px;
  background: var(--bg-2);
  display: flex; flex-direction: column;
  gap: 24px;
}
.modal__side h4 {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 300;
  margin-bottom: 12px;
}
.modal__actions {
  display: flex; gap: 10px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.modal__actions button {
  flex: 1;
  padding: 14px;
  border: 1px solid var(--border-strong);
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text);
  transition: all 0.3s;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.modal__actions button:hover { border-color: var(--gold); color: var(--gold); }

/* Modal contiene todos sus links/anchors con colores del tema */
.modal a { color: var(--text); }
.modal a:hover { color: var(--gold); }
.modal__actions a { color: var(--text); }
.modal__actions a:hover { color: var(--gold); }

/* Overlay: oscurecer menos en theme claro para ver mejor */
body.theme-light .modal-overlay { background: rgba(40, 32, 20, 0.55); }
body.theme-coastal .modal-overlay { background: rgba(5, 12, 20, 0.9); }

/* Bloque amenities dentro del modal */
.modal__amenities-title {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 8px 0 14px;
}
.modal__amen-group { margin-bottom: 18px; }
.modal__amen-group-label {
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}
.modal__amen-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.modal__amen-chip {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  padding: 5px 10px;
  border: 1px solid var(--border-strong);
  color: var(--text-dim);
  background: transparent;
  border-radius: 2px;
}

/* ============================================================
   DROPDOWN (custom select) — theme-aware
   ============================================================ */
.lgm-dd { position: relative; display: inline-block; width: 100%; font-family: inherit; }
.lgm-dd__btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--bg-2);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 0;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.3;
  cursor: pointer;
  text-align: left;
  transition: border-color .2s var(--ease), color .2s var(--ease), background .2s var(--ease);
  appearance: none;
  -webkit-appearance: none;
}
.lgm-dd__btn:hover { border-color: var(--gold); color: var(--text); }
.lgm-dd__btn:focus-visible { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(191,155,88,0.25); }
.lgm-dd--disabled .lgm-dd__btn { opacity: 0.55; cursor: not-allowed; }
.lgm-dd__label { flex: 1; color: var(--text); font-size: clamp(0.7rem, 1.8vw, 0.9rem); }
.lgm-dd__arrow { flex-shrink: 0; color: var(--text-dim); transition: transform .2s var(--ease); }
.lgm-dd--open .lgm-dd__btn { border-color: var(--gold); }
.lgm-dd--open .lgm-dd__arrow { transform: rotate(180deg); color: var(--gold); }
.lgm-dd__panel {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  z-index: 500;
  background: var(--bg-2);
  border: 1px solid var(--border);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 4px 0;
  /* Panel SIEMPRE usa sans 13px color text — sin importar variant */
  font-family: var(--f-sans, 'Geist', system-ui, sans-serif);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.02em;
  color: var(--text);
  text-transform: none;
  animation: lgmDdIn 0.18s var(--ease-out);
}
.lgm-dd--sort .lgm-dd__panel { left: auto; right: 0; }
@keyframes lgmDdIn {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.lgm-dd__opt {
  padding: 10px 14px;
  /* Hereda font-family/size/color del panel — forzar por si algún variant intenta sobrescribir */
  font-family: inherit;
  font-size: clamp(0.7rem, 1.8vw, 0.9rem);
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text);
  cursor: pointer;
  transition: background .12s var(--ease), color .12s var(--ease);
  line-height: 1.35;
}
.lgm-dd__opt:hover { background: var(--bg); color: var(--gold); }
.lgm-dd__opt--on {
  background: var(--gold);
  color: var(--bg);
  font-weight: 500;
}
.lgm-dd__opt--on:hover { background: var(--gold); color: var(--bg); }
.lgm-dd__group { padding-top: 4px; }
.lgm-dd__group + .lgm-dd__group,
.lgm-dd__opt + .lgm-dd__group { border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; }
.lgm-dd__group-label {
  padding: 6px 14px 6px;
  font-family: var(--ff-mono, 'Geist Mono', monospace);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.85;
  pointer-events: none;
}

/* Variant: hero search — transparent, display font */
.lgm-dd--hero .lgm-dd__btn {
  background: transparent;
  border: none;
  padding: 0;
  font-family: var(--f-display);
  font-size: 15px;
  font-weight: 400;
  color: var(--text);
}
.lgm-dd--hero .lgm-dd__btn:hover,
.lgm-dd--hero.lgm-dd--open .lgm-dd__btn { box-shadow: none; color: var(--gold); }
/* Panel + options usan estilo unificado desde .lgm-dd__panel / .lgm-dd__opt */

/* Variant: filters (chips/pill look) */
.lgm-dd--filter .lgm-dd__btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 14px;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Variant: sort (compact, right-aligned) */
.lgm-dd--sort .lgm-dd__btn {
  background: transparent;
  border: 1px solid var(--border);
  padding: 8px 12px;
  font-size: 12px;
  letter-spacing: 0.06em;
}
.lgm-dd--sort { min-width: 220px; }

/* Theme: light palette */
body.theme-light .lgm-dd__btn { background: var(--bg); color: var(--text); }
body.theme-light .lgm-dd__panel { background: var(--bg); box-shadow: 0 12px 36px rgba(20, 18, 10, 0.18); }
body.theme-light .lgm-dd__opt:hover { background: var(--bg-2); color: var(--gold); }
body.theme-light .lgm-dd--hero .lgm-dd__btn,
body.theme-light .lgm-dd--filter .lgm-dd__btn,
body.theme-light .lgm-dd--sort .lgm-dd__btn { background: transparent; }

/* Theme: coastal palette */
body.theme-coastal .lgm-dd__btn { background: var(--bg-2); color: var(--text); }
body.theme-coastal .lgm-dd__panel { background: var(--bg-2); box-shadow: 0 12px 36px rgba(0, 0, 0, 0.55); }
body.theme-coastal .lgm-dd--hero .lgm-dd__btn,
body.theme-coastal .lgm-dd--filter .lgm-dd__btn,
body.theme-coastal .lgm-dd--sort .lgm-dd__btn { background: transparent; }

/* ============================================================
   REVEAL ANIMATIONS
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.reveal-text { overflow: hidden; }
.reveal-text > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1s var(--ease-out);
}
.reveal-text.visible > span { transform: translateY(0); }

/* ============================================================
   TWEAKS PANEL
   ============================================================ */
.tweaks-panel {
  position: fixed;
  bottom: 24px; right: 24px;
  background: rgba(20, 19, 15, 0.95);
  backdrop-filter: blur(20px);
  border: 1px solid var(--gold);
  padding: 28px;
  z-index: 500;
  width: 340px;
  max-width: calc(100vw - 32px);
  display: none;
  font-family: var(--f-ui);
}
.tweaks-panel.visible { display: block; }
.tweaks-panel h3 {
  font-family: var(--f-display);
  font-size: 20px;
  margin-bottom: 20px;
  color: var(--gold);
}
.tweak-row {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.tweak-row label {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.tweak-row select {
  background: var(--bg-3);
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px;
  font-size: 13px;
  font-family: var(--f-ui);
  width: 100%;
}
.tweak-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.tweak-swatch {
  width: 44px; height: 44px;
  border: 2px solid var(--border-strong);
  cursor: pointer;
  position: relative;
}
.tweak-swatch.active { border-color: var(--gold); }
.tweak-swatch.active::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--gold);
}

/* ============================================================
   LANGUAGE DROPDOWN
   ============================================================ */
.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--bg-2);
  border: 1px solid var(--border-strong);
  min-width: 140px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  display: none;
}
.lang-dropdown.open { display: block; }
.lang-dropdown button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s, color 0.2s;
}
.lang-dropdown button:hover { background: var(--bg-3); color: var(--gold); }
.lang-dropdown button.active { color: var(--gold); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  :root {
    --gutter: 32px;
    --section-y: 100px;
  }
  .contact__wrap { grid-template-columns: 1fr; gap: 48px; }
  .map-wrap { grid-template-columns: 1fr; }
  .map-container { height: 440px; }
  .pcard { flex: 0 0 calc(50% - 12px); min-width: 340px; }
  .modal__body { grid-template-columns: 1fr; }
  .modal__main { border-right: 0; border-bottom: 1px solid var(--border); }
}

@media (max-width: 1024px) {
  :root {
    --gutter: 24px;
    --section-y: 80px;
  }
  .nav__links { display: none; }
  .nav__burger { display: flex; }
  .nav__theme-group { display: none; }

  .hero { padding: 100px 24px 60px; min-height: 92vh; }
  .hero__content { grid-template-columns: 1fr; }
  .hero__meta { flex-direction: row; align-items: flex-start; text-align: left; justify-content: space-between; width: 100%; }

  .search {
    margin-top: -30px;
    grid-template-columns: 1fr 1fr;
  }
  .search__field:nth-child(2n)::after { display: none; }
  .search__field:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .search__btn { grid-column: 1 / -1; padding: 18px; }

  .section-head { grid-template-columns: 1fr; gap: 24px; margin-bottom: 48px; }
  .section-head p { max-width: none; }

  .pcard { min-width: 280px; flex: 0 0 85%; }

  .editorial__grid { grid-template-columns: repeat(6, 1fr); gap: 16px; }
  .gcard--w3, .gcard--w4 { grid-column: span 3; }
  .gcard--w5, .gcard--w6 { grid-column: span 6; }
  .gcard--w7, .gcard--w8 { grid-column: span 6; }

  .pillars__grid { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 1px solid var(--border); padding: 40px 0 !important; }
  .pillar:last-child { border-bottom: 0; }

  .process__steps { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .process__line, .process__line-fill { display: none; }

  .sell-banner { padding: 40px 20px; }
  .sell-banner__content { grid-template-columns: 1fr; min-height: 0; }
  .sell-banner__bg { min-height: 280px; aspect-ratio: 16/10; }
  .sell-banner__bg::after {
    background:
      linear-gradient(180deg, rgba(14,14,12,0.15) 0%, var(--bg-2) 98%);
  }
  .sell-banner__panel::before { display: none; }
  .sell-banner__meta { gap: 16px; }

  .contact__form { padding: 32px 24px; }

  .footer__inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; gap: 12px; align-items: flex-start; text-align: left; }

  .modal { margin: 0; max-width: 100%; }
  .modal__gallery { grid-template-columns: 1fr 1fr; grid-template-rows: auto; aspect-ratio: auto; max-height: none; }
  .modal__gallery img:nth-child(1) { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 10; }
  .modal__gallery img:nth-child(n+2) { grid-column: auto; grid-row: auto; aspect-ratio: 1 / 1; }
  .modal__gallery img:nth-child(6) { display: block; }
  .modal__main, .modal__side { padding: 32px 24px; }
  .modal__specs { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .modal__features { grid-template-columns: 1fr; }

  .fav-drawer { width: 100%; }
  .fav-drawer-btn { bottom: 16px; right: 16px; padding: 10px 14px; }
  .wa-float { bottom: 16px; left: 16px; width: 52px; height: 52px; }
}

@media (max-width: 767px) {
  /* Hero mobile redesign: stack texto + form vertical, no overlay. */
  .hero {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-end;
    padding: 96px 16px 40px;
    min-height: auto;
    gap: 28px;
  }
  .hero__content { padding: 0; }
  .hero__main { max-width: 100%; }
  .hero__title {
    font-size: clamp(2rem, 9vw, 3.25rem);
    margin-bottom: 18px;
    line-height: 1;
  }
  .hero__title span { display: block; }
  .hero__sub {
    font-size: clamp(0.875rem, 2.2vw, 1rem);
    margin-bottom: 0;
    max-width: 100%;
  }
  .hero__eyebrow { font-size: 10px; margin-bottom: 20px; }
  .hero__scroll { display: none; }

  .search {
    position: relative;
    margin: 0;
    width: 100%;
    max-width: 100%;
    grid-template-columns: 1fr;
    padding: 6px;
  }
  .search__field { padding: 14px 18px; }
  .search__field:not(:last-child)::after { display: none; }
  .search__field { border-bottom: 1px solid var(--border); }
  .search__btn { grid-column: 1 / -1; padding: 16px; }
}

@media (max-width: 640px) {
  .footer__inner { grid-template-columns: 1fr; }
  .editorial__grid { grid-template-columns: 1fr; }
  .gcard--w3, .gcard--w4, .gcard--w5, .gcard--w6, .gcard--w7, .gcard--w8 { grid-column: 1; }
  .process__steps { grid-template-columns: 1fr; }
}

/* ============================================================
   PAGE TRANSITIONS + ROUTER
   ============================================================ */
.route-main { min-height: 60vh; }
.page-transition--in {
  animation: pageFadeIn 0.42s var(--ease-out);
}
@keyframes pageFadeIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Page head (Propiedades, Sobre mí, Servicios) */
.page { padding-top: 120px; }
.page__head {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 80px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 100%);
}
.page__title {
  font-size: clamp(56px, 8vw, 120px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  margin: 20px 0 28px;
  max-width: 22ch;
}
.page__sub {
  max-width: 56ch;
  color: var(--text-dim);
  font-size: clamp(0.9375rem, 1.6vw, 1.125rem);
  line-height: 1.65;
}

/* ============================================================
   PROPIEDADES — filtros + resultados
   ============================================================ */
.page--props { padding-bottom: 120px; padding-top: 160px; }
.page--props .page__body { padding-top: 32px; }
.page__body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
  align-items: flex-start;
}

.filters {
  position: sticky;
  top: 100px;
  padding: 28px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}
.filters::-webkit-scrollbar { width: 4px; }
.filters__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.filters__head h3 {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 300;
}
.filters__reset {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
  transition: all 0.3s;
}
.filters__reset:hover { color: var(--accent); border-bottom-color: var(--accent); }

.filters__search {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0 14px;
  transition: border-color 0.3s;
}
.filters__search:focus-within { border-color: var(--accent); }
.filters__search svg { flex: 0 0 auto; color: var(--text-dim); width: 14px; height: 14px; }
.filters__search input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: none;
  padding: 12px 10px;
  font-size: 13px;
  color: var(--text);
}
.filters__search input::placeholder { color: var(--text-mute); }

.filter-group { display: flex; flex-direction: column; gap: 10px; }
.filter-group__label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  font-weight: 400;
}
.filters__select {
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 10px 12px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23a89f8a' stroke-width='1.2'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 30px;
  transition: border-color 0.3s;
}
.filters__select:focus { border-color: var(--accent); }
.filters__select option {
  background: var(--bg-2);
  color: var(--text);
}
body.theme-light .filters__select { color-scheme: light; }
body.theme-light .filters__select option { background: var(--surface); color: var(--text); }

/* Amenities filter */
.filter-amen__head {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: transparent;
  border: none;
  padding: 6px 0;
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  cursor: pointer;
  font-family: inherit;
}
.filter-amen__head:hover { color: var(--text); }
.filter-amen__count {
  display: inline-block;
  margin-left: 8px;
  padding: 1px 7px;
  background: var(--accent);
  color: #000;
  font-size: 10px;
  border-radius: 10px;
  letter-spacing: 0;
}
.filter-amen__chev { font-size: 10px; transition: transform .2s; }
.filter-amen__chev.open { transform: rotate(180deg); }
.filter-amen__body { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.filter-amen__group-label {
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}
.filter-amen__chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-amen__chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-dim);
  padding: 6px 11px;
  font-size: 11px;
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: all .15s;
}
.filter-amen__chip:hover { border-color: var(--accent); color: var(--text); }
.filter-amen__chip.on { background: var(--accent); color: #000; border-color: var(--accent); }
body.theme-coastal .filters__select { color-scheme: dark; }
body.theme-coastal .filters__select option { background: var(--bg-2); color: var(--text); }

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-pill {
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
  border: 1px solid var(--border);
  background: transparent;
  transition: all 0.25s var(--ease-out);
  cursor: pointer;
}
.filter-pill:hover {
  color: var(--text);
  border-color: var(--border-strong);
}
.filter-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
  font-weight: 500;
}

/* Results */
.results { min-width: 0; }
.results__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 24px;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--border);
  gap: 20px;
  flex-wrap: wrap;
}
.results__count {
  display: flex;
  align-items: baseline;
  gap: 12px;
}
.results__count strong {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.results__count span {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.results__controls { display: flex; gap: 12px; align-items: center; }
.results__sort {
  background: transparent;
  border: 1px solid var(--border);
  padding: 10px 32px 10px 14px;
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23a89f8a' stroke-width='1.2'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.results__view { display: flex; border: 1px solid var(--border); }
.results__view button {
  padding: 10px 12px;
  color: var(--text-dim);
  transition: all 0.25s;
}
.results__view button.active { color: var(--bg); background: var(--accent); }
.results__view button:first-child { border-right: 1px solid var(--border); }

.results__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px 32px;
}
@media (min-width: 1280px) { .results__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 768px) { .results__grid { grid-template-columns: 1fr; } }

.results__list { display: flex; flex-direction: column; gap: 24px; }
.results__empty {
  padding: 80px 20px;
  text-align: center;
  color: var(--text-dim);
}
.results__empty p { margin-bottom: 20px; font-size: 16px; }

/* List card (propiedades view=list) */
.lcard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.3s, transform 0.4s var(--ease-out);
}
.lcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.lcard__img {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}
.lcard__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out);
}
.lcard:hover .lcard__img img { transform: scale(1.06); }
.lcard__body {
  padding: 24px 28px 24px 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: start;
}
.lcard__ref {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.lcard__name {
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
  line-height: 1.1;
}
.lcard__desc {
  color: var(--text-dim);
  font-size: clamp(0.75rem, 1.6vw, 0.95rem);
  line-height: 1.6;
  margin-bottom: 16px;
}
.lcard__specs {
  display: flex; gap: 22px;
  font-size: 13px;
  color: var(--text-dim);
}
.lcard__specs div { display: flex; align-items: center; gap: 6px; }
.lcard__specs svg { color: var(--accent); }
.lcard__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 10px;
  padding-right: 4px;
  min-width: 180px;
}
.lcard__op {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--accent);
  color: var(--accent);
}
.lcard__price { display: flex; flex-direction: column; gap: 2px; }
.lcard__price-main {
  font-family: var(--f-display);
  font-size: 26px;
  font-weight: 400;
  color: var(--text);
  line-height: 1;
}
.lcard__price-alt { font-size: 12px; color: var(--text-dim); }
.lcard__cta { font-size: 11px; }

@media (max-width: 1024px) {
  .page__body { grid-template-columns: 1fr; gap: 32px; }
  .filters { position: static; max-height: none; }
  .lcard { grid-template-columns: 1fr; }
  .lcard__body { padding: 20px; grid-template-columns: 1fr; }
  .lcard__aside { align-items: flex-start; text-align: left; min-width: 0; }
}

/* ============================================================
   SOBRE MÍ
   ============================================================ */
.page--about { padding-top: 88px; }
.about__hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 80vh;
  align-items: stretch;
}
.about__hero-img {
  position: relative;
  overflow: hidden;
  background: var(--bg-2);
}
.about__hero-img img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: grayscale(0.15) contrast(1.02);
}
.about__hero-img::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(14,14,12,0.3) 100%);
  pointer-events: none;
}
.about__hero-content {
  padding: 80px var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--bg);
}
.about__lede {
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.4vw, 1.5rem);
  font-weight: 300;
  line-height: 1.4;
  color: var(--text);
  max-width: 38ch;
  margin: 28px 0 40px;
}
.about__lede em { color: var(--accent); font-style: italic; }
.about__meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.about__meta > div { display: flex; flex-direction: column; gap: 4px; }
.about__meta strong {
  font-family: var(--f-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--accent);
}
.about__meta span {
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__body { padding: 120px 0; display: flex; flex-direction: column; gap: 100px; }
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: flex-start;
}
.about__h2 {
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.02;
  margin-top: 20px;
}
.about__prose p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--text-dim);
  margin-bottom: 22px;
  text-wrap: pretty;
}
.about__prose p:first-child::first-letter {
  font-family: var(--f-display);
  font-size: 68px;
  line-height: 0.85;
  float: left;
  margin: 4px 10px 0 0;
  color: var(--accent);
  font-weight: 400;
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.about__stat {
  padding: 40px 28px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid var(--border);
}
.about__stat:last-child { border-right: 0; }
.about__stat strong {
  font-family: var(--f-display);
  font-size: clamp(2.75rem, 5.5vw, 4rem);
  font-weight: 300;
  color: var(--accent);
  line-height: 1;
}
.about__stat span {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.about__values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 40px;
}
.about__value {
  border-left: 1px solid var(--accent);
  padding-left: 24px;
}
.about__value h4 {
  font-family: var(--f-display);
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 10px;
  color: var(--text);
}
.about__value p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-dim);
}

.about__quote {
  padding: 80px 40px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  text-align: center;
}
.about__quote blockquote { max-width: 32ch; margin: 0 auto; }
.about__quote p {
  font-family: var(--f-display);
  font-size: clamp(28px, 3.4vw, 42px);
  font-style: italic;
  font-weight: 300;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: 28px;
  text-wrap: balance;
}
.about__quote footer {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
}

@media (max-width: 1024px) {
  .about__hero { grid-template-columns: 1fr; }
  .about__hero-img { min-height: 50vh; }
  .about__hero-content { padding: 60px 24px; }
  .about__grid { grid-template-columns: 1fr; gap: 32px; }
  .about__stats { grid-template-columns: repeat(2, 1fr); }
  .about__stat:nth-child(2) { border-right: 0; }
  .about__stat:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .about__values { grid-template-columns: 1fr; }
  .about__meta { grid-template-columns: 1fr; gap: 16px; }
}

/* ============================================================
   SERVICIOS
   ============================================================ */
.services-list {
  display: flex;
  flex-direction: column;
  gap: 120px;
  padding: 0 var(--gutter) 120px;
  max-width: var(--container);
  margin: 0 auto;
}
.service-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.service-row--reverse .service-row__img { order: 2; }
.service-row--featured { position: relative; }
.service-row--featured::before {
  content: "";
  position: absolute;
  inset: -60px -40px;
  background: var(--bg-2);
  z-index: -1;
  border: 1px solid var(--border);
}
.service-row__img {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
}
.service-row__img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease-out);
}
.service-row:hover .service-row__img img { transform: scale(1.04); }
.service-row__num {
  position: absolute;
  top: 24px; left: 24px;
  font-family: var(--f-mono);
  font-size: 14px;
  letter-spacing: 0.24em;
  color: var(--text);
  padding: 8px 14px;
  background: rgba(14, 14, 12, 0.6);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(232, 226, 212, 0.2);
}
.service-row__tag {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 6px 14px;
  background: var(--accent);
  color: var(--bg);
  margin-bottom: 24px;
  font-weight: 500;
}
.service-row__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 4.5vw, 64px);
  font-weight: 300;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.service-row__sub {
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  line-height: 1.6;
  color: var(--text-dim);
  margin-bottom: 32px;
  text-wrap: pretty;
}
.service-row__items {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 40px;
}
.service-row__items li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}
.service-row__check {
  flex: 0 0 auto;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 2px;
}
.service-row__check svg { width: 10px; height: 10px; }

.services__cta {
  padding: 100px 40px;
  text-align: center;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.services__cta-title {
  font-size: clamp(40px, 5vw, 72px);
  line-height: 1;
  margin-bottom: 20px;
  max-width: 20ch;
  margin-inline: auto;
}
.services__cta p {
  max-width: 48ch;
  margin: 0 auto 40px;
  color: var(--text-dim);
  font-size: 17px;
}

@media (max-width: 1024px) {
  .services-list { gap: 80px; }
  .service-row { grid-template-columns: 1fr; gap: 32px; }
  .service-row--reverse .service-row__img { order: 0; }
  .service-row--featured::before { inset: -30px -20px; }
}

/* ============================================================
   MOBILE DRAWER (hamburger menu)
   ============================================================ */
.nav__burger {
  display: none;
  width: 44px; height: 44px;
  position: relative;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
}
.nav__burger span {
  position: absolute;
  left: 50%;
  width: 20px;
  height: 1px;
  background: var(--text);
  transform: translateX(-50%);
  transition: all 0.3s var(--ease-out);
}
.nav__burger span:nth-child(1) { top: 14px; }
.nav__burger span:nth-child(2) { top: 21px; }
.nav__burger span:nth-child(3) { top: 28px; }
.nav__burger.open span:nth-child(1) { top: 21px; transform: translateX(-50%) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { top: 21px; transform: translateX(-50%) rotate(-45deg); }

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
}
.mobile-drawer.open { pointer-events: auto; }
.mobile-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s var(--ease-out);
}
.mobile-drawer.open .mobile-drawer__scrim { opacity: 1; }
.mobile-drawer__panel {
  position: absolute;
  top: 0; right: 0;
  width: min(420px, 88vw);
  height: 100%;
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: 100px 32px 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform: translateX(100%);
  transition: transform 0.45s var(--ease-out);
  overflow-y: auto;
}
.mobile-drawer.open .mobile-drawer__panel { transform: translateX(0); }
.mobile-drawer__close {
  position: absolute;
  top: 20px;
  right: 20px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: var(--bg);
  border: 1px solid var(--accent);
  border-radius: 999px;
  font-family: var(--f-sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  z-index: 2;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s var(--ease-out), background 0.2s, color 0.2s;
}
.mobile-drawer__close:hover,
.mobile-drawer__close:focus-visible {
  transform: scale(1.04);
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
  outline: none;
}
.mobile-drawer__close svg { flex-shrink: 0; }
.mobile-drawer__links { list-style: none; display: flex; flex-direction: column; }
.mobile-drawer__links li {
  border-bottom: 1px solid var(--border);
}
.mobile-drawer__links a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 22px 0;
  font-family: var(--f-display);
  font-size: 28px;
  font-weight: 300;
  color: var(--text);
  transition: color 0.3s, padding-left 0.3s var(--ease-out);
}
.mobile-drawer__links a:hover,
.mobile-drawer__links a.active {
  color: var(--accent);
  padding-left: 10px;
}
.mobile-drawer__links a.active::before {
  content: "—";
  margin-right: 10px;
  color: var(--accent);
}
.mobile-drawer__links a svg { opacity: 0.6; }
.mobile-drawer__foot {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.mobile-drawer__langs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.mobile-drawer__langs button {
  padding: 10px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  border: 1px solid var(--border);
  color: var(--text-dim);
  transition: all 0.25s;
  cursor: pointer;
  background: transparent;
}
.mobile-drawer__langs button:hover { color: var(--text); border-color: var(--border-strong); }
.mobile-drawer__langs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}

.mobile-drawer__theme {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.mobile-drawer__theme-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  transition: all 0.25s;
}
.mobile-drawer__theme-btn:hover { color: var(--text); border-color: var(--border-strong); }
.mobile-drawer__theme-btn.active {
  color: var(--gold);
  border-color: var(--gold);
  background: color-mix(in srgb, var(--gold) 12%, transparent);
}

/* Active nav link (desktop) */
.nav__links a.active {
  color: var(--accent);
  opacity: 1;
}
.nav__links a.active::after { transform: scaleX(1); }

/* ============================================================
   RESPONSIVE PASS (nav + general)
   ============================================================ */
@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; align-items: center; justify-content: center; }
  .nav__wa-label { display: none; }
  .nav__wa { padding: 10px 14px; }
  .nav__lang-wrap { display: none; }
}

@media (max-width: 768px) {
  :root {
    --gutter: 20px;
    --section-y: 80px;
  }
  .page { padding-top: 88px; }
  .page--props { padding-top: 110px; }
  .page--props .page__body { padding-top: 20px; }
  .page__head { padding: 48px 0 32px; margin-bottom: 48px; }
  .page__title { margin: 14px 0 18px; }

  .results__head { flex-direction: column; align-items: flex-start; }
  .filters { padding: 20px; }
  .filter-pills { gap: 4px; }
  .filter-pill { padding: 7px 10px; }

  .about__stat { padding: 28px 18px; }
  .about__quote { padding: 48px 24px; }

  .services-list { gap: 64px; padding-bottom: 64px; }
  .service-row__sub { margin-bottom: 24px; }
  .services__cta { padding: 64px 24px; }

  .wa-float { bottom: 84px; }
  .fav-drawer-btn {
    bottom: 16px; right: 16px;
    padding: 10px 14px;
  }
  .fav-drawer-btn span:nth-child(2) { display: none; }
}

/* Favorites/fav drawer accent fix */
.fav-drawer-btn:hover { border-color: var(--accent); color: var(--accent); }
.fav-drawer-btn__count {
  background: var(--accent) !important;
  color: var(--bg) !important;
}

/* ============================================================
   SELL PAGE (/vender) — hereda paleta del tema activo
   ============================================================ */
.sell {
  max-width: 980px;
  margin: 0 auto;
  /* Top padding clears fixed .nav (height ~89px + breathing room) so hero no se solapa */
  padding: 130px 48px 120px;
  color: var(--text);
}
.sell__hero { text-align: center; margin-bottom: 40px; }
.sell__hero .eyebrow { display: block; margin-bottom: 18px; color: var(--gold); }
.sell__title {
  font-family: var(--f-display);
  font-size: clamp(40px, 5.5vw, 72px);
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  color: var(--text);
}
.sell__title em { font-style: italic; color: var(--gold); font-weight: 300; }
.sell__sub {
  font-size: 16px; line-height: 1.65;
  color: var(--text-dim);
  max-width: 620px; margin: 0 auto;
}

.sell__progress {
  display: flex; gap: 16px;
  margin: 0 0 36px;
  justify-content: space-between;
}
.sell__step {
  flex: 1;
  display: flex; flex-direction: column; gap: 6px;
  padding: 14px 0;
  border-top: 2px solid var(--border);
  opacity: 0.45;
  transition: all .3s var(--ease);
}
.sell__step.active { opacity: 1; border-top-color: var(--gold); }
.sell__step.done { opacity: 0.7; border-top-color: var(--gold); }
.sell__step-num {
  font-family: var(--f-mono);
  font-size: 11px; letter-spacing: 0.2em;
  color: var(--gold);
}
.sell__step-label {
  font-size: 12px; letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
}

.sell__form { display: flex; flex-direction: column; }
.sell__section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 40px 44px 36px;
  margin-bottom: 24px;
}
.sell__section h2 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  margin: 0 0 10px;
  color: var(--text);
}
.sell__hint {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0 0 28px;
  line-height: 1.5;
}
.sell__hint-inline {
  color: var(--text-mute);
  font-weight: 400;
  font-size: 12px;
  margin-left: 6px;
}

.sell__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.sell__field { display: flex; flex-direction: column; gap: 8px; }
.sell__field--full { grid-column: 1 / -1; }
.sell__field label {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.sell__field input,
.sell__field select,
.sell__field textarea {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 13px 14px;
  color: var(--text);
  font-family: var(--f-ui);
  font-size: 14px;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  width: 100%;
}
.sell__field input:focus,
.sell__field select:focus,
.sell__field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--surface-2);
}
.sell__field textarea { resize: vertical; min-height: 90px; line-height: 1.55; font-family: var(--f-ui); }
.sell__field select {
  cursor: pointer;
  appearance: none;
  color-scheme: dark;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a89f8a' stroke-width='2'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}
.sell__field select option { background: var(--bg-2); color: var(--text); }
body.theme-light .sell__field select { color-scheme: light; }
body.theme-light .sell__field select option { background: var(--surface); color: var(--text); }

.sell__currency-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 8px;
}

.sell__checks {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 16px 18px;
}
.sell__check {
  display: flex; align-items: center; gap: 10px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
}
.sell__check input[type="checkbox"] {
  width: 16px; height: 16px;
  accent-color: var(--gold);
  cursor: pointer;
}

.sell__upload {
  border: 1.5px dashed var(--border-strong);
  border-radius: 3px;
  padding: 36px 20px;
  text-align: center;
  background: var(--bg-2);
  transition: all .2s var(--ease);
  cursor: pointer;
  position: relative;
}
.sell__upload.drag { border-color: var(--gold); background: var(--surface-2); }
.sell__file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%; height: 100%;
}
.sell__upload-label {
  font-size: 14px;
  color: var(--text);
  margin-bottom: 6px;
  cursor: pointer;
}
.sell__upload-hint {
  font-size: 11px;
  color: var(--text-mute);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.sell__photos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 16px;
}
.sell__photo {
  position: relative;
  aspect-ratio: 1;
  border-radius: 3px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
}
.sell__photo img { width: 100%; height: 100%; object-fit: cover; }
.sell__photo button {
  position: absolute;
  top: 6px; right: 6px;
  width: 26px; height: 26px;
  background: rgba(14, 14, 12, 0.8);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.sell__actions {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 24px 0 0;
}
.sell__spacer { flex: 1; }
.sell .btn-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 3px;
  font-family: var(--f-ui);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text);
  transition: all .2s var(--ease);
}
.sell .btn-line:hover { border-color: var(--gold); color: var(--gold); }
.sell .btn-gold:disabled { opacity: 0.5; cursor: not-allowed; }

.sell__error {
  background: rgba(226, 139, 106, 0.12);
  border: 1px solid rgba(226, 139, 106, 0.5);
  color: #f1a98a;
  padding: 14px 18px;
  border-radius: 3px;
  margin: 18px 0 0;
  font-size: 13px;
}

.sell__success {
  text-align: center;
  padding: 140px 24px;
  max-width: 640px;
  margin: 0 auto;
}
.sell__success-icon {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg);
  font-size: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 36px;
  font-weight: 600;
}
.sell__success h1 {
  font-family: var(--f-display);
  font-style: italic;
  font-size: clamp(2.375rem, 5vw, 3.25rem);
  font-weight: 300;
  margin: 0 0 20px;
  color: var(--text);
}
.sell__success p {
  color: var(--text-dim);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 36px;
}

@media (max-width: 768px) {
  /* Padding top aumentado para clear del nav fixed (89px) + breathing room */
  .sell { padding: 110px 20px 80px; }
  .sell__section { padding: 28px 22px; }
  .sell__grid { grid-template-columns: 1fr; }
  .sell__progress { flex-direction: column; align-items: stretch; gap: 0; }
  .sell__step { flex-direction: row; gap: 12px; border-top: none; border-left: 2px solid var(--border); padding: 10px 14px; }
  .sell__step.active, .sell__step.done { border-left-color: var(--gold); }
  .sell__success { padding: 80px 20px; }
}

/* ============================================================
   LIGHTBOX — Image carousel (near fullscreen) w/ thumbnails
============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(0, 0, 0, 0.94);
  display: grid;
  grid-template-rows: 1fr auto;
  opacity: 0;
  animation: lbFade 180ms ease-out forwards;
}
.lightbox.open { opacity: 1; }
@keyframes lbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.lightbox__close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 18, 14, 0.65);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: blur(8px);
}
.lightbox__close:hover {
  background: rgba(198, 161, 91, 0.22);
  border-color: var(--gold);
  color: var(--gold);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(20, 18, 14, 0.5);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 150ms ease;
  backdrop-filter: blur(6px);
}
.lightbox__nav:hover {
  background: rgba(198, 161, 91, 0.2);
  border-color: var(--gold);
  color: var(--gold);
}
.lightbox__nav--prev { left: 24px; }
.lightbox__nav--next { right: 24px; }

.lightbox__stage {
  position: relative;
  display: grid;
  place-items: center;
  padding: 60px 90px 20px;
  overflow: hidden;
  user-select: none;
}
.lightbox__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6);
  animation: lbImg 220ms ease-out;
}
@keyframes lbImg {
  from { opacity: 0; transform: scale(0.98); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox__counter {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(20, 18, 14, 0.65);
  color: var(--gold);
  border: 1px solid rgba(198, 161, 91, 0.3);
  font-family: var(--f-sans);
  font-size: clamp(0.6875rem, 1.4vw, 0.8125rem);
  letter-spacing: 0.12em;
  backdrop-filter: blur(8px);
}

.lightbox__thumbs {
  display: flex;
  gap: 10px;
  padding: 16px 28px 24px;
  overflow-x: auto;
  scroll-behavior: smooth;
  justify-content: center;
  scrollbar-width: thin;
  scrollbar-color: rgba(198, 161, 91, 0.4) transparent;
}
.lightbox__thumbs::-webkit-scrollbar { height: 6px; }
.lightbox__thumbs::-webkit-scrollbar-thumb { background: rgba(198, 161, 91, 0.4); border-radius: 3px; }

.lightbox__thumb {
  flex: 0 0 auto;
  width: 96px;
  height: 64px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: none;
  padding: 0;
  cursor: pointer;
  opacity: 0.55;
  transition: all 160ms ease;
}
.lightbox__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.lightbox__thumb:hover { opacity: 0.85; }
.lightbox__thumb.active {
  opacity: 1;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(198, 161, 91, 0.18);
}

/* Mobile adaptation */
@media (max-width: 768px) {
  .lightbox__stage { padding: 48px 8px 10px; }
  .lightbox__close { top: 10px; right: 10px; width: 38px; height: 38px; }
  .lightbox__nav {
    width: 42px;
    height: 42px;
    top: auto;
    bottom: 128px;
    transform: none;
    background: rgba(20, 18, 14, 0.75);
  }
  .lightbox__nav--prev { left: 12px; }
  .lightbox__nav--next { right: 12px; }
  .lightbox__counter { top: 12px; padding: 6px 12px; }
  .lightbox__img { border-radius: 4px; }
  .lightbox__thumbs {
    padding: 10px 12px 14px;
    justify-content: flex-start;
    gap: 6px;
  }
  .lightbox__thumb { width: 64px; height: 44px; border-width: 1.5px; }
}

@media (max-width: 640px) {
  .lightbox__thumb { width: 54px; height: 38px; }
  .lightbox__nav { bottom: 110px; }
}
