*{box-sizing: border-box;}
body{text-align: center;font-family: Roboto;padding:0;margin:0;background:#dbe0e4;}
header { background: #012346; color: white; font-size: 26px; font-weight: bold; text-transform: uppercase; padding: 20px; }
main { margin: auto;padding: 20px; }
.disclaimer {border-bottom:1px solid #012346; padding: 15px;font-size: 14px; color: #012346;margin: 30px auto 0px; max-width: 590px;}
.resultados {width: 100%;align-items: center; justify-content: center; display: grid; grid-template-columns: repeat(8,1fr); max-width: 590px;margin:auto;}

.resultados .row {display: grid;grid-template-rows: 45px 1fr 1fr;align-items: center;gap: 10px;padding: 16px 4px;}
.resultados .row:nth-child(odd)  {background-color: #edf0f2;}
.resultados .row:nth-child(even)  {background-color: #e4e8eb;}
.resultados .row .candidatos {height: 100%;display: flex;align-items: center;font-size: 14px;font-weight: 700;color: #678298;}
.resultados .row .porcentaje{font-weight:900;font-size: 18px;color: #012346;}
.resultados .row .votos {    font-size: 11px;color: #012346;font-weight: 400;}


.resultados-opcion { color: white; padding: 10px; text-transform: uppercase; font-weight: bold; height: 100%; box-sizing: border-box; align-items: center; justify-content: center; display: flex; flex-direction: column; }
.seleccion { margin:20px auto 10px; background: white; border-radius: 100px; max-width: 590px;}
.seleccion #searchRegion-flexdatalist { padding: 10px 21px; width: 100%; text-align: center; text-transform: uppercase; font-family: Roboto; font-size: 17px; color: #012346; font-weight: bold; border-radius: 100px; border: none; box-sizing: border-box; }
.seleccion #searchRegion-flexdatalist:focus-within {outline: none;}
.resultados-comuna { font-weight: bold; text-transform: uppercase; font-size: 18px; color: #444444; padding: 20px 10px; box-sizing: border-box;line-height: 20px;}
.resultados-opcion-nombre { font-size: 19px; margin-bottom: 5px; }
.resultados-opcion-votos { font-weight: initial; line-height: 14px;font-size: 12px; }
.resultados-opcion-porcentaje { font-size: 30px; line-height: 30px; }
#mapa-short{margin: 15px auto;position:relative;max-width: 590px;}
#mapa-short::before { content: ""; position: absolute; top: 0; display: block; width: calc(100% - 10px); height: 50px; background: -moz-linear-gradient(top,  rgba(219,224,228,1) 0%, rgba(219,224,228,0) 100%); background: -webkit-linear-gradient(top,  rgba(219,224,228,1) 0%,rgba(219,224,228,0) 100%); background: linear-gradient(to bottom,  rgba(219,224,228,1) 0%,rgba(219,224,228,0) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#dbe0e4', endColorstr='#00dbe0e4',GradientType=0 ); z-index: 2;}
#mapa-short::after { content: ""; position: absolute; bottom: 0; display: block; width:  calc(100% - 10px); height: 50px; background: -moz-linear-gradient(top,  rgba(219,224,228,0) 0%, rgba(219,224,228,0.65) 100%); background: -webkit-linear-gradient(top,  rgba(219,224,228,0) 0%,rgba(219,224,228,1) 100%); background: linear-gradient(to bottom,  rgba(219,224,228,0) 0%,rgba(219,224,228,1) 100%); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00dbe0e4', endColorstr='#a6dbe0e4',GradientType=0 ); z-index: 2;}
#mapa-short .mapa-content{height: 500px;overflow: auto;padding:40px 0;}
svg#Capa_1 {transform: rotate(-2deg);}
svg#Capa_1 {width: 100%;max-width: 320px;}
svg g{transition: filter .2s;}
svg g:hover{filter:brightness(0.6)}
#mapa-horizontal {margin: 50px 0;}
ul#searchRegion-flexdatalist-results {box-shadow: none;border: none;}
.flexdatalist-results li {border-bottom: 1px solid #eeeeee;}

.resultados-opcion-votos::after { content: " Votos"; }

.nomenclatura .row {align-self: flex-start;text-align: center;font-weight: bold;margin: 5px 0;text-transform: uppercase;font-size: 15px;    font-size: 15px;display: flex;flex-direction: column-reverse;justify-content: center;align-items: center;row-gap: 10px;max-width: 136px;width: 100%;}
.nomenclatura {    padding-top: 26px;max-width: 590px;margin: auto;    display: flex;gap: 15px;flex-flow: wrap;align-items: center;justify-content: center;}
.nomenclatura .row div {padding: 5px 0;}
.nomenclatura .row .color {width: 30px;height: 30px;border-radius: 50%;}
.nomenclatura .row:nth-child(1) .color {background-color: #912828;}
.nomenclatura .row:nth-child(2) .color {background-color: #ff78c3;}
.nomenclatura .row:nth-child(3) .color {background-color: #0a5aff;}
.nomenclatura .row:nth-child(4) .color {background-color: #14aa46;}
.nomenclatura .row:nth-child(5) .color {background-color: #f02846;}
.nomenclatura .row:nth-child(6) .color {background-color: #0a28aa;}
.nomenclatura .row:nth-child(7) .color {background-color: #0a9bff;}
.nomenclatura .row:nth-child(8) .color {background-color: #ff6e1e;}

#mapa-short ::-webkit-scrollbar-track { background-color: #c9d0d5; border-radius: 10px; height: 10px; }
#mapa-short ::-webkit-scrollbar-thumb { background-color: #6591be; border-radius: 10px; }
#mapa-short ::-webkit-scrollbar { width: 10px; }
svg#short_Capa_1 {height: 225px;max-width:100%;}

.solo-mobile{display:none;}


@media (max-width: 669px){
    header { font-size: 20px;font-size: 18px;padding: 10px;}
    .resultados-comuna { font-size: 16px; line-height: 19px;padding: 10px;grid-row: 1; grid-column: 1/-1;}
    .resultados-opcion-nombre { font-size: 16px; margin-bottom: 0px; }
    .resultados-opcion-porcentaje { font-size: 24px; }
    .resultados-opcion-votos { font-size: 12px; }
    .resultados { display: flex;overflow: scroll;justify-content: left;}
    svg#Capa_1 { max-width: 280px; transform: rotate(0deg); }

    .solo-mobile{display:block;}
    .solo-desktop{display:none;}
    .nomenclatura .row {
        font-size: 12px;
        align-items: center;
        letter-spacing: -1px;
    }
   svg g:hover{filter:none;}
}
path {fill: #cccccc;}
#sin-resultados {display: none;}
.to_update__button {
    text-transform: uppercase;
    background: none;
    color: #0a6cb5;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    font-weight: 900;
    cursor: pointer;
    font-size: 12px;
    font-family: 'Roboto';
    transition: opacity 0.4s;
    margin: 0px auto 10px;
    border: 0px;
}
.to_update__button:hover {
    opacity: 0.3;
}
.to_update__button span {
    line-height: initial;
    margin-left: 4px;
    border-top: 2px solid #0a6cb5;
    border-right: 2px solid #0a6cb5;
    width: 8px;
    height: 8px;
    display: block;
    transform: rotate(45deg);
    margin-top: -3px;
}