p + .chart-wrapper,
.chart-wrapper+p{
    margin-top:3rem;
}

.chart-wrapper {
}

.chart-wrapper.chart-wrapper-table{
    overflow: auto;

}

.chart-wrapper:not(.chart-wrapper-donut)>div,
.chart-wrapper:not(.chart-wrapper-image)>div {
    min-width: 500px;
}

.chart-source{
    /* max-width: 550px; */
    margin-top:20px;
}

.chart-source--title > button{
    font-size: 14px;
    font-weight: 600;
    border:0;
    background-color: rgba(0,0,0,0);
    width:100%;
    cursor: pointer;
    text-align: left;
    display: flex;
    align-items: center;
    gap:11px;
}

.chart-source--title>button:after{
    content:'';
    display: block;
    width:11px;
    height:6px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10.494' height='6' viewBox='0 0 10.494 6'%3E%3Cpath id='Icon_ionic-ios-arrow-down' data-name='Icon ionic-ios-arrow-down' d='M11.436,15.438,15.4,11.467a.747.747,0,0,1,1.059,0,.756.756,0,0,1,0,1.062l-4.5,4.5a.749.749,0,0,1-1.034.022L6.406,12.532A.75.75,0,1,1,7.465,11.47Z' transform='translate(-6.188 -11.246)'/%3E%3C/svg%3E%0A");
    background-size: cover;
    margin-top: 4px;
}

.chart-source.open .chart-source--title>button:after{
    transform: rotateX(180deg);
    margin-top: 0px;
}

.chart-source--body{
    height:auto;
    max-height:0;
    transition: max-height ease-in-out .15s;
    font-size: 16px;
    line-height: 1.5em;
    overflow: hidden;
    padding-top:10px;
}

.chart-source.open .chart-source--body{
    max-height:500px;
}

/* ***************************************************************** */
/* >>>> DONUT  */ 
/* ***************************************************************** */

.chart-wrapper .donut-wrapper__outer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.chart-wrapper .donut-wrapper{
    border:1px solid #CCCCCC;
    background-color: #fff;
    padding:40px;
    flex:1;
}

.chart-wrapper .donut-wrapper .donut-wrapper--header{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.chart-wrapper .donut-wrapper .donut-wrapper--header_logo{
    height:110px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--header_logo img{
    height:100%;
    width:auto;
}
.chart-wrapper .donut-wrapper .donut-wrapper--header_title{
    font-size: 20px;
    font-weight: 400;
    color:#276c91;
    margin-top:10px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner{
    margin-top:50px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap:40px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    /* margin: 20px; */
    width:240px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-chart {
    position: relative;
    width: 240px;
    height: 240px;
    --color1: #276C91;
    --color2: #EBEBEB;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-segment {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: conic-gradient(var(--color1) calc(var(--percent) * 3.6deg),
            var(--color2) calc(var(--percent) * 3.6deg));
    transition: background 0.1s linear;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center {
    position: absolute;
    width: 130px;
    height: 130px;
    background: #fff;
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}


.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center .number{
    font-size: 55px;
    line-height: 55px;
    font-weight: 700;
    margin-top: -16px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center .number span{
    font-size: 40px;
    font-weight: 400;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center .text {
    font-size: 16px;
    font-weight: 400;
    line-height: 16px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references{
    max-width: 265px;
    flex:1;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item{
    display:flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 5px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .label {
    font-size: 18px;
    font-weight: 400;
    flex-basis:82px;
    flex-shrink: 0;
    line-height: 19px;   
    text-align: right;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .percentage{
    flex-basis: 25px;
    flex-shrink: 0;    
    line-height: 19px;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .label > span,
    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .percentage {
    font-size: 14px;
    
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .bar{
    flex:1;
    border:1px solid #D1D1D1;
    height:19px;
    flex:1;
}

.chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references .donut-references--item .bar > span{
    height:100%;
    display: block;
    width:var(--percentage);
    background-color: #276C91;
}

.chart-wrapper .donut-wrapper .donut-wrapper--columns{
    display: flex;
    width:100%;
    margin-top:60px;
    justify-content: space-between;
}

.chart-wrapper .donut-wrapper .donut-wrapper--columns .donut-wrapper--column {
    font-size: 20px;
    line-height: 1.3em;
}

.chart-wrapper .donut-wrapper .donut-wrapper--columns .donut-wrapper--column .label{
    color:#276c91;
}

.chart-wrapper .donut-secondary-text,
.chart-wrapper .tables-compare-secondary-text{
    margin-top: 20px;
    font-size: 15px;
}

@media screen and (max-width:1260px) {

    .chart-wrapper .donut-wrapper .donut-wrapper--inner {
        gap: 20px;
    }

}

@media screen and (max-width:1200px) {
    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-container {
        width: 210px;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-chart{
        width: 210px;
        height: 210px;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center{
        width: 115px;
        height: 115px;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center .number{
        font-size: 45px;
        line-height: 45px;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-center .text{
        font-size: 15px;
        line-height: 15px;
    }
}

@media screen and (max-width:1120px) {
    .chart-wrapper .donut-wrapper__outer {
        flex-direction: column;
        align-items: center;
    }

    .chart-wrapper .donut-wrapper {
        max-width: 623px;
        width: 100%;
    }
}

@media screen and (max-width:600px) {
    .chart-wrapper .donut-wrapper{
        padding: 25px;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner{
        flex-direction: column;
    }

    .chart-wrapper .donut-wrapper .donut-wrapper--inner .donut-references{
        max-width: 100%;
        width:100%;
    }
}

/* ***************************************************************** */
/* >>>> TABLES  */
/* ***************************************************************** */

.chart-wrapper .table{
    font-size: 16px;
    /* max-width:756px; */
}

.chart-wrapper .table.small-font {
    font-size: 13px;
}

.chart-wrapper .table .category:not(:last-child),
.chart-wrapper .table > .row.row-title{
    border-bottom:1px solid rgba(112, 112, 112, .18);
    padding-bottom:12px;
    margin-bottom:12px;
}

.chart-wrapper .table.small-font .category:not(:last-child),
.chart-wrapper .table.small-font >.row.row-title{
    padding-bottom: 6px;
    margin-bottom: 6px;
}

.chart-wrapper .table .row{
    justify-content: space-between;
    display: flex;
    align-items: center;
}

.chart-wrapper .table .row.row-title{
    font-weight:600;
}

.chart-wrapper .table .category .row.row-title ~ .row{
    padding-left:20px;
}

.chart-wrapper .table .row>div { 
    flex:1;
    text-align: center;
    line-height: 1.3em;
}

.chart-wrapper .table .row>div:first-child:nth-last-child(2)~div {
    text-align: right;  
}

.chart-wrapper .table .row>div:first-child{
    text-align: left;
}

.chart-wrapper .tables-compare-wrapper__outer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.chart-wrapper .tables-compare-wrapper {
    border: 1px solid #CCCCCC;
    background-color: #fff;
    padding: 40px;
    flex: 1;
}

.chart-wrapper .tables-compare--title{
    margin-bottom:40px;
    line-height: 1.4em;
}

.chart-wrapper .tables-compare--title strong{
    display:block;
}

@media screen and (max-width:1120px) {
    .chart-wrapper .tables-compare-wrapper__outer {
        flex-direction: column;
        align-items: center;
    }

}

/* ***************************************************************** */
/* >>>> IMAGE  */
/* ***************************************************************** */

.chart-wrapper .chart-image{
    text-align: center;
}

.chart-wrapper .chart-image img{
    max-width:100%;
    /* box-shadow: 3px 3px 30px #00000029; */
    min-width: auto!important;
}


/* ***************************************************************** */
/* >>>> LINES COMPARED  */
/* ***************************************************************** */

.chart-wrapper .line-comparison,
.chart-wrapper .line-comparison-bars{
    display:flex;
    align-items: center;
    /* justify-content: center; */
    gap:30px;
    flex-wrap: wrap;
}

.chart-wrapper .line-comparison > div,
.chart-wrapper .line-comparison-bars > div{
    /* flex:1; */
    flex-basis:calc(100% / var(--max-cols) - 30px);
    overflow: hidden;
}

.chart-wrapper .line-comparison.first-highlited>div:first-child,
.chart-wrapper .line-comparison-bars.first-highlited>div:first-child {
    flex-basis: 70%;
    margin: 0 auto;
}



@media screen and (max-width:640px){
    .chart-wrapper .line-comparison,
    .chart-wrapper .line-comparison-bars {
        flex-direction: column;
    }
}



/* ***************************************************************** */
/* >>>> MAP  */
/* ***************************************************************** */

.chart-map {
    /* background-color: #E7E7E7; */
    padding-top: 90px;
    padding-bottom: 60px;
    font-family: "freight-sans-pro", sans-serif !important;
    display: flex;
    flex-direction: row;
    align-items: start;
    flex-wrap: wrap;
    justify-content: space-between;
    color: #000;
    background-color: #FAFAFA;
}


.chart-map .col-1 {
    /* width: 30%; */
    width: fit-content;
    max-width: 30%;
    margin-left: calc(((100vw - 1320px)/2) + 15px);
    /* padding-right: 1%; */
    font-size: 20px;
    font-weight: 400;
    flex-shrink: 0;
}


/* Columna derecha (imagen y cita) */
.chart-map .col-2 {
    /* width: 55%; */
    flex: 1;
    position: relative;
    margin-right: calc(((100vw - 1320px) / 2) + 45px);
    /* overflow: hidden; */
}

.chart-map .col-2 .content-wrapper {
    padding-left: 2.5%;
}

.chart-map .col-1 h2 {
    font-size: 18px;
    font-weight: 700;
    color: #276C91;
}

.chart-map .col-1 .chart-source {
    margin-top: 50px;
}

.chart-map .col-2 .chart-source {
    display: none;
}

.chart-map .chart-map__inner{
    /* margin-left: -5vw; */
    margin-top: -30px;
    position: relative;
}

.chart-map .chart-map__inner .city-marker {
    width: 12px;
    height: 12px;
    border:4px solid #F8BBBF;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
}

.chart-map .chart-map-data-states{
    margin-bottom:40px;
}

.chart-map .chart-map-data-states.hide,
.chart-map .chart-map-data-cities.hide{
    display:none;
}

@media screen and (max-width: 1320px) {

    .chart-map .col-1 {
        margin-left: 20px;
        width: 36%;
    }

    .chart-map .col-full {
        margin-left: 20px;
    }

    .chart-map .col-2 {
        margin-right: 50px;
    }

}

@media screen and (max-width: 1140px) {
    .chart-map .col-2 {
        margin-right: 20px;
    }
}

@media screen and (max-width: 1024px) {

    .chart-map {
        flex-direction: column;
        padding-top: 30px;
        padding-bottom: 30px;
    }

    .chart-map .col-1,
    .chart-map .col-2,
    .chart-map .col-full {
        width: 100%;
        /* margin-left: 30px;
        margin-right: 30px;
        padding-right: 5%;   */
        padding: 0;
        margin: 0;
    }

    .chart-map .col-1,
    .chart-map .content-wrapper,
    .chart-map .col-full {
        margin-left: 20px;
        margin-right: 20px;
        padding: 0;
    }

    .chart-map .col-1 .chart-source {
        display: none;
    }

    .chart-map .col-2 {
        margin-top: 30px;
    }

    .chart-map .col-2 .chart-source {
        display: block;
    }



}

/* ***************************************************************** */
/* >>>> PLACEHOLDER  */
/* ***************************************************************** */

.chart-placeholder{
    width: 100%;
    padding-bottom: 56%;
    background-color: #e0e0e0;
    position: relative;
}

.chart-placeholder > span{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #767373;
    font-size: 25px;
    font-weight: 500;
}

/* ***********************************
>>> Percentage bars
************************************ */

.chart-percentage-bars{
    font-size:14px;
    columns:2;
    column-gap: 20%;
}

.chart-percentage-bars .chart-percentage-bars--group{
    margin-bottom:50px;
    break-inside: avoid;
}

.chart-percentage-bars .chart-percentage-bars--label{
    font-weight: 700;
    margin-bottom:18px;
}

.chart-percentage-bars .chart-percentage-bars--bar{
    display:flex;
    align-items: center;
    gap: 8px;
}

.chart-percentage-bars .chart-percentage-bars--bar_wrapper{
    margin-bottom:15px;
}

.chart-percentage-bars .chart-percentage-bars--bar_label {
    display: block;
    line-height:1.4em;
}

.chart-percentage-bars .chart-percentage-bars--bar .chart-percentage-bars--bar_value{
    flex-basis:32px;
    flex-shrink: 0;
    flex-grow: 0;
}

.chart-percentage-bars .chart-percentage-bars--bar .chart-percentage-bars--bar_inner {
    flex:1;
    border: 1px solid #D1D1D1;
    height: 19px;
    background-color: #fff;
}

.chart-percentage-bars .chart-percentage-bars--bar .chart-percentage-bars--bar_inner > span{
    width: var(--width);
    background-color: #276C91;
    display: block;
    height: 100%;
}

@media screen and (max-width: 620px) {
    .chart-percentage-bars {
        columns:1;
    }
}

