

.chart-container {
    text-align: center;
    width: 100%; /* Ahora ocupa el 100% del ancho disponible */
    max-width: 800px; /* Puedes ajustar este valor si quieres limitar el ancho máximo */
    padding: 20px;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    margin: 0 auto; /* Centra el contenido si el contenedor tiene un ancho máximo */
}


.chart-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 40px;
    color: #4f8aa1; /* Color del título */
}

.bar-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 200px;
    position: relative;
    border-left: 1px solid #cccccc;
    border-bottom: 1px solid #cccccc;
    padding: 0 15px;
    margin-bottom: 20px;
    background-image: linear-gradient(to top, #e0e0e0 1px, transparent 1px);
    background-size: 100% 40px; /* Ajusta la altura de las líneas de fondo */
}

.bar-column {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.value-label {
    font-size: 11px;
    font-weight: bold;
    color: #4f8aa1;
    margin-bottom: 5px; /* Espacio entre número y barra */
    opacity: 0; /* Ocultar inicialmente */
    transition: opacity 0.2s ease;
}

.bar {
    width: 40px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    font-size: 12px;
    color: #ffffff;
    font-weight: bold;
    padding-bottom: 3px;
    border-radius: 3px 3px 0 0;
    opacity: 0;
    animation: growBar 0.6s ease forwards;
}

/* Definir alturas, colores y retraso específico para cada barra */
.bar[data-year="2019"] {
    height: 50px;
    background-color: #cccccc;
    animation-delay: 0.1s;
}

.bar[data-year="2021"] {
    height: 80px;
    background-color: #aaaaaa;
    animation-delay: 0.1s;
}

.bar[data-year="2023"] {
    height: 110px;
    background-color: #888888;
    animation-delay: 0.1s;
}

.bar[data-year="2025"] {
    height: 160px;
    background-color: #4f8aa1;
    animation-delay: 0.1s;
}

.label-container {
    display: flex;
    justify-content: space-between;
    width: 100%;
    padding: 0 15px;
}

.year-label {
    font-size: 12px;
    color: #666666;
    text-align: center;
    margin-top: 5px; /* Espacio entre barra y año */
}

@keyframes growBar {
    from {
        height: 0;
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}
