@charset "UTF-8";
/* =============================================================================
   GAMBA PROPIEDADES — Design System
   Paleta derivada del logo original (naranja #FF6D0A / gris #7C8285),
   armonizada con proporción 60/30/10 y contrastes AA.
   ========================================================================== */

/* ---------- 0. FUENTES (autoalojadas, subconjunto latino, licencia OFL) ---- */
/* Antes venían de Google Fonts: tres pedidos encadenados antes de pintar el título. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 300 700; font-display: swap; src: url("../fonts/fraunces-italic-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 300 800; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); }

/* ---------- 1. TOKENS ---------------------------------------------------- */
:root {
  /* Marca */
  --brand:        #FF6D0A;   /* naranja exacto del logo (acentos, iconografía) */
  --brand-600:    #EA5F05;   /* CTA sólido */
  --brand-700:    #C44F04;   /* texto naranja sobre blanco (AA 4.6:1) */
  --brand-800:    #9A3E05;
  --brand-100:    #FFE3CC;
  --brand-50:     #FFF5EC;

  /* Neutros (cast frío heredado del gris del logo) */
  --ink:          #14171A;
  --ink-2:        #22282D;
  --ink-3:        #39424A;
  --slate:        #5B656D;
  --slate-2:      #7C8285;   /* gris exacto del logo */
  --line:         #E3E6E8;
  --line-2:       #EDF0F1;
  --paper:        #FFFFFF;
  --paper-2:      #F7F8F9;
  --paper-3:      #EFF2F3;

  /* Estados */
  --ok:           #0F7B4F;
  --warn:         #B45309;
  --danger:       #B42318;

  /* Tipografía */
  --font-display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --font-sans:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --step--1: clamp(0.80rem, 0.78rem + 0.10vw, 0.86rem);
  --step-0:  clamp(0.95rem, 0.92rem + 0.15vw, 1.05rem);
  --step-1:  clamp(1.13rem, 1.05rem + 0.36vw, 1.35rem);
  --step-2:  clamp(1.38rem, 1.22rem + 0.72vw, 1.85rem);
  --step-3:  clamp(1.70rem, 1.40rem + 1.35vw, 2.60rem);
  --step-4:  clamp(2.05rem, 1.55rem + 2.30vw, 3.60rem);
  --step-5:  clamp(2.45rem, 1.60rem + 3.80vw, 5.00rem);

  /* Espaciado */
  --sp-1: .25rem;  --sp-2: .5rem;   --sp-3: .75rem;  --sp-4: 1rem;
  --sp-5: 1.5rem;  --sp-6: 2rem;    --sp-7: 3rem;    --sp-8: 4rem;
  --sp-9: 6rem;    --sp-10: 8rem;

  --container: 1240px;
  --gutter: clamp(1.15rem, 4vw, 3rem);

  /* Radios y sombras */
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px; --r-full: 999px;
  --sh-1: 0 1px 2px rgba(20,23,26,.05), 0 1px 3px rgba(20,23,26,.04);
  --sh-2: 0 4px 12px rgba(20,23,26,.06), 0 2px 4px rgba(20,23,26,.04);
  --sh-3: 0 18px 40px -12px rgba(20,23,26,.18), 0 4px 12px rgba(20,23,26,.05);
  --sh-4: 0 40px 80px -24px rgba(20,23,26,.30);

  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-ui: cubic-bezier(.23, 1, .32, 1);        /* ease-out fuerte para interacciones */
  --ease-drawer: cubic-bezier(.32, .72, 0, 1);    /* hojas y paneles que entran desde abajo */
  --header-h: 76px;
}

/* ---------- 2. RESET ----------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
/* El atributo hidden tiene que ganarle a cualquier display de componente
   (sin esto, los filtros del catálogo no ocultaban ninguna tarjeta). */
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
a, button { -webkit-tap-highlight-color: transparent; }
ul, ol { list-style: none; padding: 0; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -.018em;
  color: var(--ink);
  font-variation-settings: "SOFT" 0, "WONK" 0;
  text-wrap: balance;
}
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-2); }
p { text-wrap: pretty; }

:focus-visible {
  outline: 2px solid var(--brand-600);
  outline-offset: 3px;
  border-radius: 3px;
}
::selection { background: var(--brand-100); color: var(--ink); }

/* ---------- 3. LAYOUT ---------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--wide { max-width: 1480px; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 5vw, 4rem); }
.section--paper { background: var(--paper-2); }
.section--ink { background: var(--ink); color: #C6CCD1; }
.section--ink h2, .section--ink h3 { color: #fff; }

.stack > * + * { margin-top: var(--sp-4); }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--brand-800);
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: var(--brand); }
.section--ink .eyebrow { color: var(--brand); }
.eyebrow + h2 { margin-top: .6rem; }
.lede { font-size: var(--step-1); color: var(--slate); line-height: 1.55; max-width: 62ch; }
.section--ink .lede { color: #9BA5AC; }

.section-head { display: grid; gap: var(--sp-4); margin-bottom: clamp(2rem, 4vw, 3.25rem); }
.section-head__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--sp-5); }
.section-head h2 { max-width: 20ch; }

/* ---------- 4. BOTONES --------------------------------------------------- */
.btn {
  --btn-bg: var(--ink); --btn-fg: #fff; --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.6rem;
  min-height: 48px;
  font-size: .93rem; font-weight: 600; letter-spacing: -.005em;
  color: var(--btn-fg); background: var(--btn-bg);
  border: 1px solid var(--btn-bd); border-radius: var(--r-full);
  transition: transform .16s var(--ease-ui), box-shadow .2s var(--ease), background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { transform: translateY(-1px); box-shadow: var(--sh-2); } }
.btn:active { transform: scale(.97); box-shadow: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--brand  { --btn-bg: var(--brand); --btn-bd: var(--brand); --btn-fg: var(--ink); }
.btn--brand:hover { --btn-bg: var(--brand-600); --btn-bd: var(--brand-600); --btn-fg: var(--ink); }
.btn--ghost  { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--line); }
.btn--ghost:hover { --btn-bd: var(--ink); }
.btn--light  { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }
.btn--wa     { --btn-bg: #157A42; --btn-bd: #157A42; }  /* 5.4:1 con texto blanco */
.btn--wa:hover { --btn-bg: #0F6335; --btn-bd: #0F6335; }
.btn--sm { padding: .55rem 1.1rem; min-height: 40px; font-size: .84rem; }
.btn--block { width: 100%; }
.btn--icon { width: 48px; padding: 0; flex: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 600; font-size: .93rem; color: var(--ink);
  border-bottom: 1px solid var(--line); padding-bottom: .3rem;
  transition: color .2s var(--ease), border-color .2s var(--ease), gap .2s var(--ease);
}
.link-arrow:hover { color: var(--brand-700); border-color: var(--brand); gap: .85rem; }
.link-arrow svg { width: 15px; height: 15px; }

/* ---------- 5. HEADER ---------------------------------------------------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); width: 100%; }
.header.is-solid,
.header--static {
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom-color: var(--line-2);
}
.header.is-solid { box-shadow: 0 1px 20px rgba(20,23,26,.05); }

.brand { display: inline-flex; align-items: center; gap: .7rem; flex: none; }
.brand__logo { height: 50px; width: auto; border-radius: 3px; }
@media (max-width: 640px) { .brand__logo { height: 46px; } }
.brand__mark { width: 38px; height: 38px; flex: none; }
.brand__text { display: grid; line-height: 1; }
.brand__name { font-family: var(--font-sans); font-weight: 800; font-size: 1.06rem; letter-spacing: .01em; color: var(--ink); }
.brand__sub { font-size: .615rem; letter-spacing: .30em; text-transform: uppercase; color: var(--brand-800); font-weight: 700; margin-top: 3px; }
.header--over .brand__name { color: #fff; }
.header--over .brand__sub { color: var(--brand); }
.header--over .nav__link { color: rgba(255,255,255,.86); }
.header--over .nav__link:hover, .header--over .nav__link[aria-current="page"] { color: #fff; }
.header--over .btn--ghost { --btn-fg: #fff; --btn-bd: rgba(255,255,255,.35); }
.header--over .btn--ghost:hover { --btn-bd: #fff; }
.header--over .burger span { background: #fff; }
.header.is-solid.header--over .brand__name { color: var(--ink); }
.header.is-solid.header--over .brand__sub { color: var(--brand-700); }
.header.is-solid.header--over .nav__link { color: var(--ink-3); }
.header.is-solid.header--over .nav__link:hover { color: var(--ink); }
.header.is-solid.header--over .btn--ghost { --btn-fg: var(--ink); --btn-bd: var(--line); }
.header.is-solid.header--over .burger span { background: var(--ink); }

.nav { display: flex; align-items: center; gap: clamp(.5rem, 1.6vw, 1.6rem); }
.nav__link {
  position: relative; font-size: .92rem; font-weight: 500; color: var(--ink-3);
  padding: .5rem .1rem; transition: color .2s var(--ease);
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: .15rem; height: 1.5px;
  background: var(--brand); transition: right .3s var(--ease-out);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { right: 0; }
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.header__actions { display: flex; align-items: center; gap: .6rem; flex: none; }

.burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; flex-direction: column; gap: 5px; }
.burger span { display: block; width: 21px; height: 1.8px; background: var(--ink); border-radius: 2px; transition: transform .3s var(--ease), opacity .2s var(--ease); }
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.8px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.8px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: var(--header-h) 0 0 0; z-index: 99;
  background: var(--paper); padding: var(--sp-6) var(--gutter) var(--sp-8);
  display: grid; align-content: start; gap: .25rem;
  transform: translateY(-8px); opacity: 0; visibility: hidden; pointer-events: none;
  /* visibility se conmuta con delay en vez de transicionarse: evita estados
     intermedios cuando la pestaña está en segundo plano. */
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear .28s;
  overflow-y: auto;
}
.mobile-nav.is-open {
  opacity: 1; visibility: visible; transform: none; pointer-events: auto;
  transition: opacity .28s var(--ease), transform .28s var(--ease), visibility 0s linear 0s;
}
.mobile-nav a {
  font-family: var(--font-display); font-size: 1.7rem; padding: .7rem 0;
  border-bottom: 1px solid var(--line-2); color: var(--ink);
}
.mobile-nav .btn { margin-top: var(--sp-5); }
body.nav-open { overflow: hidden; }

/* ---------- 6. HERO ------------------------------------------------------ */
.hero { position: relative; min-height: min(94vh, 880px); display: flex; align-items: flex-end; padding-top: var(--header-h); isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; background: var(--ink); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; animation: heroZoom 18s var(--ease-out) forwards; }
@keyframes heroZoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,12,14,.62) 0%, rgba(10,12,14,.28) 32%, rgba(10,12,14,.55) 68%, rgba(10,12,14,.88) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(2.5rem, 7vw, 5rem) clamp(2rem, 4vw, 3rem); color: #fff; }
.hero h1 { color: #fff; font-size: var(--step-5); max-width: 15ch; letter-spacing: -.03em; }
.hero h1 em { font-style: italic; color: var(--brand); font-variation-settings: "SOFT" 0, "WONK" 1; }
.hero__lede { color: rgba(255,255,255,.82); font-size: var(--step-1); max-width: 46ch; margin-top: var(--sp-4); }
.hero .eyebrow { color: #fff; margin-bottom: .85rem; }
.hero .eyebrow::before { background: var(--brand); }
.hero__scroll { display: inline-flex; align-items: center; gap: .6rem; margin-top: var(--sp-6); font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.65); }
.hero__scroll svg { width: 16px; height: 16px; animation: bob 2.2s var(--ease) infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hero__scroll svg { animation: none; } }

/* Buscador */
.searchbar {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-radius: var(--r-lg); box-shadow: var(--sh-4);
  padding: .5rem; display: grid; gap: .35rem;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: stretch;
}
.searchbar__field { display: grid; gap: 2px; padding: .6rem .9rem; border-radius: var(--r-md); position: relative; transition: background-color .2s var(--ease); }
.searchbar__field + .searchbar__field { box-shadow: inset 1px 0 0 var(--line-2); }
.searchbar__field:hover { background: var(--paper-2); }
.searchbar__field label { font-size: .66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; color: var(--slate); }
.searchbar__field select {
  appearance: none; border: 0; background: transparent; width: 100%;
  font-size: .95rem; font-weight: 600; color: var(--ink); padding-right: 1.2rem;
  cursor: pointer; outline-offset: 6px;
}
.searchbar__field::after {
  content: ""; position: absolute; right: .95rem; bottom: 1rem; width: 8px; height: 8px;
  border-right: 1.6px solid var(--slate-2); border-bottom: 1.6px solid var(--slate-2);
  transform: rotate(45deg); pointer-events: none;
}
.searchbar .btn { border-radius: var(--r-md); }
.hero .searchbar { margin-top: clamp(2rem, 4vw, 3rem); }

/* ---------- 7. CARDS DE PROPIEDAD ---------------------------------------- */
.grid-props {
  display: grid; gap: clamp(1.1rem, 2.2vw, 1.9rem);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
}
.pcard { position: relative; display: flex; flex-direction: column; background: var(--paper); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); border: 1px solid var(--line-2); transition: transform .24s var(--ease-ui), box-shadow .24s var(--ease-ui), border-color .2s var(--ease); }
.pcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-3); }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: transparent; }
  .pcard:hover .pcard__media img { transform: scale(1.035); }
}
.pcard:active { transform: scale(.985); }
.pcard__badges { position: absolute; top: .8rem; left: .8rem; display: flex; gap: .4rem; flex-wrap: wrap; z-index: 2; }
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .32rem .72rem; border-radius: var(--r-full);
  font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase;
  background: rgba(255,255,255,.94); color: var(--ink); backdrop-filter: blur(6px);
  box-shadow: 0 1px 4px rgba(0,0,0,.12); white-space: nowrap;
}
.badge svg { width: 13px; height: 13px; }
.badge--brand { background: var(--brand); color: var(--ink); }
.badge--ink { background: rgba(20,23,26,.82); color: #fff; }
.pcard__count { position: absolute; bottom: .8rem; right: .8rem; z-index: 2; display: inline-flex; align-items: center; gap: .35rem; padding: .28rem .6rem; border-radius: var(--r-sm); background: rgba(20,23,26,.68); color: #fff; font-size: .72rem; font-weight: 600; backdrop-filter: blur(4px); }
.pcard__count svg { width: 13px; height: 13px; }
.pcard__body { display: flex; flex-direction: column; gap: .55rem; padding: 1.15rem 1.25rem 1.35rem; flex: 1; }
.pcard__price { font-family: var(--font-sans); font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.pcard__price small { font-size: .78rem; font-weight: 600; color: var(--slate); letter-spacing: 0; }
.pcard__title { font-family: var(--font-sans); font-size: .98rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__loc { display: flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--slate); }
.pcard__loc svg { width: 14px; height: 14px; flex: none; color: var(--brand); }
.pcard__specs { display: flex; flex-wrap: wrap; gap: .35rem .9rem; margin-top: auto; padding-top: .85rem; border-top: 1px solid var(--line-2); font-size: .82rem; color: var(--slate); }
.pcard__specs span { display: inline-flex; align-items: center; gap: .34rem; }
.pcard__specs svg { width: 15px; height: 15px; color: var(--slate); }
.pcard__link { position: absolute; inset: 0; z-index: 3; }
.pcard__link:focus-visible { outline-offset: -3px; }

/* Card destacada (primer item del home) */
.pcard--wide { grid-column: span 2; }
@media (max-width: 760px) { .pcard--wide { grid-column: span 1; } }

/* ---------- 8. SECCIONES DEL HOME ---------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: var(--sp-5); }
.stat { padding: var(--sp-5) 0; border-top: 2px solid var(--brand); }
.stat__num { font-family: var(--font-display); font-size: var(--step-3); color: var(--ink); line-height: 1; }
.section--ink .stat__num { color: #fff; }
.stat__label { font-size: .87rem; color: var(--slate); margin-top: .5rem; }
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
  .stat { padding: .9rem 0 0; }
  .stat__num { font-size: 1.9rem; }
  .stat__label { font-size: .76rem; line-height: 1.35; }
}
.section--ink .stat__label { color: #97A1A8; }

.zonas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (min-width: 620px) { .zonas { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1080px) { .zonas { grid-template-columns: repeat(6, 1fr); } }
.zona {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end;
  aspect-ratio: 3 / 4; padding: 1rem .95rem 1.1rem; border-radius: var(--r-md); overflow: hidden;
  color: #fff; isolation: isolate; background: var(--ink);
}
.zona img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .5s var(--ease-ui); }
.zona::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(10,12,14,.05) 26%, rgba(10,12,14,.86) 100%); transition: background .4s var(--ease); }
.zona__name, .zona__count { position: relative; z-index: 2; }
.zona--otras { background: linear-gradient(160deg, var(--ink-3), var(--ink)); }
.zona--otras::after { background: radial-gradient(circle at 80% 10%, rgba(255,109,10,.35), transparent 60%); }
.zona--otras .zona__arrow { position: relative; z-index: 2; width: 22px; height: 22px; color: var(--brand); margin-bottom: auto; }
@media (hover: hover) and (pointer: fine) {
  .zona:hover img { transform: scale(1.04); }
  .zona:hover::after { background: linear-gradient(180deg, rgba(196,79,4,.12) 20%, rgba(10,12,14,.85) 100%); }
}
.zona { transition: transform .16s var(--ease-ui); }
.zona:active { transform: scale(.98); }
.zona__name { font-family: var(--font-display); font-size: clamp(1.02rem, 1.1vw, 1.22rem); color: #fff; line-height: 1.15; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.zona__count { font-size: .74rem; color: rgba(255,255,255,.74); margin-top: .3rem; line-height: 1.35; text-shadow: 0 1px 6px rgba(0,0,0,.4); }

.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-lg); overflow: hidden; }
.service { background: var(--paper); padding: clamp(1.6rem, 3vw, 2.4rem); display: grid; gap: .8rem; align-content: start; transition: background-color .3s var(--ease); }
.service:hover { background: var(--brand-50); }
.service__icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); margin-bottom: .3rem; }
.service:hover .service__icon { background: var(--brand); color: #fff; }
.service__icon svg { width: 21px; height: 21px; }
.service h3 { font-size: 1.18rem; }
.service p { font-size: .92rem; color: var(--slate); }

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; grid-template-columns: 1fr; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide-l { grid-template-columns: 1.15fr 1fr; } }
.split--top { align-items: start; }
@media (min-width: 900px) { .split--rev > *:first-child { order: 2; } }
/* En celular, el formulario va primero (es la acción principal de la página). */
@media (max-width: 899px) { .split--form-first > :last-child { order: -1; } }
.services--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.pasos { margin-top: 1.75rem; display: grid; gap: 1.4rem; counter-reset: paso; }
.pasos li { display: grid; grid-template-columns: 38px 1fr; column-gap: 1rem; counter-increment: paso; }
.pasos li::before { content: counter(paso); grid-row: span 2; width: 38px; height: 38px; border-radius: 50%; background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; font-weight: 800; font-size: .95rem; }
.pasos strong { color: var(--ink); font-size: 1.05rem; }
.pasos span { color: var(--slate); }
.split__media { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-3); }
.split__media img { width: 100%; aspect-ratio: 4/3.2; object-fit: cover; }
/* Recorte con fondo transparente (PNG): se muestra entero sobre un fondo suave. */
.split__media--recorte { background: var(--paper-2); }
.split__media--recorte img { object-fit: contain; object-position: center bottom; padding-top: var(--sp-5); }

.cta-band { position: relative; overflow: hidden; background: var(--ink); color: #fff; border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 4rem); }
.cta-band::before { content: ""; position: absolute; width: 460px; height: 460px; right: -140px; top: -180px; border-radius: 50%; background: radial-gradient(circle, rgba(255,109,10,.30), transparent 68%); }
.cta-band__inner { position: relative; display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 880px) { .cta-band__inner { grid-template-columns: 1.4fr auto; gap: var(--sp-7); } }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.7); margin-top: .8rem; max-width: 52ch; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- 9. CATÁLOGO -------------------------------------------------- */
.page-head { padding-top: calc(var(--header-h) + clamp(2rem, 5vw, 3.5rem)); padding-bottom: clamp(1.5rem, 3vw, 2.5rem); background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .8rem; color: var(--slate); margin-bottom: var(--sp-4); }
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: .45rem; color: var(--line); }
.breadcrumb li { display: inline-flex; align-items: center; }
.breadcrumb [aria-current] { color: var(--ink-3); }

.catalog { display: grid; gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; }
@media (min-width: 1000px) { .catalog { grid-template-columns: 260px 1fr; } }
/* En el catálogo la grilla convive con la barra de filtros: caja algo más chica. */
.catalog .grid-props { grid-template-columns: repeat(auto-fill, minmax(min(100%, 276px), 1fr)); gap: clamp(1rem, 1.6vw, 1.5rem); }

.filters { display: grid; gap: 1.15rem; align-content: start; }
@media (min-width: 1000px) { .filters { position: sticky; top: calc(var(--header-h) + 1.25rem); max-height: calc(100vh - var(--header-h) - 3rem); overflow-y: auto; padding-right: .4rem; } }
.filters__group { display: grid; gap: .6rem; }
.filters__group > h2 { font-family: var(--font-sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--slate); line-height: 1.4; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  padding: .45rem .85rem; border: 1px solid var(--line); border-radius: var(--r-full);
  font-size: .84rem; font-weight: 500; color: var(--ink-3); background: var(--paper);
  transition: background-color .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease-ui);
}
@media (hover: hover) and (pointer: fine) { .chip:hover { border-color: var(--slate); } }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.field { display: grid; gap: .4rem; }
.field label { font-size: .78rem; font-weight: 600; color: var(--ink-3); }
.field input, .field select, .field textarea {
  width: 100%; padding: .72rem .85rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--paper); font-size: .92rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100); }
.field textarea { resize: vertical; min-height: 110px; }
@media (max-width: 640px) { .field input, .field select, .field textarea, .sort select { font-size: 16px; } }
.field__row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.filters__hint { font-size: .8rem; color: var(--slate); line-height: 1.45; }
.field input:disabled { background: var(--paper-2); color: var(--slate-2); cursor: not-allowed; }
.filters__reset { justify-self: start; font-size: .84rem; color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.filters-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
.filters-bar__count { font-size: .92rem; color: var(--slate); }
.filters-bar__count strong { color: var(--ink); font-weight: 700; }
.filters-toggle { display: none; }
.filters-toggle__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 .35rem; border-radius: var(--r-full); background: var(--brand); color: var(--ink); font-size: .72rem; font-weight: 800; }
.filters-toggle__n[hidden] { display: none; }
.filters__head, .filters__foot { display: none; }
.filters-backdrop[hidden] { display: none; }
@media (max-width: 999px) {
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 120;
    max-height: min(86dvh, 760px); overflow-y: auto; overscroll-behavior: contain;
    padding: 0 var(--gutter); gap: 1.25rem;
    background: var(--paper); border-radius: 20px 20px 0 0; box-shadow: 0 -20px 60px rgba(20,23,26,.22);
    transform: translateY(100%); visibility: hidden;
    transition: transform .26s var(--ease-drawer), visibility 0s linear .26s;
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform .34s var(--ease-drawer), visibility 0s; }
  .filters__head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; z-index: 2; background: var(--paper); padding: 1.15rem 0 .8rem; border-bottom: 1px solid var(--line-2); }
  .filters__head::before { content: ""; position: absolute; top: 7px; left: 50%; width: 38px; height: 4px; border-radius: 2px; background: var(--line); transform: translateX(-50%); }
  .filters__title { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; color: var(--ink); }
  .filters__close { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; margin-right: -.6rem; color: var(--ink-3); }
  .filters__close svg { width: 22px; height: 22px; }
  .filters__foot { display: block; position: sticky; bottom: 0; z-index: 2; background: var(--paper); margin-top: -.25rem; padding: .8rem 0 calc(.9rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); }
  .filters-backdrop { position: fixed; inset: 0; z-index: 110; background: rgba(10,12,14,.45); opacity: 0; transition: opacity .24s var(--ease); }
  .filters-backdrop.is-open { opacity: 1; }
  body.sheet-open { overflow: hidden; }
}
.sort { display: flex; align-items: center; gap: .5rem; font-size: .86rem; color: var(--slate); }
.sort select { border: 1px solid var(--line); border-radius: var(--r-full); padding: .45rem 1rem; font-size: .86rem; font-weight: 600; background: var(--paper); cursor: pointer; }

.empty { text-align: center; padding: clamp(3rem, 8vw, 5rem) 1rem; border: 1px dashed var(--line); border-radius: var(--r-lg); background: var(--paper-2); }
.empty svg { width: 40px; height: 40px; color: var(--slate); margin: 0 auto 1rem; }
.pagination { display: flex; justify-content: center; gap: .4rem; margin-top: clamp(2rem, 4vw, 3rem); flex-wrap: wrap; }
.pagination button { min-width: 42px; height: 42px; padding: 0 .8rem; border: 1px solid var(--line); border-radius: var(--r-md); font-size: .88rem; font-weight: 600; color: var(--ink-3); transition: border-color .16s var(--ease), background-color .16s var(--ease), transform .12s var(--ease-ui); }
.pagination button:active:not(:disabled) { transform: scale(.95); }
.pagination button:hover:not(:disabled) { border-color: var(--ink); }
.pagination button[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.pagination button:disabled { opacity: .38; cursor: not-allowed; }

/* ---------- 10. FICHA DE PROPIEDAD --------------------------------------- */
.detail { padding-top: calc(var(--header-h) + clamp(1.25rem, 3vw, 2rem)); }
.gallery { display: grid; gap: 8px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .gallery { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; height: min(64vh, 560px); } }
.gallery__item { position: relative; overflow: hidden; border-radius: var(--r-md); background: var(--paper-3); cursor: zoom-in; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s var(--ease-ui); }
@media (hover: hover) and (pointer: fine) { .gallery__item:hover img { transform: scale(1.03); } }
.gallery-wrap { position: relative; }
.gallery__count { display: none; }
@media (min-width: 800px) {
  .gallery__item:first-child { grid-row: span 2; }
  .gallery__item:nth-child(n+6) { display: none; }
}
@media (max-width: 799px) {
  .gallery-wrap { margin-inline: calc(var(--gutter) * -1); }
  .gallery { display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery__item { flex: 0 0 100%; aspect-ratio: 4 / 3; border-radius: 0; scroll-snap-align: center; scroll-snap-stop: always; }
  .gallery__more { display: none; }
  .gallery__count { display: inline-flex; align-items: center; gap: .35rem; position: absolute; right: var(--gutter); bottom: .85rem; z-index: 2; padding: .3rem .65rem; border-radius: var(--r-full); background: rgba(20,23,26,.72); color: #fff; font-size: .78rem; font-weight: 600; font-variant-numeric: tabular-nums; pointer-events: none; }
  .gallery__count svg { width: 14px; height: 14px; }
}
.gallery__more { position: absolute; right: 1rem; bottom: 1rem; z-index: 2; }

.detail__grid { display: grid; gap: clamp(2rem, 4vw, 3.5rem); margin-top: clamp(2rem, 4vw, 3rem); }
@media (min-width: 1000px) { .detail__grid { grid-template-columns: minmax(0,1fr) 372px; } }

.detail__title { display: grid; gap: .7rem; }
.detail__title h1 { font-size: var(--step-3); }
.detail__price { font-family: var(--font-sans); font-size: var(--step-2); font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.detail__price small { font-size: .85rem; font-weight: 600; color: var(--slate); }
.detail__price-note { display: block; margin-top: .2rem; font-size: .92rem; font-weight: 600; color: var(--ink-3); letter-spacing: 0; }
.detail__price--off { color: var(--slate); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }
.share__btn { display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: .45rem .9rem; border: 1px solid var(--line); border-radius: var(--r-full); font-size: .84rem; font-weight: 600; color: var(--ink-3); background: var(--paper); transition: border-color .16s var(--ease), color .16s var(--ease), transform .12s var(--ease-ui); }
.share__btn svg { width: 16px; height: 16px; }
@media (hover: hover) and (pointer: fine) { .share__btn:hover { border-color: var(--ink); color: var(--ink); } }
.share__btn:active { transform: scale(.96); }
.share__btn.is-done { border-color: #C2E6D3; color: var(--ok); }
.notice { display: flex; gap: .75rem; align-items: flex-start; padding: 1rem 1.15rem; margin-bottom: 1.25rem; border-radius: var(--r-md); background: var(--brand-50); border: 1px solid var(--brand-100); color: var(--ink-2); font-size: .93rem; }
.notice svg { width: 20px; height: 20px; flex: none; color: var(--brand-700); margin-top: .15rem; }
.detail--off .gallery { filter: grayscale(.6); opacity: .85; }

.specs { display: flex; flex-wrap: wrap; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: var(--r-md); overflow: hidden; margin-block: clamp(1.5rem, 3vw, 2.25rem); }
.spec { flex: 1 1 140px; background: var(--paper); padding: 1.05rem 1rem; display: grid; gap: .3rem; align-content: start; }
.spec svg { width: 19px; height: 19px; color: var(--brand); }
.spec__v { font-size: 1.06rem; font-weight: 700; color: var(--ink); }
.spec__k { font-size: .76rem; color: var(--slate); letter-spacing: .04em; }

.prose { max-width: 68ch; color: var(--ink-3); }
.prose p { margin-bottom: 1rem; }
.prose h2, .prose h3 { margin-top: 2rem; margin-bottom: .75rem; }
.prose ul { display: grid; gap: .5rem; margin-bottom: 1rem; }
.prose ul li { position: relative; padding-left: 1.3rem; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

.amenities { display: flex; flex-wrap: wrap; gap: .5rem; }
.amenity { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .9rem; border: 1px solid var(--line); border-radius: var(--r-full); font-size: .85rem; color: var(--ink-3); background: var(--paper-2); }
.amenity svg { width: 15px; height: 15px; color: var(--brand-700); }

.contact-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.5rem; background: var(--paper); box-shadow: var(--sh-2); display: grid; gap: 1rem; }
@media (min-width: 1000px) { .contact-card { position: sticky; top: calc(var(--header-h) + 1.25rem); } }
.contact-card__head { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line-2); }
.contact-card__avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--brand-50); display: grid; place-items: center; flex: none; }
.contact-card__avatar:has(> img) { width: auto; height: auto; background: none; border-radius: 0; }
.contact-card__avatar img { width: 36px; height: auto; border-radius: 3px; }
.contact-bar { display: none; }
@media (max-width: 999px) {
  .contact-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
    transform: translateY(105%); transition: transform .24s var(--ease-ui);
    display: flex; align-items: center; gap: .55rem;
    padding: .65rem var(--gutter) calc(.65rem + env(safe-area-inset-bottom));
    background: rgba(255,255,255,.96); -webkit-backdrop-filter: saturate(180%) blur(14px); backdrop-filter: saturate(180%) blur(14px);
    border-top: 1px solid var(--line-2); box-shadow: 0 -8px 24px rgba(20,23,26,.06);
  }
  .contact-bar.is-visible { transform: none; }
  .contact-bar__price { flex: 1; min-width: 0; line-height: 1.2; }
  .contact-bar__price strong { display: block; font-size: 1.02rem; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .contact-bar__price small { font-size: .75rem; color: var(--slate); font-weight: 600; }
  .contact-bar .btn { min-height: 46px; padding-inline: 1.1rem; }
  .contact-bar .btn--icon { width: 46px; padding: 0; }
  .detail--bar ~ .wa-float { display: none; }
  .detail--bar ~ .footer { padding-bottom: calc(6rem + env(safe-area-inset-bottom)); }
}
.contact-card__head strong { display: block; font-size: .96rem; color: var(--ink); }
.contact-card__head span { font-size: .8rem; color: var(--slate); }
.form-note { font-size: .74rem; color: var(--slate); line-height: 1.5; }
.form-msg { padding: .8rem 1rem; border-radius: var(--r-md); font-size: .87rem; display: none; }
.form-msg.is-ok { display: block; background: #E9F6EF; color: var(--ok); border: 1px solid #C2E6D3; }
.form-msg.is-err { display: block; background: #FDECEA; color: var(--danger); border: 1px solid #F5C6C2; }
.form-msg a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.form-alt { font-size: .86rem; color: var(--slate); text-align: center; }
.form-alt a { color: #157A42; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Campo trampa para bots: fuera de pantalla, nunca visible ni enfocable. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field__opt { font-weight: 400; color: var(--slate); }
.field__hint { font-size: .76rem; color: var(--slate); }
.field__err { font-size: .78rem; color: var(--danger); font-weight: 500; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px #FBD9D5; }

/* Envío: spinner dentro del botón, sin cambiar su ancho. */
.btn__spinner { display: none; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: girar .7s linear infinite; }
.is-sending .btn__spinner { display: inline-block; }
.is-sending button[type="submit"] { cursor: progress; opacity: .85; }
@keyframes girar { to { transform: rotate(360deg); } }

/* Confirmación: reemplaza al formulario cuando el servidor responde ok. */
.is-done > :not(.form-done) { display: none !important; }
.form-done { display: grid; justify-items: center; gap: .55rem; text-align: center; padding: 1.5rem .5rem; outline: none; grid-column: 1 / -1; }
.form-done[hidden] { display: none; }
.form-done__icon { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: #E9F6EF; color: var(--ok); }
.form-done__icon svg { width: 24px; height: 24px; }
.form-done__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); }
.form-done__text { font-size: .9rem; color: var(--slate); max-width: 34ch; }
.form-done__text a { color: #157A42; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.is-done .form-done { animation: aparecer .32s var(--ease-out) both; }
@keyframes aparecer { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9,11,13,.96); display: none; place-items: center; padding: clamp(1rem, 4vw, 3rem); }
.lightbox.is-open { display: grid; }
.lightbox__img { max-width: min(1400px, 100%); max-height: 82vh; width: auto; object-fit: contain; border-radius: var(--r-sm); }
.lightbox__close, .lightbox__nav { position: absolute; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: rgba(255,255,255,.1); color: #fff; transition: background-color .2s var(--ease); }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__close { top: 1.25rem; right: 1.25rem; }
.lightbox__nav--prev { left: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__nav--next { right: clamp(.6rem, 3vw, 2rem); top: 50%; transform: translateY(-50%); }
.lightbox__count { position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%); color: rgba(255,255,255,.75); font-size: .85rem; letter-spacing: .06em; }
.lightbox svg { width: 22px; height: 22px; }

/* ---------- 11. FORMULARIOS / CONTACTO ----------------------------------- */
.form-grid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .form-grid--2 { grid-template-columns: 1fr 1fr; } .form-grid--2 .field--full { grid-column: 1 / -1; } }
.info-list { display: grid; gap: 1.15rem; }
.info-item { display: flex; gap: .9rem; align-items: flex-start; }
.info-item__icon { width: 40px; height: 40px; border-radius: var(--r-md); background: var(--brand-50); color: var(--brand-700); display: grid; place-items: center; flex: none; }
.info-item__icon svg { width: 18px; height: 18px; }
.info-item strong { display: block; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.info-item a, .info-item p { font-size: 1rem; color: var(--ink-2); font-weight: 500; }
.info-item a:hover { color: var(--brand-700); }
.map-frame { border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--paper-3); }
.map-frame iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Acordeón (FAQ) */
.faq { display: grid; gap: .6rem; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.faq details[open] { border-color: var(--brand-100); box-shadow: var(--sh-2); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; cursor: pointer; font-weight: 600; color: var(--ink);
  list-style: none; font-size: .96rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 1.8px solid var(--slate-2); border-bottom: 1.8px solid var(--slate-2);
  transform: rotate(45deg) translate(-2px, -2px); transition: transform .25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); border-color: var(--brand); }
.faq summary:hover { color: var(--brand-700); }
.faq p { padding: 0 1.15rem 1.15rem; color: var(--slate); font-size: .93rem; margin: 0; }

/* ---------- 12. FOOTER --------------------------------------------------- */
.footer { background: var(--ink); color: #99A2A9; padding-block: clamp(3rem, 6vw, 4.5rem) calc(54px + clamp(1rem, 3vw, 1.75rem) + 1.25rem); } /* el final queda por encima del botón flotante de WhatsApp */
.footer__grid { display: grid; gap: clamp(2rem, 4vw, 3rem); grid-template-columns: 1fr; }
@media (min-width: 760px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1.2fr; } }
.footer__title { font-family: var(--font-sans); font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; line-height: 1.4; }
.footer a { font-size: .9rem; transition: color .2s var(--ease); }
.footer a:hover { color: var(--brand); }
.footer ul { display: grid; gap: .6rem; }
.footer .brand__name { color: #fff; }
.footer .brand__sub { color: var(--brand); }
.footer__about { font-size: .9rem; line-height: 1.7; margin-top: 1.1rem; max-width: 34ch; }
.footer__bottom { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.1); font-size: .8rem; }
.socials { display: flex; gap: .5rem; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.socials svg { width: 16px; height: 16px; }

/* WhatsApp flotante */
.wa-float {
  position: fixed; right: clamp(1rem, 3vw, 1.75rem); bottom: clamp(1rem, 3vw, 1.75rem); z-index: 90;
  width: 54px; height: 54px; border-radius: 50%; background: #1FA855; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(31,168,85,.36);
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease);
}
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: scale(1.05); box-shadow: 0 12px 30px rgba(31,168,85,.45); } }
.wa-float:active { transform: scale(.94); }
.wa-float svg { width: 27px; height: 27px; }

/* ---------- 13b. COMPARACIÓN (página para la clienta) --------------------- */
.cmp h2 { font-size: var(--step-3); }
.cmp-hero { padding-top: calc(var(--header-h) + clamp(2rem, 6vw, 4rem)); padding-bottom: clamp(2rem, 5vw, 3rem); background: var(--paper-2); border-bottom: 1px solid var(--line-2); }
.cmp-hero h1 { font-size: var(--step-3); max-width: 24ch; }
.cmp-hero .lede { margin-top: 1rem; font-size: var(--step-0); }
.cmp-hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.cmp-par { margin-top: clamp(1.75rem, 4vw, 2.75rem); }
.cmp-par figcaption h3 { font-size: var(--step-1); }
.cmp-par figcaption p { color: var(--slate); font-size: .92rem; margin-top: .35rem; max-width: 62ch; }
.cmp-par__fotos { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-top: 1rem; max-width: 760px; }
.cmp-par__fotos img { width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--sh-2); margin-top: .45rem; }
.cmp-etq { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--slate); }
.cmp-etq--nueva { color: var(--brand-800); }
.cmp-si, .cmp-no, .cmp-parcial { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: var(--r-full); font-size: .78rem; font-weight: 700; white-space: nowrap; }
.cmp-si svg, .cmp-no svg { width: 14px; height: 14px; }
.cmp-si { background: #E9F6EF; color: var(--ok); }
.cmp-no { background: #F2F3F4; color: var(--ink-3); }
.cmp-parcial { background: #FFF4E5; color: var(--warn); }
.cmp-tabla { margin-top: 1.5rem; display: grid; gap: .6rem; }
.cmp-fila { display: grid; gap: .55rem; padding: 1rem 1.1rem; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r-md); }
.cmp-fila--head { display: none; }
.cmp-q { font-weight: 700; color: var(--ink); }
.cmp-c { display: grid; gap: .3rem; justify-items: start; }
.cmp-c small { font-size: .82rem; color: var(--slate); line-height: 1.45; }
.cmp-mob { font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--slate-2); }
@media (min-width: 860px) {
  .cmp-fila { grid-template-columns: 1.1fr 1fr 1fr; align-items: start; gap: 1.25rem; }
  .cmp-fila--head { display: grid; background: none; border: 0; padding-block: 0; font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate); }
  .cmp-mob { display: none; }
}
.cmp-metricas { margin-top: 1.5rem; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.cmp-met { padding: 1.15rem 1.2rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--paper); display: grid; gap: .6rem; align-content: start; }
.cmp-met__n { font-weight: 700; color: var(--ink); }
.cmp-met__vals { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.cmp-met__vals small { display: block; font-size: .72rem; color: var(--slate); }
.cmp-met__vals strong { font-size: 1.6rem; font-weight: 800; color: var(--ink); font-variant-numeric: tabular-nums; }
.cmp-met__vals div + div strong { color: var(--brand-800); }
.cmp-met__exp { font-size: .84rem; color: var(--slate); line-height: 1.45; }
.cmp-pend { font-size: .8rem; font-weight: 600; color: var(--slate); }
.cmp-nota { margin-top: 1.25rem; font-size: .85rem; color: var(--slate); max-width: 70ch; }
.cmp-sub { font-size: var(--step-1); margin-top: 2rem; }
.cmp-dos { display: grid; gap: 1rem; margin-top: .8rem; }
@media (min-width: 860px) { .cmp-dos { grid-template-columns: 1fr 1fr; } }
.cmp-g { margin-top: .45rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-family: Arial, Helvetica, sans-serif; }
.cmp-g__url { font-size: .8rem; color: #202124; }
.cmp-g__title { font-size: 1.15rem; color: #1a0dab; margin-top: .2rem; line-height: 1.3; }
.cmp-g__desc { font-size: .86rem; color: #4d5156; margin-top: .3rem; line-height: 1.5; }
.cmp-g__desc em { color: #70757a; }
.cmp-wa { margin-top: .45rem; padding: 1rem; background: #E7DED5; border-radius: 12px; }
.cmp-wa__burbuja { max-width: 320px; margin-left: auto; background: #D9FDD3; border-radius: 10px 0 10px 10px; padding: .3rem; box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.cmp-wa__card { background: rgba(0,0,0,.05); border-radius: 8px; overflow: hidden; }
.cmp-wa__card img { width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #fff; }
.cmp-wa__txt { display: grid; gap: .15rem; padding: .5rem .65rem .6rem; font-family: Arial, Helvetica, sans-serif; }
.cmp-wa__txt strong { font-size: .86rem; color: #111b21; line-height: 1.3; }
.cmp-wa__txt span { font-size: .78rem; color: #667781; line-height: 1.35; }
.cmp-wa__txt small { font-size: .72rem; color: #667781; }
.cmp-wa__link { font-size: .8rem; color: #027eb5; padding: .35rem .4rem .15rem; font-family: Arial, Helvetica, sans-serif; }
.cmp-lista { margin-top: 1.25rem; display: grid; gap: .9rem; counter-reset: item; max-width: 72ch; }
.cmp-lista li { counter-increment: item; position: relative; padding-left: 2.6rem; min-height: 28px; color: var(--ink-3); }
.cmp-lista li::before { content: counter(item); position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-800); font-weight: 800; font-size: .82rem; }
.cmp-lista strong { color: var(--ink); }
.cmp-pasos { margin-top: 1.25rem; display: grid; gap: .8rem; counter-reset: paso; max-width: 62ch; }
.cmp-pasos li { counter-increment: paso; position: relative; padding-left: 2.75rem; min-height: 30px; padding-top: .15rem; color: #C6CCD1; }
.cmp-pasos li::before { content: counter(paso); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--ink); font-weight: 800; font-size: .85rem; }
.cmp-pasos strong, .cmp-pasos a { color: #fff; }
.cmp-pasos a { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- 13. UTILIDADES / MOTION -------------------------------------- */
.ic { width: 20px; height: 20px; flex: none; color: var(--brand); margin-top: .28rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; top: -60px; left: var(--gutter); z-index: 300; background: var(--ink); color: #fff; padding: .75rem 1.25rem; border-radius: 0 0 var(--r-md) var(--r-md); transition: top .2s var(--ease); }
.skip-link:focus { top: 0; }

[data-reveal] { opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease-ui), transform .5s var(--ease-ui); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: .05s; }
[data-reveal-delay="2"] { transition-delay: .10s; }
[data-reveal-delay="3"] { transition-delay: .15s; }
[data-reveal-delay="4"] { transition-delay: .20s; }
[data-reveal-delay="5"] { transition-delay: .25s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}

@media (max-width: 900px) {
  .nav, .header__actions .btn--ghost { display: none; }
  .burger { display: flex; }
  .searchbar { grid-template-columns: 1fr 1fr; }
  .searchbar__field + .searchbar__field { box-shadow: none; }
  .searchbar .btn { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .searchbar { grid-template-columns: 1fr; padding: .35rem; }
  .searchbar__field { padding: .5rem .8rem; }
  .searchbar__field label { font-size: .6rem; }
  .searchbar__field select { font-size: 16px; }
  .searchbar__field::after { bottom: .85rem; }
  /* El CTA vive en el menú: en pantallas chicas sólo queda la hamburguesa. */
  .header__actions .btn { display: none; }
  .hero { min-height: auto; }
  .hero__inner { padding-block: 4.5rem 2.25rem; }
  .hero__media img { object-position: 62% 45%; }
  .hero__media::after { background: linear-gradient(180deg, rgba(10,12,14,.48) 0%, rgba(10,12,14,.30) 30%, rgba(10,12,14,.62) 66%, rgba(10,12,14,.90) 100%); }
}

@media print {
  .header, .footer, .wa-float, .filters, .contact-card form { display: none !important; }
}
.cmp-met__extra { display: block; margin-top: .2rem; font-size: .74rem; color: var(--ok); font-weight: 600; }
