
         :root {
            --primary-color: #0275d8;
            --secondary-color: #5bc0de;
            --success-color: #5cb85c;
            --warning-color: #f0ad4e;
            --danger-color: #d9534f;
            --light-color: #f8f9fa;
            --dark-color: #343a40;
            --border-color: #dee2e6;
            --gradient-primary: linear-gradient(135deg, #0275d8 0%, #5bc0de 100%);
        }
        
        body {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            overflow-x: hidden;
            background-color: #f5f7f9;
            padding-top: 70px; 
        }
        
        /* Header styles */
        .header {
            background-color: white;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
            padding: 15px 0;
            position: fixed;
            width: 100%;
            top: 0;
            left: 0;
            z-index: 1030;
        }
        
        .company-logo {
            height: 45px;
        }
        
        /* Sidebar styles */
        .sidebar {
            width: 250px;
            background-color: white;
            border-right: 1px solid var(--border-color);
            height: calc(100vh - 70px);
            position: fixed;
            top: 70px;
            left: 0;
            box-shadow: 2px 0 5px rgba(0,0,0,0.05);
            z-index: 100;
            overflow-y: auto;
        }
        
        .sidebar .nav-link {
            color: var(--dark-color);
            border-left: 3px solid transparent;
            padding: 12px 20px;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: space-between;
        }
        
        .sidebar .nav-link:hover {
            background-color: rgba(2, 117, 216, 0.1);
            border-left: 3px solid var(--primary-color);
        }
        
        .sidebar .nav-link.active {
            background-color: rgba(2, 117, 216, 0.1);
            border-left: 3px solid var(--primary-color);
            color: var(--primary-color);
            font-weight: 500;
        }
        
        .sidebar .submenu {
            margin-left: 20px;
            display: none;
        }
        
        .sidebar .submenu.show {
            display: block;
        }
        
        /* Main content */
        .main-content {
            margin-left: 250px;
            padding: 20px;
            min-height: calc(100vh - 70px);
            transition: all 0.3s;
        }
        
        /* Dashboard Card Styles */
        .dashboard-card {
            background-color: white;
            border-radius: 8px;
            box-shadow: 0 2px 6px rgba(0,0,0,0.1);
            transition: transform 0.3s;
            margin-bottom: 20px;
            border: 1px solid var(--border-color);
        }
        
        .dashboard-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        .dashboard-card .card-header {
            border-bottom: 1px solid var(--border-color);
            padding: 1rem;
        }
        
        .dashboard-card .card-icon {
            font-size: 2.5rem;
            opacity: 0.8;
        }
        
        /* Metric cards */
        .metric-card {
            position: relative;
            overflow: hidden;
            margin-bottom: 20px;
        }
        
        /* User dropdown */
        .user-dropdown .dropdown-menu {
            border-radius: 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            border: 1px solid var(--border-color);
        }
        
        /* Menu icon rotation */
        .menu-icon {
            transition: transform 0.3s ease;
        }
        
        .menu-icon.rotate {
            transform: rotate(180deg);
        }
        
        /* Responsive */
        @media (max-width: 768px) {
            .sidebar {
                width: 0;
                overflow-x: hidden;
                transition: all 0.3s;
            }
            
            .sidebar.active {
                width: 250px;
            }
            
            .main-content {
                margin-left: 0;
                transition: all 0.3s;
            }
            
            .main-content.active {
                margin-left: 250px;
            }
        }
        .card-body {
            padding: 1.5rem; /* Asegura padding adicional alrededor del contenido */
        }

        /* Estilos para validación de contraseñas */
        .password-strength {
            font-size: 0.875rem;
        }

        .strength-weak { 
            color: #dc3545; 
        }
        
        .strength-medium { 
            color: #ffc107; 
        }
        
        .strength-strong { 
            color: #198754; 
        }

        /* Mejorar el modal */
        .modal-header.bg-primary {
            border-bottom: none;
        }

        .btn-close-white {
            filter: invert(1);
        }
        .header {
            box-shadow: 0 2px 8px rgba(0,0,0,0.1) !important;
        }

        .header h4 {
            font-weight: 900 !important;
            font-size: 1.75rem !important;
            color: var(--primary-color) !important;
            margin-left: 20px !important;
        }

        .company-logo {
            transition: transform 0.3s ease;
        }

        .company-logo:hover {
            transform: scale(1.05);
        }

        /* 3. MEJORAR SIDEBAR - Fuente más visible e iconos coloridos */
        .sidebar {
            box-shadow: 2px 0 8px rgba(0,0,0,0.08) !important;
        }

        .sidebar .nav-link {
            font-size: 1.05rem !important;
            font-weight: 600 !important;
            padding: 14px 20px !important;
            border-radius: 0 10px 10px 0;
            margin: 2px 8px 2px 0;
        }

        .sidebar .nav-link:hover {
            background-color: rgba(2, 117, 216, 0.1) !important;
            border-left: 4px solid var(--primary-color) !important;
            transform: translateX(3px);
        }

        .sidebar .nav-link.active {
            font-weight: 700 !important;
        }

        /* 4. ICONOS COLORIDOS Y MÁS GRANDES */
        .sidebar .nav-link i {
            font-size: 1.3rem;
            margin-right: 12px;
            transition: all 0.3s ease;
        }

        /* Colores específicos por ícono */
        #dashboardLink i {
            color: #0275d8;
        }

        #ingresosLink > span > i {
            color: #28a745;
        }

        #scoringLink i {
            color: #ff9800;
        }

        #locacionLink i {
            color: #e91e63;
        }

        #fichaProveedorLink i {
            color: #00bcd4;
        }

        #visitasLink > span > i {
            color: #9c27b0;
        }

        #administracionLink > span > i {
            color: #607d8b;
        }

        /* Iconos de submenú */
        #proveedoresLink i {
            color: #0275d8;
        }

        #localesLink i {
            color: #28a745;
        }

        #visitasProveedorLink i {
            color: #9c27b0;
        }

        #visitasLiquidadorLink i {
            color: #673ab7;
        }

        #usuariosLink i {
            color: #2196f3;
        }

        #perfilesLink i {
            color: #ff5722;
        }

        #permisosLink i {
            color: #ffc107;
        }

        #auditoriasLink i {
            color: #795548;
        }

        .sidebar .nav-link:hover i {
            transform: scale(1.15) rotate(5deg);
        }

        .sidebar .submenu .nav-link {
            font-size: 0.95rem !important;
            font-weight: 500 !important;
            padding: 10px 20px !important;
        }

        /* 5. BOTONES CON DEGRADADO Y BORDES REDONDEADOS */
        .btn {
            border-radius: 10px !important;
            font-weight: 600 !important;
            transition: all 0.3s ease;
        }

        .btn-primary {
            background: var(--gradient-primary) !important;
            border: none !important;
            box-shadow: 0 4px 12px rgba(2, 117, 216, 0.3);
        }

        .btn-primary:hover {
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(2, 117, 216, 0.4) !important;
        }

        .btn-primary:active {
            transform: translateY(0);
        }

        .btn-outline-primary {
            border: 2px solid var(--primary-color) !important;
            color: var(--primary-color) !important;
            background: white !important;
        }

        .btn-outline-primary:hover {
            background: var(--gradient-primary) !important;
            color: white !important;
            border-color: transparent !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 16px rgba(2, 117, 216, 0.3);
        }

        /* 6. CARDS CON BORDES REDONDEADOS */
        .dashboard-card {
            border-radius: 16px !important;
            box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
            border: 1px solid #e9ecef !important;
        }

        .dashboard-card:hover {
            transform: translateY(-4px);
            box-shadow: 0 8px 20px rgba(0,0,0,0.12) !important;
        }

        .dashboard-card .card-header {
            border-radius: 16px 16px 0 0 !important;
            background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
        }

        /* 7. MODALES CON BORDES REDONDEADOS */
        .modal-content {
            border-radius: 16px !important;
            border: none !important;
            box-shadow: 0 12px 48px rgba(0,0,0,0.2);
        }

        .modal-header {
            border-radius: 16px 16px 0 0 !important;
        }

        .modal-header.bg-primary {
            background: var(--gradient-primary) !important;
        }

        /* 8. FORMULARIOS CON BORDES REDONDEADOS */
        .form-control {
            border-radius: 10px !important;
        }

        .form-floating {
            border-radius: 10px !important;
        }

        .form-select {
            border-radius: 10px !important;
        }

        /* 9. DROPDOWN MEJORADO */
        .dropdown-menu {
            border-radius: 12px !important;
            box-shadow: 0 8px 24px rgba(0,0,0,0.12) !important;
            border: 1px solid #e9ecef !important;
        }

        .dropdown-item {
            border-radius: 8px;
            margin: 4px 8px;
            transition: all 0.2s ease;
        }

        .dropdown-item:hover {
            background: linear-gradient(90deg, rgba(2, 117, 216, 0.1) 0%, rgba(91, 192, 222, 0.05) 100%) !important;
            color: var(--primary-color) !important;
            transform: translateX(4px);
        }

        /* 10. TABLAS */
        .table {
            border-radius: 12px !important;
            overflow: hidden;
        }

        .table thead th {
            font-weight: 600;
        }

        /* 11. ALERTAS */
        .alert {
            border-radius: 12px !important;
        }

        /* 12. PROGRESS BARS */
        .progress {
            border-radius: 12px !important;
            height: 24px;
        }

        .progress-bar {
            background: var(--gradient-primary) !important;
        }

        /* 13. BADGES */
        .badge {
            border-radius: 8px !important;
            padding: 0.5rem 1rem;
            font-weight: 600;
        }

        /* 14. USER DROPDOWN BUTTON */
        .user-dropdown .dropdown-toggle {
            border-radius: 10px !important;
            font-weight: 600;
            border: 2px solid #e9ecef;
            transition: all 0.3s ease;
        }

        .user-dropdown .dropdown-toggle:hover {
            border-color: var(--primary-color) !important;
            background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
            transform: translateY(-2px);
        }
        
        /* Estilos para el tab de fotografías mejorado */
        .foto-preview {
            transition: all 0.3s ease;
            cursor: pointer;
        }

        .foto-preview:hover {
            border-color: #0d6efd !important;
            background-color: #4d4d4d !important;
        }

        .foto-preview img {
            max-width: 100%;
            max-height: 100%;
            object-fit: cover;
            border-radius: 4px;
        }

        /* Estilos para el carrusel */
        .carousel-item img {
            border-radius: 8px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        }

        .carousel-caption {
            background: rgba(0, 0, 0, 0.7) !important;
            border-radius: 8px;
            padding: 10px 15px;
        }

        .carousel-control-prev,
        .carousel-control-next {
            width: 10%;
            
        }

        .carousel-control-prev-icon,
        .carousel-control-next-icon {
            background-size: 80px 80px;
            filter: drop-shadow(0 0 5px black);
        }

        /* Estilos para el modal de progreso */
        .spinner-border {
            width: 3rem;
            height: 3rem;
        }

        .progress {
            height: 20px;
            background-color: #e9ecef;
            border-radius: 10px;
            overflow: hidden;
        }

        .progress-bar {
            background-color: #0d6efd;
            transition: width 0.3s ease;
        }

        /* Estilos para las pills de navegación */
        .nav-pills .nav-link {
            border-radius: 20px;
            margin-right: 10px;
            transition: all 0.3s ease;
        }

        .nav-pills .nav-link:hover {
            background-color: #e3f2fd;
            color: #1976d2;
        }

        .nav-pills .nav-link.active {
            background-color: #0d6efd;
            color: white;
        }

        /* Responsive adjustments */
        @media (max-width: 768px) {
            .carousel-control-prev,
            .carousel-control-next {
                width: 10%;
            }
            
            .carousel-caption {
                display: none !important;
            }
            
            .nav-pills {
                flex-direction: column;
            }
            
            .nav-pills .nav-link {
                margin-right: 0;
                margin-bottom: 5px;
            }
        }

        /* Estilos para estados de carga */
        .loading-overlay {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(255, 255, 255, 0.8);
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
        }

        .loading-spinner {
            border: 4px solid #f3f3f3;
            border-top: 4px solid #3498db;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            animation: spin 2s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }
        
        /* Estilos adicionales para el banner */
        .main-content.with-banner {
            padding-top: 90px; /* Agregar espacio adicional cuando el banner está visible */
        }
        
        .sidebar.with-banner {
            top: 130px; /* Ajustar posición del sidebar cuando el banner está visible */
            height: calc(100vh - 130px);
        }
        
        #bannerPasswordTemporal {
            transition: all 0.3s ease;
        }
        
        #bannerPasswordTemporal.show {
            opacity: 1;
            transform: translateY(0);
        }
        
        #bannerPasswordTemporal:not(.show) {
            opacity: 0;
            transform: translateY(-100%);
        }
        
        /* Ajuste para dispositivos móviles */
        @media (max-width: 768px) {
            #bannerPasswordTemporal .col-md-8,
            #bannerPasswordTemporal .col-md-4 {
                flex: 0 0 100%;
                max-width: 100%;
            }
            
            #bannerPasswordTemporal .text-end {
                text-align: center !important;
                margin-top: 10px;
            }
        }
        
        /* Dashboard Styles - Integrado */
    .dashboard-container {
        padding: 2rem 0;
    }

    /* Metric Cards - Diseño Compacto y Moderno */
    .metric-card {
        position: relative;
        overflow: hidden;
        border-radius: 16px;
        padding: 1.75rem 1.5rem;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        cursor: pointer;
        border: 2px solid transparent;
        background: white;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        height: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .metric-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: currentColor;
        opacity: 0.8;
        transition: height 0.3s ease;
    }

    .metric-card:hover {
        transform: translateY(-8px) scale(1.02);
        box-shadow: 0 12px 28px rgba(0,0,0,0.15);
        border-color: currentColor;
    }

    .metric-card:hover::before {
        height: 100%;
        opacity: 0.05;
    }

    .metric-card:active {
        transform: translateY(-4px) scale(1.01);
    }

    /* Card Content Layout */
    .card-content {
        position: relative;
        z-index: 2;
    }

    .card-icon-wrapper {
        position: absolute;
        top: 50%;
        right: 1rem;
        transform: translateY(-50%);
        font-size: 4rem;
        opacity: 0.08;
        transition: all 0.4s ease;
        z-index: 1;
    }

    .metric-card:hover .card-icon-wrapper {
        opacity: 0.15;
        transform: translateY(-50%) scale(1.1) rotate(5deg);
    }

    .card-label {
        font-size: 0.875rem;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.75rem;
        opacity: 0.85;
    }

    .card-value {
        font-size: 2.5rem;
        font-weight: 700;
        line-height: 1;
        margin: 0;
    }

    /* Color Variants */
    .metric-card.card-primary {
        color: #0275d8;
    }

    .metric-card.card-success {
        color: #5cb85c;
    }

    .metric-card.card-info {
        color: #5bc0de;
    }

    .metric-card.card-warning {
        color: #f0ad4e;
    }

    .metric-card.card-purple {
        color: #6f42c1;
    }

    .metric-card.card-indigo {
        color: #4B0082;
    }

    /* Activity Card Styles */
    .activity-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
        transition: box-shadow 0.3s ease;
    }

    .activity-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    }

    .activity-card .card-header {
        background: linear-gradient(135deg, #0275d8 0%, #5bc0de 100%);
        border-bottom: 2px solid #dee2e6;
        padding: 1.20rem 1.5rem;
    }

    .activity-card .card-title {
        font-size: 1.25rem;
        font-weight: 700;
        color: #ffffff;
        margin: 0;
    }

    .activity-table {
        margin: 0;
    }

    .activity-table thead {
        background: #f8f9fa;
    }

    .activity-table thead th {
        border-bottom: 2px solid #dee2e6;
        color: #495057;
        font-weight: 600;
        font-size: 0.875rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        padding: 1rem;
    }

    .activity-table tbody tr {
        transition: all 0.2s ease;
        border-bottom: 1px solid #f1f3f5;
    }

    .activity-table tbody tr:hover {
        background: #f8f9fa;
        transform: scale(1.01);
    }

    .activity-table tbody td {
        padding: 1rem;
        vertical-align: middle;
    }

    /* Quick Access Card */
    .quick-access-card {
        background: white;
        border-radius: 16px;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
        overflow: hidden;
        height: 100%;
    }

    .quick-access-card .card-header {
        background: linear-gradient(135deg, #0275d8 0%, #5bc0de 100%);
        color: white;
        padding: 1.5rem 1.5rem;
        border: none;
    }

    .quick-access-card .card-title {
        color: white;
        font-size: 1.25rem;
        font-weight: 700;
        margin: 0;
    }

    .quick-access-btn {
        background: white;
        border: 2px solid #e9ecef;
        border-radius: 12px;
        padding: 1.5rem 1rem;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        text-decoration: none;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        color: #495057;
        font-weight: 600;
        height: 100%;
    }

    .quick-access-btn:hover {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-color: #0275d8;
        color: #0275d8;
        transform: translateY(-4px);
        box-shadow: 0 8px 16px rgba(2, 117, 216, 0.2);
    }

    .quick-access-btn:active {
        transform: translateY(-2px);
    }

    .quick-access-btn i {
        font-size: 2rem;
        transition: transform 0.3s ease;
    }

    .quick-access-btn:hover i {
        transform: scale(1.2);
    }

    /* Badge Styles */
    .badge {
        padding: 0.5rem 1rem;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.8rem;
    }

    /* Dashboard Header */
    .dashboard-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        border-bottom: 2px solid #e9ecef;
    }

    .dashboard-header h2 {
        font-size: 2.5rem;
        font-weight: 700;
        margin: 0;
        color: #0275d8;
    }

    .dashboard-actions {
        display: flex;
        gap: 0.75rem;
    }

    .btn-refresh {
        background: linear-gradient(135deg, #0275d8 0%, #5bc0de 100%);
        border: none;
        color: white;
        padding: 0.75rem 1.5rem;
        border-radius: 10px;
        font-weight: 600;
        transition: all 0.3s ease;
        box-shadow: 0 4px 12px rgba(2, 117, 216, 0.3);
    }

    .btn-refresh:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 16px rgba(2, 117, 216, 0.4);
        background: linear-gradient(135deg, #025aa5 0%, #4a9fb5 100%);
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .metric-card {
            margin-bottom: 1rem;
        }

        .card-value {
            font-size: 2rem;
        }

        .card-icon-wrapper {
            font-size: 3rem;
        }

        .dashboard-header {
            flex-direction: column;
            align-items: flex-start;
            gap: 1rem;
        }
    }

    /* Animation for cards on load */
    @keyframes fadeInUp {
        from {
            opacity: 0;
            transform: translateY(30px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .metric-card {
        animation: fadeInUp 0.6s ease-out backwards;
    }

    .metric-card:nth-child(1) { animation-delay: 0.1s; }
    .metric-card:nth-child(2) { animation-delay: 0.2s; }
    .metric-card:nth-child(3) { animation-delay: 0.3s; }
    .metric-card:nth-child(4) { animation-delay: 0.4s; }
    .metric-card:nth-child(5) { animation-delay: 0.5s; }
    .metric-card:nth-child(6) { animation-delay: 0.6s; }