/* VEGA_HUB_SHELL_V1 */
:root{
  --hub-bg:#eef5ff;
  --hub-bg-2:#f8fbff;
  --hub-sidebar:#ffffff;
  --hub-surface:#ffffff;
  --hub-surface-2:#f5f8ff;
  --hub-text:#101828;
  --hub-muted:#667085;
  --hub-border:rgba(15,23,42,.12);
  --hub-primary:#2563eb;
  --hub-primary-2:#0ea5e9;
  --hub-shadow:0 24px 70px rgba(15,23,42,.12);
  --hub-radius:22px;
}

html,
body{
  min-height:100%;
  margin:0;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.16), transparent 34rem),
    radial-gradient(circle at top right, rgba(14,165,233,.13), transparent 30rem),
    linear-gradient(135deg,#eaf2ff 0%,#f8fbff 52%,#f7f4ff 100%) !important;
  color:var(--hub-text) !important;
  font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif !important;
}

body.vega-hub-shell-enabled{
  padding:0 !important;
}

.vega-hub-layout{
  min-height:100vh;
  display:grid;
  grid-template-columns:250px minmax(0,1fr);
}

.vega-hub-sidebar{
  position:sticky;
  top:0;
  height:100vh;
  padding:22px 18px;
  background:rgba(255,255,255,.88);
  border-right:1px solid var(--hub-border);
  backdrop-filter:blur(16px);
  z-index:50;
}

.vega-hub-brand{
  display:flex;
  align-items:center;
  gap:10px;
  margin-bottom:28px;
}

.vega-hub-logo{
  width:38px;
  height:38px;
  border-radius:13px;
  display:grid;
  place-items:center;
  color:#fff;
  font-weight:950;
  background:linear-gradient(135deg,var(--hub-primary),var(--hub-primary-2));
  box-shadow:0 14px 30px rgba(37,99,235,.22);
}

.vega-hub-brand strong{
  display:block;
  color:var(--hub-text);
  font-size:17px;
  line-height:1.1;
}

.vega-hub-brand span{
  display:block;
  color:var(--hub-muted);
  font-size:12px;
  margin-top:3px;
}

.vega-hub-nav-title{
  margin:20px 0 8px;
  color:#98a2b3;
  font-size:11px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.vega-hub-nav{
  display:grid;
  gap:7px;
}

.vega-hub-nav a{
  display:flex;
  align-items:center;
  gap:9px;
  min-height:40px;
  padding:10px 12px;
  border-radius:13px;
  color:var(--hub-text) !important;
  text-decoration:none !important;
  font-size:14px;
  font-weight:750;
  border:1px solid transparent;
}

.vega-hub-nav a:hover,
.vega-hub-nav a.active{
  background:var(--hub-surface-2);
  border-color:var(--hub-border);
  color:var(--hub-primary) !important;
}

.vega-hub-main{
  min-width:0;
  display:flex;
  flex-direction:column;
}

.vega-hub-topbar{
  position:sticky;
  top:0;
  z-index:40;
  min-height:70px;
  padding:16px 28px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:rgba(248,251,255,.80);
  border-bottom:1px solid var(--hub-border);
  backdrop-filter:blur(16px);
}

.vega-hub-page-title{
  display:flex;
  flex-direction:column;
  gap:3px;
}

.vega-hub-page-title strong{
  color:var(--hub-text);
  font-size:16px;
}

.vega-hub-page-title span{
  color:var(--hub-muted);
  font-size:12px;
}

.vega-hub-user{
  display:flex;
  align-items:center;
  gap:10px;
}

.vega-hub-user-pill{
  padding:8px 11px;
  border:1px solid var(--hub-border);
  background:#fff;
  color:var(--hub-muted);
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}

.vega-hub-user-avatar{
  width:34px;
  height:34px;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:linear-gradient(135deg,var(--hub-primary),var(--hub-primary-2));
  color:#fff;
  font-weight:950;
}

.vega-hub-content{
  width:100%;
  max-width:1480px;
  margin:0 auto;
  padding:30px;
  flex:1;
}

.vega-hub-footer{
  margin-top:auto;
  padding:18px 30px 26px;
  color:var(--hub-muted);
  font-size:12px;
  text-align:center;
}

.vega-hub-mobile-toggle{
  display:none;
  border:1px solid var(--hub-border);
  background:#fff;
  color:var(--hub-text);
  border-radius:12px;
  padding:9px 11px;
  font-weight:900;
}

.vega-hub-inner{
  width:100%;
}

.vega-hub-inner > main,
.vega-hub-inner > .wrap,
.vega-hub-inner > .container{
  max-width:none !important;
  margin:0 !important;
  padding:0 !important;
}

/* normalización interna */
.vega-hub-inner .wrap{
  max-width:none !important;
}

.vega-hub-inner .card,
.vega-hub-inner section.card,
.vega-hub-inner article.card,
.vega-hub-inner .panel,
.vega-hub-inner .box{
  background:rgba(255,255,255,.88) !important;
  color:var(--hub-text) !important;
  border:1px solid var(--hub-border) !important;
  box-shadow:var(--hub-shadow) !important;
}

.vega-hub-inner h1,
.vega-hub-inner h2,
.vega-hub-inner h3,
.vega-hub-inner h4{
  color:var(--hub-text) !important;
}

.vega-hub-inner p,
.vega-hub-inner li,
.vega-hub-inner td,
.vega-hub-inner label,
.vega-hub-inner .muted,
.vega-hub-inner .small{
  color:var(--hub-muted) !important;
}

.vega-hub-inner input,
.vega-hub-inner select,
.vega-hub-inner textarea{
  background:#fff !important;
  color:var(--hub-text) !important;
  border:1px solid var(--hub-border) !important;
}

.vega-hub-inner button,
.vega-hub-inner .btn,
.vega-hub-inner a.btn{
  border-radius:13px !important;
}

.vega-hub-inner button:not(.alt),
.vega-hub-inner .btn.main,
.vega-hub-inner a.btn.main,
.vega-hub-inner .vega-products-btn.main{
  background:linear-gradient(135deg,var(--hub-primary),var(--hub-primary-2)) !important;
  border-color:var(--hub-primary) !important;
  color:#fff !important;
}

.vega-hub-inner button.alt,
.vega-hub-inner .btn:not(.main),
.vega-hub-inner a.btn:not(.main),
.vega-hub-inner .vega-products-btn:not(.main){
  background:#fff !important;
  color:var(--hub-text) !important;
  border:1px solid var(--hub-border) !important;
}

.vega-hub-inner table{
  background:#fff !important;
  border-color:var(--hub-border) !important;
}

.vega-hub-inner th{
  background:#f3f7ff !important;
  color:var(--hub-text) !important;
}

.vega-hub-inner td{
  border-color:var(--hub-border) !important;
}

/* evita scroll raro de vistas antiguas */
body.vega-hub-shell-enabled > *:not(.vega-hub-layout){
  display:none !important;
}

@media(max-width:900px){
  .vega-hub-layout{
    grid-template-columns:1fr;
  }

  .vega-hub-sidebar{
    position:fixed;
    inset:0 auto 0 0;
    width:280px;
    transform:translateX(-105%);
    transition:.2s ease;
    box-shadow:var(--hub-shadow);
  }

  body.vega-hub-menu-open .vega-hub-sidebar{
    transform:translateX(0);
  }

  .vega-hub-mobile-toggle{
    display:inline-flex;
  }

  .vega-hub-topbar{
    padding:14px 18px;
  }

  .vega-hub-content{
    padding:20px;
  }
}
/* /VEGA_HUB_SHELL_V1 */
