/* Estilos del Dashboard Moderno */
.modern-dashboard {
    width: 100%;
    max-width: 1200px;
    margin: 5rem auto;
    background: white;
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.dashboard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 2rem;
}

.dashboard-header h2 {
    font-size: 2.4rem;
    color: #2c3e50;
    margin: 0;
    font-weight: 700;
}

.dashboard-filters {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.filter-group label {
    font-size: 1.4rem;
    color: #7f8c8d;
    font-weight: 500;
}

.custom-select {
    padding: 0.8rem 1.5rem;
    border-radius: 50px;
    border: 1px solid #e0e0e0;
    background-color: #f9f9f9;
    font-size: 1.4rem;
    color: #2c3e50;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.2rem;
    padding-right: 3.5rem;
}

.custom-select:hover {
    border-color: #3498db;
}

.custom-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.2);
}

/* Grid de Métricas */
.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.metric-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border-top: 4px solid transparent;
    position: relative;
    overflow: hidden;
}

.metric-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.metric-card.sales {
    border-top-color: #4CAF50;
}

.metric-card.clients {
    border-top-color: #2196F3;
}

.metric-card.conversion {
    border-top-color: #FFC107;
}

.metric-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.metric-header i {
    font-size: 2rem;
    margin-right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(0, 0, 0, 0.05);
}

.metric-card.sales .metric-header i {
    color: #4CAF50;
}

.metric-card.clients .metric-header i {
    color: #2196F3;
}

.metric-card.conversion .metric-header i {
    color: #FFC107;
}

.metric-header h3 {
    font-size: 1.6rem;
    margin: 0;
    color: #2c3e50;
    font-weight: 600;
}

.metric-value {
    font-size: 2.8rem;
    font-weight: 700;
    margin: 1rem 0;
    color: #2c3e50;
    transition: all 0.3s ease;
}

.metric-change {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.metric-change.positive {
    color: #4CAF50;
}

.metric-change.negative {
    color: #F44336;
}

.metric-chart {
    height: 60px;
    width: 100%;
    margin-top: 1rem;
}

/* Gráfico Principal */
.main-chart-container {
    margin-top: 3rem;
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.main-chart-container h4 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    font-weight: 600;
}

.chart-wrapper {
    width: 100%;
    height: 300px;
    position: relative;
}

/* Efectos de animación */
[data-aos] {
    transition: all 0.6s ease;
}

[data-aos="fade-up"] {
    opacity: 0;
    transform: translateY(20px);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dashboard-filters {
        width: 100%;
    }

    .filter-group {
        width: 100%;
    }

    .custom-select {
        width: 100%;
    }

    .metrics-grid {
        grid-template-columns: 1fr;
    }

    .main-chart-container {
        padding: 1.5rem;
    }

    .chart-wrapper {
        height: 250px;
    }
}

@media (max-width: 480px) {
    .dashboard-header h2 {
        font-size: 2rem;
    }

    .metric-value {
        font-size: 2.4rem;
    }

    .chart-wrapper {
        height: 200px;
    }
}