/* =========================================================================
   NATALY JOSE by RS HOMES · hoja única para index, propiedad y contacto
   Orden: tokens → base → utilidades → componentes → páginas → responsive
   Enfoque mobile-first: la base es móvil, los @media suben desde ahí.
   ========================================================================= */

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Paleta oficial de marca */
  --navy:      #132340;
  --navy-800:  #1B3055;
  --navy-600:  #2C4470;
  --navy-300:  #6E7C96;
  --terra:     #E2703A;
  --terra-700: #C4551F;
  --terra-100: #FBE7DB;
  --cream:     #F7F1E8;
  --cream-50:  #FCF9F4;

  /* Neutros derivados */
  --ink:    #101A2C;
  --body:   #3E4A5E;
  --muted:  #6B7688;
  --line:   rgba(19, 35, 64, .13);
  --line-2: rgba(19, 35, 64, .07);
  --white:  #fff;

  /* Tipografía: solo fuentes del sistema, cero peso de red */
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-quote: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;

  /* Escalas fluidas */
  --t-hero:  clamp(2.1rem, 1.35rem + 3.5vw, 3.9rem);
  --t-h1:    clamp(1.8rem, 1.25rem + 2.4vw, 2.9rem);
  --t-h2:    clamp(1.45rem, 1.1rem + 1.5vw, 2.1rem);
  --t-h3:    clamp(1.05rem, .98rem + .4vw, 1.25rem);
  --t-body:  clamp(.95rem, .92rem + .15vw, 1.02rem);

  /* Radios y sombras */
  --r-xs: 6px;
  --r-sm: 10px;
  --r:    14px;
  --r-lg: 22px;
  --sh-1: 0 1px 2px rgba(19,35,64,.06), 0 2px 8px rgba(19,35,64,.05);
  --sh-2: 0 2px 6px rgba(19,35,64,.07), 0 12px 28px rgba(19,35,64,.09);
  --sh-3: 0 10px 24px rgba(19,35,64,.12), 0 30px 60px rgba(19,35,64,.14);

  /* Layout */
  --shell:    1260px;
  --pad:      18px;
  --header-h: 62px;
  --ease: cubic-bezier(.22, .68, .3, 1);
}

@media (min-width: 900px) {
  :root { --pad: 32px; --header-h: 78px; }
}

/* ---------- 2. BASE ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* deja aire bajo el header pegajoso al saltar a un ancla */
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--t-body);
  line-height: 1.6;
  color: var(--body);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.is-locked { overflow: hidden; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

/* El atributo hidden lo pone la UA con muy baja prioridad: cualquier regla de
   autor con display (.btn, .empty-state, .mobile-bar…) lo anularía. */
[hidden] { display: none !important; }

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.018em;
  text-wrap: balance;
}
h1 { font-size: var(--t-h1); }
h2 { font-size: var(--t-h2); }
h3 { font-size: var(--t-h3); letter-spacing: -.01em; }
p  { margin: 0; }

a { color: var(--navy); text-decoration-color: rgba(19,35,64,.28); text-underline-offset: 3px; }
a:hover { color: var(--terra-700); text-decoration-color: currentColor; }

ul, ol { margin: 0; padding: 0; list-style: none; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

/* Foco visible y consistente en todo el sitio */
:focus-visible {
  outline: 3px solid var(--terra);
  outline-offset: 2px;
  border-radius: var(--r-xs);
}
::selection { background: var(--terra); color: #fff; }

/* ---------- 3. UTILIDADES ------------------------------------------------ */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--pad);
}

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

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--navy); color: #fff; font-weight: 600; text-decoration: none;
  transition: top .18s var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.eyebrow {
  margin-bottom: 10px;
  font-size: .72rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-700);
}
.eyebrow-light { color: var(--terra); }

.linkish {
  padding: 0; border: 0; background: none;
  color: var(--navy); font-weight: 600;
  text-decoration: underline; text-decoration-color: rgba(19,35,64,.3);
  text-underline-offset: 3px;
}
.linkish:hover { color: var(--terra-700); text-decoration-color: currentColor; }

.fineprint { font-size: .8rem; line-height: 1.5; color: var(--muted); }
.prose { font-size: 1.02rem; line-height: 1.75; color: var(--body); }

.section-head {
  display: grid; gap: 8px;
  margin-bottom: 26px;
}
.section-head h2 { max-width: 22ch; }
.section-note { font-size: .88rem; color: var(--muted); }

/* ---------- 4. BOTONES --------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 11px 20px;
  border: 1px solid transparent; border-radius: 999px;
  font-size: .92rem; font-weight: 620; letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color .18s var(--ease), color .18s var(--ease),
              border-color .18s var(--ease), transform .18s var(--ease),
              box-shadow .18s var(--ease);
}
.btn svg { width: 18px; height: 18px; fill: currentColor; flex: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--terra); color: #fff; box-shadow: 0 2px 10px rgba(226,112,58,.28); }
.btn-primary:hover { background: var(--terra-700); color: #fff; box-shadow: 0 6px 18px rgba(226,112,58,.34); }

.btn-outline { border-color: rgba(255,255,255,.55); color: #fff; background: transparent; }
.btn-outline:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }

/* variante clara sobre fondo blanco */
.detail-aside .btn-outline,
.block-cta .btn-outline,
.form-success .btn-outline {
  border-color: var(--line); color: var(--navy); background: var(--white);
}
.detail-aside .btn-outline:hover,
.block-cta .btn-outline:hover,
.form-success .btn-outline:hover { background: var(--cream); border-color: var(--navy-300); color: var(--navy); }

.btn-quiet { background: var(--white); border-color: var(--line); color: var(--navy); }
.btn-quiet:hover { background: var(--cream); border-color: var(--navy-300); color: var(--navy); }

.btn-ghost { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.2); color: #fff; }

.btn-sm { min-height: 38px; padding: 8px 15px; font-size: .84rem; }
.btn-lg { min-height: 52px; padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }

/* ---------- 5. CAMPOS DE FORMULARIO -------------------------------------- */
.field { position: relative; display: grid; gap: 6px; margin: 0; }
.field > label {
  font-size: .8rem; font-weight: 650; letter-spacing: .01em; color: var(--navy);
}
.field > label em { color: var(--terra-700); font-style: normal; }

.field input[type="text"], .field input[type="email"], .field input[type="tel"],
.field input[type="search"], .field input[type="number"], .field select, .field textarea,
.search-field select {
  width: 100%; min-height: 46px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease);
}
.field textarea { min-height: 130px; resize: vertical; line-height: 1.6; }

.field select, .search-field select {
  appearance: none;
  padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236B7688'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 20px;
}

.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--navy-300); }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(19,35,64,.12);
}
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: 3px solid var(--terra); outline-offset: 1px;
}

.field-hint { font-size: .78rem; color: var(--muted); }
.field-error {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600; color: var(--terra-700);
}
.field-error::before { content: "!"; display: grid; place-items: center;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--terra-700); color: #fff; font-size: .68rem; flex: none; }

.field.has-error input, .field.has-error select, .field.has-error textarea {
  border-color: var(--terra-700);
  background: #FFF8F4;
}
.field.has-error input:focus, .field.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(196,85,31,.16);
}

.field-search { position: relative; }
.field-search .field-icon {
  position: absolute; left: 13px; top: 50%; translate: 0 -50%;
  width: 18px; height: 18px; fill: var(--muted); pointer-events: none;
}
/* misma especificidad que .field input[type="search"], si no gana el padding base */
.field-search input[type="search"] { padding-left: 40px; }

.field-affix { position: relative; display: block; }
.field-affix input { padding-right: 46px; }
.field-affix i {
  position: absolute; right: 12px; top: 50%; translate: 0 -50%;
  font-style: normal; font-size: .8rem; font-weight: 600; color: var(--muted);
}

.checkbox { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; line-height: 1.5; }
.checkbox input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--terra); flex: none; }
.checkbox span em { color: var(--terra-700); font-style: normal; }

/* ---------- 6. HEADER ---------------------------------------------------- */
/* Ojo: NO poner backdrop-filter aquí en móvil. El panel .site-nav es
   position:fixed y vive dentro del header; un backdrop-filter (igual que
   transform o filter) convierte al header en su bloque contenedor y recorta
   el panel a la altura del header. El desenfoque se activa solo en ≥1000px,
   donde el menú ya es estático. */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--white);
  border-bottom: 1px solid var(--line-2);
  transition: box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.site-header.is-stuck { box-shadow: var(--sh-1); border-color: var(--line); }

/* Con el panel abierto el header sube por encima del velo: así el botón (ya
   convertido en X) sigue visible y clicable sobre el panel. */
body.is-locked .site-header { z-index: 90; }

.header-inner {
  display: flex; align-items: center; gap: 14px;
  min-height: var(--header-h);
}

/* Lockup de marca: Nataly Jose manda (nombre en tipografía, arriba y mayor);
   RS Homes acompaña como afiliación con su logotipo oficial, sin alterar. */
.brand {
  flex: none; display: flex; align-items: center; gap: 10px;
  line-height: 1; text-decoration: none;
}
/* Marca de Nataly a la izquierda del lockup. El alto iguala al del bloque de
   texto (nombre + línea "by RS homes") para que quede a ras arriba y abajo. */
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-text { display: grid; gap: 3px; }
.brand-name {
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: -.022em; color: var(--ink);
}
.brand:hover .brand-name { color: var(--navy); }
.brand-by { display: flex; align-items: center; gap: 6px; }
.brand-by > span {
  font-size: .58rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.brand-by img { width: 68px; height: auto; }

/* el botón se mantiene por encima del panel deslizante (z-index 80) para que
   la X siga visible mientras el menú está abierto; el logo queda debajo */
.header-actions { position: relative; z-index: 85; }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-phone { display: none; }
.header-actions .btn-primary { display: none; }

.nav-toggle {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white);
  transition: background-color .18s var(--ease), border-color .18s var(--ease);
}
.nav-toggle:hover { background: var(--cream); border-color: var(--navy-300); }
.nav-toggle-bars { display: grid; gap: 4px; width: 18px; }
.nav-toggle-bars i {
  display: block; height: 2px; border-radius: 2px; background: var(--navy);
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Menú móvil: panel lateral */
.site-nav {
  position: fixed; inset: 0 0 0 auto; z-index: 80;
  display: flex; flex-direction: column; justify-content: space-between;
  width: min(320px, 84vw); padding: calc(var(--header-h) + 22px) 22px 26px;
  background: var(--navy); color: #fff;
  translate: 100% 0;
  visibility: hidden;
  transition: translate .3s var(--ease), visibility .3s var(--ease);
}
.site-nav.is-open { translate: 0 0; visibility: visible; }
.site-nav ul { display: grid; gap: 4px; }
.site-nav a {
  display: block; padding: 13px 14px; border-radius: var(--r-sm);
  color: rgba(255,255,255,.86); font-size: 1.05rem; font-weight: 600; text-decoration: none;
  transition: background-color .16s var(--ease), color .16s var(--ease);
}
.site-nav a:hover { background: rgba(255,255,255,.1); color: #fff; }
.site-nav a[aria-current="page"] {
  background: rgba(226,112,58,.14); color: #fff;
  box-shadow: inset 3px 0 0 var(--terra);
}
.site-nav-foot { margin-top: 20px; }

.nav-scrim {
  position: fixed; inset: 0; z-index: 70;
  background: rgba(16,26,44,.5);
  opacity: 0; transition: opacity .3s var(--ease);
}
.nav-scrim.is-open { opacity: 1; }

/* ---------- 7. HERO + BUSCADOR ------------------------------------------- */
.hero { position: relative; isolation: isolate; padding: 46px 0 30px; color: #fff; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(19,35,64,.92) 0%, rgba(19,35,64,.78) 45%, rgba(19,35,64,.94) 100%),
    linear-gradient(100deg, rgba(19,35,64,.6), rgba(226,112,58,.18));
}

.hero-title { font-size: var(--t-hero); color: #fff; letter-spacing: -.03em; }
.hero-title br { display: none; }
.hero-lead {
  max-width: 54ch; margin-top: 16px;
  font-size: 1.02rem; line-height: 1.65; color: rgba(255,255,255,.82);
}

/* Buscador */
.searchbar {
  margin-top: 26px;
  background: var(--cream-50);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-3);
  overflow: hidden;
}
.search-tabs {
  display: flex; gap: 4px; padding: 8px 8px 0;
  border-bottom: 1px solid var(--line-2);
}
.search-tab {
  flex: 1; min-height: 42px; padding: 10px 12px;
  border: 0; border-bottom: 3px solid transparent; border-radius: var(--r-xs) var(--r-xs) 0 0;
  background: none; color: var(--muted);
  font-size: .88rem; font-weight: 650;
  transition: color .16s var(--ease), border-color .16s var(--ease), background-color .16s var(--ease);
}
.search-tab:hover { color: var(--navy); background: rgba(19,35,64,.04); }
.search-tab.is-active { color: var(--navy); border-bottom-color: var(--terra); }

.search-fields { display: grid; gap: 12px; padding: 16px; }
.search-field { display: grid; gap: 6px; margin: 0; }
.search-field label {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
}
.search-submit { min-height: 50px; margin-top: 2px; }

.search-hint {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 12px 16px;
  background: rgba(19,35,64,.04);
  border-top: 1px solid var(--line-2);
  font-size: .84rem; color: var(--body);
}
.search-hint #heroCount { font-weight: 700; color: var(--navy); }

/* ---------- 8. FRANJA DE CONFIANZA --------------------------------------- */
.assurance { background: var(--navy); color: #fff; }
.assurance-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 14px;
  padding-block: 26px;
}
.assurance-grid p { display: grid; gap: 2px; }
.assurance-grid strong {
  font-size: 1.7rem; font-weight: 680; letter-spacing: -.03em; color: var(--terra);
  font-variant-numeric: tabular-nums;
}
.assurance-grid span { font-size: .82rem; line-height: 1.4; color: rgba(255,255,255,.7); }

/* ---------- 9. EXPLORAR: FILTROS ----------------------------------------- */
.explore { padding: 44px 0 56px; }

/* En móvil la barra ocupa demasiado alto para quedarse fija: solo se vuelve
   pegajosa en escritorio (ver @media 1000px). */
.filterbar {
  display: grid; gap: 12px;
  margin-bottom: 18px; padding: 14px;
  background: var(--cream-50);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: var(--sh-1);
}
.filterbar-row { display: grid; gap: 10px; }
.filterbar-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chips-label { font-size: .78rem; font-weight: 650; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  min-height: 36px; padding: 7px 14px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--body);
  font-size: .83rem; font-weight: 600; white-space: nowrap;
  transition: background-color .16s var(--ease), color .16s var(--ease),
              border-color .16s var(--ease);
}
.chip:hover { border-color: var(--navy-300); background: var(--cream); color: var(--navy); }
.chip.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip.is-active:hover { background: var(--navy-800); color: #fff; }

.filter-reset { margin-left: auto; }

.results-head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 16px;
}
.results-count { font-size: .9rem; font-weight: 650; color: var(--navy); }

.explore-layout { display: grid; gap: 26px; }

/* ---------- 10. TARJETAS DE PROPIEDAD ------------------------------------ */
.cards { display: grid; gap: 20px; }

.card {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s var(--ease);
}
.card:hover, .card.is-highlight {
  transform: translateY(-3px);
  border-color: var(--line);
  box-shadow: var(--sh-2);
}
.card.is-highlight { outline: 2px solid var(--terra); outline-offset: -2px; }

.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--cream); overflow: hidden; }
.card-media img {
  width: 100%; height: 100%; object-fit: cover;
  transition: scale .5s var(--ease);
}
.card:hover .card-media img { scale: 1.045; }

.card-count {
  position: absolute; left: 10px; bottom: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 9px; border-radius: 999px;
  background: rgba(16,26,44,.72); color: #fff;
  font-size: .72rem; font-weight: 600;
  backdrop-filter: blur(4px);
}
.card-count svg { width: 13px; height: 13px; fill: currentColor; }

.card-tags { position: absolute; left: 10px; top: 10px; display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  padding: 4px 9px; border-radius: 999px;
  font-size: .69rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
}
.tag-terra { background: var(--terra); color: #fff; }
.tag-navy  { background: var(--navy); color: #fff; }
.tag-cream { background: var(--cream); color: var(--navy); }

.card-fav {
  position: absolute; right: 10px; top: 10px; z-index: 3;
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.9); backdrop-filter: blur(4px);
  transition: background-color .16s var(--ease), scale .16s var(--ease);
}
.card-fav svg { width: 19px; height: 19px; fill: none; stroke: var(--navy); stroke-width: 1.9; }
.card-fav:hover { background: #fff; scale: 1.08; }
.card-fav[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }

.card-body { display: flex; flex-direction: column; gap: 8px; padding: 15px 16px 17px; }

.card-price {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px;
  font-size: 1.3rem; font-weight: 690; letter-spacing: -.025em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.card-price-alt { font-size: .8rem; font-weight: 600; color: var(--terra-700); letter-spacing: 0; }
.card-price-m2 { font-size: .76rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.card-title { font-size: 1rem; line-height: 1.35; }
.card-title a { color: var(--ink); text-decoration: none; }
/* enlace extendido: toda la tarjeta es clicable, pero solo hay 1 enlace en el árbol */
.card-title a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.card:hover .card-title a { color: var(--navy); }

.card-place { display: flex; align-items: center; gap: 5px; font-size: .85rem; color: var(--muted); }
.card-place svg { width: 14px; height: 14px; fill: var(--terra); flex: none; }

.card-specs {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding-top: 11px; margin-top: 2px;
  border-top: 1px solid var(--line-2);
  font-size: .84rem; color: var(--body);
}
.card-specs li { display: flex; align-items: center; gap: 5px; }
.card-specs svg { width: 15px; height: 15px; fill: var(--navy-300); flex: none; }
.card-specs b { font-weight: 650; color: var(--ink); }

.card-foot { font-size: .78rem; color: var(--muted); }

/* Estado vacío */
.empty-state {
  display: grid; justify-items: center; gap: 10px;
  padding: 48px 22px; text-align: center;
  background: var(--cream-50);
  border: 1px dashed var(--line);
  border-radius: var(--r);
}
.empty-state svg { width: 34px; height: 34px; fill: var(--navy-300); }
.empty-state p { max-width: 46ch; color: var(--muted); }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 8px; }

.noscript-note {
  padding: 18px; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--cream); color: var(--navy);
}

/* ---------- 11. MAPA ESQUEMÁTICO ----------------------------------------- */
.map-panel {
  background: var(--cream-50);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  padding: 16px;
}
.map-panel-head { margin-bottom: 12px; }
.map-panel-head h3 { margin-bottom: 4px; }
.map-panel-head p { font-size: .82rem; color: var(--muted); }

.map { display: grid; gap: 10px; }
.map-canvas {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  background: #E9EEF3;
  overflow: hidden;
}
.map-bg { position: absolute; inset: 0; width: 100%; height: 100%; }

.map-pin {
  position: absolute; z-index: 2;
  translate: -50% -50%;
  padding: 5px 10px;
  border: 1.5px solid var(--white); border-radius: 999px;
  background: var(--navy); color: #fff;
  font-size: .72rem; font-weight: 700; white-space: nowrap;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 8px rgba(16,26,44,.35);
  transition: background-color .16s var(--ease), scale .16s var(--ease), z-index 0s;
}
.map-pin::after {
  content: ""; position: absolute; left: 50%; bottom: -5px;
  width: 8px; height: 8px; translate: -50% 0; rotate: 45deg;
  background: inherit; border-right: 1.5px solid var(--white); border-bottom: 1.5px solid var(--white);
}
.map-pin:hover, .map-pin.is-active { background: var(--terra); scale: 1.12; z-index: 4; }
.map-pin.is-visited { background: var(--navy-600); }

.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .74rem; color: var(--muted); }
.map-legend span { display: flex; align-items: center; gap: 5px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--navy); }
.map-legend i.terra { background: var(--terra); }

/* ---------- 12. BENEFICIOS / PROCESO / CITA / CTA ------------------------ */
.benefits { padding: 48px 0 54px; background: var(--cream-50); border-block: 1px solid var(--line-2); }
.benefit-grid { display: grid; gap: 16px; }
.benefit {
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  transition: transform .2s var(--ease), box-shadow .2s var(--ease);
}
.benefit:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.benefit-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; margin-bottom: 14px;
  border-radius: 12px; background: var(--terra-100);
}
.benefit-icon svg { width: 23px; height: 23px; fill: var(--terra-700); }
.benefit h3 { margin-bottom: 7px; }
.benefit p { font-size: .9rem; color: var(--muted); }

.process { padding: 50px 0 56px; background: var(--navy); color: #fff; }
.process h2 { color: #fff; }
.steps { display: grid; gap: 22px; counter-reset: step; }
.steps li {
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.16);
}
.step-n {
  display: block; margin-bottom: 8px;
  font-size: .82rem; font-weight: 700; letter-spacing: .14em; color: var(--terra);
}
.steps h3 { margin-bottom: 6px; color: #fff; }
.steps p { font-size: .92rem; color: rgba(255,255,255,.72); max-width: 42ch; }

.quote { padding: 48px 0; background: var(--cream); }
.quote-inner { display: grid; gap: 18px; justify-items: start; }
.quote-avatar { width: 64px; height: auto; border-radius: 14px; box-shadow: var(--sh-1); }
.quote blockquote { margin: 0; }
.quote blockquote p {
  font-family: var(--font-quote);
  font-size: clamp(1.25rem, 1rem + 1.4vw, 1.8rem);
  line-height: 1.4; letter-spacing: -.012em; color: var(--navy);
  text-wrap: balance;
}
.quote footer { display: grid; gap: 1px; margin-top: 16px; }
.quote footer strong { font-size: .95rem; color: var(--ink); }
.quote footer span { font-size: .82rem; color: var(--muted); }

.cta-band { padding: 46px 0 52px; background: var(--navy); color: #fff; }
.cta-inner { display: grid; gap: 22px; }
.cta-inner h2 { color: #fff; margin-bottom: 8px; }
.cta-inner p { color: rgba(255,255,255,.75); max-width: 46ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- 13. FOOTER --------------------------------------------------- */
.site-footer { background: var(--cream); color: var(--body); }
.footer-grid { display: grid; gap: 30px; padding-block: 44px 34px; }
/* El logotipo completo de Nataly incluye el rótulo "ASESORA INMOBILIARIA":
   necesita ~170px de ancho para que ese texto se lea. */
.footer-logo { width: 172px; height: auto; border-radius: 14px; }
.footer-brand > p { margin-top: 14px; max-width: 40ch; font-size: .88rem; color: var(--muted); }

.footer-affiliation {
  display: flex; align-items: center; gap: 11px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid var(--line);
}
.footer-affiliation > span {
  font-size: .66rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.footer-affiliation img { width: 104px; height: auto; }

.footer-col h2 {
  margin-bottom: 12px;
  font-size: .74rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--navy);
}
.footer-col ul { display: grid; gap: 9px; font-size: .88rem; }
.footer-col a { color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--terra-700); text-decoration: underline; text-underline-offset: 3px; }
.footer-contact li { color: var(--muted); line-height: 1.5; }

.footer-legal { background: var(--navy); color: rgba(255,255,255,.6); }
.footer-legal-inner {
  display: grid; gap: 6px; padding-block: 18px;
  font-size: .76rem; line-height: 1.5;
}

/* =========================================================================
   PÁGINA: DETALLE DE PROPIEDAD
   ========================================================================= */
.breadcrumb { padding-block: 14px; border-bottom: 1px solid var(--line-2); }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; font-size: .8rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--navy-300); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--terra-700); text-decoration: underline; text-underline-offset: 3px; }
.breadcrumb [aria-current="page"] { color: var(--ink); font-weight: 600; }

.notice {
  display: grid; justify-items: start; gap: 12px;
  margin-block: 60px; padding: 34px;
  background: var(--cream-50); border: 1px solid var(--line); border-radius: var(--r);
}

/* Galería */
.gallery { padding-top: 16px; }
.gallery-grid { display: grid; gap: 8px; }
.gallery-main {
  position: relative; display: block; width: 100%; padding: 0;
  aspect-ratio: 4 / 3;
  border: 0; border-radius: var(--r); overflow: hidden;
  background: var(--cream);
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-main-hint {
  position: absolute; right: 10px; bottom: 10px;
  padding: 6px 12px; border-radius: 999px;
  background: rgba(16,26,44,.72); color: #fff;
  font-size: .76rem; font-weight: 600;
  backdrop-filter: blur(4px);
  opacity: 0; transition: opacity .18s var(--ease);
}
.gallery-main:hover .gallery-main-hint,
.gallery-main:focus-visible .gallery-main-hint { opacity: 1; }

.gallery-side { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-thumb {
  position: relative; padding: 0;
  aspect-ratio: 1 / 1;
  border: 0; border-radius: var(--r-sm); overflow: hidden;
  background: var(--cream);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: opacity .2s var(--ease); }
.gallery-thumb:hover img { opacity: .82; }
.gallery-thumb-more {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(16,26,44,.62); color: #fff;
  font-size: .84rem; font-weight: 700;
}

.gallery-bar {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 12px;
}
.fav-toggle[aria-pressed="true"] { background: var(--terra-100); border-color: var(--terra); color: var(--terra-700); }
.fav-toggle svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav-toggle[aria-pressed="true"] svg { fill: var(--terra); stroke: var(--terra); }

/* Cuerpo del detalle */
.detail-layout { display: grid; gap: 34px; padding-block: 30px 44px; }
.detail-head { padding-bottom: 18px; border-bottom: 1px solid var(--line-2); }
.detail-head h1 { max-width: 20ch; }
.detail-address {
  display: flex; align-items: center; gap: 6px;
  margin-top: 10px; font-size: .95rem; color: var(--muted);
}
.detail-address svg { width: 17px; height: 17px; fill: var(--terra); flex: none; }

.badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }

.detail-price-inline {
  margin-top: 16px;
  font-size: 1.9rem; font-weight: 690; letter-spacing: -.03em; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.detail-price-inline small { display: block; font-size: .82rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.specs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px;
  margin-block: 24px;
  background: var(--line-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
}
.specs li {
  display: flex; align-items: center; gap: 11px;
  padding: 15px 14px; background: var(--white);
}
.specs svg { width: 22px; height: 22px; fill: var(--navy-300); flex: none; }
.specs b { display: block; font-size: 1.02rem; font-weight: 680; color: var(--ink); line-height: 1.2; }
.specs span { font-size: .76rem; color: var(--muted); }

.block { padding-block: 24px; border-top: 1px solid var(--line-2); }
.block h2 { margin-bottom: 12px; font-size: 1.22rem; }
.block-note { margin-bottom: 14px; font-size: .86rem; color: var(--muted); }

.tick-list { display: grid; gap: 9px; }
.tick-list li {
  position: relative; padding-left: 26px;
  font-size: .93rem; color: var(--body);
}
.tick-list li::before {
  content: ""; position: absolute; left: 0; top: .42em;
  width: 15px; height: 15px; border-radius: 50%;
  background: var(--terra-100)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23C4551F'%3E%3Cpath d='m9.6 16.2-3.8-3.8-1.4 1.4 5.2 5.2L20 8.6 18.6 7.2z'/%3E%3C/svg%3E")
    center / 11px no-repeat;
}

.datasheet {
  display: grid; grid-template-columns: 1fr auto; gap: 0;
  margin: 0; font-size: .9rem;
}
.datasheet dt, .datasheet dd {
  margin: 0; padding: 11px 0;
  border-bottom: 1px solid var(--line-2);
}
.datasheet dt { color: var(--muted); }
.datasheet dd { text-align: right; font-weight: 620; color: var(--ink); }

.map-detail { margin-top: 4px; }
.map-address { margin-top: 10px; font-size: .88rem; color: var(--muted); }

.block-cta {
  margin-top: 8px; padding: 24px 20px;
  background: var(--cream-50); border: 1px solid var(--line-2); border-radius: var(--r);
}
.block-cta p { margin-top: 6px; font-size: .92rem; color: var(--muted); }
.block-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Columna lateral */
.sticky-card { display: grid; gap: 16px; }

.price-card {
  display: grid; gap: 10px;
  padding: 22px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--sh-2);
}
.price-label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.price-big {
  font-size: 2rem; font-weight: 700; letter-spacing: -.035em; color: var(--ink);
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.price-sub { margin-bottom: 6px; font-size: .84rem; color: var(--muted); }
.price-fine { margin-top: 2px; font-size: .76rem; color: var(--muted); text-align: center; }

.agent-card {
  display: flex; align-items: center; gap: 13px;
  padding: 15px; background: var(--cream-50);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.agent-card img { width: 52px; height: auto; border-radius: 11px; flex: none; }
.agent-name { font-weight: 680; color: var(--ink); }
.agent-role { font-size: .8rem; color: var(--muted); margin-bottom: 3px; }
.info-logo { width: 150px; height: auto; margin-bottom: 14px; border-radius: 12px; }
.info-affiliation {
  display: flex; align-items: center; gap: 11px;
  margin-top: 20px; padding-top: 16px;
  border-top: 1px solid var(--line);
}
.info-affiliation > span {
  font-size: .64rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
}
.info-affiliation img { width: 98px; height: auto; }

.calc {
  padding: 18px; background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.calc h2 { margin-bottom: 13px; font-size: 1.02rem; }
.calc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.calc-grid .field > label { font-size: .72rem; }
.calc-grid input { padding-inline: 10px; font-size: .92rem; }
.calc-out {
  display: block; margin-top: 14px; padding: 14px;
  background: var(--cream); border-radius: var(--r-sm);
  text-align: center;
}
.calc-out b {
  display: block;
  font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.calc-out span { font-size: .78rem; color: var(--muted); }
.calc .fineprint { margin-top: 10px; }

.similar { padding: 44px 0 56px; background: var(--cream-50); border-top: 1px solid var(--line-2); }

/* Barra fija móvil */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px var(--pad) calc(11px + env(safe-area-inset-bottom));
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
  box-shadow: 0 -4px 20px rgba(19,35,64,.08);
}
.mobile-bar-price { font-size: 1.12rem; font-weight: 690; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; }
.mobile-bar-sub { font-size: .76rem; color: var(--muted); }
body[data-page="detalle"] .site-footer { padding-bottom: 76px; }

/* ---------- LIGHTBOX ----------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 120;
  display: grid;
  grid-template-areas: "bar bar bar" "prev stage next" "strip strip strip";
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto 1fr auto;
  background: rgba(9, 15, 26, .96);
}
.lightbox[hidden] { display: none; }
.lightbox-bar {
  grid-area: bar;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
}
.lightbox-count { color: rgba(255,255,255,.75); font-size: .84rem; font-variant-numeric: tabular-nums; }
.lightbox-close, .lightbox-nav {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  background: rgba(255,255,255,.08); color: #fff;
  transition: background-color .16s var(--ease);
}
.lightbox-close:hover, .lightbox-nav:hover { background: rgba(255,255,255,.2); }
.lightbox-close svg, .lightbox-nav svg { width: 20px; height: 20px; fill: currentColor; }
.lightbox-prev { grid-area: prev; margin-left: 8px; }
.lightbox-next { grid-area: next; margin-right: 8px; }

.lightbox-stage {
  grid-area: stage;
  display: grid; place-items: center;
  min-width: 0; min-height: 0; padding: 4px;
}
.lightbox-stage img, .lightbox-stage video {
  max-width: 100%; max-height: 100%;
  width: auto; height: auto;
  object-fit: contain; border-radius: var(--r-sm);
}
.lightbox-strip {
  grid-area: strip;
  display: flex; gap: 7px;
  padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
  overflow-x: auto;
  scrollbar-width: thin;
}
.lightbox-strip button {
  flex: none; width: 62px; height: 46px; padding: 0;
  border: 2px solid transparent; border-radius: var(--r-xs);
  background: none; overflow: hidden; opacity: .55;
  transition: opacity .16s var(--ease), border-color .16s var(--ease);
}
.lightbox-strip button img { width: 100%; height: 100%; object-fit: cover; }
.lightbox-strip button:hover { opacity: .85; }
.lightbox-strip button.is-active { opacity: 1; border-color: var(--terra); }

/* =========================================================================
   PÁGINA: CONTACTO
   ========================================================================= */
.page-hero {
  padding: 40px 0 42px;
  background:
    radial-gradient(120% 140% at 12% 0%, rgba(226,112,58,.24), transparent 55%),
    var(--navy);
  color: #fff;
}
.page-hero h1 { color: #fff; max-width: 16ch; }
.page-hero-lead { max-width: 52ch; margin-top: 14px; color: rgba(255,255,255,.78); }

.contact-layout { display: grid; gap: 32px; padding-block: 36px 20px; }
.block-title { margin-bottom: 18px; font-size: 1.3rem; }

.contact-form { display: grid; gap: 20px; }
.form-grid { display: grid; gap: 16px; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }

.form-status {
  padding: 12px 15px; border-radius: var(--r-sm);
  background: #FFF4EE; border: 1px solid var(--terra);
  color: var(--terra-700); font-size: .87rem; font-weight: 600;
}

.form-success {
  display: grid; justify-items: start; gap: 12px;
  padding: 28px 24px;
  background: var(--cream-50);
  border: 1px solid var(--line); border-radius: var(--r);
}
.form-success[hidden] { display: none; }
.form-success-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--terra-100);
}
.form-success-mark svg { width: 26px; height: 26px; fill: var(--terra-700); }
.form-success p { color: var(--body); }
.form-success-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }

.contact-aside { display: grid; gap: 18px; align-content: start; }
.info-card {
  padding: 22px 20px;
  background: var(--cream-50);
  border: 1px solid var(--line-2); border-radius: var(--r);
}
.info-card h2 { font-size: 1.12rem; }
.info-tagline { margin-top: 3px; margin-bottom: 16px; font-size: .82rem; color: var(--muted); }

.info-list { display: grid; gap: 15px; }
.info-list li { display: flex; gap: 12px; font-size: .88rem; line-height: 1.5; color: var(--body); }
.info-list strong { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.info-list a { color: var(--navy); font-weight: 600; text-decoration: none; }
.info-list a:hover { color: var(--terra-700); text-decoration: underline; text-underline-offset: 3px; }
.info-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: none;
  border-radius: 10px; background: var(--white); border: 1px solid var(--line-2);
}
.info-icon svg { width: 17px; height: 17px; fill: var(--navy); }

.map-contact { margin-bottom: 8px; }

.faq { padding: 44px 0 60px; background: var(--cream-50); border-top: 1px solid var(--line-2); }
.faq-list { display: grid; gap: 8px; max-width: 780px; }
.faq-item {
  background: var(--white);
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  overflow: hidden;
}
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 15px 17px;
  font-size: .96rem; font-weight: 620; color: var(--ink);
  cursor: pointer; list-style: none;
  transition: background-color .16s var(--ease);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; flex: none;
  width: 18px; height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23132340'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: rotate .2s var(--ease);
}
.faq-item[open] summary::after { rotate: 180deg; }
.faq-item summary:hover { background: var(--cream); }
.faq-body { padding: 0 17px 17px; font-size: .92rem; line-height: 1.65; color: var(--body); }

/* =========================================================================
   ANIMACIÓN DE ENTRADA
   ========================================================================= */
[data-reveal] {
  opacity: 0;
  translate: 0 14px;
  transition: opacity .5s var(--ease), translate .5s var(--ease);
}
[data-reveal].is-in { opacity: 1; translate: 0 0; }

/* =========================================================================
   RESPONSIVE — móvil (base) → tablet → escritorio
   ========================================================================= */

/* ---- ≥ 560px: móvil grande ---- */
@media (min-width: 560px) {
  .hero { padding: 60px 0 36px; }
  .search-fields { grid-template-columns: 1fr 1fr; }
  .search-submit { grid-column: 1 / -1; }
  .assurance-grid { grid-template-columns: repeat(4, 1fr); }
  .assurance-grid strong { font-size: 1.9rem; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field-full { grid-column: 1 / -1; }
  .gallery-side { grid-template-columns: repeat(4, 1fr); }
  .specs { grid-template-columns: repeat(4, 1fr); }
  .cta-inner { grid-template-columns: 1fr auto; align-items: center; }
}

/* ---- ≥ 768px: tablet ---- */
@media (min-width: 768px) {
  .hero { padding: 74px 0 44px; }
  .hero-title br { display: inline; }
  .search-fields { grid-template-columns: 1.3fr 1fr 1fr auto; align-items: end; }
  .search-submit { grid-column: auto; min-height: 46px; }
  /* 3 columnas: buscador + 2 selects arriba, 2 selects abajo. Con 5 columnas
     a este ancho los selects truncan su texto. */
  .filterbar-row:first-child { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filterbar .field select { font-size: .89rem; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 26px; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .footer-legal-inner { grid-template-columns: auto 1fr; justify-content: space-between; }
  .footer-legal-inner p:last-child { text-align: right; }
  .section-head { grid-template-columns: 1fr auto; align-items: end; }
  .section-note { text-align: right; }
  /* imagen grande + mosaico 2×2 de miniaturas; las 4 miniaturas deben caber en
     la misma altura que la principal o la fila del grid se duplica */
  .gallery-grid { grid-template-columns: 1.7fr 1fr; }
  .gallery-main { aspect-ratio: 16 / 10; height: 100%; }
  .gallery-side {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }
  .gallery-thumb { aspect-ratio: auto; }
  .datasheet { grid-template-columns: 1fr auto; }
  .quote-inner { grid-template-columns: auto 1fr; align-items: center; gap: 28px; }
  .quote-avatar { width: 86px; }
  .contact-layout { grid-template-columns: 1fr; }
  .form-success-actions { flex-wrap: nowrap; }
}

/* ---- ≥ 1000px: escritorio ---- */
@media (min-width: 1000px) {
  /* El menú vuelve a ser horizontal: se desactiva el panel lateral */
  .nav-toggle { display: none; }
  .nav-scrim { display: none !important; }
  .site-nav {
    position: static; width: auto; padding: 0;
    flex-direction: row; justify-content: flex-end;
    background: none; color: inherit;
    translate: 0 0; visibility: visible;
    margin-left: auto;
    /* la transición pertenece al panel móvil: al cruzar el breakpoint
       redimensionando, no debe verse el menú "entrando" */
    transition: none;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav a {
    position: relative;
    padding: 9px 14px; border-radius: var(--r-xs);
    color: var(--body); font-size: .92rem; font-weight: 600;
  }
  .site-nav a:hover { background: var(--cream); color: var(--navy); }
  .site-nav a[aria-current="page"] { background: transparent; color: var(--navy); }
  .site-nav a[aria-current="page"]::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 2px;
    height: 2px; border-radius: 2px; background: var(--terra);
  }
  .site-nav-foot { display: none; }

  /* aquí el menú ya es estático: el desenfoque no rompe nada */
  .site-header {
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(1.6) blur(10px);
  }

  .header-actions { margin-left: 18px; gap: 14px; }
  .header-actions .btn-primary { display: inline-flex; }
  .header-phone {
    display: inline-flex; align-items: center; gap: 7px;
    font-size: .88rem; font-weight: 620; color: var(--navy); text-decoration: none;
  }
  .header-phone svg { width: 16px; height: 16px; fill: var(--terra); }
  .header-phone:hover { color: var(--terra-700); }
  .brand-mark { width: 40px; height: 40px; }
  .brand-name { font-size: 1.26rem; }
  .brand-by img { width: 84px; }

  .hero { padding: 96px 0 56px; }
  .hero-inner { max-width: 1000px; }
  .searchbar { margin-top: 34px; }
  .search-fields { padding: 20px; gap: 16px; }

  .explore { padding: 60px 0 72px; }
  .filterbar {
    position: sticky; top: var(--header-h); z-index: 40;
    padding: 16px 18px;
  }

  .explore-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 26px; align-items: start; }
  .cards { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .map-panel { position: sticky; top: calc(var(--header-h) + 132px); }
  .map-canvas { aspect-ratio: 3 / 4; }
  .map-jump { display: none; }

  .benefit-grid { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; }
  .footer-brand { grid-column: auto; }

  /* Detalle */
  .detail-layout { grid-template-columns: minmax(0, 1fr) 372px; gap: 48px; padding-block: 38px 60px; }
  .sticky-card { position: sticky; top: calc(var(--header-h) + 20px); }
  /* el precio ya está en la tarjeta lateral: no hace falta repetirlo */
  .detail-price-inline { display: none; }
  .mobile-bar { display: none; }
  body[data-page="detalle"] .site-footer { padding-bottom: 0; }
  .similar .cards { grid-template-columns: repeat(3, 1fr); }

  /* Contacto */
  .contact-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-block: 46px 24px; }
  .page-hero { padding: 62px 0 66px; }

  /* Lightbox más generoso */
  .lightbox-stage { padding: 10px 20px; }
  .lightbox-strip button { width: 82px; height: 58px; }
}

/* ---- ≥ 1280px: pantallas amplias ---- */
@media (min-width: 1280px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .explore-layout { grid-template-columns: minmax(0, 1fr) 420px; gap: 30px; }
  /* aquí sí caben los 5 filtros en una fila sin truncar */
  .filterbar-row:first-child { grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); }
  .hero-lead { font-size: 1.1rem; }
}

/* =========================================================================
   PREFERENCIAS DEL SISTEMA
   ========================================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  [data-reveal] { opacity: 1; translate: 0 0; }
  .card:hover { transform: none; }
  .card:hover .card-media img { scale: 1; }
}

@media print {
  .site-header, .site-nav, .mobile-bar, .map-panel, .filterbar,
  .gallery-bar, .cta-band, .lightbox, .skip-link { display: none !important; }
  body { color: #000; }
  .detail-layout { display: block; }
}

/* =========================================================================
   14. AMPLIACIONES (servidor propio): cuenta, agenda, comparador, vender,
       sobre Nataly, guías, legales. Mismos tokens y lenguaje visual que arriba.
   ========================================================================= */

/* ---- Botón claro en contextos blancos de las páginas nuevas ---- */
.account .btn-outline, .about .btn-outline, .seller-layout .btn-outline,
.guide-aside .btn-outline, .booking .btn-outline, .compare .btn-outline,
.dash-body .btn-outline, .notice .btn-outline {
  border-color: var(--line); color: var(--navy); background: var(--white);
}
.account .btn-outline:hover, .about .btn-outline:hover, .seller-layout .btn-outline:hover,
.guide-aside .btn-outline:hover, .booking .btn-outline:hover, .compare .btn-outline:hover,
.dash-body .btn-outline:hover, .notice .btn-outline:hover { background: var(--cream); border-color: var(--navy-300); color: var(--navy); }

.btn-danger { background: #B3261E; color: #fff; }
.btn-danger:hover { background: #8C1D18; color: #fff; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.form-status.is-ok { background: #EEF7F0; border-color: #2E7D4F; color: #1F5A37; }

/* ---- Header: cuenta e idioma ---- */
.header-account {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  min-width: 44px; height: 44px; padding: 0 11px;
  border: 1px solid var(--line); border-radius: 999px;
  color: var(--navy); font-size: .86rem; font-weight: 640; text-decoration: none;
  background: var(--white);
  transition: background-color .16s var(--ease), border-color .16s var(--ease);
}
.header-account svg { width: 19px; height: 19px; fill: currentColor; flex: none; }
.header-account:hover { background: var(--cream); border-color: var(--navy-300); }
.header-account.is-logged { border-color: var(--terra); }
.header-account.is-logged svg { fill: var(--terra); }
.header-account-label { display: none; max-width: 11ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.header-lang {
  display: inline-grid; place-items: center; width: 38px; height: 38px;
  border-radius: 999px; color: var(--navy); font-size: .78rem; font-weight: 700; letter-spacing: .06em;
  text-decoration: none;
}
.header-lang:hover { background: var(--cream); }
@media (max-width: 999px) { .site-nav-foot { display: grid; gap: 10px; } }

.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.footer-social a {
  display: grid; place-items: center; width: 40px; height: 40px;
  border-radius: 999px; background: rgba(255,255,255,.08);
  transition: background-color .16s var(--ease);
}
.footer-social a:hover { background: var(--terra); }
.footer-social svg { width: 18px; height: 18px; fill: #fff; }
.footer-legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.page-hero-compact { padding: 32px 0 34px; }
.page-hero-compact h1 { max-width: 22ch; }
.page-hero .eyebrow a { color: inherit; }

/* ---- Aviso flotante ---- */
.toast {
  position: fixed; left: 50%; bottom: 22px; z-index: 200;
  max-width: min(92vw, 460px); padding: 13px 18px;
  border-radius: var(--r-sm); background: var(--navy); color: #fff;
  font-size: .9rem; font-weight: 560; box-shadow: var(--sh-3);
  translate: -50% 20px; opacity: 0; pointer-events: none;
  transition: opacity .22s var(--ease), translate .22s var(--ease);
}
.toast.is-visible { opacity: 1; translate: -50% 0; }
.toast-error { background: #8C1D18; }

/* ---- Moneda ---- */
.currency-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
}
.currency-toggle button {
  min-height: 30px; padding: 4px 12px; border: 0; border-radius: 999px;
  background: transparent; color: var(--muted); font-size: .78rem; font-weight: 700;
}
.currency-toggle button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.results-head { flex-wrap: wrap; gap: 10px; }
.price-card .currency-toggle { justify-self: start; }

/* ---- Comparar: botón en tarjetas, barra flotante ---- */
.card-compare {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  margin-top: 2px; padding: 5px 10px 5px 8px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--navy); font-size: .76rem; font-weight: 650;
  position: relative; z-index: 2;
}
.card-compare svg { width: 15px; height: 15px; fill: currentColor; }
.card-compare:hover { background: var(--cream); }
.card-compare[aria-pressed="true"], .compare-toggle[aria-pressed="true"] {
  background: var(--navy); border-color: var(--navy); color: #fff;
}
.compare-bar {
  position: fixed; left: 50%; bottom: 16px; z-index: 120;
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  max-width: calc(100vw - 24px); padding: 10px 12px 10px 18px;
  border-radius: 999px; background: var(--white); box-shadow: var(--sh-3);
  border: 1px solid var(--line); translate: -50% 0;
  font-size: .88rem; font-weight: 600; color: var(--navy);
}
.compare-bar[hidden] { display: none; }
[data-page="detalle"] .compare-bar { bottom: 86px; }

.compare { padding-block: 28px 40px; display: grid; gap: 18px; }
.compare-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .88rem; font-weight: 600; color: var(--navy); }
.compare-pick select {
  min-height: 42px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--white); font: inherit; max-width: 100%;
}
.compare-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line-2); border-radius: var(--r); }
.compare-table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: .9rem; }
.compare-table th, .compare-table td { padding: 12px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-2); }
.compare-table thead th { background: var(--cream-50); }
.compare-table tbody th { width: 150px; color: var(--muted); font-weight: 600; font-size: .82rem; }
.compare-table td ul { margin: 0; padding-left: 16px; font-size: .84rem; }
.compare-table td.is-best { background: #EEF7F0; color: #1F5A37; font-weight: 650; }
.compare-head { display: grid; gap: 8px; color: var(--navy); text-decoration: none; font-weight: 650; line-height: 1.3; }
.compare-head img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-sm); }

/* ---- Agenda de visitas ---- */
.booking { display: grid; gap: 12px; margin-top: 18px; }
.booking-step { display: flex; align-items: center; gap: 9px; margin: 6px 0 0; font-size: .86rem; font-weight: 700; color: var(--navy); }
.booking-step span {
  display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px;
  background: var(--terra); color: #fff; font-size: .76rem;
}
.booking-pick { font-style: normal; font-weight: 600; color: var(--terra-700); }
.booking-days, .booking-hours { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.booking-hours { flex-wrap: wrap; overflow: visible; }
.booking-days .chip { flex: none; text-transform: capitalize; }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.booking-form { display: grid; gap: 14px; padding-top: 6px; }
.booking-form .form-foot { display: flex; flex-wrap: wrap; gap: 10px; }
.booking-done { display: grid; justify-items: start; gap: 8px; padding: 6px 0; }
.booking-done:focus { outline: none; }

/* ---- Gastos de cierre ---- */
.closing { display: grid; gap: 14px; margin-top: 14px; }
.closing-options { display: grid; gap: 10px; }
.closing-table { display: grid; margin: 0; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.closing-table > div { display: flex; justify-content: space-between; gap: 14px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); font-size: .9rem; }
.closing-table > div:last-child { border-bottom: 0; }
.closing-table dt { color: var(--body); }
.closing-table dt small { display: block; color: var(--muted); font-size: .78rem; }
.closing-table dd { margin: 0; font-weight: 650; color: var(--navy); white-space: nowrap; }
.closing-total { background: var(--cream-50); }
.closing-total dt, .closing-total dd { font-weight: 700; color: var(--navy); }
.closing-cash { background: var(--navy); }
.closing-cash dt, .closing-cash dd { color: #fff; font-weight: 700; }

/* ---- Mi cuenta: acceso ---- */
.account { padding-block: 28px 48px; }
.notice-inline {
  margin-bottom: 18px; padding: 12px 15px; border-radius: var(--r-sm);
  background: #EEF7F0; border: 1px solid #2E7D4F; color: #1F5A37; font-size: .9rem; font-weight: 600;
}
.notice-inline:not(.is-ok) { background: #FFF4EE; border-color: var(--terra); color: var(--terra-700); }
.notice-inline.is-ok { background: #EEF7F0; border-color: #2E7D4F; color: #1F5A37; }
.auth { display: grid; gap: 28px; }
.auth-card {
  padding: 22px 20px; border: 1px solid var(--line-2); border-radius: var(--r-lg);
  background: var(--white); box-shadow: var(--sh-2); max-width: 520px; width: 100%;
}
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--cream); }
.auth-tabs[hidden] { display: none; }
.auth-tabs button {
  min-height: 42px; border: 0; border-radius: 999px; background: transparent;
  font-size: .92rem; font-weight: 650; color: var(--muted);
}
.auth-tabs button[aria-selected="true"] { background: var(--white); color: var(--navy); box-shadow: var(--sh-1); }
.auth-form { display: grid; gap: 14px; }
.auth-form h2 { font-size: var(--t-h3); color: var(--navy); }
.auth-form .linkish { justify-self: start; }
.field small { font-weight: 500; color: var(--muted); }
.auth-perks { padding: 4px 4px 0; }
.auth-perks h2 { font-size: var(--t-h3); color: var(--navy); margin-bottom: 12px; }
.auth-perks .fineprint { margin-top: 14px; }

/* ---- Mi cuenta: panel ---- */
.dashboard { display: grid; gap: 20px; }
.dash-nav {
  display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px;
  margin-inline: calc(var(--pad) * -1); padding-inline: var(--pad); scrollbar-width: none;
}
.dash-nav a, .dash-salir {
  flex: none; display: inline-flex; align-items: center; gap: 6px;
  min-height: 40px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white);
  color: var(--body); font-size: .86rem; font-weight: 620; text-decoration: none; white-space: nowrap;
}
.dash-nav a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.dash-salir { color: var(--terra-700); }
.dash-count:empty { display: none; }
.dash-count { min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--terra); color: #fff; font-size: .72rem; text-align: center; }
.dash-body { display: grid; gap: 16px; min-height: 240px; align-content: start; }
.dash-body:focus { outline: none; }
.dash-body h2 { margin-top: 8px; font-size: var(--t-h3); color: var(--navy); }
.dash-alert {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-radius: var(--r-sm); background: #FFF4EE; border: 1px solid var(--terra);
  color: var(--terra-700); font-size: .9rem; font-weight: 600;
}
.dash-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dash-stats a {
  display: grid; gap: 2px; padding: 16px; border-radius: var(--r); background: var(--cream-50);
  border: 1px solid var(--line-2); text-decoration: none; color: var(--muted); font-size: .82rem;
}
.dash-stats strong { font-size: 1.7rem; line-height: 1.1; color: var(--navy); }
.dash-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.dash-list li {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px;
  padding: 13px 15px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--white);
  font-size: .9rem;
}
.dash-list li > strong { color: var(--navy); text-transform: capitalize; }
.dash-list li > span { flex: 1 1 200px; color: var(--body); }
.pill { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; font-style: normal; background: var(--cream); color: var(--navy); }
.pill-confirmada, .pill-realizada { background: #EEF7F0; color: #1F5A37; }
.pill-pendiente { background: #FFF4EE; color: var(--terra-700); }
.pill-cancelada, .pill-no_asistio { background: #F1F1F1; color: #666; }
.progress { display: block; height: 8px; border-radius: 999px; background: var(--cream); overflow: hidden; }
.progress i { display: block; height: 100%; border-radius: inherit; background: var(--terra); }
.dash-progress { display: grid; gap: 8px; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--r); color: var(--navy); text-decoration: none; font-weight: 650; }
.dash-progress small { color: var(--muted); font-weight: 500; }
.mini-cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.mini-card a { display: flex; gap: 12px; align-items: center; padding: 8px; border: 1px solid var(--line-2); border-radius: var(--r-sm); text-decoration: none; color: var(--navy); }
.mini-card img { width: 84px; height: 64px; object-fit: cover; border-radius: var(--r-xs); flex: none; }
.mini-card span { display: grid; gap: 2px; font-size: .88rem; }
.mini-card small { color: var(--muted); }
.dash-empty { display: grid; justify-items: start; gap: 12px; padding: 24px; border: 1px dashed var(--line); border-radius: var(--r); background: var(--cream-50); }
.switch { display: inline-flex; align-items: center; gap: 6px; font-size: .82rem; font-weight: 600; color: var(--navy); }
.switch input { width: 18px; height: 18px; accent-color: var(--terra); }

.process-card { display: grid; gap: 16px; padding: 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--white); }
.process-card.is-closed { opacity: .7; }
.process-card header { display: grid; gap: 8px; }
.process-card h3 { color: var(--navy); }
.process-card header small { color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; display: grid; }
.timeline li { position: relative; display: flex; gap: 14px; padding-bottom: 16px; }
.timeline li::before { content: ""; position: absolute; left: 8px; top: 20px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline-dot { flex: none; width: 18px; height: 18px; margin-top: 2px; border-radius: 999px; border: 2px solid var(--line); background: var(--white); position: relative; z-index: 1; }
.timeline li.is-hecho .timeline-dot { background: var(--terra); border-color: var(--terra); }
.timeline li.is-hecho::before { background: var(--terra); }
.timeline li.is-en_curso .timeline-dot { border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-100); }
.timeline li.is-omitido { opacity: .5; }
.timeline strong { display: block; color: var(--navy); font-size: .93rem; }
.timeline-meta { font-size: .8rem; color: var(--muted); }
.timeline p { margin-top: 4px; font-size: .86rem; }
.doc-list { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.doc-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.doc-list li > span:nth-child(2) { flex: 1; display: grid; gap: 2px; min-width: 0; }
.doc-list strong { color: var(--navy); font-size: .9rem; overflow-wrap: anywhere; }
.doc-list small { color: var(--muted); font-size: .78rem; }
.doc-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--r-xs); background: var(--terra-100); color: var(--terra-700); font-size: .66rem; font-weight: 800; }
.dash-form { display: grid; gap: 14px; justify-items: start; padding: 18px; border: 1px solid var(--line-2); border-radius: var(--r); }
.dash-form .form-grid { width: 100%; }
.danger-zone { padding: 14px 18px; border: 1px solid #E8C6C3; border-radius: var(--r); }
.danger-zone summary { cursor: pointer; font-weight: 650; color: #8C1D18; }
.danger-zone p { margin: 10px 0; font-size: .88rem; }
.danger-zone .dash-form { border: 0; padding: 0; }

/* ---- Vender ---- */
.seller-steps { padding: 34px 0 38px; background: var(--navy); color: #fff; }
.seller-steps .steps { margin: 0; padding: 0; list-style: none; }
.seller-layout { display: grid; gap: 34px; padding-block: 34px 48px; }
.valuation {
  align-self: start; display: grid; gap: 12px; padding: 22px 20px;
  border-radius: var(--r-lg); background: var(--cream-50); border: 1px solid var(--line-2);
}
.valuation-form { display: grid; gap: 12px; }
.valuation-out { display: grid; gap: 10px; justify-items: start; padding-top: 6px; }
.valuation-range { display: grid; gap: 2px; margin: 0; }
.valuation-range span { font-size: .8rem; font-weight: 650; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.valuation-range strong { font-size: 1.5rem; color: var(--navy); line-height: 1.2; }
.dropzone {
  display: grid; place-items: center; min-height: 96px; padding: 16px;
  border: 2px dashed var(--line); border-radius: var(--r); background: var(--cream-50);
  color: var(--muted); font-size: .88rem; font-weight: 600; text-align: center; cursor: pointer;
  transition: border-color .16s var(--ease), background-color .16s var(--ease);
}
.dropzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.dropzone:hover, .dropzone.is-over { border-color: var(--terra); background: var(--terra-100); color: var(--terra-700); }
.dropzone:focus-within { outline: 2px solid var(--terra); outline-offset: 2px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
.thumbs li { position: relative; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-xs); }
.thumbs button {
  position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border: 0; border-radius: 999px;
  background: rgba(16,26,44,.8); color: #fff; font-size: 1rem; line-height: 1;
}

/* ---- Sobre Nataly ---- */
.about { display: grid; gap: 30px; padding-block: 36px 44px; }
.about-media { margin: 0; }
.about-photo { width: 100%; max-width: 440px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--sh-2); }
.about-photo-logo { display: grid; place-items: center; aspect-ratio: 4 / 5; max-width: 440px; border-radius: var(--r-lg); background: var(--cream); }
.about-photo-logo img { width: 62%; }
.about-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* Texto largo con formato (Markdown del panel) */
.prose-rich { font-size: 1.02rem; line-height: 1.75; color: var(--body); }
.prose-rich > * + * { margin-top: 14px; }
.prose-rich h2 { margin-top: 30px; font-size: var(--t-h2); color: var(--navy); line-height: 1.2; }
.prose-rich h3 { margin-top: 24px; font-size: var(--t-h3); color: var(--navy); }
.prose-rich h4 { margin-top: 18px; font-size: 1rem; color: var(--navy); }
.prose-rich .tabla-wrap { overflow-x: auto; border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.prose-rich table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.prose-rich th, .prose-rich td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.prose-rich th { background: var(--cream-50); color: var(--navy); font-weight: 650; }
.prose-rich tbody tr:last-child td { border-bottom: 0; }
.prose-rich ul, .prose-rich ol { padding-left: 22px; }
.prose-rich li + li { margin-top: 6px; }
.prose-rich strong { color: var(--ink); }
.prose-rich a { color: var(--terra-700); text-underline-offset: 2px; }
.prose-rich blockquote { margin-inline: 0; padding: 14px 18px; border-left: 3px solid var(--terra); background: var(--cream-50); border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---- Testimonios ---- */
.testimonials-band { padding: 46px 0 50px; background: var(--cream-50); }
.testimonials { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.testimonial { display: grid; gap: 10px; align-content: start; padding: 22px 20px; border-radius: var(--r); background: var(--white); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.testimonial blockquote { margin: 0; font-family: var(--font-quote); font-size: 1.04rem; line-height: 1.6; color: var(--ink); }
.testimonial-stars { margin: 0; color: var(--terra); letter-spacing: .12em; }
.testimonial-stars span { color: var(--line); }
.testimonial-who { display: grid; margin: 0; font-size: .88rem; }
.testimonial-who strong { color: var(--navy); }
.testimonial-who span { color: var(--muted); }
.testimonials-band .section-note { margin-top: 18px; }

/* ---- Guías ---- */
.guides { padding-block: 30px 44px; display: grid; gap: 20px; }
.guide-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.guide-card a {
  display: grid; gap: 8px; height: 100%; padding: 22px 20px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--white); color: inherit; text-decoration: none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), translate .18s var(--ease);
}
.guide-card a:hover { box-shadow: var(--sh-2); border-color: var(--line); translate: 0 -2px; }
.guide-card h2 { font-size: var(--t-h3); color: var(--navy); }
.guide-card p { font-size: .92rem; color: var(--muted); }
.guide { display: grid; gap: 30px; padding-block: 32px 48px; }
.guide-body { max-width: 72ch; }
.guide-body > .fineprint { margin-top: 30px; }
.guide-aside { display: grid; gap: 18px; align-content: start; }
.guide-aside .info-card { display: grid; gap: 10px; }
.guide-aside h2 { font-size: var(--t-h3); color: var(--navy); }
.guide-more ul { margin: 8px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.guide-more a { color: var(--navy); font-weight: 600; text-underline-offset: 2px; }

.legal { max-width: 78ch; padding-block: 32px 52px; }
.notice-404 { margin-block: 70px; }

/* ---- Responsive de las ampliaciones ---- */
@media (min-width: 560px) {
  .header-account-label { display: inline; }
  .dash-stats { grid-template-columns: repeat(4, 1fr); }
  .mini-cards { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) {
  .auth { grid-template-columns: minmax(0, 520px) 1fr; align-items: start; }
  .auth-perks { padding-top: 28px; }
  .testimonials { grid-template-columns: repeat(2, 1fr); }
  .guide-list { grid-template-columns: repeat(2, 1fr); }
  .about { grid-template-columns: minmax(0, 400px) 1fr; align-items: start; gap: 44px; }
  .about-media { position: sticky; top: calc(var(--header-h) + 20px); }
}

@media (min-width: 1000px) {
  /* Seis enlaces + idioma + cuenta + llamada: hasta 1439 px el teléfono y el
     nombre de la cuenta quedan solo como ícono (el número sigue en el pie). */
  .site-nav a { padding: 9px 10px; white-space: nowrap; }
  .header-actions { margin-left: 12px; gap: 8px; flex: none; }
  .header-phone { white-space: nowrap; }
  .header-phone span, .header-account-label { display: none; }
  .header-phone svg { width: 19px; height: 19px; }
  .dashboard { grid-template-columns: 220px minmax(0, 1fr); align-items: start; gap: 30px; }
  .dash-nav {
    position: sticky; top: calc(var(--header-h) + 20px);
    flex-direction: column; overflow: visible; margin: 0; padding: 0;
  }
  .dash-nav a, .dash-salir { justify-content: space-between; border-radius: var(--r-sm); }
  .seller-layout { grid-template-columns: 360px minmax(0, 1fr); align-items: start; gap: 40px; }
  .valuation { position: sticky; top: calc(var(--header-h) + 20px); }
  .guide { grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; }
  .guide-aside { position: sticky; top: calc(var(--header-h) + 20px); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .guide-list { grid-template-columns: repeat(3, 1fr); }
  [data-page="detalle"] .compare-bar { bottom: 18px; }
}

@media (min-width: 1280px) {
  .site-nav a { padding: 9px 12px; }
}
@media (min-width: 1440px) {
  .header-phone span, .header-account-label { display: inline; }
}

@media print {
  .compare-bar, .toast, .header-account, .header-lang, .booking, .dash-nav { display: none !important; }
}

/* ======================= 15. ASISTENTE DE CHAT ========================= */
.chat-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 110;
  display: inline-flex; align-items: center; gap: 9px;
  min-height: 52px; padding: 0 20px 0 15px;
  border: 0; border-radius: 999px; cursor: pointer;
  background: var(--navy); color: #fff;
  font: 650 .92rem/1 var(--font);
  box-shadow: var(--sh-3);
  transition: background .2s, transform .2s;
}
.chat-fab:hover { background: var(--navy-800); transform: translateY(-1px); }
.chat-fab:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.chat-fab svg { width: 22px; height: 22px; fill: var(--terra); flex: none; }
.chat-fab[hidden] { display: none; }

.chat-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 130;
  display: flex; flex-direction: column;
  width: min(390px, calc(100vw - 36px)); height: min(600px, calc(100dvh - 36px));
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-3); overflow: hidden;
}
.chat-panel[hidden] { display: none; }
.chat-head {
  display: flex; align-items: center; gap: 11px;
  padding: 13px 12px 13px 16px; background: var(--navy); color: #fff;
}
.chat-avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--terra); color: #fff; font-weight: 700; font-size: 1.05rem;
}
.chat-who { display: grid; gap: 2px; flex: 1; min-width: 0; }
.chat-who strong { font-size: .98rem; }
.chat-who span { font-size: .76rem; color: rgba(255,255,255,.75); }
.chat-close {
  width: 38px; height: 38px; border: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: #fff; font-size: 1.6rem; line-height: 1;
}
.chat-close:hover { background: rgba(255,255,255,.12); }
.chat-close:focus-visible { outline: 2px solid var(--terra); }

.chat-msgs {
  flex: 1; overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px 14px; background: var(--cream-50);
}
.chat-msg {
  max-width: 86%; padding: 10px 13px; border-radius: 16px;
  font-size: .92rem; line-height: 1.5; overflow-wrap: anywhere;
}
.chat-msg p { margin: 0; }
.chat-msg p + p, .chat-msg ul + p, .chat-msg p + ul { margin-top: 7px; }
.chat-msg ul { margin: 0; padding-left: 18px; list-style: disc; }
.chat-msg li + li { margin-top: 3px; }
.chat-bot { align-self: flex-start; background: var(--white); color: var(--ink); border: 1px solid var(--line-2); border-bottom-left-radius: 5px; }
.chat-bot a { color: var(--terra-700); font-weight: 600; }
.chat-yo { align-self: flex-end; background: var(--navy); color: #fff; border-bottom-right-radius: 5px; white-space: pre-wrap; }
.chat-error { background: var(--terra-100); border-color: transparent; }
.chat-typing { display: inline-flex; gap: 5px; padding: 14px 15px; }
.chat-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--navy-300); animation: chatPunto 1.2s infinite ease-in-out; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes chatPunto { 0%, 60%, 100% { opacity: .3; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .chat-typing span { animation: none; opacity: .6; } .chat-fab { transition: none; } }

.chat-form { display: flex; align-items: flex-end; gap: 8px; padding: 10px 10px 6px 14px; border-top: 1px solid var(--line-2); }
.chat-form textarea {
  flex: 1; resize: none; min-height: 42px; max-height: 120px; padding: 10px 12px;
  border: 1px solid var(--line); border-radius: 14px;
  font: inherit; font-size: 16px; line-height: 1.35; color: var(--ink); background: var(--white);
}
.chat-form textarea:focus { outline: 2px solid var(--navy-300); outline-offset: 0; border-color: transparent; }
.chat-send {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--terra); color: #fff;
}
.chat-send:hover { background: var(--terra-700); }
.chat-send svg { width: 20px; height: 20px; fill: currentColor; }
.chat-legal { margin: 0; padding: 0 14px 10px; font-size: .7rem; line-height: 1.4; color: var(--muted); }
.chat-legal a { color: inherit; }

/* Móvil: la burbuja se hace redonda y el chat ocupa toda la pantalla. */
@media (max-width: 639px) {
  .chat-fab { right: 14px; bottom: 14px; width: 56px; height: 56px; padding: 0; justify-content: center; }
  .chat-fab span { display: none; }
  .chat-fab svg { width: 26px; height: 26px; }
  .chat-panel { inset: 0; width: 100%; height: 100dvh; border-radius: 0; border: 0; }
  body.chat-abierto { overflow: hidden; }
}
/* No tapar la barra fija de la ficha ni la del comparador. */
@media (max-width: 999px) { body[data-page="detalle"] .chat-fab { bottom: 88px; } }
body:has(.compare-bar:not([hidden])) .chat-fab { bottom: 84px; }
@media (max-width: 999px) { body[data-page="detalle"]:has(.compare-bar:not([hidden])) .chat-fab { bottom: 150px; } }
@media print { .chat-fab, .chat-panel { display: none !important; } }

/* =========================================================================
   BLOG · listado, publicación, me gusta, compartir y comentarios
   ========================================================================= */
.blog { padding-block: 26px 44px; display: grid; gap: 22px; }
.blog-filters ul { display: flex; gap: 8px; margin: 0; padding: 0 0 4px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.blog-filters ul::-webkit-scrollbar { display: none; }
.blog-filters a {
  display: inline-flex; align-items: center; min-height: 38px; padding: 7px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); color: var(--navy); font-size: .86rem; font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background .16s var(--ease), border-color .16s var(--ease);
}
.blog-filters a:hover { border-color: var(--navy-300); }
.blog-filters a[aria-current="page"] { background: var(--navy); border-color: var(--navy); color: #fff; }

.post-grid { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.post-card a {
  display: flex; flex-direction: column; height: 100%; overflow: hidden; border-radius: var(--r);
  border: 1px solid var(--line-2); background: var(--white); color: inherit; text-decoration: none;
  transition: box-shadow .18s var(--ease), border-color .18s var(--ease), translate .18s var(--ease);
}
.post-card a:hover { box-shadow: var(--sh-2); border-color: var(--line); translate: 0 -2px; }
.post-card a:focus-visible { outline: 3px solid var(--terra); outline-offset: 3px; }
.post-card-media { aspect-ratio: 16 / 9; background: var(--cream); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-sin-foto {
  display: block; width: 100%; height: 100%;
  background: radial-gradient(120% 140% at 12% 0%, rgba(226,112,58,.30), transparent 55%), var(--navy);
}
.post-card-body { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.post-card h2 { font-size: var(--t-h3); line-height: 1.3; color: var(--navy); }
.post-card-body > p:not([class]) {
  font-size: .92rem; color: var(--muted);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 0; font-size: .78rem; color: var(--muted); }
.post-cat { color: var(--terra-700); font-weight: 700; letter-spacing: .02em; text-transform: uppercase; font-size: .72rem; }
.post-stats { display: flex; gap: 14px; margin: auto 0 0; padding-top: 6px; font-size: .82rem; color: var(--muted); }
.post-stats span { display: inline-flex; align-items: center; gap: 5px; }
.post-stats svg { width: 15px; height: 15px; fill: currentColor; opacity: .7; }
.post-card-grande h2 { font-size: var(--t-h2); }

.blog-band { padding: 46px 0 50px; }
.blog-band .section-note { margin-top: 18px; }

.pager { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.pager > :last-child { justify-self: end; }
.pager-info { font-size: .86rem; color: var(--muted); }

/* ---- Publicación ---- */
.post-hero-meta { margin-top: 14px; font-size: .88rem; color: rgba(255,255,255,.72); }
.page-hero .eyebrow a { color: inherit; text-underline-offset: 3px; }
.post-main { display: grid; gap: 30px; min-width: 0; }
.post-cover { margin: 0 0 24px; border-radius: var(--r); overflow: hidden; background: var(--cream); }
.post-cover img { width: 100%; height: auto; }
.post-source { margin-top: 22px; font-size: .88rem; color: var(--muted); }
.post-source a { color: var(--navy); font-weight: 600; }
.post-recent li a { display: grid; gap: 2px; text-decoration: none; }
.post-recent li a span { text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 2px; }
.post-recent li a:hover span { text-decoration-color: currentColor; }
.post-recent time { font-size: .76rem; font-weight: 400; color: var(--muted); }
.post-recent > p { margin-top: 12px; }

.post-actions {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  max-width: 72ch; padding: 16px 0; border-block: 1px solid var(--line);
}
.like-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px 8px 12px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy);
  font-weight: 650; cursor: pointer; transition: border-color .16s var(--ease), background .16s var(--ease);
}
.like-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; transition: fill .16s var(--ease), stroke .16s var(--ease); }
.like-btn:hover { border-color: var(--terra); }
.like-btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.like-btn.is-on { background: var(--terra-100); border-color: var(--terra); color: var(--terra-700); }
.like-btn.is-on svg { fill: var(--terra); stroke: var(--terra); }
.like-btn.is-pop svg { animation: like-pop .45s var(--ease); }
@keyframes like-pop { 40% { scale: 1.35; } }
@media (prefers-reduced-motion: reduce) { .like-btn.is-pop svg { animation: none; } }
.like-count { min-width: 1ch; font-variant-numeric: tabular-nums; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-title { font-size: .84rem; font-weight: 650; color: var(--muted); }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%;
  background: var(--navy); color: #fff; cursor: pointer; transition: translate .16s var(--ease), filter .16s var(--ease);
}
.share-btn[hidden] { display: none; }
.share-btn svg { width: 19px; height: 19px; fill: currentColor; }
.share-btn:hover { translate: 0 -2px; filter: brightness(1.12); }
.share-btn:focus-visible { outline: 3px solid var(--terra); outline-offset: 2px; }
.share-whatsapp { background: #1F9E55; }
.share-facebook { background: #1877F2; }
.share-x { background: #111; }
.share-linkedin { background: #0A66C2; }
.share-telegram { background: #229ED9; }
.share-correo, .share-copiar, .share-nativo { background: var(--navy-600); }
.share-copiar.is-ok { background: #2E7D4F; }

.comments { display: grid; gap: 20px; max-width: 72ch; }
.comments h2 { font-size: var(--t-h2); color: var(--navy); }
.comments-empty, .comments-closed { color: var(--muted); }
.comment-list, .comment-replies { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.comment-replies { margin: 12px 0 0 22px; padding-left: 16px; border-left: 2px solid var(--terra-100); }
.comment { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 12px; }
.comment-avatar {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--cream); color: var(--navy); font-weight: 700;
}
.comment-equipo .comment-avatar { background: var(--terra); color: #fff; }
.comment-body { padding: 12px 15px; border-radius: var(--r-sm); background: var(--white); border: 1px solid var(--line-2); }
.comment-equipo .comment-body { background: var(--cream-50); border-color: var(--terra-100); }
.comment-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin: 0 0 4px; font-size: .88rem; color: var(--navy); }
.comment-who time { font-size: .76rem; color: var(--muted); }
.comment-badge { padding: 1px 8px; border-radius: 999px; background: var(--terra-700); color: #fff; font-size: .7rem; font-weight: 700; }
.comment-text p { margin: 0; overflow-wrap: anywhere; }
.comment-text p + p { margin-top: 8px; }

.comment-form {
  display: grid; gap: 14px; padding: 20px; border-radius: var(--r);
  background: var(--cream-50); border: 1px solid var(--line-2);
}
.comment-form h3 { font-size: var(--t-h3); color: var(--navy); }
.comment-form-grid { display: grid; gap: 14px; }
.comment-form .field textarea { min-height: 110px; }
.comment-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.form-msg { margin: 0; font-size: .9rem; }
.form-msg.is-ok { color: #1F5A37; }
.form-msg.is-error { color: var(--terra-700); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (min-width: 640px) {
  .post-grid { grid-template-columns: repeat(2, 1fr); }
  .post-grid-destacado { grid-template-columns: 1fr; }
  .comment-form-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 900px) {
  .post-card-grande a { flex-direction: row; }
  .post-card-grande .post-card-media { flex: 0 0 58%; aspect-ratio: auto; min-height: 340px; }
  .post-card-grande .post-card-body { justify-content: center; padding: 28px 32px; }
}
@media (min-width: 1000px) {
  .post-grid { grid-template-columns: repeat(3, 1fr); }
  .post-grid-destacado { grid-template-columns: 1fr; }
}
