/* ============================================================
   DTI Inventario — style.css
   Glassmorphism dark theme con gradientes
   ============================================================ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
    --bg-base:      #090404; /* Negro carbón cálido */
    --bg-mid:       #120909; /* Gris oscuro con matiz rojo */
    --bg-alt:       #0d0606;
    --sidebar-w:    260px;
    --topbar-h:     68px;

    --bg-sidebar:   rgba(10,5,5,0.88);
    --bg-topbar:    rgba(9,4,4,0.78);
    --border-main:  rgba(255,240,240,0.06);

    --accent1:      #f97316; /* Naranja fuego / Ámbar principal */
    --accent2:      #b91c1c; /* Rojo carmesí profundo */
    --accent3:      #eab308; /* Oro / Amarillo dorado */
    --accent4:      #fca5a5; /* Rosa/rojo muy suave */
    --danger:       #ef4444;
    --warning:      #ea580c;

    --glass-bg:     rgba(255,240,240,0.02);
    --glass-bg2:    rgba(255,240,240,0.05);
    --glass-border: rgba(255,240,240,0.06);
    --glass-border2:rgba(255,240,240,0.12);

    --text-primary: #fff5f5; /* Blanco cálido */
    --text-muted:   rgba(255,245,245,0.55);
    --text-dim:     rgba(255,245,245,0.35);

    --radius-sm:    10px;
    --radius-md:    16px;
    --radius-lg:    22px;
    --shadow-card:  0 8px 32px rgba(0,0,0,0.65);
    --shadow-glow1: 0 0 32px rgba(249,115,22,0.15);
    --shadow-glow2: 0 0 32px rgba(185,28,28,0.15);

    --transition:   all 0.22s cubic-bezier(.4,0,.2,1);
    --bg-modal:     rgba(18, 9, 9, 0.96); /* Fondo modal oscuro */
}

[data-theme="light"] {
    --bg-base:      #fdfbfb; /* Blanco cálido suave */
    --bg-mid:       #f5eae6; /* Gris-rosa claro */
    --bg-alt:       #faf4f2;

    --bg-sidebar:   #faf4f2;
    --bg-topbar:    #fdfbfb;
    --border-main:  rgba(185,28,28,0.08);

    --accent1:      #ea580c; /* Naranja cálido */
    --accent2:      #b91c1c; /* Rojo carmesí */
    --accent3:      #d97706; /* Ámbar */
    --accent4:      #fecaca;
    --danger:       #dc2626;
    --warning:      #ea580c;

    --glass-bg:     rgba(0,0,0,0.02);
    --glass-bg2:    rgba(0,0,0,0.04);
    --glass-border: rgba(185,28,28,0.08);
    --glass-border2:rgba(185,28,28,0.15);

    --text-primary: #1c0a0a; /* Carbón oscuro cálido */
    --text-muted:   rgba(28,10,10,0.65);
    --text-dim:     rgba(28,10,10,0.45);

    --shadow-card:  0 8px 32px rgba(185,28,28,0.06);
    --shadow-glow1: 0 0 32px rgba(249,115,22,0.05);
    --shadow-glow2: 0 0 32px rgba(185,28,28,0.05);
    --bg-modal:     rgba(255, 255, 255, 0.98); /* Fondo modal claro */
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Inter', sans-serif;
    background: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Orbes animados de fondo - Gradientes radiales cálidos */
body::before {
    content: '';
    position: fixed; top: -200px; left: -200px;
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(185,28,28,0.11) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none; z-index: 0;
    animation: floatOrb1 12s ease-in-out infinite alternate;
    display: block;
}
body::after {
    content: '';
    position: fixed; bottom: -200px; right: -200px;
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(234,88,12,0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none; z-index: 0;
    animation: floatOrb2 15s ease-in-out infinite alternate;
    display: block;
}
@keyframes floatOrb1 { from { transform: translate(0,0) scale(1); } to { transform: translate(40px,40px) scale(1.1); } }
@keyframes floatOrb2 { from { transform: translate(0,0) scale(1); } to { transform: translate(-30px,-30px) scale(1.08); } }

/* ═══════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════ */
.sidebar {
    position: fixed; left: 0; top: 0; bottom: 0;
    width: var(--sidebar-w);
    background: var(--bg-sidebar);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-right: 1px solid var(--border-main);
    display: flex; flex-direction: column;
    z-index: 100;
    transition: var(--transition);
}
.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 24px 20px 20px;
    border-bottom: 1px solid var(--border-main);
}
.brand-icon {
    width: 44px; height: 44px; flex-shrink: 0;
    background: linear-gradient(135deg, #f97316, #b91c1c);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; color: #fff;
    box-shadow: 0 4px 16px rgba(249,115,22,0.35);
}
.brand-name { font-size: 18px; font-weight: 800; color: var(--text-primary); line-height: 1.1; }
.brand-sub  { font-size: 11px; color: var(--text-muted); font-weight: 400; }

/* Nav */
.sidebar-nav {
    flex: 1; overflow-y: auto; padding: 16px 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.nav-section-label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.12em;
    color: var(--text-dim);
    padding: 14px 10px 6px;
}
.nav-item {
    display: flex; align-items: center; gap: 12px;
    padding: 11px 14px;
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    text-decoration: none;
    font-size: 13.5px; font-weight: 500;
    transition: var(--transition);
    margin-bottom: 3px;
    position: relative;
    white-space: nowrap;
}
.nav-item i { font-size: 18px; flex-shrink: 0; }
.nav-item:hover {
    background: var(--glass-bg2);
    color: var(--text-primary);
}
.nav-item.active {
    background: linear-gradient(90deg, rgba(249,115,22,0.15), rgba(185,28,28,0.08));
    color: var(--accent1);
    border: 1px solid rgba(249,115,22,0.25);
}
.nav-item.active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 3px; border-radius: 0 3px 3px 0;
    background: var(--accent1);
}

/* Footer sidebar */
.sidebar-footer {
    display: flex; align-items: center; gap: 10px;
    padding: 16px 14px;
    border-top: 1px solid var(--border-main);
}
.user-avatar {
    width: 36px; height: 36px; flex-shrink: 0;
    background: linear-gradient(135deg, #ffffff, #a3a3a3);
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; color: #000;
}
.user-info { flex: 1; min-width: 0; }
.user-name { font-size: 13px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-role { font-size: 11px; color: var(--text-muted); }
.btn-logout {
    width: 32px; height: 32px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
    font-size: 18px;
}
.btn-logout:hover { background: rgba(255,255,255,0.1); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   MAIN WRAPPER & TOPBAR
   ═══════════════════════════════════════════════════════════ */
.main-wrapper {
    margin-left: var(--sidebar-w);
    min-height: 100vh;
    display: flex; flex-direction: column;
    position: relative; z-index: 1;
}
.topbar {
    position: sticky; top: 0; z-index: 50;
    height: var(--topbar-h);
    display: flex; align-items: center; justify-content: space-between;
    padding: 0 28px;
    background: var(--bg-topbar);
    border-bottom: 1px solid var(--border-main);
}
.topbar-left { display: flex; align-items: center; gap: 12px; }
.page-title  { font-size: 18px; font-weight: 700; color: var(--text-primary); }
.topbar-right { display: flex; align-items: center; gap: 12px; }
.date-badge {
    display: flex; align-items: center; gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 8px; padding: 6px 12px;
    font-size: 12px; color: var(--text-muted);
}

.page-content { padding: 28px; flex: 1; }

/* ═══════════════════════════════════════════════════════════
   GLASS CARDS
   ═══════════════════════════════════════════════════════════ */
.glass-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-card);
    transition: var(--transition);
}
.glass-card:hover { border-color: var(--glass-border2); }

.card-title {
    font-size: 14px; font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase; letter-spacing: 0.06em;
    margin-bottom: 8px;
}
.card-value {
    font-size: 38px; font-weight: 800;
    color: var(--text-primary); line-height: 1;
}
.card-sub { font-size: 12px; color: var(--text-muted); margin-top: 4px; }

/* Stat cards con gradiente en icono */
.stat-card {
    display: flex; flex-direction: column;
    gap: 6px;
    padding: 22px 24px;
    animation: fadeInUp 0.4s ease both;
}
.stat-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: #fff;
    margin-bottom: 10px;
    flex-shrink: 0;
}
.stat-icon.cyan    { background: linear-gradient(135deg, #f97316, #ea580c); box-shadow: 0 4px 16px rgba(249,115,22,0.3); color: #fff; }
.stat-icon.violet  { background: linear-gradient(135deg, #ef4444, #991b1b); box-shadow: 0 4px 16px rgba(239,68,68,0.3); color: #fff; }
.stat-icon.green   { background: linear-gradient(135deg, #fbbf24, #d97706); box-shadow: 0 4px 16px rgba(251,191,36,0.3); color: #fff; }
.stat-icon.amber   { background: linear-gradient(135deg, #ea580c, #7c2d12); box-shadow: 0 4px 16px rgba(234,88,18,0.25); color: #fff; }
.stat-icon.red     { background: linear-gradient(135deg, #f97316, #b91c1c); box-shadow: 0 4px 16px rgba(249,115,22,0.3); color: #fff; }

/* Grid helpers */
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(2,1fr); gap: 20px; }
.grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; }
.col-span-2 { grid-column: span 2; }
.col-span-3 { grid-column: span 3; }

/* ═══════════════════════════════════════════════════════════
   TABLA DE DATOS
   ═══════════════════════════════════════════════════════════ */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
}
.dti-table {
    width: 100%; border-collapse: collapse;
    font-size: 13.5px;
}
.dti-table thead th {
    padding: 13px 14px;
    text-align: left;
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
    background: rgba(255,255,255,0.03);
    border-bottom: 1px solid var(--glass-border);
    white-space: nowrap;
}
.dti-table tbody tr {
    border-bottom: 1px solid rgba(255,255,255,0.04);
    transition: var(--transition);
}
.dti-table tbody tr:hover { background: rgba(255,255,255,0.04); }
.dti-table tbody td {
    padding: 12px 14px;
    color: var(--text-primary);
    vertical-align: middle;
}
.dti-table tbody tr:last-child { border-bottom: none; }

/* Foto thumbnail */
.foto-thumb {
    width: 44px; height: 44px;
    border-radius: 10px;
    object-fit: cover;
    border: 2px solid var(--glass-border);
    cursor: pointer;
    transition: var(--transition);
}
.foto-thumb:hover {
    transform: scale(1.08);
    border-color: var(--accent1);
    box-shadow: 0 4px 16px rgba(0,212,255,0.3);
}
.no-foto {
    width: 44px; height: 44px;
    border-radius: 10px;
    background: var(--glass-bg2);
    border: 1px dashed var(--glass-border);
    display: flex; align-items: center; justify-content: center;
    color: var(--text-dim); font-size: 18px;
}

/* ─── Badges de estado ──────────────────────────────────────── */
.badge {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 4px 10px; border-radius: 20px;
    font-size: 11px; font-weight: 600;
    letter-spacing: 0.03em; white-space: nowrap;
}
.badge-almacen { background: rgba(234,179,8,0.12); color: #fbbf24; border: 1px solid rgba(234,179,8,0.25); }
.badge-asignada { background: rgba(249,115,22,0.12); color: #fdba74; border: 1px solid rgba(249,115,22,0.25); }
.badge-baja     { background: rgba(185,28,28,0.12);  color: #fca5a5; border: 1px solid rgba(185,28,28,0.25); }

/* ─── Código DTI ────────────────────────────────────────────── */
.codigo-badge {
    font-size: 12px; font-weight: 700;
    font-family: 'Courier New', monospace;
    background: linear-gradient(135deg, rgba(249,115,22,0.1), rgba(185,28,28,0.1));
    border: 1px solid rgba(249,115,22,0.2);
    color: var(--accent1);
    padding: 4px 10px; border-radius: 8px;
}

/* ═══════════════════════════════════════════════════════════
   FORMULARIOS
   ═══════════════════════════════════════════════════════════ */
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.form-grid.cols-3 { grid-template-columns: repeat(3,1fr); }
.form-full { grid-column: 1 / -1; }

.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-group label {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-muted);
}
.form-control {
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 11px 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    transition: var(--transition);
    outline: none;
    width: 100%;
}
.form-control:focus {
    border-color: var(--accent1);
    box-shadow: 0 0 0 3px rgba(255,255,255,0.12);
    background: var(--glass-bg2);
}
.form-control::placeholder { color: var(--text-dim); }
.form-control option { background: var(--bg-mid); color: var(--text-primary); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 80px; }

/* ─── Upload de foto ────────────────────────────────────────── */
.foto-upload-area {
    border: 2px dashed var(--glass-border);
    border-radius: var(--radius-md);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: var(--transition);
    background: rgba(255,255,255,0.02);
}
.foto-upload-area:hover, .foto-upload-area.drag-over {
    border-color: var(--accent1);
    background: rgba(255,255,255,0.05);
}
.foto-upload-area i { font-size: 36px; color: var(--text-dim); }
.foto-upload-area p { font-size: 13px; color: var(--text-muted); margin-top: 8px; }
.foto-preview { max-width: 100%; max-height: 160px; border-radius: 10px; object-fit: cover; margin-top: 10px; }

/* ═══════════════════════════════════════════════════════════
   BOTONES
   ═══════════════════════════════════════════════════════════ */
.btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 18px; border-radius: var(--radius-sm);
    font-family: 'Inter', sans-serif; font-size: 13.5px; font-weight: 600;
    border: none; cursor: pointer; text-decoration: none;
    transition: var(--transition);
    white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, #f97316, #ea580c);
    color: #fff;
    box-shadow: 0 4px 16px rgba(249,115,22,0.25);
}
.btn-primary:hover { opacity: 0.88; transform: translateY(-1px); box-shadow: 0 6px 24px rgba(249,115,22,0.35); }

.btn-success {
    background: linear-gradient(135deg, #eab308, #d97706);
    color: #fff;
    box-shadow: 0 4px 16px rgba(234,179,8,0.25);
}
.btn-success:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-warning {
    background: linear-gradient(135deg, #ea580c, #7c2d12);
    color: #fff;
}
.btn-warning:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #b91c1c);
    color: #fff;
}
.btn-danger:hover { opacity: 0.88; transform: translateY(-1px); }

.btn-ghost {
    background: var(--glass-bg2);
    border: 1px solid var(--glass-border);
    color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text-primary); border-color: var(--glass-border2); }

.btn-sm { padding: 6px 12px; font-size: 12px; }
.btn-icon { width: 34px; height: 34px; padding: 0; justify-content: center; border-radius: 9px; }

/* ─── Toolbar / acciones de tabla ───────────────────────────── */
.table-toolbar {
    display: flex; align-items: center; gap: 10px;
    flex-wrap: wrap; margin-bottom: 20px;
}
.table-toolbar .search-wrap {
    position: relative; flex: 1; min-width: 200px;
}
.table-toolbar .search-wrap i {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 16px; pointer-events: none;
}
.table-toolbar input[type=search] {
    width: 100%;
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 9px 12px 9px 38px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 13.5px;
    outline: none; transition: var(--transition);
}
.table-toolbar input[type=search]:focus { border-color: var(--accent1); }
.table-toolbar input[type=search]::placeholder { color: var(--text-dim); }
.table-toolbar select {
    background: var(--bg-mid);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 9px 14px;
    color: var(--text-primary);
    font-family: 'Inter', sans-serif; font-size: 13px;
    outline: none; cursor: pointer;
}
.table-toolbar select option { background: var(--bg-mid); color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   MODALES
   ═══════════════════════════════════════════════════════════ */
.modal-overlay {
    display: none;
    position: fixed; inset: 0; z-index: 999;
    background: rgba(0,0,0,0.7);
    backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
.modal-overlay.open { display: flex; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.modal-box {
    background: var(--bg-modal);
    border: 1px solid var(--glass-border2);
    border-radius: var(--radius-lg);
    width: 90%; max-width: 580px; max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.7);
    animation: slideUp 0.25s ease;
    position: relative;
}
.modal-box.modal-lg { max-width: 780px; }
@keyframes slideUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }

.modal-header {
    display: flex; align-items: center; gap: 12px;
    margin-bottom: 22px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--glass-border);
}
.modal-header h2 { font-size: 17px; font-weight: 700; flex: 1; }
.modal-close-btn {
    width: 30px; height: 30px;
    background: none; border: none;
    border-radius: 8px; cursor: pointer;
    color: var(--text-muted); font-size: 20px;
    display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.modal-close-btn:hover { background: rgba(239,68,68,0.15); color: var(--danger); }
.modal-footer {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 24px; padding-top: 16px;
    border-top: 1px solid var(--glass-border);
}

/* Foto modal */
.foto-modal-content {
    background: rgba(10,10,30,0.97);
    border: 1px solid var(--glass-border2);
    border-radius: var(--radius-lg);
    padding: 24px;
    max-width: 700px; width: 95%;
    text-align: center;
    position: relative;
}
.foto-modal-content img { max-width: 100%; max-height: 70vh; border-radius: 12px; object-fit: contain; }

/* ═══════════════════════════════════════════════════════════
   ALERTAS & TOASTS
   ═══════════════════════════════════════════════════════════ */
.alert {
    display: flex; align-items: center; gap: 10px;
    padding: 13px 16px; border-radius: var(--radius-sm);
    font-size: 13.5px; margin-bottom: 18px;
}
.alert-success { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); color: #ffffff; }
.alert-error   { background: rgba(113,113,122,0.06); border: 1px solid rgba(113,113,122,0.15); color: #d4d4d8; }
.alert-info    { background: rgba(161,161,170,0.06); border: 1px solid rgba(161,161,170,0.15); color: #a1a1aa; }
.alert-warning { background: rgba(82,82,82,0.06); border: 1px solid rgba(82,82,82,0.15); color: #71717a; }

/* Toast notifications */
#toast-container {
    position: fixed; bottom: 24px; right: 24px;
    z-index: 9999; display: flex; flex-direction: column; gap: 10px;
}
.toast {
    background: rgba(13,13,15,0.97);
    border: 1px solid var(--glass-border2);
    border-radius: 12px;
    padding: 14px 18px;
    min-width: 280px; max-width: 360px;
    display: flex; align-items: center; gap: 10px;
    font-size: 13.5px; font-weight: 500;
    box-shadow: 0 8px 32px rgba(0,0,0,0.5);
    animation: toastIn 0.3s ease;
}
@keyframes toastIn { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: translateX(0); } }
.toast.success { border-left: 3px solid #ffffff; }
.toast.error   { border-left: 3px solid #71717a; }
.toast.info    { border-left: 3px solid #a1a1aa; }

/* ═══════════════════════════════════════════════════════════
   DETALLE DE EQUIPO (modal info)
   ═══════════════════════════════════════════════════════════ */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.info-item label {
    font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.1em;
    color: var(--text-dim); display: block; margin-bottom: 3px;
}
.info-item span { font-size: 14px; color: var(--text-primary); }

/* ═══════════════════════════════════════════════════════════
   ASIGNACIONES — checkboxes y lista de equipos
   ═══════════════════════════════════════════════════════════ */
.equipo-select-list {
    max-height: 280px; overflow-y: auto;
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-sm);
    padding: 8px;
    background: rgba(255,255,255,0.02);
}
.equipo-item {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px; border-radius: 8px;
    cursor: pointer; transition: var(--transition);
    border: 1px solid transparent;
    margin-bottom: 4px;
}
.equipo-item:hover { background: rgba(255,255,255,0.04); }
.equipo-item.selected {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.2);
}
.equipo-item input[type=checkbox] {
    width: 16px; height: 16px; accent-color: var(--accent1);
    flex-shrink: 0;
}
.equipo-item-info .eq-name { font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.equipo-item-info .eq-sub  { font-size: 12px; color: var(--text-muted); }

/* ─── Progress bar ──────────────────────────────────────────── */
.progress-wrap { margin-top: 6px; }
.progress-bar-bg {
    height: 6px; border-radius: 3px;
    background: rgba(255,255,255,0.07);
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%; border-radius: 3px;
    transition: width 0.6s ease;
}

/* ─── Empty state ───────────────────────────────────────────── */
.empty-state {
    text-align: center; padding: 60px 20px;
}
.empty-state i { font-size: 48px; color: var(--text-dim); }
.empty-state p { font-size: 14px; color: var(--text-muted); margin-top: 12px; }

/* ═══════════════════════════════════════════════════════════
   ANIMACIONES
   ═══════════════════════════════════════════════════════════ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
.anim-delay-1 { animation-delay: 0.05s; }
.anim-delay-2 { animation-delay: 0.10s; }
.anim-delay-3 { animation-delay: 0.15s; }
.anim-delay-4 { animation-delay: 0.20s; }

/* Section heading */
.section-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 18px;
}
.section-head h2 { font-size: 16px; font-weight: 700; }

/* Divider */
.divider { height: 1px; background: var(--glass-border); margin: 20px 0; }

/* Paginación */
.pagination {
    display: flex; align-items: center; gap: 6px;
    margin-top: 16px; justify-content: flex-end;
}
.page-btn {
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 8px; font-size: 13px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    color: var(--text-muted); cursor: pointer;
    text-decoration: none; transition: var(--transition);
}
.page-btn:hover, .page-btn.active {
    background: linear-gradient(135deg, var(--accent1), var(--accent2));
    color: #000; border-color: transparent;
}

/* Scroll personalizado global */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.12); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.2); }

/* Responsive básico */
@media (max-width: 1100px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 768px) {
    .sidebar { width: 60px; }
    .sidebar .brand-text, .sidebar .nav-item span, .sidebar .user-name,
    .sidebar .user-role, .sidebar .nav-section-label { display: none; }
    .brand-icon { margin: 0 auto; }
    .sidebar-brand { justify-content: center; padding: 20px 10px; }
    .sidebar-footer { justify-content: center; }
    .main-wrapper { margin-left: 60px; }
    .grid-4, .grid-3 { grid-template-columns: repeat(2,1fr); }
    .grid-2 { grid-template-columns: 1fr; }
    .form-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
    .page-content { padding: 16px; }
    .grid-4, .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

/* ─── Chip de tipo asignado ─────────────────────────────────── */
.chip-personal { background: rgba(255,255,255,0.08); color: #ffffff; border: 1px solid rgba(255,255,255,0.15); }
.chip-aula     { background: rgba(161,161,170,0.1); color: #a1a1aa; border: 1px solid rgba(161,161,170,0.2); }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* ─── Global Table Enhancements (Sticky headers, font sizes, orange scrollbars) ─── */
.dti-table, .dti-table th, .dti-table td, .dti-table span {
    font-size: 8pt !important;
}
.table-wrap {
    max-height: 70vh;
    overflow: auto !important;
    scrollbar-width: thin;
    scrollbar-color: var(--accent1, #f97316) rgba(255, 240, 240, 0.05);
}
.table-wrap::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}
.table-wrap::-webkit-scrollbar-track {
    background: rgba(255, 240, 240, 0.05);
    border-radius: 5px;
}
.table-wrap::-webkit-scrollbar-thumb {
    background: var(--accent1, #f97316) !important;
    border-radius: 5px;
}
.table-wrap::-webkit-scrollbar-thumb:hover {
    background: #ea580c !important;
}
.dti-table thead th {
    position: sticky !important;
    top: 0 !important;
    z-index: 100 !important;
    background: var(--bg-mid) !important;
    color: var(--text-primary) !important;
    box-shadow: 0 2px 2px -1px rgba(0, 0, 0, 0.2);
    border-bottom: 2px solid var(--glass-border2) !important;
}
.glass-card {
    overflow: visible !important;
}
.btn-scroll-top {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #1a2744;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.1);
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    z-index: 99999;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
}
.btn-scroll-top:hover {
    background: #2d3e7e;
    transform: translateY(-3px);
}
