/* ============================================================
   REMAX Calm — Design Tokens
   Importable as a single stylesheet. Defines colors, type,
   spacing, radii, shadows, and the semantic role mapping
   (h1/h2/p/code/etc) the rest of the system relies on.
   ============================================================ */

/* ---- Fonts -------------------------------------------------- */
/* Newsreader (display serif) + Manrope (UI sans) + JetBrains Mono.
   Loaded from Google Fonts. If you need offline TTFs, place them
   under fonts/ and re-declare with @font-face. */
/* Gotham — REMAX brand font (Light for headings, Regular for emphasis) */
@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/GothamLight.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Gotham';
  src: url('/assets/fonts/GothamRegular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* ============================================================
     1. COLOR — RAW PALETTE
     ============================================================ */

  /* REMAX brand palette — 4 approved tones + functional neutrals */
  --remax-red:     #000E35;  /* REMAX dark navy — headings, nav, footer */
  --remax-red-700: #00071C;  /* hover / press darker */
  --remax-red-200: #CCD0DB;  /* soft tint */
  --remax-crimson:     #AA1120;  /* REMAX red — CTAs, buttons, active states */
  --remax-crimson-700: #8A0D18;  /* hover / press */
  --remax-crimson-200: rgba(170, 17, 32, 0.10); /* soft tint */
  --remax-navy:    #000E35;  /* alias — same as primary navy */
  --remax-navy-700:#00071C;
  --remax-navy-200:#CCD0DB;

  /* Paleta aprobada REMAX Calm — 4 tonos + blanco/negro */
  --calm-cream:    #f7f5ee;  /* REMAX cream — fondo principal */
  --calm-cream-2:  #ffffff;  /* blanco — superficies tarjetas */
  --calm-sand:     #ffffff;  /* secciones alternas → blanco */
  --calm-sand-2:   rgba(247,245,238,0.65); /* cream semi-opaco (texto sobre oscuro) */
  --calm-clay:     #AA1120;  /* rojo REMAX — estrellas, acentos */
  --calm-clay-2:   #8A0D18;
  --calm-olive:    #000E35;  /* navy → sustituye verde */
  --calm-olive-2:  #000E35;
  --calm-sea:      #000E35;  /* navy → sustituye azul mediterráneo */
  --calm-sea-2:    #00071C;
  --calm-stone:    #000E35;  /* texto principal → navy */
  --calm-stone-2:  #000E35;  /* fondo oscuro (footer, hero) → navy */
  --calm-mist:     rgba(0,14,53,0.50);  /* texto secundario */
  --calm-mist-2:   rgba(0,14,53,0.30);  /* texto desactivado / divisores */
  --calm-line:     rgba(0,14,53,0.08);  /* hairline */
  --calm-line-2:   rgba(0,14,53,0.16);

  /* Universal */
  --white:         #FFFFFF;
  --black:         #000000;

  /* ============================================================
     2. COLOR — SEMANTIC ROLES
     Use these in components; never the raw palette directly.
     ============================================================ */

  --bg-1: var(--calm-cream);          /* page ground */
  --bg-2: var(--calm-cream-2);        /* card / panel ground */
  --bg-3: var(--calm-sand);           /* secondary surface */
  --bg-inverse: var(--calm-stone-2);  /* footer / dark sections */

  --fg-1: var(--calm-stone);          /* primary body text */
  --fg-2: var(--calm-mist);           /* secondary text */
  --fg-3: var(--calm-mist-2);         /* disabled / very tertiary */
  --fg-inverse: var(--calm-cream);    /* text on dark grounds */

  --accent:        var(--remax-crimson);     /* primary CTA, buttons — REMAX red */
  --accent-hover:  var(--remax-crimson-700);
  --accent-soft:   var(--remax-crimson-200);

  --secondary:        var(--remax-red);      /* secondary action — navy */
  --secondary-hover:  var(--remax-red-700);
  --secondary-soft:   var(--remax-red-200);

  --link: var(--remax-red);
  --link-hover: var(--remax-crimson);

  --line-1: var(--calm-line);
  --line-2: var(--calm-line-2);

  /* Status (rare on a real-estate marketing site, but provided) */
  --success: #4F7A4A;
  --warning: #C68C2E;
  --danger:  #C0392B;
  --info:    var(--calm-sea);

  /* ============================================================
     3. TYPOGRAPHY
     ============================================================ */

  --font-display: 'Gotham', 'Arial', sans-serif;  /* títulos — Gotham Light/Regular */
  --font-body:    'Arial', 'Helvetica Neue', sans-serif;
  --font-mono:    'SFMono-Regular', Menlo, Consolas, monospace;

  /* Type scale — display (serif) */
  --fs-display-xl: clamp(2.75rem, 1.6rem + 4.6vw, 5.5rem);     /* hero */
  --fs-display-l:  clamp(2.25rem, 1.4rem + 3.4vw, 4rem);       /* page title */
  --fs-display-m:  clamp(1.875rem, 1.3rem + 2.4vw, 3rem);      /* section title */
  --fs-display-s:  clamp(1.5rem, 1.2rem + 1.4vw, 2.125rem);    /* card title */

  /* Type scale — UI (sans) */
  --fs-overline: 0.75rem;     /* 12px — caps eyebrow */
  --fs-caption:  0.8125rem;   /* 13px */
  --fs-body-s:   0.875rem;    /* 14px */
  --fs-body:     1rem;        /* 16px */
  --fs-body-l:   1.125rem;    /* 18px — lead paragraphs */
  --fs-title-s:  1.25rem;     /* 20px — sans title */
  --fs-title-m:  1.5rem;      /* 24px — sans title */

  /* Weight + tracking */
  --fw-light:    300;
  --fw-regular:  400;
  --fw-medium:   500;
  --fw-semibold: 600;
  --fw-bold:     700;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0em;
  --tracking-wide:    0.04em;
  --tracking-caps:    0.12em;

  --lh-display: 1.08;
  --lh-tight:   1.2;
  --lh-snug:    1.35;
  --lh-body:    1.55;
  --lh-loose:   1.7;

  /* ============================================================
     4. SPACING (4px scale)
     ============================================================ */

  --space-0:   0;
  --space-1:   4px;
  --space-2:   8px;
  --space-3:   12px;
  --space-4:   16px;
  --space-5:   20px;
  --space-6:   24px;
  --space-8:   32px;
  --space-10:  40px;
  --space-12:  48px;
  --space-16:  64px;
  --space-20:  80px;
  --space-24:  96px;
  --space-32:  128px;
  --space-40:  160px;

  /* Page gutters */
  --gutter-mobile:  var(--space-6);
  --gutter-tablet:  var(--space-12);
  --gutter-desktop: var(--space-32);

  --container-narrow:  720px;
  --container-content: 1080px;
  --container-wide:    1280px;
  --container-grid:    1440px;

  /* ============================================================
     5. RADII
     ============================================================ */

  --radius-0:    0px;
  --radius-1:    4px;   /* tags, chips */
  --radius-2:    8px;   /* inputs, buttons */
  --radius-3:    12px;  /* cards */
  --radius-4:    16px;  /* modals, large surfaces */
  --radius-5:    24px;  /* hero corners */
  --radius-full: 9999px;

  /* ============================================================
     6. SHADOWS
     ============================================================ */

  --shadow-1: 0 1px 2px rgba(58, 52, 46, 0.06);
  --shadow-2: 0 4px 16px -8px rgba(58, 52, 46, 0.18);
  --shadow-3: 0 12px 28px -16px rgba(58, 52, 46, 0.35);
  --shadow-4: 0 24px 56px -24px rgba(58, 52, 46, 0.45);
  --shadow-focus: 0 0 0 2px var(--calm-cream), 0 0 0 4px var(--remax-navy);

  /* ============================================================
     7. MOTION
     ============================================================ */

  --ease-calm:    cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-in:      cubic-bezier(0.4, 0.0, 1, 1);
  --ease-out:     cubic-bezier(0.0, 0.0, 0.2, 1);

  --dur-micro:    180ms;
  --dur-panel:    320ms;
  --dur-scene:    600ms;

  /* ============================================================
     8. Z-INDEX
     ============================================================ */
  --z-nav:    100;
  --z-modal:  300;
  --z-toast:  500;
  --z-tip:    600;
}

/* ============================================================
   GLOBAL TYPE RESET — semantic mapping
   ============================================================ */

html { color-scheme: light; }

body {
  margin: 0;
  background: var(--bg-1);
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 300;  /* Gotham Light por defecto */
  letter-spacing: var(--tracking-tight);
  line-height: var(--lh-display);
  margin: 0 0 var(--space-4);
  text-wrap: balance;
}
/* em dentro de títulos = Gotham Regular (énfasis por peso, no cursiva) */
h1 em, h2 em, h3 em, h4 em { font-style: normal; font-weight: 400; }

h1 { font-size: var(--fs-display-xl); }
h2 { font-size: var(--fs-display-l); }
h3 { font-size: var(--fs-display-m); }
h4 { font-size: var(--fs-display-s); line-height: var(--lh-tight); }

h5, h6 {
  font-family: var(--font-body);
  font-weight: var(--fw-semibold);
  margin: 0 0 var(--space-2);
  letter-spacing: var(--tracking-normal);
}
h5 { font-size: var(--fs-title-m); }
h6 {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  color: var(--fg-2);
  font-weight: var(--fw-semibold);
}

p { margin: 0 0 var(--space-4); text-wrap: pretty; }
p.lead { font-size: var(--fs-body-l); color: var(--fg-1); }

small, .caption { font-size: var(--fs-caption); color: var(--fg-2); }
.overline {
  font-size: var(--fs-overline);
  text-transform: uppercase;
  letter-spacing: var(--tracking-caps);
  font-weight: var(--fw-semibold);
  color: var(--fg-2);
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color var(--dur-micro) var(--ease-calm);
}
a:hover { color: var(--link-hover); }

code, kbd, samp, pre {
  font-family: var(--font-mono);
  font-size: 0.92em;
  letter-spacing: var(--tracking-normal);
}
code {
  background: var(--bg-3);
  padding: 0.1em 0.35em;
  border-radius: var(--radius-1);
  color: var(--calm-clay-2);
}

hr {
  border: 0;
  border-top: 1px solid var(--line-1);
  margin: var(--space-12) 0;
}

::selection { background: var(--remax-red); color: var(--calm-cream); }

/* Display class helpers */
.display-xl { font-family: var(--font-display); font-size: var(--fs-display-xl); line-height: var(--lh-display); letter-spacing: var(--tracking-tight); font-weight: 300; }
.display-l  { font-family: var(--font-display); font-size: var(--fs-display-l);  line-height: var(--lh-display); letter-spacing: var(--tracking-tight); font-weight: 300; }
.display-m  { font-family: var(--font-display); font-size: var(--fs-display-m);  line-height: var(--lh-tight);   letter-spacing: var(--tracking-tight); font-weight: 300; }
.display-s  { font-family: var(--font-display); font-size: var(--fs-display-s);  line-height: var(--lh-tight); font-weight: 300; }
.display-xl em, .display-l em, .display-m em, .display-s em { font-style: normal; font-weight: 400; }

/* ============================================================
   REMAX Calm — Mallorca · English site
   Calm, minimal, photography-led
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
  background: var(--bg-1); color: var(--fg-1);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
#root { display: flex; flex-direction: column; min-height: 100vh; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: var(--z-nav);
  display: flex; align-items: center; gap: 28px;
  padding: 16px 40px;
  background: rgba(247,245,238,0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(58,52,46,0.06);
}
.nav.scrolled { background: rgba(247,245,238,0.95); border-bottom-color: rgba(58,52,46,0.1); }
.nav .logo { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.nav .logo .box {
  background: var(--remax-red); color: #fff;
  font-weight: 800; font-size: 13px; letter-spacing: 1.6px;
  padding: 6px 9px; border-radius: 3px;
  font-family: var(--font-body);
}
.nav .logo .calm {
  font-family: var(--font-display); font-style: normal; font-weight: 300;
  font-size: 24px; letter-spacing: 0.02em; color: var(--fg-1);
  line-height: 1;
}
.nav .links { display: flex; gap: 28px; font-size: 13px; font-weight: 500; margin-left: 12px; }
.nav .links a {
  color: var(--fg-1); cursor: pointer; padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color var(--dur-micro) var(--ease-calm), border-color var(--dur-micro) var(--ease-calm);
}
.nav .links a:hover { color: var(--remax-red); }
.nav .links a.active { color: var(--remax-red); border-bottom-color: var(--remax-red); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 18px; }
.nav .lang { display: flex; gap: 2px; font-size: 12px; color: var(--fg-2); font-weight: 600; }
.nav .lang span, .nav .lang a, .nav .lang button { padding: 6px 9px; border: 0; background: none; font: inherit; font-weight: 600; border-radius: 4px; cursor: pointer; color: inherit; text-decoration: none; transition: background var(--dur-micro) var(--ease-calm), color var(--dur-micro) var(--ease-calm); }
.nav .lang span:hover, .nav .lang a:hover, .nav .lang button:hover { color: var(--fg-1); }
.nav .lang span.active, .nav .lang a.active, .nav .lang button.active { background: var(--calm-stone); color: var(--calm-cream); }

/* Botón hamburguesa (solo móvil) */
.nav-burger {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 4px;
  border: 0; background: none; color: var(--fg-1); cursor: pointer; border-radius: 8px;
  transition: background var(--dur-micro) var(--ease-calm);
}
.nav-burger:hover { background: rgba(58,52,46,0.06); }

/* Acceso a guardados (wishlist) en el nav */
.nav .nav-saved {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 8px; color: var(--fg-1);
  transition: color var(--dur-micro) var(--ease-calm), background var(--dur-micro) var(--ease-calm);
}
.nav .nav-saved:hover, .nav .nav-saved.active { color: var(--remax-red); }
.nav .nav-saved .saved-count {
  position: absolute; top: 0; right: 0; min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 999px; background: var(--remax-red); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}

/* Panel de menú móvil */
.mobile-menu {
  display: none;
  position: fixed; top: 64px; left: 0; right: 0; z-index: var(--z-nav);
  background: var(--bg-1); border-bottom: 1px solid var(--line-1);
  box-shadow: var(--shadow-3);
  padding: 12px 24px 24px;
  max-height: calc(100vh - 64px); overflow-y: auto;
}
.mobile-menu.open { display: block; animation: mmOpen 180ms var(--ease-calm); }
@keyframes mmOpen { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.mobile-links { display: flex; flex-direction: column; }
.mobile-links a {
  display: flex; align-items: center; min-height: 48px;
  padding: 4px 4px; font-size: 17px; font-weight: 500; color: var(--fg-1);
  border-bottom: 1px solid var(--line-1);
}
.mobile-links a.active { color: var(--remax-red); }
.mobile-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 18px; flex-wrap: wrap; }
.mobile-foot .lang { display: flex; }
.mobile-foot .lang button { font-size: 14px; padding: 8px 12px; min-height: 40px; }
.mobile-scrim {
  position: fixed; inset: 64px 0 0; z-index: calc(var(--z-nav) - 1);
  background: rgba(34,30,26,0.32); border: 0; cursor: pointer;
}
.mobile-scrim[hidden] { display: none; }
.nav .phone-cta {
  background: var(--remax-red); color: #fff;
  padding: 10px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  transition: background var(--dur-micro) var(--ease-calm);
}
.nav .phone-cta:hover { background: var(--remax-red-700); color: #fff; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-body); font-size: 14px; font-weight: 600;
  padding: 13px 22px; border-radius: 8px;
  border: 1px solid transparent;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background var(--dur-micro) var(--ease-calm),
              color var(--dur-micro) var(--ease-calm),
              transform var(--dur-micro) var(--ease-calm),
              border-color var(--dur-micro) var(--ease-calm);
}
.btn.primary { background: var(--remax-red); color: #fff; }
.btn.primary:hover { background: var(--remax-red-700); }
.btn.primary:active { transform: scale(0.99); }
.btn.secondary { background: var(--remax-navy); color: #fff; }
.btn.secondary:hover { background: var(--remax-navy-700); }
.btn.outline { background: transparent; border-color: var(--fg-1); color: var(--fg-1); }
.btn.outline:hover { background: var(--fg-1); color: var(--calm-cream); }
.btn.outline-cream { background: transparent; border-color: var(--calm-cream); color: var(--calm-cream); }
.btn.outline-cream:hover { background: var(--calm-cream); color: var(--fg-1); }
.btn.ghost { background: transparent; color: var(--fg-1); padding: 13px 12px; }
.btn.ghost:hover { color: var(--remax-red); }
.btn.lg { padding: 16px 28px; font-size: 15px; }
.btn .arr { transition: transform var(--dur-micro) var(--ease-calm); display: inline-flex; }
.btn:hover .arr { transform: translateX(3px); }

/* ============================================================
   SECTIONS / CONTAINERS
   ============================================================ */
.section { padding: 80px 40px; }
.section.tight { padding: 56px 40px; }
.section.sand { background: var(--calm-sand); }
.section.stone { background: var(--calm-stone-2); color: var(--calm-cream); }
.section.cream-2 { background: #EFE6D7; }
.container { max-width: 1280px; margin: 0 auto; }
.container.wide { max-width: 1440px; }
.container.narrow { max-width: 880px; }

.eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em;
  font-weight: 600; color: var(--remax-red); margin-bottom: 18px;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ''; display: inline-block; width: 24px; height: 1px;
  background: var(--remax-red); flex: 0 0 auto;
}
.section.stone .eyebrow { color: var(--calm-sand-2); }
.section.stone .eyebrow::before { background: var(--calm-sand-2); }

.section-title {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2rem, 1.2rem + 2.8vw, 3.5rem);
  line-height: 1.05; letter-spacing: -0.025em;
  margin: 0 0 20px; max-width: 820px;
  text-wrap: balance;
}
.section-title em { font-style: normal; color: var(--accent); font-weight: 400; }
.section.stone .section-title em { color: #ffffff; }

.section-lead {
  font-size: 18px; line-height: 1.6;
  color: var(--fg-2); max-width: 620px; margin: 0 0 44px;
  text-wrap: pretty;
}
.section.stone .section-lead { color: var(--calm-cream); opacity: 0.78; }

.section-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 32px; margin-bottom: 56px; flex-wrap: wrap;
}
.section-head .section-title, .section-head .section-lead { margin-bottom: 0; }
.section-head .right-link { font-size: 14px; font-weight: 600; color: var(--remax-red); display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.section-head .right-link:hover .arr { transform: translateX(4px); }
.section-head .right-link .arr { transition: transform var(--dur-micro) var(--ease-calm); display: inline-flex; }

/* ============================================================
   HERO — multiple variants via data-variant
   ============================================================ */
.hero { position: relative; overflow: hidden; background: var(--calm-stone-2); }

/* ----- Variant: classic full-bleed ----- */
.hero[data-variant="classic"] { height: min(92vh, 880px); min-height: 640px; }
.hero[data-variant="classic"] .photo { position: absolute; inset: 0; }
.hero[data-variant="classic"] .photo image-slot { width: 100%; height: 100%; display: block; }
.hero[data-variant="classic"] .overlay {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(34,30,26,0.0) 35%, rgba(34,30,26,0.55) 100%),
    linear-gradient(to right, rgba(34,30,26,0.45) 0%, rgba(34,30,26,0.0) 55%);
}
.hero[data-variant="classic"] .content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px 100px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: flex-end;
  color: var(--calm-cream);
}
.hero[data-variant="classic"] .h-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.26em;
  font-weight: 600; margin-bottom: 24px; color: var(--calm-cream); opacity: 0.88;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero[data-variant="classic"] .h-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--calm-cream); opacity: 0.6;
}
.hero[data-variant="classic"] h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(3rem, 1.5rem + 5.5vw, 6.5rem);
  line-height: 0.98; letter-spacing: -0.03em;
  margin: 0 0 28px; color: var(--calm-cream);
  max-width: 1000px; text-wrap: balance;
}
.hero[data-variant="classic"] h1 em { font-style: normal; color: #ffffff; font-weight: 400; }
.hero[data-variant="classic"] .h-lead {
  font-size: 19px; line-height: 1.5; color: var(--calm-cream); opacity: 0.92;
  max-width: 520px; margin: 0 0 40px;
}
.hero[data-variant="classic"] .h-actions { display: flex; gap: 14px; }

/* ----- Variant: editorial split ----- */
.hero[data-variant="editorial"] {
  display: grid; grid-template-columns: 1.1fr 1fr;
  min-height: 720px; align-items: stretch;
  background: var(--calm-cream);
}
.hero[data-variant="editorial"] .content {
  padding: 100px 64px 80px;
  display: flex; flex-direction: column; justify-content: center;
  color: var(--fg-1);
}
.hero[data-variant="editorial"] .h-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.26em; font-weight: 600;
  color: var(--remax-red); margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 10px;
}
.hero[data-variant="editorial"] .h-eyebrow::before {
  content: ''; width: 28px; height: 1px; background: var(--remax-red);
}
.hero[data-variant="editorial"] h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 1rem + 4.5vw, 5rem);
  line-height: 1.0; letter-spacing: -0.028em;
  margin: 0 0 28px; color: var(--fg-1); text-wrap: balance;
}
.hero[data-variant="editorial"] h1 em { font-style: normal; color: var(--accent); font-weight: 400; }
.hero[data-variant="editorial"] .h-lead {
  font-size: 18px; line-height: 1.6; color: var(--fg-2); margin: 0 0 36px; max-width: 500px;
}
.hero[data-variant="editorial"] .h-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero[data-variant="editorial"] .photo { position: relative; overflow: hidden; }
.hero[data-variant="editorial"] .photo image-slot { width: 100%; height: 100%; display: block; }

/* ----- Variant: magazine (huge serif + subdued overlay) ----- */
.hero[data-variant="magazine"] { height: min(94vh, 920px); min-height: 680px; }
.hero[data-variant="magazine"] .photo { position: absolute; inset: 0; }
.hero[data-variant="magazine"] .photo image-slot { width: 100%; height: 100%; display: block; }
.hero[data-variant="magazine"] .overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(34,30,26,0.0) 0%, rgba(34,30,26,0.0) 50%, rgba(34,30,26,0.55) 100%);
}
.hero[data-variant="magazine"] .content {
  position: relative; z-index: 2;
  max-width: 1280px; margin: 0 auto;
  padding: 0 40px;
  height: 100%;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; color: var(--calm-cream);
}
.hero[data-variant="magazine"] .h-eyebrow {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.28em;
  font-weight: 600; margin-bottom: 32px; color: var(--calm-cream); opacity: 0.88;
}
.hero[data-variant="magazine"] h1 {
  font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(3.5rem, 1rem + 8vw, 8.5rem);
  line-height: 0.95; letter-spacing: -0.035em;
  margin: 0 0 32px; color: var(--calm-cream); max-width: 1100px; text-wrap: balance;
}
.hero[data-variant="magazine"] h1 em { font-style: normal; color: #ffffff; font-weight: 400; }
.hero[data-variant="magazine"] .h-lead {
  font-size: 17px; line-height: 1.55; color: var(--calm-cream); opacity: 0.88;
  max-width: 540px; margin: 0 0 40px;
}
.hero[data-variant="magazine"] .h-actions { display: flex; gap: 14px; }
.hero[data-variant="magazine"] .h-meta {
  position: absolute; bottom: 40px; left: 40px; right: 40px;
  display: flex; justify-content: space-between; align-items: center;
  color: var(--calm-cream); opacity: 0.7;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.22em; font-weight: 600;
}

/* ----- Variant: mosaic (main + 2 cards) ----- */
.hero[data-variant="mosaic"] {
  padding: 40px; background: var(--calm-cream);
  min-height: 760px;
}
.hero[data-variant="mosaic"] .mosaic-wrap {
  max-width: 1440px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 380px;
  gap: 24px;
  min-height: calc(100vh - 80px - 88px);
  max-height: 820px;
}
.hero[data-variant="mosaic"] .main {
  position: relative; border-radius: 18px; overflow: hidden;
  background: var(--calm-stone);
}
.hero[data-variant="mosaic"] .main image-slot { width: 100%; height: 100%; display: block; }
.hero[data-variant="mosaic"] .main .overlay {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(34,30,26,0.0) 35%, rgba(34,30,26,0.55) 100%);
}
.hero[data-variant="mosaic"] .main .content {
  position: absolute; left: 48px; right: 48px; bottom: 48px;
  color: var(--calm-cream);
}
.hero[data-variant="mosaic"] .main .h-eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.24em; font-weight: 600;
  margin-bottom: 18px; opacity: 0.88;
}
.hero[data-variant="mosaic"] .main h1 {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(2.5rem, 1rem + 4vw, 4.5rem);
  line-height: 1; letter-spacing: -0.028em; margin: 0 0 22px;
  max-width: 700px; text-wrap: balance;
}
.hero[data-variant="mosaic"] .main h1 em { font-style: normal; color: #ffffff; font-weight: 400; }
.hero[data-variant="mosaic"] .main .h-lead { font-size: 16px; opacity: 0.9; max-width: 460px; margin: 0 0 28px; }
.hero[data-variant="mosaic"] .main .h-actions { display: flex; gap: 12px; }
.hero[data-variant="mosaic"] .side { display: flex; flex-direction: column; gap: 24px; }
.hero[data-variant="mosaic"] .sidecard {
  flex: 1; position: relative; border-radius: 14px; overflow: hidden;
  background: var(--calm-stone); cursor: pointer;
  transition: transform var(--dur-panel) var(--ease-calm);
}
.hero[data-variant="mosaic"] .sidecard:hover { transform: translateY(-3px); }
.hero[data-variant="mosaic"] .sidecard image-slot { width: 100%; height: 100%; display: block; }
.hero[data-variant="mosaic"] .sidecard .ovr {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(34,30,26,0.0) 35%, rgba(34,30,26,0.7) 100%);
}
.hero[data-variant="mosaic"] .sidecard .cap {
  position: absolute; left: 22px; right: 22px; bottom: 22px;
  color: var(--calm-cream);
}
.hero[data-variant="mosaic"] .sidecard .cap .loc {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 600; opacity: 0.85; margin-bottom: 6px;
}
.hero[data-variant="mosaic"] .sidecard .cap .ttl {
  font-family: var(--font-display); font-size: 22px; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 8px;
}
.hero[data-variant="mosaic"] .sidecard .cap .price {
  font-family: var(--font-display); font-size: 18px; color: var(--calm-cream);
}

/* ============================================================
   SEARCH BAR (sits below hero, raised)
   ============================================================ */
.search-band { padding: 0 40px; margin-top: -64px; position: relative; z-index: 4; max-width: 1280px; margin-left: auto; margin-right: auto; }
.search-band[data-floating="false"] { margin-top: 56px; }
.searchbar {
  background: var(--bg-2);
  border-radius: 16px;
  box-shadow: var(--shadow-3);
  padding: 8px;
  display: grid; grid-template-columns: 1fr 1.1fr 1.1fr 1fr 1fr auto;
  gap: 0;
  max-width: 1200px; margin: 0 auto;
  border: 1px solid rgba(58,52,46,0.06);
  position: relative;
}
/* Búsqueda directa por referencia (cartel / anuncio) */
.searchbar-ref { grid-column: 1 / -1; display: flex; align-items: center; gap: 12px; padding: 10px 14px 4px; margin-top: 6px; border-top: 1px solid var(--line-1); cursor: text; }
.searchbar-ref .sbr-tag { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 700; color: var(--remax-red); white-space: nowrap; flex: 0 0 auto; }
.searchbar-ref .sbr-in { flex: 1; min-width: 0; border: 0; background: transparent; font-family: var(--font-body); font-size: 14px; color: var(--fg-1); padding: 4px 0; }
.searchbar-ref .sbr-in:focus { outline: none; }
.searchbar .field {
  display: flex; flex-direction: column; padding: 14px 18px; gap: 4px;
  border-radius: 11px; cursor: pointer;
  transition: background var(--dur-micro) var(--ease-calm);
  border-right: 1px solid rgba(58,52,46,0.06);
  position: relative; min-width: 0;
}
.searchbar .field:last-of-type { border-right: 0; }
.searchbar .field:hover { background: var(--calm-cream); }
.searchbar .field.open { background: var(--calm-cream); }
.searchbar .field .l {
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 700; color: var(--fg-2);
}
.searchbar .field .v {
  font-family: var(--font-body); font-size: 14px; font-weight: 500;
  color: var(--fg-1); background: transparent; border: 0; outline: none;
  padding: 0; -webkit-appearance: none; appearance: none;
}
.searchbar .field .ms-display {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  white-space: nowrap; overflow: hidden;
}
.searchbar .field .ms-display > span:first-child {
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.searchbar .field .ms-display .ms-more {
  font-style: normal; font-size: 11px; font-weight: 700;
  color: var(--remax-red); background: var(--calm-cream);
  padding: 1px 6px; border-radius: 999px; margin-left: 6px; white-space: nowrap;
}
.searchbar .submit { display: flex; align-items: center; padding: 4px; }
.searchbar .submit .btn { height: 100%; padding: 0 22px; position: relative; }
.searchbar .submit .filter-count {
  background: rgba(255,255,255,0.22); color: #fff;
  font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px;
  margin-left: 2px;
}

/* Multi-select dropdown menu */
.ms-menu {
  position: absolute; top: calc(100% + 6px); left: 0;
  min-width: 240px;
  background: var(--bg-2); border: 1px solid var(--line-1);
  border-radius: 12px; box-shadow: var(--shadow-3);
  padding: 6px;
  overflow: visible;
  z-index: 50;
  font-family: var(--font-body);
  animation: msOpen 180ms var(--ease-calm);
}
/* Las opciones hacen scroll; el footer (rango personalizado) queda siempre visible y no se corta. */
.ms-opts { max-height: 260px; overflow-y: auto; }
@keyframes msOpen { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: translateY(0); } }
.ms-clear {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 600;
  color: var(--remax-red); padding: 10px 12px; cursor: pointer;
  border-bottom: 1px solid var(--line-1); margin-bottom: 4px;
}
.ms-clear:hover { background: var(--calm-cream); }
.ms-opt {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px;
  font-size: 13px; cursor: pointer;
  transition: background var(--dur-micro) var(--ease-calm);
  position: relative;
}
.ms-opt:hover { background: var(--calm-cream); }
.ms-opt.on { color: var(--fg-1); font-weight: 500; }
.ms-opt .checkbox {
  width: 16px; height: 16px; border-radius: 4px;
  border: 1.5px solid var(--line-2);
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; color: var(--calm-cream);
  transition: all var(--dur-micro) var(--ease-calm);
}
.ms-opt.on .checkbox { background: var(--remax-red); border-color: var(--remax-red); }
.ms-opt .ms-opt-l { flex: 1; }
/* Rango de precio personalizado dentro del desplegable de presupuesto */
.ms-custom { border-top: 1px solid var(--line-1); margin-top: 4px; padding: 10px 12px 6px; }
.ms-custom-l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.12em; color: var(--fg-2); font-weight: 600; margin-bottom: 8px; }
.ms-custom-row { display: flex; align-items: center; gap: 8px; }
.ms-custom-in { flex: 1; min-width: 0; width: 100%; padding: 8px 10px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font-body); font-size: 13px; background: var(--white); color: var(--fg-1); }
.ms-custom-in:focus { border-color: var(--remax-red); outline: none; }
.ms-custom-sep { color: var(--fg-2); flex: 0 0 auto; }

/* ============================================================
   QUICK CATEGORIES (small inline)
   ============================================================ */
/* ============================================================
   TRUST BAND (posicionamiento bajo el hero) + VALUE STRIP
   ============================================================ */
.trust { padding: 76px 24px; }
.trust-head { text-align: center; }
.trust-head .eyebrow { margin-bottom: 16px; }
.trust-head .section-title { margin: 0 auto 16px; }
.trust-head .section-lead { margin: 0 auto; }
.trust .value-strip { max-width: 1280px; margin: 44px auto 0; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px; margin-top: 28px; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--fg-2); }
@media (max-width: 640px) { .trust { padding: 52px 20px; } .trust-badges { gap: 10px 18px; font-size: 12px; } }

.value-strip {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 0; padding: 56px 40px;
  border-top: 1px solid var(--line-1);
  border-bottom: 1px solid var(--line-1);
  max-width: 1440px; margin: 0 auto;
}
.value-strip .vs {
  padding: 20px 28px;
  border-right: 1px solid var(--line-1);
}
.value-strip .vs:last-child { border-right: 0; }
.value-strip .vs .n {
  font-family: var(--font-display); font-size: 44px; font-weight: 400;
  letter-spacing: -0.025em; line-height: 1; color: var(--fg-1);
  margin-bottom: 10px;
}
.value-strip .vs .n small {
  font-size: 22px; color: var(--remax-red); margin-left: 4px; font-weight: 400;
}
.value-strip .vs .l {
  font-size: 13px; color: var(--fg-2); line-height: 1.5;
}

/* ============================================================
   PROPERTY TYPES
   ============================================================ */
.categories { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.category {
  background: var(--bg-2); border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line-1); cursor: pointer;
  transition: transform var(--dur-panel) var(--ease-calm),
              box-shadow var(--dur-panel) var(--ease-calm);
}
.category:hover { transform: translateY(-4px); box-shadow: var(--shadow-3); }
.category .cat-img { aspect-ratio: 4/4.5; overflow: hidden; position: relative; }
.category .cat-img image-slot { width: 100%; height: 100%; display: block; }
.category .cat-img .lbl {
  position: absolute; left: 18px; bottom: 18px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.18em;
  font-weight: 700; padding: 6px 10px; border-radius: 4px;
  background: rgba(244,237,228,0.92); color: var(--fg-1);
}
.category .info { padding: 20px 22px 24px; }
.category .info h3 { font-family: var(--font-display); font-size: 24px; font-weight: 400; margin: 0 0 6px; letter-spacing: -0.015em; }
.category .info p { font-size: 13px; color: var(--fg-2); margin: 0 0 14px; line-height: 1.55; }
.category .info .more { font-size: 12px; font-weight: 600; color: var(--remax-red); display: inline-flex; gap: 6px; align-items: center; }
.category .info .more .arr { transition: transform var(--dur-micro) var(--ease-calm); display: inline-flex; }
.category:hover .info .more .arr { transform: translateX(3px); }

/* ============================================================
   PROPERTIES GRID
   ============================================================ */
.filters { display: flex; gap: 8px; margin-bottom: 32px; flex-wrap: wrap; }
.chip {
  font-family: var(--font-body); font-size: 13px; font-weight: 500;
  padding: 9px 18px; border-radius: 999px;
  background: var(--bg-2); color: var(--fg-1);
  border: 1px solid var(--line-2); cursor: pointer;
  transition: all var(--dur-micro) var(--ease-calm);
}
.chip:hover { background: var(--calm-sand); }
.chip.active { background: var(--fg-1); color: var(--calm-cream); border-color: var(--fg-1); }

.props { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.prop {
  background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 14px;
  overflow: hidden; box-shadow: var(--shadow-2);
  transition: transform var(--dur-panel) var(--ease-calm),
              box-shadow var(--dur-panel) var(--ease-calm);
  display: flex; flex-direction: column; cursor: pointer;
}
.prop:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.prop .photo { aspect-ratio: 4/3; position: relative; overflow: hidden; }
.prop .photo image-slot { width: 100%; height: 100%; display: block; transition: transform 600ms var(--ease-calm); }
.prop:hover .photo image-slot { transform: scale(1.04); }
.prop .photo .badge {
  position: absolute; top: 14px; left: 14px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 11px; border-radius: 999px;
  background: rgba(244,237,228,0.95); color: var(--fg-1);
  backdrop-filter: blur(8px);
}
.prop-badge {
  position: absolute; z-index: 4;
  font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px;
  backdrop-filter: blur(8px);
}
.prop-badge--sea {
  top: 14px; left: 14px;
  background: rgba(0, 100, 200, 0.82); color: #fff;
}
.prop .body { padding: 20px 22px 22px; flex: 1; display: flex; flex-direction: column; }
.prop .body .loc {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--fg-2); margin-bottom: 8px;
}
.prop .body .title {
  font-family: var(--font-display); font-size: 22px; font-weight: 400;
  line-height: 1.15; letter-spacing: -0.015em; color: var(--fg-1);
  margin: 0 0 14px;
}
.prop .body .meta {
  display: flex; gap: 16px; font-size: 13px; color: var(--fg-2);
  margin-bottom: 16px; padding-bottom: 16px;
  border-bottom: 1px solid var(--line-1);
}
.prop .body .meta span { display: inline-flex; align-items: center; gap: 5px; }
.prop .body .meta b { color: var(--fg-1); font-weight: 600; }
.prop .body .foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; }
.prop .body .price { font-family: var(--font-display); font-size: 26px; font-weight: 500; color: var(--remax-red); letter-spacing: -0.01em; }
.prop .body .ref { font-family: var(--font-body); font-size: 11px; color: var(--fg-2); letter-spacing: 0; background: var(--calm-cream); border: 1px solid var(--line-1); border-radius: 6px; padding: 3px 8px; white-space: nowrap; }

/* ============================================================
   AREAS (locations) — editorial photo grid
   ============================================================ */
.areas {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 220px;
  gap: 18px;
}
.area {
  position: relative; border-radius: 14px; overflow: hidden;
  cursor: pointer; background: var(--calm-stone);
  transition: transform var(--dur-panel) var(--ease-calm);
}
.area:hover { transform: translateY(-3px); }
.area image-slot { width: 100%; height: 100%; display: block; }
.area .ovr {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(34,30,26,0.0) 40%, rgba(34,30,26,0.65) 100%);
}
.area .info {
  position: absolute; left: 24px; right: 24px; bottom: 22px;
  color: var(--calm-cream); z-index: 2;
}
.area .info .name {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  letter-spacing: -0.01em; margin: 0 0 4px;
}
.area .info .count { font-size: 12px; opacity: 0.85; letter-spacing: 0.08em; }
.area.sz-lg { grid-column: span 6; grid-row: span 2; }
.area.sz-md { grid-column: span 6; grid-row: span 1; }
.area.sz-sm { grid-column: span 4; grid-row: span 1; }
.area.sz-tall { grid-column: span 3; grid-row: span 2; }
.area.sz-lg .info .name { font-size: 36px; }

/* ============================================================
   SERVICES TWO-UP
   ============================================================ */
.twoup { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.twoup.flip { direction: rtl; }
.twoup.flip > * { direction: ltr; }
.twoup image-slot { width: 100%; aspect-ratio: 4/5; border-radius: 14px; display: block; overflow: hidden; }
.twoup .body .checks {
  list-style: none; padding: 0; margin: 0 0 32px;
  display: flex; flex-direction: column; gap: 14px;
}
.twoup .body .checks li {
  display: flex; gap: 14px; align-items: flex-start;
  font-size: 15px; line-height: 1.5;
}
.twoup .body .checks li svg { flex: 0 0 auto; margin-top: 4px; }
.twoup .body .checks li b { font-weight: 600; color: var(--fg-1); }

/* ============================================================
   STATS (REMAX global)
   ============================================================ */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 32px; }
.stat-item {
  padding: 28px 32px 32px 32px;
  border-right: 1px solid rgba(244,237,228,0.18);
}
.stat-item:first-child { padding-left: 0; }
.stat-item:last-child { border-right: 0; }
.stat-item .num {
  font-family: var(--font-display); font-weight: 300;
  font-size: 72px; line-height: 0.95; letter-spacing: -0.04em;
  color: var(--calm-cream);
}
.stat-item .num small { font-size: 32px; vertical-align: top; margin-left: 4px; color: var(--remax-red-200); }
.stat-item .lbl {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--calm-sand-2); margin-top: 14px;
}

/* ============================================================
   ARCHITECTURE BLOCK
   ============================================================ */
.arch {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  align-items: stretch; background: var(--calm-cream-2);
  border-radius: 18px; overflow: hidden;
  border: 1px solid var(--line-1);
}
.arch image-slot { width: 100%; height: 100%; display: block; min-height: 520px; }
.arch .body { padding: 64px 56px; display: flex; flex-direction: column; justify-content: center; }
.arch .body .eyebrow { color: var(--accent); }
.arch .body .eyebrow::before { background: var(--accent); }
.arch .body h2 { font-family: var(--font-display); font-weight: 400; font-size: clamp(2rem, 1rem + 2.4vw, 3rem); line-height: 1.05; letter-spacing: -0.025em; margin: 0 0 22px; text-wrap: balance; }
.arch .body h2 em { font-style: normal; font-weight: 400; color: var(--accent); }
.arch .body p { font-size: 16px; line-height: 1.6; color: var(--fg-2); margin: 0 0 16px; }
.arch .body .sig {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid rgba(58,52,46,0.12);
  display: flex; align-items: center; gap: 16px;
}
.arch .body .sig .av {
  width: 56px; height: 56px; border-radius: 999px;
  background: linear-gradient(135deg, #c9b596, #8a6f4f);
  flex: 0 0 auto;
}
.arch .body .sig .who b {
  display: block; font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.01em;
}
.arch .body .sig .who span { font-size: 12px; color: var(--fg-2); }

/* ============================================================
   TEAM
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.agent {
  display: flex; flex-direction: column;
  background: var(--bg-2); border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-2); border: 1px solid var(--line-1);
  transition: transform var(--dur-panel) var(--ease-calm), box-shadow var(--dur-panel) var(--ease-calm);
}
.agent:hover { transform: translateY(-3px); box-shadow: var(--shadow-3); }
.agent image-slot { aspect-ratio: 4/5; width: 100%; display: block; }
.agent .info { padding: 18px 20px 22px; }
.agent .info .name { font-family: var(--font-display); font-size: 22px; font-weight: 400; margin: 0 0 4px; letter-spacing: -0.01em; }
.agent .info .role { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--remax-red); font-weight: 600; margin-bottom: 14px; }
.agent .info .langs { font-size: 12px; color: var(--fg-2); margin-bottom: 12px; font-family: var(--font-mono); letter-spacing: 0.04em; }
.agent .info .row { display: flex; gap: 8px; font-size: 12px; color: var(--fg-1); align-items: center; }

/* Team teaser variant on homepage */
.team-teaser { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.team-teaser .agent { box-shadow: none; }
.team-teaser .agent image-slot { aspect-ratio: 4/5; }
.team-teaser .agent .info { padding: 14px 14px 16px; }
.team-teaser .agent .info .name { font-size: 18px; margin-bottom: 2px; }
.team-teaser .agent .info .role { font-size: 10px; margin-bottom: 0; }

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.tests { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.test {
  background: var(--bg-2); border-radius: 14px;
  padding: 36px 36px; border: 1px solid var(--line-1);
}
.test .stars { color: var(--calm-clay); font-size: 16px; letter-spacing: 5px; margin-bottom: 18px; }
.test .q {
  font-family: var(--font-display); font-style: italic; font-weight: 400;
  font-size: 22px; line-height: 1.4; letter-spacing: -0.01em;
  color: var(--fg-1); margin: 0 0 22px; text-wrap: pretty;
}
.test .who { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.test .who .av {
  width: 40px; height: 40px; border-radius: 999px;
  background: linear-gradient(135deg, #b8704f, #6b4530);
  flex: 0 0 auto;
}
.test .who b { color: var(--fg-1); font-weight: 600; }
.test .who span { color: var(--fg-2); }

/* ============================================================
   PROCESS / STEPS
   ============================================================ */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.step {
  background: var(--bg-2); border: 1px solid var(--line-1);
  padding: 36px 32px; position: relative;
  display: flex; flex-direction: column; min-height: 240px;
}
.step:first-child { border-radius: 14px 0 0 14px; }
.step:last-child { border-radius: 0 14px 14px 0; }
.step .num {
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  color: var(--remax-red); letter-spacing: 0.14em;
  margin-bottom: 24px;
}
.step h3 {
  font-family: var(--font-display); font-size: 24px; font-weight: 400;
  letter-spacing: -0.01em; margin: 0 0 12px;
}
.step p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line-1); }
.faq-item { border-bottom: 1px solid var(--line-1); }
.faq-item .q {
  padding: 24px 0; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.01em;
  color: var(--fg-1);
  transition: color var(--dur-micro) var(--ease-calm);
}
.faq-item .q:hover { color: var(--remax-red); }
.faq-item .q .toggle {
  width: 32px; height: 32px; border-radius: 999px;
  border: 1px solid var(--line-2); flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--dur-micro) var(--ease-calm);
}
.faq-item.open .q .toggle { background: var(--fg-1); border-color: var(--fg-1); color: var(--calm-cream); }
.faq-item .a {
  max-height: 0; overflow: hidden;
  font-size: 15px; line-height: 1.65; color: var(--fg-2);
  transition: max-height var(--dur-panel) var(--ease-calm), padding var(--dur-panel) var(--ease-calm);
}
.faq-item.open .a { max-height: 400px; padding: 0 0 24px; }

/* ============================================================
   CTA BAND (WhatsApp / Newsletter)
   ============================================================ */
.cta-band {
  background: var(--calm-stone-2); color: var(--calm-cream);
  border-radius: 18px; padding: 56px 56px;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.cta-band h3 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.75rem, 1rem + 2vw, 2.5rem);
  line-height: 1.1; letter-spacing: -0.025em; margin: 0 0 16px; text-wrap: balance;
}
.cta-band h3 em { font-style: normal; font-weight: 400; color: #ffffff; }
.cta-band p { font-size: 16px; line-height: 1.55; opacity: 0.85; margin: 0; }
.cta-band .form { display: flex; gap: 8px; }
.cta-band .form input {
  flex: 1; padding: 14px 16px; border-radius: 10px;
  background: rgba(244,237,228,0.08);
  border: 1px solid rgba(244,237,228,0.2);
  color: var(--calm-cream); outline: none;
  font-size: 14px;
}
.cta-band .form input::placeholder { color: rgba(244,237,228,0.5); }
.cta-band .form input:focus { border-color: var(--calm-cream); }

/* ============================================================
   BLOG TEASERS
   ============================================================ */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.post {
  display: flex; flex-direction: column;
  cursor: pointer;
}
.post .img { aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; margin-bottom: 18px; }
.post .img image-slot { width: 100%; height: 100%; display: block; transition: transform 600ms var(--ease-calm); }
.post:hover .img image-slot { transform: scale(1.03); }
.post .cat { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--remax-red); margin-bottom: 10px; }
.post h3 { font-family: var(--font-display); font-size: 22px; font-weight: 400; letter-spacing: -0.015em; line-height: 1.2; margin: 0 0 10px; text-wrap: balance; }
.post p { font-size: 14px; color: var(--fg-2); line-height: 1.55; margin: 0 0 12px; }
.post .meta { font-size: 12px; color: var(--fg-3); margin-top: auto; padding-top: 8px; }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 80px; align-items: start; }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.contact-form .full { grid-column: 1 / -1; }
.contact-form label { display: flex; flex-direction: column; gap: 8px; }
.contact-form label .l { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; color: var(--fg-2); }
.contact-form .field {
  padding: 14px 16px; border-radius: 10px;
  background: var(--bg-2); border: 1px solid var(--line-2);
  color: var(--fg-1); font-family: var(--font-body); font-size: 14px; outline: none;
  transition: all var(--dur-micro) var(--ease-calm);
}
.contact-form .field:focus { border-color: var(--remax-navy); box-shadow: 0 0 0 3px rgba(0,61,165,0.12); }
.contact-form textarea.field { min-height: 130px; resize: vertical; line-height: 1.5; }
.contact-info { background: var(--calm-sand); padding: 36px 36px; border-radius: 14px; }
.contact-info h4 { font-family: var(--font-display); font-size: 26px; font-weight: 400; margin: 0 0 22px; letter-spacing: -0.01em; }
.contact-info ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; font-size: 14px; }
.contact-info ul li { display: flex; gap: 14px; align-items: flex-start; line-height: 1.45; }
.contact-info ul li svg { flex: 0 0 auto; margin-top: 2px; }
.contact-info .hours { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--calm-sand-2); font-size: 13px; color: var(--fg-2); line-height: 1.6; }
.contact-info .hours b { color: var(--fg-1); display: block; font-weight: 600; margin-bottom: 6px; font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--calm-stone-2); color: var(--calm-cream); padding: 72px 40px 32px; margin-top: auto; }
.footer .top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 80px; padding-bottom: 56px; }
.footer .brand .logo { display: flex; align-items: center; gap: 10px; }
.footer .brand .logo .box { background: var(--calm-cream); color: var(--calm-stone-2); font-weight: 800; font-size: 14px; letter-spacing: 1.6px; padding: 6px 9px; border-radius: 3px; }
.footer .brand .logo .calm { font-family: var(--font-display); font-style: italic; font-size: 26px; color: var(--calm-cream); line-height: 1; }
.footer .brand p { font-size: 14px; color: rgba(247,245,238,0.55); margin: 18px 0 0; line-height: 1.6; max-width: 380px; }
.footer .brand .addr { margin-top: 18px; font-size: 13px; line-height: 1.6; color: var(--calm-cream); opacity: 0.85; }
.foot-wa { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: #4ade80; text-decoration: none; transition: opacity var(--dur-micro) var(--ease-calm); }
.foot-wa:hover { opacity: 0.75; }
.foot-wa svg { color: #4ade80; }
.foot-wa-channel { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding: 12px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 10px; text-decoration: none; transition: background var(--dur-micro) var(--ease-calm), border-color var(--dur-micro) var(--ease-calm); max-width: 320px; }
.foot-wa-channel:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.2); }
.foot-wa-channel img { width: 64px; height: 64px; border-radius: 6px; object-fit: cover; flex-shrink: 0; background: #fff; }
.foot-wa-channel-txt { display: flex; flex-direction: column; gap: 4px; }
.foot-wa-channel-title { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: #4ade80; }
.foot-wa-channel-title svg { color: #4ade80; }
.foot-wa-channel-sub { font-size: 11px; color: rgba(247,245,238,0.55); line-height: 1.4; }
.footer .cols { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px; }
.footer .col .col-h { font-size: 11px; text-transform: uppercase; letter-spacing: 0.14em; color: rgba(247,245,238,0.55); margin: 0 0 18px; font-weight: 700; }
.footer .col a { display: block; font-size: 14px; color: var(--calm-cream); margin-bottom: 10px; line-height: 1.45; cursor: pointer; transition: color var(--dur-micro) var(--ease-calm); }
.footer .col a:hover { color: var(--remax-red-200); }
.footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid rgba(244,237,228,0.12);
  padding-top: 26px; font-size: 12px; color: rgba(247,245,238,0.5);
  flex-wrap: wrap; gap: 18px;
}
.footer .bottom .legal-links { display: flex; gap: 22px; }
.footer .bottom .legal-links a { color: rgba(247,245,238,0.5); cursor: pointer; }
.footer .bottom .legal-links a:hover { color: var(--calm-cream); }
.footer .socials { display: flex; gap: 8px; }
.footer .socials span,
.footer .socials a {
  width: 34px; height: 34px; border-radius: 999px;
  border: 1px solid rgba(244,237,228,0.22);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--calm-cream);
  transition: background var(--dur-micro) var(--ease-calm), border-color var(--dur-micro) var(--ease-calm);
}
.footer .socials span:hover,
.footer .socials a:hover { background: rgba(244,237,228,0.08); border-color: var(--calm-cream); }
.footer .socials svg { width: 14px; height: 14px; }

/* ============================================================
   PAGE HERO (subpages)
   ============================================================ */
.page-hero {
  position: relative; padding: 96px 40px 64px;
  background: var(--bg-1);
}
.page-hero h1 {
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(2.5rem, 1.4rem + 3.4vw, 4.5rem);
  line-height: 1.0; letter-spacing: -0.028em;
  margin: 0 0 24px; max-width: 900px; text-wrap: balance;
}
.page-hero h1 em { font-style: normal; color: var(--accent); font-weight: 400; }
.page-hero p {
  font-size: 19px; line-height: 1.55; color: var(--fg-2);
  max-width: 640px; margin: 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1180px) {
  .footer .cols { grid-template-columns: 1fr 1fr; gap: 36px 28px; }
  .value-strip { grid-template-columns: repeat(2, 1fr); }
  .value-strip .vs:nth-child(2) { border-right: 0; }
  .areas { grid-auto-rows: 180px; }
}
@media (max-width: 980px) {
  .nav { padding: 14px 24px; gap: 16px; }
  .nav .links { display: none; }
  .nav .right > .lang { display: none; }       /* el selector de idioma vive en el menú móvil */
  .nav .right > .phone-cta { display: none; }   /* llamada disponible dentro del menú */
  .nav-burger { display: inline-flex; }
  .section { padding: 72px 24px; }
  .section.tight { padding: 48px 24px; }
  .categories, .props, .team-grid, .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .team-teaser { grid-template-columns: repeat(3, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .twoup, .contact-grid, .arch, .footer .top, .cta-band { grid-template-columns: 1fr; gap: 40px; }
  .arch .body { padding: 40px 28px; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar .field { border-right: 0; border-bottom: 1px solid rgba(58,52,46,0.06); }
  .steps { grid-template-columns: 1fr 1fr; }
  .step { border-radius: 0 !important; }
  .areas { grid-template-columns: repeat(6, 1fr); }
  .area.sz-lg, .area.sz-md, .area.sz-sm, .area.sz-tall { grid-column: span 6; grid-row: span 1; }
  .hero[data-variant="editorial"] { grid-template-columns: 1fr; }
  .hero[data-variant="editorial"] .content { padding: 72px 28px; }
  .hero[data-variant="editorial"] .photo { min-height: 360px; }
  .hero[data-variant="mosaic"] .mosaic-wrap { grid-template-columns: 1fr; max-height: none; }
  .hero[data-variant="mosaic"] .side { flex-direction: row; }
  .hero[data-variant="classic"] { height: auto; min-height: 0; padding-top: 0; }
  .hero[data-variant="classic"] .content { padding: 280px 24px 64px; }
  .hero[data-variant="classic"] .photo { position: absolute; }
  .hero[data-variant="classic"] { min-height: 640px; }
  .cta-band { padding: 36px 28px; }
  .arch image-slot { min-height: 320px; }
}
@media (max-width: 640px) {
  .categories, .props, .team-grid, .blog-grid, .tests, .team-teaser { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .value-strip { grid-template-columns: 1fr; padding: 32px 24px; }
  .value-strip .vs { border-right: 0; border-bottom: 1px solid var(--line-1); }
  .value-strip .vs:last-child { border-bottom: 0; }
}

/* ImageSlot renderiza un <img> real dentro del custom element <image-slot> */
image-slot{position:relative;overflow:hidden;background:var(--bg-3)}
image-slot>img{width:100%;height:100%;object-fit:cover;display:block}
/* Estilos para los componentes nuevos (listado/ficha) que no están en el prototipo. */

/* ============================================================
   ACCESIBILIDAD GLOBAL (skill UX/UI)
   ============================================================ */
/* Foco visible y consistente para teclado, con el tono de marca (no afecta al ratón). */
:focus-visible {
  outline: 2px solid var(--remax-red);
  outline-offset: 2px;
  border-radius: 4px;
}
/* Quita el foco solo cuando NO es navegación por teclado (clic con ratón). */
:focus:not(:focus-visible) { outline: none; }

/* Scroll suave para anclas (se desactiva con reduced-motion más abajo). */
html { scroll-behavior: smooth; }

/* Respeta la preferencia de menos movimiento del sistema. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

.muted { color: var(--fg-2); }

/* Corazón de guardar en la ficha (React) — fuera del recorte de la galería */
.gallery-wrap { position: relative; }
.ficha-like {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 44px; height: 44px; border-radius: 999px; border: 0;
  background: rgba(244,237,228,0.95); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  transition: transform .15s var(--ease-calm);
}
.ficha-like:hover { transform: scale(1.06); }
.ficha-like.on svg { fill: var(--remax-red); }

/* Banda de servicios ("Cómo te ayudamos") */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 860px) { .services { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .services { grid-template-columns: 1fr; } }
.service { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 14px; padding: 24px 22px; }
.service .ico { width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft, #CCD0DB); display: flex; align-items: center; justify-content: center; margin-bottom: 14px; }
.service h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin: 0 0 6px; }
.service p { font-size: 14px; line-height: 1.6; color: var(--fg-2); margin: 0; }

/* Newsletter (footer) */
.foot-news { border-top: 1px solid rgba(244,237,228,0.14); margin-top: 8px; padding-top: 28px; padding-bottom: 28px; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
/* Crédito discreto del estudio */
.footer .roaiib { margin-top: 12px; font-size: 11px; line-height: 1.5; color: rgba(247,245,238,0.45); max-width: 46ch; }
.foot-credit { text-align: left; padding: 10px 0 4px; font-size: 12px; color: rgba(247,245,238,0.45); }
.foot-credit a { color: inherit; }
.foot-credit a:hover { color: var(--calm-cream); }
.foot-news .fn-txt .fn-h { margin: 0 0 4px; font-size: 14px; font-weight: 700; }
.foot-news .fn-txt p { margin: 0; font-size: 13px; opacity: .7; }
.foot-news form { display: flex; gap: 8px; flex: 1; min-width: 260px; max-width: 460px; }
.foot-news input { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid rgba(244,237,228,0.25); border-radius: 8px; background: rgba(255,255,255,0.06); color: var(--calm-cream); font-family: var(--font-body); font-size: 14px; }
.foot-news input::placeholder { color: rgba(244,237,228,0.5); }
.foot-news button { padding: 11px 18px; border: 0; border-radius: 8px; background: var(--remax-red); color: #fff; font-weight: 600; font-family: var(--font-body); cursor: pointer; white-space: nowrap; }
.foot-news .fn-ok { font-size: 14px; color: var(--calm-sand); }

/* ============================================================
   Carrusel de imágenes en las tarjetas del listado (lazy)
   ============================================================ */
.prop .photo .pcar { position: absolute; inset: 0; }
.pcar-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .35s var(--ease-calm); pointer-events: none; }
.pcar-slide.on { opacity: 1; pointer-events: auto; }
.pcar-slide image-slot { width: 100%; height: 100%; display: block; }
.pcar-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 50%; border: 0;
  background: rgba(255,255,255,.85); color: var(--fg-1);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; cursor: pointer; z-index: 3;
  opacity: 0; transition: opacity .2s var(--ease-calm), background .2s var(--ease-calm);
}
.prop:hover .pcar-nav, .pcar-nav:focus-visible { opacity: 1; }
.pcar-nav.prev { left: 10px; } .pcar-nav.next { right: 10px; }
.pcar-nav:hover { background: #fff; }
.pcar-dots { position: absolute; bottom: 10px; left: 0; right: 0; display: flex; justify-content: center; gap: 5px; z-index: 3; pointer-events: none; }
.pcar-dots span { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.55); transition: width .2s, background .2s; }
.pcar-dots span.on { background: #fff; width: 16px; border-radius: 3px; }
@media (hover: none) { .pcar-nav { opacity: 1; background: rgba(255,255,255,.7); } }

/* ============================================================
   PASADA 2 — Microinteracciones y pulido (skill UX/UI)
   ============================================================ */
/* Feedback de pulsación consistente en controles. */
.btn:active { transform: scale(0.98); }
.pagination button:not(:disabled):active,
.sort-select:active,
.searchbar .submit .btn:active,
.nav-burger:active,
.nav .lang button:active,
.op-toggle button:active,
.seo-pag a:active, .op-tab:active, .msf > summary:active {
  transform: scale(0.96);
}
.pagination button, .sort-select {
  transition: background var(--dur-micro) var(--ease-calm), color var(--dur-micro) var(--ease-calm),
              transform var(--dur-micro) var(--ease-calm), border-color var(--dur-micro) var(--ease-calm);
}

/* Fade-in de imágenes (solo SPA: <image-slot class="fade">; las páginas PHP no la llevan). */
image-slot.fade > img { opacity: 0; transition: opacity 0.5s var(--ease-calm); }
image-slot.fade > img.is-loaded { opacity: 1; }

/* Botón flotante "volver arriba". */
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: var(--z-nav);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--line-1); background: var(--bg-2); color: var(--fg-1);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  box-shadow: var(--shadow-2);
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity .25s var(--ease-calm), transform .25s var(--ease-calm), background .2s var(--ease-calm), color .2s var(--ease-calm);
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--remax-red); color: #fff; border-color: var(--remax-red); }

/* Estado vacío del listado. */
.empty-state { text-align: center; padding: 64px 20px; }
.empty-state h3 { font-family: var(--font-display); font-size: 1.6rem; margin: 0 0 8px; }
.empty-state p { color: var(--fg-2); margin: 0 0 22px; }

/* Back-to-top a la esquina inferior izquierda (deja libre la derecha para WhatsApp). */
.to-top { right: auto; left: 22px; }

/* ============================================================
   WhatsApp click-to-chat (FAB + tarjeta de chat)
   ============================================================ */
.wa { position: fixed; right: 22px; bottom: 22px; z-index: 90; }
.wa-fab {
  position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; cursor: pointer;
  background: #25D366; color: #fff; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 22px -6px rgba(37,211,102,.6), var(--shadow-3);
  transition: transform .2s var(--ease-calm), background .2s var(--ease-calm);
}
.wa-fab:hover { background: #1ebe5b; transform: translateY(-2px); }
.wa-fab:active { transform: scale(.95); }
.wa-fab.open { background: var(--calm-stone); }
.wa-fab-x { font-size: 30px; line-height: 1; }
.wa-fab::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: waPulse 2.4s infinite;
}
.wa-fab.open::after { display: none; }
@keyframes waPulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.45); } 70% { box-shadow: 0 0 0 16px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

.wa-card {
  position: absolute; right: 0; bottom: 72px; width: 320px; max-width: calc(100vw - 32px);
  background: var(--bg-2); border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-3); border: 1px solid var(--line-1);
  animation: waOpen .22s var(--ease-calm);
}
@keyframes waOpen { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.wa-card-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: #075E54; color: #fff; }
.wa-avatar { width: 40px; height: 40px; border-radius: 50%; background: #128C7E; display: flex; align-items: center; justify-content: center; overflow: hidden; flex: 0 0 auto; }
.wa-avatar img { width: 30px; height: auto; }
.wa-head-text { display: flex; flex-direction: column; line-height: 1.25; flex: 1; min-width: 0; }
.wa-head-text strong { font-size: 15px; }
.wa-online { font-size: 11px; opacity: .9; display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wa-online i { width: 7px; height: 7px; border-radius: 50%; background: #34d399; flex: 0 0 auto; }
.wa-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.wa-close:hover { opacity: 1; }
.wa-body { padding: 16px; background: #ECE5DD; }
.wa-bubble { background: #fff; border-radius: 0 12px 12px 12px; padding: 12px 14px; margin: 0 0 14px; font-size: 14px; line-height: 1.5; color: #1f2a24; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.wa-form { display: flex; flex-direction: column; gap: 10px; }
.wa-input { padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-family: var(--font-body); font-size: 14px; background: #fff; color: #1f2a24; }
.wa-send { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 999px; background: #25D366; color: #fff; font-weight: 600; font-family: var(--font-body); font-size: 14px; cursor: pointer; transition: background .2s var(--ease-calm), transform .12s; }
.wa-send:hover { background: #1ebe5b; }
.wa-send:active { transform: scale(.98); }
@media (max-width: 480px) { .wa-card { width: calc(100vw - 32px); } }

.sort-select { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); font-family: var(--font-body); cursor: pointer; }

/* Skeletons de carga del listado (evitan pantalla en blanco y saltos de layout) */
.prop-skel { pointer-events: none; }
.prop-skel:hover { transform: none; box-shadow: var(--shadow-1, none); }
.skel-box, .skel-line { position: relative; overflow: hidden; background: var(--bg-3, #e6d8c3); border-radius: 6px; }
.prop-skel .photo.skel-box { aspect-ratio: 4/3; border-radius: 0; }
.skel-box::after, .skel-line::after {
  content: ''; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.45), transparent);
  animation: skelShimmer 1.3s infinite;
}
@keyframes skelShimmer { 100% { transform: translateX(100%); } }
.prop-skel .body { padding: 20px 22px 22px; }
.skel-line { height: 12px; margin-bottom: 10px; }
.skel-sm { width: 45%; height: 10px; }
.skel-lg { width: 85%; height: 18px; margin: 6px 0 12px; }
.skel-md { width: 60%; }
.skel-price { width: 40%; height: 24px; margin-top: 10px; }

/* Paginación */
.pagination { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 40px; }
.pagination button { padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--white); cursor: pointer; font-family: var(--font-body); }
.pagination button.active { background: var(--remax-red); color: #fff; border-color: var(--remax-red); }

.filter-count { background: var(--remax-red); color: #fff; border-radius: 999px; padding: 0 7px; margin-left: 6px; font-size: 12px; }

/* Ficha */
.ficha-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 16px 0 24px; }
.ficha-price { font-family: var(--font-display); font-size: 2rem; color: var(--remax-red); white-space: nowrap; }

.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-radius: 16px; overflow: hidden; margin-bottom: 32px; }
.gallery-item { aspect-ratio: 4/3; }
.gallery-item.main { grid-column: span 2; grid-row: span 2; }
@media (max-width: 768px) { .gallery { grid-template-columns: repeat(2, 1fr); } }

.ficha-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 48px; }
@media (max-width: 900px) { .ficha-grid { grid-template-columns: 1fr; } }
.ficha-specs { list-style: none; padding: 0 0 24px; margin: 0 0 24px; border-bottom: 1px solid var(--line-1); display: flex; flex-wrap: wrap; gap: 24px; }
.ficha-specs li { display: inline-flex; align-items: center; gap: 6px; }
.ficha-features { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ficha-features li { display: flex; align-items: center; gap: 8px; }

.ficha-box { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 24px; position: sticky; top: 90px; box-shadow: var(--shadow-2); }
.ficha-box-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--remax-red); margin-bottom: 12px; }
.ficha-box .btn { width: 100%; margin-top: 12px; }

.energy-badge { display: inline-block; min-width: 1.6em; text-align: center; color: #fff; font-weight: 700; border-radius: 4px; padding: 0 .4em; background: var(--calm-olive); }

/* Paginación con ventana */
.pagination .ellipsis { padding: 8px 6px; color: var(--fg-2); }
.pagination .nav { font-size: 18px; line-height: 1; }
.pagination button:disabled { opacity: .4; cursor: default; }

/* Pasos de proceso (editorial) */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 32px; }
@media (max-width: 800px) { .steps { grid-template-columns: repeat(2, 1fr); } }
.step { background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; padding: 24px; }
.step-n { width: 34px; height: 34px; border-radius: 999px; background: var(--remax-red); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 12px; }
.step h4 { margin: 0 0 6px; }
.step p { margin: 0; color: var(--fg-2); font-size: var(--fs-body-s); }

/* Contacto */
.contact-details { margin: 16px 0 24px; }
.contact-details p { display: flex; align-items: center; gap: 8px; margin: 6px 0; }
.contact-form { display: flex; flex-direction: column; gap: 10px; max-width: 460px; }
.contact-form input, .contact-form textarea { padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 8px; font-family: var(--font-body); }
.contact-form .btn { align-self: flex-start; }
.lead-ok { background: var(--calm-cream-2, #f4eee3); border: 1px solid var(--line-1); border-radius: 10px; padding: 14px 16px; color: var(--calm-olive, #5a6b3b); font-weight: 500; margin: 12px 0 0; }
.lead-error { color: var(--danger); font-size: 13px; margin: 4px 0 0; }
.lead-error a { color: var(--danger); text-decoration: underline; }
/* Formulario dentro de la barra lateral de la ficha */
.ficha-lead { margin-top: 12px; }
.ficha-box .contact-form { max-width: none; gap: 8px; }
.ficha-box .contact-form .btn { align-self: stretch; width: 100%; }
.ficha-box .lead-ok { margin-top: 0; }
/* Cabecera del bloque de lead (CRO): título real + frase de confianza, siempre visible */
.ficha-lead-head { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line-1); }
.ficha-lead-head h3 { font-family: var(--font-display); font-size: 1.2rem; margin: 0 0 4px; }
.ficha-lead-head p { font-size: 13px; line-height: 1.5; color: var(--fg-2); margin: 0 0 12px; }
.ficha-lead-alt { display: flex; gap: 8px; margin-top: 10px; }
.ficha-lead-alt .btn { flex: 1; width: auto; justify-content: center; padding: 11px 8px; font-size: 13px; }
.wa-btn { background: #25D366; color: #fff; border: 0; }
.wa-btn:hover { background: #1ebe5b; color: #fff; }

/* Logo real (imagen) en nav y footer */
.logo img { display: block; height: 40px; width: auto; }
.footer .logo img { height: 40px; }

/* Galería como botones + lightbox */
.gallery-item { border: 0; padding: 0; background: var(--bg-3); cursor: pointer; position: relative; }
.gallery-count { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.6); color: #fff; padding: 4px 10px; border-radius: 999px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }

.lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.92); display: flex; align-items: center; justify-content: center; animation: lb-in 180ms ease; }
@keyframes lb-in { from { opacity: 0; } to { opacity: 1; } }
.lb-img { max-width: 92vw; max-height: 72vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-close { position: absolute; top: 14px; right: 22px; font-size: 36px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; z-index: 2; }
.lb-nav { position: absolute; top: calc(50% - 50px); transform: translateY(-50%); font-size: 52px; line-height: 1; color: #fff; background: none; border: 0; cursor: pointer; padding: 0 22px; opacity: .85; z-index: 2; }
.lb-nav:hover { opacity: 1; }
.lb-prev { left: 6px; } .lb-next { right: 6px; }
.lb-count { position: absolute; top: 18px; left: 24px; color: #fff; background: rgba(0,0,0,.5); padding: 5px 14px; border-radius: 999px; font-size: 14px; }

/* Tira de miniaturas */
.lb-thumbs { position: absolute; bottom: 0; left: 0; right: 0; display: flex; gap: 8px; padding: 14px 16px; overflow-x: auto; justify-content: flex-start; background: linear-gradient(transparent, rgba(0,0,0,.45)); }
.lb-thumbs::-webkit-scrollbar { height: 6px; }
.lb-thumbs::-webkit-scrollbar-thumb { background: rgba(255,255,255,.3); border-radius: 999px; }
.lb-thumb { flex: 0 0 auto; width: 90px; height: 64px; border: 2px solid transparent; border-radius: 6px; overflow: hidden; padding: 0; background: none; cursor: pointer; opacity: .55; transition: opacity 150ms, border-color 150ms; }
.lb-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lb-thumb:hover { opacity: .85; }
.lb-thumb.active { opacity: 1; border-color: #fff; }
@media (max-width: 600px) { .lb-nav { font-size: 38px; padding: 0 10px; } .lb-thumb { width: 64px; height: 46px; } }

/* Batería de enlaces (toggle) en /properties */
.explore { margin: 40px 0; border: 1px solid var(--line-1); border-radius: 12px; background: var(--bg-2); }
.explore > summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
.explore > summary::-webkit-details-marker { display: none; }
.explore > summary::after { content: "  ▾"; color: var(--fg-2); }
.explore[open] > summary::after { content: "  ▴"; }
.explore-links { padding: 0 20px 20px; display: flex; flex-wrap: wrap; gap: 8px 18px; }
/* <h3> con apariencia de texto normal */
.inline-link { display: inline; margin: 0; font-family: var(--font-body); font-size: var(--fs-body-s); font-weight: 400; line-height: 1.4; }
.inline-link a:hover, a.inline-link:hover { color: var(--accent); text-decoration: underline; }

/* Toggle Buy/Rent (operación única) en el buscador */
.op-toggle { display: inline-flex; background: var(--bg-3); border-radius: 999px; padding: 3px; gap: 2px; flex: 0 0 auto; align-self: center; justify-self: start; width: -moz-fit-content; width: fit-content; margin-left: 8px; }
.op-toggle button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; cursor: pointer; font-family: var(--font-body); font-weight: 600; font-size: var(--fs-body-s); line-height: 1.2; color: var(--fg-2); white-space: nowrap; outline: none; -webkit-tap-highlight-color: transparent; }
.op-toggle button:focus-visible { box-shadow: 0 0 0 2px var(--bg-2), 0 0 0 4px var(--accent); }
.op-toggle button.on { background: var(--accent); color: #fff; }

/* Valores fundamentales */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 40px; }
@media (max-width: 1000px) { .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }
.value-ic { display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent-soft); margin-bottom: 14px; }
.value h4 { margin: 0 0 8px; }
.value p { color: var(--fg-2); font-size: var(--fs-body-s); margin: 0; line-height: 1.55; }

/* Editorial enriquecido (Sell/Buy) */
.checks-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 32px; margin-top: 8px; }
@media (max-width: 700px) { .checks-grid { grid-template-columns: 1fr; } }
.block-narrow { max-width: var(--container-narrow); }

.faq { max-width: var(--container-content); margin-top: 16px; }
.faq-item { border-bottom: 1px solid var(--line-1); }
.faq-item > summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: var(--fs-body-l); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item > summary::after { content: "+"; color: var(--accent); font-size: 1.4em; line-height: 1; }
.faq-item[open] > summary::after { content: "–"; }
.faq-item > p { margin: 0 0 18px; color: var(--fg-2); max-width: 70ch; }

.ed-cta { display: grid; grid-template-columns: 1.4fr 1fr; gap: var(--space-8); align-items: center; background: var(--bg-inverse); color: var(--fg-inverse); border-radius: var(--radius-4); padding: var(--space-12); }
@media (max-width: 768px) { .ed-cta { grid-template-columns: 1fr; } }
.ed-cta .section-title { color: var(--fg-inverse); }
.ed-cta .section-title em { color: var(--accent-soft); }
.ed-cta p { color: var(--calm-mist-2); }
.ed-cta-eyebrow { color: var(--calm-sand) !important; }
.ed-cta-act { text-align: left; }
.ed-cta-note { color: var(--calm-mist-2); }

/* Ubicación jerárquica en el buscador (población + zonas) */
.ms-opt-head .ms-opt-l { font-weight: 700; }
.ms-opt-sub { padding-left: 40px; }
.ms-opt-sub .ms-opt-l { margin-left: 6px; color: var(--fg-2); font-weight: 400; font-size: 0.92em; }
.ms-opt-sub.on .ms-opt-l { font-weight: 400; }

/* ============================================================
   SERVICES & COLLABORATE PAGES
   ============================================================ */
.svc-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-top: 48px; }
.svc-card { display: flex; gap: 18px; align-items: flex-start; padding: 24px; background: var(--bg-2); border: 1px solid var(--line-1); border-radius: 12px; }
.svc-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--calm-sand); border-radius: 8px; flex-shrink: 0; }
.svc-body { flex: 1; }
.svc-title { font-size: var(--fs-body-l); font-weight: 700; margin: 0 0 6px; }
.svc-desc { font-size: var(--fs-body-s); color: var(--fg-2); margin: 0; line-height: 1.6; }
@media (max-width: 700px) { .svc-grid { grid-template-columns: 1fr; } }

/* Hazte Agente — check list */
.check-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.check-list li { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-body-s); line-height: 1.5; }
.check-list li svg { flex-shrink: 0; margin-top: 2px; }

/* Hazte Agente — CV upload field */
.cv-field { margin-top: 4px; }
.cv-label { display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 12px 16px; border: 1.5px dashed var(--line-2); border-radius: 8px; font-size: var(--fs-body-s); color: var(--fg-2); transition: border-color var(--dur-micro) var(--ease-calm); }
.cv-label:hover { border-color: var(--calm-clay); color: var(--fg-1); }
