@font-face {
  font-family: "Avenir";
  src: url("fonts/AvenirLTStd Medium.otf") format("opentype");
}
@font-face {
  font-family: "AvenirBB";
  src: url("fonts/AvenirLTStd Heavy.otf") format("opentype");
}
.plantilla-texto p {
  font-family: "Avenir", Source Sans Pro;
}
.ver-mapa {
  background: gray;
  border-radius: 5px;
  text-align: center;
  display: block;
  color: white !important;
  text-decoration: none;
  cursor: pointer;
  bottom: 10px;
  width: 50%;
  left: 25%;
  position: absolute;
  line-height: 25px;
}
clicktarjeta {
  cursor: pointer;
}
gris {
  color: gray !important;
}
/* //////////////////////////////////////// */
/* //////////// CONFIG + 768PX //////////// */
/* //////////////////////////////////////// */
@media(min-width: 768px) {
    .titulo-agenda {
      text-align: center;
      font-size: 47px !important;
      font-family: "AvenirBB", Source Sans Pro !important;
      margin-top: 20px !important;
    }
    .img-categoria {
      display: flex;
      margin: auto;
      margin-bottom: 30px;
      width: 100%;
    }
    /* <##### { GALLERY WRAP } #####> */
    .gallery-wrap {
      display: flex;
      flex-direction: row;
      width: 100%;
      height: 280px;
    }
    .item {
      flex: 1;
      height: 100%;
      background-position: center;
      background-repeat: no-repeat;
      background-size: 100px;
      transition: flex 0.4s ease;
      position: relative;
    }
    .item:hover{
      flex: 7;
    }
    .item > img {
      width: 100px;
      margin: auto;
      margin-top: -40px;
      display: flex;
      height: 100%;
      transition: width 0.4s ease, transform 0.4s ease-out;
    }
    .item:hover > img {
      width: 160px;
      transform: rotate(360deg);
    }
    .item:hover > p {
      font-size: 23px;
    }
    .item-1 { 
      background-color: #CC5599;
    }
    .item-2 { 
      background-color: #69488E;
    }
    .item-2 > p { 
      bottom: 38px !important;
    }
    .item-3 { 
      background-color: #FF595A;
    }
    .item-4 { 
      background-color: #00B189;
    }
    .item-4 > p {
      bottom: 38px !important;
    }
    .item-5 { 
      background-color: #64a53f;
    }
    .item-6 { 
      background-color: #495178;
    }
    .item-6 > p { 
      bottom: 10px !important;
    }
    .item-7 { 
      background-color: #32067a;
    }
    .item-7 > p {
      bottom: 60px !important;
    }
    .item-7 > img {
      width: 70px;
      height: 83px;
      margin-top: 53px;
    }

    .item > p {
      position: absolute;
      bottom: 50px;
      width: 99%;
      padding-left: 2px;
      text-align: center;
      font-size: 15px; /* original en 17px queda bien */
      color: white;
      transition: font-size 0.4s ease;
    }

    .item-5 > p {
      position: absolute;
      bottom: 35px;
      padding: 3px;
    }

    /* -- BOTONES SUBMENU -- */
    .submenu {
      margin-bottom: 10px;
    }
    .submenu > div {
      text-align: center;
    }
    .submenu > div > a {
      display: block;
      padding: 20px;
      background-color: #808080;
      border-radius: 10px;
      margin-bottom: 15px;
      min-height: 176px;
      line-height: 15px;
    }
    .submenu > div > a > p {
      font-size: 15px;
      color: white !important;
      margin-bottom: 0;
      font-family: 'Open Sans', sans-serif;
      font-weight: 400;
    }
    .submenu > div > a > img {
      width: 60%;
      margin-bottom: 10px;
    }

}
/* //////////////////////////////////////// */
/* //////////// CONFIG - 767PX //////////// */
/* //////////////////////////////////////// */
@media(max-width: 767px) {
  .titulo-agenda {
    text-align: center;
    font-size: 33px !important;
    font-family: "AvenirBB", Source Sans Pro !important;
    margin-top: 20px !important;
  }
  .img-categoria {
    display: flex;
    margin: auto;
    margin-bottom: 30px;
    width: 90%;
  }
  /* <##### { GALLERY WRAP } #####> */
  .gallery-wrap {
    margin-top: 20px;
  }
  .item {
    position: relative;
    display: block;
    height: 60px;
  }
  .item > img {
    width: 55px;
    display: inline-block;
    margin-top: 4px;
    margin-left: 9px;
  }
  .item > p {
    display: inline-block;
    color: white;
    margin-bottom: 0;
    font-size: 19px;
    position: absolute;
    bottom: 13px;
    left: 75px;
  }
  .item-1 { 
    background-color: #CC5599;
  }
  .item-1 > img {
    width: 55px;
  }
  .item-2 { 
    background-color: #69488E;
  }
  
  .item-3 { 
    background-color: #FF595A;
  }
  .item-4 { 
    background-color: #00B189;
  }
  .item-5 { 
    background-color: #64a53f;
    line-height: 35px;
  }
  .item-5 > p {
    bottom: 10px;
  }
  .item-6 { 
    background-color: #495178;
  }
  .item-6 > img {
    margin-top: 5px;
    margin-left: 8px;
  }
  
  .item-7 { 
    background-color: #32067a; 
  }
  .item-7 > p {
    bottom: 17px;
  }
  .item-7 > img {
    height: 51px;
  }
  /* -- BOTONES SUBMENU -- */
  .submenu {
    margin-bottom: 10px;
  }
  .submenu > div {
    text-align: center;
  }
  .submenu > div > a {
    display: block;
    padding: 20px;
    background-color: #808080;
    border-radius: 10px;
    margin-bottom: 15px;
    min-height: 151px;
    line-height: 15px;
  }
  .submenu > div > a > p {
    font-size: 15px;
    color: white !important;
    margin-bottom: 0;
    font-family: 'Open Sans', sans-serif;
    font-weight: 400;
  }
  .submenu > div > a > img {
    width: 60%;
    margin-bottom: 5px;
  }
}


@media(max-width: 570px) {
  .submenu > div > a {
    min-height: 167px;
  }
}
@media(max-width: 552px) {
  .item-6 > p {
    line-height: 20px;
    padding-right: 5px;
    height: 34px;
  }
}
@media(max-width: 444px) {
  .item-2 > p {
    line-height: 20px;
    padding-right: 25px;
    height: 35px;
  }
}
@media(max-width: 450px) {
  .submenu > div > a > img {
    width: 100%;
  }
}


/* ################################# */
/* ############ EVENTOS ############ */
/* ################################# */

.activity {
  position: relative;
  width: 100%;
  display: inline-block;
  margin-bottom: 20px;
  min-height: 300px;
  padding-left: 10px;
}

.activity > p {
  margin-bottom: 0;
}

.activity > .act-category {
  font-size: 12px;
  margin-top: 10px;
}

.activity > .act-img {
  width: 200px;
  height: 200px;
  float: left;
  margin-left: 15px;
  margin-top: 15px;
  margin-bottom: 15px;
  margin-right: 60px;
}

.activity > .act-date {
  margin-top: 20px;
  color: black;
  font-size: 16px;
  margin-bottom: 10px;
}

.activity > .act-title {
  font-family: "AvenirBB";
  font-size: 35px;
  line-height: 1;
  margin-bottom: 10px;
}

.activity > .act-subtitle {
  font-family: "AvenirBB";
  font-size: 21px;
  line-height: 1;
  margin-bottom: 10px;
}

.activity > .act-place {
  font-size: 16px;
  line-height: 1;
  margin-bottom: 10px;
}

act-horarios-strong {
  font-family: "AvenirBB", Source Sans Pro;
}

.activity > .act-horarios {
  margin-top: -20px;
  line-height: 20px;
}

.activity.ESCUELAS.DEPORTIVAS {
  border: 4px solid #CC5599;
}
.activity.ESCUELAS.DEPORTIVAS > .act-title {
  color: #CC5599;
}
.activity.ESCUELAS.DEPORTIVAS > .ver-mapa {
  background: #CC5599;
}
.activity.QUILMES.MOVIMIENTO {
  border: 4px solid #69488E;
}
.activity.QUILMES.MOVIMIENTO > .act-title {
  color: #69488E;
}
.activity.QUILMES.MOVIMIENTO > .ver-mapa {
  background: #69488E;
}
.activity.PERSONAS.MAYORES {
  border: 4px solid #FF595A;
}
.activity.PERSONAS.MAYORES > .act-title {
  color: #FF595A;
}
.activity.PERSONAS.MAYORES > .ver-mapa {
  background: #FF595A;
}
.activity.DISCAPACIDAD {
  border: 4px solid #00B189;
}
.activity.DISCAPACIDAD > .act-title {
  color: #00B189;
}
.activity.DISCAPACIDAD > .ver-mapa {
  background: #00B189;
}
.activity.NATACIÓN {
  border: 4px solid #47ac0d;
}
.activity.NATACIÓN > .act-title {
  color: #47ac0d;
}
.activity.NATACIÓN > .ver-mapa {
  background: #47ac0d;
}
.activity.CIC {
  border: 4px solid #495178;
}
.activity.CIC > .act-title {
  color: #495178;
}
.activity.CIC > .ver-mapa {
  background: #495178;
}
.activity.DEPORTE.SALUD {
  border: 4px solid #32067a;
}
.activity.DEPORTE.SALUD > .act-title {
  color: #32067a;
}
.activity.DEPORTE.SALUD > .ver-mapa {
  background: #32067a;
}
.activity.RECREACIÓN {
  border: 4px solid #64a53f;
}
.activity.RECREACIÓN > .act-title {
  color: #64a53f;
}
.activity.RECREACIÓN > .ver-mapa {
  background: #64a53f;
}

@media(max-width: 767px) {
  .activity > .act-img {
    width: 100%;
    height: auto;
    float: none;
    margin-left: 0;
    margin-top: 0;
    margin-bottom: 0;
    margin-right: 0;
  }
  .activity > .act-category {
    margin-left: 10px;
    margin-right: 15px;
  }
  .activity > .act-date {
    margin-left: 10px;
    margin-right: 15px;
  }

  .activity > .act-title {
    margin-left: 10px;
    margin-right: 15px;
  }

  .activity > .act-subtitle {
    margin-left: 10px;
    margin-right: 15px;
  }

  .activity > .act-place {
    margin-left: 10px;
    margin-right: 15px;
  }
}






/* ############################################ */
/* ############ MODAL/POPUP BOX ############### */
/* ############################################ */

/* The Modal (background) */

/* The Close Button */
.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#contenido-seccion {
  background: #efefef;
}

@media(max-width: 768px) {
  .close {
    display: none;
  }
}





/** MODIFICACIONES A LAS TARJETAS CON COLUMNAS BOOTSTRAP **/
@media(max-width: 570px) {
  .col-xs-4 {
    padding-left: 5px  !important;
    padding-right: 5px !important;
  }
}
