/* --- SISTEMA DE DISEÑO PREMIUM Y VARIABLES --- */
:root {
    --primary-color: #0d6efd;
    --primary-accent: #a855f7;
    --text-muted-color: #94a3b8;
    --bg-premium-dark: #0f172a; /* Slate 900 */
    --sidebar-bg: #1e293b;       /* Slate 800 */
    --sidebar-width: 260px;
    --border-glass: rgba(255, 255, 255, 0.4);
    --bg-glass: rgba(255, 255, 255, 0.75);
}

/* --- ESTILOS GLOBALES --- */
body {
    font-family: 'Outfit', sans-serif !important;
    background-color: #f8fafc;
    color: #1e293b;
    margin: 0;
    min-height: 100vh;
}

/* --- DISEÑO DE DASHBOARD ADMINISTRATIVO (SIDEBAR LAYOUT) --- */
body.layout-dashboard {
    background-color: #f1f5f9;
}

/* Sidebar Estilo */
.sidebar-premium {
    width: var(--sidebar-width);
    height: 100vh;
    position: fixed;
    top: 0;
    left: 0;
    background-color: var(--sidebar-bg);
    color: #f8fafc;
    display: flex;
    flex-direction: column;
    z-index: 1000;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.text-primary-accent {
    color: var(--primary-accent);
}

.sidebar-nav {
    overflow-y: auto;
    padding-top: 1.5rem;
}

.nav-link-premium {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s ease-in-out;
}

.nav-link-premium:hover {
    background-color: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    transform: translateX(4px);
}

.nav-link-premium.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.nav-link-premium.btn-portal {
    border: 1px dashed rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.03);
}

.nav-link-premium.btn-portal:hover {
    border-color: var(--primary-color);
    background-color: rgba(59, 130, 246, 0.1);
}

/* Main Content Area */
.main-content-premium {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
    transition: margin-left 0.3s ease;
}

@media (max-width: 991px) {
    .sidebar-premium {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }
    .sidebar-premium.show {
        transform: translateX(0);
    }
    .main-content-premium {
        margin-left: 0;
    }
}

/* --- DISEÑO DE PORTAL PÚBLICO (GLASS navbar) --- */
.navbar-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-glass);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
}

body.layout-public {
    background: radial-gradient(circle at 10% 20%, rgba(243, 244, 246, 0.7) 0%, rgba(229, 231, 235, 0.7) 90%), url('https://images.unsplash.com/photo-1560066984-138dadb4c035?q=80&w=1920&auto=format&fit=crop') no-repeat center center fixed;
    background-size: cover;
}

/* --- COMPONENTES MODERNOS --- */
.card {
    border: none;
    border-radius: 16px;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #3b82f6 100%);
    border: none;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.2);
    transition: all 0.2s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 14px rgba(59, 130, 246, 0.3);
}

/* Custom badges */
.badge {
    font-weight: 600;
    letter-spacing: 0.025em;
}

/* Form controls */
.form-control, .form-select {
    border-radius: 10px;
    border: 1px solid #cbd5e1;
    padding: 10px 14px;
    transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.form-control:focus, .form-select:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}