/*
 * Universis Properties · hoja de estilos (portada de la maqueta de docs/mockup).
 * Base estética: Halden. Estructura de cabecera: landing de Universis Asset Management.
 * Regla: SOLO blanco, negro y gris. El único color de la página son las fotos.
 */
:root {
    --black: #0b0b0b;
    --ink: #111111;
    --ink-2: #3a3a3a;
    --muted: #7b7b7b;
    --muted-2: #a6a6a6;
    --line: #e2e2e2;
    --line-dark: #2a2a2a;
    --soft: #f3f3f2;
    --paper: #fafafa;
    --white: #ffffff;
    --dark: #121212;
    --dark-2: #1b1b1b;

    --radius: 18px;
    --radius-sm: 10px;
    --wrap: 1360px;
    --pad: clamp(16px, 4vw, 48px);
    --header-h: 76px;
    --font: "Mona Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 3px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--pad)); margin: 0 auto; padding: 0 var(--pad); }
.ic { width: 16px; height: 16px; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mockup-note { margin: 0; padding: 8px var(--pad); background: var(--black); color: var(--muted-2); font-size: 11px; letter-spacing: .04em; text-align: center; }

/* ---------- Tipografía ---------- */
.eyebrow { margin: 0 0 18px; font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.eyebrow-light { color: var(--muted-2); }
.display { margin: 0; font-size: clamp(42px, 6vw, 88px); font-weight: 300; line-height: .98; letter-spacing: -.035em; }
.h2 { margin: 0; font-size: clamp(32px, 4.2vw, 60px); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.h3 { margin: 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 400; line-height: 1.1; letter-spacing: -.02em; }
.lead { margin: 0; max-width: 520px; font-size: 16px; line-height: 1.6; color: var(--muted); }
.lead-light { color: var(--muted-2); }
.manifesto { margin: 0; max-width: 1080px; font-size: clamp(26px, 3.4vw, 48px); font-weight: 300; line-height: 1.15; letter-spacing: -.025em; }
.manifesto span { color: var(--muted-2); }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; }
.line-mask > span { display: inline-block; }

/* ---------- Botones ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 20px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn .btn-dot { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; transition: transform .35s var(--ease); }
.btn:hover .btn-dot { transform: rotate(-45deg); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark .btn-dot { background: var(--white); color: var(--black); }
.btn-dark:hover { background: var(--ink-2); }
.btn-light { background: var(--white); color: var(--black); }
.btn-light .btn-dot { background: var(--black); color: var(--white); }
.btn-outline { border: 1px solid currentColor; }
.btn-outline .btn-dot { background: var(--white); color: var(--black); }
.btn-outline:hover { background: rgba(255, 255, 255, .08); }
.btn-ghost { padding: 0 20px; border: 1px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--black); }
.btn-block { width: 100%; justify-content: center; padding: 0 20px; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; border-bottom: 1px solid currentColor; padding-bottom: 2px; }

/* ---------- Cabecera (estructura de Asset, en monocromo) ---------- */
.site-header { position: fixed; top: 12px; left: 12px; right: 12px; z-index: 100; transition: transform .4s var(--ease); }
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
.hdr { position: relative; display: flex; align-items: center; gap: 24px; height: 64px; padding: 0 12px 0 22px; border-radius: 16px; background: rgba(14, 14, 14, .9); color: var(--white); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 16px 40px -20px rgba(0, 0, 0, .45); }
.brand img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; font-size: 13.5px; }
.nav > a, .nav-trigger { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 12px; border-radius: 8px; color: rgba(255, 255, 255, .82); transition: background .2s, color .2s; }
.nav > a:hover, .nav-trigger:hover, .nav-trigger[aria-expanded="true"], .nav > a.is-active { background: rgba(255, 255, 255, .08); color: var(--white); }
.chev { width: 11px; height: 11px; transition: transform .25s; }
.nav-trigger[aria-expanded="true"] .chev { transform: rotate(180deg); }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.hdr-lang { height: 38px; padding: 0 10px; border-radius: 8px; font-size: 12px; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.hdr-lang b { color: var(--white); font-weight: 600; }
.hdr-advisor { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 10px; font-size: 13px; transition: border-color .2s; }
.hdr-advisor:hover { border-color: var(--white); }
.btn-contact { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px 0 16px; border-radius: 10px; background: var(--white); color: var(--black); font-size: 13px; font-weight: 500; }
.btn-contact .btn-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--black); color: var(--white); }
.burger { display: none; width: 42px; height: 42px; position: relative; margin-left: auto; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--white); transition: transform .25s; }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 24px; }
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* menú desplegable: misma estructura que Universis Asset Management (intro · cuadrícula · explorar · tarjeta · pie), en monocromo */
.brand { position: relative; display: block; }
.brand-dark { display: none; }
.site-header { transition: transform .4s var(--ease); }
.hdr { transition: background .2s, border-radius .2s, color .2s; }
.site-header.mega-on .hdr { background: var(--white); color: var(--ink); border-radius: 16px 16px 0 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.site-header.mega-on .brand-light { display: none; }
.site-header.mega-on .brand-dark { display: block; }
.site-header.mega-on .nav-trigger { color: var(--ink-2); }
.site-header.mega-on .nav-trigger:hover, .site-header.mega-on .nav-trigger[aria-expanded="true"] { background: var(--soft); color: var(--ink); }
.site-header.mega-on .hdr-lang { color: var(--muted); }
.site-header.mega-on .hdr-lang b { color: var(--ink); }
.site-header.mega-on .hdr-advisor { border-color: var(--line); }
.site-header.mega-on .btn-contact { background: var(--black); color: var(--white); }
.site-header.mega-on .btn-contact .btn-dot { background: var(--white); color: var(--black); }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--ink); border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .45); overflow: hidden; }
.mega:not([hidden]) { animation: mega-in .22s ease-out; }
@keyframes mega-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.mega-in { display: grid; grid-template-columns: 250px minmax(0, 1fr) 330px; gap: 36px; padding: 34px 28px 26px; }
.mega-intro { display: flex; flex-direction: column; padding-right: 28px; border-right: 1px solid var(--line); }
.mega-intro .eyebrow { margin-bottom: 12px; }
.mega-title { margin: 0 0 12px; font-size: 30px; line-height: 1.08; font-weight: 400; letter-spacing: -.02em; }
.mega-lead { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); max-width: 230px; }
.mega-all { margin-top: auto; padding-top: 24px; display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.mega-all .ic { transition: transform .2s; }
.mega-all:hover .ic { transform: translate(2px, -2px); }
.mega-mid { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.mega-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.mega-grid a { display: flex; gap: 13px; align-items: flex-start; padding: 11px 12px; border-radius: 10px; transition: background .18s; }
.mega-grid a:hover, .mega-grid a:focus-visible, .mega-grid a.is-on { background: var(--soft); }
.mega-ico { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--white); transition: background .18s, color .18s, border-color .18s; }
.mega-grid a.is-on .mega-ico { background: var(--black); border-color: var(--black); color: var(--white); }
.mega-ico svg { width: 17px; height: 17px; }
.mega-txt { display: flex; flex-direction: column; gap: 2px; font-size: 12.5px; line-height: 1.42; color: var(--muted); }
.mega-txt b { color: var(--ink); font-size: 14.5px; font-weight: 500; }
.mega-explore { background: var(--soft); border-radius: 12px; padding: 16px 18px 12px; }
.mega-explore .eyebrow { margin: 0 0 4px; font-size: 10px; }
.mega-explore h4 { margin: 0 0 6px; font-size: 16px; font-weight: 500; }
.mega-explore ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
.mega-explore a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.mega-explore a:hover { color: var(--muted); }
.mega-card { position: relative; display: block; border-radius: 14px; overflow: hidden; min-height: 330px; background: var(--dark); color: var(--white); isolation: isolate; }
.mega-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; z-index: -2; }
.mega-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 22%, rgba(0, 0, 0, .55) 52%, rgba(0, 0, 0, .92)); }
.mega-card:hover img { transform: scale(1.04); }
.mega-card-txt { position: absolute; left: 22px; right: 22px; bottom: 20px; display: flex; flex-direction: column; gap: 6px; }
.mega-card-txt small { font-size: 10px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.mega-card-txt b { font-size: 24px; font-weight: 400; line-height: 1.12; letter-spacing: -.01em; }
.mega-card-txt span { font-size: 13px; line-height: 1.45; color: rgba(255, 255, 255, .82); }
.mega-card-txt i { margin-top: 8px; font-style: normal; display: inline-flex; align-items: center; gap: 10px; width: fit-content; padding: 6px 6px 6px 13px; border-radius: 8px; background: var(--white); color: var(--ink); font-size: 13px; font-weight: 500; }
.mega-card-txt i .ic { box-sizing: border-box; width: 24px; height: 24px; padding: 5px; border-radius: 6px; background: var(--black); color: var(--white); }
.mega-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 13px 28px 15px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mega-foot em { font-style: normal; margin: 0 6px; color: var(--muted-2); }
.mega-foot a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 600; }
.mega-close { font-size: 12px; font-weight: 600; color: var(--ink); }
.mega-close span { font-size: 15px; margin-left: 3px; }
@media (max-width: 1320px) {
    .nav-trigger { padding: 0 8px; }
    .nav { font-size: 12.5px; }
    .mega-in { grid-template-columns: 210px minmax(0, 1fr) 270px; gap: 24px; }
}

.mobile-nav { position: fixed; inset: 0; z-index: 90; padding: 100px var(--pad) 40px; background: var(--dark); color: var(--white); overflow-y: auto; }
.mobile-nav details { border-bottom: 1px solid var(--line-dark); }
.mobile-nav summary { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; font-size: 24px; font-weight: 300; list-style: none; cursor: pointer; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav details[open] .chev { transform: rotate(180deg); }
.mobile-nav details a { display: block; padding: 10px 0 10px 4px; font-size: 15px; color: rgba(255, 255, 255, .85); }
.mobile-nav details a small { display: block; font-size: 12px; color: var(--muted-2); }
.mobile-nav details a b { font-weight: 500; }
.mobile-nav details > a:last-child { padding-bottom: 18px; }
.mobile-cta { display: flex; justify-content: center; align-items: center; height: 50px; margin-top: 18px; border-radius: 10px; background: var(--white); color: var(--black); font-size: 15px; font-weight: 500; }
.mobile-cta-ghost { margin-top: 10px; background: transparent; color: var(--white); border: 1px solid var(--line-dark); }

/* ---------- Secciones ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; }
.section-tight { padding: clamp(56px, 7vw, 96px) 0; }
.section-dark { background: var(--dark); color: var(--white); }
.section-white { background: var(--white); }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: clamp(36px, 5vw, 64px); }
.sec-head .lead { max-width: 380px; }

/* ---------- Portada partida (Halden) ---------- */
.hero-split { display: grid; grid-template-columns: 1.08fr 1fr; gap: 12px; height: max(720px, 100svh); padding: 12px; }
.hero-panel { position: relative; display: flex; flex-direction: column; justify-content: space-between; padding: 120px clamp(24px, 3.4vw, 52px) clamp(24px, 3vw, 40px); border-radius: var(--radius); background: var(--dark); color: var(--white); overflow: hidden; }
.hero-panel .lead { margin-top: 26px; }
.hero-panel .hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.hero-media { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.hero-media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-float { position: absolute; left: 20px; bottom: 20px; display: flex; align-items: center; gap: 18px; max-width: calc(100% - 40px); padding: 14px 16px 14px 18px; border-radius: 14px; background: rgba(255, 255, 255, .94); color: var(--ink); backdrop-filter: blur(10px); transition: transform .35s var(--ease); }
.hero-float:hover { transform: translateY(-3px); }
.hero-float small { display: block; font-size: 11px; color: var(--muted); letter-spacing: .02em; }
.hero-float b { display: block; font-size: 15px; font-weight: 500; }
.hero-float .btn-dot { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--black); color: var(--white); flex: none; }

/* minmax(0, …): el ancho de las columnas no depende del número, que cambia durante la animación */
.kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.kpis:has(.kpi-total) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); }
.kpi { padding-top: 16px; border-top: 1px solid var(--line-dark); }
.kpi-n { white-space: nowrap; display: block; font-variant-numeric: tabular-nums; font-size: clamp(28px, 2.8vw, 42px); font-weight: 300; letter-spacing: -.03em; line-height: 1; }
.kpi-l { display: block; margin-top: 8px; font-size: 12px; color: var(--muted-2); }
.kpi-total .kpi-n { font-size: clamp(38px, 4vw, 58px); }

.type-bar { display: flex; align-items: stretch; gap: 0; margin-top: 22px; padding: 6px; border-radius: 14px; background: var(--white); color: var(--ink); overflow-x: auto; scrollbar-width: none; }
.type-bar::-webkit-scrollbar { display: none; }
.type-bar a { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex: 1 0 auto; min-width: 128px; padding: 10px 14px; border-right: 1px solid var(--line); transition: background .2s; border-radius: 8px; }
.type-bar a:last-of-type { border-right: 0; }
.type-bar a:hover { background: var(--soft); }
.type-bar small { display: block; font-size: 11px; color: var(--muted); }
.type-bar b { display: block; font-size: 14px; font-weight: 500; white-space: nowrap; }
.type-bar .type-all { flex: 0 0 auto; min-width: 0; margin-left: 6px; padding: 0 8px 0 16px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; font-weight: 500; border: 0; }
.type-bar .type-all:hover { background: var(--ink-2); }
.type-bar .type-all .btn-dot { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--white); color: var(--black); }

/* ---------- Cifras sobre foto ---------- */
.figures { position: relative; min-height: 640px; border-radius: var(--radius); overflow: hidden; color: var(--white); margin: 0 12px; }
.figures > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.figures::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .05) 25%, rgba(0, 0, 0, .55) 50%, rgba(0, 0, 0, .85)); }
.figures-list { position: absolute; z-index: 1; right: clamp(20px, 4vw, 56px); top: 50%; transform: translateY(-50%); width: min(420px, calc(100% - 40px)); }
.figures-list div { padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .45); }
.figures-list b { display: block; font-variant-numeric: tabular-nums; font-size: clamp(40px, 5vw, 72px); font-weight: 350; line-height: 1; letter-spacing: -.03em; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
.figures-list > div > span { display: block; margin-top: 10px; font-size: 15px; font-weight: 500; letter-spacing: .01em; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }

/* ---------- Ciudades: lista tipográfica (Halden «Neighbourhoods») ---------- */
.cities { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.city-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.city-row { display: grid; grid-template-columns: 1fr auto auto 24px; align-items: center; gap: 24px; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--muted-2); transition: color .3s; }
.city-row .city-name { font-size: clamp(30px, 3.6vw, 52px); font-weight: 300; letter-spacing: -.03em; line-height: 1.1; }
.city-row .city-meta { font-size: 12px; text-align: right; white-space: nowrap; }
.city-row .city-meta b { display: block; font-size: 14px; font-weight: 500; }
.city-row .ic { opacity: 0; transform: translate(-6px, 6px); transition: opacity .3s, transform .3s var(--ease); }
.city-row.is-active, .city-row:hover { color: var(--ink); }
.city-row.is-active .ic, .city-row:hover .ic { opacity: 1; transform: none; }
.city-preview { position: sticky; top: 100px; }
.city-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--line); }
.city-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.city-photo img.is-active { opacity: 1; transform: none; }
.city-preview p { margin: 16px 0 14px; font-size: 14px; color: var(--muted); min-height: 44px; }

/* ---------- Tarjetas de activo ---------- */
.asset-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 20px; }
.asset-card { display: flex; flex-direction: column; border-radius: var(--radius); background: var(--white); overflow: hidden; border: 1px solid var(--line); transition: border-color .3s, transform .45s var(--ease), box-shadow .45s var(--ease); }
.asset-card:hover { border-color: var(--ink); transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(0, 0, 0, .35); }
.asset-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.asset-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.asset-card:hover .asset-media img { transform: scale(1.05); }
.asset-tags { position: absolute; left: 12px; top: 12px; right: 12px; display: flex; flex-wrap: wrap; gap: 6px; }
.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 11px; font-weight: 500; letter-spacing: .02em; }
.tag-dark { background: var(--black); color: var(--white); }
.tag-outline { background: transparent; border: 1px solid var(--line); }
.asset-loc { position: absolute; left: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; background: rgba(0, 0, 0, .55); color: var(--white); font-size: 12px; backdrop-filter: blur(6px); }
.asset-body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.asset-title { margin: 0 0 6px; font-size: 19px; font-weight: 500; line-height: 1.25; letter-spacing: -.01em; }
.asset-sum { margin: 0 0 18px; font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.asset-figs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.asset-figs small { display: block; font-size: 11px; color: var(--muted); }
.asset-figs b { display: block; font-size: 15px; font-weight: 500; white-space: nowrap; }
.asset-figs .fig-price b { font-size: 18px; }

/* tarjeta horizontal (resultados) */
.asset-row { display: grid; grid-template-columns: 230px 1fr; gap: 0; border-radius: 14px; background: var(--white); border: 1px solid var(--line); overflow: hidden; transition: border-color .25s, box-shadow .25s; }
.asset-row:hover, .asset-row.is-hover { border-color: var(--ink); box-shadow: 0 16px 30px -24px rgba(0, 0, 0, .4); }
.asset-row .asset-media { aspect-ratio: auto; height: 100%; min-height: 176px; }
.asset-row .asset-body { padding: 14px 18px 16px; }
.asset-row .asset-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.asset-row .asset-price { font-size: 21px; font-weight: 500; letter-spacing: -.01em; white-space: nowrap; }
.asset-row .asset-title { font-size: 16px; margin: 4px 0 2px; }
.asset-row .asset-where { font-size: 13px; color: var(--muted); }
.asset-row .asset-figs { grid-template-columns: repeat(3, 1fr); padding-top: 12px; margin-top: 14px; }
.asset-row .asset-figs b { font-size: 14px; }
.asset-row .asset-advisor { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 12px; color: var(--muted); }

.avatar { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--black); color: var(--white); font-size: 11px; font-weight: 600; flex: none; }
.avatar-lg { width: 48px; height: 48px; font-size: 15px; }

/* ---------- Gestores de activos ---------- */
.mgr-chip { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); line-height: 1.3; }
.mgr-chip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.mgr-chip b { display: block; font-size: 13px; font-weight: 500; color: var(--ink); }
.asset-mgr { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.asset-row .asset-advisor { margin-top: 12px; }
.mgr-face { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex: none; background: var(--line); }
.mgr-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 16px; }
.mgr-card { display: block; }
.mgr-photo { aspect-ratio: 4 / 5; border-radius: 14px; overflow: hidden; margin-bottom: 14px; background: var(--line); }
.mgr-photo img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .5s, transform .9s var(--ease); }
.mgr-card:hover .mgr-photo img { filter: none; transform: scale(1.04); }
.mgr-card b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.mgr-card span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-2); }
.mgr-card small { display: block; margin-top: 6px; font-size: 12px; color: var(--muted); }
.contact-mgr { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-mgr img { width: 92px; height: 112px; border-radius: 12px; object-fit: cover; flex: none; background: var(--line); }
.contact-mgr small { display: block; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.contact-mgr b { display: block; margin: 4px 0 2px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; }
.contact-mgr span { display: block; font-size: 13px; color: var(--muted); }
.contact-mgr .link-arrow { margin-top: 10px; font-size: 13px; }

/* ---------- Activo destacado ---------- */
.featured { display: grid; grid-template-columns: 1.25fr 1fr; gap: 12px; }
.featured-media { position: relative; min-height: 560px; border-radius: var(--radius); overflow: hidden; }
.featured-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.featured-info { display: flex; flex-direction: column; padding: clamp(24px, 3vw, 44px); border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.featured-info .h2 { font-size: clamp(30px, 3.2vw, 46px); }
.featured-price { margin: 18px 0 0; font-size: clamp(28px, 2.6vw, 38px); font-weight: 300; letter-spacing: -.02em; }
.featured-figs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin: 28px 0; border-top: 1px solid var(--line); }
.featured-figs div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.featured-figs div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.featured-figs div:nth-child(even) { padding-left: 16px; }
.featured-figs b { display: block; font-size: 24px; font-weight: 300; letter-spacing: -.02em; }
.featured-figs small { font-size: 12px; color: var(--muted); }
.featured-advisor { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 20px; font-size: 13px; color: var(--muted); }
.featured-advisor b { display: block; color: var(--ink); font-weight: 500; }
.featured-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

/* ---------- Colecciones editoriales ---------- */
.collections { display: grid; gap: 12px; padding: 0 12px; }
.collection { position: relative; display: flex; align-items: flex-end; min-height: 78vh; padding: clamp(24px, 4vw, 56px); border-radius: var(--radius); overflow: hidden; color: var(--white); }
.collection > img { position: absolute; inset: -8% 0 0; width: 100%; height: 116%; object-fit: cover; }
.collection::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .7)); }
.collection-body { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr minmax(260px, 380px); gap: 40px; align-items: end; width: 100%; }
.collection .display { font-size: clamp(44px, 7vw, 110px); text-transform: uppercase; font-weight: 300; }
.collection p { margin: 0 0 20px; color: rgba(255, 255, 255, .82); font-size: 15px; }

/* ---------- Desarrollos (home) ---------- */
.dev-track { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(300px, 30%); gap: 16px; overflow-x: auto; padding-bottom: 12px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.dev-card { position: relative; aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; color: var(--white); scroll-snap-align: start; }
.dev-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.dev-card:hover img { transform: scale(1.05); }
.dev-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .75)); }
.dev-card .tag { position: absolute; z-index: 1; left: 16px; top: 16px; }
.dev-card div { position: absolute; z-index: 1; left: 20px; right: 20px; bottom: 18px; }
.dev-card b { display: block; font-size: 24px; font-weight: 400; letter-spacing: -.02em; }
.dev-card div span { font-size: 13px; color: rgba(255, 255, 255, .78); }

/* ---------- Banner gestión de activos (home) ---------- */
.am-banner { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 0 12px; }
.am-banner-info { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(28px, 4vw, 56px); border-radius: var(--radius); background: var(--dark); color: var(--white); min-height: 560px; }
.am-total { font-variant-numeric: tabular-nums; margin: 30px 0 6px; font-size: clamp(56px, 7vw, 112px); font-weight: 300; letter-spacing: -.045em; line-height: .95; }
.am-banner-media { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 400px; }
.am-banner-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------- Pasos ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step { padding-top: 20px; border-top: 1px solid var(--ink); }
.step::before { counter-increment: step; content: "0" counter(step); display: block; margin-bottom: 40px; font-size: 13px; color: var(--muted); }
.step h3 { margin: 0 0 10px; font-size: 20px; font-weight: 500; letter-spacing: -.01em; }
.step p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Actualidad ---------- */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.post-media { aspect-ratio: 16 / 11; border-radius: 14px; overflow: hidden; margin-bottom: 16px; }
.post-media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); transition: filter .6s, transform 1s var(--ease); }
.post:hover .post-media img { filter: none; transform: scale(1.04); }
.post small { font-size: 12px; color: var(--muted); }
.post h3 { margin: 6px 0 0; font-size: 20px; font-weight: 400; line-height: 1.25; letter-spacing: -.01em; }

/* ---------- Advisors / CTA ---------- */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding: clamp(32px, 5vw, 64px); border-radius: var(--radius); background: var(--dark); color: var(--white); }
.cta-band ul { list-style: none; margin: 0 0 24px; padding: 0; }
.cta-band li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line-dark); font-size: 14px; color: rgba(255, 255, 255, .8); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: 18px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; transition: transform .3s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; max-width: 640px; color: var(--muted); font-size: 15px; }

/* ---------- Pie ---------- */
.site-footer { margin: 12px; padding: clamp(40px, 6vw, 80px) clamp(20px, 4vw, 56px) 28px; border-radius: var(--radius); background: var(--dark); color: var(--white); }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line-dark); }
.footer-top img { height: 40px; width: auto; margin-bottom: 18px; }
.footer-top p { margin: 0; max-width: 320px; font-size: 14px; color: var(--muted-2); }
.footer-top h4 { margin: 0 0 14px; font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.footer-top a { display: block; padding: 5px 0; font-size: 14px; color: rgba(255, 255, 255, .8); }
.footer-top a:hover { color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 24px; font-size: 12px; color: var(--muted); }
.footer-big { margin: 40px 0 0; font-size: clamp(60px, 13vw, 210px); font-weight: 300; letter-spacing: -.06em; line-height: .8; color: #1f1f1f; white-space: nowrap; overflow: hidden; }

/* ---------- Resultados: filtros + listado + mapa ---------- */
body.page-results { background: var(--soft); }
.page-results .site-header { top: 0; left: 0; right: 0; }
.page-results .hdr { border-radius: 0; height: var(--header-h); background: var(--dark); }
.page-results .site-header.is-hidden { transform: none; }
.page-results .site-header.mega-on .hdr { border-radius: 0; }
.page-results .mega { border-radius: 0 0 16px 16px; margin: 0 12px; }
.filterbar { position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 60; display: flex; align-items: center; gap: 8px; height: 64px; padding: 0 16px; background: var(--white); border-bottom: 1px solid var(--line); }
.fb-search { display: flex; align-items: center; gap: 8px; width: 260px; flex: none; height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); }
.fb-search input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; }
.fb-chips { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.fb-chips::-webkit-scrollbar { display: none; }
.chip-wrap { position: relative; flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; white-space: nowrap; transition: border-color .2s, background .2s, color .2s; }
.chip:hover { border-color: var(--ink); }
.chip.is-on { background: var(--black); border-color: var(--black); color: var(--white); }
.chip-filters { gap: 8px; }
.chip-count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--white); color: var(--black); font-size: 11px; font-weight: 600; }
.chip-pop { position: fixed; z-index: 80; width: 300px; padding: 16px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .35); }
.chip-pop h5 { margin: 0 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.check { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 14px; cursor: pointer; border-bottom: 1px solid var(--soft); }
.check input { accent-color: var(--black); width: 16px; height: 16px; }
.check span { flex: 1; }
.check small { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Opción sin activos con los filtros actuales */
.check.is-empty, .pills label.is-empty { opacity: .4; cursor: default; }
.range { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.range label { font-size: 11px; color: var(--muted); }
.range input, .field input, .field select, .field textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); font-size: 14px; outline: none; }
.range input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--black); }
.pop-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 14px; }
.pop-actions button { height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; }
.pop-actions .apply { background: var(--black); color: var(--white); }
.pop-actions .clear { text-decoration: underline; }
.fb-right { display: flex; align-items: center; gap: 8px; flex: none; }
.fb-save { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 13px; }

.results { position: fixed; top: calc(var(--header-h) + 64px); left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: minmax(520px, 46%) 1fr; }
.results-list { overflow-y: auto; padding: 18px 16px 40px; scrollbar-width: thin; }
.results-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.results-head h1 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.01em; }
.results-head p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.results-head select { height: 36px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); font-size: 13px; }
.results-items { display: grid; gap: 12px; }
.results-empty { padding: 60px 20px; text-align: center; color: var(--muted); }
.results-map { position: relative; background: #e9e9e9; }
#map { position: absolute; inset: 0; }
.map-draw { position: absolute; z-index: 500; top: 14px; right: 14px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); font-size: 13px; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35); }
.map-draw.is-on { background: var(--black); color: var(--white); }
.map-toggle { display: none; }

/* marcadores del mapa: monocromo */
.pin { display: inline-flex; align-items: center; height: 30px; padding: 0 11px; border-radius: 999px; background: var(--white); color: var(--black); font: 600 12px/1 var(--font); white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .45); transform: translate(-50%, -50%); transition: background .2s, color .2s, transform .2s; }
.pin.is-hover, .pin:hover { background: var(--black); color: var(--white); transform: translate(-50%, -50%) scale(1.08); }
.leaflet-div-icon.pin-icon { background: none; border: 0; }
.cluster { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--black); color: var(--white); font: 600 13px/1 var(--font); box-shadow: 0 0 0 6px rgba(0, 0, 0, .14); }
.leaflet-div-icon.cluster-icon { background: none; border: 0; }
.leaflet-popup-content-wrapper { border-radius: 14px; padding: 0; overflow: hidden; }
.leaflet-popup-content { margin: 0; width: 240px !important; font-family: var(--font); }
.map-pop img { width: 100%; height: 130px; object-fit: cover; }
.map-pop div { padding: 10px 12px 12px; }
.map-pop b { display: block; font-size: 16px; font-weight: 600; }
.map-pop span { display: block; font-size: 13px; color: var(--muted); }
.leaflet-container a.leaflet-popup-close-button { color: var(--white); }
.leaflet-container { font-family: var(--font); }
/* teselas en escala de grises (regla monocromo). Producción: proveedor con clave (MapTiler / Stadia / CARTO) */
.leaflet-tile-pane { filter: grayscale(1) contrast(.92) brightness(1.04); }

/* panel lateral de filtros */
.drawer-backdrop { position: fixed; inset: 0; z-index: 140; background: rgba(0, 0, 0, .35); }
.drawer { position: fixed; z-index: 150; top: 0; right: 0; bottom: 0; width: min(440px, 100%); display: flex; flex-direction: column; background: var(--white); box-shadow: -30px 0 60px -30px rgba(0, 0, 0, .4); }
.drawer:not([hidden]) { animation: drawer-in .3s var(--ease); }
@keyframes drawer-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.drawer-body { flex: 1; overflow-y: auto; padding: 8px 24px 24px; }
.drawer-body fieldset { margin: 0; padding: 18px 0; border: 0; border-bottom: 1px solid var(--line); }
.drawer-body legend { padding: 0; margin-bottom: 10px; font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills label { cursor: pointer; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; font-size: 13px; transition: all .2s; }
.pills input:checked + span { background: var(--black); border-color: var(--black); color: var(--white); }
.pills small { margin-left: 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pills small:empty { display: none; }
.pills input:checked + span small { color: rgba(255, 255, 255, .7); }
.pills input:focus-visible + span { outline: 2px solid var(--black); outline-offset: 2px; }
.drawer-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 24px; border-top: 1px solid var(--line); }

/* ---------- Ficha del activo ---------- */
.detail { padding-top: 100px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 13px; color: var(--muted); }
.crumbs a:hover { color: var(--ink); }
.detail-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-bottom: 24px; }
.detail-head h1 { margin: 10px 0 8px; font-size: clamp(32px, 4vw, 56px); font-weight: 300; line-height: 1.02; letter-spacing: -.03em; }
.detail-where { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); }
.detail-price { text-align: right; flex: none; }
.detail-price b { display: block; font-size: clamp(28px, 3vw, 42px); font-weight: 300; letter-spacing: -.02em; line-height: 1; }
.detail-price small { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.detail-tools { display: flex; gap: 6px; justify-content: flex-end; margin-top: 14px; }
.tool { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; background: var(--white); }
.tool:hover { border-color: var(--ink); }

.mosaic { position: relative; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: min(560px, 62vh); border-radius: var(--radius); overflow: hidden; }
.mosaic button { position: relative; overflow: hidden; background: var(--line); }
.mosaic button:first-child { grid-row: 1 / 3; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), opacity .3s; }
.mosaic button:hover img { transform: scale(1.04); }
.mosaic .mosaic-all { position: absolute; overflow: visible; z-index: 2; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; background: var(--white); font-size: 13px; font-weight: 500; box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .4); }

.detail-body { display: grid; grid-template-columns: 1fr 400px; gap: clamp(24px, 4vw, 56px); align-items: start; margin-top: 40px; padding-bottom: 80px; }
.block { padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); margin-bottom: 16px; }
.block h2 { margin: 0 0 18px; font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.overview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.overview div { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.overview svg { width: 22px; height: 22px; color: var(--muted); flex: none; margin-top: 2px; }
.overview small { display: block; font-size: 12px; color: var(--muted); }
.overview b { display: block; font-size: 16px; font-weight: 500; }
.prose { margin: 0; font-size: 15.5px; line-height: 1.7; color: var(--ink-2); }
.prose + .prose { margin-top: 14px; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; }
.ticks li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.ticks svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.dtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.dtable th, .dtable td { padding: 12px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.dtable th { width: 44%; font-weight: 400; color: var(--muted); }
.dtable td { font-weight: 500; }
.docs { list-style: none; margin: 0; padding: 0; }
.docs li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.docs li span { display: inline-flex; align-items: center; gap: 10px; }
.docs li small { color: var(--muted); }
.detail-map { height: 320px; border-radius: 12px; overflow: hidden; }
.map-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.contact-card { position: sticky; top: 96px; padding: 24px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.contact-price { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid var(--line); }
.contact-price b { display: block; font-size: 30px; font-weight: 300; letter-spacing: -.02em; }
.contact-price small { font-size: 13px; color: var(--muted); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 999px; background: var(--soft); }
.tabs button { height: 36px; border-radius: 999px; font-size: 13px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: var(--black); color: var(--white); }
.contact-person { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.contact-person b { display: block; color: var(--ink); font-size: 15px; font-weight: 500; }
.field { margin-bottom: 10px; }
.field textarea { height: 96px; padding: 10px 12px; resize: vertical; }
.legal { margin: 10px 0 16px; font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.contact-alt { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.form-ok { padding: 16px; border-radius: 12px; background: var(--soft); font-size: 14px; }

/* lightbox */
.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(8, 8, 8, .96); color: var(--white); }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 20px; font-size: 13px; }
.lb-stage { position: relative; flex: 1; display: grid; place-items: center; padding: 0 70px; min-height: 0; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .3); }
.lb-nav:hover { background: rgba(255, 255, 255, .1); }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
.lb-thumbs { display: flex; gap: 8px; justify-content: center; padding: 14px; overflow-x: auto; }
.lb-thumbs button { width: 84px; height: 58px; border-radius: 6px; overflow: hidden; opacity: .45; flex: none; transition: opacity .2s; }
.lb-thumbs button.is-active, .lb-thumbs button:hover { opacity: 1; }
.lb-thumbs img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
    .nav, .hdr-lang, .hdr-advisor { display: none; }
    .burger { display: block; }
    .hdr-actions { margin-left: auto; }
    .asset-grid { grid-template-columns: repeat(2, 1fr); }
    .mega { display: none !important; }
    .results { grid-template-columns: 1fr 1fr; }
    .results-list { min-width: 0; }
    .asset-row { grid-template-columns: 1fr; }
    .asset-row .asset-media { min-height: 170px; height: 170px; }
}
@media (max-width: 960px) {
    .hero-split { grid-template-columns: 1fr; height: auto; }
    .hero-media { min-height: 420px; }
    .featured, .am-banner, .cities, .faq, .cta-band { grid-template-columns: 1fr; }
    .city-preview { display: none; }
    .steps, .posts { grid-template-columns: 1fr 1fr; }
    .mgr-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-top { grid-template-columns: 1fr 1fr; }
    .collection-body { grid-template-columns: 1fr; }
    .detail-body { grid-template-columns: 1fr; }
    .contact-card { position: static; }
    .filterbar { gap: 6px; }
    .fb-search { width: 180px; }
    .fb-save span { display: none; }
    .results { grid-template-columns: 1fr; }
    .results-map { display: none; }
    .results.show-map .results-map { display: block; }
    .results.show-map .results-list { display: none; }
    .map-toggle { display: inline-flex; position: fixed; z-index: 120; left: 50%; bottom: 20px; transform: translateX(-50%); align-items: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--black); color: var(--white); font-size: 14px; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
    .asset-row { grid-template-columns: 200px 1fr; }
    .asset-row .asset-media { height: 100%; }
}
@media (max-width: 640px) {
    .site-header { top: 8px; left: 8px; right: 8px; }
    .hdr { padding: 0 8px 0 16px; }
    .brand img { height: 28px; }
    .btn-contact { display: none; }
    .hero-split { padding: 8px; gap: 8px; }
    .hero-panel { padding-top: 100px; }
    .kpis, .kpis:has(.kpi-total) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .kpi-total { grid-column: 1 / -1; }
    .asset-grid, .steps, .posts, .footer-top { grid-template-columns: 1fr; }
    .mgr-grid { grid-template-columns: 1fr 1fr; }
    .sec-head { flex-direction: column; align-items: flex-start; }
    .city-row { grid-template-columns: 1fr auto; }
    .city-row .city-vol, .city-row .ic { display: none; }
    .figures { min-height: 560px; margin: 0 8px; }
    /* En móvil las cifras ocupan todo el ancho: se oscurece la foto entera */
    .figures::after { background: linear-gradient(180deg, rgba(0, 0, 0, .45), rgba(0, 0, 0, .75)); }
    .collections, .am-banner { padding: 0 8px; }
    .site-footer { margin: 8px; }
    .fb-search { display: none; }
    .fb-right .fb-save { display: none; }
    .asset-row { grid-template-columns: 1fr; }
    .asset-row .asset-media { height: 190px; }
    .results-head { flex-wrap: wrap; }
    .results-head h1 { font-size: 20px; }
    .mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 2fr 1fr; height: 420px; }
    .mosaic button:first-child { grid-column: 1 / 3; grid-row: 1; }
    .mosaic button:nth-child(n+4):not(.mosaic-all) { display: none; }
    .detail-head { flex-direction: column; align-items: flex-start; }
    .detail-price { text-align: left; }
    .detail-tools { justify-content: flex-start; }
    .overview, .ticks { grid-template-columns: 1fr 1fr; }
    .block { padding: 20px; }
    .lb-stage { padding: 0 10px; }
    .lb-nav { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- Impresión: ficha en PDF ---------- */
@media print {
    .site-header, .site-footer, .mockup-note, .contact-card form, .tabs, .detail-tools, .mosaic-all, .similar, .contact-alt, .detail-map, .map-note { display: none !important; }
    body { background: #fff; }
    .detail { padding-top: 0; }
    .detail-body { grid-template-columns: 1fr 260px; }
    .block, .contact-card { border: 0; padding: 0; position: static; }
    .mosaic { height: 340px; }
}

/* ---------- Web real (CakePHP) ---------- */
/* Selector de idioma: dos enlaces en lugar del botón de la maqueta */
.hdr-lang { display: inline-flex; align-items: center; gap: 4px; }
.hdr-lang a { color: inherit; }
.hdr-lang a:hover { color: var(--white); }
.site-header.mega-on .hdr-lang a:hover { color: var(--ink); }
@media (max-width: 1180px) { .hdr-lang { display: none; } }
.mobile-lang { display: flex; gap: 16px; padding: 18px 0 0; font-size: 13px; letter-spacing: .08em; color: var(--muted); }
.mobile-lang b { color: var(--ink); font-weight: 600; }

/* Mensajes flash */
.flash { position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translateX(-50%); max-width: min(560px, calc(100% - 32px));
    padding: 14px 18px; border-radius: 12px; background: var(--black); color: var(--white); font-size: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .25); cursor: pointer; }
.flash-error { background: var(--white); color: var(--ink); border: 1px solid var(--ink); }

/* Errores de formulario */
.field .error-message { margin-top: 6px; font-size: 12px; color: var(--ink); }
.field.error input, .field.error textarea { border-color: var(--ink); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Páginas de error */
.error-page { min-height: 100vh; display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: 32px 16px 64px; background: var(--black); color: var(--white); }
.error-page > div { max-width: 860px; }
.error-page .display { margin: 12px 0 20px; }
.error-page .lead { margin-bottom: 32px; }
@media (min-width: 768px) { .error-page { padding: 40px 48px 96px; } }

/* Carruseles que se arrastran con el ratón (webroot/js/app.js, initDragScroll) */
@media (hover: hover) and (pointer: fine) {
    [data-drag-scroll] { cursor: grab; }
}
[data-drag-scroll].is-dragging { cursor: grabbing; user-select: none; }
/* Mientras se arrastra o se desliza no se ajusta a cada tarjeta; al parar vuelve el ajuste */
[data-drag-scroll].is-dragging, [data-drag-scroll].is-gliding { scroll-snap-type: none; }
[data-drag-scroll].is-dragging a { pointer-events: none; }
[data-drag-scroll] img { -webkit-user-drag: none; }
