/* ═══════════════════════════════════════
   UNITIC Gestión — Design System
═══════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #111118;
  --bg2:         #17171f;
  --bg3:         #1e1e28;
  --bg4:         #252532;
  --blue:        #0066ff;
  --blue-light:  #3385ff;
  --blue-dark:   #003acc;
  --blue-muted:  rgba(0,102,255,.12);
  --yellow:      #ffc000;
  --yellow-dark: #cc9900;
  --yellow-muted:rgba(255,215,0,.12);
  --white:       #f0f0ff;
  --gray:        #8888aa;
  --border:      rgba(255,255,255,.07);
  --red:         #ef4444;
  --red-muted:   rgba(239,68,68,.12);
  --green:       #22c55e;
  --green-muted: rgba(34,197,94,.12);
  --orange:      #f97316;
  --orange-muted:rgba(249,115,22,.12);
  --purple:      #a855f7;
  --sidebar-w:   245px;
  --topbar-h:    60px;
  --radius:      10px;
  --font:        'Plus Jakarta Sans', system-ui, sans-serif;
}

html, body { height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--white);
  font-size: 14px;
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; }
input, select, textarea { font-family: var(--font); }
img { max-width: 100%; }

/* ═══════════════════════════════════════
   LAYOUT
═══════════════════════════════════════ */
.app-wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

/* ═══════════════════════════════════════
   SIDEBAR
═══════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .3s ease;
  z-index: 200;
}
.sidebar.collapsed { transform: translateX(-100%); position: fixed; top: 0; left: 0; height: 100%; }

.sb-logo {
  padding: 1.4rem 1.2rem 1rem;
  display: flex;
  align-items: center;
  gap: .4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.sb-logo .logo-uni { font-weight: 800; font-size: 1.25rem; color: var(--white); }
.sb-logo .logo-tic { font-weight: 800; font-size: 1.25rem; color: var(--yellow); }
.sb-logo .logo-sub { font-size: .75rem; color: var(--gray); margin-left: .1rem; margin-top: 2px; }

.sb-nav {
  flex: 1;
  padding: .75rem .6rem;
  display: flex;
  flex-direction: column;
  gap: .2rem;
  overflow-y: auto;
}
.sb-section {
  font-size: .68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--gray);
  padding: .8rem .5rem .3rem;
}

.sb-link {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .62rem .85rem;
  border-radius: var(--radius);
  color: var(--gray);
  font-size: .88rem;
  font-weight: 500;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.sb-link i { font-size: 1.1rem; flex-shrink: 0; }
.sb-link:hover  { background: rgba(255,255,255,.05); color: var(--white); }
.sb-link.active { background: var(--blue-muted); color: var(--blue-light); font-weight: 600; }
.sb-link.active i { color: var(--blue-light); }
.sb-link.disabled { pointer-events: none; opacity: .35; }

.sb-user {
  padding: .85rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: .65rem;
  flex-shrink: 0;
}
.sb-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--blue-muted);
  border: 1.5px solid var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 700; color: var(--blue-light);
  flex-shrink: 0;
}
.sb-user-info { flex: 1; min-width: 0; }
.sb-user-name  { display: block; font-size: .82rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user-rol   { display: block; font-size: .7rem; color: var(--gray); text-transform: capitalize; }
.sb-logout-btn {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 6px;
  color: var(--gray);
  transition: color .15s, background .15s;
}
.sb-logout-btn:hover { color: var(--red); background: var(--red-muted); }

/* ═══════════════════════════════════════
   MAIN WRAP
═══════════════════════════════════════ */
.main-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

/* ── Topbar ── */
.topbar {
  height: var(--topbar-h);
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  flex-shrink: 0;
  gap: 1rem;
}
.topbar-left { display: flex; align-items: center; gap: .75rem; }
.topbar-toggle {
  background: none;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  color: var(--gray);
  transition: color .15s, background .15s;
}
.topbar-toggle:hover { color: var(--white); background: rgba(255,255,255,.06); }
.topbar-toggle i { font-size: 1.3rem; }
.topbar-title { font-size: 1rem; font-weight: 700; color: var(--white); }

.topbar-right { display: flex; align-items: center; gap: .75rem; }
.topbar-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .75rem; padding: .2rem .65rem;
  border-radius: 20px;
}
.topbar-badge.lider     { background: var(--yellow-muted); color: var(--yellow); }
.topbar-badge.semillerista { background: var(--blue-muted); color: var(--blue-light); }

/* ── Content ── */
.content {
  flex: 1;
  overflow-y: auto;
  padding: 1.75rem 2rem;
  scrollbar-width: thin;
  scrollbar-color: var(--bg4) transparent;
}
.content::-webkit-scrollbar { width: 6px; }
.content::-webkit-scrollbar-thumb { background: var(--bg4); border-radius: 3px; }

/* ── Page header ── */
.page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.page-title { font-size: 1.35rem; font-weight: 700; color: var(--white); }
.page-title span { color: var(--blue-light); }

/* ═══════════════════════════════════════
   STAT CARDS
═══════════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1100px) { .stats-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .stats-grid { grid-template-columns: 1fr; } }

.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.stat-icon {
  width: 46px; height: 46px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--blue-muted); color: var(--blue-light); }
.stat-icon.yellow { background: var(--yellow-muted); color: var(--yellow); }
.stat-icon.green  { background: var(--green-muted); color: var(--green); }
.stat-icon.orange { background: var(--orange-muted); color: var(--orange); }
.stat-icon.purple { background: rgba(168,85,247,.12); color: var(--purple); }
.stat-icon.red    { background: var(--red-muted); color: var(--red); }
.stat-body {}
.stat-value { font-size: 1.65rem; font-weight: 800; color: var(--white); line-height: 1.1; }
.stat-label { font-size: .76rem; color: var(--gray); margin-top: .1rem; }

/* ═══════════════════════════════════════
   CHARTS
═══════════════════════════════════════ */
.charts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 1100px) { .charts-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 700px)  { .charts-grid { grid-template-columns: 1fr; } }

.chart-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
}
.chart-title { font-size: .88rem; font-weight: 600; color: var(--gray); margin-bottom: 1rem; }
.chart-wrap  { position: relative; height: 200px; }
.chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* ═══════════════════════════════════════
   TABLES
═══════════════════════════════════════ */
.table-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.table-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: .6rem;
}
.table-header-title { font-size: .9rem; font-weight: 700; color: var(--white); }

.table-search {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .35rem .75rem;
}
.table-search i { color: var(--gray); font-size: .95rem; }
.table-search input {
  background: none;
  border: none;
  color: var(--white);
  font-size: .83rem;
  outline: none;
  width: 180px;
}
.table-search input::placeholder { color: var(--gray); }

.tbl-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  background: var(--bg3);
  padding: .65rem 1rem;
  text-align: left;
  font-size: .73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--gray);
  white-space: nowrap;
}
tbody td {
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  font-size: .84rem;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255,255,255,.02); }

.empty-row td {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--gray);
  font-size: .85rem;
}
.empty-row i { display: block; font-size: 2rem; margin-bottom: .5rem; color: var(--bg4); }

/* ═══════════════════════════════════════
   BADGES
═══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .73rem;
  font-weight: 600;
  white-space: nowrap;
}
.badge-pendiente   { background: rgba(136,136,170,.12); color: var(--gray); }
.badge-en_proceso  { background: var(--blue-muted);     color: var(--blue-light); }
.badge-entregada   { background: var(--orange-muted);   color: var(--orange); }
.badge-aprobada    { background: var(--green-muted);    color: var(--green); }
.badge-rechazada   { background: var(--red-muted);      color: var(--red); }
.badge-activo      { background: var(--green-muted);    color: var(--green); }
.badge-inactivo    { background: var(--red-muted);      color: var(--red); }
.badge-lider       { background: var(--yellow-muted);   color: var(--yellow); }
.badge-semillerista{ background: var(--blue-muted);     color: var(--blue-light); }
.badge-pdf         { background: var(--red-muted);      color: var(--red); }
.badge-xlsx, .badge-xls { background: var(--green-muted); color: var(--green); }
.badge-vencida     { background: var(--red-muted);      color: var(--red); }
.badge-creada      { background: rgba(136,136,170,.12); color: var(--gray); }
.badge-terminada   { background: var(--green-muted);    color: var(--green); }

.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green  { background: var(--green); }
.dot-red    { background: var(--red); }
.dot-gray   { background: var(--gray); }

/* ═══════════════════════════════════════
   BUTTONS
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .6rem 1.2rem;
  border-radius: 8px;
  font-size: .84rem;
  font-weight: 600;
  transition: filter .15s, transform .1s, opacity .15s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover  { filter: brightness(1.15); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; pointer-events: none; }

.btn-primary  { background: var(--blue);   color: var(--white); }
.btn-yellow   { background: var(--yellow); color: #111; }
.btn-danger   { background: var(--red);    color: var(--white); }
.btn-success  { background: var(--green);  color: #111; }
.btn-outline  {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--gray);
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue-light); }

.btn-sm { padding: .35rem .8rem; font-size: .78rem; border-radius: 6px; }
.btn-xs { padding: .2rem .55rem; font-size: .73rem; border-radius: 5px; }
.btn-icon {
  width: 32px; height: 32px;
  padding: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 7px;
  font-size: 1rem;
}
.action-btns { display: flex; align-items: center; gap: .4rem; }
.btn-edit    { background: var(--yellow-muted); color: var(--yellow); }
.btn-del     { background: var(--red-muted);    color: var(--red); }
.btn-view    { background: var(--blue-muted);   color: var(--blue-light); }
.btn-approve { background: var(--green-muted);  color: var(--green); }
.btn-reject  { background: var(--red-muted);    color: var(--red); }
.btn-start   { background: var(--green-muted);  color: var(--green); }
.btn-finish  { background: var(--blue-muted);   color: var(--blue-light); }
.btn-edit:hover, .btn-del:hover, .btn-view:hover, .btn-approve:hover, .btn-reject:hover,
.btn-start:hover, .btn-finish:hover {
  filter: brightness(1.25);
}

/* ═══════════════════════════════════════
   FORMS
═══════════════════════════════════════ */
.form-row { display: flex; gap: .85rem; flex-wrap: wrap; }
.form-row .form-group { flex: 1; min-width: 160px; }
.form-group { margin-bottom: .9rem; }
.form-label {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  color: var(--gray);
  margin-bottom: .35rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.form-label span { color: var(--red); margin-left: 2px; }
.form-input, .form-select, .form-textarea {
  width: 100%;
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: .65rem .85rem;
  color: var(--white);
  font-size: .87rem;
  font-family: var(--font);
  outline: none;
  transition: border-color .2s, background .2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--blue);
  background: rgba(0,102,255,.05);
}
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray); }
.form-select option { background: var(--bg3); color: var(--white); }
.form-textarea { resize: vertical; min-height: 90px; }
.form-hint { font-size: .72rem; color: var(--gray); margin-top: .25rem; }
.form-error { font-size: .75rem; color: var(--red); margin-top: .3rem; display: none; }

/* Checkbox list for user assignment */
.check-list {
  background: var(--bg3);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  max-height: 160px;
  overflow-y: auto;
  padding: .35rem .5rem;
  scrollbar-width: thin;
}
.check-list:focus-within { border-color: var(--blue); }
.check-item {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .38rem .5rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background .15s;
}
.check-item:hover { background: rgba(255,255,255,.04); }
.check-item input[type="checkbox"] { accent-color: var(--blue); width: 15px; height: 15px; cursor: pointer; }
.check-item label { font-size: .84rem; color: var(--white); cursor: pointer; flex: 1; }

/* ═══════════════════════════════════════
   MODALS
═══════════════════════════════════════ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  width: 100%;
  max-width: 580px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  transform: translateY(20px);
  transition: transform .25s;
}
.modal-overlay.open .modal-box { transform: translateY(0); }
.modal-box.wide  { max-width: 780px; }
.modal-box.small { max-width: 420px; }

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.modal-head h3 { font-size: 1rem; font-weight: 700; }
.modal-close {
  width: 30px; height: 30px;
  background: rgba(255,255,255,.06);
  border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  color: var(--gray);
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}
.modal-close:hover { background: var(--red-muted); color: var(--red); }
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.4rem;
  scrollbar-width: thin;
}
.modal-foot {
  padding: 1rem 1.4rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: .65rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* ═══════════════════════════════════════
   UPLOAD ZONE
═══════════════════════════════════════ */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--blue);
  background: rgba(0,102,255,.04);
}
.upload-zone i { font-size: 2rem; color: var(--gray); display: block; margin-bottom: .5rem; }
.upload-zone p { font-size: .82rem; color: var(--gray); }
.upload-zone strong { color: var(--blue-light); }
.upload-zone input[type="file"] { display: none; }

.doc-list { display: flex; flex-direction: column; gap: .45rem; margin-top: .75rem; }
.doc-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: .55rem .85rem;
}
.doc-item i { font-size: 1.1rem; }
.doc-item-name { flex: 1; font-size: .82rem; color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc-item-date { font-size: .72rem; color: var(--gray); white-space: nowrap; }
.doc-item a { font-size: .8rem; color: var(--blue-light); display: flex; align-items: center; gap: .25rem; }
.doc-item a:hover { color: var(--white); }

/* ═══════════════════════════════════════
   ACTIVIDAD CARD (compromisos semillerista)
═══════════════════════════════════════ */
.act-cards { display: flex; flex-direction: column; gap: .75rem; }
.act-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
  transition: border-color .2s, background .2s;
}
.act-card:hover { border-color: var(--blue); background: rgba(0,102,255,.04); }
.act-card.vencida { border-color: rgba(239,68,68,.3); }
.act-card-info { flex: 1; min-width: 0; }
.act-card-title { font-size: .9rem; font-weight: 600; color: var(--white); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-card-meta  { font-size: .75rem; color: var(--gray); margin-top: .2rem; display: flex; gap: .75rem; flex-wrap: wrap; }
.act-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: .3rem; flex-shrink: 0; }
.delay-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .73rem; padding: .18rem .55rem;
  border-radius: 20px;
  background: var(--red-muted); color: var(--red);
  font-weight: 600;
}

/* ═══════════════════════════════════════
   PROGRESS BAR
═══════════════════════════════════════ */
.progress-bar { height: 5px; background: var(--bg4); border-radius: 3px; overflow: hidden; }
.progress-fill { height: 100%; border-radius: 3px; background: var(--blue); transition: width .4s; }
.progress-fill.done { background: var(--green); }

/* ═══════════════════════════════════════
   ASSIGN STATS (compromisos líder)
═══════════════════════════════════════ */
.asig-stats { display: flex; gap: .3rem; flex-wrap: wrap; }
.asig-pill {
  display: inline-flex; align-items: center; gap: .25rem;
  font-size: .7rem; padding: .15rem .45rem;
  border-radius: 20px; font-weight: 600;
}

/* ═══════════════════════════════════════
   TOASTS
═══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.toast {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .75rem 1.1rem;
  display: flex;
  align-items: center;
  gap: .65rem;
  min-width: 260px;
  max-width: 360px;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  animation: toast-in .25s ease both;
  font-size: .84rem;
}
.toast.out { animation: toast-out .25s ease forwards; }
.toast i { font-size: 1.1rem; flex-shrink: 0; }
.toast.success { border-color: rgba(34,197,94,.3); }
.toast.success i { color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,.3); }
.toast.error i { color: var(--red); }
.toast.info    { border-color: rgba(0,102,255,.3); }
.toast.info i  { color: var(--blue-light); }

@keyframes toast-in  { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }
@keyframes toast-out { from { opacity:1; transform:none; } to { opacity:0; transform:translateX(20px); } }

/* ═══════════════════════════════════════
   LOGIN PAGE
═══════════════════════════════════════ */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 1.5rem;
}
.login-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem 2.2rem;
  width: 100%;
  max-width: 400px;
}
.login-logo { text-align: center; margin-bottom: 1.8rem; }
.login-logo .logo-uni { font-size: 2rem; font-weight: 900; color: var(--white); }
.login-logo .logo-tic { font-size: 2rem; font-weight: 900; color: var(--yellow); }
.login-logo .logo-sub { display: block; font-size: .8rem; color: var(--gray); margin-top: .1rem; }
.login-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 1.5rem; text-align: center; }
.login-error {
  background: var(--red-muted);
  border: 1px solid rgba(239,68,68,.25);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .82rem;
  color: var(--red);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.login-success {
  background: var(--green-muted);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 8px;
  padding: .65rem 1rem;
  font-size: .82rem;
  color: var(--green);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}
.login-btn {
  width: 100%;
  padding: .8rem;
  background: var(--blue);
  color: var(--white);
  border-radius: 10px;
  font-size: .9rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  margin-top: .5rem;
  transition: background .2s;
  display: flex; align-items: center; justify-content: center; gap: .5rem;
}
.login-btn:hover { background: var(--blue-light); }
.login-hint { text-align: center; font-size: .75rem; color: var(--gray); margin-top: 1.1rem; }
.login-hint a { display: inline-flex; align-items: center; gap: .3rem; }
.login-codigo {
  text-align: center;
  font-size: 1.3rem;
  letter-spacing: .3rem;
  font-weight: 700;
}

/* ═══════════════════════════════════════
   PASSWORD CHANGE PAGE
═══════════════════════════════════════ */
.pass-change-wrap {
  max-width: 460px;
  margin: 2rem auto;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}
.pass-change-wrap h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: .5rem; }
.pass-change-wrap p  { font-size: .84rem; color: var(--gray); margin-bottom: 1.5rem; }
.alert-info {
  background: var(--blue-muted);
  border: 1px solid rgba(0,102,255,.2);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .82rem;
  color: var(--blue-light);
  margin-bottom: 1.2rem;
  display: flex; gap: .5rem; align-items: flex-start;
}
.alert-warn {
  background: var(--yellow-muted);
  border: 1px solid rgba(255,215,0,.2);
  border-radius: 8px;
  padding: .7rem 1rem;
  font-size: .82rem;
  color: var(--yellow);
  margin-bottom: 1.2rem;
  display: flex; gap: .5rem; align-items: flex-start;
}

/* ═══════════════════════════════════════
   DETAIL SECTION (modal)
═══════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .65rem 1.25rem;
  margin-bottom: 1.2rem;
}
.detail-field {}
.detail-label { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); margin-bottom: .15rem; }
.detail-value { font-size: .87rem; color: var(--white); }
.detail-value.mono { font-family: monospace; font-size: .82rem; }

/* ═══════════════════════════════════════
   FILTER TABS
═══════════════════════════════════════ */
.filter-tabs {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.filter-tab {
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  background: var(--bg3);
  color: var(--gray);
  cursor: pointer;
  transition: background .15s, color .15s;
  border: none;
}
.filter-tab.active { background: var(--blue-muted); color: var(--blue-light); }
.filter-tab:hover:not(.active) { color: var(--white); }

/* ═══════════════════════════════════════
   MISC
═══════════════════════════════════════ */
.text-gray  { color: var(--gray); }
.text-blue  { color: var(--blue-light); }
.text-green { color: var(--green); }
.text-red   { color: var(--red); }
.text-yellow{ color: var(--yellow); }
.mt-1 { margin-top: .5rem; }
.mt-2 { margin-top: 1rem; }
.divider { border: none; border-top: 1px solid var(--border); margin: 1rem 0; }
.spinner { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hidden { display: none !important; }

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0;
    height: 100%;
    transform: translateX(-100%);
    transition: transform .3s ease;
    box-shadow: 4px 0 20px rgba(0,0,0,.4);
  }
  .sidebar.open { transform: translateX(0); }
  .content { padding: 1.25rem; }
  .table-header { flex-direction: column; align-items: stretch; }
  .table-search input { width: 100%; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (min-width: 769px) {
  .topbar-toggle { display: none; }
}

/* ═══════════════════════════════════════
   REUNIONES — QR / REPORTE PÚBLICO
═══════════════════════════════════════ */
.qr-report-box {
  display: flex;
  gap: 1.2rem;
  align-items: center;
  flex-wrap: wrap;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem;
}
.qr-report-box #qr-box { background: #fff; padding: .5rem; border-radius: 8px; line-height: 0; flex-shrink: 0; }
.qr-report-actions { flex: 1; min-width: 180px; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }

.reporte-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: var(--bg);
  padding: 2rem 1.5rem;
}
.reporte-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.2rem;
  width: 100%;
  max-width: 640px;
}
.reporte-title { font-size: 1.2rem; font-weight: 700; margin-top: 1rem; }
.reporte-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.2rem; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .reporte-page { padding: 0; background: #fff; }
  .reporte-box { border: none; box-shadow: none; background: #fff; max-width: 100%; }
}
