/* =========================================================
   Sistema visual: verde pino, niebla fría y bronce.
   Cambiá estas variables y se actualiza toda la web.
   ========================================================= */
:root {
  /* Negros (antes eran los verdes: se mantienen los nombres para no tocar el resto del archivo) */
  --pine-900: #121212;
  --pine-700: #1f1f1f;
  --pine-500: #6b6457;
  --pine-100: #e7e2d8;
  /* Fondos y textos */
  --mist: #f3f1ec;
  --paper: #fbfaf7;
  --ink: #161616;
  --slate: #5f5b54;
  /* Dorado del logo */
  --brass: #b08a3e;
  --brass-600: #94712f;
  --wa: #25d366;

  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font-sans: "Figtree", ui-sans-serif, system-ui, sans-serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 76px;
  --radius: 20px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--brass); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: #fff; padding: .6rem 1rem; border-radius: 10px; }
.skip:focus { top: 1rem; }

.container { width: 100%; max-width: 78rem; margin-inline: auto; padding-inline: 1.25rem; }
@media (min-width: 768px) { .container { padding-inline: 2rem; } }

/* ---------- tipografía ---------- */
.h-xl, .h-lg, .h-md, .h-sm, .hero__title, .brand { font-family: var(--font-display); letter-spacing: -0.02em; line-height: 1.08; text-wrap: balance; }
.h-xl { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 700; }
.h-lg { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 700; }
.h-md { font-size: 1.6rem; font-weight: 700; }
.h-sm { font-size: 1.2rem; font-weight: 700; }
.lead { font-size: 1.15rem; margin-top: 1rem; }
.muted { color: var(--slate); }
.small { font-size: .9rem; }
.strong { font-weight: 600; }
.narrow { max-width: 36rem; }
.center { text-align: center; }
.center-block { margin-inline: auto; }
.mt-md { margin-top: 2rem; }
.mt-lg { margin-top: 3.5rem; }
.eyebrow-soft { color: var(--pine-500); font-weight: 600; }
.with-icon { display: flex; align-items: center; gap: .4rem; margin-top: .75rem; }

.icon { width: 1.25rem; height: 1.25rem; flex: none; }
.icon-sm { width: 1rem; height: 1rem; }
.icon-lg { width: 1.75rem; height: 1.75rem; }

/* ---------- botones y enlaces ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  border-radius: 999px; padding: .85rem 1.5rem; font-weight: 600; line-height: 1.2;
  transition: transform .15s var(--ease), background-color .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-sm { padding: .6rem 1.1rem; font-size: .95rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--brass); color: var(--ink); }
.btn-primary:hover { background: var(--brass-600); }
.btn-dark { background: var(--pine-700); color: var(--paper); }
.btn-dark:hover { background: var(--pine-900); }
.btn-ghost { border: 1.5px solid currentColor; color: var(--pine-700); }
.btn-ghost:hover { background: var(--mist); }
.btn-wa { background: var(--wa); color: var(--ink); }
.btn-wa:hover { background: #1fbd5a; }
.link { font-weight: 600; color: var(--pine-700); text-underline-offset: 4px; }
.link:hover { text-decoration: underline; }
.link-light { color: var(--pine-100); font-weight: 500; text-underline-offset: 4px; }
.link-light:hover { text-decoration: underline; color: #fff; }

.tag {
  display: inline-block; border-radius: 999px; padding: .25rem .75rem;
  background: rgba(250, 251, 249, .95); color: var(--pine-700); font-size: .85rem; font-weight: 600;
}

/* =========================================================
   Header: transparente sobre la portada, sólido al scrollear
   ========================================================= */
/* Franja superior con la marca */
.topbar { position: sticky; top: 0; z-index: 50; background: var(--pine-900); color: var(--paper); }
.topbar__row { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; font-size: 1.35rem; font-weight: 800; }
.brand img { height: 46px; width: auto; }
@media (max-width: 520px) { .brand img { height: 34px; } }
.footer__logo { width: 190px; height: auto; }
.topbar__actions { display: flex; align-items: center; gap: 1.5rem; }
.topbar__link { display: none; align-items: center; gap: .45rem; font-size: .95rem; color: var(--pine-100); transition: color .2s; }
.topbar__link:hover { color: #fff; }

/* Barra de menú: todos los links a la vista */
.navbar { display: none; position: sticky; top: 0; z-index: 49; background: var(--pine-900); color: var(--paper); box-shadow: 0 1px 0 rgba(0, 0, 0, .25); }
.navbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 52px; border-top: 1px solid rgba(220, 230, 224, .22); }
.navbar__links { display: flex; align-items: center; }
.navbar__links li + li { border-left: 1px solid rgba(220, 230, 224, .35); }
.navbar__links a {
  position: relative; display: block; padding: .3rem .85rem;
  font-family: var(--font-sans); font-size: .92rem; font-weight: 600; letter-spacing: .05em;
  text-transform: uppercase; letter-spacing: .03em; white-space: nowrap;
  color: var(--pine-100); transition: color .2s;
}
.navbar__links li:first-child a { padding-left: 0; }
.navbar__links a::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: -.55rem; height: 2px; background: var(--brass);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.navbar__links li:first-child a::after { left: 0; }
.navbar__links a:hover { color: #fff; }
.navbar__links a:hover::after, .navbar__links a[aria-current="page"]::after { transform: scaleX(1); }
.navbar__links a[aria-current="page"] { color: #fff; }

.navbar__search { display: none; align-items: center; flex: 0 1 15rem; min-width: 10rem; background: #fff; border-radius: 6px; }
.navbar__search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .45rem .7rem; font-size: .92rem; color: var(--ink); }
.navbar__search input:focus { outline: none; }
.navbar__search:focus-within { box-shadow: 0 0 0 2px var(--brass); }
.navbar__search button { display: grid; place-items: center; width: 2.25rem; height: 2.1rem; color: var(--slate); }
.navbar__search button:hover { color: var(--pine-700); }

/* Escritorio: se ve la barra y la franja deja de ser fija; celular: botón Menú */
@media (min-width: 980px) {
  .topbar { position: static; }
  .navbar { display: block; }
  .topbar .menu-btn { display: none; }
  .topbar__link { display: inline-flex; }
}
@media (min-width: 1240px) { .navbar__search { display: flex; } }

/* Botón Menú: dos líneas que se cruzan al abrir */
.menu-btn { display: inline-flex; align-items: center; gap: .7rem; font-weight: 600; padding: .5rem 0; }
.menu-btn__lines { position: relative; width: 26px; height: 12px; }
.menu-btn__lines span {
  position: absolute; left: 0; width: 100%; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .4s var(--ease), top .4s var(--ease);
}
.menu-btn__lines span:first-child { top: 0; }
.menu-btn__lines span:last-child { top: 10px; width: 70%; }
.menu-btn:hover .menu-btn__lines span:last-child { width: 100%; }
.menu-btn.is-open .menu-btn__lines span { top: 5px; width: 100%; }
.menu-btn.is-open .menu-btn__lines span:first-child { transform: rotate(45deg); }
.menu-btn.is-open .menu-btn__lines span:last-child { transform: rotate(-45deg); }

/* =========================================================
   Menú a pantalla completa
   ========================================================= */
.menu {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto;
  background: var(--pine-900); color: var(--paper);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .7s var(--ease);
}
.menu.is-open { clip-path: inset(0 0 0 0); }
.menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.menu__body { display: grid; gap: 3rem; padding-block: 2rem 4rem; }
@media (min-width: 900px) { .menu__body { grid-template-columns: 1.6fr 1fr; align-items: end; min-height: calc(100dvh - var(--header-h)); } }

.menu__list li { overflow: hidden; }
.menu__link {
  display: inline-block; padding-block: .15em;
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05;
  font-size: clamp(2.3rem, 6.5vw, 4.8rem);
  transform: translateY(105%); opacity: 0;
  transition: transform .7s var(--ease), opacity .4s, color .2s;
  transition-delay: 0s;
}
.menu.is-open .menu__link { transform: none; opacity: 1; transition-delay: calc(.18s + var(--i) * 60ms); }
.menu__link:hover { color: var(--brass); }
.menu__aside {
  display: grid; gap: 1.75rem; align-content: end; color: var(--pine-100);
  opacity: 0; transform: translateY(16px); transition: opacity .5s .45s, transform .6s .45s var(--ease);
}
.menu.is-open .menu__aside { opacity: 1; transform: none; }
.menu__aside .btn { justify-self: start; }
.menu__label { color: var(--paper); font-weight: 600; margin-bottom: .35rem; }
.menu__aside a:not(.btn):hover { color: #fff; text-decoration: underline; }
body.menu-open { overflow: hidden; }

.socials { display: flex; gap: .6rem; }
.socials a {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(220, 230, 224, .3); transition: background-color .2s;
}
.socials a:hover { background: var(--pine-700); }

/* =========================================================
   Portada
   ========================================================= */
.hero { position: relative; min-height: calc(100svh - 116px); display: flex; align-items: flex-end; color: var(--paper); background: var(--pine-900); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: hero-zoom 14s var(--ease) both; }
.hero__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 48, 42, .55) 0%, rgba(20, 48, 42, .15) 35%, rgba(20, 48, 42, .85) 100%);
}
.hero__inner { position: relative; padding-top: 3rem; padding-bottom: clamp(3rem, 9vh, 6rem); }
.hero__title { max-width: 14ch; font-size: clamp(2.8rem, 8vw, 6.2rem); font-weight: 700; letter-spacing: -0.035em; line-height: .98; }
.hero__title, .search { animation: rise 1s var(--ease) both; }
.search { animation-delay: .15s; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; margin-top: 2rem; font-family: var(--font-sans); font-size: 1rem; }
/* Fotos de portada: movimiento lento y fundido entre ellas */
.hero__slides { position: absolute; inset: 0; overflow: hidden; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.8s ease;
}
.hero__slide.is-active { opacity: 1; }
.hero__slide.is-active, .hero__slide.is-leaving { animation: kenburns 9s ease-out both; }
.hero__slide:nth-child(even).is-active, .hero__slide:nth-child(even).is-leaving { animation-name: kenburns-alt; }
.hero__slides[data-count="1"] .hero__slide { animation: kenburns 20s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.02); } to { transform: scale(1.14) translate(-2%, -1.5%); } }
@keyframes kenburns-alt { from { transform: scale(1.14) translate(2%, 1%); } to { transform: scale(1.02); } }
@keyframes hero-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Buscador en forma de frase */
.sentence {
  margin-top: 2.25rem; max-width: 46rem;
  font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 3vw, 2.1rem); line-height: 1.7;
}
.sentence__select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: transparent; border: 0; border-bottom: 3px solid var(--brass); border-radius: 0;
  padding: 0 1.15em 0 .05em; font: inherit; color: inherit;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: calc(100% - .55em) 58%, calc(100% - .3em) 58%;
  background-size: .25em .25em; background-repeat: no-repeat;
  transition: border-color .2s;
}
.sentence__select:hover { border-color: #e2b55a; }
.sentence__select option { color: var(--ink); font-size: 1rem; font-family: var(--font-sans); }

/* Buscador de la portada: pestañas + caja de texto */
.search { margin-top: 2.25rem; width: 100%; max-width: 44rem; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; justify-items: start; }
.search__tabs {
  display: inline-flex; gap: .25rem; margin: 0; padding: .3rem; border: 0; border-radius: 999px;
  background: rgba(250, 251, 249, .22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.search__tabs label { position: relative; cursor: pointer; }
.search__tabs input { position: absolute; opacity: 0; pointer-events: none; }
.search__tabs span {
  display: block; padding: .55rem 1.15rem; border-radius: 999px;
  font-weight: 600; color: var(--paper); transition: background-color .25s var(--ease), color .25s var(--ease);
}
.search__tabs label:hover span { background: rgba(250, 251, 249, .15); }
.search__tabs input:checked + span { background: var(--paper); color: var(--pine-900); }
.search__tabs input:focus-visible + span { outline: 3px solid var(--brass); outline-offset: 2px; }
.search__box {
  position: relative; width: 100%; display: flex; align-items: center; gap: .5rem;
  background: #fff; border-radius: 999px; padding: .4rem .4rem .4rem 1.25rem;
  box-shadow: 0 10px 30px rgba(20, 48, 42, .25);
}
.search__icon { color: var(--slate); }
.search__input {
  flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .25rem;
  font-size: 1.05rem; color: var(--ink);
}
.search__input::placeholder { color: #8a958f; }
.search__input:focus { outline: none; }
.search__box:focus-within { box-shadow: 0 0 0 3px var(--brass), 0 10px 30px rgba(20, 48, 42, .25); }
.search__all { margin-top: .25rem; }
@media (max-width: 520px) {
  .search__tabs { width: 100%; }
  .search__tabs label { flex: 1; }
  .search__tabs span { padding: .55rem .4rem; text-align: center; font-size: .92rem; }
  .search__submit { padding-inline: 1rem; }
}

.filters__q { grid-column: 1 / -1; }

.notice { background: rgba(194, 145, 47, .16); text-align: center; padding: .75rem 1.25rem; font-size: .95rem; }

/* =========================================================
   Secciones
   ========================================================= */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.page-top { padding-top: clamp(2rem, 5vw, 3.5rem); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 2.5rem; }
.section__head .lead { margin-top: .5rem; }

/* =========================================================
   Paneles destacados: el activo se expande y muestra el detalle
   ========================================================= */
.panels { display: flex; gap: 12px; height: clamp(440px, 66vh, 620px); }
.panel {
  position: relative; flex: 1 1 0; min-width: 0; border-radius: var(--radius); overflow: hidden;
  color: var(--paper); background: var(--pine-700);
  transition: flex-grow .7s var(--ease);
}
.panel.is-active { flex-grow: 4; }
.panel__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 1.2s var(--ease); }
.panel.is-active .panel__img { transform: scale(1); }
.panel__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(20, 48, 42, 0) 30%, rgba(20, 48, 42, .9) 100%);
}
.panel:not(.is-active) .panel__shade { background: rgba(20, 48, 42, .45); }

/* Panel cerrado: nombre de la zona en vertical */
.panel__peek {
  position: absolute; left: 50%; bottom: 1.5rem; transform: translateX(-50%) rotate(180deg);
  writing-mode: vertical-rl; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em;
  transition: opacity .3s;
}
.panel.is-active .panel__peek { opacity: 0; }

/* Panel abierto: detalle que aparece con un pequeño retraso */
.panel__details {
  position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.25rem, 3vw, 2.25rem);
  display: grid; gap: .65rem; justify-items: start; max-width: 40rem;
  opacity: 0; transform: translateY(20px); pointer-events: none;
  transition: opacity .25s, transform .4s var(--ease);
}
.panel.is-active .panel__details { opacity: 1; transform: none; transition-delay: .3s; pointer-events: auto; }
.panel__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.1; letter-spacing: -0.02em; }
.panel__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.1rem; font-weight: 600; font-size: 1.05rem; }
.panel__meta span { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; color: var(--pine-100); }
.panel__text { color: var(--pine-100); max-width: 34rem; }
.panel__cta { display: inline-flex; align-items: center; gap: .4rem; margin-top: .35rem; font-weight: 600; border-bottom: 2px solid var(--brass); padding-bottom: .15rem; }

/* En celulares: carrusel deslizable con el detalle siempre visible */
@media (max-width: 899px) {
  .panels { height: auto; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -1.25rem; padding-inline: 1.25rem; }
  .panels::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 84%; height: 480px; scroll-snap-align: center; }
  .panel__peek { display: none; }
  .panel__img { transform: none; }
  .panel__shade, .panel:not(.is-active) .panel__shade { background: linear-gradient(180deg, rgba(20, 48, 42, 0) 25%, rgba(20, 48, 42, .9) 100%); }
  .panel__details { opacity: 1; transform: none; pointer-events: auto; }
  .panel__text { display: none; }
}

/* =========================================================
   Tarjetas de propiedades
   ========================================================= */
.cards { display: grid; gap: 3rem 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { position: relative; }
.card__link { display: block; border-radius: var(--radius); }
.card__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.card__link:hover .card__media img { transform: scale(1.04); }
.card__media .tag { position: absolute; left: .75rem; top: .75rem; }
.card__empty { display: grid; place-items: center; width: 100%; height: 100%; min-height: 200px; color: var(--slate); }
.card__body { margin-top: 1rem; display: grid; gap: .2rem; }
.card__price { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; }
.card__title { font-size: 1.02rem; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card__link:hover .card__title { color: var(--pine-700); }

.fav {
  position: absolute; right: .75rem; top: .75rem; display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%; background: rgba(250, 251, 249, .95); color: var(--pine-700);
  transition: background-color .2s, color .2s;
}
.fav[aria-pressed="true"], .fav-btn[aria-pressed="true"] { background: var(--brass); color: var(--ink); border-color: var(--brass); }
[data-fav][aria-pressed="true"] svg { fill: currentColor; }

/* ---------- banda de tasación y valores ---------- */
.band { display: grid; gap: 2rem; background: var(--mist); border-radius: 32px; padding: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 900px) { .band { grid-template-columns: 1.4fr 1fr; align-items: center; } }
.band__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
@media (min-width: 900px) { .band__actions { justify-content: flex-end; } }
.values { display: grid; gap: 2.5rem; margin-top: 2.5rem; }
@media (min-width: 768px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values > div { border-left: 2px solid var(--brass); padding-left: 1.25rem; display: grid; gap: .5rem; }

/* =========================================================
   Formularios
   ========================================================= */
.label { display: block; margin-bottom: .35rem; font-size: .9rem; font-weight: 600; }
.field {
  width: 100%; border-radius: 12px; border: 1.5px solid var(--pine-100); background: #fff;
  padding: .75rem .9rem; color: var(--ink); transition: border-color .2s;
}
.field:focus { outline: none; border-color: var(--pine-500); }
textarea.field { resize: vertical; min-height: 7rem; }
.form { margin-top: 1.25rem; }
.form__fields { display: grid; gap: 1rem; }
.form__fields .btn { justify-self: start; }
.grid-2 { display: grid; gap: 1rem; }
@media (min-width: 560px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.form__error { border-radius: 12px; background: #fdecec; color: #8a1f1f; padding: .75rem 1rem; font-size: .95rem; }
.form__success { border-radius: 16px; background: var(--pine-100); color: var(--pine-900); padding: 1.25rem; display: grid; gap: .25rem; animation: rise .5s var(--ease) both; }
.hp { position: absolute; left: -9999px; }
.check { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; accent-color: var(--pine-700); }

/* ---------- filtros del listado ---------- */
.filters { display: grid; gap: 1rem; margin: 2rem 0 3rem; padding: 1.25rem; border-radius: 24px; background: var(--mist); }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .filters { grid-template-columns: repeat(4, 1fr) 1.5fr 1fr; } }
.filters__foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.filters__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }
.price-field { display: flex; gap: .5rem; }
.price-field select { width: 5rem; flex: none; padding-inline: .5rem; }
.price-field input { min-width: 0; }
.js .filters [data-filters-submit] { display: none; }
.empty { padding: 4rem 0; text-align: center; display: grid; gap: .75rem; justify-items: center; }

/* =========================================================
   Ficha de propiedad
   ========================================================= */
.crumbs a:hover { color: var(--pine-700); }
.detail__grid { display: grid; gap: 2.5rem; margin-top: 1.5rem; }
@media (min-width: 1024px) { .detail__grid { grid-template-columns: minmax(0, 1fr) 23rem; } }
.detail__head { margin-top: 2rem; display: grid; gap: .5rem; }
.detail__section { margin-top: 2.75rem; display: grid; gap: 1rem; }
.detail__aside { align-self: start; }
@media (min-width: 1024px) { .detail__aside { position: sticky; top: calc(52px + 1.5rem); } }
.detail__price { font-family: var(--font-display); font-weight: 700; font-size: 2rem; margin: .25rem 0 1.25rem; }
.detail__aside .btn + .btn { margin-top: .75rem; }
.detail__aside hr { border: 0; border-top: 1px solid var(--pine-100); margin: 1.5rem 0; }
.box { border: 1px solid var(--pine-100); background: #fff; border-radius: 28px; padding: clamp(1.25rem, 3vw, 2rem); border-color: rgba(0, 0, 0, .06);
  box-shadow: 0 2px 6px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .12);}

.gallery { position: relative; }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none;
  aspect-ratio: 16 / 10; border-radius: 28px; background: var(--mist);
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__track > * { flex: 0 0 100%; width: 100%; height: 100%; object-fit: cover; scroll-snap-align: start; }
.gallery__nav {
  position: absolute; top: calc(50% - 2.75rem); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  background: rgba(250, 251, 249, .95); color: var(--pine-700); box-shadow: 0 2px 10px rgba(22, 32, 27, .15);
  transition: transform .15s var(--ease), background-color .2s;
}
.gallery__nav:hover { background: #fff; }
.gallery__nav:active { transform: scale(.94); }
.gallery__nav--prev { left: .9rem; }
.gallery__nav--next { right: .9rem; }
.gallery__count { position: absolute; right: .9rem; top: .9rem; border-radius: 999px; background: rgba(22, 32, 27, .7); color: var(--paper); padding: .25rem .8rem; font-size: .9rem; }
.gallery__thumbs { display: flex; gap: .5rem; overflow-x: auto; margin-top: .75rem; padding: 2px 2px 4px; }
.gallery__thumbs button { flex: none; border-radius: 12px; overflow: hidden; opacity: .55; transition: opacity .2s, box-shadow .2s; }
.gallery__thumbs button:hover, .gallery__thumbs button.is-active { opacity: 1; }
.gallery__thumbs button.is-active { box-shadow: 0 0 0 2px var(--pine-700); }
.gallery__thumbs img { width: 96px; height: 66px; object-fit: cover; }
@media (max-width: 640px) { .gallery__track { aspect-ratio: 4 / 3; border-radius: 20px; } }

.facts { display: grid; gap: .75rem; grid-template-columns: repeat(2, 1fr); margin-top: 2rem; }
@media (min-width: 640px) { .facts { grid-template-columns: repeat(5, 1fr); } }
.facts > div { background: var(--mist); border-radius: 16px; padding: 1rem; }
.facts dt { display: flex; align-items: center; gap: .4rem; color: var(--slate); font-size: .9rem; }
.facts dd { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; margin-top: .2rem; }
.prose { display: grid; gap: 1rem; max-width: 65ch; font-size: 1.08rem; line-height: 1.7; }
.map { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: 24px; background: var(--mist); }
.share { display: flex; flex-wrap: wrap; gap: .5rem; }

/* ---------- páginas internas ---------- */
.split { display: grid; gap: 3rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 28rem; align-items: start; } }
.steps { display: grid; gap: 1.5rem; margin-top: 1.5rem; }
.steps li { display: flex; gap: 1rem; }
.steps__n { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--pine-700); color: var(--paper); font-family: var(--font-display); font-weight: 700; }
.contact-data { display: grid; gap: 1.5rem; margin: 2.5rem 0; }
@media (min-width: 640px) { .contact-data { grid-template-columns: 1fr 1fr; } }
.contact-data dt { color: var(--slate); font-size: .9rem; }
.contact-data dd { font-weight: 600; margin-top: .2rem; }
.two-cols { display: grid; gap: 2rem; margin-top: 1rem; }
@media (min-width: 768px) { .two-cols { grid-template-columns: 1fr 1fr; } }
.team { display: grid; gap: 2rem; margin-top: 2rem; }
@media (min-width: 640px) { .team { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team img { width: 100%; aspect-ratio: 6 / 7; object-fit: cover; border-radius: 28px; margin-bottom: 1rem; }

/* =========================================================
   Footer y WhatsApp flotante
   ========================================================= */
.footer { margin-top: 6rem; background: var(--pine-900); color: var(--pine-100); }
.footer__grid { display: grid; gap: 2.5rem; padding-block: 3.5rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.brand--light { color: var(--paper); font-size: 1.6rem; }
.footer__text { margin: .75rem 0 1.5rem; max-width: 24rem; opacity: .85; }
.footer__title { color: var(--paper); font-weight: 600; margin-bottom: .75rem; }
.footer__list { display: grid; gap: .5rem; font-style: normal; align-content: start; }
.footer__list a:hover { color: #fff; }
.footer__legal { border-top: 1px solid rgba(220, 230, 224, .15); font-size: .9rem; opacity: .75; }
.footer__legal-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; padding-block: 1.25rem; }

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 40; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 50%; background: var(--wa); color: #fff;
  box-shadow: 0 8px 24px rgba(20, 48, 42, .25); transition: transform .2s var(--ease);
}
.wa-float:hover { transform: scale(1.06); }
.wa-float:active { transform: scale(.95); }
.menu-open .wa-float { opacity: 0; pointer-events: none; }

/* =========================================================
   Transición entre páginas (Chrome y Edge): la foto viaja de la tarjeta a la ficha
   ========================================================= */
@view-transition { navigation: auto; }
::view-transition-group(*) { animation-duration: .45s; animation-timing-function: var(--ease); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  @view-transition { navigation: none; }
}

/* Aviso de nuevas propiedades, texto legal de formularios y página de privacidad */
.alert-box { display: grid; gap: 2rem; margin-top: 5rem; padding-top: 3rem; border-top: 1px solid var(--pine-100); }
@media (min-width: 1024px) { .alert-box { grid-template-columns: 1fr 28rem; align-items: start; } }
.alert-box__search { margin-top: 1.5rem; padding: 1rem 1.25rem; border-left: 3px solid var(--brass); background: var(--mist); border-radius: 0 12px 12px 0; font-weight: 600; }
.form__legal { font-size: .85rem; color: var(--slate); }
.form__legal a, .footer__privacy { text-decoration: underline; text-underline-offset: 3px; }
.legal { max-width: 46rem; }
.legal h2 { margin: 2.5rem 0 .75rem; }
.legal p + p { margin-top: .75rem; }
.legal ul { list-style: disc; padding-left: 1.25rem; display: grid; gap: .4rem; margin-bottom: .75rem; }
.legal a { color: var(--brass-600); text-decoration: underline; }
.legal > p.muted { margin-top: .75rem; }

/* Paleta negro y dorado: sombras y bordes */
.hero__shade { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.15) 35%, rgba(0,0,0,.85) 100%); }
.panel__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.88) 100%); }
.panel:not(.is-active) .panel__shade { background: rgba(0,0,0,.45); }
@media (max-width: 899px) {
  .panel__shade, .panel:not(.is-active) .panel__shade { background: linear-gradient(180deg, rgba(0,0,0,0) 25%, rgba(0,0,0,.88) 100%); }
}
.navbar__row { border-top-color: rgba(255,255,255,.14); }
.navbar__links li + li { border-left-color: rgba(255,255,255,.25); }
.socials a { border-color: rgba(255,255,255,.25); }
.footer__legal { border-top-color: rgba(255,255,255,.12); }
.eyebrow-soft { color: var(--brass-600); }
.topbar__link { white-space: nowrap; }
.brand { flex: none; }
