/* ==========================================================================
   Rolando Rodriguez · Negocios Inmobiliarios: Hoja de estilos
   ========================================================================== */

/* ---------- Fuentes (alojadas en el sitio: más rápidas y sin pedir nada a terceros) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url(../fonts/manrope-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/marcellus-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Marcellus'; font-style: normal; font-weight: 400; font-display: swap;
  src: url(../fonts/marcellus-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
/* Respaldos con las mismas medidas: mientras carga la fuente, el texto ocupa lo mismo y no "salta" */
@font-face { font-family: 'Manrope Respaldo'; src: local('Arial'), local('Helvetica'), local('Liberation Sans');
  size-adjust: 99.18%; ascent-override: 107.48%; descent-override: 30.25%; line-gap-override: 0%; }
@font-face { font-family: 'Marcellus Respaldo'; src: local('Georgia'), local('Times New Roman');
  size-adjust: 104.84%; ascent-override: 92.92%; descent-override: 26.69%; line-gap-override: 0%; }

:root {
  --c-brand: #4b5442;
  --c-brand-dark: #363d2f;
  --c-brand-darker: #262b21;
  --c-brand-light: #6b7560;
  --c-brand-tint: #eef0ea;
  --c-wheat: #cdb683;
  --c-wheat-dark: #7c6739;
  --c-bg: #ffffff;
  --c-bg-alt: #f7f5ef;
  --c-ink: #1d211a;
  --c-ink-2: #474d43;
  --c-ink-3: #6b7166;
  --c-line: #e5e3db;
  --c-line-2: #d6d3c8;
  --c-danger: #a23b2a;
  --c-ok: #3f7a4a;
  --c-wa: #15803d;
  --c-wa-bright: #25d366;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(29, 33, 26, .06), 0 2px 10px rgba(29, 33, 26, .05);
  --shadow: 0 12px 32px -12px rgba(29, 33, 26, .22);
  --shadow-lg: 0 28px 64px -24px rgba(29, 33, 26, .38);

  --font-display: 'Marcellus', 'Marcellus Respaldo', Georgia, 'Times New Roman', serif;
  --font-body: 'Manrope', 'Manrope Respaldo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --container: 1240px;
  --gutter: 20px;
  --header-h: 76px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
/* touch-action: el doble toque ya no acerca la página (pellizcar para agrandar sigue andando) */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
/* Nada se sale por los costados (en el celular, la página no se puede correr ni achicar de costado) */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* En el celular, un campo con letra de menos de 16px hace que el teléfono se acerque solo al tocarlo */
@media (hover: none), (pointer: coarse), (max-width: 820px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]):not([type="file"]), select, textarea { font-size: max(16px, 1em) !important; }
}
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--c-wheat-dark); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--c-brand); color: #fff; }

[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--c-brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); transition: top .2s; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 32px; } }

.icon { width: 1.15em; height: 1.15em; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }

/* ---------- Tipografía ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -.01em;
}
.display em, .h2 em, .h1 em, .h3 em { font-style: normal; font-weight: inherit; color: var(--c-wheat-dark); }
.h1 { font-family: var(--font-display); font-size: clamp(2.15rem, 4.9vw, 3.9rem); font-weight: 400; letter-spacing: -.01em; line-height: 1.08; }
.h2 { font-family: var(--font-display); font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 400; letter-spacing: -.005em; line-height: 1.12; }
.h3 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 400; line-height: 1.15; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .75rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--c-wheat-dark);
  margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: currentColor; }
.lead { font-size: 1.125rem; color: var(--c-ink-2); max-width: 60ch; }
.muted { color: var(--c-ink-3); }

/* ---------- Botones ---------- */
.btn {
  --btn-bg: var(--c-brand); --btn-fg: #fff; --btn-bd: var(--c-brand);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 22px;
  border-radius: 999px; border: 1.5px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 700; font-size: .95rem; letter-spacing: .01em; line-height: 1.2;
  transition: background .2s, color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s;
  white-space: nowrap;
}
@media (max-width: 400px) { .btn { white-space: normal; text-align: center; } .btn .icon { flex: none; } }
.btn:hover { --btn-bg: var(--c-brand-dark); --btn-bd: var(--c-brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }
.btn .icon { width: 18px; height: 18px; }
.btn--light { --btn-bg: #fff; --btn-fg: var(--c-brand-dark); --btn-bd: #fff; }
.btn--light:hover { --btn-bg: var(--c-bg-alt); --btn-bd: var(--c-bg-alt); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--c-brand); --btn-bd: var(--c-line-2); }
.btn--outline:hover { --btn-bg: var(--c-brand); --btn-fg: #fff; --btn-bd: var(--c-brand); }
.btn--outline-light { --btn-bg: transparent; --btn-fg: #fff; --btn-bd: rgba(255,255,255,.5); }
.btn--outline-light:hover { --btn-bg: #fff; --btn-fg: var(--c-brand-dark); --btn-bd: #fff; }
.btn--wa { --btn-bg: var(--c-wa); --btn-bd: var(--c-wa); }
.btn--wa:hover { --btn-bg: #11723a; --btn-bd: #11723a; }
.btn--sm { min-height: 40px; padding: 8px 16px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .6; pointer-events: none; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--c-brand); }
.link-arrow .icon { transition: transform .2s var(--ease); }
.link-arrow:hover .icon { transform: translateX(4px); }

/* ---------- Aviso demo y toast ---------- */
.demo-pill {
  position: fixed; left: 16px; bottom: 18px; z-index: 69; max-width: min(420px, calc(100% - 110px));
  display: flex; align-items: center; gap: 10px; padding: 9px 8px 9px 14px;
  background: var(--c-brand-darker); color: rgba(255,255,255,.92); border-radius: 14px;
  font-size: .78rem; font-weight: 600; line-height: 1.35; box-shadow: var(--shadow);
}
.demo-pill .icon { width: 16px; height: 16px; color: var(--c-wheat); }
.demo-pill button { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: rgba(255,255,255,.7); flex: none; }
.demo-pill button:hover { background: rgba(255,255,255,.12); color: #fff; }
.demo-pill button .icon { color: inherit; }
body.has-mobile-bar .demo-pill { bottom: 88px; }
.demo-pill { transition: opacity .4s, transform .4s var(--ease); }
.demo-pill.is-leaving { opacity: 0; transform: translateY(12px); }
/* Inicio: mientras el buscador queda detrás de los botones flotantes, se apartan para no taparlo */
.wa-float { transition: opacity .3s, transform .3s var(--ease), visibility .3s; }
body.flotantes-ocultos .wa-float, body.flotantes-ocultos .demo-pill { opacity: 0; visibility: hidden; transform: translateY(16px); pointer-events: none; }
.demo-pill__short { display: none; }
@media (max-width: 640px) { .demo-pill__long { display: none; } .demo-pill__short { display: inline; } }
@media (min-width: 1024px) { body.has-mobile-bar .demo-pill { bottom: 18px; } }

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 130; transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 999px;
  background: var(--c-ink); color: #fff; font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-lg);
  transition: opacity .25s, transform .25s var(--ease);
}
.toast .icon { width: 18px; height: 18px; color: var(--c-wheat); stroke-width: 2.6; }
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
body.has-mobile-bar .toast { bottom: 96px; }

/* ---------- Header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.96);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--c-line);
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(29,33,26,.25); }
/* El menú lo dibuja app.js: mientras tanto se reserva su lugar, así el contenido no salta al aparecer */
body[data-page]:not(.has-chrome):not([data-header="overlay"]) { padding-top: calc(var(--header-h) + 1px); }
.nav { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); gap: 20px; }
.nav__logo { display: flex; align-items: center; flex: none; }
/* Celulares angostos: logo más chico para que entren el corazón y el botón del menú */
.nav__logo img { height: 34px; width: auto; }
@media (max-width: 374px) { .nav { gap: 10px; } .nav__logo img { height: 28px; } .nav__actions { gap: 2px; } }
@media (min-width: 1200px) { .nav__logo img { height: 40px; } }
.nav__logo .logo-light { display: none; }

.nav__menu { display: none; align-items: center; gap: 4px; }
.nav__link {
  position: relative; padding: 10px 13px; font-weight: 600; font-size: .93rem; color: var(--c-ink-2);
  border-radius: 999px; transition: color .2s, background .2s;
}
.nav__link:hover { color: var(--c-brand); background: var(--c-brand-tint); }
.nav__link[aria-current="page"] { color: var(--c-brand); }
.nav__link[aria-current="page"]::after { content: ''; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--c-wheat-dark); }
.nav__actions { display: flex; align-items: center; gap: 8px; }
.nav__fav {
  position: relative; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; color: var(--c-ink-2); transition: background .2s, color .2s;
}
.nav__fav:hover { background: var(--c-brand-tint); color: var(--c-brand); }
.nav__fav .icon { width: 21px; height: 21px; }
.nav__fav-count {
  position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--c-brand); color: #fff; font-size: .68rem; font-weight: 800;
  display: grid; place-items: center; line-height: 1;
}
.nav__fav-count[hidden] { display: none; }
.nav__cta { display: none; }
.nav__toggle { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--c-ink); }
.nav__toggle .icon { width: 24px; height: 24px; }

@media (min-width: 1080px) {
  .nav__menu { display: flex; }
  .nav__toggle { display: none; }
  .nav__cta { display: inline-flex; }
}

/* Header transparente (home) */
.site-header--overlay { position: fixed; left: 0; right: 0; background: transparent; border-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header--overlay .nav__logo .logo-dark { display: none; }
.site-header--overlay .nav__logo .logo-light { display: block; }
.site-header--overlay .nav__link, .site-header--overlay .nav__fav, .site-header--overlay .nav__toggle { color: #fff; }
.site-header--overlay .nav__link:hover, .site-header--overlay .nav__fav:hover { background: rgba(255,255,255,.14); color: #fff; }
.site-header--overlay .nav__cta { --btn-bg: #fff; --btn-fg: var(--c-brand-dark); --btn-bd: #fff; }
.site-header--overlay.is-scrolled { background: rgba(255,255,255,.97); border-color: var(--c-line); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); }
.site-header--overlay.is-scrolled .nav__logo .logo-dark { display: block; }
.site-header--overlay.is-scrolled .nav__logo .logo-light { display: none; }
.site-header--overlay.is-scrolled .nav__link, .site-header--overlay.is-scrolled .nav__fav { color: var(--c-ink-2); }
.site-header--overlay.is-scrolled .nav__toggle { color: var(--c-ink); }
.site-header--overlay.is-scrolled .nav__link:hover, .site-header--overlay.is-scrolled .nav__fav:hover { background: var(--c-brand-tint); color: var(--c-brand); }
.site-header--overlay.is-scrolled .nav__cta { --btn-bg: var(--c-brand); --btn-fg: #fff; --btn-bd: var(--c-brand); }

/* Menú móvil */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(20,23,18,.5); opacity: 0; transition: opacity .3s; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(88vw, 380px);
  background: #fff; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .35s var(--ease);
  overflow-y: auto;
}
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--c-line); }
.drawer__head img { height: 30px; width: auto; }
.drawer__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; }
.drawer__close:hover { background: var(--c-bg-alt); }
.drawer__nav { padding: 12px 12px 8px; display: grid; gap: 2px; }
.drawer__nav a { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: var(--radius-sm); font-weight: 600; font-size: 1.05rem; }
.drawer__nav a:hover, .drawer__nav a[aria-current="page"] { background: var(--c-brand-tint); color: var(--c-brand); }
.drawer__nav .icon { width: 20px; height: 20px; color: var(--c-brand-light); }
.drawer__foot { margin-top: auto; padding: 20px; display: grid; gap: 10px; border-top: 1px solid var(--c-line); background: var(--c-bg-alt); }
.drawer__foot p { font-size: .85rem; color: var(--c-ink-3); margin: 6px 0 0; }
body.no-scroll { overflow: hidden; }

/* ---------- Hero (home) ---------- */
:root { --dock-overlap: 84px; }
@media (max-width: 899px) { :root { --dock-overlap: 60px; } }
.hero {
  position: relative; isolation: isolate;
  min-height: min(100svh, 900px);
  display: flex; align-items: flex-end;
  padding: calc(var(--header-h) + 60px) 0 calc(var(--dock-overlap) + 64px);
  color: #fff;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--c-brand-darker); }
.parallax { position: absolute; left: 0; right: 0; top: -12%; height: 124%; will-change: transform; }
.parallax > img { width: 100%; height: 100%; object-fit: cover; }
.hero__bg img { transform: scale(1.08); animation: heroZoom 18s var(--ease) forwards; }
@keyframes heroZoom { to { transform: scale(1); } }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(20,24,17,.55) 0%, rgba(20,24,17,.08) 30%, rgba(20,24,17,.2) 55%, rgba(20,24,17,.85) 100%);
}
.hero__inner { display: grid; gap: 34px; align-items: end; will-change: opacity, transform; }
@media (min-width: 1024px) { .hero__inner { grid-template-columns: minmax(0, 1fr) auto; gap: 56px; } }
.hero__content { max-width: 820px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.88); margin-bottom: 18px; }
.hero__kicker::before { content: ''; width: 34px; height: 1px; background: var(--c-wheat); }
.hero h1 { color: #fff; text-shadow: 0 2px 30px rgba(0,0,0,.25); }
.hero h1 em { color: var(--c-wheat); }
.hero__sub { font-size: clamp(1rem, 1.6vw, 1.15rem); color: rgba(255,255,255,.9); max-width: 56ch; margin: 18px 0 0; }
.hero__stats { display: flex; gap: 28px; flex-wrap: wrap; }
@media (min-width: 1024px) {
  .hero__stats { flex-direction: column; gap: 20px; padding-left: 30px; border-left: 1px solid rgba(255,255,255,.3); }
}
.hero__stat strong { display: block; font-family: var(--font-display); font-size: 2.1rem; line-height: 1; font-weight: 400; font-variant-numeric: tabular-nums; }
.hero__stat span { font-size: .82rem; color: rgba(255,255,255,.8); }
/* En el celular la portada no ocupa toda la pantalla: así el buscador (la acción principal)
   queda a la vista sin tener que bajar */
@media (max-width: 640px) {
  .hero { min-height: 0; padding-top: calc(var(--header-h) + 28px); padding-bottom: calc(var(--dock-overlap) + 26px); }
  .hero__inner { gap: 20px; }
  .hero__kicker { margin-bottom: 12px; font-size: .72rem; }
  .hero__sub { margin-top: 12px; font-size: .98rem; }
  .hero__stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.22); }
  .hero__stat strong { font-size: 1.55rem; }
  .hero__stat span { display: block; font-size: .72rem; line-height: 1.3; margin-top: 4px; }
}

/* ---------- Buscador flotante (se superpone a la portada y a la sección siguiente) ---------- */
.search-dock { position: relative; z-index: 6; margin-top: calc(var(--dock-overlap) * -1); }
.search {
  position: relative; max-width: 1120px; margin: 0 auto;
  background: #fff; color: var(--c-ink);
  border-radius: 30px; padding: 44px 14px 14px;
  box-shadow: 0 44px 90px -44px rgba(20,24,17,.6), 0 14px 34px -20px rgba(20,24,17,.35);
}
.search__tabs {
  position: absolute; top: 0; left: 50%; transform: translate(-50%, -50%);
  display: flex; gap: 4px; padding: 6px; border-radius: 999px; white-space: nowrap;
  background: var(--c-brand-dark); border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 16px 34px -14px rgba(20,24,17,.7);
}
.search__tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: .93rem; color: rgba(255,255,255,.8); transition: background .25s, color .25s; }
.search__tab .icon { width: 17px; height: 17px; }
.search__tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.search__tab[aria-pressed="true"] { background: #fff; color: var(--c-brand-dark); box-shadow: var(--shadow-sm); }
.search__box { display: grid; gap: 8px; grid-template-columns: 1fr; animation: fadeUp .35s var(--ease); }
.search__field {
  display: flex; align-items: center; gap: 12px; min-width: 0; padding: 10px 14px;
  border-radius: 20px; background: var(--c-bg-alt); border: 1.5px solid transparent; cursor: pointer;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
.search__field:hover { border-color: var(--c-line-2); }
.search__field:focus-within { border-color: var(--c-brand); background: #fff; box-shadow: 0 0 0 4px rgba(75,84,66,.1); }
.search__icon { width: 42px; height: 42px; border-radius: 50%; background: #fff; color: var(--c-brand); display: grid; place-items: center; flex: none; box-shadow: var(--shadow-sm); }
.search__icon .icon { width: 19px; height: 19px; }
.search__control { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.search__control label { font-size: .68rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--c-ink-3); cursor: pointer; }
.search__control select, .search__control input { border: 0; background: transparent; padding: 3px 0; font-weight: 600; font-size: 1rem; outline: none; width: 100%; min-width: 0; appearance: none; -webkit-appearance: none; color: var(--c-ink); }
.search__control select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7166' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right center; padding-right: 22px; cursor: pointer; }
.search__control input::placeholder { color: var(--c-ink-3); font-weight: 500; }
.search__submit { min-height: 64px; border-radius: 20px; padding: 0 30px; font-size: 1rem; }
.search__note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; margin: 12px 8px 2px; font-size: .84rem; line-height: 1.4; color: var(--c-ink-3); text-align: left; }
.search__note > span:last-child { max-width: 48ch; }
.search__note a { color: var(--c-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.search__note .icon { width: 16px; height: 16px; color: var(--c-wa); flex: none; margin-top: 1px; }
@media (min-width: 900px) {
  .search { padding: 46px 16px 16px; }
  .search__box { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; }
}
@media (max-width: 480px) {
  .search { border-radius: 24px; padding: 40px 10px 10px; }
  .search__tabs { padding: 5px; }
  .search__tab { padding: 10px 14px; font-size: .88rem; }
  .search__tab .icon { display: none; }
  .search__icon { width: 36px; height: 36px; }
}
.section--after-dock { padding-top: 72px; }

/* ---------- Secciones ---------- */
.section { padding: 84px 0; }
.section--tight { padding: 60px 0; }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-brand-dark); color: #fff; position: relative; overflow: hidden; }
.section--dark .eyebrow { color: var(--c-wheat); }
.section--dark .h2 em { color: var(--c-wheat); }
.section--dark .lead { color: rgba(255,255,255,.8); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.section-head__text { max-width: 760px; }
.section-head .lead { margin-top: 14px; }
@media (max-width: 640px) { .section { padding: 64px 0; } }

.section--dark .brand-watermark { position: absolute; right: -120px; top: -80px; width: 520px; opacity: .05; pointer-events: none; }

/* ---------- Categorías ---------- */
.cats-layout { display: grid; gap: 36px; align-items: center; }
@media (min-width: 960px) { .cats-layout { grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 72px; } }
.cats-intro .lead { margin-top: 16px; }
.cats-intro__links { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; margin-top: 28px; }
/* Las 4 categorías en un cuadrado de 2 × 2 */
.cats { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (min-width: 960px) { .cats { gap: 18px; } }
.cat {
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg);
  aspect-ratio: 1; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 22px; color: #fff; background: var(--c-brand-dark);
}
@media (max-width: 540px) { .cat { padding: 14px; border-radius: var(--radius); } .cat__icon { width: 38px; height: 38px; } }
.cat img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s var(--ease); }
.cat::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20,24,17,0) 35%, rgba(20,24,17,.85) 100%); }
.cat:hover img { transform: scale(1.06); }
.cat__icon { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.16); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); margin-bottom: auto; border: 1px solid rgba(255,255,255,.25); }
.cat__icon .icon { width: 21px; height: 21px; }
.cat h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 400; }
.cat p { margin: 4px 0 0; font-size: .85rem; color: rgba(255,255,255,.82); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cat p .icon { transition: transform .25s var(--ease); }
.cat:hover p .icon { transform: translateX(4px); }

/* ---------- Desplegable con íconos (reemplaza la lista nativa de los <select>) ---------- */
.dd { position: relative; min-width: 0; flex: 1; }
.dd__native { position: absolute !important; width: 1px !important; height: 1px !important; opacity: 0; pointer-events: none; clip: rect(0 0 0 0); overflow: hidden; }
.dd__btn { display: flex; align-items: center; gap: 10px; width: 100%; min-width: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.dd__btn:disabled { cursor: default; opacity: .6; }
.dd__value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dd__chev { flex: none; display: grid; place-items: center; color: var(--c-ink-3); transition: transform .2s var(--ease); }
.dd__chev .icon { width: 16px; height: 16px; }
.dd.is-open .dd__chev { transform: rotate(180deg); }
.dd__btn.select, .dd__btn.input { background-image: none; padding-right: 14px; }
.dd__btn.select:focus-visible { border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(75,84,66,.12); outline: none; }
.dd.is-open .dd__btn.select { border-color: var(--c-brand); }
.dd-ancla { position: relative; }
.dd-abierto { z-index: 30; }
.dd__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 60;
  min-width: 240px; max-height: 340px; overflow-y: auto; margin: 0; padding: 6px; list-style: none;
  background: #fff; color: var(--c-ink); border: 1px solid var(--c-line); border-radius: 18px; outline: none;
  box-shadow: 0 26px 54px -22px rgba(20,24,17,.5), 0 4px 14px rgba(20,24,17,.07);
  animation: ddIn .18s var(--ease); cursor: default; scrollbar-width: thin;
}
.dd__list--arriba { top: auto; bottom: calc(100% + 8px); }
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.dd__opt { display: flex; align-items: center; gap: 12px; padding: 7px 10px 7px 7px; border-radius: 12px; font-size: .95rem; font-weight: 600; line-height: 1.25; cursor: pointer; transition: background .12s; }
.dd__opt.is-active { background: var(--c-bg-alt); }
.dd__opt[aria-selected="true"] { color: var(--c-brand-dark); }
.dd__opt[aria-disabled="true"] { opacity: .45; cursor: default; }
.dd__icon { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: var(--c-brand-tint); color: var(--c-brand); transition: background .15s, color .15s; }
.dd__icon .icon { width: 17px; height: 17px; }
.dd__opt[aria-selected="true"] .dd__icon { background: var(--c-brand); color: #fff; }
.dd__text { flex: 1; min-width: 0; }
.dd__check { display: none; flex: none; color: var(--c-brand); }
.dd__check .icon { width: 17px; height: 17px; stroke-width: 2.6; }
.dd__opt[aria-selected="true"] .dd__check { display: grid; }
.dd__icon--btn { width: 28px; height: 28px; border-radius: 8px; }
.dd__icon--btn .icon { width: 15px; height: 15px; }
/* Campo de texto con sugerencias (se puede escribir libre) */
.dd--combo .input { padding-left: 52px; padding-right: 46px; }
.dd--combo.dd--sin-icono .input { padding-left: 14px; }
.dd--combo.dd--sin-icono .dd__lead { display: none; }
.dd__lead { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.dd__toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; cursor: pointer; }
.dd__toggle:hover { background: var(--c-bg-alt); }
.dd--combo.is-open .input { border-color: var(--c-brand); }
/* En el buscador del inicio: el botón se ve como el texto del campo y la lista ocupa todo el ancho del campo */
.search__control .dd__btn { padding: 3px 0; font-size: 1rem; font-weight: 600; }
.search__field.dd-abierto { border-color: var(--c-brand); background: #fff; box-shadow: 0 0 0 4px rgba(75,84,66,.1); }
.search__field .dd__list { top: calc(100% + 10px); }
.search__field .dd__list--arriba { top: auto; bottom: calc(100% + 10px); }
.search__icon .icon { transition: transform .25s var(--ease); }
/* Orden del listado */
.toolbar .dd { flex: none; }
.toolbar .dd__btn.select { width: auto; min-width: 205px; }
.toolbar .dd__list { left: auto; right: 0; min-width: 240px; }

/* ---------- Tarjeta de propiedad ---------- */
.card {
  position: relative; display: flex; flex-direction: column; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden;
  transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s;
  height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-brand-tint); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.card:hover .card__media img { transform: scale(1.05); }
.card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; border-radius: 999px;
  font-size: .72rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase;
  background: #fff; color: var(--c-brand-dark);
}
.badge--venta { background: var(--c-brand); color: #fff; }
.badge--alquiler { background: var(--c-wheat); color: var(--c-brand-darker); }
.badge--reservada { background: #fff4e0; color: #7a4b00; }
.badge--vendida, .badge--alquilada { background: var(--c-danger); color: #fff; }
.badge--soft { background: rgba(255,255,255,.92); color: var(--c-ink-2); }
.card__fav {
  position: absolute; top: 10px; right: 10px; z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center; background: rgba(255,255,255,.92); color: var(--c-ink-2);
  box-shadow: var(--shadow-sm); transition: transform .2s var(--ease), color .2s;
}
.card__fav:hover { transform: scale(1.08); color: var(--c-danger); }
.card__fav .icon { width: 19px; height: 19px; }
.card__fav[aria-pressed="true"] { color: var(--c-danger); }
.card__fav[aria-pressed="true"] .icon { fill: currentColor; }
.card__photos { position: absolute; right: 12px; bottom: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; background: rgba(20,24,17,.6); color: #fff; font-size: .75rem; font-weight: 700; }
.card__photos .icon { width: 14px; height: 14px; }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card__loc { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--c-ink-3); font-weight: 600; }
.card__loc .icon { width: 15px; height: 15px; color: var(--c-brand-light); }
.card__title { font-family: var(--font-display); font-size: 1.2rem; font-weight: 400; line-height: 1.28; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__title a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.card__price { font-size: 1.3rem; font-weight: 800; color: var(--c-brand-dark); letter-spacing: -.01em; margin-top: auto; padding-top: 6px; }
.card__price small { font-size: .78rem; font-weight: 600; color: var(--c-ink-3); letter-spacing: 0; }
.card__price--ask { color: var(--c-brand); font-size: 1.1rem; }
.card__feats { display: flex; gap: 6px 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--c-line); margin-top: 6px; }
.feat { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--c-ink-2); white-space: nowrap; }
.feat .icon { width: 16px; height: 16px; color: var(--c-brand-light); }
.card__code { position: absolute; left: 12px; bottom: 12px; z-index: 2; font-size: .7rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: rgba(20,24,17,.6); padding: 4px 8px; border-radius: 6px; }
.card--muted .card__media img { filter: grayscale(.35); }

/* Tarjeta en fondo oscuro */
.section--dark .card { background: #fff; color: var(--c-ink); border-color: transparent; }

/* Tarjeta horizontal (vista lista) */
@media (min-width: 720px) {
  .grid--list .card { flex-direction: row; }
  .grid--list .card__media { width: 42%; aspect-ratio: auto; min-height: 240px; flex: none; }
  .grid--list .card__body { padding: 22px 26px; }
  .grid--list .card__title { font-size: 1.55rem; }
  .grid--list .card__desc { display: -webkit-box; }
}
.card__desc { display: none; font-size: .9rem; color: var(--c-ink-2); -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }

/* ---------- Grillas y carrusel ---------- */
.grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
/* Listado: hasta que aparecen los resultados se reserva la pantalla, así lo de abajo no salta */
#results:empty { min-height: 100vh; }
.grid--list { grid-template-columns: 1fr; }

.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 86%);
  gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  padding: 6px var(--gutter) 24px; margin: 0 calc(var(--gutter) * -1);
  scrollbar-width: none;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel__track { grid-auto-columns: calc((100% - 20px) / 2); padding-left: 0; padding-right: 0; margin: 0; scroll-padding: 0; } }
@media (min-width: 1000px) { .carousel__track { grid-auto-columns: calc((100% - 40px) / 3); } }
@media (min-width: 1240px) { .carousel__track { grid-auto-columns: calc((100% - 60px) / 4); } }
.carousel__nav { display: flex; gap: 8px; }
.carousel__btn {
  width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px solid var(--c-line-2); color: var(--c-brand); background: #fff; transition: background .2s, color .2s, border-color .2s, opacity .2s;
}
.carousel__btn:hover { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.carousel__btn[disabled] { opacity: .35; pointer-events: none; }
.section--dark .carousel__btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.section--dark .carousel__btn:hover { background: #fff; color: var(--c-brand-dark); }
.section-head__actions { display: flex; align-items: center; gap: 16px; }

/* ---------- Split / Tasaciones ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--reverse .split__media { order: 2; } }
.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--radius-lg); }
.split__badge {
  position: absolute; left: -12px; bottom: -22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: 16px 20px; display: flex; align-items: center; gap: 14px; max-width: 290px;
}
@media (min-width: 960px) { .split__badge { left: -28px; } }
.split__badge-icon { width: 46px; height: 46px; border-radius: 50%; background: var(--c-brand-tint); color: var(--c-brand); display: grid; place-items: center; flex: none; }
.split__badge strong { display: block; font-size: .95rem; }
.split__badge span { font-size: .8rem; color: var(--c-ink-3); }
.checklist { display: grid; gap: 12px; margin: 26px 0 32px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist .tick { width: 24px; height: 24px; border-radius: 50%; background: var(--c-brand-tint); color: var(--c-brand); display: grid; place-items: center; flex: none; margin-top: 1px; }
.checklist .tick .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Beneficios ---------- */
.values { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.value { padding: 28px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); transition: border-color .3s, box-shadow .3s; }
.value:hover { border-color: transparent; box-shadow: var(--shadow); }
.value__icon { width: 52px; height: 52px; border-radius: 14px; background: var(--c-brand); color: #fff; display: grid; place-items: center; margin-bottom: 18px; }
.value__icon .icon { width: 24px; height: 24px; }
.value h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 8px; }
.value p { font-size: .94rem; color: var(--c-ink-2); margin: 0; }

/* ---------- Mapa home ---------- */
.map-card { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-brand-tint); position: relative; }
.map-card .map { height: 460px; }
@media (max-width: 640px) { .map-card .map { height: 380px; } }
.map-legend { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: .85rem; color: var(--c-ink-2); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.map-legend i { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }

/* Marcadores Leaflet */
.pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); display: grid; place-items: center; box-shadow: 0 6px 14px -4px rgba(0,0,0,.45); border: 2px solid #fff; }
.pin svg { transform: rotate(45deg); width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pin--casas { background: var(--c-brand); }
.pin--campos { background: #8a7a3a; }
.pin--lotes { background: #6f8f5a; }
.pin--negocios { background: #3e5566; }
.pin--office { background: var(--c-brand-darker); width: 42px; height: 42px; }
.pin--office svg { width: 20px; height: 20px; }
.leaflet-popup-content-wrapper { border-radius: var(--radius) !important; padding: 0 !important; overflow: hidden; }
.leaflet-popup-content { margin: 0 !important; width: 250px !important; font-family: var(--font-body); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; }
.map-pop__body { padding: 12px 14px 14px; }
.map-pop__body strong { display: block; font-size: .95rem; line-height: 1.3; margin-bottom: 4px; color: var(--c-ink); }
.map-pop__body span { font-size: .8rem; color: var(--c-ink-3); }
.map-pop__price { font-weight: 800; color: var(--c-brand-dark); margin-top: 6px; font-size: 1rem; }
.leaflet-container a.map-pop { color: inherit; }
/* Leaflet usa z-index 400–1000 adentro del mapa: se encierran en el propio mapa para que
   pase por debajo del menú fijo, el botón de WhatsApp y los paneles */
.leaflet-container { font-family: var(--font-body); isolation: isolate; z-index: 0; }

/* ---------- CTA banda ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(36px, 6vw, 72px); color: #fff; background: var(--c-brand-dark); }
.cta-band__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cta-band::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38,43,33,.94) 0%, rgba(38,43,33,.78) 55%, rgba(38,43,33,.45) 100%); }
.cta-band__inner { max-width: 620px; }
.cta-band .h2 em { color: var(--c-wheat); }
.cta-band p { color: rgba(255,255,255,.85); margin: 16px 0 28px; font-size: 1.05rem; }

/* ---------- Footer ---------- */
.footer { background: var(--c-brand-darker); color: rgba(255,255,255,.75); padding: 72px 0 0; font-size: .93rem; }
.footer__grid { display: grid; gap: 40px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .footer__grid { grid-template-columns: 1.35fr 1.25fr 1fr 1fr; } }
.footer__brand img { height: 36px; width: auto; margin-bottom: 20px; }
.footer__brand p { max-width: 36ch; }
.footer__more { display: inline-flex; align-items: center; gap: 8px; color: var(--c-wheat); font-weight: 700; font-size: .9rem; }
.footer__more:hover { color: #fff; }
.footer__more .icon { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.footer__more:hover .icon { transform: translateX(4px); }
.footer__title { color: #fff; font-family: var(--font-body); font-size: .78rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a:hover { color: #fff; }
.footer__contact { display: grid; gap: 14px; }
.footer__contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer__contact .icon { width: 18px; height: 18px; margin-top: 2px; color: var(--c-wheat); }
.footer__contact a:hover { color: #fff; }
.footer__social { display: flex; gap: 10px; margin-top: 22px; }
.footer__social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.2); transition: background .2s, color .2s, border-color .2s; }
.footer__social a:hover { background: #fff; color: var(--c-brand-dark); border-color: #fff; }
.footer__social .icon { width: 19px; height: 19px; }
.footer__bottom { margin-top: 56px; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.55); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 60px; height: 60px; border-radius: 50%;
  background: var(--c-wa-bright); color: #fff; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(37,211,102,.6), 0 4px 10px rgba(0,0,0,.15);
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }
.wa-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--c-wa-bright); animation: waPulse 2.6s ease-out infinite; }
@keyframes waPulse { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.wa-float__tip { position: absolute; right: 72px; top: 50%; transform: translateY(-50%); background: #fff; color: var(--c-ink); padding: 8px 14px; border-radius: 10px; box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.wa-float:hover .wa-float__tip { opacity: 1; }
@media (max-width: 1023px) { body.has-mobile-bar .wa-float { display: none; } }

/* ---------- Encabezado de páginas internas ---------- */
.page-hero { position: relative; isolation: isolate; background: var(--c-brand-dark); color: #fff; padding: 56px 0 60px; overflow: hidden; }
.page-hero--img { padding: 90px 0 84px; }
.page-hero__bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.page-hero--img::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(38,43,33,.92) 0%, rgba(38,43,33,.7) 60%, rgba(38,43,33,.5) 100%); }
.page-hero .h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
.page-hero .h1 em { color: var(--c-wheat); }
.page-hero p { color: rgba(255,255,255,.84); max-width: 60ch; margin: 14px 0 0; font-size: 1.08rem; }
.page-hero .watermark { position: absolute; right: -60px; top: 50%; transform: translateY(-50%); width: 380px; opacity: .06; z-index: -1; pointer-events: none; }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: .82rem; color: rgba(255,255,255,.7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; text-decoration: underline; }
.crumbs .icon { width: 14px; height: 14px; opacity: .6; }
.crumbs--dark { color: var(--c-ink-3); }
.crumbs--dark a:hover { color: var(--c-brand); }

/* ---------- Listado ---------- */
.listing { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 90px; }
@media (min-width: 1080px) { .listing { grid-template-columns: 290px 1fr; align-items: start; } }
.filters { background: #fff; }
@media (min-width: 1080px) {
  .filters { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); overflow-y: auto; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 6px 22px 22px; scrollbar-width: thin; }
  .filters__head, .filters__foot { display: none; }
}
@media (max-width: 1079px) {
  .filters { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .35s var(--ease); visibility: hidden; }
  .filters.is-open { transform: none; visibility: visible; }
  .filters__body { flex: 1; overflow-y: auto; padding: 0 20px 20px; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--c-line); }
  .filters__head h2 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 800; }
  .filters__foot { display: flex; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--c-line); background: #fff; }
  .filters__foot .btn { flex: 1; }
}
.fgroup { padding: 20px 0; border-bottom: 1px solid var(--c-line); }
.fgroup:last-child { border-bottom: 0; }
.fgroup[hidden] { display: none; }
.fgroup h3 { display: flex; align-items: center; gap: 8px; font-family: var(--font-body); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 14px; }
.fgroup h3 .icon { width: 16px; height: 16px; color: var(--c-wheat-dark); stroke-width: 2; }
.check__icon { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; background: var(--c-bg-alt); color: var(--c-brand-light); transition: background .2s, color .2s; }
.check__icon .icon { width: 16px; height: 16px; }
.check:hover .check__icon { color: var(--c-brand); }
.check input:checked + .check__icon { background: var(--c-brand-tint); color: var(--c-brand); }
.check__label { flex: 1; min-width: 0; }
.check:has(.check__icon) { gap: 10px; padding-top: 5px; padding-bottom: 5px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--c-bg-alt); border-radius: 999px; padding: 4px; }
.seg button { padding: 9px 8px; border-radius: 999px; font-weight: 700; font-size: .88rem; color: var(--c-ink-2); transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--c-brand); color: #fff; box-shadow: var(--shadow-sm); }
.checks { display: grid; gap: 4px; }
.check { display: flex; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius-sm); cursor: pointer; font-size: .93rem; font-weight: 500; }
.check:hover { background: var(--c-bg-alt); }
.check input { appearance: none; -webkit-appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--c-line-2); border-radius: 6px; display: grid; place-items: center; flex: none; margin: 0; transition: background .15s, border-color .15s; cursor: pointer; }
.check input::after { content: ''; width: 10px; height: 6px; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); opacity: 0; }
.check input:checked { background: var(--c-brand); border-color: var(--c-brand); }
.check input:checked::after { opacity: 1; }
.check input:focus-visible { outline: 2px solid var(--c-wheat-dark); outline-offset: 2px; }
.check__count { margin-left: auto; font-size: .78rem; color: var(--c-ink-3); font-weight: 700; background: var(--c-bg-alt); border-radius: 999px; padding: 1px 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--c-line-2); font-weight: 700; font-size: .85rem; color: var(--c-ink-2); transition: all .2s; }
.chip:hover { border-color: var(--c-brand); color: var(--c-brand); }
.chip[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.range + .range, .range + .seg, .seg + .range { margin-top: 10px; }

.input, .select, .textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--c-line-2); border-radius: var(--radius-sm);
  background: #fff; font-size: .95rem; transition: border-color .2s, box-shadow .2s; outline: none;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--c-brand); box-shadow: 0 0 0 4px rgba(75,84,66,.12); }
.select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7166' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.textarea { min-height: 120px; resize: vertical; line-height: 1.5; }
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--c-ink-3); width: 18px; height: 18px; pointer-events: none; }
.input-icon .input { padding-left: 42px; }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.toolbar__count { font-size: .95rem; color: var(--c-ink-2); }
.toolbar__count strong { color: var(--c-ink); font-size: 1.05rem; }
.toolbar__right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar .select { min-height: 44px; width: auto; font-weight: 600; font-size: .9rem; }
.views { display: inline-flex; border: 1.5px solid var(--c-line-2); border-radius: 999px; padding: 3px; }
.views button { width: 38px; height: 36px; border-radius: 999px; display: grid; place-items: center; color: var(--c-ink-3); transition: background .2s, color .2s; }
.views button[aria-pressed="true"] { background: var(--c-brand); color: #fff; }
.views .icon { width: 18px; height: 18px; }
.filters-toggle { display: inline-flex; }
@media (min-width: 1080px) { .filters-toggle { display: none; } }
/* Celular: Filtros y el tipo de vista en una fila, el orden debajo a lo ancho */
@media (max-width: 640px) {
  .toolbar__count { width: 100%; }
  .toolbar__right { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
  .toolbar__right .filters-toggle { grid-column: 1; grid-row: 1; justify-content: center; }
  .toolbar__right .views { grid-column: 2; grid-row: 1; }
  .toolbar__right .dd, .toolbar__right > select { grid-column: 1 / -1; grid-row: 2; }
  .toolbar .dd__btn.select, .toolbar .select { width: 100%; min-width: 0; }
  .toolbar .dd__list { left: 0; right: 0; min-width: 0; }
}
.filters-toggle__n { background: var(--c-wheat); color: var(--c-brand-darker); border-radius: 999px; font-size: .72rem; padding: 1px 7px; font-weight: 800; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.active-filters:empty { display: none; }
.afilter { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px; background: var(--c-brand-tint); color: var(--c-brand-dark); font-size: .82rem; font-weight: 700; }
.afilter .icon { width: 14px; height: 14px; }
.afilter:hover { background: #e2e6dc; }
.afilter--clear { background: transparent; color: var(--c-ink-3); text-decoration: underline; padding: 6px 4px; }
.listing-map { height: 640px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); }
@media (max-width: 720px) { .listing-map { height: 70vh; } }
.more-wrap { display: flex; justify-content: center; margin-top: 36px; }
.empty { text-align: center; padding: 64px 24px; border: 1.5px dashed var(--c-line-2); border-radius: var(--radius-lg); background: var(--c-bg-alt); }
.empty__icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: grid; place-items: center; margin: 0 auto 18px; color: var(--c-brand); }
.empty__icon .icon { width: 28px; height: 28px; }
.empty h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 8px; }
.empty p { color: var(--c-ink-2); max-width: 46ch; margin: 0 auto 22px; }

/* ---------- Ficha de propiedad ---------- */
.detail-top { padding-top: 22px; }
.gallery { position: relative; display: grid; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; margin-top: 16px; }
.gallery button { position: relative; overflow: hidden; background: var(--c-brand-tint); display: block; width: 100%; height: 100%; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.gallery button:hover img { transform: scale(1.03); filter: brightness(.94); }
.gallery__main { aspect-ratio: 4 / 3; }
.gallery .gallery__side { display: none; }
@media (min-width: 820px) {
  .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: min(62vh, 560px); }
  .gallery__main { grid-row: 1 / 3; aspect-ratio: auto; }
  .gallery .gallery__side { display: block; }
  .gallery--few { grid-template-columns: 2fr 1fr; }
  .gallery--one { grid-template-columns: 1fr; grid-template-rows: 1fr; }
}
.gallery .gallery__all { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: auto; height: auto; display: inline-flex; background: rgba(255,255,255,.95); color: var(--c-ink); border-color: transparent; }
.gallery .gallery__all:hover { background: #fff; }
.gallery__badges { position: absolute; left: 16px; top: 16px; z-index: 2; display: flex; gap: 6px; }

.detail { display: grid; gap: 40px; padding-top: 36px; padding-bottom: 90px; }
@media (min-width: 1024px) { .detail { grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; align-items: start; } }
.detail__head { display: grid; gap: 14px; padding-bottom: 28px; border-bottom: 1px solid var(--c-line); }
.detail__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; font-size: .88rem; color: var(--c-ink-3); font-weight: 600; }
.detail__meta span { display: inline-flex; align-items: center; gap: 6px; }
.detail__meta .icon { width: 16px; height: 16px; color: var(--c-brand-light); }
.detail h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.8vw, 2.9rem); font-weight: 400; line-height: 1.08; letter-spacing: -.01em; }
.detail__price-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.detail__price { font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 800; color: var(--c-brand-dark); letter-spacing: -.02em; line-height: 1.1; }
.detail__price small { display: block; font-size: .85rem; font-weight: 600; color: var(--c-ink-3); letter-spacing: 0; margin-top: 4px; }
.detail__actions { display: flex; gap: 8px; }
.icon-btn { width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--c-line-2); display: grid; place-items: center; color: var(--c-ink-2); transition: all .2s; background: #fff; }
.icon-btn:hover { border-color: var(--c-brand); color: var(--c-brand); }
.icon-btn .icon { width: 19px; height: 19px; }
.icon-btn[aria-pressed="true"] { color: var(--c-danger); border-color: var(--c-danger); }
.icon-btn[aria-pressed="true"] .icon { fill: currentColor; }

.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; padding: 28px 0; border-bottom: 1px solid var(--c-line); }
.fact { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius); background: var(--c-bg-alt); }
.fact__icon { width: 42px; height: 42px; border-radius: 12px; background: #fff; color: var(--c-brand); display: grid; place-items: center; flex: none; }
.fact__icon .icon { width: 20px; height: 20px; }
.fact strong { display: block; font-size: 1.05rem; line-height: 1.2; }
.fact span { font-size: .76rem; color: var(--c-ink-3); font-weight: 600; }
.dsection { padding: 32px 0; border-bottom: 1px solid var(--c-line); }
.dsection:last-child { border-bottom: 0; }
.dsection h2 { font-family: var(--font-display); font-size: 1.85rem; font-weight: 400; margin-bottom: 18px; }
.dsection__text { color: var(--c-ink-2); font-size: 1.02rem; line-height: 1.75; }
.amenities { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 24px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.amenities .icon { width: 18px; height: 18px; color: var(--c-brand); stroke-width: 2.4; }
.specs { display: grid; grid-template-columns: 1fr; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .specs { grid-template-columns: 1fr 1fr; } }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 18px; border-bottom: 1px solid var(--c-line); font-size: .93rem; }
.specs dt { color: var(--c-ink-3); font-weight: 600; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }
.detail-map { height: 360px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); }
.detail-map-note { display: flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--c-ink-3); margin-top: 12px; }
.detail-map-note .icon { width: 16px; height: 16px; }
.video-wrap { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.contact-card { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: 26px; background: #fff; box-shadow: var(--shadow-sm); }
@media (min-width: 1024px) { .contact-card { position: sticky; top: calc(var(--header-h) + 20px); } }
.agent { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--c-line); }
.agent__avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--c-brand); display: grid; place-items: center; flex: none; padding: 10px; }
.agent__avatar img { width: 100%; height: 100%; object-fit: contain; }
.agent strong { display: block; font-size: 1.02rem; }
.agent span { font-size: .82rem; color: var(--c-ink-3); }
.contact-card__title { font-family: var(--font-display); font-size: 1.5rem; margin-bottom: 4px; }
.contact-card__sub { font-size: .88rem; color: var(--c-ink-3); margin-bottom: 18px; }
.contact-card .btn-stack { display: grid; gap: 10px; margin-bottom: 20px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--c-ink-3); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin: 6px 0 18px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--c-line); }

.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--c-line); padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; box-shadow: 0 -8px 24px -12px rgba(0,0,0,.2); }
.mobile-bar .btn { flex: 1; }
@media (min-width: 1024px) { .mobile-bar { display: none; } }

/* ---------- Ficha de propiedad: diseño editorial ---------- */
.pv-cargando { min-height: 110vh; background: var(--c-brand-darker); }   /* tapa la pantalla hasta que llega la ficha: el pie no aparece y desaparece */

/* Portada */
.pv-hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end; color: #fff;
  min-height: max(580px, min(92svh, 880px));
  padding: calc(var(--header-h) + 36px) 0 44px; background: var(--c-brand-darker);
}
.pv-hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.pv-hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(20,24,17,.62) 0%, rgba(20,24,17,.06) 28%, rgba(20,24,17,.18) 52%, rgba(20,24,17,.9) 100%); }
.pv-hero__inner { width: 100%; will-change: opacity, transform; }
.pv-hero__top { position: absolute; left: 0; right: 0; top: calc(var(--header-h) + 22px); z-index: 2; }
.pv-hero__top .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pv-crumbs { margin: 0; padding: 8px 16px; border-radius: 999px; color: rgba(255,255,255,.9); background: rgba(20,24,17,.42); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.pv-crumbs a:hover { color: #fff; }
.pv-hero__grid { display: grid; gap: 28px; align-items: end; margin-top: 40px; }
@media (min-width: 1024px) { .pv-hero__grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 56px; } }
.pv-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.pv-tag { display: inline-flex; align-items: center; height: 30px; padding: 0 14px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; color: #fff; border: 1px solid rgba(255,255,255,.42); background: rgba(20,24,17,.28); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.pv-tag--venta { background: #fff; border-color: #fff; color: var(--c-brand-dark); }
.pv-tag--alquiler { background: var(--c-wheat); border-color: var(--c-wheat); color: var(--c-brand-darker); }
.pv-tag--reservada { background: #f3c96b; border-color: #f3c96b; color: #4a3200; }
.pv-tag--vendida, .pv-tag--alquilada { background: var(--c-danger); border-color: var(--c-danger); }
.pv-title { font-family: var(--font-display); font-weight: 400; font-size: clamp(2.2rem, 5vw, 4.2rem); line-height: 1.06; letter-spacing: -.01em; max-width: 17ch; text-shadow: 0 2px 30px rgba(0,0,0,.3); }
.pv-loc { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; color: rgba(255,255,255,.9); font-size: 1.02rem; }
.pv-loc .icon { color: var(--c-wheat); width: 18px; height: 18px; margin-top: 3px; }
.pv-hero__photos {
  display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 18px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: .88rem; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.38);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .2s, color .2s;
}
.pv-hero__photos:hover { background: #fff; color: var(--c-brand-dark); }
.pv-hero__photos .icon { width: 17px; height: 17px; }
@media (max-width: 640px) { .pv-crumbs { font-size: .75rem; padding: 6px 12px; } .pv-hero__photos { height: 36px; padding: 0 12px; font-size: .8rem; } }

/* Placa de precio */
.pv-price { position: relative; background: rgba(255,255,255,.97); color: var(--c-ink); border-radius: 24px; padding: 26px 24px 20px; box-shadow: var(--shadow-lg); }
.pv-price::before { content: ''; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--c-wheat); }
.pv-price__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-3); }
.pv-price__value { display: block; margin: 6px 0 2px; font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 3.2vw, 2.6rem); line-height: 1.1; color: var(--c-brand-dark); font-variant-numeric: lining-nums; }
.pv-price__value small { font-family: var(--font-body); font-size: .9rem; font-weight: 600; color: var(--c-ink-3); }
.pv-price__extra { display: block; font-size: .85rem; color: var(--c-ink-3); }
.pv-price__actions { display: flex; align-items: center; gap: 8px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.pv-price__actions .icon-btn { width: 42px; height: 42px; }
.pv-price__cta { margin-left: auto; }

/* Banda de datos */
.pv-facts { background: var(--c-brand-dark); color: #fff; }
.pv-facts .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 32px; padding-top: 28px; padding-bottom: 28px; }
.pv-facts__list { display: flex; flex-wrap: wrap; row-gap: 14px; }
.pv-facts__list li { display: flex; flex-direction: column; padding: 2px 28px; border-left: 1px solid rgba(255,255,255,.2); }
.pv-facts__list li:first-child { padding-left: 0; border-left: 0; }
.pv-facts__list strong { font-family: var(--font-display); font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.pv-facts__list span { margin-top: 4px; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.pv-facts__date { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .85rem; color: rgba(255,255,255,.7); }
.pv-facts__date .icon { width: 16px; height: 16px; color: var(--c-wheat); }
@media (max-width: 720px) {
  .pv-facts__list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 12px; width: 100%; }
  .pv-facts__list li, .pv-facts__list li:first-child { padding: 0 0 0 14px; border-left: 2px solid var(--c-wheat); }
  .pv-facts__list strong { font-size: 1.5rem; }
}

/* Cuerpo y secciones numeradas */
.pv-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 48px; padding-top: 76px; padding-bottom: 96px; }
@media (min-width: 1080px) { .pv-body { grid-template-columns: minmax(0, 1fr) 380px; gap: 72px; align-items: start; } }
.pv-main { min-width: 0; }
.pv-sec { padding-bottom: 56px; margin-bottom: 56px; border-bottom: 1px solid var(--c-line); }
.pv-sec:last-child { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; }
.pv-sec__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 28px; }
.pv-sec__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.7rem, 2.6vw, 2.25rem); line-height: 1.1; color: var(--c-wheat-dark); }
.pv-lead { margin: 0 0 22px; font-family: var(--font-display); font-size: clamp(1.28rem, 2vw, 1.6rem); line-height: 1.5; color: var(--c-ink); }
.pv-text { max-width: 68ch; color: var(--c-ink-2); font-size: 1.03rem; line-height: 1.8; }

/* Recorrido en fotos */
.pv-reel__track { display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 600px); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; outline-offset: 6px; }
.pv-reel__track::-webkit-scrollbar { display: none; }
.pv-reel__item { margin: 0; scroll-snap-align: start; }
.pv-reel__item button { display: block; width: 100%; overflow: hidden; border-radius: var(--radius-lg); background: var(--c-brand-tint); cursor: zoom-in; }
.pv-reel__item img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .8s var(--ease); }
.pv-reel__item button:hover img { transform: scale(1.04); }
.pv-reel__item figcaption { margin-top: 10px; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .06em; color: var(--c-ink); }
.pv-reel__item figcaption span { color: var(--c-ink-3); }
.pv-sec__tools { display: flex; gap: 8px; margin-left: auto; align-self: center; }

/* Lo que tiene */
.pv-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px 28px; }
.pv-list li { display: flex; align-items: center; gap: 14px; line-height: 1.4; color: var(--c-ink-2); }
.pv-list__icon { width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: 12px; background: var(--c-brand-tint); color: var(--c-brand); }
.pv-list__icon .icon { width: 19px; height: 19px; }

/* Ficha técnica con líneas de puntos */
.pv-specs { display: grid; gap: 2px; margin: 0; max-width: 760px; }
.pv-spec { display: flex; align-items: center; padding: 7px 0; }
.pv-spec__icon { width: 32px; height: 32px; flex: none; display: grid; place-items: center; margin-right: 12px; border-radius: 10px; background: var(--c-bg-alt); color: var(--c-wheat-dark); }
.pv-spec__icon .icon { width: 16px; height: 16px; }
.pv-spec dt { flex: 1; min-width: 0; display: flex; align-items: center; font-size: .95rem; font-weight: 600; color: var(--c-ink-3); }
.pv-spec__label { flex: none; }
/* Línea de puntos entre el dato y su valor */
.pv-spec dt::after { content: ''; flex: 1; min-width: 24px; margin: 0 12px; border-bottom: 1.5px dotted var(--c-line-2); transform: translateY(6px); }
.pv-spec dd { margin: 0; max-width: 62%; text-align: right; font-weight: 700; font-size: .98rem; }

/* Mapa */
.pv-map { position: relative; isolation: isolate; }
.pv-map .detail-map { height: 420px; }
.pv-map__label { position: absolute; left: 14px; bottom: 14px; z-index: 500; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px); padding: 10px 16px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); font-size: .86rem; font-weight: 700; }
.pv-map__label .icon { flex: none; width: 16px; height: 16px; color: var(--c-brand); }

/* Tarjeta de consulta */
.pv-contact { position: relative; overflow: hidden; background: var(--c-brand-dark); color: #fff; border-radius: 28px; padding: 30px 26px 24px; box-shadow: var(--shadow-lg); }
@media (min-width: 1080px) {
  /* La columna ocupa todo el alto de la ficha para que la tarjeta pueda acompañar al bajar.
     detalle.js ajusta "top" si la tarjeta es más alta que la pantalla (se fija por abajo). */
  .pv-side { align-self: stretch; }
  .pv-contact { position: sticky; top: calc(var(--header-h) + 20px); }
}
.pv-contact__mark { position: absolute; right: -64px; top: -54px; width: 250px; opacity: .07; pointer-events: none; }
.pv-contact__kicker { position: relative; margin: 0 0 10px; font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--c-wheat); }
.pv-contact__kicker strong { color: #fff; }
.pv-contact__title { position: relative; margin: 0 0 8px; font-family: var(--font-display); font-weight: 400; font-size: 1.8rem; line-height: 1.15; }
.pv-contact__sub { margin: 0 0 20px; font-size: .92rem; color: rgba(255,255,255,.75); }
.pv-contact__btns { display: grid; gap: 10px; }
.pv-contact__or { display: flex; align-items: center; gap: 12px; margin: 22px 0 16px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.pv-contact__or::before, .pv-contact__or::after { content: ''; flex: 1; height: 1px; background: rgba(255,255,255,.18); }
.pv-contact .form { gap: 12px; }
.pv-contact .field label { color: rgba(255,255,255,.88); }
.pv-contact .hint, .pv-contact .field .hint { color: rgba(255,255,255,.7); }
.pv-contact .input, .pv-contact .textarea { border-color: transparent; background: rgba(255,255,255,.97); color: var(--c-ink); }
.pv-contact .check { color: rgba(255,255,255,.9); }
.pv-contact .check:hover { background: none; }
.pv-contact .check input { border-color: rgba(255,255,255,.5); }
.pv-contact .check input:checked { background: var(--c-wheat); border-color: var(--c-wheat); }
.pv-contact .form-note { color: rgba(255,255,255,.6); }
.pv-contact .form-success h3 { color: #fff; }
.pv-contact .form-success p { color: rgba(255,255,255,.8); }
.pv-contact .form-success__icon { background: rgba(255,255,255,.12); color: #fff; }
.pv-contact .form-success .btn--outline { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.4); }
.pv-contact .form-success .link-arrow { color: var(--c-wheat); }
.pv-contact__agent { display: flex; align-items: center; gap: 12px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); }
.pv-contact__agent .agent__avatar { width: 46px; height: 46px; padding: 9px; background: rgba(255,255,255,.1); }
.pv-contact__agent strong { display: block; font-size: .95rem; }
.pv-contact__agent span { font-size: .8rem; color: rgba(255,255,255,.65); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 120; background: rgba(14,16,12,.96); display: none; flex-direction: column; color: #fff; }
.lightbox.is-open { display: flex; }
.lightbox__top { display: flex; align-items: center; justify-content: space-between; padding: 14px 18px; font-weight: 700; font-size: .9rem; }
.lightbox__stage { position: relative; flex: 1; display: flex; align-items: center; justify-content: center; padding: 0 70px; min-height: 0; touch-action: pan-y; }
@media (max-width: 720px) { .lightbox__stage { padding: 0; } }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; user-select: none; }
.lightbox__btn { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.1); color: #fff; transition: background .2s; }
.lightbox__btn:hover { background: rgba(255,255,255,.22); }
.lightbox__prev, .lightbox__next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox__prev { left: 12px; } .lightbox__next { right: 12px; }
.lightbox__thumbs { display: flex; gap: 8px; padding: 14px 18px 18px; overflow-x: auto; justify-content: center; }
.lightbox__thumbs button { width: 76px; height: 54px; border-radius: 6px; overflow: hidden; opacity: .5; flex: none; transition: opacity .2s; border: 2px solid transparent; }
.lightbox__thumbs button[aria-current="true"] { opacity: 1; border-color: #fff; }
.lightbox__thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 14px; }
.form-row { display: grid; gap: 14px; }
@media (min-width: 560px) { .form-row--2 { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; }
.field label, .field .label { font-size: .84rem; font-weight: 700; color: var(--c-ink-2); }
.field .hint { font-size: .78rem; color: var(--c-ink-3); }
.form-note { font-size: .78rem; color: var(--c-ink-3); display: flex; gap: 8px; align-items: flex-start; }
.form-note .icon { width: 15px; height: 15px; margin-top: 2px; }
.check--inline { margin: 0; padding: 4px 0; font-size: .9rem; }
.check--inline:hover { background: none; }
/* Aviso debajo del botón cuando el formulario solo abre WhatsApp (app.js, bindForm) */
.form-wa-nota { margin: 8px 0 0; font-size: .82rem; line-height: 1.4; opacity: .75; text-align: center; }
[hidden] + .form-wa-nota { display: none; }
.form-success { display: none; text-align: center; padding: 26px 10px; }
.form-success.is-visible { display: block; }
.form-success__icon { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 16px; background: var(--c-brand-tint); color: var(--c-brand); display: grid; place-items: center; }
.form-success__icon .icon { width: 30px; height: 30px; stroke-width: 2.4; }
.form-success h3 { font-family: var(--font-display); font-size: 1.7rem; margin-bottom: 8px; }
.form-success p { color: var(--c-ink-2); }
.form.is-hidden { display: none; }

/* ---------- Tasaciones ---------- */
.types { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.type-card { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); }
.type-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.type-card__body { padding: 20px 22px 24px; }
.type-card h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 6px; }
.type-card p { margin: 0; font-size: .92rem; color: var(--c-ink-2); }
.steps { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); counter-reset: step; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius-lg); background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); }
.step::before { counter-increment: step; content: '0' counter(step); display: block; font-family: var(--font-display); font-size: 2.8rem; font-weight: 400; line-height: 1; color: var(--c-wheat); margin-bottom: 16px; }
.step h3 { font-family: var(--font-display); font-size: 1.45rem; margin-bottom: 8px; }
.step p { color: rgba(255,255,255,.78); font-size: .94rem; margin: 0; }
.motivos { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.motivo { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--c-line); font-weight: 600; font-size: .92rem; }
.motivo .icon { width: 17px; height: 17px; color: var(--c-brand); }

.wizard { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: clamp(22px, 4vw, 40px); }
.wizard__progress { display: flex; gap: 8px; margin-bottom: 8px; }
.wizard__progress span { flex: 1; height: 5px; border-radius: 3px; background: var(--c-line); transition: background .3s; }
.wizard__progress span.is-done { background: var(--c-brand); }
.wizard__label { font-size: .8rem; font-weight: 700; color: var(--c-ink-3); margin-bottom: 22px; }
.wizard__step { display: none; }
.wizard__step.is-active { display: grid; gap: 18px; animation: fadeUp .35s var(--ease); }
.wizard__step h3 { font-family: var(--font-display); font-size: 1.7rem; }
.wizard__nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; }
.options { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.option { position: relative; }
.option input { position: absolute; opacity: 0; inset: 0; cursor: pointer; margin: 0; }
.option span { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1.5px solid var(--c-line-2); font-weight: 700; font-size: .93rem; transition: all .2s; height: 100%; }
.option span .icon { width: 24px; height: 24px; color: var(--c-brand-light); }
.option input:checked + span { border-color: var(--c-brand); background: var(--c-brand-tint); color: var(--c-brand-dark); box-shadow: 0 0 0 3px rgba(75,84,66,.12); }
.option input:checked + span .icon { color: var(--c-brand); }
.option input:focus-visible + span { outline: 2px solid var(--c-wheat-dark); outline-offset: 2px; }
.options--pills { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.options--pills span { flex-direction: row; align-items: center; padding: 12px 14px; font-weight: 600; }
.field-error { color: var(--c-danger); font-size: .82rem; font-weight: 600; display: none; }
.field-error.is-visible { display: block; }

.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details { border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 1.02rem; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .25s var(--ease); color: var(--c-brand); flex: none; }
.faq details[open] summary .icon { transform: rotate(45deg); }
.faq details > div { padding: 0 22px 22px; color: var(--c-ink-2); }

/* ---------- Nosotros ---------- */
.brand-panel { position: relative; overflow: hidden; aspect-ratio: 5 / 4; border-radius: var(--radius-lg); background: radial-gradient(120% 90% at 20% 10%, var(--c-brand-light) 0%, var(--c-brand) 45%, var(--c-brand-darker) 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: #fff; padding: 32px; }
.brand-panel img { width: 38%; max-width: 220px; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 0; margin-bottom: 22px; }
.brand-panel__name { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 400; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.brand-panel__sub { margin: 6px 0 0; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--c-wheat); }
@media (max-width: 560px) {
  .brand-panel { aspect-ratio: auto; padding: 44px 24px 40px; }
  .brand-panel img { width: 34%; margin-bottom: 18px; }
  .brand-panel__name { font-size: 1.55rem; }
  .brand-panel__sub { font-size: .7rem; letter-spacing: .14em; }
}
.about-quote { font-family: var(--font-display); font-size: clamp(1.6rem, 2.8vw, 2.2rem); line-height: 1.3; font-style: normal; color: var(--c-brand-dark); border-left: 3px solid var(--c-wheat); padding-left: 24px; margin: 0; }
.facts-strip { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.fact-big { padding: 26px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); }
.fact-big strong { display: block; font-family: var(--font-display); font-size: 2.6rem; line-height: 1; color: var(--c-brand); font-weight: 400; margin-bottom: 8px; }
.fact-big span { font-size: .92rem; color: var(--c-ink-2); }
.team { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.member { border-radius: var(--radius-lg); overflow: hidden; background: #fff; border: 1px solid var(--c-line); }
.member__photo { aspect-ratio: 1; background: var(--c-brand); display: grid; place-items: center; }
.member__photo img { width: 100%; height: 100%; object-fit: cover; }
.member__photo img.is-logo { width: 46%; height: auto; object-fit: contain; }
.member__body { padding: 18px 20px 22px; }
.member h3 { font-family: var(--font-display); font-size: 1.45rem; }
.member p { margin: 4px 0 0; font-size: .88rem; color: var(--c-ink-3); }
.services { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.service { display: flex; gap: 16px; padding: 22px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--c-line); }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--c-brand-tint); color: var(--c-brand); display: grid; place-items: center; flex: none; }
.service__icon .icon { width: 22px; height: 22px; }
.service h3 { font-family: var(--font-body); font-size: 1.02rem; font-weight: 800; margin-bottom: 4px; }
.service p { margin: 0; font-size: .9rem; color: var(--c-ink-2); }

/* ---------- Contacto ---------- */
.contact-grid { display: grid; gap: 32px; padding-top: 56px; padding-bottom: 90px; }
@media (min-width: 1024px) { .contact-grid { grid-template-columns: 1fr 1.2fr; gap: 56px; align-items: start; } }
.info-cards { display: grid; gap: 12px; }
/* Lugar reservado mientras el script arma las tarjetas: el mapa de abajo no se mueve */
.info-cards:empty { min-height: 596px; }
.info-card { display: flex; gap: 16px; align-items: flex-start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--c-line); background: #fff; transition: border-color .2s, box-shadow .2s; }
a.info-card:hover { border-color: var(--c-brand-light); box-shadow: var(--shadow-sm); }
.info-card__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--c-brand); color: #fff; display: grid; place-items: center; flex: none; }
.info-card__icon .icon { width: 21px; height: 21px; }
.info-card strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-ink-3); font-weight: 800; margin-bottom: 2px; }
.info-card span { font-weight: 700; font-size: 1.02rem; word-break: break-word; }
.info-card small { display: block; color: var(--c-ink-3); font-size: .85rem; margin-top: 2px; }
.form-card { border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: clamp(22px, 4vw, 38px); background: #fff; box-shadow: var(--shadow); }
.office-map { height: 420px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); background: var(--c-brand-tint); }
/* Mientras carga el mapa se ve un fondo suave; si no hay conexión, un aviso centrado */
.detail-map, .listing-map, .map-card .map { background: var(--c-brand-tint); }
.map-error { display: grid; place-items: center; padding: 24px; text-align: center; }
.map-error p { display: inline-flex; align-items: center; gap: 8px; max-width: 34ch; margin: 0; font-size: .92rem; color: var(--c-ink-3); }
.map-error .icon { flex: none; width: 18px; height: 18px; }

/* ---------- 404 ---------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; }
.notfound img { width: 120px; margin: 0 auto 24px; opacity: .9; }

/* ---------- Animaciones ---------- */
/* Barra de progreso de lectura */
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 210; pointer-events: none;
  background: linear-gradient(90deg, var(--c-wheat), var(--c-wheat-dark)); transform-origin: 0 50%; transform: scaleX(0); }
/* Títulos que entran palabra por palabra */
.wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .14em; margin-bottom: -.14em; }
.wsplit .w__i { display: inline-block; transform: translateY(112%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 55ms + 80ms); }
.wsplit.is-visible .w__i, .is-visible .wsplit .w__i { transform: none; }
/* Fotos que se descubren como una cortina */
.split__media.reveal > img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); transform: scale(1.12); transition: clip-path 1.3s var(--ease), transform 1.9s var(--ease); }
.split__media.reveal.is-visible > img { clip-path: inset(0 0 0 0 round var(--radius-lg)); transform: none; }
.split__media.reveal .split__badge { opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .7s, transform .8s var(--ease) .7s; }
.split__media.reveal.is-visible .split__badge { opacity: 1; transform: none; }
/* Variantes de entrada */
.reveal--left { transform: translateX(-46px); }
.reveal--right { transform: translateX(46px); }
.reveal--zoom { transform: scale(.94); }
.reveal[style*="--n"] { transition-delay: calc(var(--n) * 90ms); }
.cat.reveal { transform: translateY(40px) scale(.97); }
.cat.reveal.is-visible { transform: none; }
.brand-watermark, .watermark { will-change: transform; }

@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; } .reveal-d2 { transition-delay: .16s; } .reveal-d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
  /* Sin desplazamientos ni zoom: el contenido aparece con fundidos suaves */
  html { scroll-behavior: auto; }
  .hero__bg img { animation: none; transform: none; }
  .wa-float::after { animation: none; display: none; }
  .reveal, .cat.reveal, .reveal--left, .reveal--right, .reveal--zoom { transform: none !important; transition: opacity .8s ease !important; }
  .reveal[style*="--n"] { transition-delay: calc(var(--n) * 90ms) !important; }
  .wsplit .w__i { transform: none !important; opacity: 0; transition: opacity .7s ease; }
  .wsplit.is-visible .w__i, .is-visible .wsplit .w__i { opacity: 1; }
  .split__media.reveal > img { clip-path: none !important; transform: none !important; }
  .split__media.reveal .split__badge { transform: none !important; }
  .card:hover, .card:hover .card__media img, .cat:hover img { transform: none; }
  .skeleton { animation: none; }
}

.skeleton { background: linear-gradient(90deg, var(--c-bg-alt), #efece4, var(--c-bg-alt)); background-size: 200% 100%; animation: sk 1.4s infinite; border-radius: var(--radius-lg); }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- Páginas por búsqueda: texto propio y otras búsquedas ---------- */
.seo-texto { background: var(--c-bg-alt); border-top: 1px solid var(--c-line); padding: 64px 0; }
.seo-texto__grid { display: grid; gap: 36px; }
.seo-texto__main p:not(.eyebrow) { color: var(--c-ink-2); font-size: 1.02rem; line-height: 1.75; max-width: 68ch; margin: 14px 0 0; }
.seo-texto__main .h2 { margin-top: 6px; }
.seo-texto__side h3 { font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-3); margin: 0 0 12px; }
.seo-texto__side h3 + ul { margin-bottom: 26px; }
.seo-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.seo-links a { display: inline-flex; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--c-line-2); background: #fff; font-size: .88rem; font-weight: 600; color: var(--c-ink-2); transition: border-color .2s, color .2s; }
.seo-links a:hover { border-color: var(--c-brand); color: var(--c-brand); }
.seo-guias { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.seo-guias a { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: .95rem; color: var(--c-brand); }
.seo-guias a:hover { text-decoration: underline; }
.seo-guias .icon { width: 18px; height: 18px; flex: none; color: var(--c-wheat-dark); }
@media (min-width: 900px) { .seo-texto__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; align-items: start; } }

/* ---------- Inicio: búsquedas frecuentes ---------- */
.busquedas__grid { display: grid; gap: 30px; }
.busquedas__txt { color: var(--c-ink-2); margin: 14px 0 0; max-width: 42ch; }
.busquedas__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.busquedas__links a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--c-line); background: #fff; font-weight: 700; font-size: .94rem; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease); }
.busquedas__links a:hover { border-color: var(--c-brand); box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.busquedas__links .icon { flex: none; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--c-brand-tint); color: var(--c-brand); }
.busquedas__guias { display: flex; align-items: center; gap: 10px; margin: 18px 0 0; color: var(--c-ink-2); font-size: .95rem; }
.busquedas__guias .icon { flex: none; color: var(--c-wheat-dark); }
.busquedas__guias a { font-weight: 700; color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 1000px) { .busquedas__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 56px; align-items: center; } }

/* ---------- Guías ---------- */
.guia__meta { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px !important; font-size: .82rem !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-wheat) !important; }
.guia__meta .icon { width: 16px; height: 16px; }
.guia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
@media (min-width: 1000px) { .guia { grid-template-columns: minmax(0, 1fr) 340px; gap: 64px; align-items: start; } .guia__side { position: sticky; top: calc(var(--header-h) + 20px); } }
.prosa { max-width: 72ch; color: var(--c-ink-2); font-size: 1.05rem; line-height: 1.8; }
.prosa > :first-child { margin-top: 0; }
.prosa h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1.2; color: var(--c-ink); margin: 2em 0 .5em; }
.prosa h3 { font-size: 1.08rem; font-weight: 800; color: var(--c-ink); margin: 1.5em 0 .3em; }
.prosa p { margin: 0 0 1em; }
.prosa ul, .prosa ol { margin: 0 0 1.2em; padding-left: 1.3em; }
.prosa ul { list-style: disc; }
.prosa ol { list-style: decimal; }
.prosa li { margin: .45em 0; padding-left: .2em; }
.prosa li::marker { color: var(--c-wheat-dark); font-weight: 800; }
.prosa strong { color: var(--c-ink); }
.prosa a { color: var(--c-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.prosa__nota { display: flex; gap: 12px; align-items: flex-start; margin-top: 2.2em !important; padding: 16px 18px; border-radius: var(--radius); background: var(--c-bg-alt); font-size: .92rem; line-height: 1.6; }
.prosa__nota .icon { flex: none; margin-top: 2px; color: var(--c-wheat-dark); }
.guia__side { display: grid; gap: 16px; }
.guia__card { padding: 24px; border-radius: var(--radius-lg); border: 1px solid var(--c-line); background: #fff; }
.guia__card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.35rem; line-height: 1.2; margin: 0 0 12px; }
.guia__card--oscura { background: var(--c-brand-dark); border-color: var(--c-brand-dark); color: #fff; display: grid; gap: 10px; }
.guia__card--oscura h2 { margin: 0; }
.guia__card--oscura p { margin: 0 0 6px; color: rgba(255,255,255,.8); font-size: .94rem; }
.guia__card--oscura .btn { width: 100%; justify-content: center; }
.guia__kicker { margin: 0 !important; font-size: .74rem !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-wheat) !important; }
.guia__links { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.guia__links a { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-weight: 600; font-size: .94rem; line-height: 1.4; color: var(--c-ink-2); }
.guia__links a:hover { color: var(--c-brand); }
.guia__links .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--c-wheat-dark); }
.guia__links em { font-style: normal; }
.guias-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.guia-card { display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius-lg); border: 1px solid var(--c-line); background: #fff; transition: border-color .3s, box-shadow .3s, transform .3s var(--ease); }
.guia-card:hover { border-color: var(--c-brand); box-shadow: var(--shadow); transform: translateY(-3px); }
.guia-card__ic .icon { width: 46px; height: 46px; padding: 12px; border-radius: 14px; background: var(--c-brand-tint); color: var(--c-brand); }
.guia-card h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.45rem; line-height: 1.2; margin: 0; }
.guia-card h2 em { font-style: normal; color: inherit; }
.guia-card p { margin: 0; color: var(--c-ink-2); font-size: .94rem; flex: 1; }

/* ---------- Impresión (ficha) ---------- */
@media print {
  .pv-hero { min-height: 0; padding: 12px 0 20px; color: #000; background: none; }
  .pv-hero::before, .pv-hero__media, .pv-price__actions, .pv-hero__photos, .pv-sec__tools, .pv-contact form, .pv-contact__btns, .pv-contact__or, .pv-contact__mark, .pv-map, .scroll-progress { display: none !important; }
  .pv-hero__grid { margin-top: 0; grid-template-columns: 1fr; }
  .pv-title { color: #000; text-shadow: none; }
  .pv-loc, .pv-hero .crumbs { color: #333; }
  .pv-tag { color: #000; background: none; border-color: #999; }
  .pv-price { box-shadow: none; border: 1px solid #ccc; }
  .pv-facts, .pv-contact { background: none; color: #000; box-shadow: none; }
  .pv-facts__list span, .pv-contact__agent span { color: #555; }
  .pv-body { grid-template-columns: 1fr; padding-top: 20px; }
  .wsplit .w__i { transform: none !important; opacity: 1 !important; }
}
@media print {
  .site-header, .footer, .wa-float, .mobile-bar, .demo-pill, .toast, .contact-card form, .detail__actions, .gallery__all, .similar, .detail-map, .detail-map-note { display: none !important; }
  .gallery { height: 340px !important; }
  .detail { grid-template-columns: 1fr !important; }
  body { font-size: 12px; }
}

/* ---------- Formularios: avisos de error junto a cada campo ---------- */
.input.is-invalid, .select.is-invalid, .textarea.is-invalid, .dd__btn.is-invalid { border-color: var(--c-danger) !important; box-shadow: 0 0 0 4px rgba(162,59,42,.12); }
.field-error .icon { width: 15px; height: 15px; flex: none; margin-top: 2px; }
.field-error.is-visible:has(.icon) { display: flex; gap: 6px; align-items: flex-start; margin-top: 2px; line-height: 1.35; }

/* ---------- Pie: enlaces legales ---------- */
.footer__legal { display: inline-flex; flex-wrap: wrap; gap: 4px 18px; }
.footer__legal a { color: rgba(255,255,255,.7); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255,255,255,.25); }
.footer__legal a:hover { color: #fff; }

/* ---------- Aviso de cookies ---------- */
.aviso-cookies {
  position: fixed; left: 16px; bottom: 18px; z-index: 75; width: min(440px, calc(100% - 110px));
  display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 16px;
  background: #fff; color: var(--c-ink-2); border: 1px solid var(--c-line); border-radius: 16px; box-shadow: var(--shadow-lg);
  font-size: .84rem; line-height: 1.45;
  opacity: 0; transform: translateY(16px); transition: opacity .4s, transform .4s var(--ease); pointer-events: none;
}
.aviso-cookies.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.aviso-cookies p { margin: 0; display: flex; gap: 10px; align-items: flex-start; }
.aviso-cookies p .icon { width: 20px; height: 20px; flex: none; color: var(--c-brand); margin-top: 1px; }
.aviso-cookies strong { color: var(--c-ink); }
.aviso-cookies a { color: var(--c-brand); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.aviso-cookies .btn { flex: none; min-height: 40px; padding: 8px 16px; }
body.con-aviso-cookies .demo-pill { opacity: 0; visibility: hidden; pointer-events: none; }
body.has-mobile-bar .aviso-cookies { bottom: 88px; }
@media (min-width: 1024px) { body.has-mobile-bar .aviso-cookies { bottom: 18px; } }
@media (max-width: 560px) {
  .aviso-cookies { left: 10px; bottom: 10px; width: calc(100% - 92px); flex-direction: column; align-items: stretch; gap: 10px; padding: 12px; font-size: .8rem; }
  .aviso-cookies .btn { width: 100%; }
}
@media print { .aviso-cookies { display: none !important; } }

/* ---------- Página de "Gracias" ---------- */
.gracias { display: grid; gap: 32px; max-width: 760px; }
.gracias__card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 40px 32px; text-align: center; }
.gracias__card h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2rem); margin: 0 0 10px; }
.gracias__card p { color: var(--c-ink-2); max-width: 48ch; margin: 0 auto; }
.gracias__acciones { justify-content: center; margin-top: 24px; }
.gracias__acciones[hidden] { display: none; }
.gracias__mas h2 { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; margin: 0 0 8px; }
@media (max-width: 560px) { .gracias__card { padding: 30px 18px; } .gracias__acciones .btn { width: 100%; } }
.form-note a { color: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* ==========================================================================
   Remates online (remates.html, remate.html y anticipo en el inicio)
   ========================================================================== */
/* Con 7 secciones en el menú, se achica un poco el espacio entre ellas en pantallas medianas */
@media (min-width: 1080px) and (max-width: 1279px) { .nav__link { padding: 10px 9px; font-size: .9rem; } .nav { gap: 14px; } }

.rm-demo { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; margin-bottom: 32px; border-radius: var(--radius); background: #f6efdc; border: 1px solid #e7d9b2; color: #5c4c27; font-size: .9rem; }
.rm-demo .icon { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--c-wheat-dark); }
.rm-demo p { margin: 0; }

.rm-filtros { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-filtros button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; border: 1.5px solid var(--c-line-2); background: #fff; font-weight: 700; font-size: .86rem; color: var(--c-ink-2); cursor: pointer; transition: all .2s; }
.rm-filtros button span { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--c-bg-alt); display: grid; place-items: center; font-size: .74rem; }
.rm-filtros button:hover { border-color: var(--c-brand); color: var(--c-brand); }
.rm-filtros button[aria-pressed="true"] { background: var(--c-brand); border-color: var(--c-brand); color: #fff; }
.rm-filtros button[aria-pressed="true"] span { background: rgba(255,255,255,.2); }

.rm-grid { display: grid; gap: 22px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }

/* Pastilla de estado */
.rm-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.2; }
.rm-pill i { width: 7px; height: 7px; border-radius: 50%; background: #e0624b; box-shadow: 0 0 0 0 rgba(224,98,75,.6); animation: rm-latido 1.8s infinite; }
.rm-pill--en-curso { background: var(--c-brand-darker); color: var(--c-wheat); }
.rm-pill--proximo { background: #fff; color: var(--c-brand); }
.rm-pill--finalizado { background: rgba(29,33,26,.72); color: #fff; }
@keyframes rm-latido { 0% { box-shadow: 0 0 0 0 rgba(224,98,75,.6); } 70% { box-shadow: 0 0 0 7px rgba(224,98,75,0); } 100% { box-shadow: 0 0 0 0 rgba(224,98,75,0); } }

/* Tarjeta */
.rm-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); overflow: hidden; transition: box-shadow .3s, transform .3s var(--ease); }
.rm-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.rm-card__media { position: relative; display: block; aspect-ratio: 36 / 25; overflow: hidden; background: var(--c-bg-alt); }
.rm-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rm-card:hover .rm-card__media img { transform: scale(1.04); }
.rm-card__media .rm-pill { position: absolute; top: 14px; left: 14px; }
.rm-card__lote { position: absolute; top: 14px; right: 14px; padding: 5px 10px; border-radius: 999px; background: rgba(255,255,255,.92); font-size: .74rem; font-weight: 800; color: var(--c-ink-2); }
.rm-card--finalizado .rm-card__media img { filter: grayscale(.6); }
.rm-card__body { display: flex; flex-direction: column; gap: 6px; padding: 20px 22px 22px; flex: 1; }
.rm-card__title { font-family: var(--font-display); font-weight: 400; font-size: 1.4rem; line-height: 1.2; margin: 0; }
.rm-card__title a:hover { color: var(--c-brand); }
.rm-card__desc { margin: 0; color: var(--c-ink-3); font-size: .9rem; }
.rm-card__row { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--c-line); }
.rm-card__label { display: block; font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-3); margin-bottom: 2px; }
.rm-card__price strong { font-family: var(--font-display); font-weight: 400; font-size: 1.5rem; line-height: 1.1; color: var(--c-brand); }
.rm-card__clock { text-align: right; }
.rm-card__clock strong { font-weight: 800; font-size: 1.02rem; color: var(--c-wheat-dark); font-variant-numeric: tabular-nums; white-space: nowrap; }
.rm-card__clock.is-urgente strong { color: var(--c-danger); }
.rm-card__foot { display: flex; justify-content: space-between; gap: 10px; font-size: .8rem; color: var(--c-ink-3); margin: 4px 0 14px; }
.rm-card__foot span { display: inline-flex; align-items: center; gap: 6px; }
.rm-card__foot .icon { width: 15px; height: 15px; }
.rm-card .btn { margin-top: auto; }

/* Anticipo en el inicio */
.home-remates__lote { max-width: 440px; width: 100%; justify-self: center; }
.home-remates__lote .rm-card { box-shadow: var(--shadow-lg); }
.home-remates__n { margin: 18px 0 0; font-size: .86rem; font-weight: 700; color: var(--c-wheat-dark); }
.home-remates__n:empty { display: none; }

/* Ficha del lote */
.rm-top { padding-top: 28px; }
.rm-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 26px; }
.rm-head .h2 { margin: 0; }
.rm-head__loc { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; color: var(--c-ink-3); }
.rm-head__loc .icon { width: 17px; height: 17px; color: var(--c-brand); }
.rm-layout { display: grid; gap: 32px; padding-bottom: 80px; }
@media (min-width: 1000px) { .rm-layout { grid-template-columns: minmax(0, 1fr) 380px; gap: 44px; align-items: start; } .rm-side { position: sticky; top: calc(var(--header-h) + 18px); } }
.rm-gal__main { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 14 / 9; background: var(--c-bg-alt); }
.rm-gal__main img { width: 100%; height: 100%; object-fit: cover; }
.rm-gal__thumbs { display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.rm-gal__thumbs button { flex: none; width: 96px; aspect-ratio: 3 / 2; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; opacity: .7; transition: all .2s; background: none; }
.rm-gal__thumbs button[aria-current="true"], .rm-gal__thumbs button:hover { border-color: var(--c-brand); opacity: 1; }
.rm-gal__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.rm-sec { padding: 30px 0; border-bottom: 1px solid var(--c-line); }
.rm-sec:last-child { border-bottom: 0; }
.rm-sec .h3 { margin: 0 0 16px; }
.rm-sec p { color: var(--c-ink-2); }
.rm-sec .checklist { margin: 0; }
.rm-sec--dos { display: grid; gap: 30px; }
@media (min-width: 700px) { .rm-sec--dos { grid-template-columns: 1fr 1fr; } }
.rm-datos { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.rm-dato { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: var(--radius); background: var(--c-bg-alt); }
.rm-dato__ic { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--c-brand); display: grid; place-items: center; flex: none; }
.rm-dato__ic .icon { width: 19px; height: 19px; }
.rm-dato span:not(.rm-dato__ic) { display: block; font-size: .74rem; color: var(--c-ink-3); }
.rm-dato strong { font-size: .95rem; }
.rm-docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rm-docs li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); font-size: .92rem; font-weight: 600; }
.rm-docs .icon { width: 18px; height: 18px; color: var(--c-brand); flex: none; }
.rm-docs__nota { margin-left: auto; font-size: .7rem; font-weight: 700; color: var(--c-ink-3); text-transform: uppercase; letter-spacing: .1em; }
.rm-visitas { display: flex; gap: 10px; align-items: flex-start; }
.rm-visitas .icon { width: 18px; height: 18px; color: var(--c-brand); flex: none; margin-top: 3px; }

/* Panel de ofertas */
.rm-panel { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; }
.rm-panel__top { display: flex; justify-content: space-between; align-items: center; }
.rm-panel__top .rm-pill--proximo { background: var(--c-brand-tint); }
.rm-panel__top .rm-pill--finalizado { background: var(--c-ink-2); }
.rm-panel__lote { font-size: .8rem; font-weight: 800; color: var(--c-ink-3); }
.rm-panel__clock { background: var(--c-brand-darker); color: #fff; border-radius: var(--radius); padding: 16px 18px; display: grid; gap: 2px; }
.rm-panel__clock span { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-wheat); }
.rm-panel__clock strong { font-size: 1.9rem; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1.15; }
.rm-panel__clock small { font-size: .78rem; color: rgba(255,255,255,.7); }
.rm-panel__clock small::first-letter { text-transform: uppercase; }
.rm-panel__clock.is-urgente { background: #6e2a1f; }
.rm-panel__precio span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--c-ink-3); }
.rm-panel__precio strong { font-family: var(--font-display); font-weight: 400; font-size: 2.1rem; line-height: 1.1; color: var(--c-brand); }
.rm-panel__sub { display: flex; justify-content: space-between; margin-top: 6px; }
.rm-panel__sub span { font-size: .82rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.rm-panel__nota { margin: 0; font-size: .8rem; color: var(--c-ink-3); }
.rm-panel__nota a { color: var(--c-brand); text-decoration: underline; }
.rm-panel__yo { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .82rem; color: var(--c-ok); }
.rm-panel__yo .icon { width: 16px; height: 16px; }
.rm-panel__wa { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .88rem; font-weight: 700; color: var(--c-wa); padding-top: 14px; border-top: 1px solid var(--c-line); }
.rm-panel__wa .icon { width: 18px; height: 18px; }
.rm-estado { display: flex; gap: 10px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: var(--radius-sm); font-size: .88rem; font-weight: 700; }
.rm-estado .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.rm-estado--ok { background: #e6f1e7; color: var(--c-ok); }
.rm-estado--mal { background: #f8e6e2; color: var(--c-danger); }
.rm-oferta { display: grid; gap: 10px; }
.rm-oferta label { font-size: .84rem; font-weight: 700; color: var(--c-ink-2); }
.rm-oferta__input { display: flex; align-items: center; border: 1.5px solid var(--c-line-2); border-radius: var(--radius-sm); overflow: hidden; transition: border-color .2s; }
.rm-oferta__input:focus-within { border-color: var(--c-brand); }
.rm-oferta__input.is-error { border-color: var(--c-danger); }
.rm-oferta__input span { padding: 0 12px; font-weight: 800; color: var(--c-ink-3); font-size: .9rem; }
.rm-oferta__input input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 13px 12px 13px 0; font-size: 1.25rem; font-weight: 800; font-variant-numeric: tabular-nums; background: transparent; }
.rm-oferta__rapidas { display: flex; gap: 6px; }
.rm-oferta__rapidas button { flex: 1; padding: 8px 4px; border-radius: var(--radius-sm); border: 1px solid var(--c-line-2); background: var(--c-bg-alt); font-size: .78rem; font-weight: 700; cursor: pointer; color: var(--c-ink-2); }
.rm-oferta__rapidas button:hover { border-color: var(--c-brand); color: var(--c-brand); }

.rm-hist { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--c-line); border-radius: var(--radius-lg); background: var(--c-bg-alt); }
.rm-hist__title { font-size: .76rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--c-ink-3); margin: 0 0 12px; font-family: var(--font-body); }
.rm-hist__list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 2px; }
.rm-hist__list li { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--c-line-2); font-size: .86rem; }
.rm-hist__list li:last-child { border-bottom: 0; }
.rm-hist__list span { font-weight: 700; color: var(--c-ink-2); }
.rm-hist__list time { grid-row: 2; font-size: .74rem; color: var(--c-ink-3); }
.rm-hist__list strong { grid-row: 1 / 3; grid-column: 2; align-self: center; font-variant-numeric: tabular-nums; }
.rm-hist__list li.is-top strong, .rm-hist__list li.is-top span { color: var(--c-brand); }
.rm-hist__list li.is-mia span::after { content: " (tu oferta)"; font-weight: 600; color: var(--c-wheat-dark); }
.rm-hist__priv { display: flex; gap: 8px; align-items: center; margin: 0; font-size: .74rem; color: var(--c-ink-3); }
.rm-hist__priv .icon { width: 14px; height: 14px; flex: none; }

/* Ventanas (inscripción y confirmación) */
.rm-dlg { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); border: 0; border-radius: var(--radius-lg); padding: 30px 26px 26px; box-shadow: var(--shadow-lg); color: var(--c-ink); }
.rm-dlg::backdrop { background: rgba(29,33,26,.55); backdrop-filter: blur(3px); }
.rm-dlg .h3 { margin: 0 0 6px; padding-right: 36px; }
.rm-dlg__x { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--c-bg-alt); display: grid; place-items: center; cursor: pointer; }
.rm-dlg__x .icon { width: 18px; height: 18px; }
.rm-dlg__sub { margin: 0 0 20px; color: var(--c-ink-3); font-size: .92rem; }
.rm-dlg__monto { font-family: var(--font-display); font-size: 2.4rem; color: var(--c-brand); margin: 6px 0 6px; line-height: 1.1; }
.rm-dlg .form { display: grid; gap: 14px; }
.rm-dlg__acepto { display: flex; gap: 10px; align-items: flex-start; font-size: .86rem; color: var(--c-ink-2); }
.rm-dlg__acepto input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--c-brand); flex: none; }
.rm-dlg__ok { text-align: center; display: grid; gap: 10px; justify-items: center; }
.rm-dlg__ok .h3 { padding: 0; }
.rm-dlg__ok p { color: var(--c-ink-2); margin: 0 0 8px; }

@media (max-width: 640px) {
  .rm-head { flex-direction: column; align-items: flex-start; }
  .rm-head__actions { display: none; }
  .rm-panel__clock strong { font-size: 1.6rem; }
}

/* Remates con datos reales: cuenta del comprador, grupos, en vivo, oferta automática */
/* Panel de ofertas en vivo: la cabecera (estado, reloj, precio) y las acciones van en dos bloques
   que se actualizan por separado; adentro de cada uno se respeta el mismo espacio que en el panel */
#rm-cab, #rm-acc { display: grid; gap: 16px; }
#rm-acc:empty { display: none; }
.rm-panel__top { gap: 10px; flex-wrap: wrap; }
.rm-panel__precio { padding-top: 2px; }
.rm-panel__wa { margin-top: 2px; }
/* En el celular, el panel de ofertas va primero (es lo que importa durante el remate) */
@media (max-width: 999px) { .rm-layout { display: flex; flex-direction: column; } .rm-side { order: -1; } }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--c-ink-2); --btn-bd: transparent; }
.btn--ghost:hover { --btn-bg: var(--c-bg-alt); --btn-bd: var(--c-bg-alt); }
.rm-cargando { padding: 60px 20px; text-align: center; color: var(--c-ink-3); font-weight: 600; }
.rm-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: -8px 0 30px; }
.rm-cats[hidden] { display: none; }
.rm-cats button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-bg-alt); font-weight: 700; font-size: .82rem; color: var(--c-ink-2); cursor: pointer; transition: all .2s; }
.rm-cats button .icon { width: 16px; height: 16px; color: var(--c-brand); }
.rm-cats button span { font-size: .74rem; color: var(--c-ink-3); }
.rm-cats button:hover { border-color: var(--c-brand); }
.rm-cats button[aria-pressed="true"] { background: var(--c-brand-tint); border-color: var(--c-brand); color: var(--c-brand-dark); }

.rm-grupo + .rm-grupo { margin-top: 56px; }
.rm-grupo__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px 30px; margin-bottom: 22px; padding-bottom: 16px; border-bottom: 1px solid var(--c-line); }
.rm-grupo__head .rm-pill--proximo { background: var(--c-brand-tint); }
.rm-grupo__head .rm-pill--finalizado { background: var(--c-ink-2); }
.rm-grupo__title { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.15; margin: 10px 0 6px; }
.rm-grupo__cuando { display: flex; align-items: center; gap: 8px; margin: 0; font-size: .88rem; font-weight: 600; color: var(--c-ink-3); }
.rm-grupo__cuando .icon { width: 16px; height: 16px; color: var(--c-brand); }
.rm-grupo__desc { max-width: 52ch; margin: 0; color: var(--c-ink-3); font-size: .92rem; }
.rm-grid--chico { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.rm-pill--pausado { background: #f6efdc; color: #6b5a2e; }
.rm-pill--suspendido { background: #f8e6e2; color: var(--c-danger); }
.rm-card--suspendido { opacity: .7; }

.rm-cuenta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px; margin-bottom: 26px; border-radius: var(--radius); background: var(--c-bg-alt); border: 1px solid var(--c-line); }
.rm-cuenta > .icon { width: 22px; height: 22px; color: var(--c-brand); flex: none; }
.rm-cuenta p { flex: 1; min-width: 200px; margin: 0; font-size: .9rem; color: var(--c-ink-2); line-height: 1.4; }
.rm-cuenta__alias { color: var(--c-ink-3); font-weight: 600; }
.rm-cuenta__acc { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-cuenta--ok > .icon { color: var(--c-ok); }
.rm-cuenta--espera { background: #f6efdc; border-color: #e7d9b2; }
.rm-cuenta--espera > .icon { color: var(--c-wheat-dark); }
.rm-cuenta--mal { background: #f8e6e2; border-color: #efcfc8; }
.rm-cuenta--mal > .icon { color: var(--c-danger); }

.rm-vivo { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 800; color: var(--c-ok); }
.rm-vivo i { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); animation: rm-latido 1.8s infinite; }
.rm-vivo .icon { width: 14px; height: 14px; margin-left: 2px; }
.rm-vivo--caida { color: var(--c-wheat-dark); }
.rm-estado--espera { background: #f6efdc; color: #6b5a2e; }
.rm-estado--pausa { background: #f6efdc; color: #6b5a2e; }
.rm-hist__list em { font-style: normal; color: var(--c-wheat-dark); }
.rm-hist__list em .icon { width: 13px; height: 13px; vertical-align: -2px; }

.rm-auto { border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 0 14px; }
.rm-auto summary { display: flex; align-items: center; gap: 8px; padding: 12px 0; cursor: pointer; font-weight: 700; font-size: .88rem; color: var(--c-ink-2); list-style: none; }
.rm-auto summary::-webkit-details-marker { display: none; }
.rm-auto summary .icon { width: 16px; height: 16px; color: var(--c-wheat-dark); }
.rm-auto[open] { padding-bottom: 14px; }
.rm-auto p { margin: 0 0 10px; font-size: .8rem; color: var(--c-ink-3); }
.rm-auto .btn-row { gap: 8px; }

.rm-video { margin: 14px 0 0; }
.rm-cond-extra { margin: 14px 0 0; font-size: .92rem; }
.rm-martillero { display: flex; gap: 8px; align-items: center; margin: 18px 0 0; font-size: .86rem; font-weight: 600; color: var(--c-ink-3); }
.rm-martillero .icon { width: 17px; height: 17px; color: var(--c-brand); flex: none; }
.rm-docs a { display: flex; align-items: center; gap: 10px; width: 100%; color: inherit; }
.rm-docs a:hover { color: var(--c-brand); }
.rm-docs__nota .icon { width: 14px; height: 14px; vertical-align: -2px; }

.rm-dlg--ancho { width: min(640px, calc(100vw - 32px)); }
.rm-dlg__error { margin: 0; padding: 10px 12px; border-radius: var(--radius-sm); background: #f8e6e2; color: var(--c-danger); font-size: .88rem; font-weight: 700; }
.rm-dlg__error[hidden] { display: none; }
.rm-dlg__links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.rm-link { border: 0; background: none; padding: 4px 0; font: inherit; font-size: .86rem; font-weight: 700; color: var(--c-brand); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.rm-dlg .field label small { font-weight: 500; color: var(--c-ink-3); }
.rm-dlg__ok .btn { margin-top: 4px; }
.rm-dni { border: 1px solid var(--c-line); border-radius: var(--radius); padding: 14px 16px 16px; margin: 0; }
.rm-dni legend { padding: 0 6px; font-weight: 700; font-size: .9rem; }
.rm-dni p { margin: 0 0 12px; font-size: .82rem; color: var(--c-ink-3); }
.rm-dni__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rm-dni__foto { position: relative; display: block; aspect-ratio: 8 / 5; border: 1.5px dashed var(--c-line-2); border-radius: var(--radius-sm); background: var(--c-bg-alt); cursor: pointer; overflow: hidden; transition: border-color .2s; }
.rm-dni__foto:hover, .rm-dni__foto:focus-within { border-color: var(--c-brand); }
.rm-dni__foto input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.rm-dni__vista { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 8px; text-align: center; pointer-events: none; }
.rm-dni__vista .icon { width: 24px; height: 24px; color: var(--c-brand); }
.rm-dni__vista b { font-size: .9rem; }
.rm-dni__vista small { font-size: .72rem; color: var(--c-ink-3); }
.rm-dni__vista img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rm-dni__foto.is-lista { border-style: solid; border-color: var(--c-ok); }
.rm-dni__foto.is-lista small { position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 4px 6px; border-radius: 6px; background: rgba(255,255,255,.92); color: var(--c-ok); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; }
.rm-dni__foto.is-lista small .icon { width: 13px; height: 13px; color: var(--c-ok); }

.rm-mis { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.rm-mis a { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: inherit; transition: border-color .2s; }
.rm-mis a:hover { border-color: var(--c-brand); }
.rm-mis img { width: 84px; aspect-ratio: 10 / 7; object-fit: cover; border-radius: 8px; flex: none; background: var(--c-bg-alt); }
.rm-mis strong { display: block; font-size: .92rem; }
.rm-mis span { display: block; font-size: .8rem; color: var(--c-ink-3); }
.rm-mis__est { display: inline-block; margin-top: 4px; font-style: normal; font-size: .76rem; font-weight: 800; }
.rm-mis__est--ok { color: var(--c-ok); }
.rm-mis__est--mal { color: var(--c-danger); }

/* Garantía de oferta y PDF de bases y condiciones */
.rm-grupo__garantia { display: flex; align-items: center; gap: 8px; margin: 6px 0 0; font-size: .86rem; font-weight: 700; color: var(--c-wheat-dark); }
.rm-grupo__garantia .icon { width: 16px; height: 16px; }
.rm-gar { display: grid; gap: 10px; padding: 14px; border-radius: var(--radius-sm); background: #f6efdc; border: 1px solid #e7d9b2; }
.rm-gar p { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: .86rem; color: #5c4c27; font-weight: 600; }
.rm-gar .icon { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--c-wheat-dark); }
.rm-gar .rm-panel__nota { display: block; }
.rm-gar--ok { display: flex; align-items: flex-start; gap: 10px; background: #e6f1e7; border-color: #c9e0cc; }
.rm-gar--ok .icon { color: var(--c-ok); }
.rm-gar--ok p { flex: 1; display: grid; gap: 2px; color: var(--c-ok); }
.rm-gar--ok p span { font-weight: 600; font-size: .8rem; color: var(--c-ink-2); }
.rm-gar__monto { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--c-brand-tint); }
.rm-gar__monto span { font-size: .8rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--c-ink-3); }
.rm-gar__monto strong { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--c-brand); }
.rm-banco { display: grid; gap: 6px; padding: 14px 16px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.rm-banco__t { display: flex; align-items: center; gap: 8px; margin: 0 0 4px; font-weight: 800; font-size: .9rem; }
.rm-banco__t .icon { width: 18px; height: 18px; color: var(--c-brand); }
.rm-banco__fila { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 8px; align-items: baseline; font-size: .88rem; }
.rm-banco__fila span { color: var(--c-ink-3); font-size: .8rem; }
.rm-banco__fila strong { overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.rm-gar__comp { aspect-ratio: auto; min-height: 96px; }
.rm-pdfs { display: grid; gap: 8px; margin-top: 18px; }
.rm-pdf { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); color: inherit; transition: border-color .2s, background .2s; }
.rm-pdf:hover { border-color: var(--c-brand); background: var(--c-bg-alt); }
.rm-pdf > .icon { width: 20px; height: 20px; color: var(--c-brand); flex: none; }
.rm-pdf > .icon:last-child { width: 17px; height: 17px; color: var(--c-ink-3); }
.rm-pdf span { flex: 1; display: grid; }
.rm-pdf b { font-size: .92rem; }
.rm-pdf small { font-size: .76rem; color: var(--c-ink-3); }
.rm-mis__t { font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; margin: 22px 0 10px; }
.rm-mis--gar li { padding: 10px 12px; border: 1px solid var(--c-line); border-radius: var(--radius-sm); }
.rm-bases { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 30px; }

/* ==========================================================================
   Arenas Verdes (inicio)
   ========================================================================== */
.costa { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: #23332f; }
.costa__bg { position: absolute; inset: 0; z-index: -2; }
.costa__bg .parallax { position: absolute; inset: -10% 0; }
.costa__bg img { width: 100%; height: 100%; object-fit: cover; }
.costa::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(25,38,36,.94) 0%, rgba(30,46,42,.82) 48%, rgba(30,46,42,.55) 100%); }
.costa .eyebrow { color: var(--c-wheat); }
.costa .h2 em { color: var(--c-wheat); }
.costa .lead { color: rgba(255,255,255,.84); margin-bottom: 30px; }
.costa__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 960px) { .costa__grid { grid-template-columns: 1.1fr 1fr; gap: 72px; } }
.costa__rasgos { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.costa__rasgos li { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.costa__rasgos strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.costa__rasgos span:not(.costa__ic) { font-size: .86rem; color: rgba(255,255,255,.74); }
.costa__ic { width: 40px; height: 40px; border-radius: 50%; background: rgba(205,182,131,.18); color: var(--c-wheat); display: grid; place-items: center; flex: none; }
.costa__ic .icon { width: 19px; height: 19px; }
.costa__props { margin-top: 56px; }
.costa__props .h3 { margin: 0; color: #fff; }
.costa__props .link-arrow { color: #fff; }
.costa .card { background: #fff; color: var(--c-ink); border-color: transparent; }
.costa .carousel__btn { background: transparent; color: #fff; border-color: rgba(255,255,255,.35); }
.costa .carousel__btn:hover { background: #fff; color: var(--c-brand-dark); }

@media (prefers-reduced-motion: reduce) { .rm-pill i { animation: none; } .rm-card, .rm-card__media img { transition: none; } }

/* Celular: sin el aviso "Propiedades de ejemplo" (el aviso largo sigue en pantallas grandes) */
@media (max-width: 640px) { .demo-pill { display: none !important; } }

/* ---------- Remates "Próximamente" (config.js → rematesAbiertos en false) ---------- */
.nav__link--pronto { opacity: .62; cursor: default; display: inline-flex; flex-direction: column; align-items: center; line-height: 1.15; }
.nav__link--pronto small, .drawer__nav .is-pronto small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--c-wheat-dark); }
.site-header--overlay:not(.is-scrolled) .nav__link--pronto small { color: var(--c-wheat); }
.drawer__nav .is-pronto { display: flex; align-items: center; gap: 12px; padding: 14px 12px; opacity: .6; cursor: default; }
.drawer__nav .is-pronto small { margin-left: auto; }
.footer__pronto { opacity: .65; cursor: default; }
.footer__pronto small { margin-left: 6px; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--c-wheat); }
.btn--pronto { opacity: .6; cursor: default; pointer-events: none; }
.rm-pronto { max-width: 640px; margin: 0 auto; text-align: center; padding: 28px 0 8px; }
.rm-pronto .btn-row { justify-content: center; }
.rm-pronto__ic { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--c-brand-tint); color: var(--c-brand); margin-bottom: 16px; }
.rm-pronto__ic .icon { width: 28px; height: 28px; }
.home-remates--pronto .home-remates { grid-template-columns: minmax(0, 720px); justify-content: center; text-align: center; }
.home-remates--pronto .checklist { display: inline-block; text-align: left; }
.home-remates--pronto .btn-row { justify-content: center; }
