.ea-grafico-container {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    padding: 30px;
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

/* Estilos generales para los filtros */
.ea-filtros {
    display: flex;
    gap: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #0072ce 0%, #005a9e 100%);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 1rem 0;
    flex-wrap: wrap;
}

.ea-filtro-grupo:first-child {
    display: none;
}

.ea-filtro-grupo {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 200px;
}

/* Etiquetas */
.ea-filtro-grupo label {
    font-family: 'Segoe UI', system-ui, sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    margin-bottom: 0.25rem;
}

/* Selects personalizados */
.ea-filtro {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    font-family: 'Segoe UI', system-ui, sans-serif;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    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='%23667eea' 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: 1rem;
}

/* Efectos hover y focus */
.ea-filtro:hover {
    background-color: white;
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.ea-filtro:focus {
    outline: none;
    border-color: rgba(255, 255, 255, 0.8);
    background-color: white;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

/* Opciones del select */
.ea-filtro option {
    padding: 0.75rem;
    background: white;
    color: #333;
    font-family: 'Segoe UI', system-ui, sans-serif;
}

/* Efecto cuando está abierto */
.ea-filtro:active {
    transform: translateY(0);
}



/* Animación de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ea-filtros {
    animation: fadeInUp 0.6s ease-out;
}

/* Estilo para la opción seleccionada */
.ea-filtro option:checked {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #338ed8;
}

/* Efecto de transición suave para cambios */
.ea-filtro {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Variante oscura opcional */
@media (prefers-color-scheme: dark) {
    .ea-filtros {
        background: linear-gradient(135deg, #2d3748, #4a5568);
    }
    
    .ea-filtro {
        background: rgba(45, 55, 72, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
        color: white;
    }
    
    .ea-filtro:hover {
        background: #2d3748;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    .ea-filtro option {
        background: #2d3748;
        color: white;
    }
}

.ea-grafico-wrapper {
    position: relative;
    min-height: 400px;
}

.ea-cargando {
    text-align: center;
    padding: 40px;
    color: #666;
    font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
    .ea-filtros {
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
    }
    
    .ea-filtro-grupo {
        min-width: 100%;
    }
}