/*@font-face {
    font-family: Heebo-Regular;
    src: url("fonts/Heebo-Regular.ttf");
}
@import url('https://fonts.googleapis.com/css?family=Heebo:300,400,500,700');
*/

* {
    font-family: 'Heebo' !important;
}

body{
    font-family: 'Heebo', sans-serif;
}

header{
    text-align: center;
    margin: 0 auto;
}
.cabecera {
    padding-bottom: 2%;
}
.cabecera .logo-head{
    width: 40%;
    padding: 3%;
}
.cabecera h1{
    color: #003F77;
    font-size: 30px;
}
.cabecera hr{
    background: #F47C00;
    height: 4px;
    width: 300px;
}
.cabecera p{
    color: #F47C00;
    font-size: 22px;
    padding: 0 6%;
}
.map-box{
    background: #b3d8eb;
    border-top: 6px solid #003F77;
}
.energy-btn{
    text-align: center;
    padding: 3% 0;
}
.energy-btn a,
.state-modal button{
    color: #ffffff;
    letter-spacing: 1px;
    padding: 10px 12px;
    background: #F47C00;
    border-radius: 4px;
    border: 2px solid #F47C00;
    white-space: nowrap;
}
.energy-btn a:hover, .energy-btn a:focus, 
.state-modal button:hover{
    text-decoration: none;
    font-weight: 500;
    color: #F47C00;
    background: #ffffff;
    border: 2px solid #F47C00;
}
.box-comunidad{
    margin: 4%;
    padding: 4%;
    padding-top: 0;
    -webkit-box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
}
.box-comunidad .img-center{
    text-align: center;
    margin:0 auto;
    padding-bottom: 30px;
}
.box-comunidad .img-center.pad{
    padding-top: 25px;
}
.box-comunidad .img-center p{
    font-size: 18px;
    color: #003F77;
}
.box-comunidad .energy-dates img{
    width: 20%;
}
.box-comunidad .energy-dates h3{
    color: #F47C00;
}
.box-comunidad .energy-dates p{
    color: #003F77;
}
.general-energy-box{
    padding: 2%;
    padding-top: 4%;
    background: url('../images/back-energy.jpg');
    background-size: cover;
    background-position: center;
    color:#ffffff;
    font-size: 16px;
}
.general-energy-box .energies img{
    width: 60px;
    float: left;
    margin-right: 20px;
}
.general-energy-box .energies p{
    margin-left: 80px;
}
.general-energy-box .energies h3{
    letter-spacing: 1px;
}
.general-energy-box .energies{
    padding: 40px;
}

footer{
    background: #F47C00;
    color:#ffffff;
    padding: 2% 0;
    text-align: center;
    border-top: 6px solid #003F77;
}
footer p{
    font-size: 20px;
    letter-spacing: 1px;
}
footer img{
    width: 40px;
    margin: 8px 0;
}
footer .fuentes p{
  font-size: 12px;
  text-align: left;
  margin-bottom: 0;
  font-weight: 100;
  }
footer .fuentes {
    padding: 40px;
    padding-bottom: 0;
  }
.spain-map-container {
    text-align: center;
}

.span-map-item {
    display: inline-block;
}

.state,
.state * {
    transition: all 0.8s ease;
    cursor: pointer;
}

.state.active * {
    fill: #ff8200 !important;
}

.state:hover * {
    fill: #ff8200 !important;
}

.state.active:hover * {
    fill: #BF6100 !important;
}

.box-comunidad {
    display: none;
}

.box-comunidad.active {
    display: block;
}

/* modal */

.state-modal {
  z-index: 1;
}

.state-modal-contaniner{
  text-align: center;
}

.state-modal .state-modal-imgs span {
    background-color: #003f77;
    padding: 1px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: inline-block;
    margin: 10px;
}

.state-modal .state-modal-imgs {
    white-space: nowrap;
    text-align: center;
}
.state-modal .state-modal-imgs img {
   width: 70%;
   margin: 15%;
}

.state-modal .state-modal-imgs span:after {
   content: attr(data-text);
   display: none;
   font-size: 10px;
   position: relative;
}

.state-modal {
    position: absolute;
    background-color: white;
    min-width: 260px;
    padding: 35px 20px 20px 20px;
    transition: top 0.3s ease, left 0.3s ease;
    -webkit-box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
    -moz-box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
    box-shadow: 0px 0px 40px 0px rgba(0,0,0,0.3);
}
.state-modal-title{
  cursor: pointer;
  text-align: center;
  font-size: 20px;
  color: #003f77;
}
.state-modal-title:hover,
.box-comunidad .img-center a:hover{
  text-decoration: none;
}
.state-modal .state-modal-buttons {
   text-align: center;
   margin-top: 12px;
}

.state-modal-close {
  transition: all 0.3s ease;
  position: absolute;
  right: 10px;
  top: 10px;
}
.state-modal-close:hover {
    -ms-transform: rotate(90deg); /* IE 9 */
    -webkit-transform: rotate(90deg); /* Safari */
    transform: rotate(90deg);
  }
.state-modal-close img{
    width: 20px;
  }

.state-modal-corner {
  content: "";
  display: block;
  position: absolute;
  width: 20px;
  height: 20px;
  transform: rotate(45deg);
  top: -10px;
  background-color: white;
  border: red;
}
.state-modal:before {
    
}

/* fin modal */
@media (max-width: 1200px){
    .spain-map-container .span-map-item svg{
    width: 90%;
  }

}
@media (max-width: 991px){
  .energy-btn {
    max-width: 100%;
    margin: 0;
  }
  .general-energy-box .energies {
    padding: 30px;
  }
  .energy-btn a{
    font-size: 12px;
  }
  .energy-type-btn {
    width: 50%;
    float: left;
  }
  .energy-type-btn.btn-foto,
  .energy-type-btn.btn-solar{
    margin-top: 40px;
  }
  .state-modal .state-modal-imgs span {
    width: 40px;
    height: 40px;
    margin: 5px;
  }
    .box-comunidad .energy-dates img {
    width: 12%;
  }
}
@media (max-width: 768px){
  .cabecera p{
    font-size: 20px;
  }
  .spain-map-container .span-map-item svg{
    height: 90%;
  }
  .energy-btn {
    padding: 6% 0;
  }
  .state-modal {
    padding: 30px 10px 10px 10px;
  }
  .state-modal-title{
    font-size: 18px;
  }
  .img-center img{
    width: 40%;
  }
  .general-energy-box .energies {
    padding: 20px 30px;
  }
  .cabecera .logo-head {
    width: 60%;
  }
  footer p{
    font-size: 14px;
  }
}
 @media(max-width: 480px){
  .spain-map-container .span-map-item svg{
    width: 100%;
    height: 100%;
  }
  .box-comunidad .energy-dates img {
    width: 18%;
  }
  .general-energy-box{
    font-size: 14px;
    background-position: left;
  }
  .general-energy-box .energies {
      padding: 15px 15px;
  }
  .img-center img {
    width: 70%;
  }
  .state-modal{
    min-width: 225px;
  }
  .energy-btn a, .state-modal button{
    padding: 6px 6px;
  }
  .energy-type-btn.btn-foto, .energy-type-btn.btn-solar {
    margin-top: 20px;
  }
  .energy-btn a {
    font-size: 10px;
  }
  footer p{
    font-size: 12px;
  }
  footer h2{
    font-size: 20px;
  }
  footer .fuentes {
    padding: 20px;
    word-break: break-all;
  }
}
