@font-face {
    font-family: Mundo;
    font-style: normal;
    font-weight: 400;
    src: url("https://e00.uecdn.es/fonts/Mundo/Mundo-Regular.woff2") format("woff2"),
         url("https://e00.uecdn.es/fonts/Mundo/Mundo-Regular.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: Mundo;
    font-style: normal;
    font-weight: 500;
    src: url("https://e00.uecdn.es/fonts/Mundo/Mundo-Medium.woff2") format("woff2"),
         url("https://e00.uecdn.es/fonts/Mundo/Mundo-Medium.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: Mundo;
    font-style: normal;
    font-weight: 700;
    src: url("https://e00.uecdn.es/fonts/Mundo/Mundo-Bold.woff2") format("woff2"),
         url("https://e00.uecdn.es/fonts/Mundo/Mundo-Bold.woff") format("woff");
    font-display: swap;
}

@font-face {
    font-family: Mundo;
    font-style: normal;
    font-weight: 800;
    src: url("https://e00.uecdn.es/fonts/Mundo/Mundo-ExtraBold.woff2") format("woff2"),
         url("https://e00.uecdn.es/fonts/Mundo/Mundo-ExtraBold.woff") format("woff");
    font-display: swap;
}

html, body {
    margin: 0;
    padding: 0;
    line-height: 1;
    height: 100%;
    overflow: hidden;
}

/* Loader */
#loader {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background-color: #edf3f9;
    transition: opacity 500ms ease-in-out;
}

#spinner {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 50px;
    height: 50px;
    border: 5px solid #c5daeb;
    border-top-color: #5f9bc5;
    border-radius: 50%;
    animation: spinning 2s linear infinite;
}

@keyframes spinning {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Layout */
#container {
    width: 1200px;
    margin: auto;
    position: relative;
}

#title_box {
    width: 344px;
    margin-left: 335px;
}

.title {
    font-family: Mundo, serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 20px;
    text-align: center;
    text-transform: uppercase;
    max-width: 344px;
    padding: 16px 0 24px 0;
    margin: 0;
}

/* Filtros */
.filters {
    width: 344px;
    display: flex;
    justify-content: space-between;
    list-style: none;
    font-family: Roboto, Arial, sans-serif;
    font-size: 13px;
    padding: 0;
    margin: 0 0 12px 0;
}

.filters-item {
    width: 19%;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 8px 0;
    cursor: pointer;
    font-weight: 700;
    user-select: none;
}

.filters-selected {
    background-color: #000;
    border-color: #000;
    color: #fff;
}

.filters-hover {
    background-color: #f3f3f3;
}

/* Mapa */
#map_container {
    position: relative;
    margin-bottom: 8px;
}

#map_carto {
    width: 100%;
    height: 640px;
    margin-bottom: 8px;
}

/* Leyenda */
.legend {
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
}

.legend-label {
    float: left;
    margin: 0 12px 8px 0;
}

.legend-partidos {
    display: flex;
    justify-content: space-between;
}

#legend_ganadores .legend-partidos {
    width: 344px;
}

.legend-partido .legend-partidos {
    width: 344px;
}

.legend-partido{
    display:none;
}



.legend-part {
    width: 18%;
}

.legend-part--wide {
    width: 100%;
}

.legend-part p {
    margin: 0 0 2px 0;
    text-transform: uppercase;
}

.color-row {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0 0 4px 0;
}

.color-row li {
    width: 25%;
    height: 8px;
    border-right: 1px solid #fff;
    background-color: #c1c1c1;
}

.text-row {
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding: 0;
    margin: 0;
}

.text-row--4cols {
    text-align: center;
}

.text-row--4cols li {
    width: 25%;
}

/* Colores partidos */
#key_pp .key_1, #legend_pp .key_1 { background-color: #a8d6ef; }
#key_pp .key_2, #legend_pp .key_2 { background-color: #79bce8; }
#key_pp .key_3, #legend_pp .key_3 { background-color: #459cd6; }
#key_pp .key_4, #legend_pp .key_4 { background-color: #0e75bc; }

#key_psoe .key_1, #legend_psoe .key_1 { background-color: #f2ccd4; }
#key_psoe .key_2, #legend_psoe .key_2 { background-color: #f99fa7; }
#key_psoe .key_3, #legend_psoe .key_3 { background-color: #e96470; }
#key_psoe .key_4, #legend_psoe .key_4 { background-color: #dc1222; }

#key_vox .key_1, #legend_vox .key_1 { background-color: #e4ecb9; }
#key_vox .key_2, #legend_vox .key_2 { background-color: #bdd689; }
#key_vox .key_3, #legend_vox .key_3 { background-color: #aac865; }
#key_vox .key_4, #legend_vox .key_4 { background-color: #77b031; }

#key_pod .key_1, #legend_pod .key_1 { background-color: #e9d8e7; }
#key_pod .key_2, #legend_pod .key_2 { background-color: #caa1c5; }
#key_pod .key_3, #legend_pod .key_3 { background-color: #ae70a7; }
#key_pod .key_4, #legend_pod .key_4 { background-color: #801e75; }

#key_otros .key_1 { background-color: #b6bdbd; }
#key_otros .key_2 { background-color: #949e9e; }
#key_otros .key_3 { background-color: #7d8989; }
#key_otros .key_4 { background-color: #5e6d6d; }

/* Responsive */
@media (max-width: 1199px) {
    #container {
        width: 360px;
        box-sizing: border-box;
        padding: 0 8px;
    }

    #title_box {
        margin: auto;
    }

    #map_carto {
        height: 540px;
    }

    
}