/* ============================================================
   TODOS — css/usuarios.css
   Colores: Morado #6B21A8 | Cyan #06B6D4 | Blanco #FFFFFF
   ============================================================ */

/* ── VARIABLES ─────────────────────────────────────────── */
:root {
  --purple:    #6B21A8;
  --purple-d:  #4C1577;
  --purple-l:  #9333EA;
  --purple-xl: #EDE9FE;
  --purple-2:  #F5F0FF;
  --cyan:      #06B6D4;
  --cyan-l:    #CFFAFE;
  --white:     #FFFFFF;
  --bg:        #F5F0FF;
  --border:    #DDD6FE;
  --text:      #1E1030;
  --muted:     #7C6F92;
  --error:     #DC2626;
  --error-bg:  #FEF2F2;
  --success:   #16A34A;
  --success-bg:#F0FDF4;
  --warn:      #D97706;
  --warn-bg:   #FFFBEB;
  --sidebar-w: 255px;
  --topbar-h:  62px;
  --shadow:    0 4px 24px rgba(107,33,168,.12);
  --shadow-sm: 0 2px 10px rgba(107,33,168,.08);
  --radius:    14px;
  --radius-sm: 9px;
}

/* ── RESET & BASE ───────────────────────────────────────── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  min-height: 100vh;
  font-size: 14px;
  line-height: 1.5;
}

a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #C4B5FD; border-radius: 10px; }

/* ══════════════════════════════════════════════════════════
   SIDEBAR
══════════════════════════════════════════════════════════ */
.sidebar {
  width: var(--sidebar-w);
  background: linear-gradient(180deg, var(--purple-d) 0%, var(--purple) 100%);
  color: var(--white);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0; left: 0;
  height: 100vh;
  z-index: 200;
  transition: transform .3s ease;
  box-shadow: 4px 0 20px rgba(76,21,119,.25);
}

/* Logo */
.sidebar-logo {
  padding: 20px 18px 16px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.logo-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.logo-icon svg { width: 26px; height: 26px; }
.sidebar-logo span { font-size: 15px; font-weight: 800; display: block; }
.sidebar-logo small { font-size: 11px; opacity: .55; display: block; margin-top: 1px; }

/* Menú */
.sidebar-menu {
  padding: 12px 0;
  flex: 1;
  overflow-y: auto;
}
.menu-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  opacity: .4;
  padding: 12px 20px 5px;
}
.menu-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  font-size: 13.5px;
  opacity: .78;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .18s;
}
.menu-item i { width: 17px; text-align: center; font-size: 14px; }
.menu-item:hover {
  background: rgba(255,255,255,.09);
  opacity: 1;
}
.menu-item.active {
  background: rgba(6,182,212,.18);
  border-left-color: var(--cyan);
  color: var(--cyan);
  opacity: 1;
  font-weight: 700;
}

.sidebar-footer {
  padding: 14px 20px;
  border-top: 1px solid rgba(255,255,255,.10);
  font-size: 11.5px;
  opacity: .45;
  flex-shrink: 0;
}

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

/* ── TOPBAR ─────────────────────────────────────────────── */
.topbar {
  height: var(--topbar-h);
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0 26px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 6px rgba(107,33,168,.07);
}
.topbar-btn {
  width: 36px; height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  font-size: 15px;
  transition: .18s;
}
.topbar-btn:hover { background: var(--bg); border-color: var(--purple-l); }
.topbar-title {
  flex: 1;
  font-size: 17px;
  font-weight: 800;
  color: var(--purple-d);
  display: flex;
  align-items: center;
  gap: 9px;
}
.topbar-title i { color: var(--purple-l); }

/* ── CONTENT ────────────────────────────────────────────── */
.content {
  padding: 24px 26px 50px;
  flex: 1;
}

/* ══════════════════════════════════════════════════════════
   ALERTAS
══════════════════════════════════════════════════════════ */
.alert-box {
  padding: 13px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideDown .3s ease;
}
.alert-box.success { background: var(--success-bg); color: var(--success); border: 1px solid #BBF7D0; }
.alert-box.error   { background: var(--error-bg);   color: var(--error);   border: 1px solid #FECACA; }
.alert-box.warn    { background: var(--warn-bg);     color: var(--warn);    border: 1px solid #FDE68A; }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }

/* ══════════════════════════════════════════════════════════
   FILTROS
══════════════════════════════════════════════════════════ */
.filter-bar {
  background: var(--white);
  border-radius: var(--radius);
  padding: 16px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.search-box {
  flex: 1;
  min-width: 200px;
  position: relative;
}
.search-box i {
  position: absolute;
  left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}
.search-box input {
  width: 100%;
  padding: 9px 14px 9px 36px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  transition: .2s;
  outline: none;
}
.search-box input:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107,33,168,.10);
}

.fsel {
  padding: 9px 34px 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text);
  background: var(--white);
  cursor: pointer;
  outline: none;
  transition: .2s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24'%3E%3Cpath fill='%237C6F92' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  min-width: 160px;
}
.fsel:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(107,33,168,.10); }

/* ══════════════════════════════════════════════════════════
   TABLA
══════════════════════════════════════════════════════════ */
.table-panel {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.table-header {
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.table-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--purple-d);
  display: flex;
  align-items: center;
  gap: 8px;
}
.table-title i { color: var(--purple-l); }
.badge-count {
  background: var(--purple-xl);
  color: var(--purple);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 9px;
  border-radius: 20px;
}

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

thead th {
  background: #FAF7FF;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 700;
  padding: 11px 16px;
  text-align: left;
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

tbody td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: #FAF7FF; }

.loading-row {
  text-align: center;
  color: var(--muted);
  padding: 40px !important;
  font-size: 14px;
}
.loading-row i { margin-right: 8px; color: var(--purple-l); }

/* Celda nombre */
.user-cell { display: flex; align-items: center; gap: 10px; }
.user-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
  flex-shrink: 0;
}
.user-name  { font-weight: 600; font-size: 13.5px; line-height: 1.2; }
.user-extra { font-size: 11.5px; color: var(--muted); }

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 700;
}
.badge i { font-size: 10px; }
.badge-admin   { background: var(--purple-xl); color: var(--purple); }
.badge-digit   { background: var(--cyan-l);    color: #0E7490; }
.badge-activo  { background: var(--success-bg); color: var(--success); }
.badge-inactivo{ background: #F3F4F6;           color: #6B7280; }

/* Botones acción */
.action-btns { display: flex; gap: 6px; }
.act-btn {
  width: 31px; height: 31px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px;
  color: var(--muted);
  transition: .18s;
}
.act-btn:hover { transform: scale(1.1); }
.act-btn.edit { color: var(--purple-l); border-color: #C4B5FD; }
.act-btn.edit:hover { background: var(--purple-xl); }
.act-btn.del  { color: var(--error);   border-color: #FECACA; }
.act-btn.del:hover  { background: var(--error-bg); }
.act-btn.toggle-estado { color: var(--cyan); border-color: #A5F3FC; }
.act-btn.toggle-estado:hover { background: var(--cyan-l); }

/* ── PAGINACIÓN ─────────────────────────────────────────── */
.pagination {
  padding: 13px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
  gap: 10px;
}
.pag-info { font-size: 12.5px; color: var(--muted); }
.pag-btns { display: flex; gap: 4px; }
.pag-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--white);
  cursor: pointer;
  font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text);
  transition: .18s;
}
.pag-btn:hover:not(:disabled) { border-color: var(--purple-l); color: var(--purple); }
.pag-btn.active { background: var(--purple); color: var(--white); border-color: var(--purple); }
.pag-btn:disabled { opacity: .3; cursor: default; }

/* ══════════════════════════════════════════════════════════
   BOTONES GENERALES
══════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--purple-d), var(--purple-l));
  color: var(--white);
  box-shadow: 0 3px 14px rgba(107,33,168,.30);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(107,33,168,.40);
}
.btn-primary:active { transform: translateY(0); }

.btn-outline {
  background: var(--white);
  color: var(--purple);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--purple); background: var(--purple-xl); }

.btn-danger {
  background: var(--error);
  color: var(--white);
  box-shadow: 0 3px 12px rgba(220,38,38,.25);
}
.btn-danger:hover { background: #B91C1C; transform: translateY(-1px); }

/* ══════════════════════════════════════════════════════════
   MODAL
══════════════════════════════════════════════════════════ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(30,16,48,.50);
  backdrop-filter: blur(3px);
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s;
}
.modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.modal {
  background: var(--white);
  border-radius: 20px;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 20px 60px rgba(76,21,119,.30);
  transform: translateY(18px) scale(.98);
  transition: transform .25s, opacity .25s;
}
.modal-overlay.open .modal {
  transform: translateY(0) scale(1);
}
.modal-sm { max-width: 420px; }

/* Modal head */
.modal-head {
  background: linear-gradient(135deg, var(--purple-d) 0%, var(--purple-l) 100%);
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
  overflow: hidden;
  border-radius: 20px 20px 0 0;
}
.modal-head::after {
  content: '';
  position: absolute; right: -20px; top: -20px;
  width: 100px; height: 100px; border-radius: 50%;
  background: rgba(6,182,212,.22);
  pointer-events: none;
}
.modal-head-icon {
  width: 44px; height: 44px;
  border-radius: 11px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: var(--white);
  flex-shrink: 0;
}
.modal-title { font-size: 16px; font-weight: 800; color: var(--white); }
.modal-sub   { font-size: 12px; color: rgba(255,255,255,.65); margin-top: 2px; }
.modal-close {
  margin-left: auto;
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.12);
  color: var(--white);
  cursor: pointer;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
  transition: .18s;
  flex-shrink: 0;
  z-index: 1;
}
.modal-close:hover { background: rgba(255,255,255,.22); }

.modal-body   { padding: 24px 26px; }
.modal-footer {
  padding: 16px 26px 22px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--border);
}

/* ══════════════════════════════════════════════════════════
   FORMULARIO DENTRO DEL MODAL
══════════════════════════════════════════════════════════ */

/* Rol cards */
.rol-group {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}
.rol-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 12px;
  cursor: pointer;
  transition: .2s;
  position: relative;
  display: flex; flex-direction: column;
  align-items: center; gap: 7px;
  background: #FDFCFF;
  text-align: center;
}
.rol-card:hover { border-color: var(--purple-l); background: var(--purple-xl); }
.rol-card.selected { border-color: var(--purple); background: var(--purple-xl); }
.rol-card input[type="radio"] { position: absolute; opacity: 0; }
.rol-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--border);
  color: var(--purple);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; transition: .2s;
}
.rol-card.selected .rol-icon { background: var(--purple); color: var(--white); }
.rol-label { font-size: 13px; font-weight: 700; }
.rol-desc  { font-size: 11px; color: var(--muted); line-height: 1.4; }
.rol-check {
  position: absolute; top: 9px; right: 9px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-size: 9px;
  display: none; align-items: center; justify-content: center;
}
.rol-card.selected .rol-check { display: flex; }

/* Form grid */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

/* Fields */
.field { margin-bottom: 16px; }
.field label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--purple-d);
  margin-bottom: 6px;
}
.field label i { color: var(--purple-l); font-size: 12px; }
.req { color: var(--cyan); font-size: 15px; line-height: 1; }

.input-wrap { position: relative; }
.input-wrap .ico {
  position: absolute; left: 12px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted); font-size: 13px;
  pointer-events: none;
}
.input-wrap input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  color: var(--text);
  background: #FDFCFF;
  transition: .2s;
  outline: none;
}
.input-wrap input:focus {
  border-color: var(--purple);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(107,33,168,.10);
}
.input-wrap input.invalid { border-color: var(--error) !important; }
.input-wrap input.valid   { border-color: var(--success) !important; }

.btn-eye {
  position: absolute; right: 11px; top: 50%;
  transform: translateY(-50%);
  background: none; border: none;
  color: var(--muted); font-size: 14px;
  cursor: pointer; transition: .2s;
  padding: 2px;
}
.btn-eye:hover { color: var(--purple); }

.field-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 5px;
  display: flex; align-items: center; gap: 5px;
}
.field-hint i { color: var(--cyan); }

.field-error {
  font-size: 11.5px;
  color: var(--error);
  margin-top: 5px;
  display: none;
  align-items: center; gap: 5px;
}
.field-error::before {
  content: '\f06a';
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 11px;
}

/* Divider */
.divider {
  display: flex; align-items: center; gap: 10px;
  margin: 18px 0 14px;
  font-size: 11.5px; color: var(--muted); font-weight: 700;
  text-transform: uppercase; letter-spacing: .6px;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* Strength bar */
.strength-bar {
  height: 4px; border-radius: 10px;
  background: var(--border); margin-top: 7px; overflow: hidden;
}
.strength-fill {
  height: 100%; border-radius: 10px;
  transition: width .4s ease, background .4s ease;
  width: 0%;
}
.strength-label {
  font-size: 11px; color: var(--muted); margin-top: 4px; font-weight: 600;
}

/* Estado toggle */
.estado-wrap {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--purple-2);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  border: 1.5px solid var(--border);
  margin-bottom: 4px;
}
.estado-info strong { font-size: 13.5px; display: block; color: var(--purple-d); }
.estado-info span   { font-size: 12px; color: var(--muted); }

.toggle { position: relative; width: 44px; height: 24px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
  position: absolute; inset: 0;
  background: #D1D5DB; border-radius: 24px;
  cursor: pointer; transition: .3s;
}
.toggle-slider::before {
  content: ''; position: absolute;
  width: 18px; height: 18px; border-radius: 50%;
  left: 3px; bottom: 3px;
  background: var(--white);
  transition: .3s;
  box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle input:checked + .toggle-slider { background: var(--purple); }
.toggle input:checked + .toggle-slider::before { transform: translateX(20px); }

/* ══════════════════════════════════════════════════════════
   TOAST
══════════════════════════════════════════════════════════ */
.toast {
  position: fixed;
  bottom: 28px; left: 50%;
  transform: translateX(-50%) translateY(80px);
  background: var(--purple-d);
  color: var(--white);
  padding: 13px 22px;
  border-radius: var(--radius);
  font-size: 13.5px; font-weight: 600;
  box-shadow: 0 8px 28px rgba(76,21,119,.40);
  display: flex; align-items: center; gap: 10px;
  transition: transform .4s cubic-bezier(.34,1.56,.64,1), opacity .4s;
  z-index: 999;
  min-width: 260px; justify-content: center;
  opacity: 0;
  pointer-events: none;
}
.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
.toast i { color: var(--cyan); font-size: 16px; }

/* ══════════════════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .form-row { grid-template-columns: 1fr; }
  .rol-group { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .content { padding: 16px 14px 40px; }
  .topbar  { padding: 0 14px; }
  .modal-body { padding: 18px 16px; }
  .modal-footer { padding: 14px 16px 18px; }
  .filter-bar { flex-direction: column; align-items: stretch; }
  .fsel { min-width: 100%; }
}

/* ============================================================
   EXTRA GLOBAL (para que todos los módulos compartan clases)
   - celdas con ícono (profesiones/trabajos/tipolider/comunidades)
   - encabezado de modal peligro (modal-head-danger)
   ============================================================ */

/* Celdas tipo "profesión/trabajo" (usado en profesiones.js y trabajos.js) */
.prof-cell{
  display:flex;
  align-items:center;
  gap:12px;
}
.prof-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  flex-shrink:0;
  background:linear-gradient(135deg,var(--purple-d),var(--purple-l));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:16px;
}
.prof-name{font-weight:700;font-size:14px;}

/* Celdas tipo "tipo líder" */
.tipo-cell{
  display:flex;
  align-items:center;
  gap:12px;
}
.tipo-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  flex-shrink:0;
  background:linear-gradient(135deg,var(--purple-d),var(--purple-l));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:16px;
}
.tipo-name{font-weight:700;font-size:14px;}

/* Celdas tipo "comunidad" */
.com-cell{
  display:flex;
  align-items:center;
  gap:12px;
}
.com-icon{
  width:38px;
  height:38px;
  border-radius:10px;
  flex-shrink:0;
  background:linear-gradient(135deg,var(--purple-d),var(--purple-l));
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  font-size:16px;
}
.com-name{font-weight:700;font-size:14px;}

/* Header de modal en modo peligro (usado en varios módulos) */
.modal-head-danger{
  background:linear-gradient(135deg,#7F1D1D,#DC2626) !important;
}

/* ── Ícono SVG del menú lateral ─────────────────────────────── */
.menu-ico {
  width: 17px;
  height: 17px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.menu-ico svg {
  width: 100%;
  height: 100%;
}
