.comparacion-consumo {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
    background-image: url(../img/textures/waterTexture-brightBlue.webp);
    background-position: center;
    background-size: cover;
    height: 100vh;
    max-height: 1080px;
}

.comparacion-consumo__inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
}

.comparacion-consumo__title {
    margin: 0;
    max-width: 1500px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 0.95;
}

.comparacion-consumo__legend {
    margin-top: 1.3rem;
    gap: 1rem;
    color: #ffffff;
    align-items: center;
}

.comparacion-consumo__legend-item {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: clamp(1rem, 1.2vw, 1.35rem);
}

.comparacion-consumo__legend-dot {
    width: 13px;
    height: 13px;
    display: inline-block;
}

.comparacion-consumo__legend-dot--directo {
    background-color: var(--color-success);
}

.comparacion-consumo__legend-dot--indirecto {
    background-color: var(--color-secondary-hover);
}

.comparacion-consumo__grid {
    margin-top: 2rem;
    gap: 2.2rem;
    align-items: flex-start;
}

.comparacion-consumo__col {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
}

.comparacion-consumo__block {
    width: 100%;
}

.comparacion-consumo__block--empleos {
    margin-top: 0;
}

.comparacion-consumo__echart {
    display: none;
    width: 100%;
    height: 84px;
    margin-top: 0.45rem;
}

.comparacion-consumo__block--empleos.is-echarts .comparacion-consumo__echart {
    display: block;
}

.comparacion-consumo__block--empleos.is-echarts .comparacion-consumo__bar-row {
    display: none;
}

.comparacion-consumo__subtitle {
    margin: 0 0 0.8rem;
    color: #ffffff;
    line-height: 1;
    font-weight: 400;
}

.comparacion-consumo__bar-row {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-top: 0.45rem;
}

.comparacion-consumo__bar {
    height: 2.15rem;
    width: var(--bar-w);
    min-width: 38px;
}

.comparacion-consumo__bar--directo {
    background-color: var(--color-success);
}

.comparacion-consumo__bar--indirecto {
    background-color: var(--color-secondary-hover);
}

.comparacion-consumo__value {
    color: #ffffff;
    line-height: 1;
    white-space: nowrap;
    font-weight: 700;
}

@media (max-width: 980px) {
    .comparacion-consumo__grid {
        gap: 1.4rem;
    }

    .comparacion-consumo__bar {
        height: 1.9rem;
    }

    .comparacion-consumo__bar-row {
        flex-wrap: wrap;
    }

    .comparacion-consumo__echart {
        height: 76px;
    }
}

@media (max-width: 640px) {
    .comparacion-consumo {
        max-height:fit-content;
    }
}
