.grafico-elecciones__tarta {
    position: relative;
    font-family: arial, sans-serif;
    font-size: 14px;
    width: 100%;
    height: 300px;
    margin-bottom: 80px;
}
.grafico-elecciones__tarta #donutChart {
    display: block;
}


.grafico-elecciones__tarta:before{
    content: "";
    position: absolute;
    border-right: 1px solid #898989;
    top: 31%;
    left: 50%;
    height: 50%;
}
/*
.grafico-elecciones__tarta:after{
    content: "2023";
    font-size: 11px;
    position: absolute;
    top: inherit;
    bottom: 65px;
    left: 85px;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    color: #4c4c4c;
    display: none;
}*/
.grafico-elecciones__tarta .datos-escrutinio {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    color: #4c4c4c;
    font-weight: bold;
}
.grafico-elecciones__tarta .datos-escrutinio__actualizado {
    font-size: 12px;
    font-weight: normal;
}

.grafico-elecciones__tarta .datos-escrutinio__comparativa {
    font-size: 12px;
    font-weight: normal;
}
@media (min-width: 500px) {
    .grafico-elecciones__tarta {
        margin-bottom: 160px;
    }
}
@media (min-width: 600px) {
    .grafico-elecciones__tarta {
        height: 300px;
        margin-bottom: 0;
    }
    .grafico-elecciones__tarta .datos-escrutinio {
        position: absolute;
        top: -18px;
    }
    .grafico-elecciones__tarta:before{
        top: 18%;
        height: 68%;
    }
}

@media (min-width: 900px) {
    .grafico-elecciones__tarta {
        height: auto;
    }
    /*
    .grafico-elecciones__tarta:after{
        display: block;
        bottom: 45px;
        left: 140px;
    }

    .page-template-page-portada-nueva .grafico-elecciones__tarta:after{
        bottom: 64px;
    }
    */
}

.seleccion-elecciones {
    list-style-type: none;
    margin: 0 0 8px;
    padding: 0;
    display: flex;
}
.seleccion-elecciones  li {
    flex: 1 1 50%;
}
.seleccion-elecciones li:first-of-type a {
    border-radius: 0;
}

.seleccion-elecciones li:last-of-type a {
    border-radius: 0;
}

.seleccion-elecciones a {
    display: block;
    text-align: center;
    border-bottom: 1px solid #D5D5D5;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    padding: 8px 0;
    color: #5D5D5D;
    text-decoration: none;
    letter-spacing: 1px;
}
.seleccion-elecciones a.aqui {
    border-bottom: 2px solid black;
     color: #5D5D5D;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
}
.grafico-elecciones--autonomicas,
#mapa-municipales {
    position: relative;
}
.grafico-elecciones--autonomicas svg,
#mapa-municipales svg {
    width: 100%;
    height: auto;
}
.grafico-elecciones--autonomicas svg,
.grafico-elecciones--autonomicas svg * {
    pointer-events: auto;
}
.grafico-elecciones--autonomicas svg path {
    fill: #efefef;
    position: relative;
}
.grafico-elecciones--autonomicas svg path:hover,
.grafico-elecciones--autonomicas svg circle:hover,
#mapa-municipales svg path:hover,
#mapa-municipales svg circle:hover {
    cursor: pointer;
}
.grafico-elecciones--autonomicas .popup,
#mapa-municipales .popup {
    display: none;
    position: absolute;
    top: 9%;
    right: 10%;
    background: black;
    border-radius: 10px;
    color: white;
    padding: 10px;
    font-family: arial, sans-serif;
    font-size: 13px;
    font-weight: bold;
}

.grafico-elecciones--autonomicas .popup span,
#mapa-municipales .popup span {
    margin-left: 5px;
    font-weight: normal;
}
.grafico-elecciones--autonomicas .popup span.close,
#mapa-municipales .popup span.close {
    margin: 0;
    position: absolute;
    top: 3px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.grafico-elecciones--autonomicas .popup p,
#mapa-municipales .popup p {
    margin-bottom: 5px;
}
.grafico-elecciones--autonomicas .popup.popup--aragon {
    right: auto;
    left: 10%;
}
.grafico-elecciones--autonomicas .popup.popup--asturias {
    left: 37%;
    right: auto;
}
.grafico-elecciones--autonomicas .popup.popup--baleares {
    right: 8%;
}
.grafico-elecciones--autonomicas .popup.popup--canarias {
    top: 30%;
}
.grafico-elecciones--autonomicas .popup.popup--cantabria {
    right: 17%;
}
.grafico-elecciones--autonomicas .popup.popup--clm {
    top: 20%;
    right: 10%;
}
.grafico-elecciones--autonomicas .popup.popup--extremadura {
    top: 10%;
    left: 0;
    right: auto;
}
.grafico-elecciones--autonomicas .popup.popup--navarra {
    right: auto;
    left: 12%;
}
.grafico-elecciones--autonomicas .popup.popup--larioja {
    right: 14%;
}
.grafico-elecciones--autonomicas .popup.popup--valencia {
    top: 10%;
    right: 20%;
}
.grafico-elecciones--autonomicas .popup.popup--murcia {
    top: 35%;
    right: 10%;
}
.grafico-elecciones--autonomicas .popup.popup--madrid {
    top: 14%;
    right: 30%;
}
.grafico-elecciones--autonomicas .popup.popup--ceuta {
    top: auto;
    bottom: 10%;
    right: auto;
    left: 40%;
}
.grafico-elecciones--autonomicas .popup.popup--melilla {
    top: auto;
    bottom: 0;
    right: 0;;
}
#totales-municipales > p,
#form-municipios label,
#form-autonomias label {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 18px;
    margin-bottom: 22px;
    display: block;
    text-align: center;
}
.titulo-bloque-tarta-municipales {
    font-family: albraregular_italic, TimesNewRoman, Times New Roman, Times, Baskerville, Georgia, serif;
    font-size: 23px;
    margin-bottom: 22px;
    display: block;
    text-align: left;
    span {
        font-family: TimesNewRoman, Times New Roman, Times, Baskerville, Georgia, serif;
        font-weight: bold;
    }
}

#totales-municipales .datos-escrutinio__escrutado {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    text-align: center;
}
#form-municipios .select,
#form-autonomias .select {
    position: relative;
    display: grid;
    grid-template-areas: "select";
    align-items: center;
    width: 100%;
    min-width: 15ch;
    max-width: 30ch;
    border:  black ;
    border-radius: 50px;
    padding: 10px 16px;
    cursor: pointer;
    line-height: 1.1;
    background-color: #DEEBED;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    margin: 0 auto 18px;
}
#form-municipios select,
#form-municipios .select:after,
#form-autonomias select,
#form-autonomias .select:after {
    grid-area: select;
}
#form-municipios .select::after,
#form-autonomias .select::after {
    content: "";
    width: 0.8em;
    height: 0.5em;
    background-color: grey;
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    justify-self: end;
}
#form-municipios select:focus + .focus,
#form-autonomias select:focus + .focus {
    position: absolute;
    top: -1px;
    left: -1px;
    right: -1px;
    bottom: -1px;
    border: 1px solid black;
    border-radius: inherit;
}
#form-municipios select,
#form-autonomias select {
    appearance: none;
    background-color: transparent;
    border: none;
    padding: 0 1em 0 0;
    margin: 0;
    width: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    outline: none;
}
#form-municipios select::-ms-expand,
#form-autonomias select::-ms-expand {
    display: none;
}
.portada .cintillo-elecciones-municipales.home-cintillo-bloque {
    justify-content: center;
    margin-bottom: 40px;
    border-bottom: 1px solid #A5A4A4;
    padding-bottom: 0px;
}
.portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 {
    font-family: Arial,Helvetica,sans-serif;
    font-size: 24px;
    display: block;
    margin-bottom: 15px;
}
.portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 img {
    margin: 0 -45px 0 0;
    width: 65px;
}
.portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 span span:first-child {
    font-family: austin-web-medium,Georgia,Times New Roman,Times,serif;
    font-style: italic;
    font-size: 34px;
    background: white;
}
@media (max-width: 700px) {
    #totales-municipales {
        margin-bottom: 30px;
    }
    .portada .cintillo-elecciones-municipales.home-cintillo-bloque {
        margin-bottom: 30px;
        padding-bottom: 0;
    }
    .portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 {
        font-size: 16px;
    }
    .portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 span span:first-child {
        font-size: 27px;
    }
    .portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 img {
        margin: 0 -38px 0px 0;
        width: 51px;
    }
    .portada .cintillo-elecciones-municipales.home-cintillo-bloque h2 span span:last-child {
        display: block;
        margin-top: 3px;
    }
}
