:root {
    --rojo: #E30613;
    --azul: #13017C;
    --font-serif: 'Tiempos Headline', serif;
    --font-sans: 'Libre Franklin', sans-serif;
}

body {
    margin: 0;
}

body * {
    box-sizing: border-box;
}

#resultados-2026 .top {
    margin: 0 15px 20px;
    padding: 0 0 15px;
    border-bottom: 2px solid var(--azul);
}

#resultados-2026 .top .logo figure {
    margin: 0 auto 20px;
    width: 240px;
}

#resultados-2026 .top .logo figure img {
    width: 100%;
    height: auto;
}

#resultados-2026 .top .datos-resultados {
    margin: 0 auto 10px;
    width: 240px;
}

#resultados-2026 .top .datos-resultados h3 {
    font-size: 20px;
    font-weight: 700;
    font-family: var(--font-sans);
    line-height: 42px;
    color: #fff;
    text-align: center;
    text-transform: uppercase;
    margin: 0 0 10px;
    height: 40px;
    border-radius: 6px;
    background: var(--rojo);
}

#resultados-2026 .top .datos-resultados .datos {
    list-style: none;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    padding: 0;
}

#resultados-2026 .top .datos-resultados .datos li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 40px;
    font-size: 14px;
    font-family: var(--font-serif);
    line-height: 1em;
    color: var(--azul);
}

#resultados-2026 .top .datos-resultados .datos li strong {
    display: block;
    font-size: 20px;
    font-family: var(--font-sans);
    line-height: 1em;
}

#resultados-2026 .top .datos-resultados .datos li:first-child {
    margin: 0 10px 0 0;
    padding: 0 10px 0 0;
    border-right: 1px solid var(--azul);
}

#resultados-2026 .top .btn-link {
    position: relative;
    font-size: 16px;
    font-weight: 500;
    font-family: var(--font-sans);
    line-height: 42px;
    color: #fff;
    text-decoration: none;
    display: block;
    margin: 0 auto;
    width: 240px;
    height: 40px;
    padding: 0 20px;
    border-radius: 6px;
    background: var(--rojo);
    transition: all 0.1s linear;
}

#resultados-2026 .top .btn-link:hover {
    background: var(--azul);
}

#resultados-2026 .top .btn-link:after {
    content: '';
    position: absolute;
    top: 0;
    right: 15px;
    bottom: 0;
    margin: auto;
    width: 10px;
    height: 10px;
    border-width: 3px 3px 0 0;
    border-style: solid;
    border-color: #fff;
    border-radius: 2px;
    transform: rotate(45deg);
}

#resultados-2026 .grafico-barras {
    position: relative;
    margin: 0 0 10px;
}

#resultados-2026 .grafico-barras:before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% + 65px);
    width: 0;
    height: calc(100% - 10px);
    border-right: 1px dashed var(--azul);
}

#resultados-2026 .grafico-barras .box-info-umbral {
    position: absolute;
    top: -15px;
    left: calc(50% + 50px);
    display: flex;
    align-items: center;
}

#resultados-2026 .grafico-barras .box-info-umbral button {
    -webkit-appearance: inherit;
    margin: 0;
    width: 30px;
    height: 30px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--azul);
    font-size: 16px;
    font-family: var(--font-serif);
    color: #fff;
    text-align: center;
    cursor: pointer;
}

#resultados-2026 .grafico-barras .box-info-umbral span {
    position: absolute;
    top: 40px;
    right: calc(50% - 80px);
    width: 280px;
    min-height: 30px;
    padding: 8px;
    border-radius: 6px;
    background: var(--azul);
    font-size: 13px;
    font-family: var(--font-sans);
    color: #fff;
    transform: scale(0);
    transition: all 0.2s linear;
    transform-origin: top right;
    z-index: 2;
}

#resultados-2026 .grafico-barras .box-info-umbral.active span,
#resultados-2026 .grafico-barras .box-info-umbral:hover span {
    transform: scale(1);
}

#resultados-2026 .grafico-barras .box-info-umbral span:before {
    content: '';
    position: absolute;
    top: -4px;
    right: calc(50% - 65px);
    margin: auto;
    width: 8px;
    height: 8px;
    background: var(--azul);
    transform: rotate(45deg);
}

#resultados-2026 .grafico-barras .item-candidato {
    display: flex;
    flex-direction: row-reverse;
    justify-content: space-between;
    padding: 10px 15px;
}

#resultados-2026 .grafico-barras .item-candidato .datos {
    width: calc(100% - 130px);
}

#resultados-2026 .grafico-barras .item-candidato .box-barra {
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: center;
    margin: 10px auto 5px;
    width: 100%;
    height: 50px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.1);
}

#resultados-2026 .grafico-barras .item-candidato .box-barra .porcentaje {
    font-size: 24px;
    font-weight: 700;
    font-family: var(--font-serif);
    line-height: 1em;
    color: var(--rojo);
    text-align: center;
    display: block;
    margin: 0 0 0 6px;
    z-index: 1;
}

#resultados-2026 .grafico-barras .item-candidato .box-barra .barra {
    width: 54%;
    height: 100%;
    border-radius: 9px;
    background: linear-gradient(to bottom, var(--rojo), #7D030A);
    transition: all 0.3s ease-in-out;
}

#resultados-2026 .grafico-barras .item-candidato .box-votos {
    position: relative;
    width: 100px;
    padding: 0 0 6px;
}

#resultados-2026 .grafico-barras .item-candidato .box-votos span {
    display: block;
    font-size: 12px;
    font-family: var(--font-sans);
    color: var(--azul);
    text-align: center;
}

#resultados-2026 .grafico-barras .item-candidato .box-votos:after {
    content: '';
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: 100%;
    max-width: 100px;
    height: 3px;
    background: linear-gradient(to right, #EBC040 50%, #0F459E 50%, #0F459E 75%, #C82B2E 75%);
}

#resultados-2026 .grafico-barras .item-candidato .box-perfil {
    width: 120px;
}

#resultados-2026 .grafico-barras .item-candidato .box-perfil figure {
    margin: 0 auto;
}

#resultados-2026 .grafico-barras .item-candidato .box-perfil figure img {
    display: block;
    margin: 0 auto;
    width: 70px;
    border: 5px solid #eee;
    border-radius: 50%;
}

#resultados-2026 .grafico-barras .item-candidato .box-perfil h4 {
    margin: 5px 0 0;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-serif);
    line-height: 1em;
    color: var(--azul);
    text-align: center;
}

#resultados-2026 .grafico-barras .item-candidato .box-perfil h4 b {
    display: block;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.1em;
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(odd) {
    background: rgba(0, 0, 0, 0.1);
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-perfil figure {
    display: none;
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-perfil h4 {
    text-align: left;
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra {
    margin: 0 auto;
    height: 20px;
    border-radius: 5px;
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra .barra {
    border-radius: 4px;
}

#resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra .porcentaje {
    font-size: 16px;
}

#resultados-2026 .bottom {
    position: relative;
    margin: 0 15px;
    padding: 20px;
    border-radius: 10px;
    background: var(--rojo);
}

#resultados-2026 .bottom .datos {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    row-gap: 30px;
}

#resultados-2026 .bottom .datos li {
    display: flex;
    flex-direction: column;
    justify-content: center;
    font-size: 14px;
    font-weight: 400;
    font-family: var(--font-sans);
    line-height: 1em;
    color: #fff;
    width: 50%;
    height: 40px;
}

#resultados-2026 .bottom .datos li strong {
    display: block;
    margin: 4px 0 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1em;
}

#resultados-2026 .bottom .datos li:nth-child(odd) {
    border-right: 1px solid #7D030A;
}

#resultados-2026 .bottom .datos li:nth-child(even) {
    padding: 0 0 0 20px;
}

#resultados-2026 .bottom .datos .segunda-vuelta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 0 0 20px;
    width: calc(50% - 20px);
    font-size: 13px;
    font-weight: 600;
    font-family: var(--font-sans);
    color: #fff;
}

#resultados-2026 .bottom .datos .segunda-vuelta b {
    display: block;
    margin: 0 0 0 10px;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    background: #fff;
    font-size: 16px;
    line-height: 42px;
    color: var(--azul);
    text-align: center;
}

#resultados-2026 .bottom:after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    margin: auto;
    width: calc(100% - 40px);
    height: 1px;
    background: #7D030A;
}

@media screen and (min-width: 1080px) {
    #resultados-2026 {
        margin: 0 auto;
        max-width: 1200px;
    }

    #resultados-2026 .top {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin: 0 0 20px;
    }

    #resultados-2026 .top .logo figure {
        margin: 0;
    }

    #resultados-2026 .top .datos-resultados {
        display: flex;
        gap: 10px;
        margin: 0;
        width: calc(100% - 500px);
        padding: 0 0 5px;
    }

    #resultados-2026 .top .datos-resultados h3 {
        margin: 0;
        width: 160px;
    }

    #resultados-2026 .top .btn-link {
        margin: 0 0 5px;
    }

    #resultados-2026 .grafico-barras {
        display: flex;
        justify-content: space-between;
        padding: 0 15px 10px;
    }

    #resultados-2026 .grafico-barras:before {
        top: 100px;
        left: 0;
        width: 100%;
        height: 0;
        border-left: 0;
        border-bottom: 1px dashed var(--azul);
    }

    #resultados-2026 .grafico-barras .box-info-umbral {
        top: 85px;
        left: 0;
    }

    #resultados-2026 .grafico-barras .box-info-umbral span {
        top: 0;
        right: auto;
        left: 40px;
        width: 530px;
        transform-origin: center left;
    }

    #resultados-2026 .grafico-barras .box-info-umbral span:before {
        top: 0;
        right: auto;
        bottom: 0;
        left: -4px;
    }

    #resultados-2026 .grafico-barras .item-candidato {
        display: block;
        margin: 0;
        padding: 0;
    }

    #resultados-2026 .grafico-barras .item-candidato .datos {
        margin: 0 auto;
        width: 100%;
        max-width: 80px;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-barra {
        flex-direction: column;
        margin: 0 auto 5px;
        height: 200px;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-barra .barra {
        width: 100%;
        height: 53%;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-perfil {
        width: 100%;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-perfil figure {
        display: flex;
        align-items: center;
        height: 100px;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-perfil figure img {
        width: 100px;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-votos {
        margin: 0 auto 10px;
        width: 70px;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(odd) {
        background: transparent;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-perfil figure {
        display: flex;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-perfil h4 {
        text-align: center;
    }

    #resultados-2026 .grafico-barras .item-candidato .box-perfil h4 b {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4),
    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-perfil figure img {
        width: 80px;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra {
        margin: 0 auto 5px;
        border-radius: 10px;
        width: 50px;
        height: 200px;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra .barra {
        border-radius: 9px;
    }

    #resultados-2026 .grafico-barras .item-candidato:nth-child(n+4) .box-barra .porcentaje {
        font-size: 18px;
    }

    #resultados-2026 .bottom {
        margin: 0;
        padding: 10px;
    }

    #resultados-2026 .bottom:after {
        display: none;
    }

    #resultados-2026 .bottom .datos {
        row-gap: 0;
    }

    #resultados-2026 .bottom .datos li {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        width: 250px;
        height: 30px;
        border-right: 1px solid #7D030A;
    }

    #resultados-2026 .bottom .datos li strong {
        margin: 0 0 0 5px;
    }

    #resultados-2026 .bottom .datos li:nth-child(even),
    #resultados-2026 .bottom .datos li:nth-child(odd) {
        padding: 0 0 0 10px;
    }

    #resultados-2026 .bottom .datos .segunda-vuelta {
        justify-content: flex-end;
        margin: 0;
        width: calc(100% - 750px);
        font-size: 14px;
    }

    #resultados-2026 .bottom .datos .segunda-vuelta b {
        margin: -5px -5px -5px 10px;
    }
}