* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'open sans';
}

.contenedor {
    padding: 30px 0;
    width: 90%;
    max-width: 1200px;
    margin: auto;
    overflow: hidden;
    
}

.titulo {
    color: black;
    font-size: 25px;
    text-align: center;
    margin-bottom: 30px;
}

/* Header */

header {
    width: 100%;
    height: 120px;
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

nav{
    width: 100%;
}

.venta_de_terrenos_en_queretaro{
    height: 120px;
    
}

.contenedor-nav{
    display: flex;
    margin: auto;
    height: 120px;
    padding: 0 0 0 20px;
    width: 95%;
    justify-content: space-between;
    align-items: center;
    max-width:1000px;
    overflow: hidden;
}

  .terrenos_en_queretaro img{
       height:80px;
       box-shadow: 0 0 10px 0 rgba(0,0,0,.2);
       border-radius: 20px;
       
    }

header .textos-header{
    display: flex;
    height: 400px;
    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: 400;
    color:#fff;
}



/* About us */

main .sobre-nosotros{
    padding: 30px 0 10px 0;
}

.metros{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 0 20px 0;
}

.sobre-nosotros p{
    padding: 0 0 20px 0;
    text-align: justify;
    
}


.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 40%;
    background-color: blue;
}

.sobre-nosotros .contenido-textos{
    width: 75%;
    
}

.contenido-textos h3{
    margin-bottom: 15px;
    font-size: 20px;
}


.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

.contenido-textos li{
    padding: 0px 0px 10px 15px;
    text-align: justify;
}

.sobre-nosotros h6{
    padding: 20px;
    font-size: 18px;
    text-align: justify;
}


/* Galeria */


.portafolio{
    background: #f2f2f2;
}

.galeria-port{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
}

.imagen-port{
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(273,91%,27%, 0.7);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #fff;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}


/*  Our team */

.about-services{
    background: #f2f2f2;
    
}

.about-services2{
    padding-bottom: 30px;
}
 
.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.precio{
    display:flex;
    margin: 10px 20px 10px 20px;
    justify-content: space-between;
    align-items: center;
}


.servicio-ind{
    width: 10%;
    text-align: center;
    overflow: hidden;
    margin: 0 0 5px 0 ;
}

.servicio-ind img{
    width: 90%;
    height: 100px;
    object-fit: cover;
    transition: transform 0.3s;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}

.servicio-ind a:hover img{
    transform: rotate(0deg) scale(1.1);
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, 0.1);
}

.light-box2{
    position: fixed;
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.1);
    transition: transform 0.3s step-end;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    transform: scale(0);
}

.light-box2 img{
    max-height: 85vh;
    border-radius: 20px;
    box-shadow: 0 6px 6px 0 rgba(0,0,0,0.5);
}

.light-box2:target{
    transform: scale(1);
}

.close2{
    display: block;
    position: absolute;
    top: 20px;
    margin: auto;
    background: red;
    color: #fff;
    text-decoration: none;
    text-align: center;
    line-height: 30px;
    border-radius: 15px;
    padding: 2px 10px;
}

.next2{
    display: block;
    position: absolute;
    top: 20px;
    left: 50px;    
    background-color: seagreen;
    color: #fff;    
    text-decoration: none;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 25px;
    border-radius: 15px;
}

.next22{
    display: block;
    position: absolute;
    top: 20px;
    right: 50px;
    background-color: seagreen;
    color: #fff;    
    text-decoration: none;
    height: 40px;
    width: 40px;
    text-align: center;
    line-height: 40px;
    font-size: 25px;
    border-radius: 15px;
}



.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind h4{
    margin: 10px 10px 10px 20px;
    color: seagreen;
    text-align: left;
    
}

.servicio-ind h5{
    font-size: 18px;    
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
    margin: 0px 20px;
}



/* Clients */

.clientes{
    background: #414141;
}

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #a2a1eb1e;
    display: flex;
    width: 49%;
    height: 250px;
    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;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.contenido-texto-card li{
    font-weight: 300;
    padding-top: 15px;
    font-size: 17px;
    text-decoration-style: none;
}


/* footer */

footer{
    background: #414141;
    padding: 10px 0 30px 0;
    margin: auto;
    overflow: hidden;
}


.venta_de_terrenos_en_qro a{
    color: #414141;
    text-decoration: none;
}


.contenedor-footer{
    display: flex;
    width: 90%;
    justify-content: space-evenly;
    margin: auto;
    padding-bottom: 40px;
    border-bottom: 1px solid #ccc;
}

.content-foo{
    text-align: center;
}

.content-foo h4{
    color: #fff;
    border-bottom: 3px solid #f5bb3d;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
    font-size: 22px;
}

.titulo-final{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 100%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }


    .servicio-ind{
        width: 20%;
        text-align: center;
    }

  

    .servicio-ind img{
        width: 90%;
        height: 60%;
    }
    /* 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;
        font-size: 18px;
        border-bottom: 1px solid #f2f2f2;
        padding-bottom: 20px;
    }

    .titulo-final{
        font-size: 20px;
    }
}

@media screen and (max-width:650px){

    header {
         height: 180px;        
    }


    .metros{
   flex-direction: column;
    }

    .cuadrados{
        font-size: 20px;
    }

    .venta_de_terrenos_en_queretaro{
        height: 180px;
        
    }


.contenedor-nav{
    flex-direction: column;
    justify-content: center;
    align-items: center;
    height: 180px;
    
    
}
.contenedor-nav h2{
    padding: 10px 0 0 0 ;
}


.light-box2 img{
    
    max-width: 85vw;
    
    border-radius: 20px;
    box-shadow: 0 6px 6px 0 rgba(0,0,0,0.5);
}



}


@media screen and (max-width:500px){
    nav{
        text-align: center;
        
    }

    .terrenos_en_queretaro img{
        height:75px;}


        .cuadrados{
            font-size: 18px;
        }


    nav > a{
        margin-right: 5px;
    }

    .textos-header h1{
        font-size: 35px;
    }

    .textos-header h2{
        font-size: 25px;
    }

    /* 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: 300px;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .cards .card img{
        width: 90px;
        height: 90px;
    }

    .cards .card > .contenido-texto-card{
        width: 83%;
        
    }


    
}