/*
══════════════════════════════════════════════════════════
SITE FINAL BUNDLE CSS
Bundle final de producción
Fecha: 2026-04-04
Orden de fusión:
  1. main.css
  2. mobile_clean_consolidado.css
  3. mobile_clean_consolidado_v2.css
  4. mobile_clean_consolidado_v2_1.css
  5. mobile_clean_consolidado_v2_2.css
  6. mobile_visor_final_consolidado.css
  7. mobile_visor_final_consolidado_v1_4.css
  8. galeria_mobile_hide_lightbox_card.css
  9. ubicacion_premium_v1.css
  10. ubicacion_mapbox_v1.css
══════════════════════════════════════════════════════════
*/


/* ===== INICIO: main.css ===== */

/* ═══════════════════════════════════════════════════════════
   RESIDENCIAL L-11 · TEMA CLARO
   Fuentes: Cormorant Garamond (display) + DM Sans (UI)
═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --gold:        #B8935A;
  --gold-light:  #D4AF82;
  --gold-dark:   #8B6B3D;
  --gold-dim:    rgba(184,147,90,0.10);
  --gold-border: rgba(184,147,90,0.30);

  --bg:          #F7F5F2;
  --bg2:         #EFEDE9;
  --bg3:         #E8E4DE;
  --white:       #FFFFFF;
  --surface:     #FFFFFF;

  --text:        #1A1814;
  --text2:       #5A5550;
  --text3:       #9A9590;

  --border:      rgba(0,0,0,0.08);
  --border2:     rgba(0,0,0,0.14);

  --radius:      6px;
  --font-display:'Inter', Georgia, serif;
  --font-ui:     'DM Sans', sans-serif;
  --shadow-sm:   0 2px 12px rgba(0,0,0,0.06);
  --shadow-md:   0 8px 40px rgba(0,0,0,0.10);
  --transition:  all 0.35s cubic-bezier(0.25,0.46,0.45,0.94);
}

/* ── RESET ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── TIPOGRAFÍA BASE ───────────────────────────────────── */
h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 300; }
p { line-height: 1.75; color: var(--text2); }

/* ── CURSOR ────────────────────────────────────────────── */
* { cursor: none !important; }
#cursor { position: fixed; top:0; left:0; pointer-events:none; z-index:9999; }
#cursor-dot {
  width:8px; height:8px; background:var(--gold);
  border-radius:50%; transform:translate(-50%,-50%);
  transition: width .2s, height .2s;
}
#cursor-ring {
  position:absolute; top:50%; left:50%;
  width:32px; height:32px;
  border:1.5px solid rgba(184,147,90,0.5);
  border-radius:50%; transform:translate(-50%,-50%);
  transition: width .3s, height .3s, border-color .3s;
}
body.cursor-hover #cursor-dot  { width:12px; height:12px; }
body.cursor-hover #cursor-ring { width:44px; height:44px; border-color:var(--gold); }

/* ── BOTONES ───────────────────────────────────────────── */
.btn {
  display:inline-flex; align-items:center; gap:8px;
  font-family:var(--font-ui); font-size:12px; font-weight:500;
  letter-spacing:1.5px; text-transform:uppercase;
  padding:14px 28px; border:1.5px solid var(--gold-border);
  color:var(--gold-dark); background:transparent;
  transition:var(--transition); text-decoration:none;
  border-radius:var(--radius); white-space:nowrap;
}
.btn:hover { background:var(--gold-dim); border-color:var(--gold); color:var(--gold); }
.btn-solid {
  background:var(--gold); color:#fff;
  border-color:var(--gold); font-weight:500;
}
.btn-solid:hover { background:var(--gold-dark); border-color:var(--gold-dark); color:#fff; }
.btn-ghost { border-color:var(--border2); color:var(--text2); }
.btn-ghost:hover { border-color:var(--gold-border); color:var(--text); }
button { border:none; background:none; font-family:inherit; }

/* ── BADGE ─────────────────────────────────────────────── */
.badge {
  display:inline-flex; align-items:center; gap:5px;
  font-size:10px; letter-spacing:1px; font-weight:500;
  text-transform:uppercase; padding:4px 10px; border-radius:20px;
}
.badge::before { content:''; width:5px; height:5px; border-radius:50%; }
.badge-disponible { background:rgba(22,163,74,0.10); color:#15803D; }
.badge-disponible::before { background:#16A34A; }
.badge-vendido    { background:rgba(220,38,38,0.10); color:#B91C1C; }
.badge-vendido::before    { background:#DC2626; }
.badge-reservado  { background:rgba(202,138,4,0.12); color:#92400E; }
.badge-reservado::before  { background:#D97706; }

/* ── DIVIDER ───────────────────────────────────────────── */
.divider { width:48px; height:2px; background:var(--gold); opacity:.5; margin:0 auto; }
.divider-left { margin:0; }
.section-label {
  font-size:11px; letter-spacing:4px; text-transform:uppercase;
  color:var(--gold); margin-bottom:10px; font-weight:500;
}

/* ── OVERLAY ───────────────────────────────────────────── */
#overlay {
  position:fixed; inset:0; background:var(--white);
  z-index:1000; display:flex; align-items:center; justify-content:center;
  transition:opacity .6s ease;
}
#overlay.hide { opacity:0; pointer-events:none; }
.overlay-logo {
  font-family:var(--font-display); font-size:52px; font-weight:300;
  letter-spacing:8px; color:var(--gold);
  opacity:0; animation:fadeUp 1s ease .3s forwards;
}
@keyframes fadeUp {
  from { opacity:0; transform:translateY(16px); }
  to   { opacity:1; transform:translateY(0); }
}

/* ── NAVBAR ────────────────────────────────────────────── */
#navbar {
  position:fixed; top:0; left:0; right:0; z-index:100;
  display:flex; align-items:center; justify-content:space-between;
  padding:20px 56px;
  background:rgba(247,245,242,0.0);
  transition:var(--transition);
}
#navbar.scrolled {
  background:rgba(247,245,242,0.96);
  backdrop-filter:blur(16px);
  border-bottom:1px solid var(--border);
  box-shadow:var(--shadow-sm);
  padding:14px 56px;
}
.navbar-logo {
  font-family:var(--font-display); font-size:22px; font-weight:400;
  letter-spacing:3px; color:var(--text);
}
.navbar-logo span { color:var(--gold); }
.navbar-nav { display:flex; gap:36px; }
.navbar-nav a {
  font-size:12px; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--text2); text-decoration:none; font-weight:500;
  transition:color .25s;
}
.navbar-nav a:hover { color:var(--gold); }

/* ── HERO ──────────────────────────────────────────────── */
#hero {
  position:relative; height:100vh;
  display:flex; align-items:center; justify-content:center; overflow:hidden;
}
#hero-bg { position:absolute; inset:0; background:var(--bg2); }
#hero-img {
  position:absolute; inset:0; width:100%; height:100%;
  object-fit:cover; opacity:0; transition:opacity 1.2s ease;
}
#hero-img.loaded { opacity:1; }
.hero-overlay {
  position:absolute; inset:0;
  background:linear-gradient(to bottom, rgba(247,245,242,0.15) 0%, rgba(26,24,20,0.55) 100%);
}
.hero-content {
  position:relative; z-index:2; text-align:center; padding:0 24px;
  animation:fadeUp 1s ease .8s both;
}
.hero-eyebrow {
  font-size:11px; letter-spacing:5px; text-transform:uppercase;
  color:rgba(255,255,255,0.75); margin-bottom:20px; font-weight:400;
}
.hero-title {
  font-family:var(--font-display);
  font-size:clamp(56px,9vw,110px);
  font-weight:300; letter-spacing:0.06em;
  color:#fff; line-height:1.0; margin-bottom:20px;
}
.hero-subtitle {
  font-size:14px; letter-spacing:2px; text-transform:uppercase;
  color:rgba(255,255,255,0.65); margin-bottom:52px; font-weight:300;
}
.hero-actions { display:flex; gap:14px; justify-content:center; }
.hero-actions .btn { border-color:rgba(255,255,255,0.4); color:#fff; background:rgba(255,255,255,0.08); }
.hero-actions .btn:hover { background:rgba(255,255,255,0.18); border-color:rgba(255,255,255,0.7); }
.hero-actions .btn-solid { background:var(--gold); border-color:var(--gold); color:#fff; }
.hero-actions .btn-solid:hover { background:var(--gold-dark); border-color:var(--gold-dark); }

.hero-scroll {
  position:absolute; bottom:40px; left:50%; transform:translateX(-50%);
  display:flex; flex-direction:column; align-items:center; gap:8px;
  color:rgba(255,255,255,0.5); font-size:9px; letter-spacing:3px; text-transform:uppercase;
  animation:fadeUp 1s ease 1.4s both;
}
.scroll-line {
  width:1px; height:40px;
  background:linear-gradient(to bottom,rgba(255,255,255,0.6),transparent);
  animation:scrollLine 2s ease-in-out infinite;
}
@keyframes scrollLine {
  0%   { transform:scaleY(0); transform-origin:top; }
  50%  { transform:scaleY(1); transform-origin:top; }
  51%  { transform:scaleY(1); transform-origin:bottom; }
  100% { transform:scaleY(0); transform-origin:bottom; }
}

/* ── SECCIÓN DISPONIBILIDAD ────────────────────────────── */
#pisos { padding:100px 0; background:var(--bg); }
.pisos-intro { text-align:center; margin-bottom:72px; padding:0 24px; }
.pisos-titulo {
  font-size:clamp(36px,5vw,60px); color:var(--text);
  margin-bottom:16px; letter-spacing:1px;
}
.pisos-desc { font-size:15px; color:var(--text2); letter-spacing:.5px; }

/* ── SELECTOR (render + lista) ─────────────────────────── */
#edificio-selector {
  display:flex; gap:56px; max-width:1240px;
  margin:0 auto; padding:0 56px; align-items:flex-start;
}
.edificio-visual { flex:0 0 400px; position:sticky; top:100px; }

/* Render lateral */
.edificio-render-wrap {
  border-radius:12px; overflow:hidden;
  box-shadow:var(--shadow-md);
  background:var(--bg2);
  aspect-ratio:3/4;
}
.edificio-render-wrap img { width:100%; height:100%; object-fit:cover; display:block; }

/* Leyenda */
.edificio-leyenda {
  display:flex; gap:16px; margin-top:20px; justify-content:center;
  flex-wrap:wrap;
}

/* ── ENCABEZADO DE PISO ────────────────────────────────── */
#pisos-lista { flex:1; display:flex; flex-direction:column; }

.piso-grupo-header {
  display:flex; align-items:center; gap:16px;
  padding:32px 0 12px; border-top:1px solid var(--border);
}
.piso-grupo-header:first-child { border-top:none; padding-top:0; }
.piso-grupo-numero {
  font-family:var(--font-display); font-size:52px; font-weight:300;
  color:var(--bg3); line-height:1; min-width:60px; user-select:none;
}
.piso-grupo-etiqueta {
  font-family:var(--font-display); font-size:26px; font-weight:300;
  letter-spacing:1px; color:var(--text);
}
.piso-grupo-linea { flex:1; height:1px; background:var(--border); }
.piso-grupo-count {
  font-size:11px; letter-spacing:2px; text-transform:uppercase;
  color:var(--text3); font-weight:400;
}

/* ── FILA APARTAMENTO ──────────────────────────────────── */
.apto-row {
  border:1.5px solid var(--border);
  border-radius:var(--radius);
  background:var(--surface);
  margin-bottom:6px;
  overflow:hidden;
  transition:border-color .3s, box-shadow .3s;
  box-shadow:var(--shadow-sm);
}
.apto-row:hover { border-color:var(--gold-border); box-shadow:0 4px 24px rgba(184,147,90,0.12); }
.apto-row.active { border-color:var(--gold); box-shadow:0 4px 24px rgba(184,147,90,0.15); }

.apto-row-main {
  display:flex; align-items:flex-start;
  justify-content:space-between;
  gap:24px; padding:24px 28px; cursor:pointer;
}

.apto-row-left { flex:1; }
.apto-nombre {
  font-family:var(--font-display); font-size:24px; font-weight:400;
  letter-spacing:.5px; color:var(--text); margin-bottom:4px;
}
.apto-specs {
  font-size:13px; letter-spacing:.5px; color:var(--text2);
  margin-bottom:14px; font-weight:400;
}
.apto-features { display:flex; flex-wrap:wrap; gap:6px; }
.apto-feature {
  font-size:11px; color:var(--text2); padding:5px 12px;
  border:1px solid var(--border2); border-radius:20px;
  background:var(--bg); font-weight:400;
}

.apto-row-right {
  display:flex; flex-direction:column;
  align-items:flex-end; gap:10px; flex-shrink:0;
}
.apto-precio {
  font-family:var(--font-display); font-size:26px; font-weight:400;
  color:var(--text); letter-spacing:.5px;
}
.apto-actions { display:flex; gap:8px; align-items:center; margin-top:4px; }
.apto-btn-ver { font-size:11px; padding:10px 18px; }

/* Body expandible */
.apto-row-body {
  max-height:0; overflow:hidden;
  transition:max-height .45s cubic-bezier(0.25,0.46,0.45,0.94);
  border-top:0px solid var(--border);
}
.apto-row.active .apto-row-body {
  max-height:320px;
  border-top-width:1px;
}
.apto-thumb-wrap {
  margin:0 28px 24px;
  height:200px;
  border:1.5px dashed var(--border2);
  border-radius:var(--radius);
  overflow:hidden;
  display:flex; align-items:center; justify-content:center;
  background:var(--bg);
  transition:border-color .3s;
}
.apto-thumb-wrap.loaded { border-style:solid; border-color:var(--border); }
.apto-thumb-placeholder span {
  font-size:11px; letter-spacing:2px; color:var(--text3); text-transform:uppercase;
}

/* ── VISOR DE PLANTA ───────────────────────────────────── */
#visor-planta {
  position:fixed; inset:0; z-index:200;
  background:rgba(247,245,242,0.98); backdrop-filter:blur(20px);
  display:none; flex-direction:column;
  opacity:0; transition:opacity .4s ease;
}
#visor-planta.open { display:flex; opacity:1; }

.visor-header {
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  border-bottom:1px solid var(--border);
  background:var(--white);
  flex-shrink:0;
}
.visor-header-left { display:flex; align-items:center; gap:20px; }
.visor-breadcrumb {
  display:flex; align-items:center; gap:8px;
  font-size:11px; letter-spacing:2px; text-transform:uppercase; color:var(--text2);
  font-weight:500;
}
.visor-breadcrumb .bc-sep   { color:var(--text3); }
.visor-breadcrumb .bc-active{ color:var(--gold); }
.visor-close {
  width:38px; height:38px; display:flex; align-items:center; justify-content:center;
  border:1.5px solid var(--border2); border-radius:50%;
  color:var(--text2); font-size:16px; transition:var(--transition);
  background:transparent;
}
.visor-close:hover { border-color:var(--gold-border); color:var(--gold); background:var(--gold-dim); }

.visor-body { flex:1; display:flex; overflow:hidden; }

/* Panel planta */
.planta-panel {
  flex:0 0 56%; position:relative; overflow:hidden;
  border-right:1px solid var(--border); background:var(--bg);
}
.planta-img-wrap { position:relative; width:100%; height:100%; }
.planta-img-wrap img {
  width:100%; height:100%; object-fit:contain; padding:40px;
}
.planta-placeholder {
  width:100%; height:100%;
  display:flex; align-items:center; justify-content:center;
  flex-direction:column; gap:12px;
}
.planta-placeholder p { font-size:12px; letter-spacing:2px; text-transform:uppercase; color:var(--text3); }

/* Hotspots en planta */
.planta-hotspot { position:absolute; transform:translate(-50%,-50%); z-index:10; }
.hs-btn {
  width:36px; height:36px; border-radius:50%;
  border:2px solid var(--gold);
  background:rgba(184,147,90,0.15);
  display:flex; align-items:center; justify-content:center;
  transition:var(--transition); position:relative; color:var(--gold);
}
.hs-btn::before {
  content:''; position:absolute; inset:-7px; border-radius:50%;
  border:1px solid rgba(184,147,90,0.25);
  animation:hsPulse 2.5s ease-in-out infinite;
}
@keyframes hsPulse {
  0%,100% { transform:scale(1); opacity:.7; }
  50%     { transform:scale(1.2); opacity:.2; }
}
.hs-btn:hover { background:var(--gold); color:#fff; transform:scale(1.1); }
.hs-btn svg { width:14px; height:14px; }
.hs-label {
  position:absolute; bottom:calc(100% + 10px); left:50%;
  transform:translateX(-50%); white-space:nowrap;
  background:var(--text); border-radius:4px;
  padding:5px 10px; font-size:10px; letter-spacing:1px;
  text-transform:uppercase; color:#fff;
  opacity:0; transition:opacity .2s; pointer-events:none;
}
.planta-hotspot:hover .hs-label { opacity:1; }

/* Panel info derecha */
.info-panel {
  flex:1; display:flex; flex-direction:column;
  padding:36px; overflow-y:auto; gap:28px;
  background:var(--white);
}
.info-piso-nombre {
  font-family:var(--font-display); font-size:40px; font-weight:300;
  letter-spacing:1px; color:var(--text);
}
.info-piso-precio {
  font-family:var(--font-display); font-size:32px; font-weight:400;
  color:var(--gold-dark); letter-spacing:.5px;
}
.info-specs-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.info-spec {
  background:var(--bg); border-radius:var(--radius);
  padding:16px 18px; border:1px solid var(--border);
}
.info-spec-label {
  font-size:10px; letter-spacing:2px; text-transform:uppercase;
  color:var(--text3); margin-bottom:6px; font-weight:500;
}
.info-spec-value {
  font-family:var(--font-display); font-size:26px;
  color:var(--text); letter-spacing:.5px;
}
.info-caracteristicas { display:flex; flex-direction:column; gap:10px; }
.info-caracteristica {
  display:flex; align-items:center; gap:12px;
  font-size:14px; color:var(--text2); font-weight:400;
}
.info-caracteristica::before {
  content:''; width:24px; height:1.5px; background:var(--gold); flex-shrink:0;
}
.info-espacios-title {
  font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color:var(--gold); margin-bottom:12px; font-weight:500;
}
.info-espacios { display:flex; flex-direction:column; gap:6px; }
.espacio-btn {
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 18px; border:1.5px solid var(--border);
  border-radius:var(--radius); background:var(--bg);
  transition:var(--transition); text-align:left; width:100%; color:var(--text);
}
.espacio-btn:hover { border-color:var(--gold-border); background:var(--gold-dim); }
.espacio-nombre { font-size:14px; font-weight:500; margin-bottom:2px; }
.espacio-area   { font-size:12px; color:var(--text2); }
.espacio-arrow  { color:var(--gold); font-size:18px; }
.info-cta { display:flex; flex-direction:column; gap:10px; margin-top:auto; }

/* ── VISOR PANORAMA 360° ───────────────────────────────── */
#visor-pano {
  position:fixed; inset:0; z-index:300;
  background:#1A1814;
  display:none; opacity:0; transition:opacity .4s ease;
}
#visor-pano.open { display:block; opacity:1; }

.pano-header {
  position:absolute; top:0; left:0; right:0; z-index:10;
  display:flex; align-items:center; justify-content:space-between;
  padding:18px 32px;
  background:linear-gradient(to bottom,rgba(26,24,20,0.85),transparent);
}
.pano-header-left { display:flex; align-items:center; gap:20px; }
.pano-room-tabs { display:flex; gap:4px; }
.pano-tab {
  font-size:10px; letter-spacing:2px; text-transform:uppercase;
  padding:7px 16px; border:1px solid rgba(255,255,255,0.15);
  color:rgba(255,255,255,0.6); border-radius:3px;
  transition:var(--transition); background:rgba(26,24,20,0.5);
  font-weight:500;
}
.pano-tab:hover,.pano-tab.active {
  border-color:rgba(184,147,90,0.6); color:#D4AF82;
  background:rgba(184,147,90,0.12);
}

#pannellum-container { width:100%; height:100%; }

/* Info overlay panorama */
.pano-info-overlay {
  position:absolute; bottom:32px; left:32px; z-index:10;
  background:rgba(247,245,242,0.95); backdrop-filter:blur(12px);
  border:1px solid var(--border2); border-radius:8px;
  padding:18px 22px; max-width:300px;
  box-shadow:var(--shadow-md);
}
.pano-room-name {
  font-family:var(--font-display); font-size:26px; font-weight:300;
  color:var(--text); margin-bottom:4px;
}
.pano-room-desc { font-size:12px; color:var(--text2); line-height:1.6; }

/* Controles */
.pano-controls {
  position:absolute; bottom:32px; right:32px; z-index:10;
  display:flex; gap:8px;
}
.pano-ctrl-btn {
  width:40px; height:40px; border-radius:50%;
  border:1px solid rgba(255,255,255,0.2);
  background:rgba(247,245,242,0.12);
  color:rgba(255,255,255,0.8); display:flex; align-items:center; justify-content:center;
  font-size:18px; transition:var(--transition); backdrop-filter:blur(8px);
}
.pano-ctrl-btn:hover { border-color:rgba(184,147,90,0.6); color:#D4AF82; }

/* Drag hint */
.pano-drag-hint {
  position:absolute; top:50%; left:50%; transform:translate(-50%,-50%);
  z-index:5; text-align:center; pointer-events:none;
  animation:hintFade 3s ease 1s forwards;
}
@keyframes hintFade { 0%{opacity:.8} 100%{opacity:0} }
.pano-drag-hint p {
  font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color:rgba(255,255,255,0.6); margin-top:10px; font-weight:400;
}

/* Brújula */
.pano-compass {
  position:absolute; top:80px; right:32px; z-index:10;
  width:52px; height:52px;
  border:1px solid rgba(255,255,255,0.15); border-radius:50%;
  background:rgba(247,245,242,0.1); backdrop-filter:blur(10px);
  display:flex; align-items:center; justify-content:center;
}
.compass-inner { transition:transform .1s linear; }

/* Loading panorama */
.pano-loading {
  position:absolute; inset:0; z-index:20;
  display:flex; align-items:center; justify-content:center;
  background:#1A1814; flex-direction:column; gap:16px;
}
.pano-loading.hide { opacity:0; pointer-events:none; transition:opacity .5s; }
.loading-ring {
  width:44px; height:44px; border-radius:50%;
  border:1.5px solid rgba(184,147,90,0.15);
  border-top-color:var(--gold);
  animation:spin 1s linear infinite;
}
@keyframes spin { to { transform:rotate(360deg); } }
.loading-text {
  font-size:11px; letter-spacing:3px; text-transform:uppercase;
  color:rgba(255,255,255,0.4); font-weight:400;
}

/* ── CONTACTO ──────────────────────────────────────────── */
#contacto {
  padding:100px 56px; max-width:960px;
  margin:0 auto; text-align:center;
}
.contacto-titulo {
  font-size:clamp(30px,4vw,52px); margin-bottom:14px; color:var(--text);
}
.contacto-sub {
  font-size:15px; letter-spacing:.5px; color:var(--text2); margin-bottom:64px;
}
.contacto-grid {
  display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin-bottom:48px;
}
.contacto-card {
  background:var(--white); border:1.5px solid var(--border);
  padding:36px 24px; border-radius:10px;
  transition:var(--transition); box-shadow:var(--shadow-sm);
}
.contacto-card:hover {
  border-color:var(--gold-border);
  box-shadow:0 8px 32px rgba(184,147,90,0.12);
  transform:translateY(-2px);
}
.contacto-icon {
  width:44px; height:44px; border:1.5px solid var(--gold-border);
  border-radius:50%; display:flex; align-items:center; justify-content:center;
  margin:0 auto 18px; color:var(--gold);
}
.contacto-label {
  font-size:10px; letter-spacing:3px; text-transform:uppercase;
  color:var(--text3); margin-bottom:10px; font-weight:500;
}
.contacto-valor { font-size:15px; color:var(--text); font-weight:400; }

/* ── FOOTER ────────────────────────────────────────────── */
footer {
  border-top:1px solid var(--border);
  background:var(--white);
  padding:32px 56px;
  display:flex; align-items:center; justify-content:space-between;
}
.footer-logo {
  font-family:var(--font-display); font-size:20px; font-weight:300;
  letter-spacing:3px; color:var(--text2);
}
.footer-logo span { color:var(--gold); }
.footer-copy    { font-size:12px; color:var(--text3); }
.footer-powered { font-size:11px; color:var(--text3); letter-spacing:1px; }

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width:1024px) {
  #edificio-selector { flex-direction:column; padding:0 32px; }
  .edificio-visual { flex:none; width:100%; position:static; }
  .edificio-render-wrap { aspect-ratio:16/9; }
}
@media (max-width:768px) {
  #navbar { padding:16px 24px; }
  #navbar.scrolled { padding:12px 24px; }
  .navbar-nav { display:none; }
  #pisos { padding:72px 0; }
  #edificio-selector { padding:0 20px; }
  .visor-body { flex-direction:column; }
  .planta-panel { flex:0 0 50%; border-right:none; border-bottom:1px solid var(--border); }
  .contacto-grid { grid-template-columns:1fr; }
  footer { flex-direction:column; gap:10px; text-align:center; }
  .pano-room-tabs { display:none; }
  .apto-row-main { flex-direction:column; gap:16px; }
  .apto-row-right { align-items:flex-start; }
  #contacto { padding:72px 24px; }
}

/* ══════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE FIRST FIXES
   ══════════════════════════════════════════════════════════ */

/* ── 480px y menos (teléfonos pequeños) ── */
@media (max-width:480px) {

  /* Hero */
  .hero-title { font-size:clamp(36px,11vw,56px); }
  .hero-eyebrow { font-size:9px; letter-spacing:3px; }
  .hero-subtitle { font-size:12px; margin-bottom:32px; }
  .hero-actions { flex-direction:column; align-items:center; gap:10px; }
  .hero-actions .btn, .hero-actions .btn-solid { width:100%; max-width:260px; text-align:center; justify-content:center; }

  /* Intro pisos */
  .pisos-intro { padding:0 20px; margin-bottom:48px; }
  .pisos-titulo { font-size:clamp(28px,7vw,40px); }

  /* Selector de edificio */
  #edificio-selector { padding:0 16px; gap:24px; }
  .edificio-render-wrap { aspect-ratio:4/3; }

  /* Apartamentos */
  .apto-row-main { flex-direction:column; gap:12px; }
  .apto-row-right { flex-direction:column; align-items:flex-start; gap:8px; }
  .apto-precio { font-size:16px; }
  .apto-caracteristicas { flex-wrap:wrap; gap:6px; }

  /* Visor */
  .visor-body { flex-direction:column; }
  .planta-panel { flex:0 0 auto; border-right:none; border-bottom:1px solid var(--border); padding:16px; }
  .planta-titulo { font-size:13px; }
  .pano-panel { min-height:260px; }
  #pannellum-container { min-height:260px; }

  /* Secciones con padding horizontal */
  #amenidades > div, #ubicacion > div { padding:0 20px; }
  #amenidades { padding:72px 0; }
  #ubicacion  { padding:72px 0; }

  /* Amenidades grid */
  #amenidades-grid { grid-template-columns:1fr !important; }

  /* Ubicación — apilar columnas */
  #ubicacion > div > div { grid-template-columns:1fr !important; gap:32px !important; }

  /* Contacto */
  #contacto { padding:72px 20px; }
  .contacto-titulo { font-size:clamp(28px,7vw,40px) !important; }

  /* Formulario */
  #form-fields > div { grid-template-columns:1fr !important; }

  /* Footer */
  footer { padding:40px 20px; }

  /* Galería */
  .galeria-hero { padding:120px 20px 60px; }
  .galeria-filtros { padding:24px 16px 0; gap:6px; }
  .galeria-main { padding:28px 16px 80px; }

  /* Ocultar cursor custom en touch */
  #cursor { display:none; }
}

/* ── 768px (tablets) — mejoras adicionales ── */
@media (max-width:768px) {

  /* Navbar mobile — mostrar hamburger o simplificar */
  .navbar-nav { display:none; }
  #navbar { padding:16px 20px; }

  /* Hero */
  .hero-title { font-size:clamp(40px,10vw,72px); }

  /* Secciones */
  #amenidades { padding:80px 0; }
  #ubicacion  { padding:80px 0; }
  #amenidades > div, #ubicacion > div { padding:0 24px; }
  #amenidades-grid { grid-template-columns:repeat(2,1fr) !important; }
  #ubicacion > div > div { grid-template-columns:1fr !important; }

  /* Visor planta */
  .visor-body { flex-direction:column; }
  .planta-panel { flex:0 0 auto; height:280px; border-right:none; border-bottom:1px solid var(--border); }
  .pano-panel { flex:1; min-height:320px; }

  /* Contacto */
  .contacto-grid { grid-template-columns:1fr !important; gap:48px !important; }
}

/* ══ ADMIN / MASTER — RESPONSIVE ══════════════════════════ */
@media (max-width:768px) {
  /* Admin sidebar -> top bar */
  .admin-sidebar {
    width:100% !important;
    height:auto !important;
    flex-direction:row !important;
    flex-wrap:wrap;
    border-right:none !important;
    border-bottom:1px solid var(--border);
    padding:12px 16px !important;
    gap:4px;
    position:static !important;
  }
  .admin-main { padding:20px 16px !important; }
  .sidebar-section { display:contents; }
  .sidebar-label { display:none; }
  .sidebar-item { padding:8px 12px !important; font-size:11px !important; }
  .sidebar-item svg { display:none; }
  .admin-header { padding:0 16px !important; height:52px !important; }

  /* Admin unidades */
  .unit-row { grid-template-columns:1fr 1fr !important; gap:8px !important; }
  .unit-floor, .unit-area { display:none; }

  /* Master sidebar -> hidden, show panels full width */
  .sidebar { display:none !important; }
  .main { padding:20px 16px !important; }
  .app-body { flex-direction:column; }
  .header { padding:0 16px !important; }
  .header-right { gap:8px; }
  .btn-sm { font-size:10px; padding:6px 12px; }

  /* Stats grid */
  .stats-grid { grid-template-columns:1fr 1fr !important; gap:10px !important; }

  /* Tabla proyectos */
  .table-head { display:none !important; }
  .table-row { grid-template-columns:1fr auto !important; gap:8px !important; }
  .table-row > div:nth-child(2),
  .table-row > div:nth-child(3),
  .table-row > div:nth-child(4),
  .table-row > div:nth-child(5) { display:none; }

  /* Modales */
  .modal { max-height:100vh; border-radius:0; }
  .form-grid { grid-template-columns:1fr !important; }
}

@media (max-width:480px) {
  .stats-grid { grid-template-columns:1fr !important; }
  .header-logo .platform-badge { display:none; }
}


/* ══════════════════════════════════════════════════════════
   RESPONSIVE FIXES — INDEX INLINE LAYOUT OVERRIDES
   Se agregan al final para sobreescribir estilos inline del index
══════════════════════════════════════════════════════════ */

/* Desktop / laptop: selector de niveles más estable */
#edificio-selector {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.edificio-visual,
#pisos-lista {
  min-width: 0;
}

/* Tablet horizontal y pantallas medianas */
@media (max-width: 1100px) {
  #edificio-selector {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
    padding: 0 32px !important;
  }

  .edificio-visual {
    order: 2;
    position: static !important;
    width: 100% !important;
    flex: none !important;
  }

  #pisos-lista {
    order: 1;
  }

  #ubicacion > div > div,
  #contacto > div > div {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

/* Tablet vertical */
@media (max-width: 900px) {
  #navbar {
    padding: 14px 18px !important;
    gap: 12px;
  }

  #navbar.scrolled {
    padding: 12px 18px !important;
  }

  .navbar-nav {
    display: none !important;
  }

  .navbar-cta {
    padding-inline: 14px !important;
    font-size: 11px !important;
  }

  .hero-content {
    padding-inline: 24px !important;
    max-width: 100% !important;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: min(100%, 420px);
    margin-inline: auto;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  #pisos,
  #amenidades,
  #ubicacion,
  #contacto {
    padding-top: 72px !important;
    padding-bottom: 72px !important;
  }

  #amenidades > div,
  #ubicacion > div,
  #contacto > div {
    padding-left: 24px !important;
    padding-right: 24px !important;
  }

  #amenidades-grid {
    grid-template-columns: 1fr 1fr !important;
  }

  #ubicacion [style*="height:460px"] {
    height: 360px !important;
  }

  #contacto > div > div > div:last-child {
    padding: 28px !important;
  }
}

/* Móviles */
@media (max-width: 640px) {
  .pisos-intro,
  #amenidades > div > div:first-child,
  #ubicacion > div > div > div:first-child,
  #contacto > div > div > div:first-child {
    text-align: left !important;
  }

  .pisos-desc,
  #ubicacion-desc,
  #contacto p {
    font-size: 14px !important;
  }

  #amenidades-grid {
    grid-template-columns: 1fr !important;
  }

  #contacto > div > div > div:first-child > div:last-child {
    flex-direction: column !important;
  }

  #contacto > div > div > div:first-child > div:last-child .btn,
  #contacto > div > div > div:first-child > div:last-child a.btn,
  #contacto > div > div > div:first-child > div:last-child button.btn {
    width: 100% !important;
    justify-content: center !important;
  }

  #contacto > div > div > div:first-child [style*="justify-content:space-between"] {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 6px !important;
  }

  #contacto #form-fields > div:first-child {
    grid-template-columns: 1fr !important;
  }

  #contacto > div > div > div:last-child {
    padding: 22px !important;
  }

  #ubicacion [style*="height:460px"] {
    height: 300px !important;
  }

  #edificio-selector {
    gap: 18px !important;
    padding: 0 16px !important;
  }

  .edificio-visual [style*="justify-content:center"] {
    flex-wrap: wrap;
    gap: 8px !important;
  }

  .visor-header {
    padding: 14px 16px;
  }

  .visor-header-left {
    gap: 10px;
    min-width: 0;
  }

  .visor-breadcrumb {
    font-size: 9px;
    letter-spacing: 1.2px;
    flex-wrap: wrap;
  }

  .info-panel {
    padding: 22px 18px;
    gap: 22px;
  }

  .info-piso-nombre {
    font-size: 30px;
  }

  .info-piso-precio {
    font-size: 26px;
  }

  .info-specs-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
}

/* Teléfonos pequeños */
@media (max-width: 480px) {
  #navbar {
    padding: 12px 14px !important;
  }

  #navbar.scrolled {
    padding: 10px 14px !important;
  }

  .hero-title {
    font-size: clamp(34px, 11vw, 52px) !important;
  }

  .hero-subtitle {
    font-size: 14px !important;
  }

  #pisos,
  #amenidades,
  #ubicacion,
  #contacto {
    padding-top: 56px !important;
    padding-bottom: 56px !important;
  }

  #amenidades > div,
  #ubicacion > div,
  #contacto > div,
  #edificio-selector {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  #contacto > div > div {
    gap: 24px !important;
  }

  .apto-actions {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }

  .apto-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .apto-row-main {
    padding: 18px 16px;
  }

  .apto-thumb-wrap {
    margin: 0 16px 16px;
    height: 170px;
  }

  .planta-panel {
    height: 250px !important;
  }

  .planta-img-wrap img {
    padding: 18px !important;
  }

  .info-specs-grid {
    grid-template-columns: 1fr;
  }

  footer {
    padding: 28px 16px;
  }
}


/* ══════════════════════════════════════════════════════════
   V5 — SPA inmobiliaria premium final
══════════════════════════════════════════════════════════ */
html, body {
  height: 100%;
  overflow: hidden;
}
body.system-v5-body {
  background: linear-gradient(180deg, #f6f3ee 0%, #efebe4 100%);
  padding-left: 280px;
}
#overlay { z-index: 1200; }

.system-v5-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 280px;
  z-index: 150;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 22px;
  background: #090c11 !important;
  border-right: 1px solid rgba(255,255,255,0.06);
  box-shadow: 10px 0 30px rgba(0,0,0,0.18);
}
.system-v5-sidebar.scrolled { padding: 24px 22px !important; }
.sidebar-brand-v5 {
  display: flex;
  align-items: center;
  gap: 14px;
}
.sidebar-mark-v5 {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(37,99,235,0.10);
  color: #7db3ff;
  border: 1px solid rgba(37,99,235,0.24);
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
}
.system-v5-sidebar .navbar-logo {
  color: #fff;
  font-size: 30px;
  line-height: 0.96;
  letter-spacing: 0.02em;
}
.sidebar-subtitle-v5,
.sidebar-mini-label-v5,
.sidebar-contact-v5,
.sidebar-credits-v5 {
  color: rgba(255,255,255,0.58);
}
.sidebar-subtitle-v5,
.sidebar-mini-label-v5,
.sidebar-credits-v5 {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.sidebar-nav-v5 {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 28px 0 auto;
}
.sidebar-link-v5 {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.66);
  text-align: left;
  transition: var(--transition);
}
.sidebar-link-v5:hover,
.sidebar-link-v5.active {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.22);
  color: #fff;
}
.sidebar-footer-v5 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.sidebar-wa-v5 {
  justify-content: center;
  background: #0f7eff;
  border-color: #0f7eff;
}
.sidebar-wa-v5:hover { background: #0368d4; border-color: #0368d4; }
#sidebar-contact-line { color: #fff; font-size: 13px; margin-top: 6px; }

#app-shell-v5 {
  height: 100vh;
  position: relative;
}
.spa-section-v5 {
  display: none;
  height: 100%;
}
.spa-section-v5.active { display: block; }
.section-scroller-v5 {
  height: 100%;
  overflow: auto;
  padding: 24px;
}
.shell-panel-v5 {
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 20px;
  box-shadow: 0 14px 36px rgba(0,0,0,0.05);
  padding: 22px;
}
.shell-title-v5 {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--text);
  margin-bottom: 10px;
}
.shell-title-small-v5 {
  font-size: clamp(24px, 3.2vw, 34px);
}
.shell-copy-v5 {
  font-size: 14px;
  color: var(--text2);
  line-height: 1.85;
}
.two-col-shell-v5 {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 24px;
}

/* Inicio */
.section-scroller-home { padding: 0; }
.inicio-hero-v5 { position: relative; min-height: 100%; }
.inicio-bg-v5 { position: absolute; inset: 0; }
.inicio-bg-v5 #hero-img,
.inicio-bg-v5 #hero-video,
.inicio-bg-v5 #hero-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.inicio-overlay-v5 {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(18,15,12,0.18) 0%, rgba(18,15,12,0.76) 100%);
}
.inicio-top-actions-v5 {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 5;
  display: flex;
  gap: 10px;
}
.ghost-chip-v5 {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.88);
  color: var(--text);
  font-size: 11px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  transition: var(--transition);
}
.ghost-chip-v5:hover { background: #fff; }
.inicio-grid-v5 {
  position: relative;
  z-index: 4;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 390px);
  gap: 24px;
  align-items: end;
  padding: 96px 24px 28px;
}
.inicio-copy-card-v5,
.inicio-kpi-card-v5 {
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 22px 60px rgba(0,0,0,0.18);
  backdrop-filter: blur(18px);
}
.inicio-copy-card-v5 {
  max-width: 620px;
  padding: 24px 26px;
  background: rgba(17,14,11,0.40);
}
.inicio-kpi-card-v5 {
  padding: 22px;
  background: rgba(255,255,255,0.22);
}
.inicio-pills-v5 {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}
.overview-pill-v5 {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.84);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.inicio-copy-card-v5 .hero-eyebrow {
  margin-bottom: 12px;
  color: rgba(255,255,255,0.72);
}
.inicio-copy-card-v5 .hero-title {
  margin-bottom: 14px;
  font-size: clamp(44px, 7vw, 82px);
  line-height: 0.96;
}
.hero-subtitle-v5 {
  font-size: 14px;
  line-height: 1.75;
  text-transform: none;
  letter-spacing: 0.2px;
  color: rgba(255,255,255,0.80);
  margin-bottom: 26px;
}
.hero-actions-v5 {
  justify-content: flex-start;
}
.inicio-kpi-title-v5 {
  font-family: var(--font-display);
  font-size: 28px;
  color: #fff;
  margin-bottom: 8px;
}
.inicio-kpi-copy-v5 {
  font-size: 13px;
  color: rgba(255,255,255,0.82);
  line-height: 1.75;
}
.inicio-kpi-grid-v5 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
}
.kpi-card-v5 {
  background: rgba(255,255,255,0.84);
  border: 1px solid rgba(255,255,255,0.22);
  border-radius: 16px;
  padding: 15px;
}
.kpi-card-v5.success { border-color: rgba(22,163,74,0.20); }
.kpi-card-v5.wide { grid-column: 1 / -1; }
.kpi-label-v5 {
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.kpi-value-v5,
.kpi-price-v5 {
  font-family: var(--font-display);
  color: var(--text);
}
.kpi-value-v5 { font-size: 34px; line-height: 1; }
.kpi-price-v5 { font-size: 20px; }
.kpi-text-v5 { font-size: 14px; color: var(--text2); line-height: 1.65; }

/* Unidades overview */
.section-scroller-unidades { background: linear-gradient(180deg, #f6f3ee 0%, #efebe4 100%); }
.unidades-view { display: none; }
.unidades-view.active { display: block; }
.unidades-header-v5 {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 22px;
}
.unidades-kpis-v5,
.project-stats-v5 {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 12px;
}
.mini-kpi-v5,
.project-stat-v5 {
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 14px;
  padding: 15px 16px;
  box-shadow: 0 8px 22px rgba(0,0,0,0.04);
}
.mini-kpi-v5 span,
.project-stat-v5 span {
  display: block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
  margin-bottom: 8px;
}
.mini-kpi-v5 strong,
.project-stat-v5 strong {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1;
  color: var(--text);
}
.unidades-layout-v5 {
  display: grid;
  grid-template-columns: minmax(340px, 480px) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}
.unidades-media-column-v5 {
  position: sticky;
  top: 24px;
}
.building-render-panel-v5 {
  aspect-ratio: 1 / 1.12;
  background: linear-gradient(180deg, #f0ece6 0%, #e8e3db 100%);
}
.inventory-legend-v5 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.unidades-content-column-v5 {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.project-summary-head-v5 { margin-bottom: 18px; }
.project-details-v5 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--border);
}
.detail-row-v5 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.detail-row-v5 span {
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--text3);
}
.detail-row-v5 strong {
  font-size: 14px;
  color: var(--text);
  text-align: right;
}
.inventory-list-head-v5 {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.inventory-head-note-v5 {
  max-width: 220px;
  text-align: right;
  font-size: 12px;
  color: var(--text2);
  line-height: 1.7;
}

/* Workspace */
.workspace-layout-v5 {
  display: grid;
  grid-template-columns: minmax(320px, 420px) minmax(0, 1fr);
  gap: 24px;
}
.workspace-head-v5 {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.workspace-back-btn-v5 { padding: 10px 14px; }
.plantas-info-body-v5.empty {
  display: grid;
  place-items: center;
  min-height: 360px;
}
.empty-workspace-v5 {
  text-align: center;
  max-width: 300px;
}
.empty-workspace-title-v5 {
  font-family: var(--font-display);
  font-size: 28px;
  margin-bottom: 8px;
}
.workspace-canvas-head-v5 {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.plantas-breadcrumb-v5 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text2);
}
.workspace-toolbar-v5 { display: flex; gap: 10px; flex-wrap: wrap; }
.workspace-canvas-stage-v5 {
  position: relative;
  min-height: calc(100vh - 210px);
  border: 1px solid rgba(0,0,0,0.05);
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(180deg, #f5f1ea 0%, #ece7df 100%);
}
.workspace-view-v5 {
  display: none;
  height: 100%;
}
.workspace-view-v5.active { display: block; }
.planta-panel-inline-v5,
.pano-inline-stage-v5 {
  height: 100%;
}
.inline-info-panel-v5 {
  padding: 0;
  background: transparent;
}
.inline-info-panel-v5 .info-cta {
  display: none;
}
.inline-info-panel-v5 .info-spec {
  border-radius: 14px;
}
.pano-inline-stage-v5 {
  position: relative;
  background: #171310;
}
.pano-inline-header-v5 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  background: linear-gradient(to bottom, rgba(12,10,8,0.75), transparent);
}
.pano-controls-inline-v5 { bottom: 18px; right: 18px; }
.pano-compass-inline-v5 { top: 18px; right: 18px; }
.hs-btn-info {
  background: rgba(184,147,90,0.15);
}
.hs-btn-nav {
  background: rgba(37,99,235,0.12);
  border-color: rgba(37,99,235,0.45);
  color: #2563eb;
}
.hs-btn-nav::before { border-color: rgba(37,99,235,0.18); }
.hs-btn-nav:hover { background: #2563eb; color: #fff; }

/* Galería */
.gallery-shell-v5 {
  min-height: calc(100vh - 48px);
}
.gallery-head-v5 { margin-bottom: 20px; }
.gallery-filters-v5 {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.gallery-filter-chip {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border2);
  background: var(--white);
  color: var(--text2);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  transition: var(--transition);
}
.gallery-filter-chip:hover,
.gallery-filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.gallery-grid-v5 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.gallery-card-v5 {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.05);
  box-shadow: 0 10px 24px rgba(0,0,0,0.05);
  min-height: 220px;
}
.gallery-card-v5 img {
  width: 100%;
  height: 100%;
  min-height: 220px;
  object-fit: cover;
  display: block;
}
.gallery-card-meta-v5 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(12,10,8,0.86), transparent);
}
.gallery-card-type-v5 {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
.gallery-card-title-v5 {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}
.gallery-empty-v5 {
  grid-column: 1 / -1;
  padding: 40px;
  border: 1px dashed var(--border2);
  border-radius: 14px;
  text-align: center;
  color: var(--text3);
  font-size: 13px;
}

/* Ubicación / contacto */
.map-frame-v5 {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  height: 100%;
  min-height: 460px;
  background: var(--bg2);
  position: relative;
}
.map-placeholder-v5 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.map-placeholder-v5 p {
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text3);
}
.pois-list-shell-v5 { margin-bottom: 24px; }
.poi-row-v5 {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--bg2);
  border-radius: 10px;
  margin-bottom: 10px;
}
.poi-icon-v5 {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gold-dim);
  border: 1px solid var(--gold-border);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.poi-name-v5 { font-size: 13px; font-weight: 500; color: var(--text); }
.poi-distance-v5, .poi-type-v5 { font-size: 11px; color: var(--text3); }
.contact-list-shell-v5 {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 24px 0;
  border-top: 1px solid var(--border);
}
.form-shell-v5 { max-width: none; }
.form-title-v5 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 300;
  margin-bottom: 24px;
  color: var(--text);
}
.form-grid-v5 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.form-row-v5 { margin-bottom: 14px; }
.input-shell-v5 {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border2);
  border-radius: 8px;
  font-family: var(--font-ui);
  font-size: 14px;
  outline: none;
  transition: border-color .2s;
  background: var(--bg);
  color: var(--text);
}
.input-shell-v5:focus { border-color: var(--gold); }
.submit-btn-v5 {
  width: 100%;
  justify-content: center;
  font-size: 13px;
  padding: 15px;
}
.form-note-v5 {
  font-size: 11px;
  color: var(--text3);
  text-align: center;
  margin-top: 10px;
}
.shell-cta-row-v5 {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 1180px) {
  body.system-v5-body { padding-left: 0; }
  .system-v5-sidebar {
    width: 100%;
    height: auto;
    inset: 0 0 auto 0;
    flex-direction: row;
    align-items: center;
    gap: 16px;
    padding: 14px 18px;
  }
  .sidebar-subtitle-v5,
  .sidebar-mini-label-v5,
  .sidebar-credits-v5,
  .sidebar-contact-v5 {
    display: none;
  }
  .sidebar-nav-v5 {
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 auto 0 0;
    gap: 6px;
  }
  .sidebar-link-v5 {
    min-height: 34px;
    padding: 0 10px;
    font-size: 10px;
  }
  .sidebar-footer-v5 { margin-left: auto; }
  .sidebar-wa-v5 { width: auto; }
  #app-shell-v5 { padding-top: 86px; }
  .inicio-grid-v5,
  .unidades-header-v5,
  .unidades-layout-v5,
  .workspace-layout-v5,
  .two-col-shell-v5 { grid-template-columns: 1fr; }
  .unidades-kpis-v5,
  .project-stats-v5 { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
  .unidades-media-column-v5 { position: static; }
  .building-render-panel-v5 { aspect-ratio: 16 / 9; }
}
@media (max-width: 768px) {
  .sidebar-nav-v5 { display: none !important; }
  .inicio-grid-v5 { padding: 96px 18px 24px; }
  .inicio-top-actions-v5 { top: 16px; right: 16px; flex-wrap: wrap; }
  .section-scroller-v5 { padding: 16px; }
  .shell-panel-v5 { padding: 18px; }
  .workspace-canvas-stage-v5 { min-height: 480px; }
  .pano-inline-header-v5,
  .workspace-head-v5,
  .workspace-canvas-head-v5,
  .inventory-list-head-v5 { flex-direction: column; }
  .form-grid-v5 { grid-template-columns: 1fr; }
  .gallery-grid-v5 { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 480px) {
  .sidebar-brand-v5 { gap: 10px; }
  .sidebar-mark-v5 { width: 44px; height: 44px; font-size: 24px; }
  .system-v5-sidebar .navbar-logo { font-size: 22px; }
  .inicio-copy-card-v5,
  .inicio-kpi-card-v5 { padding: 18px; }
  .inicio-copy-card-v5 .hero-title { font-size: clamp(36px, 10vw, 52px); }
  .hero-actions-v5 { flex-direction: column; align-items: stretch; }
  .hero-actions-v5 .btn { width: 100%; justify-content: center; }
  .inicio-kpi-grid-v5,
  .unidades-kpis-v5,
  .project-stats-v5,
  .info-specs-grid { grid-template-columns: 1fr; }
  .detail-row-v5,
  .detail-row-v5 strong,
  .poi-row-v5 { align-items: flex-start; }
  .detail-row-v5 { flex-direction: column; }
  .shell-cta-row-v5,
  .inventory-legend-v5 { flex-direction: column; }
  .shell-cta-row-v5 .btn,
  .sidebar-wa-v5 { width: 100%; justify-content: center; }
  .gallery-grid-v5 { grid-template-columns: 1fr; }
}
/* ══════════════════════════════════════════════════════════
   V5.1 — AJUSTES ESTÉTICOS INICIO
   - Reduce la altura visual de la tarjeta izquierda
   - Agrega icono de WhatsApp al botón lateral
══════════════════════════════════════════════════════════ */

/* Desktop / tablet: compactar la tarjeta izquierda del inicio */
.inicio-copy-card-v5 {
  max-width: 560px;
  padding: 22px 24px;
}

.inicio-copy-card-v5 .hero-title {
  font-size: clamp(34px, 4.3vw, 60px);
  line-height: 0.96;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
  white-space: nowrap;
}

.inicio-copy-card-v5 .hero-eyebrow {
  margin-bottom: 10px;
}

.hero-subtitle-v5 {
  font-size: 13px;
  line-height: 1.65;
  margin-bottom: 20px;
  max-width: 48ch;
}

.hero-actions-v5 .btn {
  min-height: 40px;
}

/* Botón WhatsApp con icono sin tocar HTML */
.sidebar-wa-v5 {
  gap: 10px;
}

.sidebar-wa-v5::before {
  content: '';
  display: inline-block;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='white' d='M27.1 4.9A15.8 15.8 0 0 0 2.9 24.8L1 31l6.4-1.7a15.8 15.8 0 0 0 7.5 1.9h.1A15.9 15.9 0 0 0 27.1 4.9Zm-12 23.6h-.1a13.1 13.1 0 0 1-6.6-1.8l-.5-.3-3.8 1 1-3.7-.3-.5a13.1 13.1 0 1 1 10.3 5.3Zm7.2-9.8c-.4-.2-2.4-1.2-2.8-1.3-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.2 1.6-.2.3-.5.3-.9.1-.4-.2-1.8-.7-3.3-2.1-1.2-1.1-2-2.4-2.2-2.8-.2-.4 0-.6.2-.8l.6-.7c.2-.2.3-.4.4-.6.1-.2.1-.5 0-.7-.1-.2-.9-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.8c-.3 0-.7.1-1 .5-.4.4-1.4 1.4-1.4 3.3 0 1.9 1.4 3.8 1.6 4 .2.3 2.8 4.3 6.9 6 .9.4 1.6.6 2.2.8.9.3 1.8.2 2.4.1.7-.1 2.4-1 2.7-1.9.3-.9.3-1.7.2-1.9-.1-.2-.4-.3-.8-.5Z'/></svg>");
}

/* En pantallas más pequeñas permitimos dos líneas si hace falta */
@media (max-width: 900px) {
  .inicio-copy-card-v5 {
    max-width: 100%;
  }

  .inicio-copy-card-v5 .hero-title {
    font-size: clamp(34px, 7vw, 54px);
    white-space: normal;
  }

  .hero-subtitle-v5 {
    max-width: none;
  }
}

@media (max-width: 480px) {
  .inicio-copy-card-v5 {
    padding: 16px 18px;
  }

  .inicio-copy-card-v5 .hero-title {
    font-size: clamp(30px, 9.4vw, 44px);
    line-height: 1;
  }

  .hero-subtitle-v5 {
    font-size: 12px;
    margin-bottom: 16px;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.2 — AJUSTES ESTÉTICOS / UNIDADES
   - Una sola ficha KPI en esquina superior derecha
   - Se elimina la ficha duplicada del proyecto
   - Más protagonismo para la imagen del edificio
   - 'Vista general' queda como único título en la columna izquierda
══════════════════════════════════════════════════════════ */

/* Header de Unidades: convertir la fila superior en la ficha principal */
.unidades-header-v5 {
  grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
  align-items: start;
}

.unidades-kpis-v5 {
  grid-template-columns: repeat(3, minmax(110px, 1fr));
  gap: 10px;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(0,0,0,0.06);
  border-radius: 18px;
  padding: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.04);
}

.mini-kpi-v5 {
  padding: 12px 14px;
  border-radius: 12px;
  min-height: 84px;
}

.mini-kpi-v5 span {
  margin-bottom: 6px;
}

.mini-kpi-v5 strong {
  font-size: 28px;
}

/* Se elimina la tarjeta duplicada de ficha del proyecto */
.project-summary-v5 {
  display: none !important;
}

/* Dar más presencia al edificio y al selector */
.unidades-layout-v5 {
  grid-template-columns: minmax(420px, 560px) minmax(0, 1fr);
  align-items: start;
}

.unidades-media-column-v5 {
  top: 18px;
}

.building-render-panel-v5 {
  aspect-ratio: 1 / 1.18;
}

/* El título visible queda solo en el section-label: "Vista general" */
.unidades-media-column-v5 .shell-title-small-v5 {
  display: none;
}

/* El inventario gana más peso visual */
.inventory-list-shell-v5 {
  padding-top: 18px;
}

.inventory-list-head-v5 {
  margin-bottom: 18px;
}

.inventory-head-note-v5 {
  max-width: 240px;
}

@media (max-width: 1180px) {
  .unidades-header-v5,
  .unidades-layout-v5 {
    grid-template-columns: 1fr;
  }

  .unidades-kpis-v5 {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .building-render-panel-v5 {
    aspect-ratio: 16 / 9;
  }
}

@media (max-width: 768px) {
  .unidades-kpis-v5 {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .unidades-kpis-v5 {
    grid-template-columns: 1fr;
  }

  .mini-kpi-v5 {
    min-height: auto;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.3 — AJUSTES UNIDADES / WORKSPACE
   - KPIs en una sola línea superior
   - Se elimina el subtítulo redundante del workspace
══════════════════════════════════════════════════════════ */

/* Compactar cabecera de UNIDADES para evitar vacío bajo el título */
.unidades-header-v5 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(620px, 760px);
  align-items: start;
  gap: 14px;
  margin-bottom: 18px;
}

.unidades-header-v5 > div:first-child {
  max-width: 520px;
}

.unidades-kpis-v5 {
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 8px;
  align-items: stretch;
}

.mini-kpi-v5 {
  min-height: 72px;
  padding: 10px 12px;
}

.mini-kpi-v5 span {
  margin-bottom: 4px;
}

.mini-kpi-v5 strong {
  font-size: 26px;
}

/* El subtítulo del workspace es redundante */
#workspace-subcopy {
  display: none !important;
}

@media (max-width: 1360px) {
  .unidades-header-v5 {
    grid-template-columns: minmax(0, 1fr) minmax(560px, 700px);
  }

  .unidades-kpis-v5 {
    grid-template-columns: repeat(6, minmax(84px, 1fr));
  }

  .mini-kpi-v5 strong {
    font-size: 24px;
  }
}

@media (max-width: 1180px) {
  .unidades-header-v5 {
    grid-template-columns: 1fr;
  }

  .unidades-kpis-v5 {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }
}

@media (max-width: 768px) {
  .unidades-kpis-v5 {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}

@media (max-width: 480px) {
  .unidades-kpis-v5 {
    grid-template-columns: 1fr;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.4 — RAIL VERTICAL DE PISOS + UN SOLO PISO ACTIVO
   Pegar al final del main.css actual de la V5
══════════════════════════════════════════════════════════ */

/* La columna del edificio ahora aloja render + rail vertical */
.unidades-media-column-v5 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  column-gap: 14px;
  row-gap: 12px;
  align-items: start;
}

.unidades-media-column-v5 > .section-label,
.unidades-media-column-v5 > .shell-title-small-v5 {
  grid-column: 1 / -1;
}

.unidades-media-column-v5 .building-render-panel-v5,
.unidades-media-column-v5 .inventory-legend-v5 {
  grid-column: 1;
}

.floor-rail-v5 {
  grid-column: 2;
  grid-row: 3 / span 2;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-self: start;
  position: sticky;
  top: 22px;
}

.floor-rail-btn-v5 {
  min-height: 58px;
  padding: 8px 6px;
  border-radius: 14px;
  border: 1px solid rgba(0,0,0,0.08);
  background: rgba(255,255,255,0.92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  transition: var(--transition);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
}

.floor-rail-btn-v5:hover {
  border-color: var(--gold-border);
  background: var(--gold-dim);
}

.floor-rail-btn-v5.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
  box-shadow: 0 10px 24px rgba(184,147,90,0.18);
}

.floor-rail-num-v5 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1;
}

.floor-rail-label-v5 {
  font-size: 9px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  opacity: .86;
}

.floor-rail-btn-v5.has-available:not(.active) {
  border-color: rgba(22,163,74,0.20);
}

/* Solo el piso activo se muestra dentro del inventario */
.piso-grupo-header,
.apto-row {
  transition: opacity .18s ease, transform .18s ease;
}

.floor-hidden-v5 {
  display: none !important;
}

.inventory-list-shell-v5 {
  min-height: 100%;
}

.inventory-list-head-v5 {
  align-items: end;
}

.inventory-head-note-v5 {
  max-width: 180px;
}

@media (max-width: 1180px) {
  .unidades-media-column-v5 {
    grid-template-columns: minmax(0, 1fr);
  }

  .floor-rail-v5 {
    grid-column: 1;
    grid-row: auto;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-top: 2px;
  }

  .floor-rail-btn-v5 {
    min-height: 48px;
    min-width: 62px;
    padding: 8px 10px;
  }

  .floor-rail-num-v5 {
    font-size: 20px;
  }
}

@media (max-width: 768px) {
  .floor-rail-v5 {
    gap: 6px;
  }

  .floor-rail-btn-v5 {
    min-width: 56px;
    min-height: 44px;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.5 — FIX PANORAMA INLINE DESPLAZADO
   - Fuerza el stage 360 a ocupar el canvas correctamente
   - Evita que el viewer quede renderizado fuera del contenedor
══════════════════════════════════════════════════════════ */

.workspace-canvas-stage-v5 {
  overflow: hidden;
}

.workspace-view-v5,
.workspace-view-v5.active,
.pano-inline-stage-v5 {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
}

/* El contenedor de Pannellum debe vivir dentro del stage, no empujarlo */
#pano-view {
  overflow: hidden;
}

#pano-view #pannellum-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
}

/* El header se superpone sin sacar el panorama del flujo visual */
.pano-inline-header-v5 {
  pointer-events: none;
}

.pano-inline-header-v5 .pano-room-tabs,
.pano-inline-header-v5 button,
.pano-inline-header-v5 .pano-tab {
  pointer-events: auto;
}

/* Asegurar que el canvas interno no se desplace visualmente */
#pano-view .pnlm-container,
#pano-view .pnlm-render-container,
#pano-view .pnlm-ui,
#pano-view canvas {
  top: 0 !important;
  left: 0 !important;
}

/* El loading y los controles siempre dentro del stage */
#pano-view .pano-loading,
#pano-view .pano-controls-inline-v5,
#pano-view .pano-compass-inline-v5 {
  position: absolute;
}
/* ══════════════════════════════════════════════════════════
   V5.7 — HOTSPOTS PREMIUM INMOBILIARIO
   - Más presencia visual
   - Badge contextual (360 / INFO)
   - Mejor microinteracción al hover
══════════════════════════════════════════════════════════ */

.planta-hotspot {
  z-index: 22;
}

.hs-btn {
  width: 46px;
  height: 46px;
  border-width: 2px;
  box-shadow: 0 14px 34px rgba(0,0,0,0.18);
  backdrop-filter: blur(8px);
  transition: transform .22s ease, background .22s ease, color .22s ease, box-shadow .22s ease;
}

.hs-btn::before {
  inset: -10px;
  border-width: 1.5px;
}

.hs-btn::after {
  content: '';
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  border: 1px solid transparent;
  opacity: .38;
  transform: scale(.96);
  transition: transform .28s ease, opacity .28s ease;
}

.planta-hotspot:hover .hs-btn::before {
  animation-duration: 1.5s;
}

.planta-hotspot:hover .hs-btn::after {
  transform: scale(1.08);
  opacity: .72;
}

.hs-btn-info {
  background: linear-gradient(180deg, rgba(184,147,90,0.26), rgba(184,147,90,0.14));
  border-color: rgba(184,147,90,0.92);
  color: var(--gold-dark);
}

.hs-btn-info::before,
.hs-btn-info::after {
  border-color: rgba(184,147,90,0.30);
}

.hs-btn-info:hover {
  background: linear-gradient(180deg, rgba(184,147,90,0.95), rgba(160,121,63,0.95));
  color: #fff;
  transform: scale(1.08);
}

.hs-btn-nav {
  background: linear-gradient(180deg, rgba(15,126,255,0.24), rgba(15,126,255,0.14));
  border-color: rgba(15,126,255,0.92);
  color: #0f7eff;
}

.hs-btn-nav::before,
.hs-btn-nav::after {
  border-color: rgba(15,126,255,0.32);
}

.hs-btn-nav:hover {
  background: linear-gradient(180deg, rgba(15,126,255,1), rgba(3,104,212,1));
  color: #fff;
  transform: scale(1.1);
}

.hs-btn svg {
  width: 17px;
  height: 17px;
}

.hs-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  bottom: calc(100% + 13px);
  left: 50%;
  transform: translateX(-50%);
  max-width: 190px;
  min-width: 120px;
  padding: 9px 12px 10px;
  border-radius: 12px;
  background: rgba(17,14,11,0.88);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 14px 36px rgba(0,0,0,0.22);
  backdrop-filter: blur(12px);
  line-height: 1.25;
  text-align: center;
}

.hs-label-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 18px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  font-weight: 700;
}

.hotspot-info .hs-label-badge {
  background: rgba(184,147,90,0.20);
  color: #f1d4a5;
  border: 1px solid rgba(184,147,90,0.30);
}

.hotspot-nav .hs-label-badge {
  background: rgba(15,126,255,0.18);
  color: #9fceff;
  border: 1px solid rgba(15,126,255,0.28);
}

.hs-label-title {
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: #fff;
}

.planta-hotspot.hotspot-nav .hs-label {
  background: rgba(10,33,61,0.90);
}

@media (max-width: 768px) {
  .hs-btn {
    width: 40px;
    height: 40px;
  }

  .hs-label {
    min-width: 108px;
    max-width: 148px;
    padding: 8px 10px 9px;
  }

  .hs-label-title {
    font-size: 9px;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.8 — HOTSPOTS INFO MÁS VISIBLES + TEXTO 360 MÁS LEGIBLE
   - Los hotspots de info pasan a sólido con borde fuerte
   - El bloque de texto sobre panorama gana una tarjeta oscura real
══════════════════════════════════════════════════════════ */

/* ── HOTSPOTS INFO: más notorios ───────────────────────── */
.hs-btn-info {
  background: linear-gradient(180deg, rgba(184,147,90,1), rgba(160,121,63,1));
  border: 2px solid rgba(255,255,255,0.22);
  color: #fff;
  box-shadow:
    0 12px 28px rgba(184,147,90,0.30),
    0 0 0 1px rgba(184,147,90,0.55) inset;
}

.hs-btn-info::before,
.hs-btn-info::after {
  border-color: rgba(184,147,90,0.42);
}

.hs-btn-info:hover {
  background: linear-gradient(180deg, rgba(199,160,100,1), rgba(170,129,70,1));
  color: #fff;
  transform: scale(1.10);
  box-shadow:
    0 16px 34px rgba(184,147,90,0.36),
    0 0 0 1px rgba(255,255,255,0.16) inset;
}

/* Que el badge INFO también tenga más presencia */
.hotspot-info .hs-label-badge {
  background: rgba(184,147,90,0.28);
  color: #fff2d5;
  border: 1px solid rgba(184,147,90,0.42);
}

/* ── PANORAMA: texto realmente legible ─────────────────── */
.pano-inline-header-v5 {
  padding: 18px 20px;
  background: linear-gradient(to bottom, rgba(6,7,10,0.88), rgba(6,7,10,0.58) 62%, rgba(6,7,10,0.08) 100%);
}

/* Tarjeta fuerte para el bloque de texto, no solo blur suave */
.pano-inline-header-v5 > div:first-child {
  max-width: 380px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8,9,12,0.68);
  border: 1px solid rgba(255,255,255,0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 18px 42px rgba(0,0,0,0.28);
}

.pano-inline-header-v5 .section-label {
  color: rgba(212,175,130,0.98);
  text-shadow: none;
}

#pano-room-name {
  color: #ffffff;
  font-size: 28px;
  line-height: 1.05;
  text-shadow: none;
}

#pano-room-desc {
  color: rgba(255,255,255,0.92);
  font-size: 13px;
  line-height: 1.6;
  text-shadow: none;
}

/* Tabs más legibles sobre panoramas oscuros */
.pano-room-tabs {
  padding: 8px;
  border-radius: 14px;
  background: rgba(8,9,12,0.58);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 34px rgba(0,0,0,0.22);
}

.pano-tab {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.12);
}

.pano-tab:hover,
.pano-tab.active {
  background: rgba(184,147,90,0.26);
  color: #fff;
  border-color: rgba(184,147,90,0.42);
}

@media (max-width: 768px) {
  .pano-inline-header-v5 > div:first-child {
    max-width: none;
  }

  #pano-room-name {
    font-size: 24px;
  }
}
/* ══════════════════════════════════════════════════════════
   V5.9 — PANORAMA CLEAN HEADER
   - Elimina la sombra/degradado extra detrás del bloque superior
   - Oculta la brújula del panorama
══════════════════════════════════════════════════════════ */

/* Ya los bloques son sólidos; quitamos el velo degradado amplio */
.pano-inline-header-v5 {
  background: transparent !important;
  padding: 16px 18px;
}

/* Mantenemos las tarjetas sólidas, pero sin depender de una sombra global */
.pano-inline-header-v5 > div:first-child {
  background: rgba(8,9,12,0.78);
}

.pano-room-tabs {
  background: rgba(8,9,12,0.72);
}

/* La brújula deja de aportar y puede estorbar con los tabs */
.pano-compass-inline-v5,
.pano-compass {
  display: none !important;
}
/* ══════════════════════════════════════════════════════════
   V6.0 — GALERÍA MEJORADA
   - Lightbox con navegación y cierre
   - Grid adaptativo por proporción de imagen
   - Sin panoramas dentro de la galería
══════════════════════════════════════════════════════════ */

/* Grid adaptativo tipo masonry */
.gallery-grid-v5 {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  grid-auto-rows: 8px;
  gap: 16px;
  align-items: start;
}

.gallery-card-v5 {
  min-height: 0;
  height: auto;
  overflow: hidden;
  cursor: pointer;
  transition: transform .24s ease, box-shadow .24s ease, border-color .24s ease;
}

.gallery-card-v5:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
  border-color: rgba(184,147,90,0.18);
}

.gallery-card-v5 img {
  width: 100%;
  height: auto;
  min-height: 0;
  object-fit: cover;
  display: block;
}

.gallery-card-meta-v5 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 14px;
  background: linear-gradient(to top, rgba(12,10,8,0.88), rgba(12,10,8,0.10));
}

.gallery-card-type-v5 {
  display: inline-flex;
  margin-bottom: 6px;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.74);
}

.gallery-card-title-v5 {
  font-size: 13px;
  color: #fff;
  font-weight: 500;
}

/* Lightbox */
.gallery-lightbox-v6 {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6,7,10,0.84);
  backdrop-filter: blur(12px);
  padding: 26px;
}

.gallery-lightbox-v6.open {
  display: flex;
}

.gallery-lightbox-frame-v6 {
  position: relative;
  width: min(1200px, calc(100vw - 80px));
  height: min(88vh, 900px);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(15,15,18,0.92);
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 30px 80px rgba(0,0,0,0.28);
}

.gallery-lightbox-img-v6 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #0f1014;
}

.gallery-lightbox-meta-v6 {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(8,9,12,0.68);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
}

.gallery-lightbox-title-v6 {
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.gallery-lightbox-type-v6 {
  color: rgba(255,255,255,0.68);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.gallery-lightbox-count-v6 {
  color: rgba(255,255,255,0.62);
  font-size: 12px;
}

.gallery-lightbox-close-v6,
.gallery-lightbox-prev-v6,
.gallery-lightbox-next-v6 {
  position: absolute;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(8,9,12,0.68);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.gallery-lightbox-close-v6:hover,
.gallery-lightbox-prev-v6:hover,
.gallery-lightbox-next-v6:hover {
  background: rgba(184,147,90,0.28);
  border-color: rgba(184,147,90,0.38);
}

.gallery-lightbox-close-v6 { top: 16px; right: 16px; }
.gallery-lightbox-prev-v6 { left: 16px; top: 50%; transform: translateY(-50%); }
.gallery-lightbox-next-v6 { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 768px) {
  .gallery-lightbox-v6 { padding: 14px; }
  .gallery-lightbox-frame-v6 {
    width: calc(100vw - 28px);
    height: calc(100vh - 28px);
    border-radius: 16px;
  }
  .gallery-lightbox-meta-v6 {
    left: 12px;
    right: 12px;
    bottom: 12px;
    flex-direction: column;
    align-items: flex-start;
  }
}
/* ══════════════════════════════════════════════════════════
   V6.1 — GALERÍA EDITORIAL + LIGHTBOX SIN CAJA RÍGIDA
   - Grid tipo editorial como referencia visual
   - Hover más elegante
   - Lightbox que se adapta a la proporción real de la imagen
══════════════════════════════════════════════════════════ */

/* ── GRID EDITORIAL ───────────────────────────────────── */
.gallery-grid-v5 {
  display: grid !important;
  grid-template-columns: minmax(280px, 1.15fr) repeat(2, minmax(220px, 1fr));
  grid-auto-rows: 180px;
  gap: 16px;
  align-items: start;
}

.gallery-card-v5 {
  position: relative;
  min-height: 0 !important;
  height: 100%;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.gallery-card-v5 img {
  width: 100%;
  height: 100%;
  min-height: 0 !important;
  object-fit: cover;
  display: block;
  transition: transform .55s ease;
}

.gallery-card-v5:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(0,0,0,0.10);
  border-color: rgba(184,147,90,0.22);
}

.gallery-card-v5:hover img {
  transform: scale(1.035);
}

.gallery-card-v5::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,0.34), transparent 42%);
  opacity: .9;
  transition: opacity .28s ease;
  pointer-events: none;
}

.gallery-card-v5:hover::after {
  opacity: 1;
}

.gallery-card-meta-v5 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(12,10,8,0.82), rgba(12,10,8,0.05));
  z-index: 2;
}

/* Layout por índice como la referencia */
.gallery-card-v5.gallery-feature-top {
  grid-column: 1;
  grid-row: span 1;
}

.gallery-card-v5.gallery-feature-tall {
  grid-column: 1;
  grid-row: span 2;
}

.gallery-card-v5.gallery-standard {
  grid-row: span 1;
}

/* Si solo hay una imagen, que sea protagonista */
.gallery-grid-v5:has(.gallery-card-v5:only-child) {
  grid-template-columns: minmax(320px, 540px);
}
.gallery-card-v5:only-child {
  grid-column: 1;
  grid-row: span 2;
}

/* ── LIGHTBOX MÁS LIMPIO ──────────────────────────────── */
.gallery-lightbox-v6 {
  background: rgba(6,7,10,0.78);
  backdrop-filter: blur(10px);
}

.gallery-lightbox-frame-v6 {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 120px);
  max-height: calc(100vh - 80px);
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  overflow: visible !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img-v6 {
  width: auto !important;
  height: auto !important;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 110px);
  object-fit: contain !important;
  background: transparent !important;
  border-radius: 2px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.34);
}

.gallery-lightbox-meta-v6 {
  left: 50% !important;
  right: auto !important;
  bottom: 10px !important;
  transform: translateX(-50%);
  width: auto;
  max-width: min(82vw, 520px);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(8,9,12,0.58);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
}

.gallery-lightbox-title-v6 {
  font-size: 14px;
}

.gallery-lightbox-type-v6,
.gallery-lightbox-count-v6 {
  font-size: 10px;
}

.gallery-lightbox-close-v6,
.gallery-lightbox-prev-v6,
.gallery-lightbox-next-v6 {
  background: rgba(8,9,12,0.58);
}

.gallery-lightbox-close-v6 { top: -6px; right: -6px; }
.gallery-lightbox-prev-v6 { left: -54px; }
.gallery-lightbox-next-v6 { right: -54px; }

@media (max-width: 1180px) {
  .gallery-grid-v5 {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .gallery-card-v5.gallery-feature-top,
  .gallery-card-v5.gallery-feature-tall {
    grid-column: auto;
    grid-row: span 1;
  }
}

@media (max-width: 768px) {
  .gallery-grid-v5 {
    grid-template-columns: 1fr;
    grid-auto-rows: 240px;
  }

  .gallery-lightbox-frame-v6 {
    max-width: calc(100vw - 28px);
    max-height: calc(100vh - 28px);
  }

  .gallery-lightbox-img-v6 {
    max-width: calc(100vw - 44px);
    max-height: calc(100vh - 96px);
  }

  .gallery-lightbox-prev-v6 {
    left: 10px;
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .gallery-lightbox-next-v6 {
    right: 10px;
    top: auto;
    bottom: 16px;
    transform: none;
  }

  .gallery-lightbox-close-v6 {
    top: 10px;
    right: 10px;
  }

  .gallery-lightbox-meta-v6 {
    bottom: 16px !important;
    border-radius: 14px;
    max-width: calc(100vw - 120px);
  }
}
/* ══════════════════════════════════════════════════════════
   V6.2 — GALERÍA MASONRY / TETRIS (GRID VIEJO + LIGHTBOX NUEVO)
   - Recupera el apilado por columnas sin recortar imágenes
   - Mantiene el lightbox nuevo que ya aprobaste
══════════════════════════════════════════════════════════ */

/* Volvemos a columnas tipo masonry */
.gallery-grid-v5 {
  display: block !important;
  columns: 3;
  column-gap: 20px;
}

.gallery-card-v5 {
  display: inline-block !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0 0 20px !important;
  break-inside: avoid;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transform: none;
}

/* Anular el layout editorial previo */
.gallery-card-v5.gallery-feature-top,
.gallery-card-v5.gallery-feature-tall,
.gallery-card-v5.gallery-standard,
.gallery-card-v5:only-child {
  grid-column: auto !important;
  grid-row: auto !important;
}

.gallery-card-v5 img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block;
}

.gallery-card-v5::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(12,10,8,0.34), transparent 42%);
  opacity: .86;
  transition: opacity .28s ease;
  pointer-events: none;
}

.gallery-card-v5:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 16px 36px rgba(0,0,0,0.08);
}

.gallery-card-v5:hover img {
  transform: scale(1.02);
}

.gallery-card-meta-v5 {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px;
  background: linear-gradient(to top, rgba(12,10,8,0.82), rgba(12,10,8,0.05));
  z-index: 2;
}

@media (max-width: 900px) {
  .gallery-grid-v5 {
    columns: 2;
  }
}

@media (max-width: 600px) {
  .gallery-grid-v5 {
    columns: 1;
  }
}
/* ══════════════════════════════════════════════════════════
   V6.3 — REFRESH PREMIUM DE CONTACTO
   - Cierre comercial con más carácter
   - Bloque izquierdo más emocional/comercial
   - Formulario con más presencia visual
══════════════════════════════════════════════════════════ */

/* Layout general */
#s-contacto .two-col-shell-v5 {
  align-items: stretch;
}

#s-contacto .details-panel-v5,
#s-contacto .form-shell-v5 {
  min-height: calc(100vh - 48px);
}

/* Columna izquierda: cierre comercial */
#s-contacto .details-panel-v5 {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at top left, rgba(15,126,255,0.16), transparent 30%),
    radial-gradient(circle at bottom right, rgba(184,147,90,0.16), transparent 34%),
    linear-gradient(180deg, #0c1016 0%, #101723 100%);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.18);
}

#s-contacto .details-panel-v5::before {
  content: '';
  position: absolute;
  inset: auto -40px -40px auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 62%);
  pointer-events: none;
}

#s-contacto .section-label {
  color: rgba(212,175,130,0.92);
}

#s-contacto .contacto-titulo {
  color: #fff;
  max-width: 14ch;
  line-height: 1.02;
  margin-bottom: 14px;
}

#s-contacto .shell-copy-v5 {
  color: rgba(255,255,255,0.78);
  max-width: 52ch;
}

/* Bloque comercial inyectado */
.contact-highlights-v6 {
  margin: 22px 0 26px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.contact-highlights-badge-v6 {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15,126,255,0.16);
  border: 1px solid rgba(15,126,255,0.24);
  color: #b8d9ff;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.contact-highlights-list-v6 {
  display: grid;
  gap: 10px;
}

.contact-highlight-item-v6 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
}

.contact-highlight-item-v6::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(180deg, #caa56e, #b8935a);
  box-shadow: 0 0 0 5px rgba(184,147,90,0.12);
  flex-shrink: 0;
}

/* Datos de contacto convertidos en tarjetas */
#s-contacto .contact-list-shell-v5 {
  border-top: none;
  margin: 6px 0 28px;
  gap: 10px;
}

#s-contacto .contact-list-shell-v5 .detail-row-v5 {
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  background: rgba(255,255,255,0.05);
}

#s-contacto .contact-list-shell-v5 .detail-row-v5 span {
  color: rgba(255,255,255,0.54);
}

#s-contacto .contact-list-shell-v5 .detail-row-v5 strong {
  color: #fff;
}

/* CTA más premium y más integrado */
#s-contacto .shell-cta-row-v5 {
  margin-top: auto;
  padding-top: 8px;
}

#s-contacto .shell-cta-row-v5 .btn-ghost {
  border-color: rgba(255,255,255,0.16);
  color: rgba(255,255,255,0.92);
}

#s-contacto .shell-cta-row-v5 .btn-ghost:hover {
  border-color: rgba(255,255,255,0.30);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* Columna derecha: formulario con más presencia */
#s-contacto .form-shell-v5 {
  position: relative;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(0,0,0,0.06);
  box-shadow: 0 18px 44px rgba(0,0,0,0.08);
}

#s-contacto .form-title-v5 {
  font-size: 28px;
  margin-bottom: 22px;
}

#s-contacto .input-shell-v5 {
  min-height: 46px;
  border-radius: 10px;
  background: #fbfaf8;
}

#s-contacto textarea.input-shell-v5 {
  min-height: 110px;
  resize: vertical;
}

#s-contacto .input-shell-v5:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 4px rgba(184,147,90,0.10);
}

#s-contacto .submit-btn-v5 {
  min-height: 48px;
  letter-spacing: 2px;
}

#s-contacto .form-note-v5 {
  margin-top: 12px;
}

@media (max-width: 1180px) {
  #s-contacto .details-panel-v5,
  #s-contacto .form-shell-v5 {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  #s-contacto .contacto-titulo {
    max-width: none;
  }

  #s-contacto .shell-cta-row-v5 {
    flex-direction: column;
  }

  #s-contacto .shell-cta-row-v5 .btn {
    width: 100%;
    justify-content: center;
  }
}
/* ══════════════════════════════════════════════════════════
   V6.5 — UBICACIÓN PREMIUM / OVERLAY CARD
   - Tarjeta flotante sobre el mapa
   - Look premium sin tocar la lógica del iframe
══════════════════════════════════════════════════════════ */

.map-frame-v5 {
  overflow: hidden;
}

.map-project-card-v6 {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
  width: min(320px, calc(100% - 32px));
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: rgba(8,9,12,0.76);
  border: 1px solid rgba(255,255,255,0.10);
  box-shadow: 0 18px 42px rgba(0,0,0,0.18);
  backdrop-filter: blur(14px);
}

.map-project-thumb-v6 {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.map-project-thumb-v6 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.map-project-thumb-v6 {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
}

.map-project-thumb-v6 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.map-project-content-v6 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.map-project-badge-v6 {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15,126,255,0.16);
  border: 1px solid rgba(15,126,255,0.24);
  color: #b8d9ff;
  font-size: 9px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.map-project-title-v6 {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 0.98;
  color: #fff;
  margin-bottom: 8px;
}

.map-project-address-v6 {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255);
}

.map-project-chip-v6 {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255);
  font-size: 11px;
  letter-spacing: 1px;
}


@media (max-width: 768px) {
  .map-project-card-v6 {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .map-project-thumb-v6 {
    width: 72px;
    height: 72px;
    border-radius: 12px;
  }

  .map-project-title-v6 {
    font-size: 20px;
  }

  .map-project-address-v6 {
    font-size: 11px;
  }
}
/* V1 — Branding patch para logo */
.sidebar-logo-image-v1{max-width:160px;max-height:48px;width:auto;height:auto;display:block;object-fit:contain}
.overlay-logo-image-v1{max-width:min(240px,60vw);max-height:88px;width:auto;height:auto;display:block;object-fit:contain}

/* ══════════════════════════════════════════════════════════
 V9.0 — MOBILE FIRST GLOBAL EXPERIENCE V5
 - Header móvil consistente
 - Hero móvil con más protagonismo del edificio
 - Selector móvil de unidades conservando la lógica comercial
 - Ritmo visual más claro para galería, ubicación y contacto
══════════════════════════════════════════════════════════ */
.mobile-menu-toggle-v5x,
.mobile-nav-overlay-v5x,
.mobile-nav-sheet-v5x,
.mobile-hero-v5x,
.mobile-units-v5x,
.mobile-unit-sheet-overlay-v5x { display:none; }

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  html, body { overflow:auto; }
  body.system-v5-body { padding-left:0 !important; }
  #app-shell-v5 { height:auto !important; min-height:100vh; padding-top:82px; }

  /* Header colapsado */
  .system-v5-sidebar {
    width:100% !important; inset:0 0 auto 0 !important; height:auto !important;
    display:grid !important; grid-template-columns:minmax(0,1fr) auto auto;
    align-items:center; gap:10px; padding:12px 14px !important; z-index:310;
  }
  .sidebar-nav-v5, .sidebar-subtitle-v5, .sidebar-mini-label-v5, .sidebar-credits-v5, .sidebar-contact-v5 {
    display:none !important;
  }
  .sidebar-brand-v5 { min-width:0; gap:10px; }
  .sidebar-mark-v5 { width:40px; height:40px; border-radius:14px; font-size:22px; }
  .system-v5-sidebar .navbar-logo { font-size:18px; line-height:1.02; letter-spacing:0; white-space:normal; }
  .sidebar-wa-v5 { width:auto !important; min-height:40px; padding:0 14px; font-size:11px; letter-spacing:1.2px; }
  .mobile-menu-toggle-v5x {
    display:inline-flex !important; width:40px; height:40px; align-items:center; justify-content:center;
    border-radius:12px; border:1px solid rgba(255,255,255,0.10); background:rgba(255,255,255,0.06);
    color:#fff; backdrop-filter:blur(10px); box-shadow:0 8px 24px rgba(0,0,0,0.16);
  }
  .mobile-menu-toggle-v5x svg { width:18px; height:18px; }
  .mobile-nav-overlay-v5x {
    display:block !important; position:fixed; inset:0; background:rgba(6,8,12,0.48);
    backdrop-filter:blur(6px); opacity:0; pointer-events:none; transition:opacity .25s ease; z-index:340;
  }
  .mobile-nav-sheet-v5x {
    display:flex !important; position:fixed; top:0; right:0; bottom:0; width:min(86vw,360px);
    flex-direction:column; gap:10px; padding:18px 16px calc(24px + env(safe-area-inset-bottom));
    background:#0b1018; border-left:1px solid rgba(255,255,255,0.08); transform:translateX(104%);
    transition:transform .28s ease; z-index:350; box-shadow:-14px 0 40px rgba(0,0,0,0.24); overflow:auto;
  }
  body.mobile-menu-open .mobile-nav-overlay-v5x { opacity:1; pointer-events:auto; }
  body.mobile-menu-open .mobile-nav-sheet-v5x { transform:translateX(0); }
  .mobile-nav-head-v5x { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:8px; }
  .mobile-nav-title-v5x { font-size:10px; letter-spacing:3px; text-transform:uppercase; color:rgba(255,255,255,0.48); }
  .mobile-nav-close-v5x {
    width:40px; height:40px; border-radius:12px; border:1px solid rgba(255,255,255,0.10);
    background:rgba(255,255,255,0.05); color:#fff; display:inline-flex; align-items:center; justify-content:center;
  }
  .mobile-nav-links-v5x { display:flex; flex-direction:column; gap:6px; }
  .mobile-nav-link-v5x {
    min-height:46px; padding:0 14px; border-radius:12px; border:1px solid rgba(255,255,255,0.08);
    color:rgba(255,255,255,0.86); display:flex; align-items:center; justify-content:space-between;
    background:rgba(255,255,255,0.04); font-size:12px; letter-spacing:1.4px; text-transform:uppercase;
  }
  .mobile-nav-link-v5x.active { background:rgba(15,126,255,0.16); border-color:rgba(15,126,255,0.24); }
  .mobile-nav-cta-v5x { margin-top:auto; padding-top:10px; }
  .mobile-nav-cta-v5x .btn { width:100%; justify-content:center; }

  .section-scroller-v5 { padding:14px; }
  .shell-panel-v5 { padding:18px; }
  .two-col-shell-v5 { grid-template-columns:1fr !important; gap:16px !important; }

  /* Hero móvil nuevo */
  #s-inicio .inicio-grid-v5,
  #s-inicio .inicio-top-actions-v5 { display:none !important; }
  .mobile-hero-media-v5x {
    position:relative; min-height:360px; max-height:420px; border-radius:24px; overflow:hidden;
    box-shadow:0 24px 60px rgba(16,24,38,0.18);
  }
  .mobile-hero-media-v5x #hero-img,
  .mobile-hero-media-v5x #hero-video,
  .mobile-hero-media-v5x #hero-placeholder {
    position:absolute !important; inset:0; width:100%; height:100%; object-fit:cover;
  }
  .mobile-hero-media-v5x .inicio-overlay-v5,
  .mobile-hero-media-v5x .hero-overlay {
    position:absolute; inset:0; background:linear-gradient(180deg, rgba(8,10,16,0.04) 0%, rgba(8,10,16,0.22) 52%, rgba(8,10,16,0.58) 100%);
    z-index:1;
  }
  .mobile-hero-v5x {
    display:block !important; margin-top:-22px; position:relative; z-index:3;
  }
  .mobile-hero-copy-v5x {
    background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,248,244,0.96));
    border:1px solid rgba(0,0,0,0.06); border-radius:24px; padding:18px 16px 16px;
    box-shadow:0 18px 44px rgba(16,24,38,0.08);
  }
  .mobile-hero-pills-v5x { display:flex; flex-wrap:wrap; gap:6px; margin-bottom:10px; }
  .mobile-hero-pill-v5x {
    min-height:28px; padding:0 10px; display:inline-flex; align-items:center; border-radius:999px;
    background:#eef4ff; color:#0f7eff; font-size:9px; letter-spacing:1px; text-transform:uppercase; font-weight:700;
  }
  .mobile-hero-title-v5x { font-size:30px; line-height:0.95; color:#101826; margin-bottom:8px; letter-spacing:-0.02em; }
  .mobile-hero-subtitle-v5x { font-size:13px; line-height:1.45; color:#5d6370; margin-bottom:14px; }
  .mobile-hero-actions-v5x { display:flex; gap:8px; margin-bottom:14px; }
  .mobile-hero-actions-v5x .btn { flex:1; justify-content:center; min-height:42px; }
  .mobile-hero-stats-v5x {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:8px;
  }
  .mobile-hero-stat-v5x {
    background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:14px; padding:10px 8px;
  }
  .mobile-hero-stat-v5x span { display:block; font-size:8px; letter-spacing:.8px; text-transform:uppercase; color:#8d8d96; }
  .mobile-hero-stat-v5x strong { display:block; font-size:17px; color:#121826; margin-top:3px; line-height:1.05; }

  /* Unidades móvil: conservar experiencia comercial refinada */
  #unidades-overview-view > .unidades-header-v5,
  #unidades-overview-view > .unidades-layout-v5 { display:none !important; }
  .mobile-units-v5x { display:block !important; }
  .mobile-units-card-v5x {
    background:#fff; border:1px solid rgba(0,0,0,0.06); border-radius:22px; overflow:hidden;
    box-shadow:0 20px 50px rgba(19,24,37,0.05);
  }
  .mobile-units-stats-v5x {
    display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); background:#fff; border-bottom:1px solid rgba(0,0,0,0.06);
  }
  .mobile-units-stat-v5x { padding:10px 6px; text-align:center; border-right:1px solid rgba(0,0,0,0.06); }
  .mobile-units-stat-v5x:last-child { border-right:0; }
  .mobile-units-stat-v5x span { display:block; font-size:8px; letter-spacing:.8px; text-transform:uppercase; color:#8d8d96; }
  .mobile-units-stat-v5x strong { display:block; margin-top:2px; font-size:17px; line-height:1.1; color:#161a24; }
  .mobile-building-hero-v5x { padding:12px 14px 10px; background:#fff; }
  .mobile-building-image-v5x { width:100%; height:148px; object-fit:cover; display:block; border-radius:16px; background:linear-gradient(135deg,#b8c9d4 0%,#8fa3af 100%); }
  .mobile-legend-v5x { display:flex; gap:10px; margin-top:8px; flex-wrap:wrap; }
  .mobile-legend-item-v5x { display:flex; align-items:center; gap:4px; font-size:8px; color:#666; }
  .mobile-legend-item-v5x i { width:6px; height:6px; border-radius:50%; display:inline-block; }
  .mobile-floor-strip-v5x {
    display:flex; gap:8px; padding:0 14px 12px; overflow-x:auto; scrollbar-width:none; -ms-overflow-style:none; background:#f5f4f0;
  }
  .mobile-floor-strip-v5x::-webkit-scrollbar { display:none; }
  .mobile-floor-pill-v5x {
    flex:0 0 auto; min-width:104px; min-height:40px; border-radius:12px; border:1px solid rgba(0,0,0,0.08);
    background:#fff; color:#111827; padding:6px 10px; display:flex; align-items:center; gap:8px; justify-content:space-between; box-shadow:0 6px 18px rgba(0,0,0,0.06);
  }
  .mobile-floor-pill-v5x.active { background:rgba(15,126,255,0.88); color:#fff; border-color:rgba(15,126,255,0.88); }
  .mobile-floor-pill-text-v5x { display:flex; flex-direction:column; line-height:1; gap:3px; }
  .mobile-floor-pill-text-v5x strong { font-size:11px; font-weight:700; }
  .mobile-floor-pill-text-v5x span { font-size:8px; opacity:.72; letter-spacing:.5px; text-transform:uppercase; }
  .mobile-floor-pill-dots-v5x { display:flex; gap:3px; margin-left:4px; }
  .mobile-floor-pill-dots-v5x i { width:6px; height:6px; border-radius:50%; display:inline-block; }
  .mobile-floor-pill-dots-v5x .dot-disponible { background:#22c55e; }
  .mobile-floor-pill-dots-v5x .dot-reservado { background:#f59e0b; }
  .mobile-floor-pill-dots-v5x .dot-vendido { background:#ef4444; }
  .mobile-units-section-v5x { padding:0 0 14px; }
  .mobile-units-head-v5x { padding:0 14px 10px; display:flex; align-items:center; justify-content:space-between; gap:8px; }
  .mobile-units-title-v5x { font-size:16px; font-weight:600; color:#151b27; }
  .mobile-units-count-v5x { font-size:11px; color:#8d8d96; }
  .mobile-units-cards-v5x {
    display:flex; gap:10px; overflow-x:auto; padding:0 14px; scroll-snap-type:x mandatory; -webkit-overflow-scrolling:touch; scrollbar-width:none; -ms-overflow-style:none;
  }
  .mobile-units-cards-v5x::-webkit-scrollbar { display:none; }
  .mobile-unit-card-v5x {
    min-width:230px; flex:0 0 auto; scroll-snap-align:start; background:#fff; border-radius:18px;
    border:1px solid rgba(0,0,0,0.07); padding:14px; box-shadow:0 14px 30px rgba(16,24,38,0.06);
  }
  .mobile-unit-card-v5x.active { border-color:#0f7eff; box-shadow:0 18px 38px rgba(15,126,255,0.15); }
  .mobile-unit-status-v5x { display:inline-flex; align-items:center; gap:4px; border-radius:999px; padding:4px 9px; font-size:9px; font-weight:700; margin-bottom:8px; }
  .mobile-unit-status-v5x.disponible { background:#dcfce7; color:#166534; }
  .mobile-unit-status-v5x.reservado { background:#fef3c7; color:#92400e; }
  .mobile-unit-status-v5x.vendido { background:#fee2e2; color:#991b1b; }
  .mobile-unit-name-v5x { font-size:15px; font-weight:700; color:#161a24; margin-bottom:3px; }
  .mobile-unit-details-v5x { font-size:11px; color:#7d8390; margin-bottom:8px; }
  .mobile-unit-price-v5x { font-size:18px; font-weight:700; color:#141a24; margin-bottom:10px; }
  .mobile-unit-tags-v5x { display:flex; flex-wrap:wrap; gap:5px; margin-bottom:12px; }
  .mobile-unit-tag-v5x { font-size:9px; color:#444; background:#f5f4f0; border-radius:999px; padding:4px 8px; }
  .mobile-unit-actions-v5x { display:flex; gap:8px; }
  .mobile-unit-primary-v5x { flex:1; min-height:34px; border-radius:10px; border:0; background:#0f7eff; color:#fff; font-size:11px; font-weight:700; }
  .mobile-unit-secondary-v5x { min-width:66px; min-height:34px; border-radius:10px; border:1px solid rgba(0,0,0,0.1); background:#fff; color:#4b5563; font-size:11px; }
  .mobile-unit-sheet-overlay-v5x { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.48); align-items:flex-end; z-index:450; }
  .mobile-unit-sheet-overlay-v5x.open { display:flex; }
  .mobile-unit-sheet-v5x { width:100%; max-height:86vh; overflow-y:auto; background:#fff; border-radius:22px 22px 0 0; padding:0 0 20px; box-shadow:0 -20px 60px rgba(0,0,0,0.22); }
  .mobile-unit-sheet-handle-v5x { display:flex; justify-content:center; padding:10px 0 6px; }
  .mobile-unit-sheet-handle-v5x i { width:38px; height:4px; border-radius:999px; background:#d8d8de; display:block; }
  .mobile-unit-sheet-close-v5x { position:absolute; top:14px; right:14px; width:28px; height:28px; border:0; border-radius:50%; background:#f4f4f5; color:#7c7c84; }
  .mobile-unit-sheet-inner-v5x { position:relative; }
  .mobile-unit-sheet-head-v5x { padding:0 16px 14px; border-bottom:1px solid rgba(0,0,0,0.06); }
  .mobile-unit-sheet-title-v5x { font-size:18px; font-weight:700; color:#171c27; margin-top:4px; }
  .mobile-unit-sheet-sub-v5x { font-size:12px; color:#7d8390; margin-top:3px; }
  .mobile-unit-sheet-price-v5x { font-size:22px; font-weight:700; color:#121826; margin-top:6px; }
  .mobile-unit-sheet-body-v5x { padding:14px 16px 0; }
  .mobile-unit-sheet-preview-v5x { background:#f5f4f0; border-radius:14px; min-height:160px; overflow:hidden; display:flex; align-items:center; justify-content:center; position:relative; }
  .mobile-unit-sheet-preview-v5x img { width:100%; height:170px; object-fit:contain; }
  .mobile-unit-sheet-preview-v5x span { position:absolute; top:8px; right:8px; font-size:8px; color:#0f7eff; background:#eff6ff; border-radius:999px; padding:4px 8px; }
  .mobile-unit-sheet-tags-v5x { display:flex; flex-wrap:wrap; gap:6px; margin:14px 0; }
  .mobile-unit-sheet-tag-v5x { font-size:10px; color:#444; background:#f5f4f0; border-radius:999px; padding:5px 9px; }
  .mobile-unit-sheet-actions-v5x { display:flex; gap:8px; }
  .mobile-unit-sheet-primary-v5x,.mobile-unit-sheet-secondary-v5x,.mobile-unit-sheet-wa-v5x { min-height:42px; border-radius:12px; font-size:11px; font-weight:700; border:0; }
  .mobile-unit-sheet-primary-v5x { flex:1; background:#0f7eff; color:#fff; }
  .mobile-unit-sheet-wa-v5x { min-width:96px; background:#25d366; color:#fff; }

  /* Secciones globales */
  #s-galeria .shell-title-v5,
  #s-ubicacion .shell-title-v5,
  #s-contacto .shell-title-v5 { font-size:28px !important; line-height:1.05; }
  #s-galeria .shell-copy-v5,
  #s-ubicacion .shell-copy-v5,
  #s-contacto .shell-copy-v5 { font-size:13px; line-height:1.5; }
  #s-galeria .shell-panel-v5,
  #s-ubicacion .shell-panel-v5,
  #s-contacto .shell-panel-v5 { border-radius:20px !important; }
  #s-ubicacion .map-frame-v5 { min-height:280px; }
  #s-contacto .details-panel-v5, #s-contacto .form-shell-v5 { min-height:auto !important; }
  #s-contacto .details-panel-v5 { order:1; }
  #s-contacto .form-shell-v5 { order:2; }
}

@media (max-width: 560px), (orientation: landscape) and (max-height: 480px) {
  #app-shell-v5 { padding-top:76px; }
  .system-v5-sidebar { padding:10px !important; gap:8px; }
  .sidebar-mark-v5 { width:38px; height:38px; font-size:20px; }
  .system-v5-sidebar .navbar-logo { font-size:16px; }
  .sidebar-wa-v5 { min-height:38px; padding:0 12px; font-size:10px; }
  .mobile-menu-toggle-v5x { width:38px; height:38px; border-radius:10px; }
  .section-scroller-v5 { padding:12px; }
  .mobile-hero-media-v5x { min-height:320px; }
  .mobile-hero-title-v5x { font-size:28px; }
  .mobile-building-image-v5x { height:132px; }
  .mobile-floor-pill-v5x { min-width:96px; }
  .mobile-unit-card-v5x { min-width:212px; }
}
/* ══════════════════════════════════════════════════════════
 V5.3 PATCH — HERO BLANCO + CONTENEDORES LLENOS + PLANTA/PANORAMA MÓVIL
 Cargar DESPUÉS de main_mobile_first_v5.css y después de los otros patches.
══════════════════════════════════════════════════════════ */

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* HERO vuelve a blanco */
  #s-inicio .mobile-hero-copy-v5x {
    background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(250,248,244,0.965)) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    box-shadow: 0 20px 50px rgba(16,24,38,0.10) !important;
    color: #101826 !important;
  }
  #s-inicio .mobile-hero-pill-v5x {
    background: #eef4ff !important;
    color: #0f7eff !important;
    border: 1px solid rgba(15,126,255,0.10) !important;
  }
  #s-inicio .mobile-hero-title-v5x { color:#101826 !important; }
  #s-inicio .mobile-hero-subtitle-v5x { color:#5d6370 !important; }
  #s-inicio .mobile-hero-actions-v5x .btn:not(.btn-solid) {
    background: transparent !important;
    color: #101826 !important;
    border-color: rgba(16,24,38,0.16) !important;
  }
  #s-inicio .mobile-hero-stat-v5x {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
  }
  #s-inicio .mobile-hero-stat-v5x span { color:#8d8d96 !important; }
  #s-inicio .mobile-hero-stat-v5x strong { color:#121826 !important; }

  /* Dirección todavía más flexible */
  #s-inicio .mobile-hero-stats-v5x {
    grid-template-columns: minmax(0,.9fr) minmax(0,.9fr) minmax(0,2.2fr) !important;
  }
  #s-inicio .mobile-hero-stat-v5x:nth-child(3) strong {
    font-size: 12px !important;
    line-height: 1.18 !important;
  }

  /* Llenar mejor el hero en altura */
  #s-inicio .mobile-hero-media-v5x {
    min-height: 430px !important;
  }

  /* UNIDADES: más altura a la imagen para que se vea casi completa */
  #s-unidades .mobile-units-card-v5x {
    min-height: calc(100dvh - 98px) !important;
  }
  #s-unidades .mobile-building-image-v5x {
    height: 228px !important;
    object-fit: cover !important;
  }
  #s-unidades .mobile-building-hero-v5x {
    padding-bottom: 10px !important;
  }
  #s-unidades .mobile-units-section-v5x {
    padding-top: 2px !important;
    padding-bottom: 10px !important;
  }
  #s-unidades .mobile-unit-card-v5x {
    min-height: 220px !important;
  }

  /* PLANTA en bottom sheet más grande y a todo el ancho visual */
  .mobile-unit-sheet-v5x {
    border-radius: 24px 24px 0 0 !important;
  }
  .mobile-unit-sheet-body-v5x {
    padding: 14px 12px 0 !important;
  }
  .mobile-unit-sheet-preview-v5x {
    width: 100% !important;
    min-height: 240px !important;
    border-radius: 16px !important;
    padding: 0 !important;
    background: #f5f4f0 !important;
  }
  .mobile-unit-sheet-preview-v5x img {
    width: 100% !important;
    height: 240px !important;
    object-fit: contain !important;
    display: block !important;
  }

  /* Workspace móvil: limpiar herencia desktop */
  #unidades-workspace-view .workspace-layout-v5 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  #unidades-workspace-view .workspace-info-column-v5 {
    display: none !important;
  }
  #unidades-workspace-view .workspace-canvas-column-v5,
  #unidades-workspace-view .workspace-canvas-shell-v5,
  #unidades-workspace-view .workspace-panel-v5 {
    width: 100% !important;
  }
  #unidades-workspace-view .workspace-canvas-stage-v5 {
    min-height: 64dvh !important;
  }

  /* Cuando estamos en panorama móvil: ocultar texto/controles heredados del desktop */
  body.mobile-panorama-mode #unidades-workspace-view .section-label,
  body.mobile-panorama-mode #unidades-workspace-view .shell-title-v5,
  body.mobile-panorama-mode #unidades-workspace-view .shell-copy-v5,
  body.mobile-panorama-mode #unidades-workspace-view .workspace-breadcrumb-v5,
  body.mobile-panorama-mode #unidades-workspace-view .workspace-head-v5,
  body.mobile-panorama-mode #unidades-workspace-view .workspace-toolbar-v5,
  body.mobile-panorama-mode #unidades-workspace-view .workspace-meta-v5,
  body.mobile-panorama-mode #unidades-workspace-view #btn-mode-pano,
  body.mobile-panorama-mode #unidades-workspace-view #btn-mode-planta,
  body.mobile-panorama-mode #unidades-workspace-view .mode-switch-v5 {
    display: none !important;
  }

  body.mobile-panorama-mode #unidades-workspace-view .workspace-canvas-stage-v5,
  body.mobile-panorama-mode #unidades-workspace-view #pano-viewer,
  body.mobile-panorama-mode #unidades-workspace-view .pannellum-container {
    min-height: calc(100dvh - 170px) !important;
    height: calc(100dvh - 170px) !important;
  }

  /* En planta móvil también limpiamos la cabecera para centrar la imagen */
  body.mobile-planta-mode #unidades-workspace-view .section-label,
  body.mobile-planta-mode #unidades-workspace-view .shell-title-v5,
  body.mobile-planta-mode #unidades-workspace-view .shell-copy-v5,
  body.mobile-planta-mode #unidades-workspace-view .workspace-breadcrumb-v5,
  body.mobile-planta-mode #unidades-workspace-view .workspace-head-v5 {
    display: none !important;
  }

  body.mobile-planta-mode #unidades-workspace-view #planta-img-wrap {
    width: 100% !important;
    min-height: 68dvh !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 0 !important;
  }
  body.mobile-planta-mode #unidades-workspace-view #planta-img-wrap img {
    width: 100% !important;
    height: auto !important;
    max-height: 68dvh !important;
    object-fit: contain !important;
    padding: 0 !important;
  }

  /* Barra simple que agregará el JS */
  .mobile-workspace-topbar-v53 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }
  .mobile-workspace-back-v53 {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    color: #111827;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }
  .mobile-workspace-back-v53.primary {
    background: #0f7eff;
    color: #fff;
    border-color: #0f7eff;
  }
}

@media (max-width: 560px), (orientation: landscape) and (max-height: 480px) {
  #s-unidades .mobile-building-image-v5x {
    height: 214px !important;
  }
  .mobile-unit-sheet-preview-v5x {
    min-height: 220px !important;
  }
  .mobile-unit-sheet-preview-v5x img {
    height: 220px !important;
  }
}

/* ===== FIN: main.css ===== */

/* ===== INICIO: mobile_clean_consolidado.css ===== */

/* ══════════════════════════════════════════════════════════
MOBILE CLEAN CONSOLIDADO v1
Usar sobre la base actual main.css
Objetivo: estabilizar arquitectura móvil sin mezclar parches viejos
══════════════════════════════════════════════════════════ */

.mobile-workspace-topbar-clean,
.mobile-workspace-topbar-clean * {
  box-sizing: border-box;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* ── RESET ESTRUCTURAL ─────────────────────────────── */
  html,
  body {
    overflow: auto !important;
    height: auto !important;
  }

  body.system-v5-body {
    padding-left: 0 !important;
  }

  #app-shell-v5 {
    height: auto !important;
    min-height: 100svh !important;
    overflow: visible !important;
    padding-top: 74px !important;
  }

  .spa-section-v5 {
    display: none;
    height: auto !important;
    min-height: 0 !important;
  }

  .spa-section-v5.active {
    display: block !important;
    height: auto !important;
    min-height: calc(100svh - 74px) !important;
  }

  .section-scroller-v5 {
    height: auto !important;
    overflow: visible !important;
    padding: 14px !important;
  }

  .section-scroller-home {
    padding: 0 !important;
  }

  /* ── HEADER / TOP BAR MÓVIL ───────────────────────── */
  .system-v5-sidebar {
    position: fixed !important;
    inset: 0 0 auto 0 !important;
    width: 100% !important;
    height: auto !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto auto !important;
    align-items: center !important;
    gap: 10px !important;
    padding: max(10px, env(safe-area-inset-top, 0px)) 14px 10px !important;
    z-index: 310 !important;
    flex-direction: unset !important;
  }

  .sidebar-nav-v5,
  .sidebar-subtitle-v5,
  .sidebar-credits-v5,
  .sidebar-contact-v5,
  .sidebar-mini-label-v5 {
    display: none !important;
  }

  .sidebar-brand-v5 {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    min-width: 0 !important;
    overflow: hidden !important;
  }

  .sidebar-mark-v5 {
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 19px !important;
    flex-shrink: 0 !important;
  }

  .system-v5-sidebar .navbar-logo {
    font-size: 15px !important;
    letter-spacing: 0 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }

  .sidebar-footer-v5 {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 0 !important;
    margin-left: 0 !important;
  }

  .sidebar-wa-v5 {
    width: auto !important;
    min-height: 34px !important;
    padding: 0 12px !important;
    font-size: 10px !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
  }

  .mobile-menu-toggle-v5x {
    display: inline-flex !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    flex-shrink: 0 !important;
  }

  /* ── HERO MÓVIL ───────────────────────────────────── */
  #s-inicio .inicio-grid-v5,
  #s-inicio .inicio-top-actions-v5 {
    display: none !important;
  }

  #s-inicio .inicio-hero-v5 {
    display: block !important;
    min-height: 0 !important;
    height: auto !important;
    position: relative !important;
  }

  #s-inicio .inicio-bg-v5 {
    position: relative !important;
    inset: auto !important;
    display: block !important;
    min-height: 330px !important;
    overflow: hidden !important;
    border-radius: 0 0 20px 20px !important;
  }

  #s-inicio .inicio-bg-v5 #hero-img,
  #s-inicio .inicio-bg-v5 #hero-video,
  #s-inicio .inicio-bg-v5 #hero-placeholder,
  #s-inicio .inicio-bg-v5 .inicio-overlay-v5,
  #s-inicio .mobile-hero-media-v5x #hero-img,
  #s-inicio .mobile-hero-media-v5x #hero-video,
  #s-inicio .mobile-hero-media-v5x #hero-placeholder,
  #s-inicio .mobile-hero-media-v5x .inicio-overlay-v5 {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  #s-inicio .mobile-hero-media-v5x {
    min-height: 430px !important;
    max-height: none !important;
    border-radius: 24px !important;
    overflow: hidden !important;
    box-shadow: 0 24px 60px rgba(16,24,38,0.16) !important;
  }

  #s-inicio .mobile-hero-v5x {
    display: block !important;
    padding: 0 12px 18px !important;
    margin-top: -16px !important;
    position: relative !important;
    z-index: 3 !important;
  }

  #s-inicio .mobile-hero-copy-v5x {
    background: linear-gradient(180deg, rgba(255,255,255,0.985), rgba(250,248,244,0.965)) !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 50px rgba(16,24,38,0.10) !important;
    color: #101826 !important;
    padding: 18px 16px 16px !important;
  }

  #s-inicio .mobile-hero-pill-v5x {
    background: #eef4ff !important;
    color: #0f7eff !important;
    border: 1px solid rgba(15,126,255,0.10) !important;
  }

  #s-inicio .mobile-hero-title-v5x {
    color: #101826 !important;
  }

  #s-inicio .mobile-hero-subtitle-v5x {
    color: #5d6370 !important;
  }

  #s-inicio .mobile-hero-actions-v5x .btn:not(.btn-solid) {
    background: transparent !important;
    color: #101826 !important;
    border-color: rgba(16,24,38,0.16) !important;
  }

  #s-inicio .mobile-hero-stats-v5x {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
  }

  #s-inicio .mobile-hero-stat-v5x {
    background: #fff !important;
    border: 1px solid rgba(0,0,0,0.06) !important;
    border-radius: 14px !important;
    min-height: 72px !important;
    padding: 10px 9px !important;
  }

  #s-inicio .mobile-hero-stat-v5x span {
    color: #8d8d96 !important;
  }

  #s-inicio .mobile-hero-stat-v5x strong {
    color: #121826 !important;
  }

  #s-inicio .mobile-hero-stat-v5x:last-child {
    grid-column: 1 / -1 !important;
  }

  #s-inicio .mobile-hero-stat-v5x:last-child strong {
    font-size: 12px !important;
    line-height: 1.18 !important;
    white-space: normal !important;
    word-break: break-word !important;
    overflow-wrap: anywhere !important;
  }

  /* ── UNIDADES MÓVIL ───────────────────────────────── */
  #s-unidades #unidades-overview-view .unidades-header-v5,
  #s-unidades #unidades-overview-view .unidades-kpis-v5,
  #s-unidades #unidades-overview-view .unidades-layout-v5,
  #s-unidades .floor-rail-v5 {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
    pointer-events: none !important;
  }

  #s-unidades #unidades-overview-view .mobile-units-v5x {
    display: block !important;
    visibility: visible !important;
    height: auto !important;
    overflow: visible !important;
    margin-bottom: 0 !important;
  }

  #s-unidades .mobile-units-card-v5x {
    border-radius: 18px !important;
    overflow: hidden !important;
    min-height: calc(100svh - 96px) !important;
    display: flex !important;
    flex-direction: column !important;
  }

  #s-unidades .mobile-units-stats-v5x {
    grid-template-columns: repeat(4, 1fr) !important;
  }

  #s-unidades .mobile-building-image-v5x {
    height: 240px !important;
    border-radius: 14px !important;
    object-fit: cover !important;
    width: 100% !important;
    display: block !important;
  }

  #s-unidades .mobile-building-hero-v5x {
    padding-bottom: 10px !important;
  }

  #s-unidades .mobile-floor-strip-v5x {
    padding: 0 14px 12px !important;
    gap: 8px !important;
  }

  #s-unidades .mobile-floor-pill-v5x {
    min-width: 96px !important;
    flex-shrink: 0 !important;
  }

  #s-unidades .mobile-units-section-v5x {
    flex: 1 1 auto !important;
    padding: 2px 0 10px !important;
  }

  #s-unidades .mobile-units-cards-v5x {
    padding: 0 14px 4px !important;
    gap: 10px !important;
  }

  #s-unidades .mobile-unit-card-v5x {
    min-width: 220px !important;
    min-height: 220px !important;
    flex-shrink: 0 !important;
    border-radius: 16px !important;
  }

  /* ── BOTTOM SHEET ─────────────────────────────────── */
  .mobile-unit-sheet-overlay-v5x {
    align-items: flex-end !important;
  }

  .mobile-unit-sheet-v5x {
    max-height: 90svh !important;
    border-radius: 24px 24px 0 0 !important;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-unit-sheet-body-v5x {
    padding: 14px 12px 0 !important;
  }

  .mobile-unit-sheet-preview-v5x {
    width: 100% !important;
    min-height: 248px !important;
    border-radius: 16px !important;
    padding: 0 !important;
    background: #f5f4f0 !important;
  }

  .mobile-unit-sheet-preview-v5x img {
    width: 100% !important;
    height: 248px !important;
    object-fit: contain !important;
  }

  /* ── WORKSPACE PLANTA / PANORAMA ───────────────────── */
  #unidades-workspace-view .workspace-layout-v5 {
    grid-template-columns: 1fr !important;
    gap: 0 !important;
    padding: 0 !important;
  }

  #unidades-workspace-view .workspace-info-column-v5 {
    display: none !important;
  }

  #unidades-workspace-view .workspace-canvas-column-v5,
  #unidades-workspace-view .workspace-canvas-shell-v5,
  #unidades-workspace-view .workspace-panel-v5 {
    width: 100% !important;
  }

  #unidades-workspace-view .workspace-canvas-column-v5 {
    padding: 12px !important;
  }

  #unidades-workspace-view .workspace-canvas-stage-v5 {
    min-height: calc(100svh - 185px) !important;
    height: calc(100svh - 185px) !important;
    border-radius: 16px !important;
    overflow: hidden !important;
    position: relative !important;
  }

  #unidades-workspace-view .workspace-head-v5,
  #unidades-workspace-view .workspace-breadcrumb-v5,
  #unidades-workspace-view .workspace-toolbar-v5,
  #unidades-workspace-view .workspace-meta-v5,
  #unidades-workspace-view .mode-switch-v5,
  #unidades-workspace-view #btn-mode-pano,
  #unidades-workspace-view #btn-mode-planta,
  #workspace-subcopy {
    display: none !important;
  }

  body.mobile-clean-planta #unidades-workspace-view .section-label,
  body.mobile-clean-planta #unidades-workspace-view .shell-title-v5,
  body.mobile-clean-planta #unidades-workspace-view .shell-copy-v5,
  body.mobile-clean-planta #unidades-workspace-view .workspace-breadcrumb-v5,
  body.mobile-clean-planta #unidades-workspace-view .workspace-head-v5 {
    display: none !important;
  }

  body.mobile-clean-planta #unidades-workspace-view #planta-img-wrap,
  body.mobile-clean-planta #planta-view .planta-img-wrap {
    width: 100% !important;
    height: 100% !important;
    min-height: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #f5f4f0 !important;
    padding: 0 !important;
  }

  body.mobile-clean-planta #unidades-workspace-view #planta-img-wrap img,
  body.mobile-clean-planta #planta-view .planta-img-wrap img {
    width: 100% !important;
    height: 100% !important;
    max-height: none !important;
    object-fit: contain !important;
    padding: 12px !important;
  }

  body.mobile-clean-panorama #unidades-workspace-view .section-label,
  body.mobile-clean-panorama #unidades-workspace-view .shell-title-v5,
  body.mobile-clean-panorama #unidades-workspace-view .shell-copy-v5,
  body.mobile-clean-panorama #unidades-workspace-view .workspace-breadcrumb-v5,
  body.mobile-clean-panorama #unidades-workspace-view .workspace-head-v5,
  body.mobile-clean-panorama #unidades-workspace-view .workspace-toolbar-v5,
  body.mobile-clean-panorama #unidades-workspace-view .workspace-meta-v5,
  body.mobile-clean-panorama #unidades-workspace-view .mode-switch-v5,
  body.mobile-clean-panorama #unidades-workspace-view #btn-mode-pano,
  body.mobile-clean-panorama #unidades-workspace-view #btn-mode-planta,
  body.mobile-clean-panorama #unidades-workspace-view .pano-inline-header-v5 > div:first-child {
    display: none !important;
  }

  body.mobile-clean-panorama #unidades-workspace-view .workspace-canvas-stage-v5,
  body.mobile-clean-panorama #unidades-workspace-view #pano-view,
  body.mobile-clean-panorama #unidades-workspace-view #pannellum-container,
  body.mobile-clean-panorama #unidades-workspace-view .pano-inline-stage-v5,
  body.mobile-clean-panorama #unidades-workspace-view .pnlm-container {
    min-height: calc(100svh - 170px) !important;
    height: calc(100svh - 170px) !important;
  }

  body.mobile-clean-panorama .pano-inline-header-v5 {
    background: transparent !important;
    padding: 10px 12px !important;
  }

  body.mobile-clean-panorama .pano-room-tabs {
    padding: 8px !important;
    border-radius: 14px !important;
    background: rgba(8,9,12,0.72) !important;
    border: 1px solid rgba(255,255,255,0.10) !important;
    backdrop-filter: blur(14px) !important;
    box-shadow: 0 14px 34px rgba(0,0,0,0.22) !important;
  }

  .mobile-workspace-topbar-clean {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-workspace-back-clean {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(0,0,0,0.10);
    background: #fff;
    color: #111827;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .mobile-workspace-back-clean.primary {
    background: #0f7eff;
    color: #fff;
    border-color: #0f7eff;
  }

  /* ── GALERÍA ───────────────────────────────────────── */
  .gallery-grid-v5 {
    columns: 2 !important;
    column-gap: 12px !important;
  }

  .gallery-card-v5 {
    margin: 0 0 12px !important;
    border-radius: 12px !important;
  }

  .gallery-filters-v5 {
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    scrollbar-width: none !important;
  }

  .gallery-filters-v5::-webkit-scrollbar {
    display: none !important;
  }

  .gallery-filter-chip {
    flex-shrink: 0 !important;
    white-space: nowrap !important;
  }

  /* ── UBICACIÓN Y CONTACTO ──────────────────────────── */
  #s-ubicacion .section-scroller-v5,
  #s-contacto .section-scroller-v5,
  #s-ubicacion .two-col-shell-v5,
  #s-contacto .two-col-shell-v5 {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .map-frame-v5 {
    min-height: 250px !important;
    height: 250px !important;
    position: relative !important;
  }

  .map-project-card-v6 {
    grid-template-columns: 60px 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
    border-radius: 14px !important;
  }

  .map-project-thumb-v6 {
    width: 60px !important;
    height: 60px !important;
    border-radius: 10px !important;
  }

  #s-contacto .details-panel-v5 {
    min-height: auto !important;
    order: 1 !important;
  }

  #s-contacto .form-shell-v5 {
    min-height: auto !important;
    order: 2 !important;
  }

  .form-grid-v5 {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }

  .contacto-titulo {
    max-width: none !important;
    font-size: 26px !important;
  }

  .shell-cta-row-v5 {
    flex-direction: column !important;
    gap: 8px !important;
  }

  .shell-cta-row-v5 .btn {
    width: 100% !important;
    justify-content: center !important;
  }

  /* ── TIPO Y PANELES ───────────────────────────────── */
  .shell-panel-v5 {
    border-radius: 18px !important;
    padding: 16px !important;
  }

  .shell-title-v5 {
    font-size: 24px !important;
    line-height: 1.05 !important;
  }

  .shell-copy-v5 {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }
}

@media (max-width: 480px) {
  #app-shell-v5 {
    padding-top: 66px !important;
  }

  .section-scroller-v5 {
    padding: 10px !important;
  }

  #s-inicio .inicio-bg-v5,
  #s-inicio .mobile-hero-media-v5x {
    min-height: 300px !important;
  }

  #s-unidades .mobile-units-stats-v5x {
    grid-template-columns: 1fr 1fr !important;
  }

  #s-unidades .mobile-units-stat-v5x:nth-child(4) {
    display: none !important;
  }

  #s-unidades .mobile-building-image-v5x {
    height: 210px !important;
  }

  .workspace-canvas-stage-v5 {
    min-height: calc(100svh - 155px) !important;
    height: calc(100svh - 155px) !important;
  }

  .map-frame-v5 {
    height: 210px !important;
    min-height: 210px !important;
  }

  .gallery-grid-v5 {
    columns: 1 !important;
  }
}

@media (pointer: coarse) {
  #cursor {
    display: none !important;
  }

  * {
    cursor: auto !important;
  }
}

/* ===== FIN: mobile_clean_consolidado.css ===== */

/* ===== INICIO: mobile_clean_consolidado_v2.css ===== */


/* ══════════════════════════════════════════════════════════
MOBILE CLEAN CONSOLIDADO v2
Cargar DESPUÉS de mobile_clean_consolidado.css
Ajustes finos de unidades + bottom sheet planta → panorama
══════════════════════════════════════════════════════════ */

.sheet-pano-topbar-v2,
.sheet-pano-nav-v2 {
  display: none;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* ── KPIs EN UNA SOLA LÍNEA HORIZONTAL ─────────────── */
  #s-unidades .mobile-units-stats-v5x {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #s-unidades .mobile-units-stat-v5x:nth-child(1) { grid-column: 1; }
  #s-unidades .mobile-units-stat-v5x:nth-child(3) { grid-column: 2; }
  #s-unidades .mobile-units-stat-v5x:nth-child(2) { grid-column: 3; }
  #s-unidades .mobile-units-stat-v5x:nth-child(4) {
    display: none !important;
  }

  /* ── MISMO AIRE ARRIBA Y ABAJO EN STRIP DE PISOS ───── */
  #s-unidades .mobile-floor-strip-v5x {
    padding: 12px 14px !important;
    gap: 8px !important;
  }

  #s-unidades .mobile-units-head-v5x {
    padding: 8px 14px 12px !important;
  }

  /* ── CARD ACTIVA SIN BORDE AZUL ─────────────────────── */
  #s-unidades .mobile-unit-card-v5x.active {
    border-color: rgba(0,0,0,0.07) !important;
    box-shadow: 0 18px 38px rgba(16,24,38,0.08) !important;
    transform: translateY(-1px);
  }

  /* ── BOTTOM SHEET: MODO PANORAMA ───────────────────── */
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-v5x {
    max-height: 96svh !important;
    background: #0c1016 !important;
    border-radius: 24px 24px 0 0 !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-inner-v5x {
    color: #fff !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-close-v5x,
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-handle-v5x,
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-head-v5x,
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-tags-v5x,
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-actions-v5x {
    display: none !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-body-v5x {
    padding: 10px 10px calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-topbar-v2 {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-topbar-v2 .btn-like {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: #fff;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-topbar-v2 .btn-like.primary {
    background: #0f7eff;
    border-color: #0f7eff;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-nav-v2 {
    display: flex !important;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-nav-v2::-webkit-scrollbar {
    display: none;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-tab-v2 {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.12);
    background: rgba(255,255,255,0.06);
    color: rgba(255,255,255,0.84);
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .sheet-pano-tab-v2.active {
    background: rgba(15,126,255,0.22);
    border-color: rgba(15,126,255,0.34);
    color: #fff;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-preview-v5x {
    background: #11161f !important;
    border-radius: 16px !important;
    min-height: 62svh !important;
    height: 62svh !important;
    overflow: hidden !important;
    position: relative !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-preview-v5x img,
  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-preview-v5x > span {
    display: none !important;
  }

  .sheet-pano-viewer-v2 {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .sheet-pano-viewer-v2 .pnlm-container,
  .sheet-pano-viewer-v2 .pnlm-render-container,
  .sheet-pano-viewer-v2 canvas {
    top: 0 !important;
    left: 0 !important;
  }
}

@media (max-width: 480px) {
  #s-unidades .mobile-units-stats-v5x {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }

  #s-unidades .mobile-building-image-v5x {
    height: 220px !important;
  }

  .mobile-unit-sheet-overlay-v5x.pano-mode .mobile-unit-sheet-preview-v5x {
    min-height: 58svh !important;
    height: 58svh !important;
  }
}

/* ===== FIN: mobile_clean_consolidado_v2.css ===== */

/* ===== INICIO: mobile_clean_consolidado_v2_1.css ===== */


/* ══════════════════════════════════════════════════════════
MOBILE CLEAN CONSOLIDADO v2.1
Micro ajustes visuales en Unidades móvil
Cargar DESPUÉS de mobile_clean_consolidado_v2.css
══════════════════════════════════════════════════════════ */

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* 1) KPIs superiores realmente en una sola línea */
  #s-unidades .mobile-units-stats-v5x {
    display: flex !important;
    align-items: stretch !important;
    justify-content: stretch !important;
    gap: 0 !important;
  }

  #s-unidades .mobile-units-stat-v5x {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 64px !important;
    padding: 8px 6px !important;
  }

  #s-unidades .mobile-units-stat-v5x:nth-child(1) { order: 1; }
  #s-unidades .mobile-units-stat-v5x:nth-child(3) { order: 2; }
  #s-unidades .mobile-units-stat-v5x:nth-child(2) { order: 3; }
  #s-unidades .mobile-units-stat-v5x:nth-child(4) {
    display: none !important;
  }

  /* 2) Las tarjetas respiran mejor a la izquierda y derecha */
  #s-unidades .mobile-units-cards-v5x {
    padding-left: 18px !important;
    padding-right: 18px !important;
    gap: 12px !important;
  }

  #s-unidades .mobile-floor-strip-v5x,
  #s-unidades .mobile-units-head-v5x,
  #s-unidades .mobile-building-hero-v5x {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }

  /* 3) Card activa: quitar sombra, dejar solo borde sutil */
  #s-unidades .mobile-unit-card-v5x {
    box-shadow: none !important;
  }

  #s-unidades .mobile-unit-card-v5x.active {
    box-shadow: none !important;
    border: 1px solid rgba(15,126,255,0.26) !important;
    transform: none !important;
  }
}

@media (max-width: 480px) {
  #s-unidades .mobile-units-stats-v5x {
    display: flex !important;
  }

  #s-unidades .mobile-units-stat-v5x {
    min-height: 60px !important;
    padding: 8px 4px !important;
  }

  #s-unidades .mobile-units-cards-v5x,
  #s-unidades .mobile-floor-strip-v5x,
  #s-unidades .mobile-units-head-v5x,
  #s-unidades .mobile-building-hero-v5x {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }
}

/* ===== FIN: mobile_clean_consolidado_v2_1.css ===== */

/* ===== INICIO: mobile_clean_consolidado_v2_2.css ===== */


/* ══════════════════════════════════════════════════════════
MOBILE CLEAN CONSOLIDADO v2.2
Micro ajuste: respiración lateral real en cards de Unidades móvil
Cargar DESPUÉS de mobile_clean_consolidado_v2_1.css
══════════════════════════════════════════════════════════ */

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* El problema real suele venir de que el carrusel empieza pegado al borde
     del viewport aunque el contenedor tenga padding. Forzamos:
     - padding lateral en la sección
     - primer y último card con margen visual extra
     - scroll padding para que el snap respete ese aire lateral */

  #s-unidades .mobile-units-v5x {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  #s-unidades .mobile-units-cards-v5x {
    padding-left: 20px !important;
    padding-right: 20px !important;
    scroll-padding-left: 20px !important;
    scroll-padding-right: 20px !important;
  }

  #s-unidades .mobile-units-cards-v5x .mobile-unit-card-v5x:first-child {
    margin-left: 2px !important;
  }

  #s-unidades .mobile-units-cards-v5x .mobile-unit-card-v5x:last-child {
    margin-right: 2px !important;
  }

  /* Asegura que el header y el strip respiren con el mismo eje visual */
  #s-unidades .mobile-floor-strip-v5x,
  #s-unidades .mobile-units-head-v5x,
  #s-unidades .mobile-building-hero-v5x,
  #s-unidades .mobile-legend-v5x {
    padding-left: 20px !important;
    padding-right: 20px !important;
  }
}

@media (max-width: 480px) {
  #s-unidades .mobile-units-cards-v5x {
    padding-left: 18px !important;
    padding-right: 18px !important;
    scroll-padding-left: 18px !important;
    scroll-padding-right: 18px !important;
  }

  #s-unidades .mobile-floor-strip-v5x,
  #s-unidades .mobile-units-head-v5x,
  #s-unidades .mobile-building-hero-v5x,
  #s-unidades .mobile-legend-v5x {
    padding-left: 18px !important;
    padding-right: 18px !important;
  }
}

/* ===== FIN: mobile_clean_consolidado_v2_2.css ===== */

/* ===== INICIO: mobile_visor_final_consolidado.css ===== */

/* ══════════════════════════════════════════════════════════
MOBILE VISOR FINAL CONSOLIDADO
Versión móvil consolidada del flujo Unidades → Planta → 360
Reemplaza:
- mobile_visor_sheet_takeover.css
- mobile_visor_sheet_takeover_v1_1.css
- mobile_visor_sheet_takeover_v1_2.css
- mobile_visor_sheet_takeover_v1_3.css
Objetivo:
- dejar una sola capa CSS limpia para esta experiencia
══════════════════════════════════════════════════════════ */

#mobile-visor-sheet-final {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: none;
  align-items: flex-end;
  justify-content: center;
  background: rgba(0,0,0,0.48);
  backdrop-filter: blur(6px);
}

#mobile-visor-sheet-final.open {
  display: flex;
}

#mobile-visor-sheet-final,
#mobile-visor-sheet-final * {
  box-sizing: border-box;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  body.mobile-visor-sheet-open {
    overflow: hidden !important;
  }

  body.mobile-visor-sheet-open #unidades-workspace-view,
  body.mobile-visor-sheet-open #mobile-unit-sheet-overlay-v5x {
    display: none !important;
  }

  /* ── CARDS DE UNIDADES ─────────────────────────────── */
  #s-unidades .mobile-unit-card-v5x .mobile-unit-secondary-v5x {
    display: none !important;
  }

  #s-unidades .mobile-unit-card-v5x .mobile-unit-actions-v5x {
    display: block !important;
  }

  #s-unidades .mobile-unit-primary-v5x {
    width: 100% !important;
    min-width: 100% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
  }

  /* ── CONTENEDOR DEL MODAL ──────────────────────────── */
  .mobile-visor-sheet-panel {
    width: 100%;
    max-height: 94svh;
    background: #ffffff;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -24px 64px rgba(0,0,0,0.28);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(18px);
    opacity: 0;
    transition: transform .26s ease, opacity .26s ease, background .26s ease;
  }

  #mobile-visor-sheet-final.open .mobile-visor-sheet-panel {
    transform: translateY(0);
    opacity: 1;
  }

  .mobile-visor-sheet-handle {
    display: flex;
    justify-content: center;
    padding: 10px 0 6px;
    flex-shrink: 0;
  }

  .mobile-visor-sheet-handle span {
    width: 42px;
    height: 4px;
    border-radius: 999px;
    background: #d5d7dc;
    display: block;
  }

  .mobile-visor-sheet-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.08);
    background: #f5f5f7;
    color: #6b7280;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
  }

  .mobile-visor-sheet-content {
    position: relative;
    padding: 0 14px calc(16px + env(safe-area-inset-bottom, 0px));
    overflow: auto;
  }

  /* ── ESTADO OVERVIEW / PLANTA ──────────────────────── */
  .mvs-overview {
    display: block;
  }

  .mvs-header {
    padding: 0 2px 14px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
  }

  .mvs-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    border-radius: 999px;
    padding: 5px 10px;
    font-size: 9px;
    font-weight: 700;
    margin-top: 2px;
    margin-bottom: 8px;
  }

  .mvs-status.disponible { background:#dcfce7; color:#166534; }
  .mvs-status.reservado  { background:#fef3c7; color:#92400e; }
  .mvs-status.vendido    { background:#fee2e2; color:#991b1b; }

  .mvs-title {
    font-size: 20px;
    line-height: 1.02;
    color: #171c27;
    margin-bottom: 4px;
  }

  .mvs-subtitle {
    font-size: 12px;
    color: #7d8390;
    line-height: 1.35;
  }

  .mvs-price {
    font-size: 24px;
    font-weight: 700;
    color: #121826;
    margin-top: 8px;
  }

  .mvs-body {
    padding-top: 14px;
  }

  .mvs-plant-preview {
    background: #f5f4f0;
    border-radius: 16px;
    min-height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
  }

  .mvs-plant-preview img {
    width: 100%;
    height: 250px;
    object-fit: contain;
    display: block;
  }

  .mvs-plant-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    font-size: 8px;
    color: #0f7eff;
    background: #eff6ff;
    border-radius: 999px;
    padding: 4px 8px;
  }

  .mvs-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 14px 0 0;
  }

  .mvs-tag {
    font-size: 10px;
    color: #444;
    background: #f5f4f0;
    border-radius: 999px;
    padding: 5px 9px;
  }

  .mvs-actions {
    display: flex;
    gap: 8px;
    margin-top: 14px;
  }

  .mvs-btn-primary,
  .mvs-btn-wa,
  .mvs-pano-btn-back,
  .mvs-pano-btn-consult {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    min-height: 42px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    border: 1px solid transparent;
  }

  .mvs-btn-primary {
    flex: 1;
    background: #0f7eff;
    color: #fff;
  }

  .mvs-btn-wa {
    min-width: 110px;
    background: #25d366;
    border-color: #25d366;
    color: #fff;
  }

  .mvs-btn-wa::before,
  .mvs-pano-btn-consult::before {
    content: '';
    display: inline-block;
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'><path fill='white' d='M27.1 4.9A15.8 15.8 0 0 0 2.9 24.8L1 31l6.4-1.7a15.8 15.8 0 0 0 7.5 1.9h.1A15.9 15.9 0 0 0 27.1 4.9Zm-12 23.6h-.1a13.1 13.1 0 0 1-6.6-1.8l-.5-.3-3.8 1 1-3.7-.3-.5a13.1 13.1 0 1 1 10.3 5.3Zm7.2-9.8c-.4-.2-2.4-1.2-2.8-1.3-.4-.1-.6-.2-.9.2-.3.4-1 1.3-1.2 1.6-.2.3-.5.3-.9.1-.4-.2-1.8-.7-3.3-2.1-1.2-1.1-2-2.4-2.2-2.8-.2-.4 0-.6.2-.8l.6-.7c.2-.2.3-.4.4-.6.1-.2.1-.5 0-.7-.1-.2-.9-2.2-1.3-3-.3-.7-.6-.6-.9-.6h-.8c-.3 0-.7.1-1 .5-.4.4-1.4 1.4-1.4 3.3 0 1.9 1.4 3.8 1.6 4 .2.3 2.8 4.3 6.9 6 .9.4 1.6.6 2.2.8.9.3 1.8.2 2.4.1.7-.1 2.4-1 2.7-1.9.3-.9.3-1.7.2-1.9-.1-.2-.4-.3-.8-.5Z'/></svg>");
  }

  /* ── ESTADO PANORAMA ───────────────────────────────── */
  .mobile-visor-sheet-panel.mode-pano {
    background: #ffffff;
  }

  .mobile-visor-sheet-panel.mode-pano .mobile-visor-sheet-handle span {
    background: #d5d7dc;
  }

  .mobile-visor-sheet-panel.mode-pano .mobile-visor-sheet-close {
    background: #f5f5f7;
    border-color: rgba(0,0,0,0.08);
    color: #6b7280;
  }

  .mvs-pano {
    display: none;
    color: #111827;
  }

  .mobile-visor-sheet-panel.mode-pano .mvs-overview {
    display: none;
  }

  .mobile-visor-sheet-panel.mode-pano .mvs-pano {
    display: block;
  }

  .mvs-pano-topbar {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-height: 48px !important;
    margin-bottom: 10px !important;
    padding-right: 46px !important;
  }

  .mvs-pano-meta,
  .mvs-pano-space-kicker {
    display: none !important;
  }

  .mvs-pano-btn-back {
    background: #0f7eff;
    border-color: #0f7eff;
    color: #fff;
  }

  .mvs-pano-btn-consult {
    background: #25d366;
    border-color: #25d366;
    color: #fff;
  }

  .mvs-pano-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 0 0 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .mvs-pano-tabs::-webkit-scrollbar {
    display: none;
  }

  .mvs-pano-tab {
    flex: 0 0 auto;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(0,0,0,0.08);
    background: #ffffff;
    color: #111827;
    font-size: 10px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
  }

  .mvs-pano-tab.active {
    background: rgba(15,126,255,0.12);
    border-color: rgba(15,126,255,0.22);
    color: #0f7eff;
  }

  .mvs-pano-stage {
    position: relative;
    min-height: 64svh;
    height: 64svh;
    border-radius: 18px;
    overflow: hidden;
    background: #f5f4f0;
    border: 1px solid rgba(0,0,0,0.06);
  }

  .mvs-pano-stage::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 84px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.18), transparent);
    pointer-events: none;
    z-index: 2;
  }

  .mvs-pano-viewer {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
  }

  .mvs-pano-viewer .pnlm-container,
  .mvs-pano-viewer .pnlm-render-container,
  .mvs-pano-viewer canvas {
    top: 0 !important;
    left: 0 !important;
  }

  .mvs-pano-space-card {
    position: absolute;
    left: 12px;
    right: auto;
    bottom: 12px;
    top: auto;
    z-index: 4;
    width: calc(100% - 176px);
    max-width: calc(100% - 176px);
    min-height: 42px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255,255,255,0.76);
    border: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 16px 36px rgba(0,0,0,0.10);
  }

  .mvs-pano-space-title {
    font-size: 15px;
    line-height: 1.05;
    color: #171c27;
    margin-top: 0;
    margin-bottom: 4px;
  }

  .mvs-pano-space-desc {
    font-size: 12px;
    line-height: 1.35;
    color: #5d6370;
  }

  .mvs-pano-controls {
    display: flex;
    position: absolute;
    right: 12px;
    bottom: 12px;
    z-index: 4;
    gap: 8px;
  }

  .mvs-pano-ctrl {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(0,0,0,0.10);
    background: rgba(255,255,255,0.84);
    color: #111827;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    font-size: 18px;
    box-shadow: 0 10px 24px rgba(0,0,0,0.12);
  }
}

@media (max-width: 480px) {
  .mobile-visor-sheet-content {
    padding-left: 12px;
    padding-right: 12px;
  }

  .mvs-pano-topbar {
    flex-wrap: wrap !important;
    row-gap: 8px !important;
    padding-right: 42px !important;
  }

  .mvs-pano-btn-back,
  .mvs-pano-btn-consult,
  .mvs-btn-wa {
    min-width: 0 !important;
  }

  .mvs-pano-stage {
    min-height: 60svh;
    height: 60svh;
  }

  .mvs-pano-space-card {
    left: 10px;
    bottom: 10px;
    width: calc(100% - 162px);
    max-width: calc(100% - 162px);
    padding: 10px 12px;
  }

  .mvs-pano-space-title {
    font-size: 14px;
  }

  .mvs-pano-space-desc {
    font-size: 11px;
  }
}

/* ===== FIN: mobile_visor_final_consolidado.css ===== */

/* ===== INICIO: mobile_visor_final_consolidado_v1_4.css ===== */


/* ══════════════════════════════════════════════════════════
MOBILE VISOR FINAL CONSOLIDADO v1.4
Micro ajuste: más aire horizontal en CTAs del modal
Cargar DESPUÉS de mobile_visor_final_consolidado.css
══════════════════════════════════════════════════════════ */

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* Más aire en los botones del estado planta */
  .mvs-btn-primary,
  .mvs-btn-wa {
    padding-left: 18px !important;
    padding-right: 18px !important;
    letter-spacing: 1.1px !important;
  }

  .mvs-btn-wa {
    min-width: 126px !important;
  }

  /* Más aire en los botones del estado panorama */
  .mvs-pano-btn-back,
  .mvs-pano-btn-consult {
    padding-left: 18px !important;
    padding-right: 18px !important;
    letter-spacing: 1.1px !important;
    min-width: 126px !important;
  }
}

@media (max-width: 480px) {
  .mvs-btn-primary,
  .mvs-btn-wa,
  .mvs-pano-btn-back,
  .mvs-pano-btn-consult {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  .mvs-btn-wa,
  .mvs-pano-btn-back,
  .mvs-pano-btn-consult {
    min-width: 118px !important;
  }
}

/* ===== FIN: mobile_visor_final_consolidado_v1_4.css ===== */

/* ===== INICIO: galeria_mobile_hide_lightbox_card.css ===== */

/* ══════════════════════════════════════════════════════════
GALERÍA MOBILE HIDE LIGHTBOX CARD
Oculta la tarjeta/caption superpuesta sobre la imagen en el lightbox móvil
Sin tocar JS ni navegación
Cargar AL FINAL de la cadena CSS
══════════════════════════════════════════════════════════ */

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  /* Selectores comunes del lightbox de galería */
  #gallery-lightbox .gallery-lightbox-card,
  #gallery-lightbox .gallery-lightbox-meta,
  #gallery-lightbox .gallery-lightbox-info,
  #gallery-lightbox .gallery-lightbox-caption,
  #gallery-lightbox .gallery-lightbox-content,
  .gallery-lightbox .gallery-lightbox-card,
  .gallery-lightbox .gallery-lightbox-meta,
  .gallery-lightbox .gallery-lightbox-info,
  .gallery-lightbox .gallery-lightbox-caption,
  .gallery-lightbox .gallery-lightbox-content,
  #galeria-lightbox .galeria-lightbox-card,
  #galeria-lightbox .galeria-lightbox-meta,
  #galeria-lightbox .galeria-lightbox-info,
  #galeria-lightbox .galeria-lightbox-caption,
  #galeria-lightbox .galeria-lightbox-content,
  .galeria-lightbox .galeria-lightbox-card,
  .galeria-lightbox .galeria-lightbox-meta,
  .galeria-lightbox .galeria-lightbox-info,
  .galeria-lightbox .galeria-lightbox-caption,
  .galeria-lightbox .galeria-lightbox-content,

  /* Variantes genéricas si el lightbox usa naming mixto */
  [id*="gallery"][id*="lightbox"] [class*="card"],
  [id*="gallery"][id*="lightbox"] [class*="caption"],
  [id*="gallery"][id*="lightbox"] [class*="meta"],
  [id*="gallery"][id*="lightbox"] [class*="info"],
  [class*="gallery"][class*="lightbox"] [class*="card"],
  [class*="gallery"][class*="lightbox"] [class*="caption"],
  [class*="gallery"][class*="lightbox"] [class*="meta"],
  [class*="gallery"][class*="lightbox"] [class*="info"],
  [id*="galeria"][id*="lightbox"] [class*="card"],
  [id*="galeria"][id*="lightbox"] [class*="caption"],
  [id*="galeria"][id*="lightbox"] [class*="meta"],
  [id*="galeria"][id*="lightbox"] [class*="info"],
  [class*="galeria"][class*="lightbox"] [class*="card"],
  [class*="galeria"][class*="lightbox"] [class*="caption"],
  [class*="galeria"][class*="lightbox"] [class*="meta"],
  [class*="galeria"][class*="lightbox"] [class*="info"] {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* ===== FIN: galeria_mobile_hide_lightbox_card.css ===== */

/* ===== INICIO: ubicacion_premium_v1.css ===== */

/* ══════════════════════════════════════════════════════════
UBICACIÓN PREMIUM v1 (CSS ONLY)
Objetivo:
- quitar visualmente la card overlay del mapa embebido
- darle a Ubicación un lenguaje más premium y más limpio
- mantener cero riesgo sobre menú / navegación / JS
Cargar AL FINAL de la cadena CSS
══════════════════════════════════════════════════════════ */

/* ── DESKTOP + MOBILE: mapa más limpio y premium ───────── */
#s-ubicacion .map-panel-v5 {
  overflow: hidden;
}

#s-ubicacion .map-frame-v5 {
  position: relative;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #f6f8fb 0%, #edf2f8 100%);
  box-shadow: 0 20px 42px rgba(17,24,39,0.08);
}

/* Hack visual para sacar de vista la tarjeta superior del embed */
#s-ubicacion #mapa-iframe {
  width: 100% !important;
  height: calc(100% + 72px) !important;
  transform: translateY(-72px);
  border: 0 !important;
}

/* un pequeño velo arriba para rematar el corte */
#s-ubicacion .map-frame-v5::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 16px;
  background: linear-gradient(to bottom, rgba(246,248,251,0.98), rgba(246,248,251,0));
  pointer-events: none;
  z-index: 3;
}

/* Placeholder coherente si no hay mapa */
#s-ubicacion .map-placeholder-v5 {
  border-radius: 22px !important;
  background: linear-gradient(180deg, #f7f9fc 0%, #eef3f9 100%) !important;
}

/* ── PANEL DE DETALLES ─────────────────────────────────── */
#s-ubicacion .details-panel-v5 {
  border-radius: 24px !important;
}

#s-ubicacion .shell-title-v5 {
  letter-spacing: -0.025em;
}

#s-ubicacion .shell-copy-v5 {
  max-width: 44ch;
  line-height: 1.72;
}

/* POIs más premium y táctiles */
#s-ubicacion .pois-list-shell-v5 {
  display: grid;
  gap: 12px;
  margin-top: 6px;
}

#s-ubicacion .pois-list-shell-v5 > * {
  border-radius: 18px !important;
  border: 1px solid rgba(17,24,39,0.08) !important;
  background: rgba(255,255,255,0.84) !important;
  box-shadow: 0 10px 24px rgba(17,24,39,0.04);
}

/* CTA principal */
#s-ubicacion #mapa-link {
  min-height: 48px;
  border-radius: 14px !important;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  font-size: 11px;
  font-weight: 700;
}

/* ── MOBILE FIRST ──────────────────────────────────────── */
@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  #s-ubicacion .section-scroller-v5.two-col-shell-v5 {
    gap: 14px !important;
  }

  #s-ubicacion .map-panel-v5,
  #s-ubicacion .details-panel-v5 {
    border-radius: 22px !important;
  }

  #s-ubicacion .map-frame-v5 {
    min-height: 292px !important;
    border-radius: 20px !important;
  }

  /* en móvil el overlay del embed molesta más, por eso lo recortamos más */
  #s-ubicacion #mapa-iframe {
    height: calc(100% + 86px) !important;
    transform: translateY(-86px);
  }

  #s-ubicacion .map-frame-v5::before {
    height: 20px;
  }

  #s-ubicacion .details-panel-v5 {
    padding-top: 18px !important;
  }

  #s-ubicacion .shell-title-v5 {
    margin-bottom: 8px !important;
  }

  #s-ubicacion .shell-copy-v5 {
    font-size: 14px !important;
    line-height: 1.68 !important;
    max-width: none !important;
  }

  #s-ubicacion .pois-list-shell-v5 {
    gap: 10px;
  }

  #s-ubicacion .pois-list-shell-v5 > * {
    border-radius: 16px !important;
  }

  #s-ubicacion #mapa-link {
    width: 100%;
    justify-content: center;
  }
}

/* ===== FIN: ubicacion_premium_v1.css ===== */

/* ===== INICIO: ubicacion_mapbox_v1.css ===== */

/* ══════════════════════════════════════════════════════════
UBICACIÓN MAPBOX v1
Mapa premium con pin custom + popup editorial
Cargar al final de la cadena CSS
══════════════════════════════════════════════════════════ */

#s-ubicacion .map-frame-v5 {
  position: relative;
  overflow: hidden !important;
  border-radius: 22px !important;
  background: linear-gradient(180deg, #f6f8fb 0%, #edf2f8 100%);
  box-shadow: 0 20px 42px rgba(17,24,39,0.08);
}

#s-ubicacion #mapa-iframe {
  display: none !important;
}

#s-ubicacion #mapa-canvas-v1 {
  position: relative;
  width: 100%;
  min-height: 340px;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
}

#s-ubicacion .mapboxgl-map,
#s-ubicacion .mapboxgl-canvas {
  border-radius: 22px;
}

#s-ubicacion .mapboxgl-ctrl-bottom-left,
#s-ubicacion .mapboxgl-ctrl-bottom-right {
  z-index: 4;
}

#s-ubicacion .alcare-marker-v1 {
  position: relative;
  width: 28px;
  height: 28px;
  transform: translate(-50%, -100%);
}

#s-ubicacion .alcare-marker-v1::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  background: linear-gradient(135deg, var(--marker-core, #0f7eff) 0%, #4ba3ff 100%);
  box-shadow: 0 10px 22px rgba(15,126,255,0.28);
}

#s-ubicacion .alcare-marker-v1::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  left: 9px;
  top: 9px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--marker-ring, #d2ab6f);
  z-index: 1;
}

#s-ubicacion .alcare-popup-v1 {
  min-width: 220px;
  max-width: 260px;
  padding: 14px 14px 12px;
  border-radius: 16px;
  background: rgba(10,14,22,0.92);
  color: #fff;
  box-shadow: 0 18px 36px rgba(0,0,0,0.22);
  backdrop-filter: blur(10px);
}

#s-ubicacion .alcare-popup-kicker-v1 {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(15,126,255,0.18);
  border: 1px solid rgba(15,126,255,0.24);
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.84);
  margin-bottom: 10px;
}

#s-ubicacion .alcare-popup-title-v1 {
  font-size: 24px;
  line-height: 1.06;
  font-weight: 600;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

#s-ubicacion .alcare-popup-address-v1 {
  font-size: 12px;
  line-height: 1.45;
  color: rgba(255,255,255,0.76);
}

#s-ubicacion .mapboxgl-popup-content {
  padding: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

#s-ubicacion .mapboxgl-popup-tip {
  border-top-color: rgba(10,14,22,0.92) !important;
}

#s-ubicacion .mapboxgl-popup-close-button {
  color: rgba(255,255,255,0.76);
  font-size: 18px;
  padding: 8px 10px;
}

@media (max-width: 960px), (orientation: landscape) and (max-height: 560px) {
  #s-ubicacion #mapa-canvas-v1 {
    min-height: 292px;
    border-radius: 20px;
  }

  #s-ubicacion .mapboxgl-map,
  #s-ubicacion .mapboxgl-canvas {
    border-radius: 20px;
  }

  #s-ubicacion .alcare-popup-v1 {
    min-width: 180px;
    max-width: 220px;
    padding: 12px 12px 10px;
    border-radius: 14px;
  }

  #s-ubicacion .alcare-popup-title-v1 {
    font-size: 20px;
  }

  #s-ubicacion .alcare-popup-address-v1 {
    font-size: 11px;
  }
}

/* ===== FIN: ubicacion_mapbox_v1.css ===== */
