*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #0b1628;
  --navy2:     #111f35;
  --navy3:     #1a3055;
  --blue:      #2563eb;
  --blue-h:    #1d4ed8;
  --blue-pale: #dbeafe;
  --bg:        #f0f4f8;
  --card:      #ffffff;
  --bdr:       rgba(15,23,42,0.09);
  --t1:        #0f172a;
  --t2:        #475569;
  --t3:        #94a3b8;
}

html, body {
  height: 100%;
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 13px;
  background: var(--bg);
  color: var(--t1);
}

body.cargando-rol [data-rol] { display: none; }

.contenedor-grid {
  display: grid;
  grid-template-columns: 15% 85%;
  grid-template-rows: 50px 1fr;
  min-height: 100vh;
}

.navbar           { grid-area: 1 / 1 / 2 / 3; }
.side-navbar      { grid-area: 2 / 1 / 3 / 2; }
.contenedor-padre { grid-area: 2 / 2 / 3 / 3; }

.logo{
  display:flex;
  align-items:center;
  gap:8px;
  margin-right:20px
}

.logo-icon{
  width:26px;
  height:26px;
  background: #2563eb;
  border-radius:6px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:13px;
  font-weight:500;
  color:#fff
}

.logo-name{
  font-size:15px;
  font-weight:500;
  color: white;
}

.navbar {
  background: var(--navy);
  border-bottom: 1px solid rgba(255,255,255,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar ul {
  display: flex;
  align-items: stretch;
  height: 100%;
  list-style: none;
  padding: 0 12px;
  margin: 0;
}

.navbar li {
  display: flex;
  align-items: stretch;
}

.navbar li a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255,255,255,0.45);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  white-space: nowrap;
}

.navbar li a:hover {
  color: rgba(255,255,255,0.9);
  background: rgba(255,255,255,0.05);
}

.navbar li a.activo {
  color: #fff;
  border-bottom-color: #60a5fa;
}

.nav-auth {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.nav-auth a {
  height: 40px !important;
  padding: 6px 14px !important;
  border-radius: 15px !important;
  border: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

.btn-sesion {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.08) !important;
  color: rgba(255,255,255,0.65) !important;
}
.btn-sesion:hover {
  background: rgba(255,255,255,0.14) !important;
  color: #fff !important;
}

.btn-cuenta {
  background: var(--blue) !important;
  color: #fff !important;
}
.btn-cuenta:hover {
  background: var(--blue-h) !important;
}

.side-navbar {
  background: var(--navy2);
  border-right: 1px solid rgba(255,255,255,0.05);
  padding: 14px 8px;
  overflow-y: auto;
  min-height: calc(100vh - 50px);
}

.side-navbar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.side-navbar .seccion-label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,0.2);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 10px 5px;
}

.side-navbar li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  transition: all .12s;
  margin-bottom: 1px;
  cursor: pointer;
}

.side-navbar li a::before {
  content: '';
  width: 4px; height: 4px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.5;
  flex-shrink: 0;
}

.side-navbar li a:hover {
  background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.85);
}

.side-navbar li a.activo {
  background: rgba(37,99,235,0.22);
  color: #93c5fd;
  font-weight: 600;
}

.contenedor-padre {
  padding: 26px 24px 40px;
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-content: flex-start;
}
