:root {
  --bg: #0f0f0f; --bg-raise: #161616; --panel: #1c1c1c; --panel-2: #252525;
  --ink: #f5f5f0; --mute: #a9a9a3; --line: #2d2d2d;
  --gold: #f4f85d; --gold-deep: #b9bd1f; --on-gold: #111111;
  --ok: #3fb27f; --warn: #e0a23a; --no: #e5484d;
  --glass: rgba(17, 18, 22, .72);
  --f-display: "Fraunces", Georgia, serif; --f-body: "Inter", "Helvetica Neue", Arial, system-ui, sans-serif;
  --r: 16px; --r-sm: 10px; --top: 68px; --g: clamp(16px, 3vw, 28px);
  --shadow: 0 10px 30px rgba(0,0,0,.35);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 15px/1.5 var(--f-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; margin: 0; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.1rem); }
h3 { font-size: 1.2rem; }
.muted { color: var(--mute); margin: .25rem 0 0; }
.small { font-size: .85rem; }
.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg:not(.ic):not(.plate) { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Barra superior */
.topbar { position: fixed; inset: 0 0 auto 0; height: var(--top); z-index: 1000; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 var(--g); pointer-events: none; }
.topbar > * { pointer-events: auto; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; }
.tb-search { position: absolute; left: 50%; transform: translateX(-50%); }
body[data-route="inicio"] .tb-search, body[data-route="inicio"] #btn-back { display: none; }
.pill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid transparent; font-weight: 500; white-space: nowrap; }
.pill-dark { background: var(--glass); border-color: rgba(255,255,255,.12); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pill-gold { background: var(--gold); color: var(--on-gold); box-shadow: var(--shadow); }
.pill-light { background: rgba(246,243,236,.92); color: #111111; }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 0; }
.icon-btn:hover, .pill-dark:hover { border-color: var(--gold); }
.lang { display: flex; background: var(--glass); border: 1px solid rgba(255,255,255,.12); border-radius: 999px; padding: 3px; backdrop-filter: blur(10px); }
.lang button { border: 0; background: none; padding: 6px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; color: var(--mute); }
.lang button.on { background: var(--ink); color: #111111; }

#view { min-height: 100vh; outline: none; }

/* Botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid transparent; font-weight: 600; font-size: .92rem; background: none; white-space: nowrap; }
.btn-lg { height: 52px; padding: 0 34px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-dark { background: var(--ink); color: #111111; }
.btn-light { background: rgba(246,243,236,.95); color: #111111; }
.btn-gold { background: var(--gold); color: var(--on-gold); }
.btn-ghost { border-color: var(--line); color: var(--ink); }
.btn:hover { filter: brightness(1.06); }
.btn-ghost:hover { border-color: var(--gold); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); font-size: .88rem; font-weight: 500; }
.chip.on { border-color: var(--gold); color: var(--gold); }
.chip .count { background: var(--gold); color: var(--on-gold); border-radius: 999px; min-width: 20px; height: 20px; display: inline-grid; place-items: center; font-size: .72rem; }

.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); flex: none; }
.dot.ok { background: var(--ok); } .dot.warn { background: var(--warn); } .dot.no { background: var(--no); }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 600; background: var(--panel-2); color: var(--ink); }
.badge.ok { background: rgba(63,178,127,.16); color: #74d6a8; } .badge.ok .dot { background: var(--ok); }
.badge.warn { background: rgba(224,162,58,.16); color: #f0c172; } .badge.warn .dot { background: var(--warn); }
.badge.no { background: rgba(229,72,77,.16); color: #ff8a8d; } .badge.no .dot { background: var(--no); }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; color: var(--mute); border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; }
.tag .ic { width: 14px; height: 14px; color: var(--ok); }

/* Inicio */
.v-inicio { position: relative; height: 100vh; height: 100svh; overflow: hidden; display: grid; place-items: center; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, rgba(17,18,22,.25), rgba(17,18,22,.75)); }
.hero-copy { position: relative; text-align: center; padding: var(--g); display: grid; justify-items: center; gap: 14px; }
.hero-mark { width: 74px; height: auto; }
.hero-copy h1 { font-size: clamp(2.4rem, 1.6rem + 4vw, 5rem); font-weight: 400; }
.hero-sub { margin: 0 0 14px; color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .8rem; font-weight: 600; }

/* Edificio */
.v-edificio { position: relative; height: 100vh; height: 100svh; overflow: hidden; }
.stage { position: relative; width: 100%; height: 100%; background: #0c0d10; overflow: hidden; }
.orbit { cursor: grab; touch-action: pan-y; }
.orbit.grabbing { cursor: grabbing; }
.orbit-video { width: 100%; height: 100%; object-fit: cover; display: block; user-select: none; pointer-events: none; }
.ed-label { position: absolute; left: var(--g); bottom: calc(var(--g) + 8px); display: grid; gap: 2px; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); padding: 14px 18px; border-radius: var(--r); max-width: 80vw; }
.ed-label strong { font-family: var(--f-display); font-size: 1.4rem; font-weight: 500; }
.eyebrow { font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); font-weight: 600; }
.ed-stat { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .88rem; }
.hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; background: var(--glass); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-size: .82rem; color: var(--mute); pointer-events: none; white-space: nowrap; margin: 0; }
.hint.static { position: static; transform: none; justify-content: center; margin-top: 10px; background: none; }
.floor-rail { position: absolute; right: var(--g); top: calc(var(--top) + 8px); bottom: 90px; width: 78px; display: flex; flex-direction: column; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r); padding: 10px 8px; }
.rail-tit { margin: 0 0 8px; text-align: center; font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--mute); }
.rail-list { overflow-y: auto; display: grid; gap: 6px; scrollbar-width: thin; }
.rail-item { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.06); font-weight: 600; font-size: .88rem; }
.rail-item:hover { background: rgba(244,248,93,.18); }
.rail-item.on { background: var(--gold); color: var(--on-gold); }
.rail-item.full span { color: var(--mute); }
.rail-item.on.full span { color: var(--on-gold); }

/* Páginas */
.v-page { padding: calc(var(--top) + 24px) var(--g) 100px; max-width: 1240px; margin: 0 auto; }
.v-page.narrow { max-width: 640px; }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.head-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.crumbs { display: flex; align-items: center; gap: 6px; color: var(--mute); font-size: .88rem; margin-bottom: 10px; }
.crumbs a:hover { color: var(--gold); }
.crumbs .ic { width: 14px; height: 14px; }
.search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); min-width: 220px; }
.search input { border: 0; background: none; color: var(--ink); outline: none; width: 100%; font: inherit; font-size: .88rem; }
.select { height: 38px; border: 1px solid var(--line); border-radius: 999px; background: var(--panel); color: var(--ink); padding: 0 12px; font: inherit; font-size: .88rem; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; transition: transform .2s, border-color .2s; }
a.card:hover, .card.unit:hover { border-color: rgba(244,248,93,.55); transform: translateY(-2px); }
.card-img { position: relative; aspect-ratio: 16 / 10; background: #0c0d10; overflow: hidden; display: block; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img .badge { position: absolute; left: 12px; top: 12px; backdrop-filter: blur(8px); background: rgba(17,18,22,.78); }
.card-body { padding: 16px 18px 18px; display: grid; gap: 8px; }
.card.sold { opacity: .55; }
.card.unit.vendida { opacity: .6; }
.specs { display: flex; align-items: center; gap: 6px; color: var(--mute); margin: 0; flex-wrap: wrap; }
.specs .ic { width: 16px; height: 16px; }
.from { margin: 0; color: var(--mute); }
.from strong { color: var(--ink); font-size: 1.1rem; }
.unit-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.unit-top h3 { font-size: 1.5rem; }
.price { font-size: 1.1rem; color: var(--gold); }
.muted.small { display: flex; align-items: center; gap: 6px; margin: 0; }
.muted.small .ic { width: 15px; height: 15px; }
.feat { list-style: none; padding: 10px 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feat li { display: grid; justify-items: center; gap: 4px; font-size: .82rem; color: var(--mute); text-align: center; }
.feat li + li { border-left: 1px solid var(--line); }
.feat.big li { font-size: .88rem; color: var(--ink); }
.card-actions { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; margin-top: 4px; }
.card-actions .btn { height: 40px; padding: 0 10px; font-size: .86rem; }
.cmp { }
.icon-btn.cmp { background: var(--panel-2); }
.icon-btn.cmp.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.demo-note { display: flex; align-items: center; gap: 8px; color: var(--mute); font-size: .8rem; margin-top: 28px; }

/* Plantas */
.v-plantas { display: grid; grid-template-columns: 1fr 96px; gap: 18px; padding: calc(var(--top) + 24px) var(--g) 100px; max-width: 1320px; margin: 0 auto; min-height: 100vh; }
.legend { display: flex; gap: 14px; color: var(--mute); font-size: .84rem; flex-wrap: wrap; }
.legend span { display: flex; align-items: center; gap: 6px; }
.plate-wrap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(10px, 2vw, 24px); }
.plate { width: 100%; height: auto; display: block; }
.pl-out { fill: #0f1014; stroke: #3a3b43; stroke-width: 3; }
.pl-core { fill: #1a1b21; stroke: #3a3b43; stroke-width: 2; }
.pl-core-t { fill: #6c6a66; font: 600 22px var(--f-body); text-anchor: middle; letter-spacing: .1em; text-transform: uppercase; }
.pl-unit { stroke: #0f0f0f; stroke-width: 6; transition: fill .2s; }
.pl-unit.disponible { fill: rgba(63,178,127,.32); }
.pl-unit.reservada { fill: rgba(224,162,58,.3); }
.pl-unit.vendida { fill: rgba(229,72,77,.22); }
.pl-unit.none { fill: #15161b; }
.pl-a:hover .pl-unit, .pl-unit.hi { fill: rgba(244,248,93,.7); }
.pl-pin rect { fill: #f6f3ec; }
.pl-pin text { fill: #111111; font: 700 24px var(--f-body); text-anchor: middle; }
.pin-dot.disponible { fill: var(--ok); } .pin-dot.reservada { fill: var(--warn); } .pin-dot.vendida { fill: var(--no); }
.mini-list { display: grid; gap: 8px; margin-top: 16px; }
.mini { display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 12px; padding: 12px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); }
.mini:hover { border-color: var(--gold); }
.mini span { color: var(--mute); font-size: .88rem; }
.mini em { font-style: normal; font-weight: 600; color: var(--gold); }
.mini.vendida em { color: var(--mute); }
.floor-rail.static { position: sticky; top: calc(var(--top) + 24px); right: auto; bottom: auto; width: auto; max-height: calc(100vh - var(--top) - 60px); }

/* Ficha */
.v-unit { display: grid; grid-template-columns: minmax(300px, 380px) 1fr; height: 100vh; height: 100svh; padding-top: 0; }
.u-card { overflow-y: auto; background: var(--bg-raise); border-right: 1px solid var(--line); padding-top: var(--top); scrollbar-width: thin; }
.u-photo { position: relative; aspect-ratio: 16 / 9; margin: 0 16px; border-radius: var(--r); overflow: hidden; }
.u-photo img { width: 100%; height: 100%; object-fit: cover; }
.u-close { position: absolute; right: 10px; top: 10px; }
.u-body { padding: 16px 20px 28px; display: grid; gap: 12px; }
.u-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.u-head h2 { font-size: 1.7rem; }
.u-price { font-family: var(--f-display); font-size: 1.9rem; margin: 0; color: var(--gold); }
.u-price small { font: 500 .8rem var(--f-body); color: var(--mute); margin-left: 8px; }
.u-fin { margin: -6px 0 0; color: var(--mute); font-size: .9rem; }
.u-fin strong { color: var(--ink); }
.u-notes { margin: 0; padding: 10px 12px; background: var(--panel); border-left: 3px solid var(--gold); border-radius: 6px; font-size: .9rem; }
.lbl { margin: 8px 0 0; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
.rows { margin: 0; display: grid; }
.rows div { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.rows dt { display: flex; align-items: center; gap: 10px; color: var(--mute); }
.rows dd { margin: 0; font-weight: 600; }
.calc { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; }
.calc summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 12px 0; cursor: pointer; font-weight: 600; }
.calc summary::-webkit-details-marker { display: none; }
.calc[open] summary .ic { transform: rotate(90deg); }
.calc label { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: .86rem; color: var(--mute); margin-bottom: 10px; }
.calc label input { grid-column: 1 / -1; accent-color: var(--gold); width: 100%; }
.calc output { color: var(--ink); font-weight: 600; }
.cuota { display: flex; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding-top: 10px; margin: 4px 0; }
.cuota strong { font-family: var(--f-display); font-size: 1.5rem; color: var(--gold); }
.mini-plate { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px; }
.plate.small .pl-unit { stroke-width: 8; }
.u-tools { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.u-stage { position: relative; height: 100%; min-width: 0; }
.u-stage .stage { height: 100%; }
.mode-rail { position: absolute; right: var(--g); top: calc(var(--top) + 8px); display: grid; gap: 8px; z-index: 5; }
.mode { box-shadow: 0 2px 10px rgba(0,0,0,.18); display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; background: rgba(246,243,236,.92); color: #111111; font-weight: 600; font-size: .88rem; border: 0; }
.mode.on { background: var(--gold); color: var(--on-gold); }
.mode:hover { filter: brightness(1.05); }
.back-floors { position: absolute; left: 50%; transform: translateX(-50%); top: calc(var(--top) + 8px); z-index: 5; display: none; }
.stage-plano { background: #f4f2ee; }
.plan-zoom { width: 100%; height: 100%; display: grid; place-items: center; overflow: hidden; cursor: zoom-in; padding: calc(var(--top) + 10px) 220px 40px 40px; }
.plan-zoom img { max-height: 100%; max-width: 100%; object-fit: contain; transition: transform .15s; user-select: none; }
.stage-planta3d { background: #e9e9ee; }
.stage-planta3d .orbit-video { object-fit: contain; }
.pending { height: 100%; display: grid; place-items: center; padding: var(--g); background: radial-gradient(ellipse at center, #1d1e25, #0c0d10); }
.pending-card { max-width: 460px; text-align: center; display: grid; gap: 10px; justify-items: center; }
.pending-card > .ic { width: 44px; height: 44px; color: var(--gold); }
.pending-card .row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.pano { position: absolute; inset: 0; cursor: grab; }
.pano.loading::after { content: ""; position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border: 3px solid rgba(255,255,255,.2); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pano-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.pano-cap { position: absolute; left: var(--g); top: calc(var(--top) + 8px); margin: 0; background: var(--glass); backdrop-filter: blur(10px); padding: 8px 14px; border-radius: 999px; font-size: .86rem; max-width: 50%; }
.pano-err { padding: 40px; text-align: center; color: var(--mute); }
.strip { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 8px; justify-content: center; padding: 12px; background: linear-gradient(transparent, rgba(0,0,0,.7)); overflow-x: auto; }
.strip ~ .hint { bottom: 110px; }
.thumb { flex: none; width: 120px; border: 2px solid transparent; border-radius: 10px; padding: 0; background: #000; overflow: hidden; position: relative; }
.thumb img { width: 100%; height: 64px; object-fit: cover; opacity: .7; }
.thumb span { position: absolute; left: 0; right: 0; bottom: 0; font-size: .7rem; padding: 2px 6px; background: rgba(0,0,0,.6); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.thumb.on { border-color: var(--gold); } .thumb.on img, .thumb:hover img { opacity: 1; }
.gal { position: absolute; inset: 0; display: grid; place-items: center; padding: calc(var(--top) + 6px) 0 100px; }
.gal img { max-width: 100%; max-height: 100%; object-fit: contain; }
.gprev, .gnext { position: absolute; top: 50%; }
.gprev { left: 16px; transform: rotate(180deg); } .gnext { right: 16px; }
.gcap { position: absolute; left: 50%; transform: translateX(-50%); bottom: 96px; margin: 0; background: var(--glass); padding: 6px 12px; border-radius: 999px; font-size: .82rem; }
.v-unit .gal { padding-right: 200px; }

.v-full { height: 100vh; height: 100svh; }
.v-full .stage { height: 100%; }

/* Comparador */
.cmp-wrap { overflow-x: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); }
table.cmp { width: 100%; border-collapse: collapse; min-width: 560px; }
table.cmp th { text-align: left; color: var(--mute); font-weight: 500; padding: 12px 16px; font-size: .88rem; white-space: nowrap; }
table.cmp td { padding: 12px 16px; border-left: 1px solid var(--line); vertical-align: middle; }
table.cmp tr + tr td, table.cmp tr + tr th { border-top: 1px solid var(--line); }
table.cmp thead td { display: table-cell; }
table.cmp thead img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 10px; margin-bottom: 8px; }
table.cmp thead strong { font-family: var(--f-display); font-size: 1.4rem; display: block; margin-bottom: 6px; }

/* Obra */
.timeline { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.tl { display: grid; grid-template-columns: 24px 1fr; gap: 16px; position: relative; padding-bottom: 28px; }
.tl::before { content: ""; position: absolute; left: 11px; top: 18px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl-dot { width: 24px; height: 24px; border-radius: 50%; border: 3px solid var(--line); background: var(--bg); margin-top: 2px; }
.tl.hecho .tl-dot { background: var(--ok); border-color: var(--ok); }
.tl.curso .tl-dot { border-color: var(--warn); }
.tl-date { margin: 0 0 4px; color: var(--mute); font-size: .86rem; }
.tl-pano { margin-top: 12px; position: relative; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; padding: 0; background: none; width: min(100%, 520px); display: block; }
.tl-pano img { width: 100%; aspect-ratio: 2/1; object-fit: cover; }
.tl-pano span { position: absolute; left: 12px; bottom: 12px; display: flex; align-items: center; gap: 8px; background: var(--gold); color: var(--on-gold); padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: .88rem; }

/* Ubicación */
.v-ubic { display: grid; grid-template-columns: 1fr 360px; height: 100vh; height: 100svh; }
.map { height: 100%; background: #e8e6e1; }
.poi-panel { padding: calc(var(--top) + 20px) 22px 30px; background: var(--bg-raise); border-left: 1px solid var(--line); overflow-y: auto; }
.pois { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 6px; }
.pois button { width: 100%; display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: var(--r-sm); background: var(--panel); border: 1px solid var(--line); text-align: left; }
.pois button:hover { border-color: var(--gold); }
.pois em { font-style: normal; color: var(--mute); font-size: .84rem; }
.map-home img { width: 48px; height: 48px; border-radius: 50%; background: #0f0f0f; padding: 8px; box-shadow: 0 4px 14px rgba(0,0,0,.4); border: 2px solid var(--gold); }
.leaflet-popup-content { font: 14px var(--f-body); }

/* Contacto */
.form { display: grid; gap: 14px; }
.form label { display: grid; gap: 6px; font-size: .88rem; color: var(--mute); }
.form input:not([type=checkbox]), .form textarea { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px 14px; color: var(--ink); font: inherit; outline: none; }
.form input:focus, .form textarea:focus { border-color: var(--gold); }
.form .check { display: flex; align-items: center; gap: 10px; color: var(--ink); }
.form .check input { accent-color: var(--gold); width: 18px; height: 18px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }

/* Menú lateral */
.drawer { position: fixed; inset: 0; z-index: 1100; pointer-events: none; }
.drawer-panel { position: absolute; left: 12px; top: 12px; bottom: 12px; width: min(340px, calc(100vw - 24px)); background: var(--bg-raise); border: 1px solid var(--line); border-radius: 20px; padding: 18px; transform: translateX(-110%); transition: transform .3s cubic-bezier(.2,.8,.2,1); overflow-y: auto; z-index: 2; box-shadow: var(--shadow); }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.45); opacity: 0; transition: opacity .3s; }
.drawer.on { pointer-events: auto; }
.drawer.on .drawer-panel { transform: none; }
.drawer.on .drawer-scrim { opacity: 1; }
.drawer-close { float: right; }
.drawer-brand { padding: 8px 4px 18px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.brand-word { height: 28px; width: auto; margin: 6px 0 22px; }
.drawer-name { font-family: var(--f-display); font-size: 1.3rem; margin: 0; }
.drawer-addr { display: flex; gap: 6px; align-items: center; color: var(--mute); font-size: .84rem; margin: 6px 0 0; }
.drawer-addr svg { width: 16px; height: 16px; }
.drawer-nav { display: grid; gap: 2px; }
.drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--mute); font-weight: 500; border-left: 3px solid transparent; }
.drawer-nav a:hover { background: var(--panel); color: var(--ink); }
.drawer-nav a.on { background: var(--panel); color: var(--ink); border-left-color: var(--gold); }

/* Modal */
.modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; background: rgba(0,0,0,.6); opacity: 0; pointer-events: none; transition: opacity .2s; padding: 16px; }
.modal.on { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: min(440px, 100%); max-height: 90vh; overflow-y: auto; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.modal.wide .modal-card { width: min(1100px, 100%); }
.modal-close { position: absolute; right: 14px; top: 14px; }
.modal-card h3 { margin: 0 46px 12px 0; }
.modal-card p { color: var(--mute); }
.modal-pano { position: relative; height: min(66vh, 620px); border-radius: var(--r); overflow: hidden; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.seg button { height: 38px; min-width: 46px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); }
.seg button.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
input[type=range] { accent-color: var(--gold); width: 100%; }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
.qr { display: grid; place-items: center; background: #fff; padding: 16px; border-radius: var(--r); margin: 14px 0; }

.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 1050; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: var(--shadow); }
.wa-float svg { width: 28px; height: 28px; stroke: #fff; }
body[data-route="vivienda"] .wa-float { bottom: 18px; }
.toast { position: fixed; left: 50%; bottom: 90px; transform: translate(-50%, 20px); background: var(--ink); color: #111111; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .88rem; opacity: 0; transition: .25s; z-index: 1300; pointer-events: none; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* Móvil y tablet */
@media (max-width: 980px) {
  .v-unit { grid-template-columns: 1fr; height: auto; }
  .u-stage { order: -1; height: 62svh; min-height: 380px; }
  .u-card { padding-top: 16px; border-right: 0; overflow: visible; }
  .u-photo { display: none; }
  .mode-rail { top: auto; bottom: 12px; right: 0; left: 0; display: flex; overflow-x: auto; padding: 0 12px; justify-content: flex-start; }
  .mode { flex: none; height: 38px; padding: 0 12px; font-size: .82rem; }
  .plan-zoom { padding: calc(var(--top) + 6px) 12px 64px; }
  .v-unit .gal { padding-right: 0; }
  .stage-tour .strip, .stage-vistas .strip, .stage-galeria .strip { bottom: 56px; }
  .strip ~ .hint { display: none; }
  .gcap { bottom: 150px; }
  .v-ubic { grid-template-columns: 1fr; grid-template-rows: 55svh auto; height: auto; }
  .poi-panel { padding-top: 20px; border-left: 0; }
}
@media (max-width: 760px) {
  :root { --top: 60px; }
  .tb-search span, .pill-dark span { display: none; }
  .pill-dark { width: 40px; padding: 0; justify-content: center; }
  .tb-search { position: static; transform: none; width: 40px; padding: 0; justify-content: center; }
  .topbar { gap: 6px; }
  .tb-left, .tb-right { gap: 6px; }
  #btn-fs { display: none; }
  .lang button { padding: 6px 8px; }
  .floor-rail { width: 76px; top: auto; bottom: 120px; max-height: 46svh; right: 12px; padding: 10px 6px; }
  .rail-tit { letter-spacing: .04em; font-size: .64rem; }
  .rail-item { padding: 8px; }
  .rail-list { scrollbar-width: none; }
  .ed-label { left: 12px; bottom: 18px; padding: 10px 14px; max-width: calc(100vw - 100px); }
  .hint { display: none; }
  .v-plantas { grid-template-columns: 1fr; }
  .floor-rail.static { position: static; max-height: none; order: -1; }
  .floor-rail.static .rail-list { display: flex; overflow-x: auto; }
  .floor-rail.static .rail-item { flex: none; gap: 8px; }
  .mini { grid-template-columns: auto auto 1fr auto; }
  .mini .ic { display: none; }
  .search { min-width: 0; flex: 1 1 100%; }
  .cards { grid-template-columns: 1fr; }
  .pano-cap { max-width: calc(100% - 32px); top: calc(var(--top) + 4px); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Torre 3D */
.b3d { background: radial-gradient(ellipse at 50% 40%, #2a2b33 0%, #0f0f0f 75%); cursor: grab; }
.b3d-canvas { display: block; width: 100%; height: 100%; touch-action: none; }
.b3d-loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--mute); font-size: .9rem; }
.b3d-loading span { width: 36px; height: 36px; border: 3px solid rgba(255,255,255,.15); border-top-color: var(--gold); border-radius: 50%; animation: spin 1s linear infinite; }
.b3d-tip { position: absolute; z-index: 20; pointer-events: none; background: rgba(246,243,236,.96); color: #111111; padding: 8px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.45; box-shadow: var(--shadow); opacity: 0; transition: opacity .12s; max-width: 240px; }
.b3d-tip.on { opacity: 1; }
.b3d-tip .badge { background: #eee; }
.floor-rail button.rail-item { border: 0; color: inherit; font: inherit; font-weight: 600; font-size: .88rem; width: 100%; }
.floor-panel { position: absolute; left: var(--g); top: calc(var(--top) + 8px); width: min(340px, calc(100vw - 120px)); display: grid; gap: 8px; z-index: 10; }
.floor-panel[hidden] { display: none; }
.fp-head { display: flex; justify-content: space-between; align-items: center; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); padding: 10px 12px 10px 16px; border-radius: var(--r-sm); border: 1px solid rgba(255,255,255,.1); }
.fp-head strong { font-family: var(--f-display); font-size: 1.2rem; font-weight: 500; }
.floor-panel .mini { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); grid-template-columns: auto auto 1fr auto; }
@media (max-width: 760px) {
  .floor-panel { top: auto; bottom: 96px; left: 12px; width: calc(100vw - 110px); }
  .floor-panel .mini span { display: none; }
}
.b3d-labels { position: absolute; inset: 0; pointer-events: none; z-index: 4; overflow: hidden; }
.b3d-pin { position: absolute; left: 0; top: 0; pointer-events: auto; display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; border-radius: 999px; border: 0; background: rgba(246,243,236,.96); color: #111111; font-weight: 700; font-size: .82rem; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.b3d-pin i { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); }
.b3d-pin.vendida i { background: var(--no); } .b3d-pin.reservada i { background: var(--warn); }
.b3d-pin:hover { background: var(--gold); }

/* Giro fotorrealista de la maqueta (js/spin.js) */
.b3d .layer { position: absolute; inset: 0; transition: opacity .45s; }
.layer-giro { overflow: hidden; background: #24221f; touch-action: pan-y; cursor: grab; user-select: none; }
.b3d.is-3d .layer-giro { opacity: 0; pointer-events: none; }
.b3d.is-3d .spin-arrow { opacity: 0; pointer-events: none; }
.spin-box { position: absolute; }
.spin-img, .spin-overlay { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.spin-img { object-fit: fill; -webkit-user-drag: none; }
.spin-overlay { pointer-events: none; }
.spin-progress { position: absolute; left: 50%; bottom: 74px; width: 160px; height: 3px; margin-left: -80px; border-radius: 2px; background: rgba(255,255,255,.18); overflow: hidden; transition: opacity .6s; z-index: 3; }
.spin-progress i { display: block; height: 100%; width: 0; background: var(--gold); transition: width .2s; }
.spin-progress.done { opacity: 0; }
.spin-arrow { position: absolute; top: 50%; z-index: 5; width: 46px; height: 46px; margin-top: -23px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(17,18,22,.55); color: #fff; backdrop-filter: blur(8px); cursor: pointer; transition: opacity .3s, background .2s; }
.spin-arrow:hover { background: rgba(17,18,22,.8); }
.spin-arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.spin-arrow.prev { left: 18px; }
.spin-arrow.next { right: 110px; }
@media (max-width: 700px) { .spin-arrow.next { right: 86px; } .spin-arrow { width: 40px; height: 40px; margin-top: -20px; } }
.spin-back { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(22px) brightness(.72); pointer-events: none; }

/* Galería dentro del modal (zonas comunes) y axonometrías */
.modal-gal { position: relative; height: min(72vh, 680px); margin-top: 12px; border-radius: 14px; overflow: hidden; background: #f3f1ec; }
.modal-gal .gal { padding: 0 0 96px; }
.modal-gal .strip { position: absolute; left: 0; right: 0; bottom: 8px; }
.axo-zoom { background: #f2f1ef; }

/* Vista splat de la torre (js/splat-view.js) */
.splat-canvas { position: absolute; inset: 0; display: block; touch-action: none; cursor: grab; }
.b3d.is-splat .layer-giro { background: #1d1c1a; }
.b3d.is-splat .spin-back { display: none; }
.zoom-ctl { position: absolute; z-index: 5; right: 110px; bottom: 84px; display: flex; flex-direction: column; gap: 8px; transition: opacity .3s; }
.zoom-ctl button { width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(17,18,22,.6); color: #fff; backdrop-filter: blur(8px); cursor: pointer; }
.zoom-ctl button:hover { background: rgba(17,18,22,.85); }
.zoom-ctl svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.b3d.is-3d .zoom-ctl { opacity: 0; pointer-events: none; }
@media (max-width: 700px) { .zoom-ctl { right: 86px; bottom: 150px; } .zoom-ctl button { width: 38px; height: 38px; } }

/* Giro v2: zoom y entrada */
.spin-box { transform-origin: 50% 50%; transition: transform .12s ease-out; }
.spin-intro { position: absolute; inset: 0; z-index: 4; background: #24221f; transition: opacity .7s; }
.spin-intro video { position: absolute; object-fit: fill; }
.spin-intro.done { opacity: 0; pointer-events: none; }
.spin-skip { position: absolute; right: 110px; bottom: 30px; z-index: 5; border: 0; border-radius: 999px; padding: 8px 16px; background: rgba(17,18,22,.6); color: #fff; font: inherit; font-size: .85rem; cursor: pointer; backdrop-filter: blur(8px); }
@media (max-width: 700px) { .spin-skip { right: 86px; bottom: 96px; } }

/* Ventas 1: zonas en carrusel, comercializadoras, parque */
.v-zonas .stage { position: absolute; inset: 0; }
.zone-chips { position: absolute; z-index: 6; top: calc(var(--top) + 8px); left: 50%; transform: translateX(-50%); display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; max-width: 92vw; }
.zone-chips .chip.on { background: var(--gold); color: #111111; }
.zone-txt { position: absolute; z-index: 6; left: 50%; transform: translateX(-50%); bottom: 132px; margin: 0; padding: 6px 14px; border-radius: 999px; background: rgba(17,18,22,.6); color: #eee; font-size: .88rem; backdrop-filter: blur(8px); max-width: 90vw; text-align: center; }
.agents { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 8px; }
.agent { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-raise); }
.agent img { height: 54px; width: auto; border-radius: 8px; background: #fff; }
.ed-park { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; color: var(--gold); font-size: .84rem; }
.ed-park svg { width: 16px; height: 16px; }

/* Selector de plantas con disponibilidad (sin hover en móvil) */
.rail-n { font-style: normal; font-size: .74rem; font-weight: 600; padding: 1px 6px; border-radius: 999px; }
.rail-n.ok { background: rgba(63,178,127,.22); color: #7fe0b2; }
.rail-n.no { background: rgba(229,72,77,.16); color: #f1999c; }
.rail-item.on .rail-n { background: rgba(0,0,0,.15); color: inherit; }
.v-edificio .floor-rail { width: 96px; }
@media (hover: none), (max-width: 700px) { .spin-arrow { display: none; } }
@media (max-width: 700px) { .v-edificio .floor-rail { width: 88px; top: calc(var(--top) + 8px); bottom: 170px; max-height: none; } .zoom-ctl { right: 108px; } .spin-skip { right: 108px; } .v-edificio .rail-item { padding: 7px 6px; font-size: .82rem; } }
@media (max-width: 700px) { .zoom-ctl { display: none; } }
.agent-btn { text-decoration: none; color: inherit; cursor: pointer; }
.agent-btn:hover { border-color: var(--gold); }
.ig-reels { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold); font-weight: 600; }
.ig-reels svg { width: 18px; height: 18px; }

/* Esquema de planta según los planos de situación */
.pl-patio rect { fill: none; stroke: #3a3b43; stroke-width: 3; stroke-dasharray: 10 8; }
.pl-patio path { stroke: #2c2d34; stroke-width: 2; fill: none; }
.pl-patio text, .pl-street { fill: #6c6a66; font: 600 24px var(--f-body); text-anchor: middle; letter-spacing: .08em; }
.pl-street { fill: #8a877f; font-size: 28px; }
.plate.small { max-height: 300px; margin: 0 auto; }

/* Hotspots en el 360 y en el plano */
.pano-hs { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 3; }
.pano-hs .hs, .plan-hs { position: absolute; left: 0; top: 0; pointer-events: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; color: #fff; font: 600 .8rem var(--f-body); cursor: pointer; text-decoration: none; }
.pano-hs .hs i, .plan-hs i { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #fff; background: rgba(244,248,93,.55); box-shadow: 0 2px 12px rgba(0,0,0,.45); transition: transform .15s; }
.pano-hs .hs:hover i, .plan-hs:hover i { transform: scale(1.15); background: rgba(244,248,93,.9); }
.pano-hs .hs span, .plan-hs span { padding: 3px 10px; border-radius: 999px; background: rgba(17,18,22,.7); white-space: nowrap; }
.plan-inner { position: relative; display: inline-block; max-width: 100%; max-height: 100%; }
.plan-inner img { display: block; max-width: 100%; max-height: calc(100vh - var(--top) - 80px); }
.plan-hs { transform: translate(-50%, -50%); }
.plan-hs i { width: 26px; height: 26px; }

/* Tour 360 a pantalla completa */
.v-unit.is-immersive { display: block; }
.v-unit.is-immersive .u-card { display: none; }
.v-unit.is-immersive .u-stage { position: fixed; inset: 0; height: 100vh; height: 100svh; z-index: 8; }
.v-unit.is-immersive .stage { height: 100%; }
.imm-back { position: absolute; z-index: 9; left: var(--g); top: calc(var(--top) + 8px); display: inline-flex; align-items: center; gap: 4px; }
.imm-back svg { transform: rotate(180deg); width: 16px; height: 16px; }
.imm-info { position: absolute; z-index: 9; left: var(--g); bottom: 120px; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(17,18,22,.72); backdrop-filter: blur(10px); color: #eee; font-size: .88rem; }
.imm-info em { font-style: normal; color: var(--gold); font-weight: 600; }
.imm-info .btn { padding: 8px 14px; font-size: .84rem; }
@media (max-width: 700px) { .v-unit.is-immersive .stage-tour .strip { bottom: 56px; } .imm-info { left: 10px; right: 10px; bottom: 150px; justify-content: space-between; flex-wrap: wrap; border-radius: 18px; } .imm-info span { display: none; } }

/* Vista de planta: UI mínima */
.v-edificio.floor-on .ed-label, .v-edificio.floor-on .hint { display: none; }
.v-edificio .floor-panel { top: auto; bottom: calc(var(--g) + 8px); left: var(--g); width: auto; right: 120px; }
.fp-bar { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(17,18,22,.72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,.1); }
.fp-bar > strong { font-family: var(--f-display); font-size: 1.15rem; font-weight: 500; }
.fp-units { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.fp-u { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; font-size: .84rem; }
.fp-u:hover { background: rgba(244,248,93,.22); }
.fp-u em { font-style: normal; color: var(--gold); font-weight: 600; }
.fp-u.vendida em { color: var(--mute); font-weight: 500; }
.fp-x { flex: none; width: 36px; height: 36px; }
@media (max-width: 700px) { .v-edificio .floor-panel { left: 10px; right: 10px; bottom: 14px; } .fp-bar { border-radius: 18px; } .fp-u { padding: 7px 10px; } }
@media (max-width: 700px) { .v-edificio .floor-panel { right: 78px; } }

/* Galería: la foto entera dentro de la caja (antes se desbordaba en escritorio) */
.gal { display: flex; align-items: center; justify-content: center; }
.gal img { width: 100%; height: 100%; max-width: none; max-height: none; object-fit: contain; min-height: 0; }

/* Zonas comunes a pantalla completa */
.v-zonas .zs-stage { position: absolute; inset: 0; background: #101012; touch-action: pan-y; }
.zs-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.zs-stage img.on { opacity: 1; }
.zs-stage img.fit-contain { background: #f1efeb; padding: calc(var(--top) + 30px) 4vw 70px; }
.v-zonas .zone-chips .chip { background: rgba(17,18,22,.55); color: #fff; backdrop-filter: blur(8px); border-color: transparent; }
.v-zonas .zone-chips .chip.on { background: var(--gold); color: #111111; }
.zs-prev, .zs-next { position: absolute; top: 50%; z-index: 6; margin-top: -22px; background: rgba(17,18,22,.45); color: #fff; }
.zs-prev { left: 16px; } .zs-prev svg { transform: rotate(180deg); }
.zs-next { right: 16px; }
.zs-count { position: absolute; z-index: 6; left: 50%; bottom: 22px; transform: translateX(-50%); margin: 0; padding: 4px 12px; border-radius: 999px; background: rgba(17,18,22,.5); color: #eee; font-size: .8rem; }
@media (hover: none) { .zs-prev, .zs-next { display: none; } }

/* Ubicación con Google Maps y contacto directo */
.gmap { border: 0; width: 100%; height: 100%; filter: saturate(.9); }
.agents.big { grid-template-columns: 1fr; gap: 14px; }
.agents.big .agent { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 14px; }
.agents.big .agent strong { flex: 1; min-width: 140px; font-size: 1.05rem; }
.agent-btns { display: flex; gap: 8px; flex-wrap: wrap; }
/* Móvil, vista Edificio: tarjeta del proyecto compacta (sólo nombre y parque) */
@media (max-width: 700px) {
  .v-edificio .ed-label { padding: 8px 12px; bottom: 12px; max-width: calc(100vw - 110px); }
  .v-edificio .ed-label .eyebrow, .v-edificio .ed-label .ed-stat { display: none; }
  .v-edificio .ed-label strong { font-size: 1.1rem; }
  .v-edificio .ed-park { font-size: .78rem; margin-top: 0; }
}
.v-zonas .zone-chips { flex-wrap: nowrap; width: max-content; max-width: 94vw; overflow-x: auto; scrollbar-width: none; }
.v-zonas .zone-chips .chip { width: auto; flex: none; padding: 6px 12px; font-size: .8rem; }

/* Dollhouse girable en la ficha */
.dh-stage { position: absolute; inset: 0; background: #f4f3f1; overflow: hidden; }
.dh-stage .layer-giro, .dh-stage .spin-back { display: none; }
.dh-stage .spin-box { cursor: grab; }
.dh-stage, .dh-stage * { touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.dh-stage img { pointer-events: none; -webkit-user-drag: none; }
.spin-img2 { pointer-events: none; }

/* Minimapa del 360 */
.pmini { position: absolute; z-index: 9; left: var(--g); top: calc(var(--top) + 56px); width: 190px; padding: 6px; border-radius: 14px; background: rgba(255,255,255,.92); box-shadow: 0 6px 24px rgba(0,0,0,.35); }
.pmini-in { position: relative; }
.pmini img { display: block; width: 100%; height: auto; border-radius: 8px; user-select: none; }
.pm-pt { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; border: 2px solid #fff; background: rgba(120,110,95,.85); padding: 0; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.4); }
.pm-pt.on { background: var(--gold); width: 16px; height: 16px; margin: -8px 0 0 -8px; }
.pm-cone { position: absolute; width: 64px; height: 64px; pointer-events: none; overflow: visible; }
.pm-cone path { fill: rgba(244,248,93,.45); stroke: #111111; stroke-width: 2; }
.pm-cone circle { fill: var(--gold); stroke: #fff; stroke-width: 3; }
@media (max-width: 700px) { .pmini { width: 118px; padding: 4px; top: calc(var(--top) + 50px); left: 10px; } .pm-cone { width: 46px; height: 46px; } }

/* Marca Atrium Park */
.tb-brand { font: 500 1.15rem var(--f-head, Fraunces, Georgia, serif); color: #fff; text-decoration: none; letter-spacing: .02em; padding: 0 6px; text-shadow: 0 1px 8px rgba(0,0,0,.45); }
@media (max-width: 760px) { .tb-brand { display: none; } }
.brand-ap { font: 500 1.7rem Fraunces, Georgia, serif !important; margin-top: 8px; }
.drawer-panel { display: flex; flex-direction: column; }
.powered { display: inline-flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--mute, #999); text-decoration: none; opacity: .75; letter-spacing: .04em; }
.powered img { height: 11px; width: auto; opacity: .9; }
.drawer-panel .powered { margin-top: auto; padding: 14px 4px 4px; }
.powered-hero { position: absolute; left: var(--g); bottom: 16px; z-index: 2; color: rgba(255,255,255,.7); }
.hero-eyebrow { color: var(--gold); letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; margin: 0 0 6px; }
.splash { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #0f0f0f; transition: opacity .6s; }
.splash.done { opacity: 0; pointer-events: none; }
.splash-in { display: flex; flex-direction: column; align-items: center; gap: 8px; color: #eee; }
.splash-in strong { font: 400 2.4rem Fraunces, Georgia, serif; letter-spacing: .02em; }
.splash-in span { font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold, #f4f85d); }
.splash-in i { width: 120px; height: 2px; margin-top: 14px; background: linear-gradient(90deg, transparent, #f4f85d, transparent); background-size: 200% 100%; animation: splashbar 1.2s linear infinite; }
@keyframes splashbar { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* Aviso de contacto en 360 e interiores: plegado por defecto */
.imm-tog { display: inline-flex; align-items: center; gap: 8px; border: 0; background: none; color: inherit; font: inherit; padding: 0; cursor: pointer; }
.imm-tog svg { width: 14px; height: 14px; transition: transform .2s; }
.imm-info:not(.is-min) .imm-tog svg { transform: rotate(180deg); }
.imm-info.is-min > span, .imm-info.is-min > .btn { display: none; }
.imm-info.is-min { padding: 9px 14px; }
@media (max-width: 700px) { .imm-info.is-min { right: auto; } .imm-info:not(.is-min) > span { display: inline; } }

/* Interiores a pantalla completa */
.v-unit.is-immersive .stage-galeria .gal { padding: 0 0 92px; }
.v-unit.is-immersive .stage-galeria { background: #0d0d0f; }
.v-unit.is-immersive .stage-galeria .gcap { bottom: 100px; }

/* Ubicación: mapa estático inmediato, Google Maps encima cuando carga */
.map-box { position: relative; overflow: hidden; background: #e8e4dc; }
.map-static { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -22px 0 0 -11px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #c0392b; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.map-attr { position: absolute; right: 6px; bottom: 4px; font-size: .62rem; color: #444; background: rgba(255,255,255,.7); padding: 0 4px; }
.map-box .gmap { position: absolute; inset: 0; opacity: 0; transition: opacity .4s; }
.map-box.live .gmap { opacity: 1; }
.pmini { width: auto; max-width: 200px; }
.pmini-in { display: inline-block; vertical-align: top; }
.pmini img { width: auto; max-width: 188px; max-height: 32vh; }
@media (max-width: 700px) { .pmini img { max-width: 110px; max-height: 24vh; } }
.pm-cone { width: 76px; height: 76px; }
.pm-cone path { fill: rgba(244,248,93,.62); stroke: #111111; }
.tb-brand { background: rgba(17,18,22,.55); backdrop-filter: blur(8px); border-radius: 999px; padding: 7px 14px; text-shadow: none; font-size: 1.02rem; }

/* ===== Ronda 3: identidad Confralu ===== */
:root {
  --bg: #141414; --bg-raise: #1e1e1e; --panel: #2a2a2a; --panel-2: #333333; --line: #3a3a3a;
  --ink: #f5f5f0; --mute: #b3aea6; --glass: rgba(34,34,34,.78);
  --beige: #d8c9b0; --stone: #6f6c69;
  --f-display: "Poppins", "Helvetica Neue", Arial, sans-serif;
}
h1, h2, h3 { font-weight: 600; letter-spacing: -.01em; }
.v-inicio h1, .splash-in strong, .tb-brand, .brand-ap, .ed-label strong { text-transform: uppercase; font-family: var(--f-display) !important; font-weight: 700; letter-spacing: .01em; }
.splash-in strong { font-size: 2.2rem; }
.tb-brand { font-size: .92rem; }
.brand-ap { font-size: 1.35rem !important; }
.hero-eyebrow, .hero-sub { color: var(--gold); }

/* Tarjeta del edificio */
.v-edificio .ed-label { display: flex; align-items: center; gap: 14px; padding: 12px 18px 12px 12px; background: rgba(42,42,42,.88); border: 0; border-radius: 18px; box-shadow: 0 10px 30px rgba(0,0,0,.35); }
.ed-logo { width: 54px; height: 54px; border-radius: 12px; flex: none; }
.ed-txt { display: grid; gap: 1px; }
.ed-label strong { font-size: 1.15rem; line-height: 1.15; }
.ed-addr { color: var(--beige); font-size: .84rem; }
.ed-label .ed-stat { display: flex; font-size: .8rem; margin-top: 3px; }
@media (max-width: 700px) {
  .v-edificio .ed-label { padding: 8px 12px 8px 8px; gap: 10px; }
  .v-edificio .ed-label .ed-stat { display: none; }
  .ed-logo { width: 40px; height: 40px; border-radius: 9px; }
  .ed-label strong { font-size: .98rem; }
  .ed-addr { font-size: .74rem; }
}

/* 360 / interiores / amenities: texto discreto en lugar de la píldora */
.imm-cap { position: absolute; z-index: 9; left: calc(var(--g) + 96px); top: calc(var(--top) + 16px); margin: 0; font-size: .8rem; color: rgba(255,255,255,.85); text-shadow: 0 1px 6px rgba(0,0,0,.7); }
.imm-cap strong { color: #fff; }
@media (max-width: 700px) { .imm-cap { left: 104px; top: calc(var(--top) + 14px); right: 10px; font-size: .72rem; } }

/* Minimapa abajo a la izquierda; en móvil plegado tras un botón */
.pmini { top: auto; bottom: 104px; }
.pm-btn { display: none; }
@media (max-width: 700px) {
  .pmini { bottom: 150px; left: 10px; top: auto; padding: 4px; }
  .pm-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; color: #111; padding: 0; }
  .pm-btn .ic { width: 22px; height: 22px; }
  .pmini.closed { padding: 0; }
  .pmini.closed .pmini-in { display: none; }
  .pmini:not(.closed) .pm-btn { position: absolute; right: -14px; top: -14px; width: 28px; height: 28px; border-radius: 50%; background: var(--gold); }
  .pmini:not(.closed) .pm-btn .ic { width: 15px; height: 15px; }
}
.pm-pt.on { background: #111; border-color: var(--gold); }
.pm-cone circle { fill: #111; stroke: var(--gold); }

/* Selector de idioma solo en inicio y edificio */
body:not([data-route="inicio"]):not([data-route="edificio"]) .lang { display: none; }
/* Minimapa: esquina inferior izquierda, más chico, oscuro con acento amarillo */
.pmini { left: 16px; bottom: 16px; top: auto; padding: 8px 8px 9px; border-radius: 14px; background: #1c1c1c; border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 28px rgba(0,0,0,.5); }
.pm-head { display: flex; align-items: center; gap: 6px; margin: 0 2px 6px; font: 600 .62rem var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
.pm-head i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.pmini img { max-width: 142px; max-height: 24vh; border-radius: 6px; filter: invert(1) contrast(.85) brightness(.9); }
.pm-pt { width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 1.5px solid #1c1c1c; background: #8d8a85; }
.pm-pt.on { width: 13px; height: 13px; margin: -6.5px 0 0 -6.5px; background: var(--gold); border-color: #1c1c1c; }
.pm-cone { width: 58px; height: 58px; }
.pm-cone path { fill: rgba(244,248,93,.38); stroke: var(--gold); stroke-width: 1.5; }
.pm-cone circle { fill: var(--gold); stroke: #1c1c1c; stroke-width: 3; }
@media (max-width: 700px) {
  .pmini { left: 10px; bottom: 150px; padding: 4px; }
  .pmini .pm-head { display: none; }
  .pmini:not(.closed) { padding: 6px; }
  .pmini img { max-width: 104px; max-height: 20vh; }
  .pm-btn { color: var(--gold); }
  .pmini:not(.closed) .pm-btn { color: #111; }
}
.v-unit.is-immersive .stage-tour .strip { padding-left: 190px; }
@media (max-width: 700px) { .v-unit.is-immersive .stage-tour .strip { padding-left: 12px; } }

/* ===== Ronda 4 ===== */
.hero-copy .btn-light { background: var(--gold); color: var(--on-gold); box-shadow: 0 8px 28px rgba(244,248,93,.25); }
.hero-copy .btn-light:hover { filter: brightness(1.05); }
/* Menú lateral tipo ficha de proyecto */
.drawer-logo { display: flex; align-items: center; gap: 12px; margin: 10px 0 14px; }
.drawer-logo img { width: 46px; height: 46px; border-radius: 11px; }
.drawer-logo .brand-ap { margin: 0; font-size: 1.25rem !important; }
.drawer-addr { align-items: flex-start; text-decoration: none; line-height: 1.35; }
.drawer-addr svg { flex: none; margin-top: 2px; color: var(--gold); }
.drawer-addr:hover span { color: var(--ink); text-decoration: underline; }
.drawer-foot { margin-top: auto; display: grid; justify-items: center; gap: 14px; padding: 18px 4px 6px; border-top: 1px solid var(--line); }
.drawer-icons { display: flex; gap: 8px; }
.drawer-icons a, .drawer-icons button { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--ink); padding: 0; cursor: pointer; }
.drawer-icons a:hover, .drawer-icons button:hover { border-color: var(--gold); color: var(--gold); }
.drawer-icons svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.drawer-foot .lang { display: flex !important; align-items: center; gap: 2px; padding: 3px 4px 3px 10px; background: var(--panel); border-color: var(--line); }
.drawer-foot .lang svg { width: 16px; height: 16px; fill: none; stroke: var(--mute); stroke-width: 1.7; margin-right: 4px; }
.drawer-foot .lang button { font-size: .8rem; padding: 5px 10px; }
.drawer-panel .powered { margin-top: 0; padding: 0; }
/* móvil: la tarjeta del edificio respeta la barra del navegador */
@media (max-width: 700px) { .v-edificio .ed-label { bottom: calc(12px + env(safe-area-inset-bottom)); } }
