* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  scroll-behavior: smooth;
}
body {
  font-family: "open sans";
}

.container {
  padding: 60px 0;
  width: 90%;
  max-width: 1000px;
  margin: auto;
  overflow: hidden;
}



.title {
  color: blue;
  font-size: 30px;
  text-align: center;
  margin-bottom: 60px;
}

/* para el header */
header {
  width: 100%;
  height: 600px;
  background: #c31432; /* fallback for old browsers */
  background: -webkit-linear-gradient(
      to right,
      hsla(275, 67%, 13%, 0.411),
      #c31432
    ),
    url(../img/portada.png); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(to right, hsla(275, 67%, 13%, 0.411), #c31432),
    url(../img/portada.png); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
  background-size: cover;
  background-attachment: fixed; /*arregla la imagen de fondo centrearlo*/
  position: relative;
}

header .txt-header{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.txt-header h1{
    font-size: 50px;
    color: #fff;
}

.txt-header h2{
    font-size: 30px;
    color: #fff;
    font-weight: 300;
}

/* Para el navegador de menu*/
nav{
    text-align: right;
    padding: 30px 50px 0 0;
}
nav > a{
    color: white;
    font-weight: 300;
    text-decoration: none; /*Quita el subrayado de abajo*/
    margin-right: 10px;
}

nav > a:hover{
    text-decoration: underline; 
}
.wave{
    position: absolute;
    bottom: -10px;
    width: 100%;
}




/*About us*/
.container_about_us{
    display:flex;
    justify-content: space-evenly; /*repartir equitativamente*/
}
.container_about_us .image_about_us{
    width: 48%;
} 
.container_about_us .txt_about_us{
    width: 48%;
}

.container_about_us .txt_about_us h3{
    margin-bottom: 15px;
}
.container_about_us .txt_about_us h3 span{
    background: #c31432;
    color:#fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);/*para una sombra*/   
}

.container_about_us .txt_about_us p{
    padding: 0 0 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/*PORTFOLIO*/
.portfolio{
    background: #f2f2f2
}
.galery-port{
    display:flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}
.img-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden; /*lo que sobresale ya no lo muestres*/
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}
.img-port > img{
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

.galery-hover{
    position: absolute; /* como hacerlo flotante*/
    width: 100%;
    height: 100%;
    top: 0;
    /* transform: scale(0); */
    background: hsla(275, 70%, 15%, 0.432);
    transition: transform .5s ;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.galery-hover > img{ /*cuando se usa > es para afectar solo a ese elemento*/
    width: 50px;
}
.galery-hover p{
    color: #fff;
    text-align: center;
}

.img-port:hover .galery-hover{
    transform: scale(0);
}

/*Clientes*/
.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #4d0686;
    display: flex;
    width: 46%;
    height: 200px;
    align-items: center;
    justify-content: space-evenly;
    border-radius: 5px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.6);
}

.cards .card img{
    width: 100px;
    height: 100px;
    margin: 0 10px 0 10px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .card-content-txt{
    width: 60%;
    color: #fff;
}

.cards .card > .card-content-txt p{
    font-weight: 300;
    padding-top: 5px;
}

.cards .card > .card-content-txt a{
    font-weight: 300;
    padding-top: 5px;
    color: rgb(104, 238, 238);
}

/*Nuestro equipo*/
.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}


.container-services{
    display:flex;
    justify-content: space-between;
    align-items: center;
}

.service{
    width: 28%;
    text-align: center;
}

.service img{
    width: 90%;
}

.service h3{
    margin: 10px 0;
}

.service p{
    font-weight: 300;
    text-align: justify;
}



/* footer */

footer{
    background: #414141;
    padding: 60px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.container-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 #af20d3;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.final-title{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}





@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .container_about_us{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .abaout_us .txt_about_us{
        width: 90%;
    }

    .image_about_us{
        width: 90%;
    }

    /* Galeria */

    .img-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* servicios */

    .container-services{
        justify-content: center;
        flex-direction: column;
    }

    .service{
        width: 100%;
        text-align: center;
    }

    .service:nth-child(1), .service:nth-child(2){
        margin-bottom: 60px;
    }

    .service img{
        width: 90%;
    }
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 30px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .txt-header h1{
        font-size: 35px;
    }

    .txt-header h2{
        font-size: 20px;
    }

    /* ABOUT US */

    .image_about_us{
        margin-bottom: 60px;
        width: 99%;
    }

    .about_us .txt_about_us{
        width: 95%;
    }

    /* Galeria */

    .img-port{
        width: 95%;
    }

    /* Clients */

    .cards .card{
        height: 450px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }
    .cards .cards .card-content-txt p{
        padding-left: 5px;

    }


    /* Footer */

    .container-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;
    }

    .final-title{
        font-size: 20px;
    }
}