.mapa-internas-wrapper * {
font-family: var(--font-3, 'Work Sans') !important;
color: #333;
}
.mapa-internas-wrapper p {
margin: 0;
}
.mapa-internas-wrapper h2,
.mapa-internas-wrapper h3 {
font-size: 1.2rem !important;
margin: 0;
}
.mapa-internas-wrapper ul {
margin-bottom: 0;
}
.mapa-internas-wrapper li {
list-style: none;
}
.mapa-internas-wrapper button {
/* background: none; */
border: none;
padding: 0;
outline: none;
cursor: pointer;
transition: opacity 100ms ease-in-out;
}
.mapa-internas-wrapper button:hover {
opacity: .8;
}
.mapa-internas-wrapper {
background-color: #fff;
--color-partido: #999;
--color-partido-translucid: #99999970;
--color-candidato: #999;
}
.mapa-internas-title {
margin-bottom: 4rem;
}
.mapa-internas-title h2,
.mapa-internas-title h3 {
font-size: 2rem !important;
font-weight: bold !important;
line-height: 1;
}
.mapa-internas-title h2 {
color: var(--color-partido);
}
.mapa-internas-title h3 {
margin-bottom: 3px;
}
.mapa-internas-title h3+p {
margin-bottom: 1rem;
color: #333;
}
.mapa-internas-title p {
font-size: 1.4rem !important;
color: #999;
line-height: 1.1 !important;
}
.mapa-internas-mapa {
margin-bottom: 4rem;
}
.departamento {
fill: #EBEBEB;
stroke: #999;
}
.departamento:hover {
cursor: pointer;
opacity: .9;
}
.departamentos-tooltip {
background: rgba(0,0,0,.2);
backdrop-filter: blur(5px);
color: #fff;
padding: 5px 10px;
border-radius: 4px;
width: fit-content;
position: fixed;
display: none;
pointer-events: none;
}
.departamentos-tooltip::after {
content: "";
display: block;
position: absolute;
top: 100%;
left: 50%;
transform: translateX(-50%);
border: 8px solid transparent;
border-top: 10px solid rgba(0,0,0,.2);
backdrop-filter: blur(5px);
}
.mapa-internas-select {
width: 100%;
background: #333;
color: #fff;
border: none;
padding: 3px;
padding-left: 10px;
/* text-align: center; */
font-size: 1.4rem !important;
/* text-align-last: center;
-moz-text-align-last: center; */
cursor: pointer;
border: 2px solid #333;
}
.mapa-internas-select:active,
.mapa-internas-select:focus {
border: 2px solid var(--color-partido);
}
.mapa-internas-select option {
/* text-align: center; */
width: 100%;
box-sizing: border-box;
background: #333;
color: #fff;
font-size: 1.4rem !important;
cursor: pointer;
}
.mapa-internas-carousel {
padding: 2rem;
}
.internas-carousel-page {
display: flex;
flex-direction: column;
gap: 2rem;
min-height: 330px;
}
.mapa-internas-avatar {
width: 50px;
height: 50px;
border-radius: 50%;
overflow: hidden;
background-color: var(--color-candidato);
/* border: 1px solid var(--color-partido); */
}
.mapa-internas-avatar img {
width: 100%;
height: 100%;
}
.mapa-internas-candidato {
display: flex;
gap: 1rem;
align-items: center;
animation-name: appear-to-left;
animation-duration: 300ms;
animation-timing-function: ease-in-out;
animation-fill-mode: backwards;
position: relative;
}
.mapa-internas-candidato:nth-of-type(2) {
animation-delay: 100ms;
}
.mapa-internas-candidato:nth-of-type(3) {
animation-delay: 200ms;
}
.mapa-internas-candidato:nth-of-type(4) {
animation-delay: 300ms;
}
.mapa-internas-candidato:nth-of-type(5) {
animation-delay: 400ms;
}
@keyframes appear-to-left {
from {
opacity: 0;
left: 50%;
} to {
opacity: 1;
left: 0;
}
}
.mapa-internas-candidato-nombre,
.mapa-internas-candidato-porcentaje,
.mapa-internas-candidato-votos,
.mapa-internas-candidato-departamento {
font-size: 1.4rem !important;
line-height: 1.1 !important;
font-weight: bold !important;
}
.mapa-internas-candidato-porcentaje,
.mapa-internas-candidato-votos {
color: var(--color-partido);
}
.mapa-internas-candidato-votos {
font-weight: normal !important;
}
.mapa-internas-footer p {
margin-top: 3rem;
color: #999;
text-align: center;
}
[data-loading="true"] .mapa-internas-bajada,
[data-loading="true"] .mapa-internas-actualizado {
display: none;
}
[data-loading="true"] .mapa-internas-resultados svg,
[data-loading="true"] .mapa-internas-title h2 {
animation-name: blink;
animation-duration: 1200ms;
animation-iteration-count: infinite;
animation-fill-mode: both;
}
[data-loading="true"] .mapa-internas-mapa {
opacity: 0.5;
}
.mapa-internas-resultados svg {
margin-bottom: 1rem;
margin-right: 1rem;
}
@keyframes blink {
0% {
opacity: .5;
} 50% {
opacity: 1;
} 100% {
opacity: .5;
}
}
[data-loading="true"] .mapa-internas-resultados svg:nth-of-type(2n) {
animation-delay: 300ms;
}
[data-loading="true"] .mapa-internas-resultados svg:nth-of-type(3n) {
animation-delay: 600ms;
}
.mapa-internas-numeros-wrapper {
display: flex;
column-gap: 17px;
flex-wrap: wrap;
align-items: center;
}
.mapa-internas-numeros-wrapper .mapa-internas-candidato-porcentaje {
position: relative;
}
.mapa-internas-numeros-wrapper .mapa-internas-candidato-porcentaje::after {
content: "|";
display: block;
position: absolute;
top: 0;
right: -10px;
font-weight: normal !important;
}
.resultados-controles {
justify-content: space-between;
align-items: center;
display: none;
}
.resultados-controles.active {
display: flex;
}
.resultados-next,
.resultados-prev {
width: 32px;
height: 20px;
background-repeat: no-repeat;
background-position: center;
background-size: contain;
background-color: transparent;
}
.resultados-prev {
/* background-image: url('../img/chevron-left-solid.svg'); */
background-image: url('https://el-pais.brightspotcdn.com/0e/b0/147cdcda4549a13b472c0c953b2f/chevron-left-solid.svg');
}
.resultados-next {
/* background-image: url('../img/chevron-right-solid.svg'); */
background-image: url('https://el-pais.brightspotcdn.com/4b/74/0601f2d645afb6e8f061f4c8672b/chevron-right-solid.svg');
}
.resultados-counters {
display: flex;
gap: 5px;
align-items: center;
}
.resultados-counter {
display: block;
width: 10px;
height: 10px;
background-color: #333;
border-radius: 50%;
}
.resultados-counter.active {
background-color: var(--color-partido);
}
.mapa-internas-ref {
display: flex;
flex-wrap: wrap;
column-gap: 2rem;
row-gap: 1rem;
margin-top: 4rem;
justify-content: center;
}
.mapa-internas-ref-item p {
margin-top: 0;
color: #333;
font-size: 1.4rem !important;
line-height: 1;
}
.mapa-internas-ref-item {
line-height: 1;
}
.mapa-internas-ref-item {
display: flex;
align-items: center;
gap: 5px;
}
.mapa-internas-ref-item::before {
content: "";
display: block;
height: 15px;
width: 15px;
background-color: var(--color-candidato);
}
.mapa-internas-candidato-content[data-mostrar="mayoria"] .mapa-internas-candidato-porcentaje {
font-weight: normal !important;
}
.mapa-internas-candidato-content[data-mostrar="mayoria"] .mapa-internas-candidato-nombre {
color: var(--color-partido);
}
.modulo-internas-wrapper .mapa-internas-title h3 {
color: var(--color-partido);
}
@media screen and (min-width: 768px) {
.mapa-internas-wrapper {
display: flex;
/* justify-content: center; */
flex-wrap: wrap;
margin: 2rem 0;
position: relative;
}
.mapa-internas-mapa {
flex-grow: 2;
flex-basis: 200px;
margin-right: 8rem;
}
.mapa-internas-title {
flex-basis: 100%;
}
.mapa-internas-resultados {
flex-basis: 280px;
}
.mapa-internas-footer {
width: 100%;
}
.mapa-internas-footer p {
margin: 0;
}
.mapa-internas-ref {
justify-content: flex-start;
}
.modulo-internas-wrapper {
padding: 1rem 3rem;
border: 1px solid var(--color-partido);
}
.modulo-internas-wrapper .mapa-internas-wrapper {
justify-content: space-between;
}
}
@media screen and (min-width: 900px) {
.mapa-internas-mapa {
margin-right: 8rem;
max-width: 400px;
}
}
@media screen and (min-width: 1028px) {
.mapa-internas-title {
flex-basis: 200px;
}
.mapa-internas-ref {
position: absolute;
flex-direction: column;
left: 0;
bottom: 70px;
}
}
@media screen and (min-width: 1280px) {
/* .mapa-internas-ref {
left: 4rem;
} */
.mapa-internas-mapa {
margin-bottom: 0;
}
}