/* =====================================================================
   LivingHUB Parque Batlle — estilos de la demo
   Paleta tomada de livinghub.uy: azul #0A1F71, rojo #CE0417.
   Tipografías: Quicksand (texto, como el sitio actual) + Poppins (títulos).
   ===================================================================== */

:root {
  --navy: #0a1f71;
  --navy-900: #061450;
  --navy-700: #1a2f87;
  --navy-50: #eef0f8;
  --red: #ce0417;
  --red-700: #a80313;
  --ink: #161b33;
  --muted: #545b73;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --line: #e2e0d9;
  --amber: #8a5a00;
  --amber-bg: #fff3d6;
  --ok: #1d6b3a;

  --font-body: "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 1px 2px rgba(10, 31, 113, .06), 0 8px 24px rgba(10, 31, 113, .08);
  --shadow-lg: 0 20px 50px rgba(6, 20, 80, .18);
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 48px); }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--red); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--navy-900); letter-spacing: -.01em; }
h1 { font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: var(--radius); }
.skip-link:focus { top: 12px; color: #fff; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 46px; padding: .7em 1.3em;
  border: 2px solid transparent; border-radius: var(--radius);
  font-family: var(--font-head); font-weight: 600; font-size: .95rem; letter-spacing: .01em;
  text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); color: #fff; }
.btn-accent { background: var(--red); color: #fff; }
.btn-accent:hover { background: var(--red-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { background: transparent; color: var(--navy); padding-inline: .6em; }
.btn-ghost:hover { color: var(--red); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: var(--navy-50); color: var(--navy); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-block { width: 100%; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }

/* ---------- Aviso demo superior ---------- */
.demo-bar {
  background: var(--navy-900); color: #dfe3f5; font-size: .82rem; text-align: center;
  padding: 6px var(--gutter); line-height: 1.4;
}
.demo-bar strong { color: #fff; }

/* ---------- Encabezado ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy); flex: none; }
.brand img { height: 40px; width: auto; }
.wordmark { display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark .wm-main { font-family: var(--font-head); font-size: 1.6rem; letter-spacing: -.02em; color: var(--navy); }
.wordmark .wm-living { font-weight: 800; }
.wordmark .wm-hub { font-family: var(--font-body); font-weight: 500; letter-spacing: .02em; }
.wordmark .wm-sub { font-family: var(--font-head); font-weight: 700; font-size: .58rem; letter-spacing: .16em; color: var(--red); margin-top: 3px; }
.brand-branch {
  border-left: 2px solid var(--line); padding-left: 12px;
  font-family: var(--font-head); font-weight: 600; font-size: .78rem; line-height: 1.15; color: var(--muted); text-transform: uppercase; letter-spacing: .08em;
}
.brand-branch b { display: block; color: var(--navy); font-size: .92rem; letter-spacing: .02em; text-transform: none; }

.main-nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a.nav-link {
  display: block; padding: 10px 12px; text-decoration: none; color: var(--ink); font-weight: 600; border-radius: var(--radius);
  position: relative;
}
.main-nav a.nav-link:hover { color: var(--navy); }
.main-nav a.nav-link[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 2px; background: var(--red);
}
.nav-cta { margin-left: 10px; }
.nav-fav { position: relative; }
.fav-count {
  position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px;
  background: var(--red); color: #fff; font-size: .7rem; font-weight: 700; display: grid; place-items: center; line-height: 1;
}
.fav-count[hidden] { display: none; }
.menu-toggle {
  display: none; margin-left: auto; width: 46px; height: 46px; border: 1px solid var(--line); background: #fff; border-radius: var(--radius); cursor: pointer;
  align-items: center; justify-content: center;
}
.menu-toggle svg { width: 24px; height: 24px; }

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .brand-branch { font-size: .62rem; padding-left: 10px; }
  .brand-branch b { font-size: .82rem; }
  .main-nav {
    position: fixed; inset: var(--nav-top, 0px) 0 0 0; z-index: 60; margin: 0;
    flex-direction: column; align-items: stretch; gap: 0; padding: 16px var(--gutter) 32px;
    background: #fff; opacity: 0; transform: translateY(-8px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
    overflow-y: auto;
  }
  .main-nav.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav a.nav-link { padding: 16px 4px; font-size: 1.2rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a.nav-link[aria-current="page"]::after { left: 4px; right: auto; width: 32px; bottom: 8px; }
  .nav-cta { margin: 20px 0 0; }
  .nav-fav .fav-count { position: static; display: inline-grid; margin-left: 8px; vertical-align: middle; }
  body.nav-open { overflow: hidden; }
}
@media (min-width: 961px) and (max-width: 1120px) {
  .brand-branch { display: none; }
}

/* ---------- Inicio: hero ---------- */
.hero { position: relative; color: #fff; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: var(--navy-900); }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6, 20, 80, .92) 0%, rgba(6, 20, 80, .72) 42%, rgba(6, 20, 80, .25) 100%);
}
.hero-inner { padding: clamp(64px, 11vw, 140px) 0 clamp(140px, 16vw, 190px); max-width: 720px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head); font-weight: 600; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--red); flex: none; }
.hero .eyebrow { color: #e8ebf8; }
.hero h1 { color: #fff; font-size: clamp(2.4rem, 6.4vw, 4.6rem); margin: 18px 0 20px; }
.hero h1 .dot { color: var(--red); }
.hero p.lead { font-size: clamp(1.05rem, 1.8vw, 1.25rem); color: #e8ebf8; max-width: 560px; }
.hero-credit { position: absolute; right: var(--gutter); top: 12px; font-size: .72rem; color: rgba(255,255,255,.75); }

.search-panel-wrap { position: relative; z-index: 5; margin-top: -96px; }
.search-panel {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: clamp(18px, 3vw, 28px); color: var(--ink);
}
.search-panel h2 { font-size: 1.05rem; margin-bottom: 14px; display: flex; align-items: center; gap: 10px; }
.search-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 14px; align-items: end; }
@media (max-width: 860px) { .search-grid { grid-template-columns: 1fr 1fr; } .search-grid .btn { grid-column: 1 / -1; } }
@media (max-width: 480px) { .search-grid { grid-template-columns: 1fr; } }

/* ---------- Campos ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label, .field .label { font-family: var(--font-head); font-weight: 600; font-size: .82rem; color: var(--navy-900); }
.field .hint { font-size: .8rem; color: var(--muted); }
.select, .input {
  width: 100%; min-height: 48px; padding: 10px 12px; background: #fff;
  border: 1.5px solid #c9c7c0; border-radius: var(--radius); font-weight: 600; font-size: 1rem;
}
.select {
  appearance: none; -webkit-appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' stroke='%230a1f71' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select:hover, .input:hover { border-color: var(--navy); }
.select:focus-visible, .input:focus-visible { outline: 3px solid rgba(206, 4, 23, .35); outline-offset: 0; border-color: var(--navy); }
.input:disabled { background: #f1f0ec; color: #8a8f9f; cursor: not-allowed; }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.5; font-weight: 500; }

/* ---------- Secciones ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head p { color: var(--muted); max-width: 560px; margin: 0; }
.section-head .eyebrow { color: var(--navy); margin-bottom: 10px; }
.section-alt { background: var(--surface); }

/* ---------- Tarjetas de propiedad ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 4 / 3; background: var(--navy-50); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.card:hover .card-media img { transform: scale(1.04); }
.card-tags { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; flex-wrap: wrap; }
.tag {
  display: inline-block; padding: 4px 10px; border-radius: 3px;
  font-family: var(--font-head); font-weight: 600; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.4;
}
.tag-venta { background: var(--navy); color: #fff; }
.tag-alquiler { background: var(--red); color: #fff; }
.tag-reservada { background: var(--amber-bg); color: var(--amber); }
.tag-soft { background: var(--navy-50); color: var(--navy); }
.img-note {
  position: absolute; left: 10px; bottom: 10px; background: rgba(6, 20, 80, .72); color: #fff;
  font-size: .7rem; padding: 2px 8px; border-radius: 3px; letter-spacing: .02em;
}
.fav-btn {
  position: absolute; top: 10px; right: 10px; width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.15);
  transition: transform .2s, color .2s;
}
.fav-btn:hover { transform: scale(1.08); color: var(--red); }
.fav-btn svg { width: 22px; height: 22px; }
.fav-btn[aria-pressed="true"] { color: var(--red); }
.fav-btn[aria-pressed="true"] svg path { fill: currentColor; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-loc { display: flex; align-items: center; gap: 8px; font-size: .85rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card-loc::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--red); }
.card-title { font-size: 1.08rem; margin: 0; }
.card-title a { color: inherit; text-decoration: none; }
.card-title a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.price { font-family: var(--font-head); font-weight: 700; font-size: 1.45rem; color: var(--navy); line-height: 1.1; }
.price small { font-family: var(--font-body); font-size: .85rem; font-weight: 600; color: var(--muted); }
.price-gc { font-size: .85rem; color: var(--muted); margin-top: -4px; }
.specs { list-style: none; margin: 0; padding: 12px 0 0; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .9rem; font-weight: 600; color: var(--ink); }
.specs li { display: inline-flex; align-items: center; gap: 6px; }
.specs svg { width: 18px; height: 18px; color: var(--navy); flex: none; }
.card-actions { margin-top: auto; padding-top: 6px; }
.card-actions .btn { width: 100%; }

/* ---------- Catálogo ---------- */
.page-head { background: var(--navy); color: #fff; padding: clamp(36px, 6vw, 64px) 0 clamp(36px, 5vw, 56px); position: relative; overflow: hidden; }
.page-head h1 { color: #fff; font-size: clamp(2rem, 4.5vw, 3rem); margin: 10px 0 8px; }
.page-head p { color: #d9def3; margin: 0; max-width: 620px; }
.page-head .eyebrow { color: #d9def3; }
.page-head::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%;
  border: 40px solid rgba(206, 4, 23, .55); pointer-events: none;
}
.catalog { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 32px; align-items: start; padding-top: 36px; padding-bottom: 80px; }
.filters {
  position: sticky; top: calc(var(--header-h) + 16px);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px;
}
.filters-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.filters-head h2 { font-size: 1.1rem; margin: 0; }
.filters form { display: grid; gap: 16px; }
.price-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-weight: 600; cursor: pointer; padding: 6px 0; }
.check input { width: 20px; height: 20px; accent-color: var(--red); }
.filters-close { display: none; }
.filters-toggle { display: none; }

.results-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.results-count { font-family: var(--font-head); font-weight: 600; font-size: 1.05rem; margin: 0; color: var(--navy-900); }
.results-count span { color: var(--muted); font-weight: 500; font-family: var(--font-body); font-size: .92rem; }
.sort-field { display: flex; align-items: center; gap: 10px; }
.sort-field label { font-family: var(--font-head); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.sort-field .select { min-width: 220px; }
.notice {
  display: flex; gap: 10px; align-items: flex-start; background: var(--navy-50); color: var(--navy-900);
  border-left: 4px solid var(--navy); padding: 12px 14px; border-radius: var(--radius); font-size: .92rem; margin-bottom: 20px;
}
.notice-warn { background: var(--amber-bg); border-color: #d99a00; color: #4d3300; }
.group-title { display: flex; align-items: center; gap: 12px; font-size: 1rem; margin: 8px 0 16px; color: var(--navy); }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.group + .group { margin-top: 36px; }
.empty {
  text-align: center; background: var(--surface); border: 1px dashed #c9c7c0; border-radius: var(--radius-lg); padding: 48px 24px;
}
.empty h2 { font-size: 1.4rem; }
.empty p { color: var(--muted); max-width: 440px; margin: 0 auto 20px; }
.active-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: -6px 0 18px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; color: var(--ink);
}
.chip:hover { border-color: var(--navy); }
.chip svg { width: 14px; height: 14px; }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; padding-top: 20px; }
  #resultados { scroll-margin-top: 140px; }
  .filters-toggle { display: inline-flex; }
  .filters {
    position: fixed; inset: 0; z-index: 70; border-radius: 0; border: 0; overflow-y: auto; padding: 20px var(--gutter) 100px;
    opacity: 0; transform: translateY(12px); visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility 0s .2s;
  }
  .filters.is-open { opacity: 1; transform: none; visibility: visible; transition: opacity .2s ease, transform .2s ease; }
  .filters-close { display: inline-flex; }
  .filters-apply { position: fixed; left: 0; right: 0; bottom: 0; padding: 12px var(--gutter); background: #fff; border-top: 1px solid var(--line); }
  .sort-field { width: 100%; }
  .sort-field .select { min-width: 0; flex: 1; }
}
@media (min-width: 961px) { .filters-apply { display: none; } }

/* ---------- Ficha ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 20px 0 0; font-size: .9rem; }
.crumbs a { font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.crumbs a:hover { text-decoration: underline; }
.crumbs svg { width: 16px; height: 16px; }
.detail-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px 32px; align-items: end; padding: 18px 0 24px; }
.detail-head h1 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin: 10px 0 8px; }
.detail-head .tags { display: flex; gap: 8px; flex-wrap: wrap; }
.detail-price { text-align: right; }
.detail-price .price { font-size: clamp(1.7rem, 3vw, 2.3rem); }
@media (max-width: 760px) { .detail-head { grid-template-columns: 1fr; } .detail-price { text-align: left; } }

.gallery { position: relative; }
.gallery-main {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900);
  touch-action: pan-y;
}
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: opacity .35s ease; }
.gallery-main img.is-fading { opacity: .25; }
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .95); color: var(--navy); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.2);
}
.gallery-nav:hover { background: #fff; color: var(--red); }
.gallery-nav svg { width: 22px; height: 22px; }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-count {
  position: absolute; right: 14px; bottom: 14px; background: rgba(6, 20, 80, .78); color: #fff; padding: 4px 10px; border-radius: 3px; font-size: .85rem; font-weight: 700;
}
.gallery-main .img-note { left: 14px; bottom: 14px; font-size: .78rem; padding: 4px 10px; }
.thumbs { display: flex; gap: 10px; margin: 12px 0 0; padding: 0; list-style: none; overflow-x: auto; }
.thumbs button {
  width: 110px; aspect-ratio: 4 / 3; padding: 0; border: 3px solid transparent; border-radius: 6px; overflow: hidden; cursor: pointer; background: none; flex: none; opacity: .7;
  transition: opacity .2s, border-color .2s;
}
.thumbs button:hover { opacity: 1; }
.thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 600px) { .gallery-main { aspect-ratio: 4 / 3; } .gallery-nav { width: 44px; height: 44px; } .thumbs button { width: 84px; } }

.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 40px; padding: 32px 0 64px; align-items: start; }
@media (max-width: 960px) { .detail-layout { grid-template-columns: 1fr; gap: 28px; } }
.detail-block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px); margin-bottom: 24px; }
.detail-block h2 { font-size: 1.25rem; margin-bottom: 16px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px; margin: 0; }
.fact { background: var(--bg); border-radius: var(--radius); padding: 14px; }
.fact dt { font-size: .8rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.fact dd { margin: 4px 0 0; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--navy-900); }
.amenities { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px 20px; }
.amenities li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.amenities svg { width: 20px; height: 20px; color: var(--red); flex: none; }
.desc p { color: #2a3050; }
.map-box { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; background: var(--navy-50); border: 1px solid var(--line); }
.map-box iframe { width: 100%; height: 100%; border: 0; filter: saturate(.85); }
.map-zone {
  position: absolute; left: 50%; top: 50%; width: 46%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: rgba(206, 4, 23, .12); border: 2px dashed var(--red); pointer-events: none;
}
.map-caption { display: flex; gap: 8px; align-items: flex-start; font-size: .88rem; color: var(--muted); margin: 12px 0 0; }
.map-caption strong { color: var(--ink); }

.aside-card { position: sticky; top: calc(var(--header-h) + 16px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
.aside-card .price { font-size: 1.9rem; }
.aside-card .ref { font-size: .9rem; color: var(--muted); margin: 6px 0 18px; }
.aside-card .ref strong { color: var(--ink); font-family: var(--font-head); letter-spacing: .03em; }
.aside-card .btn + .btn { margin-top: 10px; }
.aside-card .small { font-size: .82rem; color: var(--muted); margin: 14px 0 0; }
@media (max-width: 960px) { .aside-card { position: static; } }

.state-msg { padding: 72px 0 96px; text-align: center; }
.state-msg .icon-big { width: 72px; height: 72px; border-radius: 50%; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; margin: 0 auto 20px; }
.state-msg .icon-big svg { width: 34px; height: 34px; }
.state-msg p { color: var(--muted); max-width: 520px; margin: 0 auto 24px; }

/* ---------- Franquicia / propietarios ---------- */
.split { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.split-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; max-height: 560px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-media .img-note { left: 14px; bottom: 14px; }
.split-media::before {
  content: ""; position: absolute; left: 0; top: 0; width: 38%; height: 8px; background: var(--red); z-index: 2;
}
.pillars { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 18px; }
.pillars li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.pillars .p-icon { width: 44px; height: 44px; border-radius: 50%; background: var(--navy-50); color: var(--navy); display: grid; place-items: center; }
.pillars .p-icon svg { width: 22px; height: 22px; }
.pillars h3 { margin: 4px 0 2px; font-size: 1.02rem; }
.pillars p { margin: 0; color: var(--muted); font-size: .97rem; }
.pending {
  background: var(--amber-bg); color: #4d3300; border-radius: var(--radius); padding: 10px 14px; font-size: .88rem; border-left: 4px solid #d99a00;
}

.owners {
  position: relative; overflow: hidden; background: var(--navy); color: #fff; border-radius: var(--radius-lg);
  padding: clamp(32px, 6vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: center;
}
.owners h2 { color: #fff; margin-bottom: 10px; }
.owners p { color: #d9def3; margin: 0; max-width: 560px; }
.owners::before {
  content: ""; position: absolute; right: -60px; bottom: -120px; width: 260px; height: 260px; border-radius: 50%; background: var(--red); opacity: .9; z-index: 0;
}
.owners > * { position: relative; z-index: 1; }
@media (max-width: 760px) { .owners { grid-template-columns: 1fr; } }

.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 20px; }
.contact-item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.contact-item h3 { font-size: 1rem; margin-bottom: 6px; }
.contact-item p { margin: 0; color: var(--muted); }
.contact-item .btn { white-space: normal; width: 100%; text-align: center; }
.btn-wrap { white-space: normal; text-align: center; }

/* ---------- Ventana de consulta ---------- */
dialog.modal {
  width: min(560px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); color: var(--ink); background: #fff; overflow: auto;
}
dialog.modal::backdrop { background: rgba(6, 20, 80, .55); backdrop-filter: blur(2px); }
dialog.modal[open] { animation: modal-in .22s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 0; }
.modal-head h2 { font-size: 1.3rem; margin: 0; }
.modal-close { width: 44px; height: 44px; border: 0; background: var(--bg); border-radius: 50%; cursor: pointer; display: grid; place-items: center; flex: none; color: var(--navy); }
.modal-close:hover { background: var(--navy-50); }
.modal-close svg { width: 20px; height: 20px; }
.modal-body { padding: 16px 24px 24px; }
.modal-body .intro { color: var(--muted); font-size: .95rem; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.modal-actions .btn { flex: 1 1 200px; }
.copy-status { min-height: 1.5em; font-size: .9rem; font-weight: 700; color: var(--ok); margin: 10px 0 0; }
.demo-warning { margin-top: 16px; }

/* ---------- Pie ---------- */
.site-footer { background: var(--navy-900); color: #c9cfe8; padding: 56px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer .wordmark .wm-main { color: #fff; }
.site-footer h2 { color: #fff; font-size: .9rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: #fff; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #ffb3ba; text-decoration: underline; }
.footer-brand p { margin: 14px 0 0; max-width: 360px; font-size: .95rem; }
.disclaimer {
  margin-top: 40px; padding: 16px 18px; border: 1px solid rgba(255,255,255,.22); border-radius: var(--radius);
  color: #fff; font-size: .9rem; display: flex; gap: 10px; align-items: flex-start;
}
.disclaimer svg { width: 20px; height: 20px; flex: none; color: #ffb3ba; margin-top: 2px; }
.footer-bottom { margin-top: 22px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: .82rem; color: #9aa3c9; }
.footer-bottom a { color: #c9cfe8; font-weight: 500; }

/* ---------- Animaciones discretas ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }

/* Ajustes */
.notice svg, .map-caption svg { width: 20px; height: 20px; flex: none; margin-top: 1px; }
.filters .filters-close { display: none; }
@media (max-width: 960px) { .filters .filters-close { display: grid; } .filters-head { gap: 8px; } .filters-head h2 { margin-right: auto; } }
@media (max-width: 960px) { .detail-layout > .aside-card { order: -1; } }
