
:root {
  
  --font: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: Georgia, "Times New Roman", serif;
  
  --violet: #6a53ee;          
  --violet-hover: rgba(106, 83, 238, .82);
  --violet-text: #6546c9;     
  --violet-light: #9c8afe;    
  --violet-pale: #c2b6fc;     
  --gold: #ce9d3b;
  --gold-light: #e9c377;
  --paper: #faf9f6;
  --paper-2: #f0eef3;
  --ink-0: #19181d;
  
  --bg: #050509;
  --glass: rgba(250, 249, 246, .9);
  --glass-strong: rgba(250, 249, 246, .97);
  --glass-line: rgba(25, 24, 29, .08);
  --ink: #19181d;
  --ink-2: #65616c;
  --ink-3: #8f8a96;
  --line: #dedbe2;
  --accent: var(--violet);
  --accent-ink: #fff;
  --accent-text: var(--violet-text);
  --accent-soft: rgba(106, 83, 238, .09);
  --sel: var(--violet);
  --sel-fill: rgba(106, 83, 238, .42);
  --hover-fill: rgba(194, 182, 252, .38);
  --similar: var(--gold);
  --shadow: 0 12px 40px rgba(24, 19, 30, .16), 0 1px 3px rgba(24, 19, 30, .08);
  --radius: 0px;
  --radius-sm: 2px;
  --gutter: 16px;
  --ease: cubic-bezier(.2, .65, .3, 1);
  --ease-ui: cubic-bezier(.4, 0, .2, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --glass: rgba(10, 10, 15, .86);
  --glass-strong: rgba(10, 10, 15, .97);
  --glass-line: #1d1d2b;
  --ink: #f1f0ff;
  --ink-2: #b9b7cd;
  --ink-3: #9492aa;
  --line: #1d1d2b;
  --accent-text: var(--violet-pale);
  --accent-soft: rgba(156, 138, 254, .13);
  --hover-fill: rgba(156, 138, 254, .26);
  --shadow: 0 14px 44px rgba(0, 0, 0, .55);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--ink); font-family: var(--font); font-weight: 400; -webkit-font-smoothing: antialiased; }
body { overscroll-behavior: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
select { font: inherit; color: inherit; }
svg { stroke: currentColor; fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
[hidden] { display: none !important; }
:is(a, button, select, input, summary):focus-visible { outline: 2px solid var(--violet-light); outline-offset: 3px; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.03em; }
.eyebrow { font-family: var(--mono); font-size: 10px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }


:root:not([data-debug]) .dbg { display: none !important; }

#app { position: fixed; inset: 0; overflow: hidden; }
.glass { background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }


.scene { position: absolute; inset: 0; transition: opacity .7s var(--ease), transform .95s var(--ease), filter .7s var(--ease); }
#app[data-mode="giro"] #pisos { opacity: 0; pointer-events: none; transform: scale(1.05) translateY(14px); }
#app[data-mode="pisos"] #giro { opacity: 0; pointer-events: none; transform: scale(1.1); filter: blur(8px); }


#giro { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; background: #0a0a0f; }
#giro.dragging { cursor: grabbing; }
.vista { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .55s var(--ease); pointer-events: none; }
.vista.on { opacity: 1; }
.vista.fast { transition-duration: .18s; }
video.vista.trans { transition-duration: .12s; z-index: 1; }
#giro.busy .nav-arrow { opacity: .55; }
.giro-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(5,5,9,.34) 0%, rgba(5,5,9,0) 20%, rgba(5,5,9,0) 68%, rgba(5,5,9,.5) 100%); }
#hotspots { position: absolute; inset: 0; pointer-events: none; }
.hotspot { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--radius-sm); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; }
.hotspot i { width: 20px; height: 20px; border-radius: 50%; background: var(--violet); animation: pulse 2.2s infinite; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(106,83,238,.35); } 50% { box-shadow: 0 0 0 11px rgba(106,83,238,0); } }

.nav-arrow { position: absolute; top: 50%; translate: 0 -50%; width: 46px; height: 46px; border-radius: var(--radius); display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: var(--ink); border: 1px solid var(--glass-line); box-shadow: var(--shadow); transition: background .25s var(--ease-ui), color .25s var(--ease-ui); z-index: 3; }
.nav-arrow svg { width: 20px; height: 20px; transition: transform .25s var(--ease-ui); }
.nav-arrow:hover { background: var(--violet); color: #fff; }
.nav-arrow.prev:hover svg { transform: translateX(-2px); }
.nav-arrow.next:hover svg { transform: translateX(2px); }
.nav-arrow.prev { left: var(--gutter); }
.nav-arrow.next { right: var(--gutter); }

.giro-foot { position: absolute; left: 50%; bottom: 52px; translate: -50% 0; display: flex; flex-direction: column; align-items: center; gap: 12px; pointer-events: none; width: calc(100% - 2 * var(--gutter)); }
.dots { display: flex; gap: 6px; pointer-events: auto; }
.dots button { width: 18px; height: 3px; border-radius: 0; background: rgba(255,255,255,.45); transition: width .35s var(--ease), background .3s; padding: 0; position: relative; }
.dots button::before { content: ""; position: absolute; inset: -10px -2px; }
.dots button.on { width: 36px; background: var(--violet-pale); }
.vista-nota { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.5); text-align: center; max-width: 620px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.vn-idx { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; opacity: .92; }
.vn-dbg { font-size: 12px; font-weight: 400; line-height: 1.45; opacity: .9; }
.compass { position: absolute; right: 0; bottom: -4px; width: 44px; height: 44px; pointer-events: auto; color: #fff; filter: drop-shadow(0 1px 4px rgba(0,0,0,.4)); }
.compass svg { width: 44px; height: 44px; }
.compass circle { stroke: rgba(255,255,255,.8); stroke-width: 1.2; fill: rgba(5,5,9,.22); }
.compass path { fill: var(--violet-pale); stroke: none; transition: transform .6s var(--ease); transform-origin: 20px 20px; }
.compass text { fill: #fff; stroke: none; font-size: 7px; font-weight: 700; font-family: var(--mono); display: none; }
.drag-hint { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius); color: #fff; background: rgba(5,5,9,.5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .6s; }
.drag-hint svg { width: 20px; height: 20px; }
.drag-hint.show { opacity: 1; }


#pisos { background: #0a0a0f; }
.pisos-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(30px) brightness(.42) saturate(1.05); transform: scale(1.1); }
#viewport { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
#viewport.dragging { cursor: grabbing; }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; border-radius: 0; box-shadow: 0 40px 90px rgba(0,0,0,.5); background: #ece9e2; }
#stage.anim { transition: transform .45s var(--ease); }
#plantaImg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; transition: opacity .35s; }
#plantaImg.loading { opacity: 0; }
#stage.noimg { background: repeating-linear-gradient(0deg, transparent 0 39px, rgba(0,0,0,.06) 39px 40px), repeating-linear-gradient(90deg, transparent 0 39px, rgba(0,0,0,.06) 39px 40px), #ece9e2; }
#overlay { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.unit { fill: rgba(255,255,255,0); stroke: rgba(255,255,255,0); stroke-width: 2; vector-effect: non-scaling-stroke; cursor: pointer; transition: fill .2s, stroke .2s; pointer-events: all; }
.unit:hover, .unit.hover { fill: var(--hover-fill); stroke: var(--violet); }
.unit[data-estado="disponible"]:hover, .unit[data-estado="disponible"].hover { fill: rgba(46,160,90,.32); stroke: #2ea05a; }
.unit[data-estado="reservada"]:hover, .unit[data-estado="reservada"].hover { fill: rgba(230,160,40,.34); stroke: #e6a028; }
.unit[data-estado="vendida"]:hover, .unit[data-estado="vendida"].hover, .unit[data-estado="no_disponible"]:hover, .unit[data-estado="no_disponible"].hover { fill: rgba(220,38,38,.3); stroke: #dc2626; }
.unit.similar { stroke: var(--similar); stroke-width: 2.5; fill: rgba(206,157,59,.2); }
.unit.sel { fill: var(--sel-fill); stroke: var(--sel); stroke-width: 3; animation: selPulse 1.6s var(--ease) 1; }
@keyframes selPulse { 0% { fill: rgba(106,83,238,.75); } 100% { fill: var(--sel-fill); } }
.unit.dim { opacity: .35; }
#labels { position: absolute; inset: 0; pointer-events: none; }
.ulabel { position: absolute; transform: translate(-50%, -50%); pointer-events: auto; display: flex; align-items: center; gap: 6px; padding: 4px 9px 4px 6px; border-radius: var(--radius-sm); background: rgba(250,249,246,.95); color: var(--ink-0); font-size: 12.5px; font-weight: 500; white-space: nowrap; box-shadow: 0 2px 8px rgba(24,19,30,.22); transition: transform .2s var(--ease), background .2s, color .2s, box-shadow .2s; }
.ulabel i { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); flex: none; }
.ulabel.marker i { box-shadow: 0 0 0 3px rgba(106,83,238,.25); }
.ulabel[data-estado="disponible"] i { background: #2ea05a; }
.ulabel[data-estado="reservada"] i { background: #e6a028; }
.ulabel[data-estado="vendida"] i, .ulabel[data-estado="no_disponible"] i { background: #dc2626; }
.legend { position: absolute; left: 50%; bottom: 100px; translate: -50% 0; display: flex; gap: 14px; padding: 7px 14px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12px; font-weight: 500; z-index: 3; }
.legend span { display: flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 50%; }
.ulabel:hover, .ulabel.hover { transform: translate(-50%, -50%) scale(1.08); }
.ulabel.sel { background: var(--violet); color: #fff; box-shadow: 0 0 0 4px rgba(106,83,238,.3), 0 6px 18px rgba(24,19,30,.3); }
.ulabel.sel i { background: #fff; }
.ulabel.similar { box-shadow: 0 0 0 2px var(--similar), 0 2px 8px rgba(0,0,0,.2); }
.ulabel.dim { opacity: .45; }
#labels.small .ulabel { font-size: 11px; padding: 3px 7px 3px 5px; }
#labels.small .ulabel span { display: none; }
#labels.small .ulabel.sel span, #labels.small .ulabel.hover span { display: inline; }
#labels.small .ulabel { padding: 4px; }
#labels.small .ulabel.sel, #labels.small .ulabel.hover { padding: 3px 8px 3px 5px; z-index: 2; }

.floorbar { position: absolute; right: var(--gutter); top: 84px; max-height: calc(100% - 250px); display: flex; flex-direction: column; gap: 10px; align-items: stretch; z-index: 4; width: 96px; }
.bloque-toggle, .floors { background: var(--glass); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); border-radius: var(--radius); padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.floors { overflow-y: auto; scrollbar-width: none; }
.bloque-toggle button, .floors button { padding: 10px 6px; border-radius: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); background: transparent; transition: background .2s var(--ease-ui), color .2s var(--ease-ui); text-align: center; }
.floors button { font-family: var(--mono); font-size: 13px; letter-spacing: .04em; }
.bloque-toggle button:hover, .floors button:hover { background: var(--accent-soft); color: var(--ink); }
.bloque-toggle button.on, .floors button.on { background: var(--violet); color: #fff; }
.floors button small { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 400; letter-spacing: 0; opacity: .75; }

.pisos-tools { position: absolute; right: var(--gutter); bottom: 52px; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; z-index: 4; }
.bl-short { display: none; }
.seg { display: flex; padding: 3px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.seg button { padding: 8px 14px; border-radius: 0; font-size: 12.5px; font-weight: 500; color: var(--ink-2); transition: background .2s var(--ease-ui), color .2s; }
.seg button.on { background: var(--violet); color: #fff; }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.zoom { display: flex; flex-direction: column; gap: 0; width: 42px; border: 1px solid var(--glass-line); box-shadow: var(--shadow); }
.zoom button { width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: background .2s, color .2s; }
.zoom button + button { border-top: 1px solid var(--glass-line); }
.zoom button:hover { background: var(--violet); color: #fff; }
.zoom svg { width: 18px; height: 18px; }
.planta-label { position: absolute; left: 50%; bottom: 52px; translate: -50% 0; padding: 10px 18px; border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow); font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; z-index: 3; white-space: nowrap; }


.topbar { position: absolute; left: 0; right: 0; top: 0; padding: 16px var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 10px; z-index: 6; pointer-events: none; }
.topbar > * { pointer-events: auto; }
.tb-left, .tb-right { display: flex; align-items: center; gap: 8px; min-width: 0; }
.pill { height: 42px; display: inline-flex; align-items: center; gap: 10px; padding: 0 16px 0 13px; border-radius: var(--radius); background: var(--glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--glass-line); box-shadow: var(--shadow); font-size: 13px; font-weight: 500; transition: background .25s var(--ease-ui), color .25s var(--ease-ui); white-space: nowrap; }
.pill:hover { background: var(--glass-strong); color: var(--accent-text); }
.pill svg { width: 19px; height: 19px; flex: none; }
.pill.icon { width: 42px; padding: 0; justify-content: center; }
.pill.solid { background: var(--violet); color: #fff; border-color: transparent; padding: 0 16px 0 18px; gap: 12px; }
.pill.solid:hover { background: var(--violet-hover); color: #fff; }
.pill.solid .arrow { font-size: 17px; line-height: 1; margin-left: 10px; transition: transform .25s var(--ease-ui); }
.pill.solid:hover .arrow { transform: translate(2px, -2px); }
.search-pill { position: absolute; left: 50%; translate: -50% 0; min-width: 220px; justify-content: flex-start; color: var(--ink-2); }
#app[data-mode="giro"] #backBtn { display: none; }
#app[data-mode="pisos"] #pisosBtn { display: none; }
.brand { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 16px 0 14px; background: var(--glass-strong); border: 1px solid var(--glass-line); box-shadow: var(--shadow); color: var(--ink); min-width: 0; }
.brand-logo { display: flex; align-items: center; flex: none; }
.brand-logo img { height: 22px; width: auto; display: block; }
.brand-logo .iso { display: none; }
.logo-dark { display: none !important; }
:root[data-theme="dark"] .logo-light { display: none !important; }
:root[data-theme="dark"] .logo-dark { display: block !important; }
:root[data-theme="dark"] .brand-logo .iso.logo-dark { display: none !important; }
.brand-sep { width: 1px; height: 22px; background: var(--line); flex: none; }
.brand-name { display: flex; flex-direction: column; line-height: 1.12; font-weight: 500; font-size: 15px; letter-spacing: -.01em; min-width: 0; }
.brand-name small { font-family: var(--mono); font-size: 8.5px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.brand-mark { display: none; }

.demo-badge { position: absolute; top: 70px; left: 50%; translate: -50% 0; z-index: 6; padding: 6px 12px; border-radius: var(--radius); background: var(--gold-light); color: #3a2c00; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; box-shadow: var(--shadow); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }

.credits { position: absolute; left: 0; right: 0; bottom: 0; padding: 8px var(--gutter) calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: center; align-items: center; gap: 14px; flex-wrap: wrap; color: rgba(255,255,255,.82); font-size: 11px; font-weight: 400; letter-spacing: .02em; text-shadow: 0 1px 4px rgba(0,0,0,.6); pointer-events: none; z-index: 2; }
.credits .by { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; text-shadow: none; opacity: .92; transition: opacity .2s; }
.credits .by:hover { opacity: 1; }
.credits .by img { height: 14px; width: auto; display: block; filter: drop-shadow(0 1px 3px rgba(0,0,0,.45)); }
.credits .sep { width: 1px; height: 12px; background: rgba(255,255,255,.4); }


.card { position: absolute; left: var(--gutter); top: 74px; width: 360px; max-height: calc(100% - 140px); overflow: auto; border-radius: var(--radius); z-index: 7; animation: cardIn .5s var(--ease); scrollbar-width: thin; background: var(--glass-strong); }
@keyframes cardIn { from { opacity: 0; transform: translateY(14px); } }
.card-media { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, #e6e2ec, #c9c2d6); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; animation: mediaIn .9s var(--ease) both; }
@keyframes mediaIn { from { opacity: 0; transform: scale(1.04); } }
.card-media .media-tag { position: absolute; left: 0; bottom: 0; padding: 6px 10px; background: var(--ink-0); color: #fff; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.card-media.empty { display: grid; place-items: center; color: rgba(25,24,29,.55); font-size: 13px; font-weight: 500; aspect-ratio: 16 / 6; }
.card .x { position: absolute; right: 10px; top: 10px; z-index: 2; background: var(--glass-strong); }
.card-body { padding: 18px 20px 20px; }
.card .sub { margin: 0 0 6px; color: var(--accent-text); }
.card h3 { margin: 0 0 14px; font-size: 22px; font-weight: 400; letter-spacing: -.035em; line-height: 1.2; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; animation: rowIn .5s var(--ease) both; }
.rows li:nth-child(2) { animation-delay: .04s; } .rows li:nth-child(3) { animation-delay: .08s; } .rows li:nth-child(4) { animation-delay: .12s; } .rows li:nth-child(5) { animation-delay: .16s; } .rows li:nth-child(n+6) { animation-delay: .2s; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.rows li span:first-child { color: var(--ink-2); display: flex; align-items: center; gap: 9px; font-weight: 300; }
.rows li span:last-child { font-weight: 500; text-align: right; }
.rows li .na { color: var(--ink-3); font-weight: 400; }
.rows svg { width: 16px; height: 16px; color: var(--ink-3); }
.similar-btn { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; margin: 0 0 8px; border-radius: 0; border: 1px solid var(--line); font-size: 13px; font-weight: 500; transition: background .2s, border-color .2s; }
.similar-btn:hover { background: var(--accent-soft); }
.similar-btn.on { border-color: var(--similar); background: rgba(206,157,59,.12); }
.similar-btn svg { width: 16px; height: 16px; }
.card-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 18px; }
.btn { height: 46px; border-radius: 0; font-weight: 500; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: var(--ink); transition: background .25s var(--ease-ui), color .25s var(--ease-ui), border-color .25s; }
.btn svg { width: 17px; height: 17px; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--violet); color: #fff; border-color: transparent; justify-content: space-between; padding: 0 18px 0 20px; }
.btn.primary::after { content: "↗"; font-size: 18px; line-height: 1; transition: transform .25s var(--ease-ui); }
.btn.primary svg { display: none; }
.btn.primary:hover { background: var(--violet-hover); }
.btn.primary:hover::after { transform: translate(2px, -2px); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn:disabled:hover { border-color: var(--line); }
.btn.wide { width: 100%; }
.fuente { margin: 14px 0 0; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; }
.card-actions:has(#unitBtn) { grid-template-columns: 1fr 1fr; }
.card-actions:has(#unitBtn) #unitBtn { grid-column: 1 / -1; }
.dl-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--accent-text); text-decoration: none; border-bottom: 1px solid currentColor; }
.dl-link svg { width: 16px; height: 16px; }


.m2 { margin: 2px 0 14px; padding: 16px 16px 14px; background: var(--accent-soft); border-left: 2px solid var(--violet); animation: rowIn .6s var(--ease) both; }
.m2-big { display: flex; align-items: baseline; gap: 6px; margin-top: 4px; }
.m2-big b { font-size: 46px; font-weight: 300; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.m2-big span { font-size: 18px; font-weight: 300; color: var(--ink-2); }
.m2-big em { font-size: 19px; color: var(--accent-text); margin-left: 6px; }
.m2-bar { position: relative; height: 6px; margin: 14px 0 8px; background: var(--line); overflow: hidden; }
.m2-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--violet); animation: grow 1.1s var(--ease) .15s both; }
@keyframes grow { from { width: 0; } }
.m2-cap { display: flex; justify-content: space-between; gap: 10px; margin: 0; font-size: 12px; color: var(--ink-2); font-weight: 300; }
.m2-cap .m2-pct { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
.m2-note { margin: 6px 0 0; font-size: 10.5px; color: var(--ink-3); }

.estancias { margin-top: 18px; }
.estancias h4 { margin: 0 0 8px; font-size: 15px; font-weight: 400; letter-spacing: -.02em; }
.estancias table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.estancias tr { animation: rowIn .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .2s); }
.estancias td { padding: 8px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.estancias td:last-child { text-align: right; font-weight: 500; white-space: nowrap; padding-left: 12px; }
.est-n { display: block; text-transform: lowercase; font-weight: 300; }
.est-n::first-letter { text-transform: uppercase; }
.est-bar { display: block; height: 3px; margin-top: 6px; background: var(--line); position: relative; }
.est-bar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--p); background: var(--violet-light); animation: grow .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms + .3s); }
.estancias .na { color: var(--ink-3); font-weight: 400; }
.est-src { margin: 8px 0 0; color: var(--ink-3); }
.fuente ul { margin: 4px 0 0; padding-left: 18px; }
.fuente summary { cursor: pointer; font-weight: 500; color: var(--ink-2); list-style-position: inside; }
.fuente p { margin: 6px 0 0; }
.card-media.is-plano { background: #fff; }
.card-media.is-plano img { object-fit: contain; padding: 10px; }
.ref-note { margin: 12px 0 0; padding: 9px 12px; border-left: 2px solid var(--violet-light); background: var(--accent-soft); font-size: 12px; color: var(--ink-2); }
.x { width: 36px; height: 36px; border-radius: 0; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); flex: none; transition: background .2s, color .2s, border-color .2s; }
.x:hover { background: var(--violet); color: #fff; border-color: var(--violet); }
.x svg { width: 17px; height: 17px; }


.drawer { position: absolute; top: 74px; bottom: 44px; width: 384px; border-radius: var(--radius); z-index: 8; display: flex; flex-direction: column; overflow: hidden; animation: drawerIn .45s var(--ease); background: var(--glass-strong); }
#search { left: var(--gutter); }
.menu { left: var(--gutter); width: 330px; bottom: auto; max-height: calc(100% - 118px); overflow-y: auto; }
@keyframes drawerIn { from { opacity: 0; transform: translateX(-16px); } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 16px 10px 20px; gap: 10px; }
.drawer-head h2 { margin: 0; font-size: 22px; font-weight: 400; letter-spacing: -.035em; }
.drawer-head .eyebrow { display: block; margin-bottom: 4px; color: var(--accent-text); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 8px 20px 14px; }
.filters label { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.filters .full { grid-column: 1 / -1; }
.filters input { height: 42px; border-radius: 0; border: 1px solid var(--line); background: transparent; padding: 0 12px; font: inherit; font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink); }
.draft-tag { display: inline-block; padding: 3px 9px; border-radius: 0; background: var(--gold-light); color: #3a2c00; font-family: var(--mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; pointer-events: none; }
.tour-caption .draft-tag { color: #3a2c00; }
.results .r-ref { font-size: 11.5px; color: var(--ink-3); margin-top: 1px; }
.demo-badge.clickable { cursor: pointer; }
.filters select { height: 42px; border-radius: 0; border: 1px solid var(--line); background: transparent; padding: 0 10px; font-family: var(--font); font-size: 14px; letter-spacing: 0; text-transform: none; font-weight: 400; color: var(--ink); }
.filters select option { color: #19181d; }
.result-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 20px 10px; font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.link { color: var(--accent-text); font-family: var(--font); font-weight: 500; font-size: 12.5px; letter-spacing: 0; text-transform: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }
.results { list-style: none; margin: 0; padding: 0 0 12px; overflow-y: auto; flex: 1; }
.results li button { width: 100%; text-align: left; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 13px 20px; border-radius: 0; border-bottom: 1px solid var(--line); transition: background .15s, padding .25s var(--ease); }
.results li button:hover, .results li button.on { background: var(--accent-soft); padding-left: 24px; }
.results li button.on { box-shadow: inset 2px 0 0 var(--violet); }
.results .r-id { font-weight: 500; font-size: 14px; letter-spacing: -.01em; }
.results .r-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 3px; font-weight: 300; }
.results .r-tipo { flex: none; min-width: 34px; height: 30px; padding: 0 8px; border-radius: 0; display: grid; place-items: center; border: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.results .empty { padding: 24px 12px; color: var(--ink-2); font-size: 14px; text-align: center; }
.menu-sub { margin: 0 20px 10px; font-size: 13px; color: var(--ink-2); font-weight: 300; }

.menu-list { list-style: none; margin: 0; padding: 0; counter-reset: mi; border-top: 1px solid var(--line); }
.menu-list > li { counter-increment: mi; border-bottom: 1px solid var(--line); }
.menu-list button, .menu-list a, .menu-link { display: flex; align-items: baseline; gap: 14px; width: 100%; text-align: left; padding: 13px 20px; border-radius: 0; font-weight: 400; font-size: 15px; letter-spacing: -.01em; color: inherit; text-decoration: none; transition: background .2s, color .2s, padding .25s var(--ease); }
.menu-list button::before, .menu-list a::before { content: counter(mi, decimal-leading-zero); font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--ink-3); flex: none; }
.menu-link small, .menu-list a small { font-weight: 300; color: var(--ink-3); font-size: 12px; margin-left: auto; }
.menu-list button:hover, .menu-list a:hover, .menu-link:hover { background: var(--accent-soft); color: var(--accent-text); padding-left: 24px; }
a.pill { color: inherit; text-decoration: none; }
.menu-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 14px 20px 6px; border: 1px solid var(--line); }
.menu-stats div { padding: 12px 8px; text-align: center; }
.menu-stats div + div { border-left: 1px solid var(--line); }
.menu-stats b { display: block; font-size: 26px; font-weight: 300; letter-spacing: -.04em; }
.menu-stats span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.menu-credits { margin: 10px 20px 18px; font-size: 11.5px; color: var(--ink-3); line-height: 1.5; display: flex; flex-direction: column; gap: 10px; }
.menu-credits .by { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); text-decoration: none; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.menu-credits .by img { height: 15px; width: auto; }


.modal { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; padding: var(--gutter); background: rgba(5, 5, 9, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); animation: fade .35s; }
@keyframes fade { from { opacity: 0; } }
.modal-box { background: var(--glass-strong); color: var(--ink); border-radius: 0; border: 1px solid var(--glass-line); box-shadow: 0 30px 80px rgba(0,0,0,.4); width: min(540px, 100%); max-height: calc(100% - 32px); overflow: auto; padding: 24px 28px 24px; animation: cardIn .6s var(--ease); }
.legal-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.legal-top img { height: 24px; width: auto; display: block; }
.legal-box .eyebrow { display: block; margin-top: 26px; color: var(--accent-text); }
.legal-box h2 { margin: 8px 0 6px; font-size: 34px; font-weight: 400; letter-spacing: -.045em; line-height: 1.08; }
.legal-box h2 em { color: var(--accent-text); }
.legal-sub { margin: 0 0 14px; color: var(--ink-2); font-size: 15px; font-weight: 300; }
.legal-box p { font-size: 13.5px; line-height: 1.65; color: var(--ink-2); font-weight: 300; }
.legal-box p:not(.legal-sub) { text-align: justify; hyphens: auto; }
.legal-box .btn { margin-top: 20px; height: 54px; font-size: 14px; }

.modal.dark { display: flex; flex-direction: column; place-items: stretch; padding: 0; background: rgba(5, 5, 9, .96); color: #fff; }
.viewer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px var(--gutter); font-weight: 400; font-size: 16px; letter-spacing: -.01em; border-bottom: 1px solid #1d1d2b; }
.viewer-head > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer-tools { display: flex; gap: 6px; flex: none; }
.viewer-tools button { width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; background: rgba(255,255,255,.08); border: 1px solid #1d1d2b; color: #fff; transition: background .2s; }
.viewer-tools button:hover { background: var(--violet); }
.viewer-tools svg { width: 18px; height: 18px; }
.viewer-body { position: relative; flex: 1; overflow: hidden; touch-action: none; cursor: grab; }
.viewer-body img { position: absolute; left: 0; top: 0; transform-origin: 0 0; max-width: none; user-select: none; background: #fff; }
.viewer-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: rgba(255,255,255,.7); font-size: 15px; padding: 24px; }
.viewer-foot { padding: 10px var(--gutter) calc(12px + env(safe-area-inset-bottom)); text-align: center; font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.5); }

.tour-note { margin: 10px var(--gutter) 8px; padding: 9px 14px; border-left: 2px solid var(--violet-light); background: rgba(156,138,254,.12); color: #e2e1ef; font-size: 13px; text-align: center; }
.tour-main { position: relative; flex: 1; display: grid; place-items: center; min-height: 0; padding: 0 76px; }
#panoBox { position: absolute !important; inset: 0 76px; width: auto !important; height: auto !important; border-radius: 0; overflow: hidden; z-index: 1; }
.tour-main img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 0; box-shadow: 0 20px 60px rgba(0,0,0,.5); transition: opacity .3s; }
.tour-main .nav-arrow { background: rgba(255,255,255,.08); color: #fff; border-color: #1d1d2b; }
.tour-main .nav-arrow:hover { background: var(--violet); }
.tour-caption { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px var(--gutter) 6px; text-align: center; }
.tour-caption strong { font-size: 17px; font-weight: 400; letter-spacing: -.02em; }
.tour-caption span { font-size: 13px; color: rgba(255,255,255,.7); font-weight: 300; }
.tour-thumbs { display: flex; gap: 6px; justify-content: center; padding: 8px var(--gutter) calc(14px + env(safe-area-inset-bottom)); overflow-x: auto; }
.tour-thumbs button { flex: none; width: 92px; height: 60px; border-radius: 0; overflow: hidden; opacity: .5; outline: 2px solid transparent; outline-offset: 2px; transition: opacity .2s, outline-color .2s; padding: 0; }
.tour-thumbs button.on { opacity: 1; outline-color: var(--violet-pale); }
.tour-thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }

.toast { position: absolute; left: 50%; bottom: 96px; translate: -50% 20px; padding: 11px 18px; border-radius: 0; background: rgba(5,5,9,.92); border-left: 2px solid var(--violet); color: #fff; font-size: 13px; font-weight: 400; opacity: 0; pointer-events: none; transition: opacity .3s, translate .35s var(--ease); z-index: 30; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; translate: -50% 0; }


@media (max-width: 760px) {
  .topbar { padding: 12px var(--gutter); gap: 8px; }
  .pill span { display: none; }
  .pill { width: 42px; padding: 0; justify-content: center; }
  .search-pill { position: static; translate: none; min-width: 0; color: inherit; }
  .tb-right { gap: 8px; }
  .tb-left { gap: 8px; }
  .brand { gap: 10px; padding: 0 12px 0 10px; }
  .brand-logo .full { display: none !important; }
  .brand-logo .iso.logo-light { display: block; }
  :root[data-theme="dark"] .brand-logo .iso.logo-light { display: none !important; }
  :root[data-theme="dark"] .brand-logo .iso.logo-dark { display: block !important; }
  .brand-logo img { height: 20px; }
  .brand-sep { height: 20px; }
  .brand-name { font-size: 14.5px; }
  .brand-name small { display: none; }
  #pisosBtn { position: fixed; left: 50%; bottom: 76px; translate: -50% 0; width: auto; padding: 0 18px 0 20px; height: 50px; min-width: 200px; justify-content: space-between; }
  #pisosBtn span, #pisosBtn .arrow { display: inline; }
  .nav-arrow { width: 42px; height: 42px; }
  .giro-foot { bottom: 146px; }
  .compass { display: none; }
  .vn-dbg { font-size: 10.5px; }
  .floorbar { top: 98px; bottom: auto; width: 58px; max-height: calc(100% - 230px); }
  .bl-long { display: none; } .bl-short { display: inline; }
  .bloque-toggle button, .floors button { padding: 9px 4px; font-size: 12px; }
  .floors button small { display: none; }
  .pisos-tools { bottom: 44px; right: auto; left: var(--gutter); align-items: flex-start; }
  .zoom { display: none; }
  .planta-label { bottom: 92px; font-size: 10px; padding: 8px 14px; }
  .seg button { padding: 7px 12px; font-size: 12px; }
  .card { left: 0; right: 0; top: auto; bottom: 0; width: 100%; max-height: 56%; border-radius: 0; border-left: 0; border-right: 0; border-bottom: 0; animation-name: sheetIn; }
  .card-media { aspect-ratio: 16 / 6.5; }
  .card-body { padding: 14px var(--gutter) 18px; }
  .card h3 { font-size: 19px; }
  .m2-big b { font-size: 40px; }
  .rows li { padding: 8px 0; font-size: 13.5px; }
  @keyframes sheetIn { from { transform: translateY(40px); opacity: 0; } }
  .drawer, .menu { left: 0 !important; right: 0; top: 0; bottom: 0; width: 100%; max-height: none; border-radius: 0; border: 0; }
  .demo-badge { top: 62px; font-size: 9.5px; }
  .credits { font-size: 9.5px; gap: 10px; }
  .credits .txt { display: none; }
  .credits .sep { display: none; }
  .tour-main { padding: 0 8px; }
  #panoBox { inset: 0 8px !important; }
  #entornoBtn { display: none; }
  .legend { bottom: 134px; }
  .tour-main .nav-arrow { display: none; }
  .legal-box { padding: 20px var(--gutter); }
  .legal-box h2 { font-size: 28px; }
}
@media (max-width: 360px) { .brand-sep, .brand-name { display: none; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; } }


.viewer-tabs { display: flex; justify-content: center; gap: 6px; padding: 10px var(--gutter); border-bottom: 1px solid #1d1d2b; }
.viewer-tabs[hidden] { display: none; }
.viewer-tabs button { min-width: 96px; min-height: 40px; padding: 0 18px; background: rgba(255,255,255,.08); border: 1px solid #1d1d2b; color: #fff; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s; }
.viewer-tabs button:hover { background: rgba(255,255,255,.16); }
.viewer-tabs button.on { background: var(--violet); border-color: var(--violet); }


#nocheBtn .ic-luna { display: none; }
#nocheBtn[aria-pressed="true"] .ic-sol { display: none; }
#nocheBtn[aria-pressed="true"] .ic-luna { display: block; }
#nocheBtn[aria-pressed="true"] { background: #1d2340; color: #ffd98a; }


.viewer-body img.sin-fondo { background: transparent; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .45)); }
