/* ── Base ─────────────────────────────────────────────── */
body {
  font-family: 'Public Sans', sans-serif;
  background: #f8f9fb;
  color: #1a1f36;
}
a { text-decoration: none; color: inherit; }

/* ── NAVBAR ───────────────────────────────────────────── */
.site-navbar {
  background: #fff;
  border-bottom: 1px solid #e9ecef;
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 1030;
}
.brand {
  font-size: 1.4rem;
  font-weight: 800;
  color: #1a3c6e;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.brand span { color: #0f5e9c; }

.nav-link-custom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 500;
  color: #6c757d;
  white-space: nowrap;
  position: relative;
  transition: background 0.18s, color 0.18s;
  list-style: none;
}
.nav-link-custom i { font-size: 1rem; }
.nav-link-custom:hover { background: #e8f4fd; color: #1a3c6e; }
.nav-link-custom.active {
  background: #e8f4fd;
  color: #1a3c6e;
  font-weight: 600;
}
.nav-link-custom.active::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 8px; right: 8px;
  height: 2px;
  background: #0f5e9c;
  border-radius: 2px 2px 0 0;
}

.icon-btn {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: none;
  background: transparent;
  color: #6c757d;
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
}
.icon-btn:hover { background: #e8f4fd; color: #1a3c6e; }

.avatar-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 4px;
  border-radius: 50px;
  border: 1.5px solid #e9ecef;
  background: transparent;
  cursor: pointer;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.87rem; font-weight: 600;
  color: #1a1f36;
  transition: border-color 0.18s, background 0.18s;
}
.avatar-btn:hover { border-color: #c5e0f5; background: #e8f4fd; }

.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a3c6e 0%, #0f5e9c 100%);
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 0.82rem; font-weight: 700;
  flex-shrink: 0;
  object-fit: cover;
}
.avatar-name { padding-right: 6px; }

/* ── DROPDOWN PERFIL ─────────────────────────────────── */
.profile-dropdown {
  min-width: 248px;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(26,60,110,0.10);
  overflow: hidden;
  padding: 0;
}
.pd-header {
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  background: #f8f9fb;
  border-bottom: 1px dashed #e9ecef;
}
.pd-name  { font-size: 0.93rem; font-weight: 700; color: #1a1f36; }
.pd-email { font-size: 0.76rem; color: #6c757d; word-break: break-all; }
.pd-links { padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pd-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 11px;
  border-radius: 8px;
  font-size: 0.88rem; font-weight: 500;
  color: #1a1f36;
  transition: background 0.18s, color 0.18s;
}
.pd-link:hover { background: #e8f4fd; color: #1a3c6e; }
.pd-link i { color: #6c757d; font-size: 1rem; }
.pd-footer { padding: 10px 16px 14px; border-top: 1px dashed #e9ecef; }
.pd-logout {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.87rem; font-weight: 500; color: #6c757d;
  transition: color 0.18s;
}
.pd-logout:hover { color: #dc3545; }

/* ── NOTIF OFFCANVAS ─────────────────────────────────── */
.notif-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 18px 14px;
  border-bottom: 1px solid #e9ecef;
}
.notif-head h5 { font-size: 1rem; font-weight: 700; color: #1a3c6e; margin: 0; }
.notif-tabs { display: flex; border-bottom: 1px solid #e9ecef; }
.notif-tab {
  flex: 1; padding: 11px 0;
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.87rem; font-weight: 500; color: #6c757d;
  cursor: pointer; margin-bottom: -1px;
  transition: color 0.18s, border-color 0.18s;
}
.notif-tab.active { color: #1a3c6e; border-bottom-color: #0f5e9c; font-weight: 600; }
.notif-empty {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; padding: 64px 24px;
}
.notif-empty i { font-size: 2.4rem; color: #e9ecef; }
.notif-empty p { font-size: 0.88rem; color: #6c757d; margin: 0; }

/* ── CONTENIDO ───────────────────────────────────────── */
.page-content { padding: 48px 0 72px; }

.page-header {
  display: flex; align-items: flex-start;
  justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  margin-bottom: 40px;
}
.section-label {
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #0f5e9c; margin-bottom: 10px;
}
.section-title {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-weight: 800; color: #1a1f36;
  line-height: 1.2; margin-bottom: 14px;
}
.section-sub { font-size: 1rem; color: #6c757d; line-height: 1.7; }

/* ── BOTÓN PRIMARIO ──────────────────────────────────── */
.btn-calixy {
  display: inline-flex; align-items: center; gap: 7px;
  background: #1a3c6e; color: #fff;
  font-family: 'Public Sans', sans-serif;
  font-size: 0.9rem; font-weight: 700;
  padding: 10px 24px; border-radius: 8px;
  border: none; cursor: pointer;
  transition: background 0.18s, transform 0.12s;
}
.btn-calixy:hover { background: #0f5e9c; color: #fff; transform: translateY(-1px); }

/* ── CARDS ───────────────────────────────────────────── */
.module-card {
  border: 1px solid #e9ecef; border-radius: 12px;
  padding: 28px; background: #fff;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  height: 100%;
}
.module-card:hover {
  box-shadow: 0 8px 32px rgba(26,60,110,0.10);
  transform: translateY(-3px);
  border-color: rgba(15,94,156,0.20);
}
.module-icon {
  width: 52px; height: 52px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; font-size: 1.4rem; flex-shrink: 0;
}
.stat-value { font-size: 1.9rem; font-weight: 800; color: #1a1f36; line-height: 1; margin-bottom: 4px; }
.stat-label { font-size: 0.82rem; color: #6c757d; }

.quick-card {
  display: flex; align-items: center; gap: 20px;
  border: 1px solid #e9ecef; border-radius: 12px;
  padding: 24px 20px; background: #fff; color: #1a1f36;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
  height: 100%;
}
.quick-card:hover {
  box-shadow: 0 8px 32px rgba(26,60,110,0.10);
  transform: translateY(-3px);
  border-color: rgba(15,94,156,0.20); color: #1a1f36;
}
.quick-card .module-icon { margin-bottom: 0; }
.quick-card-body { flex: 1; min-width: 0; }
.quick-card-body h5 { font-size: 1.05rem; font-weight: 700; color: #1a1f36; margin-bottom: 6px; }
.quick-card-body p  { font-size: 0.9rem; color: #6c757d; line-height: 1.65; margin: 0; }
.quick-arrow { font-size: 1.2rem; color: #e9ecef; flex-shrink: 0; transition: color 0.18s, transform 0.18s; }
.quick-card:hover .quick-arrow { color: #0f5e9c; transform: translateX(4px); }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px)  { .avatar-name { display: none; } }
@media (max-width: 480px)  { .page-content { padding: 28px 0 56px; } }
