body {
    font-family: 'Roboto', sans-serif;
    background-color: #fff;
}

@font-face {
    font-family: 'DroidSerif';
    src: url('../webfonts/DroidSerif.eot');
    src: local('Droid Serif'), local('DroidSerif'),
        url('../webfonts/DroidSerif.eot?#iefix') format('embedded-opentype'),
        url('../webfonts/DroidSerif.woff2') format('woff2'),
        url('../webfonts/DroidSerif.woff') format('woff'),
        url('../webfonts/DroidSerif.ttf') format('truetype'),
        url('../webfonts/DroidSerif.svg#DroidSerif') format('svg');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'DroidSerif-Bold';
    src: url('../webfonts/DroidSerif-Bold.eot');
    src: local('Droid Serif Bold'), local('DroidSerif-Bold'),
        url('../webfonts/DroidSerif-Bold.eot?#iefix') format('embedded-opentype'),
        url('../webfonts/DroidSerif-Bold.woff2') format('woff2'),
        url('../webfonts/DroidSerif-Bold.woff') format('woff'),
        url('../webfonts/DroidSerif-Bold.ttf') format('truetype'),
        url('../webfonts/DroidSerif-Bold.svg#DroidSerif-Bold') format('svg');
    font-weight: normal;
    font-style: normal;
}

main {
    max-width: 1254px;
    padding: 20px;
    border: 1px solid #b4b4b4;
}

.container {
    max-width: 1254px;
}

h1 {
    font-family: 'DroidSerif-Bold', serif;
    font-size: 25px;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    position: relative;
    margin-bottom: 5px;
    font-family: 'Roboto', sans-serif;
    font-size: 16px;
    color: #000;
    text-align: center;
}

h2:before {
    content: "";
    width: 100%;
    position: absolute;
    border: 1px solid #e5e5e5;
    top: 8px;
    left: 0;
    z-index: -2;
}

h2:after {
    content: "";
    position: absolute;
    top: 0px;
    right: 0px;
    left: 0;
    margin: 0 auto;
    height: 19px;
    background: white;
    z-index: -1;
}

h2.opcion:after {
    width: 80px;
}

h2.factum:after {
    width: 82px;
}

h2.cifra:after {
    width: 65px;
}

h2.equipos:after {
    width: 85px;
}

.escrutinio h2:after {
    width: 110px;
}

.wrapperCandidatos {
    display: flex;
    justify-content: center;
}

.candidato {
    padding: 0 30px;
}

.candidato img {
    width: 170px;
    height: auto;
}

.formula {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'DroidSerif', serif;
    margin-top: 15px;
    margin-bottom: 0;
}

.formula span {
    display: inline-block;
    margin-right: 7px;
    width: 15px;
    height: 15px;
    background: #b4b4b4;
}

.wrapperEncuestadoras {
    margin-top: 50px;
}

.encuestadoras {
    margin: 0 auto;
    height: 70px;
    position: relative;
}

.encuestadoras .porcentajes {
    display: flex;
    justify-content: space-around;
}

.encuestadoras .porcentajes span {
    font-family: 'DroidSerif-Bold', serif;
    font-size: 25px;
}

.encuestadoras .porcentajes span>i {
    font-size: 20px;
    font-style: normal;
}

.encuestadoras .porcentajes span.rango {
    font-size: 25px;
}

.encuestadoras .progress {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 15px;
    border-radius: 0;
    border: none;
    position: absolute;
    bottom: 0;
}

.encuestadoras .progress-bar.izq {
    width: 0%;
    background: #80BFFF;
}

.encuestadoras .progress-bar.der {
    width: 0%;
    background: #FECC00;
}

.wrapperDesktop {
    margin-top: 15px;
    width: 450px;
    position: relative;
}

.escrutinio .datos {
    display: flex;
    justify-content: space-around;
    padding-bottom: 10px;
    margin-bottom: 27px;
    border-bottom: 1px solid #e5e5e5;
}

.escrutinio .datos p {
    display: inline-block;
    margin: 0;
    font-size: 14px;
}

.escrutinio .datos p>span {
    font-weight: 600;
}

.escrutinio .porcentajes {
    display: flex;
    justify-content: space-between;
    padding-bottom: 5px;
}

.escrutinio .porcentajes span {
    font-family: 'DroidSerif-Bold', serif;
    font-size: 35px;
}

.escrutinio .porcentajes span>i {
    font-size: 23px;
    font-style: normal;
}

.escrutinio .progress {
    display: flex;
    justify-content: space-between;
    width: 100%;
    height: 15px;
    border-radius: 0;
    border: none;
}

.escrutinio .progress-bar.izq {
    width: 0%;
    background: #80BFFF;
}

.escrutinio .progress-bar.der {
    width: 0%;
    background: #FECC00;
}

.escrutinio .votos {
    display: flex;
    justify-content: space-between;
    padding-top: 10px;
}

.escrutinio .votos span {
    font-size: 14px;
    font-weight: 500;
}

.escrutinio .votos span>i {
    font-style: normal;
    font-weight: 300;
}

.otrosVotos {
    width: 100%;
    display: flex;
    justify-content: space-around;
    padding-top: 13px;
    margin-top: 18px;
}

.otrosVotos p {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    font-weight: 700;
    font-size: 12px;
    padding: 0 5px;
    line-height: 15px;
    text-align: center;
}

.otrosVotos p>span {
    font-weight: 300;
}

.fa-color {
    background: #FECC00 !important;
}

.pn-color {
    background: #80BFFF !important;
}


.progress-bar {
    animation-name: progress;
    animation-duration: 1.5s;
    animation-delay: .3s;
    animation-fill-mode: forwards;
}

/*@keyframes progress {
    from {
        width: 0%;
    }

    to {
        width: 47%;
    }
}*/

@media (max-width: 358px) {
    .formula {
        font-size: 12px !important;
    }
}

@media (max-width: 470px) {
    .wrapperMobile .otrosVotos {
        flex-direction: column;
        align-items: center;
    }

    .wrapperMobile .otrosVotos p {
        margin-bottom: 10px;
    }

    .wrapperEncuestadoras {
        margin-top: 25px;
    }
}

@media (max-width: 769px) {
    main {
        height: auto;
    }

    main {
        padding: 0;
        border: none;
    }

    .h1Mobile {
        margin-bottom: 25px;
    }

    .h1Desktop {
        display: none;
    }

    .col-lg-3 .encuestadoras {
        margin-bottom: 1.5rem !important;
    }

    .wrapperCandidatos {
        padding-top: 0;
        padding-bottom: 30px;
        justify-content: space-around;
    }

    .formula {
        margin-top: 15px;
        font-size: 14px;
    }

    .wrapperEncuestadoras .col-lg-6 {
        padding: 0;
    }

    .encuestadoras {
        max-width: 100%;
    }

    .escrutinio .datos {
        flex-direction: column;
        align-items: center;
    }

    .candidato {
        padding: 0 5px;
    }

    .wrapperDesktop {
        display: none;
    }

    .datosMobile {
        padding-top: 10px;
        margin-bottom: 20px !important;
    }

    .datosMobile p {
        margin: 5px 0 !important;
    }
}

@media (min-width: 770px) and (max-width: 991px) {

    main {
        border: none;
    }

    .wrapperEncuestadoras .col-lg-6 {
        padding: 0;
    }

    .col-lg-3 .encuestadoras {
        margin-bottom: 1.5rem !important;
    }

    .encuestadoras {
        max-width: 100%;
    }

    .escrutinio .datos p {
        padding: 0 5px;
        font-size: 14px;
        text-align: center;
    }

    .candidato {
        padding: 0 15px;
    }

    .wrapperMobile {
        display: none;
    }

    .wrapperCandidatos {
        justify-content: space-between;
    }

    .wrapperDesktop {
        max-width: 100%;
    }

    .datosMobile {
        display: none !important;
    }
}

@media (min-width: 992px) {

    .wrapperMobile {
        display: none;
    }

    .datosMobile {
        display: none !important;
    }
}