:root {
  --color-bg: #FBF8F2;
  --color-bg-alt: #EAF1F6;
  --color-bg-deep: #0F2A47;
  --color-bg-deeper: #0A1C30;
  --color-text: #16202C;
  --color-text-muted: #5B6B7C;
  --color-text-inv: #EAF1F8;
  --color-text-inv-muted: #9FB4C7;
  --color-primary: #A16207;
  --color-primary-bright: #D4A72C;
  --color-primary-soft: #F3E6C8;
  --color-secondary: #256F8C;
  --color-secondary-bright: #4FA8D8;
  --color-cta: #A16207;
  --color-cta-hover: #8A5406;
  --color-cta-text: #FFFFFF;
  --color-line: #E1DCCB;
  --color-line-inv: rgba(234, 241, 248, .16);

  --font-display: 'General Sans', system-ui, sans-serif;
  --font-body: 'Author', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --fs-h1: clamp(2.3rem, 5.2vw, 4rem);
  --fs-h2: clamp(1.75rem, 3.4vw, 2.7rem);
  --fs-h3: clamp(1.15rem, 1.9vw, 1.4rem);
  --fs-body: clamp(1rem, 1.1vw, 1.125rem);
  --fs-sm: .9375rem;
  --fs-xs: .8125rem;

  --sp-1: .5rem;
  --sp-2: 1rem;
  --sp-3: 1.5rem;
  --sp-4: 2rem;
  --sp-5: 2.5rem;
  --sp-6: 3rem;
  --sp-7: 4rem;
  --sp-8: 5rem;

  --section-pad-y: clamp(2.5rem, 5vw, 4rem);
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 64px;

  --shadow-sm: 0 2px 8px rgba(15, 42, 71, .07);
  --shadow-md: 0 10px 30px rgba(15, 42, 71, .12);
  --shadow-lg: 0 26px 70px rgba(15, 42, 71, .24);

  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-reveal: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

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

html { overflow-x: clip; max-width: 100vw; -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto !important; }
html.lenis.lenis-stopped { overflow: hidden; }

body {
  overflow-x: clip;
  max-width: 100vw;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.25; }
p { text-wrap: pretty; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

::selection { background: var(--color-primary); color: #fff; }
:focus-visible { outline: 3px solid var(--color-secondary-bright); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; top: -100px; left: 16px; z-index: 200;
  background: var(--color-bg-deep); color: #fff; padding: 12px 20px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm); text-decoration: none;
  font-weight: 600; transition: top .25s var(--ease-out);
}
.skip-link:focus { top: 0; }

.wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.wrap-narrow { width: min(780px, 100% - 2.5rem); }

section { position: relative; z-index: 1; }
main { position: relative; z-index: 1; }
[data-animate] { opacity: 0; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 13px 26px; border: 0; border-radius: 100px;
  font-weight: 700; font-size: var(--fs-sm); text-decoration: none; cursor: pointer;
  transition: background-color .3s var(--ease-out), color .3s var(--ease-out),
              transform .15s var(--ease-out), box-shadow .3s var(--ease-out);
}
.btn .ico { width: 18px; height: 18px; flex: none; }
.btn:active { transform: scale(.97); }

.btn-cta { background: var(--color-cta); color: var(--color-cta-text); box-shadow: 0 8px 24px rgba(161, 98, 7, .3); }
.btn-cta:hover { background: var(--color-cta-hover); box-shadow: 0 12px 32px rgba(161, 98, 7, .4); }

.btn-cta-inv { background: var(--color-bg-deep); color: #fff; box-shadow: 0 8px 24px rgba(15, 42, 71, .35); }
.btn-cta-inv:hover { background: var(--color-bg-deeper); }

.btn-ghost {
  background: rgba(255, 255, 255, .75); color: var(--color-bg-deep);
  box-shadow: inset 0 0 0 1.5px var(--color-bg-deep); backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: var(--color-bg-deep); color: #fff; }

.btn-sm { min-height: 44px; padding: 10px 20px; font-size: var(--fs-xs); }
.btn-lg { min-height: 56px; padding: 16px 34px; font-size: 1.0625rem; }
.btn-block { width: 100%; }

/* ---------- kicker ---------- */
.kicker {
  display: flex; align-items: center; font-size: var(--fs-xs); font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--sp-2);
}
.kicker-center { justify-content: center; }
.kicker-light { color: var(--color-text-inv-muted); }
.kicker-thread { position: relative; width: 30px; height: 1px; background: currentColor; opacity: .55; margin-right: 12px; flex: none; }
.kicker-thread::after { content: ""; position: absolute; right: -2px; top: -2.5px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-secondary-bright); opacity: 1; }

.sec-head { margin-bottom: var(--sp-5); max-width: 24ch; }
.sec-head h2 { max-width: 18ch; }
.sec-head-center { margin-inline: auto; text-align: center; max-width: 46ch; }
.sec-head-center h2 { max-width: 22ch; margin-inline: auto; }

/* ---------- progress bar ---------- */
.progress-bar { position: fixed; top: 0; left: 0; height: 3px; width: 100%; transform: scaleX(0); transform-origin: 0 50%; background: var(--color-primary); z-index: 120; pointer-events: none; }

/* ---------- header ---------- */
.site-header { position: relative; z-index: 15; height: var(--header-h); margin-top: 20px; overflow: visible; }
.header-inner {
  width: min(1200px, 100% - 2.5rem); margin-inline: auto; height: var(--header-h);
  padding: 0 8px 0 14px; display: flex; align-items: center; gap: var(--sp-3);
  background: rgba(251, 248, 242, .86); backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .7); border-radius: 36px; box-shadow: var(--shadow-md);
  overflow: visible;
}
.brand { position: relative; z-index: 100; display: flex; align-items: center; text-decoration: none; overflow: visible; flex: none; }
.brand-logo {
  width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 2px var(--color-bg), 0 4px 14px rgba(15, 42, 71, .3);
}
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; padding: 8px 12px; font-size: var(--fs-xs); font-weight: 600;
  color: var(--color-text-muted); text-decoration: none; border-radius: 8px;
  transition: color .25s var(--ease-out);
}
.nav a::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 1.5px;
  background: var(--color-primary); transform: scaleX(0); transform-origin: 0 50%;
  transition: transform .3s var(--ease-out);
}
.nav a:hover { color: var(--color-text); }
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--color-text); }
.header-cta { flex: none; }

.nav-toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
  border-radius: 10px; flex-direction: column; align-items: center; justify-content: center; gap: 5px; margin-left: auto;
}
.nav-toggle span { display: block; width: 20px; height: 2px; border-radius: 2px; background: var(--color-text); transition: transform .3s var(--ease-drawer); }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* ---------- hero (clásico, full-bleed) ---------- */
.hero { position: relative; z-index: 1; min-height: 100svh; margin-top: -100px; display: flex; align-items: center; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 62%; z-index: 0; }
.hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(180deg, rgba(10, 20, 32, .72) 0%, rgba(10, 20, 32, .38) 38%, rgba(10, 20, 32, .32) 62%, rgba(10, 20, 32, .78) 100%);
}
.hero-inner { position: relative; z-index: 2; width: min(900px, 100% - 2.5rem); margin-inline: auto; padding-top: 100px; }
.hero .kicker { color: var(--color-primary-bright); }
.hero h1 {
  color: #fff; max-width: 16ch;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 8px 30px rgba(0, 0, 0, .4);
}
.hero-lead {
  margin-top: var(--sp-3); max-width: 56ch; font-size: clamp(1rem, 1.5vw, 1.1875rem);
  color: var(--color-text-inv); text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 6px 24px rgba(0, 0, 0, .4);
}
.hero-actions { margin-top: var(--sp-4); display: flex; flex-wrap: wrap; gap: 12px; }

/* hero reducido (páginas internas, ~55svh) */
.hero-reducido { min-height: 55svh; }
.hero-reducido .hero-inner { padding-top: 130px; padding-bottom: var(--sp-5); align-self: flex-end; margin-top: auto; }
.hero-reducido .hero-lead { margin-top: var(--sp-2); }
.h-reducido { color: #fff; font-size: clamp(2rem, 4.2vw, 3.2rem); text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 8px 30px rgba(0, 0, 0, .4); }

.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: var(--fs-xs); font-weight: 600; margin-bottom: var(--sp-2); color: var(--color-text-inv-muted); }
.breadcrumb a { color: var(--color-text-inv-muted); text-decoration: none; transition: color .2s; }
.breadcrumb a:hover { color: #fff; }
.breadcrumb span[aria-current] { color: #fff; }
.breadcrumb-claro { color: var(--color-text-muted); }
.breadcrumb-claro a { color: var(--color-text-muted); }
.breadcrumb-claro a:hover { color: var(--color-text); }
.breadcrumb-claro span[aria-current] { color: var(--color-text); }

/* ---------- buscador (momento firma) ---------- */
.buscador-wrap {
  position: relative; z-index: 4; width: min(1080px, 100% - 2rem); margin-inline: auto;
  margin-top: -76px;
}
.buscador-wrap-catalogo { margin-top: var(--sp-5); margin-bottom: var(--sp-2); }
.buscador {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--sp-2);
  background: var(--color-bg); border-radius: var(--radius); padding: var(--sp-3);
  box-shadow: var(--shadow-lg); border: 1.5px solid var(--color-primary-soft);
}
.buscador-op { display: flex; gap: 6px; background: var(--color-bg-alt); border-radius: 100px; padding: 4px; flex: none; }
.op-btn {
  border: 0; background: transparent; padding: 10px 18px; border-radius: 100px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--color-text-muted); cursor: pointer;
  transition: background-color .25s var(--ease-out), color .25s var(--ease-out);
}
.op-btn.is-active { background: var(--color-bg-deep); color: #fff; }
.buscador-fields { display: flex; flex-wrap: wrap; gap: var(--sp-2); flex: 1 1 auto; }
.bf { display: flex; flex-direction: column; gap: 4px; min-width: 132px; flex: 1 1 132px; }
.bf label { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--color-text-muted); text-transform: uppercase; }
.bf select {
  min-height: 46px; padding: 10px 12px; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-bg) url('data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22%235B6B7C%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22m6 9 6 6 6-6%22/%3E%3C/svg%3E') no-repeat right 10px center / 16px;
  appearance: none; font-size: var(--fs-sm); font-weight: 500; cursor: pointer;
  transition: border-color .25s var(--ease-out);
}
.bf select:focus { border-color: var(--color-primary); }
.buscador-submit { flex: none; }

/* ---------- destacadas / prop-grid / prop-card ---------- */
.destacadas { background: var(--color-bg); padding-block: var(--section-pad-y); padding-top: calc(var(--section-pad-y) + 60px); }
.prop-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.prop-card {
  display: flex; flex-direction: column; background: var(--color-bg); border: 1px solid var(--color-line);
  border-radius: var(--radius); overflow: hidden; transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
  transform-style: preserve-3d;
}
.prop-card:hover { box-shadow: var(--shadow-md); }
.prop-card-media { position: relative; display: block; aspect-ratio: 4 / 3.1; overflow: hidden; }
.prop-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.prop-card:hover .prop-card-media img { transform: scale(1.06); }
.prop-badge {
  position: absolute; top: 12px; left: 12px; padding: 6px 12px; border-radius: 100px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.prop-badge-venta { background: var(--color-secondary-bright); color: var(--color-text); }
.prop-badge-alquiler { background: var(--color-bg-deep); color: #fff; }
.prop-price {
  position: absolute; bottom: 12px; left: 12px; padding: 7px 14px; border-radius: 100px;
  background: var(--color-primary); color: #fff; font-weight: 700; font-size: var(--fs-sm);
  box-shadow: 0 6px 18px rgba(161, 98, 7, .4);
}
.prop-card-body { padding: var(--sp-2) var(--sp-2) var(--sp-3); display: flex; flex-direction: column; gap: 4px; flex: 1; }
.prop-zona { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-secondary); }
.prop-card-body h3 { font-size: 1.0625rem; line-height: 1.3; }
.prop-card-body h3 a { text-decoration: none; }
.prop-card-body h3 a:hover { color: var(--color-primary); }
.prop-specs-mini { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 4px; font-size: var(--fs-xs); color: var(--color-text-muted); }
.prop-cta { margin-top: auto; padding-top: 10px; font-size: var(--fs-xs); font-weight: 700; color: var(--color-primary); text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.prop-cta:hover { text-decoration: underline; }
.destacadas-cta { text-align: center; margin-top: var(--sp-5); }

/* ---------- comprar / vender ---------- */
.comprar-vender { background: var(--color-bg-alt); padding-block: var(--section-pad-y); }
.cv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.cv-card { padding: var(--sp-5) var(--sp-4); border-radius: var(--radius); background: var(--color-bg); box-shadow: var(--shadow-sm); }
.cv-card p { color: var(--color-text-muted); margin: var(--sp-2) 0 var(--sp-3); }
.cv-card-gold { background: var(--color-bg-deep); color: var(--color-text-inv); }
.cv-card-gold p { color: var(--color-text-inv-muted); }
.cv-card-gold h3 { color: #fff; }
.ico-wrap {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px;
  background: var(--color-primary-soft); color: var(--color-primary); flex: none;
}
.ico-wrap svg { width: 23px; height: 23px; }
.ico-wrap-inv { background: rgba(212, 167, 44, .16); color: var(--color-primary-bright); }

/* ---------- zona ---------- */
.zona { background: var(--color-bg); padding-block: var(--section-pad-y); }
.zona-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.zona-foto { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.zona-foto img { width: 100%; height: auto; aspect-ratio: 4 / 3.4; object-fit: cover; }
.zona-txt p { color: var(--color-text-muted); margin-bottom: var(--sp-2); max-width: 58ch; }
.zona-nums { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid var(--color-line); }
.zona-nums strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.7rem, 3.2vw, 2.4rem); color: var(--color-primary); letter-spacing: -.02em; }
.zona-nums span { font-size: var(--fs-xs); color: var(--color-text-muted); }

/* ---------- proceso ---------- */
.proceso { background: var(--color-bg-alt); padding-block: var(--section-pad-y); }
.pasos { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-3); }
.paso { padding-top: var(--sp-3); border-top: 2px solid var(--color-line); position: relative; }
.paso::before { content: ""; position: absolute; top: -5px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); }
.paso-num { display: block; font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 2.8rem); color: var(--color-bg-deep); opacity: .14; line-height: 1; margin-bottom: var(--sp-1); }
.paso h3 { margin-bottom: 6px; }
.paso p { font-size: var(--fs-sm); color: var(--color-text-muted); }

/* ---------- nosotros (reuso patrón sm-grid) ---------- */
.nosotros { background: var(--color-bg); padding-block: var(--section-pad-y); }
.sm-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.sm-foto { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-md); }
.sm-foto img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.sm-foto-round { max-width: min(360px, 100%); margin-inline: auto; border-radius: 50%; box-shadow: var(--shadow-md); }
.sm-foto-round img { aspect-ratio: 1 / 1; border-radius: 50%; }
.sm-txt p { color: var(--color-text-muted); margin-bottom: var(--sp-2); max-width: 60ch; }

/* ---------- testimonios ---------- */
.testimonios { background: var(--color-bg-alt); padding-block: var(--section-pad-y); }
.testi-splide { visibility: hidden; }
.testi-splide.is-active, .testi-splide.is-initialized { visibility: visible; }
.splide__list { display: flex; }
.splide__slide { height: auto; }
.testi { height: 100%; display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-4) var(--sp-3) var(--sp-3); background: var(--color-bg); border-radius: var(--radius); position: relative; box-shadow: var(--shadow-sm); }
.testi::before { content: "\201C"; position: absolute; top: 0; left: 18px; font-family: var(--font-display); font-size: 4rem; line-height: 1; color: var(--color-primary); opacity: .28; }
.testi p { font-size: var(--fs-body); flex: 1; }
.testi footer { display: flex; align-items: center; gap: 12px; }
.testi-avatar { width: 46px; height: 46px; border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--color-primary); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.testi footer span { display: flex; flex-direction: column; font-size: var(--fs-xs); color: var(--color-text-muted); }
.testi footer strong { font-size: var(--fs-sm); color: var(--color-text); }

/* ---------- faq ---------- */
.faq { background: var(--color-bg); padding-block: var(--section-pad-y); }
.faq-list { display: grid; gap: 10px; }
.faq details { background: var(--color-bg-alt); border: 1px solid var(--color-line); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .3s var(--ease-out); }
.faq details:hover { border-color: var(--color-primary); }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); min-height: 56px; padding: 14px var(--sp-3); font-weight: 700; font-size: var(--fs-sm); cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--color-bg); color: var(--color-primary); flex: none; transition: transform .3s var(--ease-out), background-color .3s var(--ease-out); }
.faq-ico svg { width: 15px; height: 15px; }
.faq details[open] .faq-ico { transform: rotate(180deg); background: var(--color-primary); color: #fff; }
.faq-body { padding: 0 var(--sp-3) var(--sp-3); }
.faq-body p { font-size: var(--fs-sm); color: var(--color-text-muted); max-width: 68ch; }

/* ---------- contacto ---------- */
.contacto { background: var(--color-bg-alt); padding-block: var(--section-pad-y); }
.cont-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: start; }
.cont-sub { color: var(--color-text-muted); max-width: 42ch; }
.cont-datos { list-style: none; display: grid; gap: var(--sp-3); margin-top: var(--sp-4); }
.cont-datos li { display: flex; align-items: flex-start; gap: 14px; }
.cont-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--color-bg); color: var(--color-primary); flex: none; }
.cont-ico svg { width: 19px; height: 19px; }
.cont-dato { display: flex; flex-direction: column; }
.cont-dato em { font-style: normal; font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); }
.cont-dato a, .cont-dato > span { font-size: 1.0625rem; font-weight: 500; text-decoration: none; }
.cont-dato a { position: relative; width: fit-content; color: var(--color-primary); font-weight: 700; }
.cont-dato a::after { content: ""; position: absolute; left: 0; bottom: -2px; width: 100%; height: 1.5px; background: var(--color-primary); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease-out); }
.cont-dato a:hover::after { transform: scaleX(1); }

.cont-form { display: grid; gap: var(--sp-2); padding: var(--sp-4) var(--sp-3); background: var(--color-bg); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--fs-xs); font-weight: 700; }
.field input, .field select, .field textarea {
  min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--color-line); border-radius: var(--radius-sm);
  background: var(--color-bg); font-size: var(--fs-sm); transition: border-color .3s var(--ease-out), box-shadow .3s var(--ease-out);
}
.field textarea { min-height: auto; resize: vertical; font-family: inherit; }
.field input::placeholder, .field textarea::placeholder { color: #9aa9bb; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(161, 98, 7, .14); }
.field.has-error input, .field.has-error select { border-color: #c0392b; }
.field-err { font-size: var(--fs-xs); color: #c0392b; min-height: 0; opacity: 0; transform: translateY(-4px); transition: opacity .25s var(--ease-out), transform .25s var(--ease-out); }
.field.has-error .field-err { opacity: 1; transform: none; }
.form-note { font-size: var(--fs-xs); color: var(--color-text-muted); text-align: center; }

/* ---------- cierre (glow que sigue el cursor) ---------- */
.cierre { position: relative; background: var(--color-bg-deep); color: var(--color-text-inv); padding-block: var(--section-pad-y); text-align: center; overflow: hidden; }
.cierre-chica { padding-block: calc(var(--section-pad-y) * .8); }
.cierre-glow {
  position: absolute; left: 50%; top: 50%; width: 620px; height: 620px; margin: -310px 0 0 -310px;
  background: radial-gradient(circle, rgba(212, 167, 44, .32) 0%, rgba(212, 167, 44, 0) 68%);
  pointer-events: none; transition: transform .4s var(--ease-out); will-change: transform;
}
.cierre .wrap { position: relative; z-index: 1; }
.cierre h2 { color: #fff; max-width: 20ch; margin-inline: auto; }
.cierre-sub { margin: var(--sp-2) auto var(--sp-4); max-width: 54ch; color: var(--color-text-inv-muted); }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 2; background: var(--color-bg-deeper); color: var(--color-text-inv); padding-block: var(--section-pad-y); }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, .9fr); gap: var(--sp-4); padding-bottom: var(--sp-4); border-bottom: 1px solid var(--color-line-inv); }
.foot-logo { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .12); }
.foot-brand p { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--color-text-inv-muted); max-width: 34ch; }
.foot-ig { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--sp-3); min-height: 44px; font-size: var(--fs-sm); color: var(--color-text-inv-muted); text-decoration: none; transition: color .25s var(--ease-out); }
.foot-ig svg { width: 18px; height: 18px; }
.foot-ig:hover { color: var(--color-primary-bright); }
.foot-nav { display: grid; gap: 8px; align-content: start; }
.foot-nav a { font-size: var(--fs-sm); color: var(--color-text-inv-muted); text-decoration: none; width: fit-content; padding: 4px 0; transition: color .25s var(--ease-out), transform .25s var(--ease-out); }
.foot-nav a:hover { color: #fff; transform: translateX(3px); }
.foot-cta p { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-bottom: var(--sp-2); color: #fff; }
.foot-bottom { padding-top: var(--sp-3); display: flex; flex-wrap: wrap; gap: var(--sp-2); align-items: center; justify-content: space-between; }
.foot-legal { font-size: var(--fs-xs); color: var(--color-text-inv-muted); max-width: 62ch; opacity: .8; }
.foot-credit { font-size: var(--fs-xs); white-space: nowrap; }
.foot-credit a { color: var(--color-text-inv); text-decoration: none; font-weight: 500; }
.foot-credit a:hover { color: var(--color-primary-bright); }
.foot-ia { opacity: .45; font-size: .85em; }

/* ---------- WhatsApp flotante ---------- */
.wsp-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 110; display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .42); opacity: 0; visibility: hidden;
  transform: translateY(14px) scale(.92); transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), visibility .35s;
}
.wsp-float.visible { opacity: 1; visibility: visible; transform: none; }
.wsp-float svg { width: 28px; height: 28px; }
.wsp-float::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #25d366; animation: pulse-ring 2.4s var(--ease-out) infinite; }
@keyframes pulse-ring { 0% { transform: scale(1); opacity: .8; } 70%, 100% { transform: scale(1.6); opacity: 0; } }

/* ---------- toast ---------- */
.toast-wrap { position: fixed; right: 18px; bottom: 86px; z-index: 130; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 36px)); }
.toast { display: flex; align-items: center; gap: 10px; padding: 13px 16px; border-radius: var(--radius-sm); background: var(--color-bg-deep); color: #fff; font-size: var(--fs-sm); box-shadow: var(--shadow-lg); animation: toast-in .32s var(--ease-out); }
.toast svg { width: 18px; height: 18px; color: var(--color-primary-bright); flex: none; }
.toast.hiding { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }

/* ================= CATÁLOGO ================= */
.catalogo { background: var(--color-bg); padding-block: var(--section-pad-y); }
.catalogo-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.catalogo-count { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text-muted); }
.catalogo-count strong { color: var(--color-text); }
.catalogo-reset { border: 0; background: transparent; color: var(--color-primary); font-size: var(--fs-xs); font-weight: 700; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; min-height: 36px; }
.catalogo-empty { text-align: center; padding: var(--sp-7) var(--sp-3); }
.catalogo-empty-title { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; margin-bottom: 8px; }
.catalogo-empty-sub { color: var(--color-text-muted); max-width: 50ch; margin: 0 auto var(--sp-3); }

/* ================= FICHA DE PROPIEDAD ================= */
.prop-detalle-head { background: var(--color-bg-alt); padding-top: 130px; padding-bottom: var(--sp-4); }
.prop-badges { display: flex; gap: 8px; margin-bottom: var(--sp-2); }
.prop-badge-static { display: inline-flex; padding: 6px 13px; border-radius: 100px; font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.prop-detalle-head h1 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 24ch; }
.prop-ubicacion { margin-top: 6px; color: var(--color-text-muted); font-size: var(--fs-sm); display: flex; align-items: center; gap: 6px; }

.prop-galeria { background: var(--color-bg); padding-top: var(--sp-3); }
.galeria-grid { display: grid; gap: 10px; height: clamp(320px, 46vw, 520px); border-radius: var(--radius); overflow: hidden; }
.galeria-grid a { display: block; position: relative; overflow: hidden; }
.galeria-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.galeria-grid a:hover img { transform: scale(1.05); }
.galeria-grid--tres { grid-template-columns: 2fr 1fr; grid-template-rows: repeat(2, 1fr); }
.galeria-grid--tres .galeria-principal { grid-row: 1 / 3; }
.galeria-grid--tres > a:nth-child(n+4) { display: none; }
.galeria-grid--dos { grid-template-columns: 1fr 1fr; }
.galeria-grid--uno { grid-template-columns: 1fr; }
.galeria-mas {
  position: absolute; inset: auto 0 0 0; padding: 10px; text-align: center;
  background: linear-gradient(0deg, rgba(10, 20, 32, .72), transparent); color: #fff; font-size: var(--fs-xs); font-weight: 700;
}

.prop-badge-tipo { background: var(--color-primary-soft); color: var(--color-primary); }
.map-pin span {
  display: block; width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--color-primary); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(15, 42, 71, .4);
}

.prop-body { background: var(--color-bg); padding-block: var(--section-pad-y); }
.prop-body-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-5); align-items: start; }
.prop-sub-h { font-size: 1.25rem; margin: var(--sp-4) 0 var(--sp-2); }
.prop-sub-h:first-child { margin-top: 0; }
.prop-specs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.prop-spec-item {
  display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--color-bg-alt);
  border-radius: var(--radius-sm);
}
.prop-spec-item strong { font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: var(--color-text); }
.prop-spec-item span { font-size: 11px; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: .04em; }
.prop-descripcion { color: var(--color-text-muted); max-width: 68ch; white-space: pre-line; }
.prop-map { height: 300px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); background: var(--color-bg-alt); }
.prop-map iframe { width: 100%; height: 100%; border: 0; display: block; }
.prop-map-note { margin-top: 8px; font-size: var(--fs-xs); color: var(--color-text-muted); }

.prop-aside { position: relative; }
.prop-card-sticky { position: sticky; top: 100px; padding: var(--sp-4) var(--sp-3); background: var(--color-bg-alt); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.prop-aside-precio { font-family: var(--font-display); font-weight: 700; font-size: 1.7rem; color: var(--color-primary); letter-spacing: -.02em; }
.prop-aside-codigo { font-size: var(--fs-xs); color: var(--color-text-muted); margin-bottom: var(--sp-3); }
.prop-aside-tel { display: block; text-align: center; margin-top: 10px; font-size: var(--fs-sm); font-weight: 700; color: var(--color-primary); text-decoration: none; }
.prop-aside-tel:hover { text-decoration: underline; }
.prop-aside-asesor { display: flex; align-items: center; gap: 10px; margin-top: var(--sp-3); padding-top: var(--sp-3); border-top: 1px solid var(--color-line); }
.prop-aside-asesor img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; flex: none; }
.prop-aside-asesor div { display: flex; flex-direction: column; font-size: var(--fs-xs); }
.prop-aside-asesor strong { font-size: var(--fs-sm); }
.prop-aside-asesor span { color: var(--color-text-muted); }

.similares { background: var(--color-bg-alt); padding-block: var(--section-pad-y); }

.prop-not-found { padding: 160px 0 var(--section-pad-y); text-align: center; }
.prop-not-found p { color: var(--color-text-muted); max-width: 54ch; margin: 0 auto var(--sp-4); }
.prop-not-found .hero-actions { justify-content: center; }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav.is-open {
    display: flex; position: absolute; top: calc(100% + 10px); right: 0; width: 70%; height: auto;
    flex-direction: column; gap: 2px; padding: 14px; background: rgba(251, 248, 242, .97); backdrop-filter: blur(14px);
    border: 1px solid var(--color-line); border-radius: var(--radius); box-shadow: var(--shadow-lg); margin-left: 0;
  }
  .nav.is-open a { padding: 12px 10px; font-size: var(--fs-sm); min-height: 44px; display: flex; align-items: center; }
  .header-inner { position: relative; }
  .prop-grid { grid-template-columns: repeat(2, 1fr); }
  .cv-grid { grid-template-columns: 1fr; }
  .zona-grid, .sm-grid { grid-template-columns: 1fr; }
  .zona-foto, .sm-foto { max-width: 460px; }
  .pasos { grid-template-columns: repeat(2, 1fr); }
  .cont-grid { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-cta { grid-column: span 2; }
  .prop-body-grid { grid-template-columns: 1fr; }
  .prop-card-sticky { position: static; }
  .galeria-grid { grid-template-columns: 1fr; grid-template-rows: auto; height: auto; }
  .galeria-principal { aspect-ratio: 4/3; }
  .galeria-grid > a:not(.galeria-principal) { display: none; }
}

@media (max-width: 768px) {
  .buscador { flex-direction: column; align-items: stretch; }
  .buscador-op { align-self: flex-start; }
  .buscador-fields { flex-direction: column; }
  .bf { min-width: 0; }
  .buscador-submit { width: 100%; }
  .buscador-wrap { margin-top: -56px; }
  .prop-specs { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .wrap, .wrap-narrow, .header-inner { width: calc(100% - 1.75rem); }
  .hero-inner { width: calc(100% - 1.75rem); }
  .hero-actions .btn { width: 100%; }
  .prop-grid { grid-template-columns: 1fr; }
  .pasos { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-cta { grid-column: auto; }
  .foot-bottom { flex-direction: column; align-items: flex-start; }
  .prop-specs { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-animate] { opacity: 1 !important; transform: none !important; clip-path: none !important; }
  .wsp-float::after { animation: none; }
  .cierre-glow { transition: none; }
}
