/* ================================================
    DASHBOARD PROFESIONAL - PALETA VIBRANTE
    ================================================ */

.dashboard-header {
    text-align: center;
    padding-bottom: 1rem;
}

.dashboard-title {
    font-size: 2.25rem;
    font-weight: 700; /* Más peso para el título */
    color: #1a202c; /* Negro más oscuro */
    margin-bottom: 0.5rem;
    letter-spacing: -0.8px;
}

.dashboard-subtitle {
    font-size: 1.05rem;
    color: #4a5568; /* Gris más oscuro para contraste */
    font-weight: 400;
}

/* ================================================
    MÓDULO CARDS
    ================================================ */

.module-card {
    border: 1px solid rgba(0, 0, 0, 0.05); /* Borde sutil */
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra más definida */
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.module-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada al pasar el ratón */
    transform: translateY(-2px);
}

/* ================================================
    MÓDULO HEADERS
    ================================================ */

.module-header {
    padding: 1.5rem;
    border: none;
    display: flex;
    align-items: center;
    gap: 1.2rem; /* Espaciado más amplio */
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.module-icon {
    width: 55px; /* Icono un poco más grande */
    height: 55px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Sombra para el icono */
}

.module-icon .material-icons {
    font-size: 30px; /* Icono de material más grande */
    color: #ffffff;
}

.module-info {
    flex: 1;
}

.module-title {
    font-size: 1.35rem; /* Título más prominente */
    font-weight: 700;
    color: #1a202c;
    margin: 0;
    letter-spacing: -0.5px;
}

.module-subtitle {
    font-size: 0.9rem;
    color: #718096;
    font-weight: 500;
}

/* Colores de Headers por Módulo - Colores Vibrantes */
.productos-header .module-icon {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%); /* Verde Esmeralda/Teal */
}

.utilidades-header .module-icon {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%); /* Azul Corporativo */
}

.usuarios-header .module-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%); /* Púrpura Intenso */
}

/* ================================================
    MÓDULO BODY CON BOTONES EN FILA
    ================================================ */

.module-body {
    padding: 1.5rem;
}

.btn-row {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ================================================
    BOTONES PROFESIONALES Y COHERENTES
    ================================================ */

.module-btn {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.9rem 1.25rem; /* Padding más amplio */
    border-radius: 12px; /* Bordes más suaves */
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600; /* Texto más audaz */
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Sombra más oscura */
}

.module-btn:hover {
    transform: translateY(-2px); /* Un sutil levantamiento */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.module-btn .material-icons {
    font-size: 26px; /* Iconos un poco más grandes */
    flex-shrink: 0;
}

.module-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    flex: 1;
}

/* ================================================
    COLORES POR FUNCIÓN - PROFESIONALES Y VIBRANTES
    ================================================ */

/* CREAR - Verde (Coherente con Productos/Éxito) */
.btn-crear {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%); /* Verde Menta a Esmeralda */
    color: #064e3b !important;
}

.btn-crear:hover {
    color: #064e3b !important;
}

.btn-crear .material-icons {
    color: #059669;
}

/* EDITAR - Amarillo/Ámbar (Advertencia/Atención) */
.btn-editar {
    background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%); /* Amarillo Suave a Ámbar */
    color: #92400e !important;
}

.btn-editar:hover {
    color: #92400e !important;
}

.btn-editar .material-icons {
    color: #d97706;
}

/* BUSCAR/VER/REPORTES - Azul (Información/Neutral) */
.btn-buscar,
.btn-ver {
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%); /* Azul Claro a Corporativo */
    color: #1e40af !important;
}

.btn-buscar:hover,
.btn-ver:hover {
    color: #1e40af !important;
}

.btn-buscar .material-icons,
.btn-ver .material-icons {
    color: #2563eb;
}

/* CONFIGURAR/ROLES - Púrpura (Sistema/Administración) */
.btn-config {
    background: linear-gradient(135deg, #a78bfa 0%, #8b5cf6 100%); /* Lila a Púrpura Intenso */
    color: #4c1d95 !important;
}

.btn-config:hover {
    color: #4c1d95 !important;
}

.btn-config .material-icons {
    color: #7c3aed;
}

/* CAMBIAR CONTRASEÑA - Rojo/Naranja (Alerta/Seguridad) */
.btn-password {
    background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%); /* Rosa a Rojo Vibrante */
    color: #881337 !important;
}

.btn-password:hover {
    color: #881337 !important;
}

.btn-password .material-icons {
    color: #e11d48;
}

/* ================================================
    ANIMACIONES
    ================================================ */

/* Sin cambios, mantienen el efecto de Material Design */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.module-card {
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.module-card:nth-child(1) { animation-delay: 0.1s; }
.module-card:nth-child(2) { animation-delay: 0.2s; }
.module-card:nth-child(3) { animation-delay: 0.3s; }

/* ================================================
    RESPONSIVE
    ================================================ */

/* Se mantienen los ajustes responsivos existentes */

@media (max-width: 1399px) {
    .col-xl-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
}

@media (max-width: 992px) {
    .module-btn {
        padding: 0.85rem 1rem;
    }
}

@media (max-width: 768px) {
    .dashboard-title {
        font-size: 2rem;
    }
    
    .dashboard-subtitle {
        font-size: 1rem;
    }
    
    .module-btn {
        padding: 1rem 1.25rem;
    }
    
    .module-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 576px) {
    .module-header {
        padding: 1.25rem;
    }
    
    .module-body {
        padding: 1.25rem;
    }
    
    .module-icon {
        width: 50px;
        height: 50px;
    }
    
    .module-icon .material-icons {
        font-size: 26px;
    }
    
    .module-btn .material-icons {
        font-size: 28px;
    }
}

/* ================================================
    DESKTOP - VISTA COMPACTA EN 3 COLUMNAS
    ================================================ */

@media (min-width: 1400px) {
    .module-card {
        max-width: 100%;
    }
    
    .module-body {
        padding: 1.25rem; /* Ligeramente más padding */
    }
    
    .btn-row {
        gap: 0.75rem;
    }
    
    .module-btn {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    
    .module-btn .material-icons {
        font-size: 24px;
    }
}