@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("/fuentes/inter-var-latin.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fuentes/fraunces-opsz.woff2") format("woff2"); }
@font-face { font-family: "Fraunces"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("/fuentes/fraunces-opsz-italic.woff2") format("woff2"); }
/* Alboreda — red de agentes inmobiliarios independientes */
:root {
  --navy: #0b1220;
  --navy-2: #16203a;
  --ink: #0b1220;
  --muted: #636c7e;
  --line: #ebe8e2;
  --bg: #fbfaf8;
  --card: #ffffff;
  --accent: #2b4dff;      /* cobalto */
  --accent-2: #1e3bd8;
  --accent-soft: #eef1ff;
  --ok: #1f9d77;
  --blue: #2f6fdb;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .04);
  /* La letra del sistema: San Francisco en iPhone y Mac, Inter en el resto. */
  --font: -apple-system, BlinkMacSystemFont, "Inter", system-ui, "Segoe UI", Roboto, sans-serif;
  --serif: var(--font);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1, h2 { font-family: var(--serif); font-weight: 600; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 22px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-2); white-space: nowrap; }
.tag.blue { background: #e9f0fd; color: var(--blue); }
.tag.green { background: #e5f6f0; color: var(--ok); }
.tag.dark { background: rgba(13, 22, 38, .78); color: #fff; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer; padding: 12px 20px; border-radius: 10px; font-weight: 600; background: var(--accent); color: #fff; transition: background .15s, transform .05s; }
.btn:hover { background: var(--accent-2); }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.btn.ghost:hover { background: #fff; border-color: #cfd5df; }
.btn.dark { background: var(--navy); }
.btn.dark:hover { background: var(--navy-2); }
.btn.light { background: #fff; color: var(--navy); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 14px; font-size: 14px; }

/* ---------- Cabecera ---------- */
.demo-bar { background: #2b1d10; color: #ffd9b8; font-size: 12.5px; text-align: center; padding: 6px 12px; }
header.site { background: var(--navy); color: #fff; position: sticky; top: 0; z-index: 1000; }
header.site .wrap { display: flex; align-items: center; height: 66px; gap: 28px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--serif); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.logo-mark { width: 30px; height: 30px; }
.logo small { white-space: nowrap; font-family: var(--font); font-size: 10.5px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; opacity: .6; display: block; margin-top: -3px; }
nav.main { display: flex; gap: 4px; flex: 1; }
nav.main a { white-space: nowrap; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; color: #cfd6e2; }
nav.main a:hover, nav.main a.on { color: #fff; background: rgba(255, 255, 255, .08); }
.head-cta { display: flex; gap: 10px; align-items: center; }
.head-cta .link { font-size: 14px; color: #cfd6e2; padding: 8px 10px; }
.head-cta .link:hover { color: #fff; }
.burger { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; margin-left: auto; }

/* ---------- Hero ---------- */
.hero { position: relative; color: #fff; background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(13, 22, 38, .96) 0%, rgba(13, 22, 38, .82) 42%, rgba(13, 22, 38, .35) 100%), var(--hero-img) center/cover; }
.hero::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -60%; height: 90%; background: radial-gradient(closest-side, rgba(240, 138, 60, .35), transparent); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 74px; padding-bottom: 84px; }
.hero h1 { font-size: clamp(34px, 5vw, 58px); max-width: 760px; font-weight: 600; }
.hero h1 em { font-style: italic; color: #ffb27a; }
.hero p.lead { font-size: 19px; max-width: 620px; color: #d6dce7; margin: 0 0 30px; }
.searchbox { background: #fff; color: var(--ink); border-radius: 16px; padding: 10px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-width: 880px; }
.searchbox .tabs { display: flex; gap: 4px; padding: 4px 4px 10px; }
.searchbox .tabs button { border: 0; background: none; padding: 7px 14px; border-radius: 8px; font-weight: 600; color: var(--muted); cursor: pointer; }
.searchbox .tabs button.on { background: var(--navy); color: #fff; }
.searchbox form { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 8px; }
.field { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 10px; padding: 7px 12px; background: #fff; }
.field label { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.field input, .field select { border: 0; outline: 0; padding: 2px 0; background: transparent; font-size: 15px; }
.hero-stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--serif); font-size: 30px; font-weight: 600; }
.hero-stats span { color: #b5bfcf; font-size: 14px; }

/* ---------- Secciones ---------- */
section.block { padding: 72px 0; }
section.block.white { background: #fff; }
section.block.dark { background: var(--navy); color: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.sec-head h2 { font-size: clamp(26px, 3vw, 36px); margin: 0; }
.sec-head p { margin: 6px 0 0; color: var(--muted); max-width: 640px; }
.dark .sec-head p { color: #b5bfcf; }
.eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.grid { display: grid; gap: 22px; }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Tarjeta inmueble ---------- */
.pcard { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; position: relative; }
.pcard:hover { transform: translateY(-2px); box-shadow: 0 2px 4px rgba(13, 22, 38, .06), 0 16px 36px rgba(13, 22, 38, .12); }
.pcard .ph { position: relative; aspect-ratio: 4/3; background: #dde2ea; overflow: hidden; }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.pcard .ph .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; flex-wrap: wrap; }
.pcard .ph .count { position: absolute; bottom: 10px; right: 10px; }
.fav { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); cursor: pointer; font-size: 17px; display: grid; place-items: center; z-index: 2; }
.fav.on { color: #e2453a; }
.pcard .bd { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.price { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }
.price small { font-size: 13px; font-weight: 500; color: var(--muted); }
.price .drop { font-size: 12.5px; font-weight: 600; color: var(--ok); margin-left: 6px; }
.pcard h3 { font-size: 15px; font-weight: 500; margin: 0; color: var(--ink); }
.feats { display: flex; gap: 14px; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; }
.feats span { white-space: nowrap; }
.agent-mini { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); font-size: 13px; }
.agent-mini b { font-weight: 600; }

/* Avatar */
.av { --s: 40px; width: var(--s); height: var(--s); border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; font-size: calc(var(--s) * .38); flex: none; letter-spacing: .02em; position: relative; }
.av.xs { --s: 28px; }
.av.lg { --s: 76px; }
.av.xl { --s: 120px; font-family: var(--serif); }
.av .ver { position: absolute; right: -2px; bottom: -2px; width: 34%; height: 34%; border-radius: 50%; background: var(--blue); border: 2px solid #fff; display: grid; place-items: center; font-size: 9px; }

/* ---------- Agente card ---------- */
.acard { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.acard .top { display: flex; gap: 14px; align-items: center; }
.acard h3 { font-size: 17px; margin: 0; }
.acard .role { font-size: 13px; color: var(--muted); }
.stars { color: #f2a531; font-size: 13.5px; letter-spacing: 1px; }
.stars span { color: var(--muted); letter-spacing: 0; margin-left: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12px; padding: 4px 9px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; background: var(--bg); border-radius: 10px; padding: 10px 4px; }
.kpis b { display: block; font-size: 17px; }
.kpis span { font-size: 11.5px; color: var(--muted); }

/* ---------- Cómo funciona ---------- */
.step { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.step .n { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-2); display: grid; place-items: center; font-weight: 700; margin-bottom: 14px; }
.step h3 { font-size: 18px; }
.step p { margin: 0; color: var(--muted); }
.dark .step { background: var(--navy-2); box-shadow: none; }
.dark .step p { color: #b5bfcf; }

/* comparativa */
table.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
table.cmp th, table.cmp td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.cmp th { background: var(--bg); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
table.cmp td.us { background: #fffaf5; font-weight: 600; }
table.cmp th.us { background: var(--accent); color: #fff; }
.yes { color: var(--ok); font-weight: 700; }
.no { color: #c0392b; font-weight: 700; }

/* ---------- Ciudades ---------- */
.city { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; color: #fff; display: flex; align-items: end; padding: 16px; box-shadow: var(--shadow); }
.city img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.city::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 40%, rgba(13, 22, 38, .85)); }
.city:hover img { transform: scale(1.05); }
.city div { position: relative; z-index: 1; }
.city b { font-size: 19px; display: block; }
.city span { font-size: 13px; opacity: .85; }

/* CTA banda */
.band { background: linear-gradient(110deg, var(--navy) 0%, #23324f 100%); border-radius: 22px; color: #fff; padding: 48px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.band::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(240, 138, 60, .5), transparent); }
.band h2 { font-size: 34px; }
.band p { color: #c9d1de; }
.band > * { position: relative; z-index: 1; }

/* ---------- Formularios ---------- */
.form { display: grid; gap: 12px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form label { font-size: 13px; font-weight: 600; display: block; margin-bottom: 4px; }
.form input, .form select, .form textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 9px; background: #fff; outline: none; }
.form input:focus, .form select:focus, .form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(240, 138, 60, .15); }
.form textarea { min-height: 96px; resize: vertical; }
.form .check { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--muted); font-weight: 400; }
.form .check input { width: auto; margin-top: 3px; }
.ok-msg { background: #e5f6f0; color: #116a50; padding: 14px; border-radius: 10px; font-size: 14px; }

/* ---------- Buscador / listado ---------- */
.search-layout { display: grid; grid-template-columns: 290px 1fr; gap: 26px; padding: 26px 0 60px; }
.filters { background: #fff; border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); align-self: start; position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.filters h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 8px; }
.filters h4:first-child { margin-top: 0; }
.seg { display: grid; grid-auto-flow: column; background: var(--bg); padding: 3px; border-radius: 10px; }
.seg button { border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; font-weight: 600; color: var(--muted); font-size: 14px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.filters select, .filters input[type=text], .filters input[type=number] { width: 100%; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.filters .two { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pills { display: flex; gap: 6px; flex-wrap: wrap; }
.pills button { border: 1px solid var(--line); background: #fff; border-radius: 8px; padding: 6px 11px; cursor: pointer; font-size: 14px; }
.pills button.on { border-color: var(--navy); background: var(--navy); color: #fff; }
.checks label { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 3px 0; cursor: pointer; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.results-head h1 { font-family: var(--font); font-size: 22px; font-weight: 700; margin: 0; }
.results-head .tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.results-head select { padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.list { display: flex; flex-direction: column; gap: 16px; }
.lcard { display: grid; grid-template-columns: 330px 1fr; background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; transition: box-shadow .15s; }
.lcard:hover { box-shadow: 0 2px 4px rgba(13, 22, 38, .06), 0 16px 36px rgba(13, 22, 38, .12); }
.lcard .ph { position: relative; min-height: 230px; background: #dde2ea; }
.lcard .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lcard .ph .badges { position: absolute; top: 10px; left: 10px; display: flex; gap: 6px; }
.lcard .bd { padding: 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.lcard h3 { font-size: 17px; font-weight: 600; margin: 0; }
.lcard p.ex { color: var(--muted); font-size: 14px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lcard .foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.pager { display: flex; justify-content: center; gap: 6px; margin-top: 26px; flex-wrap: wrap; }
.pager button { min-width: 40px; height: 40px; border: 1px solid var(--line); background: #fff; border-radius: 9px; cursor: pointer; font-weight: 600; }
.pager button.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager button:disabled { opacity: .4; cursor: default; }
#map { height: calc(100vh - 190px); min-height: 480px; border-radius: var(--radius); box-shadow: var(--shadow); z-index: 1; }
.empty { background: #fff; border-radius: var(--radius); padding: 50px; text-align: center; box-shadow: var(--shadow); }
.price-pin { background: var(--navy); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 7px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); border: 2px solid #fff; }
.leaflet-popup-content { margin: 0 !important; width: 240px !important; }
.leaflet-popup-content-wrapper { padding: 0 !important; overflow: hidden; border-radius: 12px !important; }
.pop img { width: 100%; height: 130px; object-fit: cover; }
.pop div { padding: 10px 12px; font-family: var(--font); }
.pop b { font-size: 16px; }
.mobile-filter-btn { display: none; }

/* ---------- Ficha ---------- */
.crumbs { font-size: 13px; color: var(--muted); padding: 18px 0 12px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.gallery { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: 18px; overflow: hidden; position: relative; }
.gallery img { width: 100%; height: 100%; object-fit: cover; cursor: zoom-in; background: #dde2ea; }
.gallery img:first-child { grid-row: span 2; }
.gallery .all { position: absolute; right: 14px; bottom: 14px; }
.detail { display: grid; grid-template-columns: 1fr 370px; gap: 36px; padding: 28px 0 60px; }
.detail h1 { font-family: var(--font); font-size: 26px; font-weight: 700; }
.dprice { font-size: 32px; font-weight: 800; letter-spacing: -.02em; }
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 22px 0; }
.facts div { background: #fff; border-radius: 12px; padding: 14px; box-shadow: var(--shadow); }
.facts b { display: block; font-size: 19px; }
.facts span { font-size: 12.5px; color: var(--muted); }
.panel { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); margin-bottom: 22px; }
.panel h2 { font-family: var(--font); font-size: 18px; font-weight: 700; margin-bottom: 14px; }
.desc p { margin: 0 0 12px; }
.featlist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.featlist li { font-size: 14px; display: flex; gap: 8px; }
.featlist li::before { content: "✓"; color: var(--ok); font-weight: 700; }
.energy { display: flex; gap: 3px; align-items: center; flex-wrap: wrap; }
.energy span { padding: 4px 10px; color: #fff; font-weight: 700; font-size: 13px; border-radius: 4px; opacity: .35; }
.energy span.on { opacity: 1; transform: scale(1.12); box-shadow: 0 2px 6px rgba(0, 0, 0, .2); }
#dmap { height: 300px; border-radius: 12px; z-index: 1; }
.sticky { position: sticky; top: 86px; }
.contact-card { background: #fff; border-radius: 18px; padding: 22px; box-shadow: var(--shadow); }
.contact-card .who { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.contact-card .who b { font-size: 17px; display: block; }
.calc { display: grid; gap: 10px; }
.calc .out { background: var(--bg); border-radius: 10px; padding: 14px; text-align: center; }
.calc .out b { font-size: 26px; display: block; }
input[type=range] { width: 100%; accent-color: var(--accent); }
.lightbox { position: fixed; inset: 0; background: rgba(8, 12, 20, .94); z-index: 3000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 84vh; border-radius: 8px; }
.lightbox button { position: absolute; background: rgba(255, 255, 255, .12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 22px; cursor: pointer; }
.lightbox .x { top: 20px; right: 20px; }
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .cnt { position: absolute; bottom: 22px; color: #fff; font-size: 14px; }

/* ---------- Perfil agente ---------- */
.profile-hero { background: var(--navy); color: #fff; padding: 46px 0 40px; }
.profile-hero .wrap { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; }
.profile-hero h1 { font-size: 38px; margin: 0 0 4px; }
.profile-hero .meta { color: #b5bfcf; display: flex; gap: 16px; flex-wrap: wrap; font-size: 14.5px; }
.profile-hero .actions { margin-left: auto; display: flex; gap: 10px; }
.review { border-bottom: 1px solid var(--line); padding: 14px 0; }
.review:last-child { border: 0; }

/* ---------- Únete ---------- */
.plan { background: #fff; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; border: 2px solid transparent; }
.plan.pop { border-color: var(--accent); position: relative; }
.plan.pop::before { content: "El más elegido"; position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 99px; }
.plan .split { font-family: var(--serif); font-size: 46px; font-weight: 600; }
.plan .split small { font-family: var(--font); font-size: 14px; color: var(--muted); font-weight: 500; }
.plan ul { padding: 0; margin: 0; list-style: none; display: grid; gap: 8px; font-size: 14.5px; }
.plan li::before { content: "✓  "; color: var(--ok); font-weight: 700; }
.earn { background: #fff; border-radius: 18px; padding: 30px; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; gap: 34px; }
.earn .res { background: var(--navy); color: #fff; border-radius: 14px; padding: 26px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.earn .res b { font-family: var(--serif); font-size: 44px; font-weight: 600; }
.earn .res .cmpline { font-size: 14px; color: #b5bfcf; }
.earn label { display: flex; justify-content: space-between; font-weight: 600; font-size: 14px; margin: 12px 0 4px; }
.faq details { background: #fff; border-radius: 12px; padding: 16px 20px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary { font-weight: 600; cursor: pointer; }
.faq p { color: var(--muted); margin: 10px 0 0; }

/* ---------- Delegaciones ---------- */
.dcard { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.dcard h3 { font-size: 18px; margin: 0; }
.dcard .nums { display: flex; gap: 18px; font-size: 14px; margin-top: 6px; }
.dcard .nums b { font-size: 18px; display: block; }
#delmap { height: 460px; border-radius: 18px; box-shadow: var(--shadow); z-index: 1; }

/* ---------- Pie ---------- */
footer.site { background: var(--navy); color: #b5bfcf; padding: 56px 0 30px; font-size: 14px; }
footer.site .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 36px; }
footer.site h4 { color: #fff; font-size: 14px; margin-bottom: 12px; }
footer.site a { display: block; padding: 3px 0; }
footer.site a:hover { color: #fff; }
footer.site .legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 20px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12.5px; }

.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(40px); background: var(--navy); color: #fff; padding: 12px 20px; border-radius: 10px; opacity: 0; transition: .25s; z-index: 4000; font-size: 14px; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .detail { grid-template-columns: 1fr; }
  .sticky { position: static; }
  footer.site .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1120px) {
  nav.main, .head-cta { display: none; }
  .burger { display: block; }
  header.site.open nav.main { display: flex; flex-direction: column; position: absolute; top: 66px; left: 0; right: 0; background: var(--navy); padding: 10px 16px 18px; }
}
@media (max-width: 900px) {
  .g3 { grid-template-columns: 1fr 1fr; }
  .searchbox form { grid-template-columns: 1fr 1fr; }
  .search-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; inset: 0; z-index: 2000; max-height: none; border-radius: 0; display: none; }
  .filters.open { display: block; }
  .mobile-filter-btn { display: inline-flex; }
  .results-head h1 { font-size: 19px; }
  .filters.open { padding-bottom: 90px; }
  .lcard { grid-template-columns: 1fr; }
  .lcard .ph { min-height: 0; aspect-ratio: 16/10; }
  .band, .earn { grid-template-columns: 1fr; padding: 28px; }
  .gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 120px; }
  .gallery img:first-child { grid-column: span 2; grid-row: auto; }
  .gallery img:nth-child(n+4) { display: none; }
  .facts { grid-template-columns: repeat(2, 1fr); }
  .featlist { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
  .searchbox form, .form .row { grid-template-columns: 1fr; }
  section.block { padding: 50px 0; }
  .hero .wrap { padding-top: 46px; padding-bottom: 56px; }
  .profile-hero .actions { margin-left: 0; }
  table.cmp th, table.cmp td { padding: 10px; font-size: 13px; }
}

/* ===== Páginas estáticas SEO (landings, fichas, oficinas) ===== */
article.pcard .ph, article.lcard .ph { display: block; }
.pcard h3 a, .lcard h3 a { color: inherit; }
.pcard h3 a:hover, .lcard h3 a:hover { color: var(--accent-2); }
.agent-mini a:hover b { text-decoration: underline; }
.lnk { color: var(--accent-2); font-weight: 600; }
.lnk:hover { text-decoration: underline; }
.h4 { font-family: var(--font); font-size: 15px; margin: 18px 0 8px; }
.landing { padding-bottom: 60px; }
.land-head { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.land-head h1 { font-family: var(--font); font-size: clamp(24px, 3vw, 32px); font-weight: 700; margin: 0 0 4px; }
.land-head p { margin: 0; }
.chips-nav { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 6px; scrollbar-width: thin; }
.chips-nav a { white-space: nowrap; font-size: 13.5px; padding: 7px 13px; border-radius: 99px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.chips-nav a:hover { border-color: var(--accent); }
.chips-nav a.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.land-grid { display: grid; grid-template-columns: 1fr 300px; gap: 28px; margin-top: 22px; align-items: start; }
.land-side { position: sticky; top: 86px; }
.del-box { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.del-box h3 { font-family: var(--font); font-size: 18px; margin: 0 0 4px; }
.del-box .eyebrow { margin-bottom: 4px; }
.del-box .avs { display: flex; flex-wrap: wrap; gap: 6px; }
a.pager-a, .pager a, .pager span { min-width: 40px; height: 40px; display: inline-grid; place-items: center; padding: 0 8px; border: 1px solid var(--line); background: #fff; border-radius: 9px; font-weight: 600; }
.pager span.on { background: var(--navy); border-color: var(--navy); color: #fff; }
.pager a:hover { border-color: var(--accent); }
.seo-block { margin-top: 46px; }
.seo-block h2 { font-size: clamp(21px, 2.4vw, 26px); margin: 0 0 12px; }
.seo-block > p, .seo-block p { color: #37445a; max-width: 760px; }
table.stats { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); margin: 14px 0 8px; }
table.stats th, table.stats td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
table.stats th { color: var(--muted); font-weight: 500; width: 46%; }
table.stats td { font-weight: 600; }
table.stats tr:last-child th, table.stats tr:last-child td { border: 0; }
.related { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; margin-top: 46px; padding-top: 30px; border-top: 1px solid var(--line); }
.related h3, .related h2 { font-family: var(--font); font-size: 16px; margin: 0 0 10px; }
.related a { display: flex; justify-content: space-between; gap: 10px; padding: 5px 0; font-size: 14px; color: #37445a; border-bottom: 1px dashed var(--line); }
.related a:hover { color: var(--accent-2); }
.related a span, .geo-index a span, .related-inline a span { color: var(--muted); font-size: 12.5px; }
.geo-index { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px 26px; margin: 18px 0 8px; }
.geo-index h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 6px; }
.geo-index h4 a { display: inline; border: 0; padding: 0; color: inherit; }
.geo-index a { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; font-size: 14px; }
.geo-index a:hover { color: var(--accent-2); }
.related-inline { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 20px; }
.related-inline a { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.related-inline a:hover { color: var(--accent-2); }
.sold-banner { background: #fff4e5; border: 1px solid #f6c38f; color: #6b3b0c; border-radius: 12px; padding: 14px 18px; margin: 0 0 16px; font-size: 14.5px; }
.sold-banner a { color: var(--accent-2); font-weight: 600; }
.lazy-map { height: 300px; border-radius: 12px; background: #e7ecf2 url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40"><path d="M0 20h40M20 0v40" stroke="%23d3dae4" stroke-width="1"/></svg>'); display: grid; place-items: center; z-index: 1; position: relative; }
.lazy-map.on { display: block; }
#delmap.lazy-map { height: 460px; border-radius: 18px; }
dl.nap { margin: 0; display: grid; grid-template-columns: 110px 1fr; gap: 10px 14px; font-size: 14.5px; }
dl.nap dt { color: var(--muted); }
dl.nap dd { margin: 0; font-weight: 500; }
.svc h3 { font-family: var(--font); font-size: 16px; margin: 0 0 6px; }
.svc p { color: var(--muted); font-size: 14px; margin: 0 0 6px; }
footer.site .seo-cols { padding-bottom: 30px; border-bottom: 1px solid rgba(255, 255, 255, .1); grid-template-columns: repeat(4, 1fr); }
footer.site .seo-cols a { font-size: 13px; }
@media (max-width: 1080px) { .land-grid { grid-template-columns: 1fr; } .land-side { position: static; } }
@media (max-width: 900px) { footer.site .seo-cols { grid-template-columns: 1fr 1fr; } dl.nap { grid-template-columns: 1fr; gap: 2px; } dl.nap dd { margin-bottom: 8px; } }

/* Buscador reutilizado en las landings: mismo componente que la portada, pero
   sobre fondo claro y a todo el ancho (04/12/2026). */
.landing-search { max-width: none; margin: 14px 0 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.landing-search .tabs { align-items: center; }
.landing-search .tabs .btn.sm { margin-left: auto; }
@media (max-width: 760px) { .landing-search .tabs .btn.sm { display: none; } }

/* ---- aviso por WhatsApp en las landings ---- */
.panel.alerta-wa{display:flex;gap:20px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.panel.alerta-wa>div{flex:1 1 320px;min-width:260px}
.panel.alerta-wa .btn{flex:0 0 auto}
#al-tipos,#al-zonas,#al-extras{display:flex;flex-wrap:wrap;gap:8px 16px;margin:4px 0 16px}
#al-zonas{max-height:190px;overflow:auto}


/* ============================================================
   Rediseño minimalista · diciembre 2026
   Logo tipográfico sin símbolo, letra del sistema (Apple),
   cabecera clara, sin sombras y sin adornos de color.
   ============================================================ */

h1, h2, h3, h4 { letter-spacing: -.025em; }
h1, h2 { font-weight: 600; }

/* --- Logo: solo la palabra --- */
.logo { gap: 0; font-size: 19px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.logo-mark { display: none; }
.logo small { display: none; }

/* --- Cabecera clara --- */
.demo-bar { background: #14130f; color: #e8e4da; }
header.site { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
nav.main a { color: var(--muted); }
nav.main a:hover, nav.main a.on { color: var(--ink); background: #f3f1ec; }
.head-cta .link { color: var(--muted); }
.head-cta .link:hover { color: var(--ink); }
.burger { color: var(--ink); }

/* --- Botones --- */
.btn { border-radius: 99px; }
.btn.sm { border-radius: 99px; }
.btn.dark, .btn.sm.dark { background: var(--ink); }

/* --- Portada: foto de fondo en segundo plano, texto centrado --- */
.hero { background: var(--ink); color: #fff; }
.hero::before { display: block; content: ""; background: linear-gradient(180deg, rgba(11, 18, 32, .78), rgba(11, 18, 32, .58)), var(--hero-img) center/cover; }
.hero::after { display: none; content: none; }
.hero .wrap { padding-top: 92px; padding-bottom: 80px; text-align: center; }
.hero .eyebrow { display: none; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); max-width: 860px; margin: 0 auto; letter-spacing: -.035em; color: #fff; }
.hero h1 em { font-style: normal; color: inherit; }
.hero p.lead { font-size: 19px; max-width: 640px; margin: 20px auto 0; color: #dfe4ec; }
.searchbox { box-shadow: 0 18px 50px rgba(11, 18, 32, .22); border: 0; margin: 40px auto 0; text-align: left; border-radius: 14px; }
.searchbox .tabs button.on { background: var(--ink); color: #fff; }
.searchbox form { grid-template-columns: 1.8fr 1.4fr auto; }
.landing-search form { grid-template-columns: 1.5fr 1.3fr .8fr .8fr auto; }
.hero-stats { justify-content: center; margin-top: 26px; gap: 28px; font-size: 14.5px; }
.hero-stats div { display: flex; gap: 6px; align-items: baseline; }
.hero-stats b { display: inline; font-size: 14.5px; font-weight: 600; color: #fff; }
.hero-stats span { color: #b9c2ce; font-size: 14.5px; }
@media (max-width: 900px) { .searchbox form, .landing-search form { grid-template-columns: 1fr 1fr; } .searchbox form button, .landing-search form button { grid-column: 1 / -1; } }

/* --- Botón de alertas en la cabecera, con un pulso que llama la atención --- */
.alerta-cta { position: relative; padding-left: 16px; }
.alerta-cta .pulso { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; margin-right: 8px; box-shadow: 0 0 0 0 rgba(255, 255, 255, .85); animation: alertaPulso 2s infinite; }
@keyframes alertaPulso { 0% { box-shadow: 0 0 0 0 rgba(255, 255, 255, .8); } 70% { box-shadow: 0 0 0 9px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .alerta-cta .pulso { animation: none; } }

/* --- Secciones con más aire y sin cajas pesadas --- */
section.block { padding: 88px 0; }
.eyebrow { color: var(--muted); font-weight: 600; letter-spacing: .14em; }
.pcard, .lcard, .acard, .step, .panel, table.cmp { box-shadow: none; border: 1px solid var(--line); }
.pcard:hover, .lcard:hover { transform: none; box-shadow: var(--shadow); }
.pcard .bd { padding: 16px 18px 18px; }
.pcard .price, .lcard .price { letter-spacing: -.02em; }
.city { box-shadow: none; }
.tag { border-radius: 4px; }

/* --- Banda oscura para propietarios --- */
section.block.dark { background: var(--ink); }


/* --- Bloque de alertas al final de cada listado --- */
.alerta-box { background: var(--ink); color: #fff; border-radius: 14px; padding: 34px 36px; margin: 34px 0; display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.alerta-box h2 { margin: 0 0 8px; font-size: clamp(22px, 2.4vw, 30px); color: #fff; }
.alerta-box p { margin: 0; color: #c3cad6; max-width: 520px; font-size: 15.5px; }
.alerta-box > div { flex: 999 1 420px; min-width: 0; }
.alerta-box .btn { flex: 0 0 auto; background: var(--accent); }
.alerta-box .btn:hover { background: var(--accent-2); }
