/*Mapa elecciones*/

#box-mapa-primarias {
float:left;
clear:both;
width:76%;
}

#box-mapa-primarias > h3 {
background-color: #efefef;
border-top: 1px solid #ccc;
margin:0px;
padding:8px 0px;
font-size: 14px;
text-transform: uppercase;
text-align: center;
}

#box-mapa-primarias > ul {
padding:0px;
margin:0px;
list-style-type: none;
}

/*Mapa elecciones > Nav*/

#box-mapa-primarias > ul.mapa-nav li {
display: inline-block;
width:50%;
text-align: center;
font-weight: bold;
font-size: 14px;
background-color: #333;
color: #fff;
padding: 8px 0px;
transition: background-color 0.2s linear;
  -webkit-transition: background-color 0.2s linear;
  -ms-transition: background-color 0.2s linear;
  -moz-transition: background-color 0.2s linear;
  -o-transition: background-color 0.2s linear;
position: relative;
}

#box-mapa-primarias > ul.mapa-nav li[data-partido="dem"] {
background-color: #3B5999;
}

#box-mapa-primarias > ul.mapa-nav li[data-partido="dem"]:hover {
background-color: #284480;
cursor: pointer;
}

#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="dem"],
#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="dem"]:hover {
background-color: #284480;
cursor: default;
}

#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="dem"]:after {
content: '';
position: absolute;
left:50%;
left:calc(50% - 6px);
bottom:-11px;
width: 0;
height: 0;
border-style: solid;
border-width: 12px 12.5px 0 12.5px;
border-color: #284480 transparent transparent transparent;
z-index: 1;
}

#box-mapa-primarias > ul.mapa-nav li[data-partido="rep"] {
background-color: #D74A38;
}

#box-mapa-primarias > ul.mapa-nav li[data-partido="rep"]:hover {
background-color: #b5301f;
cursor: pointer;
}

#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="rep"],
#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="rep"]:hover {
background-color: #b5301f;
cursor: default;
}

#box-mapa-primarias > ul.mapa-nav li.activo[data-partido="rep"]:after {
content: '';
position: absolute;
left:50%;
left:calc(50% - 6px);
bottom:-11px;
width: 0;
height: 0;
border-style: solid;
border-width: 12px 12.5px 0 12.5px;
border-color: #b5301f transparent transparent transparent;
z-index: 1;
}

/*Mapa elecciones > Mapa */

#box-mapa-primarias #mapa-primarias-eeuu {
width:100%;
height:400px;
float:left;
clear:both;
box-sizing: border-box;
border:1px solid #8EA2B3;
position:relative;
}

/*Mapa elecciones > Simbología */

#box-mapa-primarias > ul.mapa-simbologia {
display: none;
background-color: #efefef;
float:left;
width:98%;
text-align: center;
padding:10px 1%;
border-bottom: 1px solid #ccc;
}

#box-mapa-primarias > ul.mapa-simbologia li {
display: inline-block;
font-size:13px;
padding-right:10px;
}

#box-mapa-primarias > ul.mapa-simbologia li span {
display: inline-block;
width:10px;
height: 10px;
margin-right:5px;
}

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="1"] span,
div.tooltip_paises ul li[data-candidato="1"] span { background-color: #1b378f; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="2"] span,
div.tooltip_paises ul li[data-candidato="2"] span { background-color: #3088f5; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="3"] span,
div.tooltip_paises ul li[data-candidato="3"] span { background-color: #c33625; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="4"] span,
div.tooltip_paises ul li[data-candidato="4"] span { background-color: #dc8480; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="5"] span,
div.tooltip_paises ul li[data-candidato="5"] span { background-color: #6d413b; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="6"] span,
div.tooltip_paises ul li[data-candidato="6"] span { background-color: #e7ac58; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="7"] span,
div.tooltip_paises ul li[data-candidato="7"] span { background-color: #eba90b; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="8"] span,
div.tooltip_paises ul li[data-candidato="8"] span { background-color: #e5d916; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="9"] span,
div.tooltip_paises ul li[data-candidato="9"] span { background-color: #aa73de; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="10"] span,
div.tooltip_paises ul li[data-candidato="10"] span { background-color: #bd35d5; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="11"] span,
div.tooltip_paises ul li[data-candidato="11"] span { background-color: #860776; }

#box-mapa-primarias > ul.mapa-simbologia li[data-candidato="12"] span,
div.tooltip_paises ul li[data-candidato="12"] span { background-color: #f3844d; }

#box-mapa-primarias[data-partido="dem"] ul.mapa-simbologia[data-partido="dem"] {
display: block;
}

#box-mapa-primarias[data-partido="rep"] ul.mapa-simbologia[data-partido="rep"] {
display: block;
}

#box-mapa-primarias path:not([fill='white']) {
cursor: pointer;
}

/*Mapa elecciones > Tooltip*/

.jvectormap-label {
    position: absolute;
    display: none;
    border: solid 1px #CDCDCD;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #fff;
    color: white;
    font-family: sans-serif, Verdana;
    font-size: smaller;
    padding: 3px;
    z-index: 20;
}

.jvectormap-zoomin, .jvectormap-zoomout {
    position: absolute;
    left: 10px;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    background: #2f3f4d;
    padding: 10px;
    color: white;
    cursor: pointer;
    line-height: 10px;
    text-align: center;
    transition: all 0.2s linear;
      -webkit-transition: all 0.2s linear;
      -ms-transition: all 0.2s linear;
      -moz-transition: all 0.2s linear;
      -o-transition: all 0.2s linear;
}

.jvectormap-zoomin:hover, .jvectormap-zoomout:hover {
background-color: #1f2c37;
}

.jvectormap-zoomin {
    top: 10px;
}

.jvectormap-zoomout {
    top: 46px;
}

div.tooltip_paises {
width: 200px;
font-size: 11px;
padding:3px;
color: #333;
}

div.tooltip_paises h3 {
margin:0px;
text-transform: uppercase;
color: #2f3f4d;
border-bottom: 1px dotted #ccc;
padding-bottom:3px;
margin-bottom:3px;
font-size: 12px;
}

div.tooltip_paises h4 {
margin:0px;
padding:0px;
font-size: 11px;
font-weight: bold;
margin-bottom:5px;
}

div.tooltip_paises p {
padding:2px 0px;
margin:0px;
}

div.tooltip_paises ul {
list-style-type: none;
padding:0px;
margin:0px;
}

div.tooltip_paises li {
padding: 3px 0px;
border-bottom: 1px dotted #ccc;
}

div.tooltip_paises li span {
width:9px;
height: 9px;
display: inline-block;
margin-right:5px;
}

/*Grafico*/

#box-mapa-primarias > h4 {
background-color: #ccc;
font-size: 12px;
font-weight: bold;
padding:6px 0px;
text-align: center;
text-transform: uppercase;
float:left;
clear:both;
width:100%;
margin:0px;
}

#box-mapa-primarias ul.grafico-primarias {
display: none;
padding:0px;
margin:0px;
list-style-type: none;
background-color: #efefef;
border-bottom: 1px solid #ccc;
float:left;
clear:both;
width:100%;
padding-top: 5px;
}

#box-mapa-primarias ul.grafico-primarias > span {
font-size: 11px;
padding: 4px 10px;
float:right;
clear:both;
font-style: italic;
}

#box-mapa-primarias[data-partido="dem"] ul.grafico-primarias[data-partido="dem"],
#box-mapa-primarias[data-partido="rep"] ul.grafico-primarias[data-partido="rep"] {
display: block;
}

#box-mapa-primarias ul.grafico-primarias li {
border-bottom: 1px dotted #ccc;
padding: 10px 0px;
font-size: 13px;
position: relative;
text-indent: 10px;
}

#box-mapa-primarias ul.grafico-primarias li.abandona {
opacity: 0.7;
filter: alpha(opacity=70);
}

#box-mapa-primarias ul.grafico-primarias li:last-child {
border-bottom :none;
}

#box-mapa-primarias ul.grafico-primarias li > div {
position: absolute;
left:120px;
right:10px;
height: 25px;
top:5px;
border-left: 1px solid #ccc;
}

#box-mapa-primarias ul.grafico-primarias li > div > div {
height: 25px;
display: block;
width:0px;
transition: all 0.8s linear;
  -webkit-transition: all 0.8s linear;
  -ms-transition: all 0.8s linear;
  -moz-transition: all 0.8s linear;
  -o-transition: all 0.8s linear;
color: #fff;
font-size: 13px;
font-weight: bold;
line-height: 25px;
position: relative;
min-width:15px;
}

#box-mapa-primarias ul.grafico-primarias li > div > div span {
position: absolute;
right:4px;
}

#box-mapa-primarias ul.grafico-primarias[data-partido="dem"] li > div > div {
background-color: #3B5999;
overflow: hidden;
}

#box-mapa-primarias ul.grafico-primarias[data-partido="rep"] li > div > div {
background-color: #D74A38;
}

/*Próximas primarias*/

#box-mapa-primarias > h4.proximas-primarias {
margin-top:20px;
background-color: #3A5F48;
color: #fff;
}

#proximas-primarias {
width: 100%;
border-spacing: 0px;
font-size: 12px;
line-height: 18px;
}

#proximas-primarias th {
background-color: #efefef;
font-weight: bold;
color: #000;
padding: 6px 5px;
text-align: left;
border-bottom: 1px solid #ccc;
}

#proximas-primarias tbody tr {
display: none;
}

#proximas-primarias tbody tr:first-child,
#proximas-primarias tbody tr:nth-child(2) {
display: table-row;
}

#proximas-primarias td {
width:50%;
width:calc(50% - 45px);
padding: 4px;
text-align: left;
vertical-align: top;
border-bottom: 1px dotted #ccc;
}

#proximas-primarias td:first-child {
width:90px;
font-weight: bold;
}

div.proximas-primarias {
display: inline-block;
text-align: center;
width:100%;
margin-bottom:25px;
}

a.proximas-primarias:link,
a.proximas-primarias:visited {
display: inline-block;
text-align: center;
font-size: 13px;
text-decoration: none;
color: #fff;
width:100%;
max-width: 200px;
background-color: #333;
font-weight: bold;
padding: 5px 0px;
margin-top:8px;
border-radius: 2px;
transition: background-color 0.2s linear;
  -webkit-transition: background-color 0.2s linear;
  -ms-transition: background-color 0.2s linear;
  -moz-transition: background-color 0.2s linear;
  -o-transition: background-color 0.2s linear;
}

a.proximas-primarias:hover {
background-color: #111;
}

@media (max-width: 1180px) {

#box-mapa-primarias {
width:100%;
}

}


@media (max-width: 500px) {

#box-mapa-primarias #mapa-primarias-eeuu {
height: 300px;
}

}