/* ============ ENTREAGENTES — Sistema de diseño ============
   Identidad: "sello de lacre sobre escritura" — lacre + tinta + papel frío.
   Registro producto: Restrained. Lacre SOLO en acción primaria, selección y estado. */
:root {
  --brand: #A93226;          /* rojo lacre  oklch(.49 .19 28) */
  --brand-d: #8A2A1F;
  --brand-soft: #F7ECEA;
  --ink: #161413;
  --ink-2: #3B3735;
  --muted: #6E6862;          /* AA 4.5+ sobre blanco */
  --bg: #FAFAF9;
  --surface: #FFFFFF;
  --surface-2: #F2F1EF;
  --line: #E5E3E0;
  --ok: #1E7A45;   --ok-soft: #E7F3EC;
  --warn: #8A6110; --warn-soft: #F8F0DC;
  --err: #B3261E;  --err-soft: #F9E9E7;
  --wa: #1FA855;
  --info-soft: #EAEFF5; --info: #3D566E;
  --radius: 12px; --radius-s: 8px;
  --shadow-sm: 0 2px 8px rgba(22,20,19,.08);
  --display: 'Sora', 'Inter', sans-serif;
  --sans: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  --z-drop: 30; --z-sticky: 40; --z-backdrop: 50; --z-modal: 60; --z-toast: 70;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 15px; color: var(--ink); background: var(--bg); line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
h1,h2,h3,h4 { line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; font-weight: 700; }
.h-display { font-family: var(--display); }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 600;
  padding: 11px 20px; border-radius: 999px; border: none; cursor: pointer; line-height: 1; min-height: 44px;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-d); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-2); }
.btn-ghost { background: transparent; border: 1.5px solid var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { filter: brightness(1.06); }
.btn-sm { padding: 7px 14px; min-height: 34px; font-size: 13px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-icon { padding: 0; width: 40px; min-height: 40px; border-radius: 50%; }

/* ---------- Badges y estados ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; line-height: 1.5; letter-spacing: .01em; }
.badge-exclusiva { background: var(--ok-soft); color: var(--ok); }
.badge-compartida { background: var(--warn-soft); color: var(--warn); }
.badge-verificado { background: var(--brand-soft); color: var(--brand-d); }
.badge-neutral { background: var(--surface-2); color: var(--ink-2); }
.badge-fundador { background: var(--ink); color: #fff; }
.st { display: inline-flex; font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.st-publicada, .st-disponible, .st-confirmada, .st-realizada, .st-activo, .st-aprobado, .st-respondida, .st-verificado { background: var(--ok-soft); color: var(--ok); }
.st-separada, .st-en_negociacion, .st-pendiente, .st-reprogramada, .st-en_revision, .st-requiere_info, .st-alianza_pendiente, .st-seguimiento { background: var(--warn-soft); color: var(--warn); }
.st-vendida, .st-alquilada { background: var(--info-soft); color: var(--info); }
.st-pausada, .st-no_disponible, .st-vencida, .st-borrador, .st-invitado, .st-info_mercado, .st-contacto_no_verificado { background: var(--surface-2); color: var(--muted); }
.st-rechazada, .st-cancelada, .st-suspendido, .st-rechazado, .st-no_asistio { background: var(--err-soft); color: var(--err); }

/* ---------- Formularios ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
input, select, textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: var(--radius-s); padding: 10px 12px; min-height: 44px; }
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input::placeholder, textarea::placeholder { color: #8C857E; }
.field { margin-bottom: var(--s4); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; color: var(--ink); cursor: pointer; padding: 6px 0; }
.check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); flex: none; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 4px; }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 84px; }
.pw-eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: var(--surface-2);
  border: none; border-radius: 6px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.msg-ok { background: var(--ok-soft); color: var(--ok); padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500; margin-bottom: var(--s4); }
.msg-err { background: var(--err-soft); color: var(--err); padding: 12px 16px; border-radius: var(--radius-s); font-size: 14px; font-weight: 500; margin-bottom: var(--s4); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-pad { padding: var(--s5); }

/* ---------- Layout app ---------- */
.app-shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface-2); border-right: 1px solid var(--line); padding: var(--s4) var(--s3);
  display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side-logo { display: flex; align-items: center; gap: 9px; padding: 8px 10px 18px; }
.side-logo .seal { width: 30px; height: 30px; border-radius: 8px; background: var(--brand); color: #fff; display: grid;
  place-items: center; font-family: var(--display); font-weight: 800; font-size: 15px; flex: none; }
.side-logo b { font-family: var(--display); font-size: 16.5px; letter-spacing: -.02em; }
.side-logo-img { height: 46px; width: auto; max-width: 200px; object-fit: contain; }
.side-powered { font-size: 10px; color: var(--muted); letter-spacing: .04em; padding: 0 10px 10px; margin-top: -10px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 12px; border-radius: 9px; font-size: 14px;
  font-weight: 500; color: var(--ink-2); transition: background .15s; }
.nav-item svg { width: 18px; height: 18px; flex: none; opacity: .75; }
.nav-item:hover { background: rgba(22,20,19,.05); }
.nav-item.active { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-sm); }
.nav-item.active svg { opacity: 1; color: var(--brand); }
.nav-sep { margin: var(--s3) 12px; border-top: 1px solid var(--line); }
.nav-count { margin-left: auto; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700;
  border-radius: 999px; padding: 1px 7px; }
.side-user { margin-top: auto; padding-top: var(--s3); border-top: 1px solid var(--line); display: flex; gap: 10px; align-items: center; padding: 12px 10px 4px; }
.side-user img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.side-user .nm { font-size: 13px; font-weight: 600; line-height: 1.2; }
.side-user .rl { font-size: 11.5px; color: var(--muted); }
.main { padding: var(--s5) var(--s6) var(--s8); min-width: 0; }
.page-head { display: flex; align-items: center; justify-content: space-between; gap: var(--s4); margin-bottom: var(--s5); flex-wrap: wrap; }
.page-head h1 { font-size: 21.5px; }
.page-head p { color: var(--muted); font-size: 14px; margin-top: 3px; }

/* Topbar móvil + bottom nav */
.topbar-m, .bottomnav { display: none; }

/* ---------- Property cards ---------- */
.prop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s4); }
.pcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: border-color .18s ease, transform .18s ease; position: relative; }
.pcard:hover { border-color: #C9C4BE; transform: translateY(-2px); }
.pcard .ph { position: relative; aspect-ratio: 4/3; background: var(--surface-2); overflow: hidden; }
.pcard .ph > a { position: absolute; inset: 0; display: block; }
.pcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .tags { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .ph .fav { position: absolute; top: 10px; right: 10px; background: rgba(255,255,255,.92); border: none; width: 34px;
  height: 34px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--ink-2); }
.pcard .ph .fav.on { color: var(--brand); }
.pcard .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pcard .precio { font-size: 18px; font-weight: 700; letter-spacing: -.01em; }
.pcard .precio small { font-size: 12px; color: var(--muted); font-weight: 500; }
.pcard .titulo { font-size: 14px; font-weight: 600; line-height: 1.35; }
.pcard .specs { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.pcard .foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.pcard .foot img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.pcard .cod { margin-left: auto; font-size: 11px; color: #8C857E; letter-spacing: .04em; }

/* Lista */
.prop-rows { display: flex; flex-direction: column; gap: 10px; }
.prow { display: grid; grid-template-columns: 120px 1fr auto; gap: 14px; align-items: center; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px 10px 10px; }
.prow img { width: 120px; height: 76px; object-fit: cover; border-radius: 8px; }
.prow .precio { font-weight: 700; font-size: 15.5px; white-space: nowrap; }

/* ---------- Filtros ---------- */
.filterbar { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s3);
  display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s4); align-items: center; }
.filterbar input, .filterbar select { min-height: 40px; width: auto; font-size: 14px; }
.filterbar .fq { flex: 1; min-width: 160px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: var(--s4); }
.chip { font-size: 13px; font-weight: 500; padding: 8px 15px; border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.filtros-toggle { display: none; }

/* ---------- Tablas ---------- */
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted);
  padding: 11px 14px; border-bottom: 1px solid var(--line); background: var(--surface-2); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: #FCFBFA; }

/* ---------- Subida de fotos de propiedad ---------- */
.foto-grid, .foto-preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.foto-item { position: relative; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); }
.foto-item img { width: 100%; height: 100%; object-fit: cover; }
.foto-badge { position: absolute; top: 6px; left: 6px; background: var(--brand); color: #fff; font-size: 10.5px;
  font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.foto-acts { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.foto-btn { width: 26px; height: 26px; border-radius: 50%; border: none; background: rgba(16,14,13,.7); color: #fff;
  font-size: 14px; cursor: pointer; display: grid; place-items: center; }
.foto-btn.del:hover { background: var(--err); }
.dropzone { display: block; border: 1.5px dashed var(--line); border-radius: 10px; padding: 22px; text-align: center;
  color: var(--muted); font-size: 13.5px; cursor: pointer; transition: border-color .18s, background .18s; }
.dropzone:hover, .dropzone.over { border-color: var(--brand); background: var(--brand-soft); }
.dropzone .foto-preview { margin-top: 12px; }
.map-search { display: flex; gap: 8px; margin-bottom: 8px; }
.map-search input { flex: 1; }
.map-search button { flex: none; }

/* ---------- Perfil estilo redes sociales (portada + foto) ---------- */
.profile-hero { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 20px; }
.ph-cover { height: clamp(140px, 22vw, 220px); background-size: cover; background-position: center;
  position: relative; cursor: pointer; background-color: var(--surface-2); }
.ph-cover-btn { position: absolute; right: 14px; bottom: 14px; background: rgba(16,14,13,.6); color: #fff;
  font-size: 12.5px; font-weight: 600; padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px);
  display: inline-flex; align-items: center; gap: 6px; transition: background .18s; }
.ph-cover:hover .ph-cover-btn { background: rgba(16,14,13,.8); }
.ph-body { padding: 0 24px 20px; display: flex; gap: 18px; align-items: flex-end; margin-top: -46px; flex-wrap: wrap; }
.ph-avatar { position: relative; cursor: pointer; flex: none; }
.ph-avatar img { width: 108px; height: 108px; border: 4px solid var(--surface); background: var(--surface);
  box-shadow: var(--shadow-sm); }
.ph-avatar.foto img { border-radius: 50%; object-fit: cover; }
.ph-avatar.logo img { border-radius: 16px; object-fit: contain; padding: 8px; }
.ph-avatar-btn { position: absolute; right: 2px; bottom: 2px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 14px; border: 2px solid var(--surface); }
.ph-name { flex: 1; min-width: 200px; padding-bottom: 6px; }
.ph-name b { font-family: var(--display); font-size: 20px; letter-spacing: -.01em; display: block; }
.ph-name span { font-size: 13.5px; color: var(--muted); }
.ph-hint { padding: 0 24px 16px; font-size: 12px; color: var(--muted); margin-top: -6px; }
/* Logo horizontal (3.ª imagen de marca) */
.logoh-row { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; }
.logoh-preview { flex: none; width: 260px; height: 76px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); display: grid; place-items: center; padding: 10px 16px;
  background-image: linear-gradient(0deg, var(--surface-2) 0, var(--surface) 100%); }
.logoh-preview img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; }
.logoh-empty { font-size: 12px; color: var(--muted); }
.logoh-actions { flex: 1; min-width: 220px; }
@media (max-width: 560px){ .logoh-preview { width: 100%; } }
/* Datos en modo lectura + lápiz para editar */
.datos-view { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.dato { min-width: 0; }
.dato .k { font-size: 12px; color: var(--muted); }
.dato .v { font-size: 15px; font-weight: 500; color: var(--ink); word-break: break-word; }
.dato.full { grid-column: 1 / -1; }
.btn-lapiz { background: var(--surface-2); border: none; border-radius: 8px; padding: 7px 13px; font-size: 13px;
  font-weight: 600; color: var(--ink-2); cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.btn-lapiz:hover { background: var(--line); }
@media (max-width: 560px) { .datos-view { grid-template-columns: 1fr; } }

/* ---------- Lista de miembros (admin, sin scroll horizontal) ---------- */
.member-list { display: flex; flex-direction: column; gap: 10px; }
.member-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px; display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.member-info { min-width: 220px; flex: 1; }
.member-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 3px; }
.member-top b { font-size: 14.5px; }
.member-actions { display: flex; gap: 8px; align-items: flex-start; flex-wrap: wrap; }
.reset-pw summary { list-style: none; cursor: pointer; }
.reset-pw summary::-webkit-details-marker { display: none; }
.reset-pw[open] summary { background: var(--surface-2); }
.pw-details > summary { list-style: none; cursor: pointer; }
.pw-details > summary::-webkit-details-marker { display: none; }
.crear-box > summary { list-style: none; cursor: pointer; margin-bottom: 4px; }
.crear-box > summary::-webkit-details-marker { display: none; }
.crear-box[open] > summary { background: var(--ink); }

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; }
.kpi .n { font-size: 22px; font-weight: 700; letter-spacing: -.02em; }
.kpi .l { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.kpi.hl { background: var(--ink); border-color: var(--ink); color: #fff; }
.kpi.hl .l { color: rgba(255,255,255,.65); }

/* ---------- Secciones dashboard ---------- */
.sect { margin-bottom: var(--s6); }
.sect-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: var(--s3); }
.sect-head h2 { font-size: 16px; }
.sect-head a { font-size: 13px; font-weight: 600; color: var(--brand); }
.list-tight { display: flex; flex-direction: column; }
.list-tight > * { padding: 12px 0; border-bottom: 1px solid var(--line); }
.list-tight > *:last-child { border-bottom: none; }

/* ---------- Modales (dialog nativo) ---------- */
dialog { border: none; border-radius: var(--radius); padding: 0; max-width: 480px; width: calc(100vw - 32px);
  box-shadow: 0 8px 32px rgba(22,20,19,.18); margin: auto; }
dialog::backdrop { background: rgba(22,20,19,.45); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px 0; }
.dlg-head h3 { font-size: 16.5px; }
.dlg-body { padding: 14px 22px 22px; max-height: 72vh; overflow-y: auto; }
.dlg-x { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px; }

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff;
  font-size: 14px; font-weight: 500; padding: 12px 22px; border-radius: 999px; z-index: var(--z-toast);
  opacity: 0; transition: opacity .2s ease; pointer-events: none; }
.toast.show { opacity: 1; }

/* ---------- Detalle propiedad ---------- */
.gal { display: grid; grid-template-columns: 2fr 1fr; gap: 8px; border-radius: var(--radius); overflow: hidden; margin-bottom: var(--s5); }
.gal .g-main { aspect-ratio: 4/2.6; }
.gal .g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.gal img { width: 100%; height: 100%; object-fit: cover; }
.gal .g-more { position: relative; }
.gal .g-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(22,20,19,.5);
  color: #fff; font-weight: 600; font-size: 14px; }
.detail-grid { display: grid; grid-template-columns: 1fr 340px; gap: var(--s6); align-items: start; }
.spec-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--s3); }
.spec { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 10px 13px; }
.spec .v { font-weight: 700; font-size: 15px; }
.spec .k { font-size: 12px; color: var(--muted); }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5);
  position: sticky; top: 20px; display: flex; flex-direction: column; gap: 10px; }
.captador { display: flex; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.captador img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
/* Logo de empresa: se muestra completo, sin deformar, en caja rectangular clara */
.logo-box { width: 88px !important; height: 46px !important; border-radius: 8px !important; object-fit: contain !important;
  background: var(--surface-2); padding: 4px; flex: none; }
.captador .nm { font-weight: 600; font-size: 14.5px; }
.captador .em { font-size: 12.5px; color: var(--muted); }
.interno { background: var(--surface-2); border: 1px dashed #CFCAC4; border-radius: var(--radius); padding: var(--s4) var(--s5); }
.interno h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 10px; }
.kv { display: grid; grid-template-columns: 150px 1fr; gap: 6px 14px; font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 500; }

/* ---------- Mapa ---------- */
.map-box { height: 420px; border-radius: var(--radius); border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); }
.map-fallback { height: 100%; display: grid; place-items: center; color: var(--muted); font-size: 14px; text-align: center; padding: 20px; }

/* ============ ZONA PÚBLICA (registro marca) ============ */
.pub-body { background: var(--bg); }
.pub-header { position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(250,250,249,.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.pub-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.pub-logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 18px; letter-spacing: -.02em; }
.pub-logo .seal { width: 32px; height: 32px; border-radius: 9px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 15px; }
.pub-nav { display: flex; gap: 26px; align-items: center; }
.pub-nav a { font-size: 14px; font-weight: 500; }
.hero-priv { padding: clamp(64px, 10vw, 130px) 0 clamp(48px, 7vw, 90px); background: var(--ink); color: #fff; position: relative; overflow: hidden; }
.hero-priv::after { content: ''; position: absolute; right: -180px; top: -180px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(169,50,38,.35), transparent 65%); pointer-events: none; }
.hero-priv .wrap { position: relative; z-index: 1; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: #E8B4AC;
  border: 1px solid rgba(232,180,172,.35); padding: 7px 16px; border-radius: 999px; margin-bottom: 26px; }
.hero-priv h1 { font-family: var(--display); font-size: clamp(34px, 5.5vw, 62px); letter-spacing: -.025em; max-width: 17ch; font-weight: 800; }
.hero-priv .sub { font-size: clamp(16px, 2vw, 19px); color: rgba(255,255,255,.78); max-width: 52ch; margin: 22px 0 32px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 44px; margin-top: 52px; flex-wrap: wrap; }
.hero-stats .n { font-family: var(--display); font-size: 30px; font-weight: 700; }
.hero-stats .l { font-size: 13px; color: rgba(255,255,255,.6); }
.pub-section { padding: clamp(56px, 8vw, 104px) 0; }
.pub-section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pub-section h2 { font-family: var(--display); font-size: clamp(26px, 3.6vw, 40px); letter-spacing: -.02em; max-width: 24ch; }
.pub-section .lead { color: var(--muted); font-size: 16.5px; max-width: 58ch; margin-top: 14px; }
.filosofia { font-family: var(--display); font-size: clamp(22px, 3.4vw, 36px); font-weight: 700; letter-spacing: -.02em;
  line-height: 1.35; max-width: 22ch; }
.filosofia em { font-style: normal; color: var(--brand); }
.pilares { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0; border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; margin-top: var(--s6); background: var(--line); grid-gap: 1px; }
.pilar { background: var(--surface); padding: 26px 24px; }
.pilar .num { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--brand); }
.pilar h3 { font-size: 16.5px; margin: 8px 0 8px; }
.pilar p { font-size: 14px; color: var(--muted); }
.pasos { counter-reset: paso; display: flex; flex-direction: column; max-width: 660px; margin-top: var(--s5); }
.paso { display: flex; gap: 18px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.paso:last-child { border-bottom: none; }
.paso::before { counter-increment: paso; content: counter(paso); flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.paso h3 { font-size: 15.5px; }
.paso p { font-size: 14px; color: var(--muted); margin-top: 3px; }
.pub-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.pub-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; }

/* ---------- Login ---------- */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; }
.auth-card { width: 100%; max-width: 400px; }
.demo-users { margin-top: var(--s5); }
.demo-user { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-s); padding: 10px 12px; cursor: pointer; margin-bottom: 8px; text-align: left; font-size: 14px; transition: border-color .15s; }
.demo-user:hover { border-color: var(--ink); }
.demo-user img { width: 34px; height: 34px; border-radius: 50%; }
.demo-user .rl { font-size: 12px; color: var(--muted); }

/* ============ FICHA PÚBLICA (marca del agente) ============ */
.ficha-pub { max-width: 860px; margin: 0 auto; padding: 0 16px 90px; }
.fp-agent { display: flex; align-items: center; gap: 14px; padding: 18px 0; }
.fp-agent img.face { width: 52px; height: 52px; border-radius: 50%; }
.fp-agent img.lg { width: 42px; height: 42px; border-radius: 10px; margin-left: auto; }
.fp-agent .nm { font-weight: 700; font-size: 16px; }
.fp-agent .em { font-size: 13px; color: var(--muted); }
.fp-msg { background: var(--surface-2); border-radius: var(--radius); padding: 14px 18px; font-size: 14.5px; margin-bottom: 18px; }
.fp-precio { font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.fp-wa-float { position: fixed; right: 18px; bottom: 18px; z-index: var(--z-sticky); box-shadow: 0 4px 14px rgba(31,168,85,.4); }
.fp-footer { text-align: center; font-size: 12px; color: #A9A29B; padding: 28px 0 8px; }
.fp-nodisp { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 14px 18px; font-weight: 600; margin-bottom: 18px; }

/* ============ MARCA BLANCA: portada de inmobiliaria / agente ============ */
.wl-hero { background: var(--ink); background-size: cover; background-position: center; color: #fff;
  border-radius: var(--radius); overflow: hidden; margin-bottom: 20px; }
.wl-hero-in { display: flex; gap: 22px; align-items: center; padding: clamp(28px, 5vw, 48px) clamp(20px, 4vw, 40px) 18px; flex-wrap: wrap; }
.wl-logo { width: 86px; height: 86px; border-radius: 18px; object-fit: contain; background: rgba(255,255,255,.95);
  padding: 8px; flex: none; }
.wl-name { flex: 1; min-width: 240px; }
.wl-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(255,255,255,.75); font-weight: 600; margin-bottom: 8px; }
.wl-eyebrow::before { content: ''; width: 22px; height: 2px; background: var(--brand); display: inline-block; }
.wl-name h1 { font-family: var(--display); font-size: clamp(24px, 4vw, 34px); letter-spacing: -.02em; color: #fff; }
.wl-name p { color: rgba(255,255,255,.85); font-size: 14.5px; max-width: 58ch; margin-top: 8px; }
.wl-meta { font-size: 13px; color: rgba(255,255,255,.65); margin-top: 8px; }
.wl-meta a { color: #fff; text-decoration: underline; }
.wl-ctas { display: flex; flex-direction: column; gap: 8px; }
.btn-light { background: rgba(255,255,255,.14); color: #fff; border: 1.5px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255,255,255,.24); }
.wl-stats { display: flex; gap: clamp(22px, 5vw, 52px); flex-wrap: wrap; padding: 16px clamp(20px, 4vw, 40px) 24px;
  border-top: 1px solid rgba(255,255,255,.16); }
.wl-stats b { font-family: var(--display); font-size: 19px; display: block; letter-spacing: -.01em; }
.wl-stats span { font-size: 12px; color: rgba(255,255,255,.65); }

/* ============ FICHA PÚBLICA estilo ZORA (fz-) ============ */
.fz-shell { max-width: 1280px; margin: 0 auto; padding: 0 28px; }
.fz-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky); }
.fz-head-in { display: flex; align-items: center; gap: 14px; padding: 12px 28px; max-width: 1280px; margin: 0 auto; }
.fz-brandlogo { height: 54px; width: auto; max-width: 240px; object-fit: contain; }
.fz-brandface { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.fz-brandname { display: flex; flex-direction: column; line-height: 1.25; }
.fz-brandname b { font-size: 15.5px; letter-spacing: -.01em; }
.fz-brandname span { font-size: 12px; color: var(--muted); }
.fz-head-cta { margin-left: auto; }
.fz-msg { background: var(--surface-2); border-radius: var(--radius); padding: 13px 18px; font-size: 14.5px; margin-top: 16px; }

/* Galería tipo ZORA */
.fz-gal { display: grid; grid-template-columns: 1.6fr 1fr; gap: 8px; margin-top: 16px; border-radius: var(--radius); overflow: hidden; }
.fz-gal .fz-g-main { position: relative; aspect-ratio: 4/3; cursor: zoom-in; overflow: hidden; }
.fz-gal .fz-g-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fz-gal .fz-g-main:hover img { transform: scale(1.03); }
.fz-zoom { position: absolute; bottom: 12px; left: 12px; background: rgba(16,14,13,.72); color: #fff; font-size: 12.5px;
  font-weight: 600; padding: 7px 14px; border-radius: 999px; backdrop-filter: blur(4px); }
.fz-g-side { display: grid; grid-template-rows: 1fr 1fr; gap: 8px; }
.fz-g-side > div { position: relative; cursor: zoom-in; overflow: hidden; }
.fz-g-side img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.fz-g-side > div:hover img { transform: scale(1.04); }
.fz-g-more span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(16,14,13,.52);
  color: #fff; font-weight: 700; font-size: 15px; }

.fz-cols { display: grid; grid-template-columns: 1fr 360px; gap: 40px; align-items: start; margin-top: 28px; }
.fz-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.fz-title { font-family: var(--display); font-size: clamp(23px, 3.2vw, 32px); letter-spacing: -.02em; line-height: 1.12; max-width: 24ch; }
.fz-loc { color: var(--muted); font-size: 15px; margin-top: 8px; }
.fz-keyfacts { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 22px 0 6px; }
.fz-kf { background: var(--surface); padding: 13px 15px; }
.fz-kf .l { font-size: 12px; color: var(--muted); }
.fz-kf .v { font-weight: 700; font-size: 16px; letter-spacing: -.01em; margin-top: 2px; }
.fz-block { margin-top: 30px; }
.fz-block h2 { font-family: var(--display); font-size: 21px; letter-spacing: -.01em; margin-bottom: 12px; }
.fz-desc { color: var(--ink-2); font-size: 15.5px; line-height: 1.7; max-width: 68ch; white-space: pre-line; }
.fz-feats { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 11px 24px; }
.fz-feats li { display: flex; align-items: center; gap: 11px; font-size: 15px; color: var(--ink-2); }
.fz-feats .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand); flex: none; }

/* Aside precio (sticky) estilo ZORA */
.fz-aside { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px;
  position: sticky; top: 84px; box-shadow: var(--shadow-sm); }
.fz-price { font-family: var(--display); font-size: clamp(28px, 3.6vw, 34px); font-weight: 800; letter-spacing: -.02em; display: block; }
.fz-price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.fz-pcode { font-size: 11.5px; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 4px 0 16px; }
/* Tarjeta del asesor — foto grande centrada (estilo perfil) */
.fz-agent { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px;
  padding: 20px 14px 18px; background: var(--surface-2); border-radius: 14px; margin-bottom: 14px; }
.fz-agent-h { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.fz-agent img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; margin-bottom: 10px;
  border: 3px solid var(--surface); box-shadow: 0 3px 12px rgba(0,0,0,.12); }
.fz-agent.emp img { border-radius: 18px; object-fit: contain; background: var(--surface); padding: 10px; }
.fz-agent b { font-size: 16.5px; display: block; line-height: 1.3; }
.fz-agent span { font-size: 12.5px; color: var(--muted); }
.fz-aside .btn { margin-bottom: 8px; }
.fz-or { text-align: center; font-size: 12.5px; color: var(--muted); margin: 14px 0; position: relative; }
.fz-or::before, .fz-or::after { content: ''; position: absolute; top: 50%; width: 30%; height: 1px; background: var(--line); }
.fz-or::before { left: 0; } .fz-or::after { right: 0; }
.fz-form label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); display: block; margin-bottom: 12px; }
.fz-form input, .fz-form textarea { margin-top: 5px; }
.fz-verperfil { display: block; text-align: center; margin-top: 12px; font-size: 13.5px; font-weight: 600; color: var(--brand); }
.fz-wabig { font-size: 15.5px; padding: 14px 20px; margin-top: 4px; }
.fz-wahint { text-align: center; font-size: 12.5px; color: var(--muted); margin: 8px 0 2px; }

/* Barra fija móvil */
.fz-bar { display: none; }
@media (max-width: 900px) {
  .fz-gal { grid-template-columns: 1fr; }
  .fz-gal .fz-g-main { aspect-ratio: 4/2.8; }
  .fz-g-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; height: 110px; }
  .fz-cols { grid-template-columns: 1fr; gap: 26px; }
  .fz-aside { position: static; }
  .fz-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 1px solid var(--line);
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); align-items: center; gap: 10px; z-index: var(--z-sticky);
    box-shadow: 0 -4px 14px rgba(22,20,19,.08); }
  .fz-bar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .fz-barinfo { flex: 1; min-width: 0; line-height: 1.25; }
  .fz-barinfo b { font-size: 15px; display: block; }
  .fz-barinfo span { font-size: 11.5px; color: var(--muted); }
  .fz-barbtn.wa { background: var(--wa); color: #fff; font-weight: 600; font-size: 14px; padding: 11px 20px; border-radius: 999px; white-space: nowrap; }
  .fz-shell { padding-bottom: 84px; }
}

/* Lightbox (visor de fotos) */
.lb { position: fixed; inset: 0; background: rgba(12,11,10,.95); z-index: var(--z-modal); display: none;
  flex-direction: column; }
.lb.open { display: flex; }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; color: #fff; }
.lb-t { font-weight: 600; font-size: 15px; }
.lb-c { font-size: 12.5px; color: rgba(255,255,255,.6); }
.lb-close { background: none; border: none; color: #fff; font-size: 32px; cursor: pointer; line-height: 1; }
.lb-stage { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; min-height: 0; padding: 0 12px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,.14); border: none; color: #fff;
  width: 48px; height: 48px; border-radius: 50%; font-size: 26px; cursor: pointer; display: grid; place-items: center; transition: background .18s; }
.lb-nav:hover { background: rgba(255,255,255,.28); }
.lb-prev { left: 16px; } .lb-next { right: 16px; }
.lb-thumbs { display: flex; gap: 8px; padding: 14px 22px; overflow-x: auto; }
.lb-thumbs img { width: 78px; height: 56px; object-fit: cover; border-radius: 6px; cursor: pointer; opacity: .5; flex: none; transition: opacity .18s; }
.lb-thumbs img.active, .lb-thumbs img:hover { opacity: 1; }
@media (max-width: 640px) { .lb-nav { width: 40px; height: 40px; font-size: 22px; } .lb-thumbs img { width: 60px; height: 44px; } }

/* ============ FICHA PÚBLICA v2 (estilo membrete + tarjeta asesor) ============ */
.fp2-wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px 40px; }
.fp2-head { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: var(--z-sticky); }
.fp2-head-in { display: flex; align-items: center; gap: 14px; padding: 10px 16px; }
.fp2-brandlogo { height: 44px; width: auto; max-width: 150px; object-fit: contain; }
.fp2-brandname { display: flex; flex-direction: column; line-height: 1.25; }
.fp2-brandname b { font-size: 15.5px; letter-spacing: -.01em; }
.fp2-brandname span { font-size: 12px; color: var(--muted); }
.fp2-head-cta { margin-left: auto; }
.fp2-grid { display: grid; grid-template-columns: 1fr 350px; gap: 32px; align-items: start; margin-top: 22px; }
.fp2-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.fp2-title { font-size: clamp(21px, 3vw, 27px); letter-spacing: -.015em; max-width: 26ch; }
.fp2-precio { font-size: clamp(24px, 3.4vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-top: 12px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fp2-precio small { font-size: 14px; color: var(--muted); font-weight: 500; }
.fp2-h2 { font-size: 16.5px; margin: 26px 0 10px; }
.fp2-amen { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px 18px; font-size: 14px; color: var(--ink-2); }
.fp2-agentcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  position: sticky; top: 76px; }
.fp2-agenthead { background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; letter-spacing: .02em;
  padding: 10px 20px; }
.fp2-agentbody { padding: 20px; text-align: center; border-bottom: 1px solid var(--line); }
.fp2-face { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 10px; border: 3px solid var(--surface-2); }
.fp2-agname { font-weight: 700; font-size: 16.5px; letter-spacing: -.01em; }
.fp2-agrole { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.fp2-agcomp { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; background: var(--surface-2);
  border-radius: 999px; padding: 5px 14px 5px 6px; font-size: 13px; font-weight: 600; }
.fp2-agcomp img { width: 26px; height: 26px; border-radius: 6px; object-fit: contain; background: #fff; }
.fp2-agdato { font-size: 13px; color: var(--ink-2); margin-top: 8px; }
.fp2-agbtns { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.fp2-form { padding: 16px 20px 20px; }
.fp2-formhead { font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.fp2-bar { display: none; }
@media (max-width: 900px) {
  .fp2-grid { grid-template-columns: 1fr; }
  .fp2-agentcard { position: static; }
  .fp2-bar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface);
    border-top: 1px solid var(--line); padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    align-items: center; gap: 10px; z-index: var(--z-sticky); box-shadow: 0 -4px 14px rgba(22,20,19,.07); }
  .fp2-bar img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; }
  .fp2-barinfo { flex: 1; min-width: 0; line-height: 1.25; }
  .fp2-barinfo b { font-size: 13.5px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .fp2-barinfo span { font-size: 11.5px; color: var(--muted); }
  .fp2-barbtn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; flex: none; }
  .fp2-barbtn.wa { background: var(--wa); }
  .fp2-barbtn.tel { background: var(--ink); font-size: 18px; }
  .fp2-wrap { padding-bottom: 86px; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .detail-grid { grid-template-columns: 1fr; }
  .side-card { position: static; }
  .grid3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar-m { display: flex; position: sticky; top: 0; z-index: var(--z-sticky); background: rgba(250,250,249,.94);
    backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); align-items: center; justify-content: space-between;
    padding: 0 16px; height: 56px; }
  .topbar-m .lg { display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 800; font-size: 16px; }
  .topbar-m .lg .seal { width: 26px; height: 26px; border-radius: 7px; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12.5px; }
  .topbar-m .acts { display: flex; gap: 6px; align-items: center; }
  .main { padding: var(--s4) var(--s4) 96px; }
  .bottomnav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0;
    background: var(--surface); border-top: 1px solid var(--line); z-index: var(--z-sticky); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bn-item { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10.5px; font-weight: 600;
    color: var(--muted); padding: 5px 0; border-radius: 8px; }
  .bn-item svg { width: 21px; height: 21px; }
  .bn-item.active { color: var(--brand); }
  .bn-item .pub { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-top: -16px; box-shadow: 0 4px 10px rgba(169,50,38,.35); }
  .gal { grid-template-columns: 1fr; }
  .gal .g-side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .prow { grid-template-columns: 84px 1fr; }
  .prow img { width: 84px; height: 62px; }
  .prow .precio { grid-column: 2; }
  /* Filtros dentro de un panel que se abre con botón */
  .filtros-toggle { display: inline-flex; margin-bottom: 12px; }
  .filterbar { display: none; }
  .filterbar.open { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .filterbar.open .fq { grid-column: 1 / -1; }
  .filterbar.open input, .filterbar.open select { width: 100%; }
  .filterbar.open input[style], .filterbar.open .btn { grid-column: auto; }
  .filterbar.open .btn { grid-column: 1 / -1; }
  .prop-grid { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .pub-nav a.navlink { display: none; }
}
@media (min-width: 560px) and (max-width: 820px) { .prop-grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
