:root {
  --purple: #6B4EE6; --purple-dark: #4C1D95; --purple-mid: #8B5CF6; --purple-light: #F5F2FF; --purple-border: #E9E5F8;
  --green: #22C55E; --green-dark: #15803D; --green-light: #DCFCE7;
  --red: #FB7185; --red-dark: #E11D48; --red-light: #FFE4E6;
  --amber: #F59E0B; --amber-dark: #B45309; --amber-light: #FEF3C7;
  --blue: #3B82F6; --blue-deep: #1E40AF; --blue-light: #E0F2FE;
  --teal: #14B8A6; --teal-dark: #0F766E; --teal-light: #CCFBF1;
  --ink: #1E1B2E; --gray: #6B7280; --gray-2: #8B87A0; --gray-3: #A5A0B8;
  --bg: #F5F2FF; --surface: #FFFFFF; --border: #E9E5F8;
  --r-lg: 20px; --r-md: 16px; --r-sm: 12px;
  --shadow: 0 2px 10px rgba(107,78,230,0.07);
  --grad-purple: linear-gradient(135deg, #6B4EE6, #8B5CF6);
  --grad-green: linear-gradient(135deg, #22C55E, #16A34A);
  --grad-blue: linear-gradient(135deg, #1E40AF, #3B82F6);
  --grad-ink: linear-gradient(135deg, #1E1B2E, #2D2A45);
  --grad-amber: linear-gradient(135deg, #F59E0B, #D97706);
  --grad-teal: linear-gradient(135deg, #14B8A6, #0D9488);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
  background: var(--bg); color: var(--ink); font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
button { font-family: inherit; }
p { margin: 0; }
::-webkit-scrollbar { width: 0; height: 0; }
* { scrollbar-width: none; }

/* ===== LOGIN ===== */
.login-wrap {
  min-height: 100vh; min-height: 100dvh;
  background: linear-gradient(165deg, #6B4EE6 0%, #8B5CF6 45%, #14B8A6 130%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px;
}
.login-logo { text-align: center; margin-bottom: 22px; }
.login-logo .mark {
  display: inline-flex; width: 64px; height: 64px; border-radius: 20px; background: white;
  align-items: center; justify-content: center; box-shadow: 0 10px 34px rgba(0,0,0,0.2);
}
.login-logo .mark i { font-size: 32px; color: var(--purple); }
.login-logo h1 { color: white; font-size: 30px; margin: 12px 0 0; letter-spacing: -1px; }
.login-logo p { color: rgba(255,255,255,0.92); font-size: 12.5px; margin: 4px 0 0; }
.login-card {
  background: white; border-radius: 22px; padding: 20px; width: 100%; max-width: 380px;
  box-shadow: 0 16px 50px rgba(0,0,0,0.18);
}

/* ===== APP LAYOUT ===== */
#app { min-height: 100vh; min-height: 100dvh; }
.layout { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.topbar {
  color: white; padding: 16px 18px 18px; border-radius: 0 0 26px 26px;
  box-shadow: 0 8px 24px rgba(107,78,230,0.2); position: relative; z-index: 5;
}
.topbar.role-resident, .topbar.role-tenant, .topbar.role-family { background: linear-gradient(135deg, #6B4EE6, #9333EA); }
.topbar.role-admin { background: var(--grad-purple); }
.topbar.role-master { background: linear-gradient(135deg, #1E1B2E 0%, #3B2D66 60%, #6B4EE6 100%); }
.topbar.role-hq { background: linear-gradient(135deg, #1E1B2E, #4C33B8); }
.topbar.role-security { background: var(--grad-blue); }
.topbar.role-maintenance { background: linear-gradient(135deg, #15803D, #22C55E); }
.topbar.role-superadmin { background: linear-gradient(135deg, #7C3AED, #A78BFA); }
.topbar-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.topbar .avatar {
  width: 40px; height: 40px; border-radius: 13px; background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: white; flex-shrink: 0;
}
.topbar .greeting { font-size: 10.5px; opacity: 0.85; color: white; }
.topbar .name { font-size: 15px; font-weight: 700; margin-top: 2px; color: white; }
.topbar .role-badge {
  background: rgba(255,255,255,0.22); padding: 5px 11px; border-radius: 999px;
  font-size: 10.5px; font-weight: 600; color: white; white-space: nowrap;
}
.topbar .icon-btn-light {
  background: rgba(255,255,255,0.22); border: none; color: white; width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer; font-size: 14px;
}
.support-banner {
  background: var(--grad-amber); color: white; padding: 9px 16px;
  display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700;
}
.support-banner span { flex: 1; color: white; }
.support-banner button {
  background: rgba(255,255,255,0.25); border: none; color: white; padding: 5px 12px;
  border-radius: 999px; font-size: 11px; font-weight: 700; cursor: pointer;
}
.content { flex: 1; padding: 16px 16px 100px; max-width: 560px; width: 100%; margin: 0 auto; }
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0; background: white;
  padding: 8px 4px calc(10px + env(safe-area-inset-bottom)); display: flex; justify-content: space-around;
  box-shadow: 0 -4px 20px rgba(107,78,230,0.08); border-radius: 22px 22px 0 0; z-index: 50;
}
.nav-btn {
  background: none; border: none; padding: 7px 2px; display: flex; flex-direction: column;
  align-items: center; gap: 3px; color: var(--gray-3); font-size: 9px; font-weight: 600;
  cursor: pointer; flex: 1; position: relative; max-width: 90px;
}
.nav-btn i { font-size: 21px; }
.nav-btn.active { color: var(--purple); }
.nav-btn.active::after {
  content: ''; position: absolute; top: -9px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--purple); border-radius: 0 0 4px 4px;
}
.sidebar { display: none; }

/* ===== ESCRITORIO ===== */
@media (min-width: 920px) {
  .layout { flex-direction: row; }
  .bottom-nav { display: none; }
  .sidebar {
    display: flex; flex-direction: column; width: 240px; flex-shrink: 0;
    background: white; min-height: 100vh; padding: 20px 14px;
    box-shadow: 4px 0 24px rgba(107,78,230,0.06); position: sticky; top: 0; height: 100vh;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; }
  .sidebar .brand .mark {
    width: 38px; height: 38px; border-radius: 12px; background: var(--grad-purple);
    display: flex; align-items: center; justify-content: center; color: white; font-size: 19px;
  }
  .sidebar .brand p { font-size: 19px; font-weight: 700; letter-spacing: -0.5px; }
  .side-btn {
    display: flex; align-items: center; gap: 11px; background: none; border: none;
    padding: 12px 12px; border-radius: 13px; font-size: 13.5px; font-weight: 600;
    color: var(--gray); cursor: pointer; text-align: left; margin-bottom: 3px;
  }
  .side-btn i { font-size: 19px; width: 22px; text-align: center; }
  .side-btn.active { background: var(--purple-light); color: var(--purple); }
  .side-btn:hover { background: #FAFAFE; }
  .main-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
  .topbar { border-radius: 0 0 22px 22px; }
  .content { max-width: 860px; padding: 22px 28px 60px; }
  .grid-2-desk { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
  .modal-content { max-width: 480px; margin: 0 auto; border-radius: 24px; max-height: 86vh; }
  .modal { align-items: center; }
}

/* ===== COMPONENTES ===== */
.card {
  background: var(--surface); border-radius: var(--r-lg); padding: 14px;
  margin-bottom: 10px; box-shadow: var(--shadow); border: none;
}
button.card { cursor: pointer; text-align: left; width: 100%; }
.hero-card {
  background: linear-gradient(135deg, #6B4EE6 0%, #9333EA 60%, #C026D3 130%);
  color: white; border-radius: 22px; padding: 18px; margin-bottom: 12px;
  box-shadow: 0 10px 30px rgba(107,78,230,0.3);
}
.hero-card * { color: white; }
.hero-card .label { font-size: 11px; opacity: 0.85; }
.hero-card .amount { font-size: 30px; font-weight: 700; margin-top: 4px; letter-spacing: -0.5px; }
.hero-card.ink { background: var(--grad-ink); }
.hero-card.green { background: linear-gradient(135deg, #22C55E, #14B8A6); }
.section-title {
  font-size: 12px; font-weight: 700; color: var(--purple); margin: 16px 0 9px;
  display: flex; align-items: center; gap: 6px; text-transform: uppercase; letter-spacing: 0.6px;
}
.section-title .link { margin-left: auto; font-size: 10px; color: var(--gray-3); cursor: pointer; text-transform: none; letter-spacing: 0; }
.list-item {
  background: var(--surface); border-radius: var(--r-md); padding: 12px;
  margin-bottom: 8px; display: flex; align-items: center; gap: 11px; box-shadow: var(--shadow);
}
.icon-wrap {
  width: 40px; height: 40px; border-radius: 13px; display: flex; align-items: center;
  justify-content: center; font-size: 18px; flex-shrink: 0;
}
.list-item .info { flex: 1; min-width: 0; }
.list-item .title { font-size: 13px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.list-item .subtitle { font-size: 10.5px; color: var(--gray-2); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; }
.btn {
  border: none; border-radius: var(--r-md); padding: 13px; font-size: 13px; font-weight: 600;
  cursor: pointer; width: 100%; display: flex; align-items: center; justify-content: center; gap: 7px;
}
.btn-primary { background: var(--grad-purple); color: white; box-shadow: 0 4px 14px rgba(107,78,230,0.3); }
.btn-green { background: var(--grad-green); color: white; box-shadow: 0 4px 14px rgba(34,197,94,0.25); }
.btn-blue { background: var(--grad-blue); color: white; }
.btn-teal { background: var(--grad-teal); color: white; }
.btn-amber { background: var(--grad-amber); color: white; }
.btn-red { background: linear-gradient(135deg, #FB7185, #F43F5E); color: white; }
.btn-sm { width: auto; padding: 8px 13px; font-size: 11px; border-radius: 999px; display: inline-flex; }
.pill {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  border-radius: 999px; font-size: 10px; font-weight: 600; white-space: nowrap;
}
.pill-green { background: var(--green-light); color: var(--green-dark); }
.pill-amber { background: var(--amber-light); color: var(--amber-dark); }
.pill-red { background: var(--red-light); color: var(--red-dark); }
.pill-blue { background: var(--blue-light); color: #0369A1; }
.pill-purple { background: var(--purple-light); color: var(--purple); }
.pill-gray { background: #F1F0F5; color: var(--gray); }
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 12px; color: var(--gray); margin-bottom: 6px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 1.5px solid var(--purple-border);
  background: white; font-size: 14px; outline: none; font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--purple); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; }
.action-tile {
  border: none; border-radius: var(--r-lg); padding: 15px 13px; cursor: pointer;
  text-align: left; box-shadow: var(--shadow); background: white;
}
.action-tile i { font-size: 24px; }
.action-tile .t { font-size: 13px; font-weight: 700; margin-top: 7px; }
.action-tile .d { font-size: 9px; color: var(--gray-3); margin-top: 2px; }
.action-tile.grad-purple { background: var(--grad-purple); box-shadow: 0 6px 18px rgba(107,78,230,0.3); }
.action-tile.grad-purple .t, .action-tile.grad-purple i { color: white; }
.action-tile.grad-purple .d { color: rgba(255,255,255,0.8); }
.stat-box { border-radius: var(--r-md); padding: 11px 4px; text-align: center; border: none; cursor: default; }
button.stat-box { cursor: pointer; }
.stat-num { font-size: 20px; font-weight: 700; }
.stat-label { font-size: 8px; font-weight: 700; margin-top: 2px; letter-spacing: 0.4px; }
.bg-amber-g { background: linear-gradient(160deg, #FEF3C7, #FDE68A); }
.bg-green-g { background: linear-gradient(160deg, #DCFCE7, #BBF7D0); }
.bg-blue-g { background: linear-gradient(160deg, #E0F2FE, #BAE6FD); }
.bg-teal-g { background: linear-gradient(160deg, #CCFBF1, #99F6E4); }
.bg-red-g { background: linear-gradient(160deg, #FFE4E6, #FECDD3); }
.bg-purple-g { background: linear-gradient(160deg, #F5F2FF, #EDE9FB); }
.gbar { width: 100%; height: 7px; background: #EDE9FB; border-radius: 999px; overflow: hidden; }
.gbar > div { height: 100%; border-radius: 999px; transition: width 0.4s; }
.chip-row { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 6px; margin-bottom: 10px; }
.chip {
  flex-shrink: 0; background: white; border: none; padding: 9px 14px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: var(--gray); cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(107,78,230,0.06);
}
.chip.active { background: var(--grad-purple); color: white; }
.hscroll { display: flex; gap: 9px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -2px; }
.hcard {
  flex-shrink: 0; border-radius: 18px; cursor: pointer; border: none; text-align: left;
  box-shadow: 0 3px 12px rgba(107,78,230,0.08); width: 106px; padding: 11px;
}
.hcard .ic {
  width: 32px; height: 32px; border-radius: 10px; color: white; display: flex;
  align-items: center; justify-content: center; font-size: 15px; margin-bottom: 18px;
}
.hcard .t { font-size: 12px; font-weight: 700; }
.hcard .d { font-size: 9px; margin-top: 2px; }
.slot-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
@media (min-width: 920px) { .slot-grid { grid-template-columns: repeat(6, 1fr); } }
.slot {
  border: none; border-radius: 12px; padding: 12px 4px; font-size: 13px; font-weight: 700;
  cursor: pointer; display: flex; flex-direction: column; gap: 2px; align-items: center;
}
.slot span { font-size: 9px; font-weight: 600; }
.slot.free { background: linear-gradient(160deg, #DCFCE7, #BBF7D0); color: var(--green-dark); }
.slot.taken { background: var(--red-light); color: var(--red-dark); }
.slot.mine { background: var(--grad-purple); color: white; }
.spot {
  aspect-ratio: 1.1; border-radius: 10px; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1px; font-size: 9px; font-weight: 700; cursor: pointer; border: none;
}
.spots-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.privacy-note {
  font-size: 10.5px; color: var(--gray-3); text-align: center; margin: 0 0 14px;
  display: flex; align-items: center; justify-content: center; gap: 5px;
}
.privacy-badge {
  background: var(--green-light); color: #14532D; border-radius: 13px; padding: 10px 12px;
  font-size: 11px; font-weight: 500; display: flex; align-items: flex-start; gap: 8px; line-height: 1.4;
}
.privacy-badge i { font-size: 16px; flex-shrink: 0; color: var(--green-dark); }
.bar-row { display: flex; align-items: center; gap: 9px; margin-bottom: 8px; }
.bar-label { font-size: 11px; color: var(--gray); width: 90px; font-weight: 600; display: flex; align-items: center; gap: 4px; }
.bar-track { flex: 1; height: 8px; background: var(--purple-light); border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; }
.bar-num { font-size: 12px; font-weight: 700; width: 28px; text-align: right; }
.type-chip {
  display: inline-block; background: var(--purple-light); color: var(--purple);
  font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 999px; vertical-align: 2px; margin-left: 4px;
}
.msg { border-radius: 16px; padding: 10px 13px; margin-bottom: 8px; max-width: 84%; font-size: 12.5px; line-height: 1.45; }
.msg.me { background: var(--grad-purple); color: white; margin-left: auto; border-bottom-right-radius: 5px; }
.msg.me p, .msg.me small { color: white; }
.msg.them { background: white; border-bottom-left-radius: 5px; box-shadow: 0 2px 6px rgba(107,78,230,0.07); }
.msg small { display: block; font-size: 9px; opacity: 0.6; margin-top: 3px; }
.ph {
  background: linear-gradient(135deg, #C4B5FD, #8B5CF6); border-radius: 12px;
  display: flex; align-items: center; justify-content: center; color: white; position: relative; overflow: hidden;
}
.camview {
  background: linear-gradient(150deg, #2D2A45, #1E1B2E); border-radius: 16px; position: relative; overflow: hidden;
}
.scanline {
  position: absolute; left: 22px; right: 22px; height: 2px; background: #22C55E;
  box-shadow: 0 0 14px #22C55E; animation: scanmove 2s ease-in-out infinite; top: 22px;
}
@keyframes scanmove { 0%,100% { top: 22px; } 50% { top: calc(100% - 22px); } }
@keyframes kpulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.pulse { animation: kpulse 2.5s infinite; }
.qr-wrap { background: #FAFAFE; border-radius: 18px; padding: 16px; text-align: center; }
.qr-code-text { font-size: 12px; margin-top: 9px; font-family: monospace; letter-spacing: 2px; font-weight: 700; color: var(--purple); }
.stars i { font-size: 26px; color: var(--purple-border); cursor: pointer; }
.stars i.on { color: var(--amber); }
.timeline { padding-left: 15px; }
.timeline .tl-item { position: relative; padding-bottom: 11px; font-size: 12.5px; }
.timeline .tl-item::before {
  content: ''; position: absolute; left: -15px; top: 4px; width: 8px; height: 8px;
  border-radius: 50%; background: #C4B5FD;
}
.timeline .tl-item:last-child::before { background: var(--green); }

/* ===== MODAL ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; }
.modal.hidden { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(30,27,46,0.55); backdrop-filter: blur(2px); }
.modal-content {
  position: relative; background: #FDFCFF; width: 100%; border-radius: 24px 24px 0 0;
  max-height: 92vh; overflow-y: auto; padding: 0 16px 20px;
}
.modal-header {
  display: flex; justify-content: space-between; align-items: center; padding: 18px 0 12px;
  position: sticky; top: 0; background: #FDFCFF; z-index: 5;
}
.modal-header::before {
  content: ''; position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
  width: 40px; height: 4px; background: var(--purple-border); border-radius: 999px;
}
.modal-header h3 { margin: 8px 0 0; font-size: 16px; }
.icon-btn {
  background: var(--purple-light); border: none; width: 32px; height: 32px; border-radius: 50%;
  font-size: 15px; color: var(--purple); cursor: pointer; margin-top: 8px;
}

/* ===== TOAST ===== */
.toast {
  position: fixed; bottom: 100px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: white; padding: 11px 18px; border-radius: 999px;
  font-size: 12px; font-weight: 600; z-index: 300; box-shadow: 0 8px 24px rgba(0,0,0,0.25);
  max-width: 88%; text-align: center;
}
.toast.hidden { display: none; }
.toast.success { background: var(--grad-green); }
.toast.error { background: linear-gradient(135deg, #FB7185, #F43F5E); }

.loading { text-align: center; padding: 40px 20px; color: var(--gray-3); font-size: 13px; }
.empty { text-align: center; padding: 34px 20px; }
.empty .big-icon {
  display: inline-flex; width: 58px; height: 58px; border-radius: 18px; background: var(--purple-light);
  color: var(--purple); align-items: center; justify-content: center; font-size: 27px; margin-bottom: 10px;
}
.empty p.t { font-weight: 700; font-size: 14px; }
.empty p.d { font-size: 12px; color: var(--gray-2); margin-top: 4px; }

/* ===== v6 · Back-office de escritorio ===== */
.tbl{width:100%;border-collapse:collapse;background:white;border-radius:16px;overflow:hidden;box-shadow:var(--shadow);font-size:12px;}
.tbl th{background:var(--purple-light);color:var(--purple-dark);text-align:left;padding:10px 12px;font-size:10.5px;letter-spacing:0.4px;text-transform:uppercase;}
.tbl td{padding:9px 12px;border-top:1px solid #F3F0FC;}
.tbl tr:hover td{background:#FBFAFF;}
.condo-switch{border:1.5px solid rgba(255,255,255,0.4);background:rgba(255,255,255,0.15);color:white;border-radius:12px;padding:7px 10px;font-size:12px;font-weight:700;font-family:inherit;outline:none;max-width:180px;}
.condo-switch option{color:var(--ink);}
.kpi-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px;margin-bottom:12px;}
.chartbar{display:flex;align-items:flex-end;gap:6px;height:150px;padding:12px;background:white;border-radius:18px;box-shadow:var(--shadow);}
.chartbar .col{flex:1;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:3px;height:100%;}
.chartbar .bars{display:flex;gap:2px;align-items:flex-end;height:100%;width:100%;justify-content:center;}
.chartbar .b{width:38%;border-radius:5px 5px 0 0;min-height:3px;}
.chartbar .lbl{font-size:8.5px;color:var(--gray-3);font-weight:700;}
@media (min-width: 920px){
  .layout.wide .content{max-width:1160px;}
  .grid-desk-2{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start;}
}
.mini-tr{background:none;border:none;color:var(--purple);font-size:10px;font-weight:700;cursor:pointer;padding:2px 0 0;font-family:inherit;display:inline-flex;align-items:center;gap:3px;}

/* ===== Visión 360 · Superdashboard ===== */
.v360-hero{background:linear-gradient(135deg,#1E1B2E 0%,#3B2D66 55%,#6B4EE6 100%);border-radius:24px;padding:22px 20px;color:white;position:relative;overflow:hidden;margin-bottom:14px;box-shadow:0 12px 32px rgba(59,45,102,0.35);}
.v360-hero::before{content:'';position:absolute;inset:0;background:radial-gradient(circle at 85% 15%,rgba(167,139,250,0.35),transparent 45%),radial-gradient(circle at 10% 90%,rgba(45,212,191,0.18),transparent 40%);}
.v360-hero>*{position:relative;}
.v360-num{font-size:30px;font-weight:800;letter-spacing:-1px;line-height:1;}
.v360-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:14px;margin-top:14px;}
.donut{width:130px;height:130px;border-radius:50%;position:relative;flex-shrink:0;}
.donut::after{content:'';position:absolute;inset:22px;background:white;border-radius:50%;}
.donut .c{position:absolute;inset:22px;display:flex;flex-direction:column;align-items:center;justify-content:center;z-index:1;}
.geo-bar{height:22px;border-radius:8px;background:linear-gradient(90deg,#6B4EE6,#A78BFA);display:flex;align-items:center;padding:0 8px;color:white;font-size:10px;font-weight:700;min-width:36px;transition:width .6s ease;}
.nse-row{display:flex;align-items:center;gap:10px;margin-bottom:8px;}
.nse-tag{width:38px;text-align:center;font-weight:800;font-size:12px;padding:5px 0;border-radius:9px;flex-shrink:0;}
.spark{width:100%;height:64px;}
.insight{display:flex;gap:10px;align-items:flex-start;background:linear-gradient(135deg,#F6F4FE,#EEF9F7);border:1.5px solid var(--purple-border);border-radius:16px;padding:11px 13px;margin-bottom:8px;}
@keyframes v360pop{from{opacity:0;transform:translateY(8px);}to{opacity:1;transform:none;}}
.v360-hero,.insight,.donut{animation:v360pop .45s ease both;}

/* ===== Bienvenida animada al iniciar sesión ===== */
.welcome-splash{position:fixed;inset:0;z-index:300;background:linear-gradient(135deg,#1E1B2E 0%,#3B2D66 55%,#6B4EE6 100%);display:flex;align-items:center;justify-content:center;animation:wsIn .3s ease;transition:opacity .45s ease;}
.welcome-splash.out{opacity:0;pointer-events:none;}
.ws-inner{text-align:center;color:white;}
.ws-logo{width:64px;height:64px;border-radius:20px;background:white;color:#6B4EE6;font-size:34px;font-weight:800;display:flex;align-items:center;justify-content:center;margin:0 auto 16px;animation:wsPop .55s cubic-bezier(.34,1.56,.64,1) both;box-shadow:0 12px 32px rgba(0,0,0,0.3);}
.ws-hi{font-size:14px;opacity:0.75;animation:wsUp .5s ease .18s both;}
.ws-name{font-size:26px;font-weight:800;margin-top:2px;animation:wsUp .5s ease .3s both;}
.ws-bar{width:120px;height:3.5px;border-radius:99px;background:rgba(255,255,255,0.2);margin:18px auto 0;overflow:hidden;animation:wsUp .5s ease .4s both;}
.ws-bar div{height:100%;width:0;border-radius:99px;background:white;animation:wsFill 1.1s ease .45s forwards;}
@keyframes wsIn{from{opacity:0;}}
@keyframes wsPop{from{transform:scale(0.4) rotate(-12deg);opacity:0;}to{transform:none;opacity:1;}}
@keyframes wsUp{from{opacity:0;transform:translateY(10px);}to{opacity:1;transform:none;}}
@keyframes wsFill{to{width:100%;}}
.gbar div{transition:width .5s ease;}
