/*
COLOR
blue: #2a5771;
gray: #e9eef1;

*/
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-light-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-light-webfont.woff') format('woff');
    font-weight: 300;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-regular-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-regular-webfont.woff') format('woff');
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-bold-webfont.woff2') format('woff2'),
         url('../fonts/montserrat-bold-webfont.woff') format('woff');
    font-weight: 700;
    font-style: normal;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4em;
  font-weight: 300;
  font-size: 18px;
}

body.noScroll {
  overflow: hidden;
}

a, a:visited {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}


h1, h2, h3 {
  color: #2a5771;
  text-align: center;
  font-weight: 300;
}

h2 {
  font-size: 40px;
  padding: 0 0 30px 0;
  margin: 0 0 40px;
  position: relative;
}

h2::after {
  content: '';
  display: block;
  position: absolute;
  width: 80px;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a5771;
}

h3 {
  font-size: 25px;
  padding: 0 0 20px 0;
  margin: 16px 0 40px;
  position: relative;
}

h3::after {
  content: '';
  display: block;
  position: absolute;
  width: 80px;
  height: 2px;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #2a5771;
}

h4 {
  font-size: 18px;
  color: #2a5771;
  font-weight: bold;
  margin-top: 40px;
}

h5 {
  font-size: 20px;
  color: #2a5771;
  text-align: left;
  font-weight: 300;
  margin-top: 0px;
}

p {
  margin: 10px 0;
  text-align: justify;
}

strong {
  font-weight: 400;
}

.wrapper {
  padding: 60px 22px;
  box-sizing: border-box;
  width: 1200px;
  max-width: 100%;
  margin: 0 auto;
}

.owl-prev, .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  display: block;
  padding: 12px;
  opacity: 1;
}
.owl-prev {
  left: 0px;
}
.owl-next {
  right: 0px;
}
.owl-next img {
  transform: rotateY(180deg);
}

/**/
header {
  position: fixed;
  z-index: 3;
  background-color: #2a5771;
  width: 100%;
  height: 90px;
  box-shadow: 0 2px 3px rgba(0,0,0, .2);
}

header .wrapper {
  display: flex;
  flex-flow: row wrap;
  padding: 0;
}

.logo-container, #nav-toggle {
  flex: 1 1;
}

.logo-container {
  padding: 22px 28px 8px;
  box-sizing: border-box;
}
.logo-container img{
  max-width: 140px;
}

#nav-toggle {
  background-color: transparent;
  border: none;
  outline: none;
  font-size: 22px;
  color: #fff;
  text-align: right;
  padding-right: 40px;
}

nav {
  color: #fff;
  background-color: #2a5771;
  flex: 100%;
  border-top: 1px solid transparent;
  max-height: 0;
  overflow: hidden;
  transition: all 300ms ease;
}

nav.shown {
  max-height: 500px;
  border-top: 1px solid #fff;
}

nav a {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 400;
  display: block;
  text-align: center;
  padding: 16px 0;
  border-bottom: solid 1px #52768b;
  text-decoration: none;
}

nav a:hover {
  text-decoration: none;
}

#front {
  padding-top: 90px;
}

#proyectos {
  background-color: #e9eef1;
}

.tipo-proyectos {
  margin: 50px 0;
}
.tipo-proyectos h5 {
  font-weight: 400;
  font-size: 18px;
  text-align: center;
}
.tipo-proyectos p {
  margin: 20px 0 0 0;
  font-size: 16px;
}
#clientes .wrapper {
  padding-left: 40px;
  padding-right: 40px;
}
#slider-clientes {
  margin: 40px 0;
}
#slider-clientes .item img{
     width: auto; 
     margin: 0 auto;  
    /* max-width: 165px; */
}
#slider-clientes .owl-prev {
  left: -32px;
}
#slider-clientes .owl-next {
  right: -32px;
}
.owl-stage {
  display: flex;
  flex-flow: row nowrap;
  align-items: center;
}
#contacto {
  background-color: #e9eef1;
}
#contacto h2{
   margin-bottom: 80px; 
}

#form-trigger {
  text-align: center !important;
}
#form-trigger a.hidden{
  visibility: hidden;
  pointer-events: none;
}
#open-form {
  display: block;
}
form {
  box-sizing: border-box;
  transition: all 300ms ease;
}
form.hidden {
  padding: 0;
  max-height: 0;
  overflow: hidden;
}
form p:first-of-type {
  margin-bottom: 28px;
}
input::placeholder, textarea::placeholder {
  color: #6a6a6a;
}

input:not(#check-legal), textarea {
  width: 100%;
  padding: 12px;
  box-sizing: border-box;
  margin-bottom: 20px;
  border-radius: 3px;
  border: 0;
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 300;
  border: solid 1px #d2d2d2;
}

#check-legal {
  margin-top: 20px;
}
#form {
  position: relative;
}
#close-form {
  position: absolute;
  right: -10px;
  top: 40px;
  padding: 20px;
  cursor: pointer;
}
#close-form:hover {
  color: red;
}
#form .form-feedback {
  margin-top: 40px;
  padding: 12px;
  border-radius: 3px;
  display: none;
}
#form .form-feedback.success {
  border: solid 1px #46a346;
  background-color: #93C993;
}
#form .form-feedback.error {
  border: solid 1px #FF4C4C;
  background-color: #FF8A8A;
}

#contacto a:hover {
  color: #2a5771;
  text-decoration: none;
}

textarea {
  height: 120px;
}

.submit {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: 18px;
  font-weight: 300;
  margin: 20px 0 0 0;
  padding: 14px 28px;
  border-radius: 3px;
  border: 0;
  background-color: #2a5771;
  color: white;
  cursor: pointer;
}
.submit:active {
  box-shadow: inset 3px 3px 5px #2a5771;
  background-color: #52768b;
}
#info-icons-block img{
  display: block;
  margin: 0 auto;
}

#info-icons-block p{
  text-align: center;
}

#info-icons-block h3{
  font-weight: 700;
  color: #000;
  font-size: 18px;
}

.info-block {
  padding: 20px 0;
}

#map {
  height: 400px;
}

footer {
  color: #fff;
  background-color: #2a5771;
  text-align: center;
  font-size: 14px;
}

footer .wrapper {
  padding: 40px 20px;
}

#modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  background-color: #fff;
  width: 1080px;
  max-width: 90%;
  height: 600px;
  max-height: 75%;
  overflow-y: scroll;
  z-index: 5;
  border-radius: 3px;
  transition: all 450ms ease;
}
#modal .wrapper {
  padding: 20px;
}

#modal .wrapper p {
  text-align: justify;
}

#modal-overlay {
  content: '';
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background-color: rgba(0,0,0, .7);
  z-index: 4;
  transition: all 450ms ease;
}

#modal.hidden {
  transform: translate(-50%, -50%) scale(.9);
}

#modal.hidden, #modal-overlay.hidden {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.bloc-legal {
  max-height: auto;
  overflow: auto;
}

.bloc-legal.hidden {
  max-height: 0;
  overflow: hidden;
  margin: 0;
}

.bloc-legal h3 {
  text-transform: uppercase;
  overflow: auto;
}

.taula {
	border: 1px solid #2a5771;
}

th, td {
  padding: 15px;
  text-align: left;
	border: 1px solid #2a5771;
}

.text-danger {
  color: red;
}

/* Media Queries */

@media (min-width: 580px) {
  p {
     text-align: center;
  }
  #wrapper-sliders-proyectos p{
    text-align: justify;
  }
  form p {
    text-align: left;
  }
  .tipo-proyectos h3 {
    text-align: center;
  }
  .owl-carousel:not(#slider-clientes) .owl-item img {
    max-height: 500px;
    width: auto !important;
    margin: 0 auto;
  }
}

@media (min-width: 800px) {
  .wrapper {
    padding: 100px 22px;
  }

  #nav-toggle {
    display: none;
  }
  header .wrapper {
    flex-flow: row nowrap;
  }
  .logo-container {
    padding: 16px 28px 8px;
    flex: 1;
    box-sizing: border-box;
  }
  .logo-container img{
    max-width: initial;
  }
  nav {
    flex: 3;
    border-top: 0;
    max-height: 200px;
    overflow: hidden;
    transition: none;

    display: flex;
    align-content: stretch;
    justify-content: flex-end;
    padding: 0 20px 0 0;
  }

  nav.shown {
    max-height: 200px;
    border-top: 0;
  }

  nav a {
    display: inline-block;
    text-align: center;
    padding: 0 12px;
    border-bottom: 0;
    line-height: 90px;
    position: relative;
  }
  nav a:hover::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 26px;
    width: 50px;
    height: 2px;
    background-color: #fff;
    left: 50%;
    transform: translateX(-50%);
  }
  #contacto .wrapper {
    padding: 100px 0 40px;
  }

  form {
    max-width: 90%;
    margin: 0 auto;
  }
  .input-50 {
    display: flex;
    justify-content: space-between;
  }

  .input-50 input {
    width: 48.5% !important;
  }

  input:not(#check-legal), textarea {
    padding: 18px;
    margin-bottom: 30px;
  }

  #info-icons-block {
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
  }

  .info-block {
    padding: 0 20px 0 20px;
    flex: 33%;
    width: 33%;
  }
  
  #modal {
    max-width: 80%;
  }

  .bloc-legal {
    /*width: 600px;
    margin: 20px auto;*/
	margin: 20px 40px;
    max-width: 100%;
  }

}

@media (min-width: 1000px) {
  .owl-carousel:not(#slider-clientes) .owl-item img {
    max-height: 100%;
    width: 100% !important;
  }
  #wrapper-sliders-proyectos {
    display: flex;
    flex-flow: row nowrap;
  }
  .tipo-proyectos {
    width: 33%;
    padding: 0px 20px 0 20px;
    box-sizing: border-box;
    margin: 40px 0 0 0;
  }
  .tipo-proyectos h3 {
    text-align: left;
  }
}
/*formacion*/
.wrapper-formacion {
  width: 800px;
  max-width: 100%;
}
#activos .wrapper-formacion h2 {
  margin: 0 0 40px;
  font-weight: 400;
}
.wrapper-formacion h3 {
  font-weight: 400;
  font-size: 28px;
  margin: 16px 0 10px;
}
.wrapper-formacion h3::after {
  display: none;
}
.formacion-file img {
  width: 100%;
}
.formacion-info {
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  margin-bottom: 20px;
  font-weight: 400;
  color: #2a5771;
  font-size: 15px;
}
.formacion-info p {
  margin: 0;
}
.formacion-info p strong {
  font-weight: 400;
}
#activos .wrapper-formacion, #proximos .wrapper-formacion {
  padding-bottom: 0;
} 
#proximos .wrapper-formacion, #finalizados .wrapper-formacion {
  padding-top: 60px;
}