:root {
    --primary: #1e3a66;
    --primary-soft: #e9eef5;
    --accent: #2fbf83;
    --bg: #f4f6f9;
    --card: #ffffff;
    --text: #1f2d3d;
    --text-light: #6b7280;
}
body {
    background: var(--bg);
    font-family: 'Inter', sans-serif;
    color: var(--text);
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: .2px;
}

h1, h2, h3 {
    font-weight: 700;
}

p {
    color: var(--text-light);
}

.hero-card {
    border: 0;
    border-radius: 24px;
    background: linear-gradient(135deg, #1f7a63, #2fbf83);
    color: white;
    box-shadow: 0 18px 45px rgba(91, 91, 214, .22);
}

.card, .module-card {
    background: var(--card);
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.05);
    border: none;
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 35px rgba(31, 41, 55, .13);
}

.module-icon {
    width: 55px;
    height: 55px;
    border-radius: 14px;
    background: var(--primary-soft);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stat-card {
    background: var(--card);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
}

.table-card {
    border: 0;
    border-radius: 22px;
    box-shadow: 0 10px 28px rgba(31, 41, 55, .08);
    overflow: hidden;
}

.table thead th {
    white-space: nowrap;
    background: #f1f3f8;
    border-bottom: 0;
}

.badge-categoria {
    font-weight: 600;
    padding: .55rem .75rem;
    border-radius: 50rem;
}

.btn {
    border-radius: 12px;
}

.btn-primary {
    background: var(--primary);
    border: none;
    border-radius: 12px;
    font-weight: 600;
    padding: 10px;
}

.btn-primary:hover {
    background: #162d52;
}

.btn-outline-primary {
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 12px;
}

.btn-outline-primary:hover {
    background: var(--primary);
    color: white;
}

.form-control,
.form-select {
    border-radius: 12px;
    padding: .75rem .9rem;
}

.mobile-actions {
    display: flex;
    gap: .5rem;
    flex-wrap: wrap;
}

@media (max-width: 767.98px) {
    .hero-card {
        border-radius: 18px;
    }

    .table-card {
        border-radius: 16px;
    }

    .table-responsive {
        width: 100%;
        overflow-x: auto;
        border-radius: 0;
    }

    .table-mobile {
        min-width: 720px;
        margin-bottom: 0;
    }

    .table-mobile thead {
        display: table-header-group;
    }

    .table-mobile tbody {
        display: table-row-group;
    }

    .table-mobile tr {
        display: table-row;
        width: auto;
        margin: 0;
        padding: 0;
        border: 0;
        border-radius: 0;
        background-color: transparent;
    }

    .table-mobile td,
    .table-mobile th {
        display: table-cell;
        width: auto;
        padding: 0.85rem 0.75rem;
        vertical-align: middle;
        white-space: nowrap;
        border-bottom: 1px solid #e9ecef;
    }

    .table-mobile td::before {
        display: none;
        content: none;
    }

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

    .mobile-actions {
        display: flex;
        flex-wrap: nowrap;
        gap: 0.4rem;
    }

    .mobile-actions .btn {
        white-space: nowrap;
    }

    #buscador {
        font-size: 0.95rem;
    }
}

@media print {
    .no-print,
    .navbar {
        display: none !important;
    }

    body {
        background: white;
    }

    .table-card,
    .stat-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
