/* ============================================================
   DGSIR · Servicio Social
   Los colores institucionales llegan como variables CSS desde
   el panel de administración (configuracion.color_*).
   ============================================================ */

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

:root {
  --primary: #7a1b2e;
  --secondary: #5c1222;
  --accent: #c8a24a;
  --bg: #f6f1e7;
  --surface: #ffffff;
  --text: #241a1c;
  --muted: #7a6a68;
  --line: #eadcbc;
  --ok: #1f7a4d;
  --ok-soft: #e6f4ec;
  --warn: #8a5a00;
  --warn-soft: #fbf0d9;
  --danger: #a32638;
  --danger-soft: #fbe9ec;
  --info: #6b4356;
  --info-soft: #f6e9ef;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(92, 18, 34, 0.06), 0 14px 30px -20px rgba(92, 18, 34, 0.45);
  --sidebar-w: 268px;
}

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(--text);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--secondary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', serif;
  color: var(--secondary);
  margin: 0 0 0.35em;
  line-height: 1.2;
}

h1 { font-size: 1.75rem; }
h2 { font-size: 1.25rem; }
h3 { font-size: 1.05rem; }

p { margin: 0 0 0.9em; }

small { color: var(--muted); }

/* ---------------------------- Sidebar ---------------------------- */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 58%, #000) 100%);
  color: #f3e6e7;
  display: flex;
  flex-direction: column;
  z-index: 20;
  border-right: 3px solid var(--accent);
}

.sidebar-brand {
  padding: 18px 18px 16px;
  border-bottom: 1px solid rgba(200, 162, 74, 0.35);
  overflow: hidden;
}

.brand-logo {
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(200, 162, 74, 0.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.brand-logo img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 96px;
  object-fit: contain;
}

.brand-logo--light {
  background: #fff;
  padding: 12px 16px;
}

.sidebar-brand .brand-name {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

.sidebar-brand .brand-sub {
  font-size: 0.72rem;
  color: rgba(243, 230, 231, 0.65);
  line-height: 1.35;
  margin-top: 2px;
}

.sidebar-nav {
  padding: 14px 10px;
  overflow-y: auto;
  flex: 1;
}

.sidebar-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(232, 238, 245, 0.45);
  padding: 14px 12px 6px;
  font-weight: 700;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  color: rgba(232, 238, 245, 0.82);
  font-size: 0.9rem;
  margin-bottom: 2px;
  text-decoration: none;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.07);
  text-decoration: none;
  color: #fff;
}

.nav-item.active {
  background: rgba(200, 162, 74, 0.14);
  border-left-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.9;
}

.sidebar-user {
  padding: 14px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-user .avatar {
  background: var(--accent);
  color: #22303f;
}

.sidebar-user .u-name {
  font-size: 0.82rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.2;
}

.sidebar-user .u-role {
  font-size: 0.7rem;
  color: rgba(232, 238, 245, 0.6);
}

.sidebar-user form {
  margin: 0 0 0 auto;
}

/* ----------------------------- Main ------------------------------ */
.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  height: 64px;
  background: var(--surface);
  border-bottom: 2px solid var(--accent);
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar .crumb {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.topbar .topbar-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--secondary);
}

.topbar .spacer { flex: 1; }

.content {
  padding: 28px;
  flex: 1;
  max-width: 1280px;
  width: 100%;
}

.main--public {
  margin-left: 0;
  align-items: center;
  justify-content: center;
  display: flex;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(122, 27, 46, 0.14), transparent 60%),
    radial-gradient(900px 400px at 100% 100%, rgba(200, 162, 74, 0.18), transparent 55%),
    var(--bg);
  padding: 24px;
}

/* ---------------------------- Cabeceras --------------------------- */
.page-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.page-header .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.page-sub {
  color: var(--muted);
  font-size: 0.9rem;
  max-width: 70ch;
  margin: 0;
}

.eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary);
  font-weight: 700;
  margin-bottom: 4px;
}

/* ----------------------------- Tarjetas --------------------------- */
.card {
  background: var(--surface);
  border: 1px solid #e6d3a6;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
}

.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid #f0e4c8;
  background: #fdfaf3;
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header h2,
.card-header h3 {
  margin: 0;
  font-size: 1.02rem;
}

.card-header .actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
  align-items: center;
}

.card-body {
  padding: 20px;
}

.card-body > :last-child { margin-bottom: 0; }

.card--accent {
  border-top: 3px solid var(--accent);
}

/* ------------------------------ Grid ----------------------------- */
.grid {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ----------------------------- Métricas -------------------------- */
.stat {
  background: var(--surface);
  border: 1px solid #e6d3a6;
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.stat::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--accent);
}

.stat-primary::after { background: var(--primary); }
.stat-info::after { background: var(--info); }
.stat-ok::after { background: var(--ok); }

.stat-value {
  font-family: Georgia, serif;
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--secondary);
  line-height: 1;
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  font-weight: 600;
}

.stat-hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 6px;
}

/* ------------------------------ Tablas --------------------------- */
.table-wrap {
  overflow-x: auto;
}

table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}

.table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #7d6752;
  padding: 10px 14px;
  border-bottom: 1px solid #efe2c4;
  background: #fbf6ea;
  white-space: nowrap;
}

.table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

.table tbody tr:last-child td { border-bottom: 0; }

.table tbody tr:hover { background: #fbfcfd; }

.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table .shrink { width: 1%; white-space: nowrap; }

/* ------------------------------ Badges --------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: #eef1f5; color: #5a6577; }

/* ------------------------------ Botones -------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.2;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 1px solid rgba(200, 162, 74, 0.9);
  box-shadow: 0 6px 14px -8px rgba(122, 27, 46, 0.9);
}

.btn-primary:hover { background: color-mix(in srgb, var(--primary) 88%, black); color: #fff; }

.btn-secondary {
  background: var(--secondary);
  color: #fff;
}

.btn-secondary:hover { background: color-mix(in srgb, var(--secondary) 88%, black); color: #fff; }

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--secondary);
}

.btn-ghost:hover { background: #f2f4f8; }

.btn-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #f1c6ce;
}

.btn-danger:hover { background: #f7dbe0; }

.btn-sm { padding: 5px 10px; font-size: 0.78rem; border-radius: 6px; }

.btn-block { width: 100%; }

.btn[disabled] { opacity: 0.55; cursor: not-allowed; }

.btn-link {
  background: none;
  border: 0;
  padding: 0;
  color: var(--secondary);
  font: inherit;
  cursor: pointer;
  text-decoration: underline;
}

/* ------------------------------ Formas --------------------------- */
.field {
  margin-bottom: 16px;
}

.field label,
.label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--secondary);
  margin-bottom: 6px;
}

.field .req { color: var(--danger); }

input[type='text'],
input[type='email'],
input[type='password'],
input[type='tel'],
input[type='number'],
input[type='date'],
input[type='datetime-local'],
input[type='file'],
select,
textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #ccd4e0;
  border-radius: 8px;
  font-size: 0.9rem;
  font-family: inherit;
  color: var(--text);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: 0 0 0 3px rgba(22, 50, 79, 0.12);
}

textarea { resize: vertical; min-height: 110px; }

.hint {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 5px;
}

.row {
  display: grid;
  gap: 16px;
}

.row-2 { grid-template-columns: 1fr 1fr; }
.row-3 { grid-template-columns: repeat(3, 1fr); }

.check {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.88rem;
}

.check input { width: auto; }

/* ------------------------------ Avisos --------------------------- */
.alert {
  border-radius: 10px;
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  border: 1px solid transparent;
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.alert strong { font-weight: 700; }

.alert-success { background: var(--ok-soft); color: #14563a; border-color: #bfe3cd; }
.alert-error { background: var(--danger-soft); color: #7d1c2b; border-color: #f1c6ce; }
.alert-info { background: var(--info-soft); color: #174b6d; border-color: #c3dcee; }
.alert-warn { background: var(--warn-soft); color: #714804; border-color: #f0dcb4; }

/* --------------------------- Estados vacíos ----------------------- */
.empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.empty .empty-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: #eef1f6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #97a2b4;
}

.empty h3 { color: var(--secondary); margin-bottom: 4px; }
.empty p { margin: 0; font-size: 0.88rem; }

/* ----------------------------- Archivos -------------------------- */
.file-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.file-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}

.file-list li:last-child { border-bottom: 0; }

.file-ico {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--danger-soft);
  color: var(--danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  flex: 0 0 34px;
}

.file-ico.ext-pptx,
.file-ico.ext-ppt { background: #fdece4; color: #b4471f; }
.file-ico.ext-docx,
.file-ico.ext-doc { background: var(--info-soft); color: var(--info); }
.file-ico.ext-xlsx,
.file-ico.ext-xls { background: var(--ok-soft); color: var(--ok); }
.file-ico.ext-zip { background: #efe9f8; color: #5a3d8a; }
.file-ico.ext-png,
.file-ico.ext-jpg,
.file-ico.ext-jpeg { background: #eef7ee; color: #2f6b3a; }

.file-meta { flex: 1; min-width: 0; }
.file-name { font-size: 0.87rem; font-weight: 600; color: var(--secondary); word-break: break-word; }
.file-sub { font-size: 0.76rem; color: var(--muted); }

/* ---------------------------- Tarjetas tarea --------------------- */
.task-list { display: grid; gap: 12px; }

.task {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  background: #fff;
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.task:hover { border-color: #cfd8e6; }

.task-main { flex: 1; min-width: 0; }
.task-title { font-weight: 700; color: var(--secondary); font-size: 0.98rem; margin-bottom: 3px; }
.task-title a { color: inherit; }
.task-meta { font-size: 0.78rem; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.task-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }

/* ------------------------------ Varios --------------------------- */
.avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex: 0 0 34px;
}

.user-cell { display: flex; align-items: center; gap: 10px; }
.user-cell .u-name { font-weight: 600; color: var(--secondary); font-size: 0.88rem; line-height: 1.25; }
.user-cell .u-sub { font-size: 0.76rem; color: var(--muted); }

.prose { max-width: 78ch; }
.prose p { margin-bottom: 0.75em; }

.pre {
  white-space: pre-wrap;
  font-family: inherit;
  background: #f8f9fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.88rem;
  color: #2b3442;
  margin: 0;
}

.divider { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filters .field { margin-bottom: 0; min-width: 170px; }

.meta-list { display: grid; gap: 10px; }
.meta-list .meta { display: flex; gap: 10px; font-size: 0.86rem; }
.meta-list .meta .k { color: var(--muted); min-width: 120px; }
.meta-list .meta .v { font-weight: 600; color: var(--secondary); }

.comment {
  border-left: 3px solid var(--accent);
  background: #fbfaf6;
  padding: 12px 16px;
  border-radius: 0 8px 8px 0;
  margin-bottom: 12px;
}

.comment-head { font-size: 0.76rem; color: var(--muted); margin-bottom: 4px; }
.comment-body { font-size: 0.9rem; }

.kbd {
  font-family: 'Cascadia Mono', Consolas, monospace;
  background: #eef1f5;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.82em;
}

.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.text-right { text-align: right; }
.inline-form { display: inline; }

.main--public .content {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: none;
  flex: 1;
}

.main--public .content > .card,
.main--public .content > .form-card {
  margin: 0 auto;
}

/* ------------------------------- Login --------------------------- */
.login-shell {
  width: 100%;
  max-width: 960px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(18, 32, 56, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.login-aside {
  background: linear-gradient(160deg, var(--secondary) 0%, color-mix(in srgb, var(--secondary) 58%, #000) 100%);
  color: #fff;
  padding: 36px 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.login-aside::after {
  content: '';
  position: absolute;
  right: -60px;
  bottom: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(200, 162, 74, 0.4);
}

.login-aside h1 { color: #fff; font-size: 1.6rem; margin: 22px 0 10px; }
.login-aside p { color: rgba(255, 255, 255, 0.78); font-size: 0.9rem; }
.login-aside .lema {
  font-family: Georgia, serif;
  font-style: italic;
  color: var(--accent);
  font-size: 0.95rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 16px;
  margin-top: 26px;
}

.login-form {
  padding: 44px 40px;
}

.login-form h2 { margin-bottom: 4px; }
.login-form .sub { color: var(--muted); font-size: 0.88rem; margin-bottom: 24px; }
.login-links { margin-top: 18px; font-size: 0.84rem; color: var(--muted); text-align: center; }
.login-foot { margin-top: 26px; font-size: 0.74rem; color: var(--muted); text-align: center; }

.form-card {
  width: 100%;
  max-width: 760px;
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e6d3a6;
  box-shadow: 0 24px 50px -30px rgba(92, 18, 34, 0.45);
  padding: 32px;
}

.auth-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}

.auth-head .brand-logo {
  margin-bottom: 0;
  padding: 8px 10px;
}

.auth-head .brand-logo img {
  max-height: 52px;
}

/* --------------------------- Responsivo -------------------------- */
@media (max-width: 1080px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  :root { --sidebar-w: 0px; }

  .sidebar {
    position: static;
    width: 100%;
    flex-direction: column;
  }

  .sidebar-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 10px;
  }

  .sidebar-label { display: none; }

  .nav-item { margin: 0; border-left: 0; border-bottom: 3px solid transparent; }

  .main { margin-left: 0; }
  .content { padding: 18px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .row-2, .row-3 { grid-template-columns: 1fr; }
  .login-shell { grid-template-columns: 1fr; }
  .login-aside { display: none; }
  .topbar { padding: 0 16px; }
}

@media print {
  .sidebar, .topbar, .actions, .btn { display: none !important; }
  .main { margin-left: 0; }
  .card { box-shadow: none; border-color: #ccc; }
}

/* ---------------------- Pantalla de acceso ----------------------- */
.login-page {
  width: 100%;
  max-width: 980px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.login-legal {
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #7c5647;
  line-height: 1.8;
  font-weight: 700;
}

/* ------------------------ Autocompletado ------------------------- */
.combo {
  position: relative;
}

.combo-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 4px;
  background: #fff;
  border: 1px solid #e0cfa7;
  border-radius: 10px;
  box-shadow: 0 18px 30px -18px rgba(92, 18, 34, 0.45);
  max-height: 240px;
  overflow-y: auto;
}

.combo-item {
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
  cursor: pointer;
}

.combo-item:hover,
.combo-item.activo {
  background: #fbf1dc;
}

.combo-empty {
  padding: 8px 10px;
  font-size: 0.86rem;
  color: var(--muted);
}

/* ---------------------- Marca compacta del menú ------------------- */
.marca-caja {
  background: #fff;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid rgba(200, 162, 74, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
}

.marca-caja img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 56px;
  object-fit: contain;
}

/* --------------------------- Campana ----------------------------- */
.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  color: var(--secondary);
  text-decoration: none;
}

.bell:hover {
  background: #f7efe0;
  text-decoration: none;
}

.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
