
:root {
    --fdp-azul: #5377A8;           /* Azul Marca Exacto */
    --fdp-azul-accent: #3a5c85;    /* Azul para estados hover/active */
    --fdp-amarillo: #FDC413;       /* Amarillo Marca Exacto */
    --fdp-bg: radial-gradient(circle at top right, #f8fafc, #e2e8f0);
    --fdp-shadow: 0 10px 25px rgba(83, 119, 168, 0.1);
}

/* --- ESTILOS BASE Y LAYOUT --- */
body { 
    background: var(--fdp-bg);
    background-attachment: fixed;
    font-family: 'Inter', sans-serif; 
    color: #334155;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* --- NAVEGACION (HEADER COMPACTO) --- */
.navbar-custom {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    min-height: 80px;
    z-index: 1000;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b !important;
    text-transform: lowercase;
    padding: 8px 15px !important;
    transition: 0.2s;
}

.nav-link:hover { color: var(--fdp-azul) !important; }
.nav-link.active { 
    color: var(--fdp-azul) !important; 
    background: rgba(83, 119, 168, 0.08);
    border-radius: 10px;
}

.user-card {
    background: white;
    border: 1px solid #e2e8f0;
    padding: 4px 12px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.role-badge {
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    background: var(--fdp-azul);
    color: white;
    padding: 3px 8px;
    border-radius: 6px;
}

/* --- TARJETAS DE MENU (COMPACTAS PARA EVITAR SCROLL) --- */
.card-menu {
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #ffffff;
    padding: 0.8rem !important; /* Padding reducido */
    min-height: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
}

.card-menu:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 15px 30px rgba(0,0,0,0.08) !important;
    border-color: var(--fdp-azul);
}

.icon-circle {
    width: 45px !important;  /* Iconos más pequeños */
    height: 45px !important; 
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px !important; 
    font-size: 1.2rem !important;
}

.bg-marca-azul { background-color: var(--fdp-azul) !important; color: white !important; }
.text-marca-azul { color: var(--fdp-azul) !important; }
.border-marca-azul { border-color: var(--fdp-azul) !important; }

.bg-marca-amarillo { background-color: var(--fdp-amarillo) !important; color: white !important; }
.text-marca-amarillo { color: var(--fdp-amarillo) !important; }
.border-marca-amarillo { border-color: var(--fdp-amarillo) !important; }

.bg-soft-warning { background-color: #fef9c3; color: #a16207; }
.bg-soft-info    { background-color: #e0f2fe; color: #0369a1; }
.bg-soft-success { background-color: #dcfce7; color: #15803d; }
.bg-soft-danger  { background-color: #fee2e2; color: #991b1b; }
.bg-soft-orange  { background-color: #fff7ed; color: #ea580c; }
.bg-soft-indigo  { background-color: #eef2ff; color: #4338ca; }
.bg-soft-secondary { background-color: #f1f5f9; color: #475569; }

.table-container { 
    background: white; 
    border-radius: 20px; 
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    overflow: hidden; 
}

.table thead {
    background-color: var(--fdp-azul);
    color: white;
}

.table thead th {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    border: none;
    padding: 12px;
}

.form-control-lg-custom {
    border-radius: 12px;
    border: 1.5px solid #e2e8f0;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.form-control-lg-custom:focus {
    border-color: var(--fdp-azul);
    box-shadow: 0 0 0 4px rgba(83, 119, 168, 0.15);
}

.label-custom {
    font-size: 0.65rem;
    font-weight: 800;
    color: #64748b;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

.login-card {
    max-width: 380px;
    border-radius: 28px;
    padding: 40px;
    border: none;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.login-title {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--fdp-azul);
    text-transform: uppercase;
    letter-spacing: -0.5px;
}

@media (min-width: 992px) {
    .col-md-2-5 {
        width: 20%;
        flex: 0 0 20%;
    }
}

.footer {
    padding: 15px 0;
    border-top: 1px solid #e2e8f0;
    background: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
    color: #94a3b8;
    margin-top: auto;
}