@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap');

:root{
  --bg-grey: #F6F9FC;
  --color-hover: #fe696a;
  --link-hover: #A598A5;
}

*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: 'open sans';
  font-size: 14px;
}

a{
  text-decoration: none;
  color: black;
  font-size: 16px;
}

.hover:hover{
  color: var(--color-hover);
  transition: 500ms all;
  cursor: pointer;
}

header {
  width: 100%;
  height: 600px;
  background: #3a3839;
  /* fallback for old browsers */
  background: -webkit-linear-gradient(to right, hsla(330, 1%, 28%, 0.459), hsla(320, 2%, 24%, 0.664)), url(img/portada.jpg);
  /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, hsla(340, 4%, 15%, 0.459), hsla(315, 7%, 12%, 0.664)), url(img/portada.jpg);
  /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-attachment: fixed;
  position: relative;
    
}

nav{
  text-align: right;
  padding: 30px 50px 0 0;
}

nav > a{
  color:#fff;
  font-weight: 300;
  text-decoration: none;
  margin-right: 10px;
}

nav > a:hover{
  text-decoration: underline;
}

header .textos-header{
  display: flex;
  height: 430px;
  width: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.textos-header h1{
  font-size: 50px;
  color:#fff;
}

.textos-header h2{
  font-size: 30px;
  font-weight: 300;
  color:#fff;
    
}

.wave{
  position: absolute;
  bottom: 0;
  width: 100%;
}
header .links > a:first-child, a > i{
  padding-right: 4px;
}

header .links > a:nth-child(2){
  color: var(--link-hover);
  pointer-events: none;
}

input{
  outline: none;
  border: none;
}

.container{
  padding: 20px 9%;
}

header > div{
  font-size: 13px;
}

/* footer */

footer{
  background: #414141;
  padding: 60px 0 30px 0;
  margin: auto;
  overflow: hidden;
}

.contenedor-footer{
    
  display: flex;
  width: 90%;
  justify-content: space-evenly;
  margin: auto;
  padding-bottom: 50px;                                                                                                                                       
  border-bottom: 1px solid #ccc;
}

.content-foo{
  text-align: center;
}

.content-foo h4{
  color: #fff;
  border-bottom: 3px solid #5620d3;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.content-foo p{
  color: #ccc;
}

.titulo-final{
  text-align: center;
  font-size: 24px;
  margin: 20px 0 0 0;
  color: #9e9797;
}

.grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.d-none{
  display: none;
}

.p-relative{
  position: relative;
}

.grid .item-grid .p-relative{
  height: 85%;
}

.grid .item-grid .p-relative > div:first-child{
  height: 100%;
}

.grid .item-grid .p-relative > div > img{
  width: 100%;
  height: 100%;
  display: block;
}

.grid .p-relative > div:first-child::before{
  position: absolute;
  content: '';
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  cursor: pointer;
  transition: background-color 1s ease-in-out;
  z-index: 1;
}

.grid .p-relative > div:first-child:hover::before{
  background-color: rgba(0,0,0,0.4);
}

.grid .p-relative > div:first-child:hover + .content-icon,.content-icon:hover{
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 7%;
  right: 5%;
  font-size: 17px;
  width: 35px;
  height: 35px;
  border-radius: 50%;
  z-index: 100;
}

.content-icon i{
  display: block;
}

.content-icon:hover{
  color: var(--color-hover);
  transition: color 0.7s ease-in;
  cursor: pointer;
}

.grid .item-grid > a{
  display: block;
  padding-top: 15px;
  font-weight: 700;
  padding-left: 20px;
  height: 15%;
}



@media only screen and (max-width: 1286px){
  .container, header{
    padding: 20px 2% 90px;
  }
}

@media only screen and (max-width: 769px){
  .grid{
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
  }

  nav > div:nth-child(3){
    display: none;
  }
}

@media only screen and (max-width: 536px){
  .grid{
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
  }
}

/*redes*/
.redes{
  height: 200px;
}
.redes h2{
  font-family: gabriola;
  text-align: center;
  font-weight: bold;

  font-size: 30px;
  font-weight: 300;
  color:#fff;
  
}
.sociales{
  text-align: center;
  padding-top: 10px;
  padding-bottom: 10px;
}

.sociales li{
  display: inline-block;   
}

.sociales a{
  padding: 10px;
}

@media screen and (max-width:500px){
  nav{
    text-align: center;
    padding: 30px 0 0 0;
  }

  nav > a{
    margin-right: 5px;
  }

  .textos-header h1{
    font-size: 35px;
  }

  .textos-header h2{
    font-size: 20px;
  }

  /* ABOUT US */

  .imagen-about-us{
    margin-bottom: 60px;
    width: 99%;
  }

  .sobre-nosotros .contenido-textos{
    width: 95%;
  }

  /* Galeria */

  .imagen-port{
    width: 95%;
  }

  /* Clients */

  .cards .card{
    height: 450px;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .cards .card img{
    width: 90px;
    height: 90px;
  }

  /* Footer */

  .contenedor-footer{
    flex-direction: column;
    border: none;
  }

  .content-foo{
    margin-bottom: 20px;
    text-align: center;
  }

  .content-foo h4{
    border: none;
  }

  .content-foo p{
    color: #ccc;
    border-bottom: 1px solid #f2f2f2;
    padding-bottom: 20px;
  }

  .titulo-final{
    font-size: 20px;
  }
}

h3{
    text-align: center;
    font-size: 30px;
    margin-bottom:15px ;
    padding-bottom: 1.5;
}