@media (max-width: 600px) {
    .apertura-elecciones .wp-block-column:first-child {
        margin-bottom: 50px;
    }
    .apertura-elecciones .graficos-barras {
        margin-bottom: 40px;
    }
}

@media (min-width: 900px) {
    .apertura-elecciones {
        border: 12px solid #efefef;
    }
    .apertura-elecciones .wp-block-column {
        padding: 22px;
        margin-left: 0 !important;
    }
    .apertura-elecciones .wp-block-column:first-child {
        border-right: 12px solid #efefef;
    }
    .apertura-elecciones .wp-block-column:last-child {
        padding: 0;
    }
    .apertura-elecciones .wp-block-column:last-child > .grafico-elecciones {
        border-bottom: 12px solid #efefef;
        padding: 22px;
    }
}
.columnas-elecciones-mapas {
    text-align: center;
    flex-wrap: nowrap !important;
}
@media (min-width: 900px) {
    .columnas-elecciones-mapas {
        margin-bottom: 0;
    }
    .apertura-elecciones .columnas-elecciones-mapas .wp-block-column:first-child {
        border-right: 0;
    }
}
@media (max-width: 781px) {
    .columnas-elecciones-mapas.wp-block-columns {
        margin-top: 30px;
        margin-bottom: 0;
    }
    .columnas-elecciones-mapas.wp-block-columns .wp-block-column:first-child {
        flex-basis: 70% !important;
    }
    .columnas-elecciones-mapas.wp-block-columns .wp-block-column:last-child {
        flex-basis: 30% !important;
    }
}
.columnas-elecciones-mapas span {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-size: 14px;
    font-weight: bold;
}
.grafico-elecciones__tarta {
    position: relative;
    font-family: arial, sans-serif;
    font-size: 14px;
    width: 100%;
    height: 300px;
    margin-bottom: 110px;
}
.grafico-elecciones__tarta #donutChart {
    display: block;
}

.grafico-elecciones__tarta:before{
    content: none !important;
}

.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;
    }
}

@media (min-width: 900px) {
    .grafico-elecciones__tarta {
        height: auto;
    }
}

.seleccion-elecciones {
    list-style-type: none;
    margin: 0 auto 8px !important;
    padding: 0;
    display: flex;
    justify-content: center;
    max-width: 258px;
}
.seleccion-elecciones  li {
    flex-basis: 60px;
    text-align: center;
}
.seleccion-elecciones  li:first-child > a {
    text-align: right;
    padding-right: 10px;
}
.seleccion-elecciones  li:last-child > a {
    text-align: left;
    padding-left: 10px;
}

.grafico-elecciones--generales .seleccion-elecciones a {
    display: block;
    text-align: center;
    border-bottom: 4px solid #EBE2E2;
    text-decoration: none;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
    font-weight: bold;
    color: #EBE2E2;
    padding-bottom: 0;
}
.grafico-elecciones--generales .seleccion-elecciones a.aqui {
    color: black;
    border-bottom: 4px solid #EBE2E2;
}
.grafico-elecciones--generales .seleccion-elecciones a.aqui span {
    border-bottom: 4px solid #008192;
    padding-bottom: 2px;
}
.grafico-elecciones__mapa {
    position: relative;
}
.grafico-elecciones__mapa svg {
    width: 100%;
    height: auto;
}
.grafico-elecciones__mapa svg,
.grafico-elecciones__mapa svg * {
    pointer-events: auto;
}
.grafico-elecciones__mapa svg path {
    fill: #efefef;
    position: relative;
}
.grafico-elecciones__mapa svg path:hover,
.grafico-elecciones__mapa svg circle:hover {
    cursor: pointer;
}
.grafico-elecciones__mapa .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__mapa .popup span {
    margin-left: 5px;
    font-weight: normal;
}
.grafico-elecciones__mapa .popup span.close {
    margin: 0;
    position: absolute;
    top: 3px;
    right: 10px;
    font-size: 20px;
    font-weight: bold;
    cursor: pointer;
}
.grafico-elecciones__mapa .popup p {
    margin-bottom: 5px;
}
.grafico-elecciones__mapa .popup.popup--aragon {
    right: auto;
    left: 10%;
}
.grafico-elecciones__mapa .popup.popup--asturias {
    left: 37%;
    right: auto;
}
.grafico-elecciones__mapa .popup.popup--baleares {
    right: 8%;
}
.grafico-elecciones__mapa .popup.popup--canarias {
    top: 30%;
}
.grafico-elecciones__mapa .popup.popup--cantabria {
    right: 17%;
}
.grafico-elecciones__mapa .popup.popup--clm {
    top: 20%;
    right: 10%;
}
.grafico-elecciones__mapa .popup.popup--extremadura {
    top: 10%;
    left: 0;
    right: auto;
}
.grafico-elecciones__mapa .popup.popup--navarra {
    right: auto;
    left: 12%;
}
.grafico-elecciones__mapa .popup.popup--larioja {
    right: 14%;
}
.grafico-elecciones__mapa .popup.popup--valencia {
    top: 10%;
    right: 20%;
}
.grafico-elecciones__mapa .popup.popup--murcia {
    top: 35%;
    right: 10%;
}
.grafico-elecciones__mapa .popup.popup--madrid {
    top: 14%;
    right: 30%;
}
.grafico-elecciones__mapa .popup.popup--ceuta {
    top: auto;
    bottom: 10%;
    right: auto;
    left: 40%;
}
.grafico-elecciones__mapa .popup.popup--melilla {
    top: auto;
    bottom: 0;
    right: 0;;
}
.titulo-bloque-tarta-municipales,
#totales-municipales > p,
#form-municipios label,
#form-autonomias label {
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
    font-size: 18px !important;
    color: black !important;
    margin-bottom: 6px;
    display: block;
    text-align: left;
    font-weight: bold;
}
.titulo-bloque-tarta-municipales {
    margin-left: 40px;
}
.titulo-bloque-tarta-municipales span {
    display: block;
    font-size: 12px;
    font-family: 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif !important;
    text-transform: uppercase;
    font-weight: normal !important;
    letter-spacing: 0.4px !important;
}
.titulo-bloque-tarta-municipales span.separacion {
    width: 30px;
    border-bottom: 4px solid #008192;
    margin-top: 11px;
}
.grafico-elecciones__tarta .datos-escrutinio {
    font-size: 12px !important;
    font-weight: normal !important;
    color: black !important;
    margin-left: 40px;
    letter-spacing: 0.4px;
}
.grafico-elecciones__tarta .datos-escrutinio span {
    font-weight: bold !important;
}
#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;
    }
    .grafico-elecciones--autonomicas {
        margin-top: 24px;
    }
    .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;
    }
}
