* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.js-stop-transition * { transition:none !important; }

body {
    font-family: 'open sans';
}

.menufijo {
   width: 100%;
   height: auto;
   box-shadow: 2px 2px 5px #000;
   background-color: rgb(238, 238, 238);
   position: fixed;
   z-index: 3;
}

.menufijo2 {
    width: 100%;
    height: 40px;
}

.logo {
    position: absolute; 
    padding: 7px; 
    width: 100px; 
    margin-left: 10px;
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.contenedor2 {
    padding: 60px 0;
    width: 90%;
    max-width: 1500px;
    margin: auto;
    overflow: hidden;
}

.contenedor3 {
    padding: 60px 0;
    width: 90%;
    max-width: 2000px;
    margin: auto;
    overflow: hidden;
}

.texto {
    text-align: justify;
    width: 80%;
    max-width: 2000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #182346;
    font-size: 35px;
    text-align: center;
    margin-bottom: 60px;
}

.subtitulo {
    color: #1b2d68;
    font-size: 30px;
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
}

/* Header */

header {
    width: 100%;
    height: 600px;
    background: #265491;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(216, 95%, 50%, 0.329), hsla(219, 83%, 60%, 0.671)), url(../img/cris1.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(216, 95%, 50%, 0.329), hsla(219, 83%, 60%, 0.671)), url(../img/cris1.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: 14px 60px 10px 0;
    color: black;
}

nav > a{
    color:rgb(0, 0, 0);
    font-weight: 710;
    text-decoration: none;
    margin-right: 15px;

}

nav .current{
    color:#4891ff;
}

nav > a:hover{
    color:#4891ff;
}

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: 60px;
    color:#fff;
    font-family: 'Verdana';
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:#fff;
}

.wave{
    position: absolute;
    bottom: 0;
    width: 100%;
}

/* About us */

main .sobre-nosotros{
     padding: 30px 0 60px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.contenedor-nosotros{
    display: flex;
    justify-content: space-between;
    background-color: #f2f2f2;
    
}

.contenedor-nosotros2{
    display: flex;
    justify-content: space-between;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.sobre-nosotros .contenido-textos2{
    width: 48%;
    margin-top: 55px;
}

.contenido-textos h3{
    margin-bottom: 30px;
    margin-top: 30px;
}

.contenido-textos h2{
    margin-bottom: 20px;
    margin-top: 20px;
}

.contenido-textos h3 span{
    background: #061986;
    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);
    margin-right: 5px;
}

.contenido-textos2 h2{
    margin-bottom: 20px;
    margin-top: 20px;
    margin-left: 40px;
}

.contenido-textos p{
    padding: 0px 40px 20px 0px;
    font-weight: 300;
    text-align: justify;
}

.contenido-textos2 p{
    padding: 0px 0px 20px 40px;
    font-weight: 300;
    text-align: justify;
}
/* Galeria */

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    width: 80%;
    margin: auto;
    grid-gap: 10px;
    padding:  40px 0px;
    overflow: hidden;
}

.galeria img {
    width: 100%;
    vertical-align: top;
    height: 300px;
    object-fit: cover;
    transition: transform 0.5s;
}

.galeria > a {
    display: block;
    position: relative;
    overflow: hidden;
    box-shadow: 0 0 6px rgba(0, 0, 0, .5);
}

.galeria a:hover img{
    filter: blur(2px);
    transform: rotate(10deg) scale(1.3);
}

.light-box{
    position: fixed;
    top: 0;
    left: 0;
    background-color: rgb(0, 0, 0, .5);
    transition: transform .3s ease-in-out;
    width: 100%;
    height: 100vh;
    z-index: 1000;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0);
}

.light-box img{
    width: 75vw;
    max-height: 70vh;
}

.light-box:target{
    transform: scale(1);
}

.close{
    display: block;
    position: absolute;
    top: 40px;
    right: 40px;
    background-color: royalblue;
    color: black;
    text-align: none;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    border-radius: 50%;
    font-weight: bolder;
}

.next{
    display: block;
    background: royalblue;
    color: black;
    height: 30px;
    width: 30px;
    line-height: 30px;
    text-decoration: none;
    text-align: center;
}

.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-port2{
    width: 15%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: default;
}

.imagen-port3{
    width: 15%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: default;
}

.imagen-port > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-port2 > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.imagen-port3 > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    -webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	-webkit-transition: .2s ease-in-out;
	transition: .2s ease-in-out;
}

.imagen-port3 > img:hover{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}

.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(219, 83%, 60%, 0.671);
    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);
}

.hover08 img {
	-webkit-filter: grayscale(100%);
	filter: grayscale(100%);
	-webkit-transition: .3s ease-in-out;
	transition: .3s ease-in-out;
}
.hover08 img:hover {
	-webkit-filter: grayscale(0);
	filter: grayscale(0);
}



/*  Our team */

.about-services{
    /*background: #f2f2f2;*/
    padding-bottom: 30px;
}


.servicio-cont{
    display: flex;
    justify-content: space-between;
    align-items: center;

}

.servicio-ind{
    width: 28%;
    text-align: center;
}

.servicio-ind img{
    width: 80%;
}

.servicio-ind h3{
    margin: 10px 0;
}

.servicio-ind p{
    font-weight: 300;
    text-align: justify;
}

/* footer */

footer{
    background: #414141;
    padding: 50px 0 30px 0;
    margin: auto;
    overflow: hidden;
}

.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 #265491;
    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;
}

/* Contacto */


@media screen and (max-width:900px){
    header{
        background-position: center;
    }

    .logo {
        position: static; 
        padding: 7px; 
        width: 100px; 
        margin-left: 10px;
        align-items: center;
    }

    .menufijo2 {
        width: 100%;
        height: 60px;
    }

    nav{
        text-align: center;
        padding: 10px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .centrado {
        text-align: center;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contenedor-nosotros{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .contenedor-nosotros2{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }   

    .sobre-nosotros .contenido-textos{
        width: 90%;
    }

    .sobre-nosotros .contenido-textos2{
        width: 90%;
    }

    .imagen-about-us{
        width: 90%;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    .imagen-port2{
        width: 44%;
    }

    .imagen-port3{
        width: 44%;
    }
    

    /* servicios */

    .servicio-cont{
        justify-content: center;
        flex-direction: column;
    }

    .servicio-ind{
        width: 100%;
        text-align: center;
    }

    .servicio-ind:nth-child(1), .servicio-ind:nth-child(2), .servicio-ind:nth-child(3){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 80%;
    }
}

       /*contacto*/

:root{
    --colorTextos: #49454567;
}

::before,
::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.cuerpo {
    font-family: 'Poppins', sans-serif;
    justify-content: center;
    align-items: center;
}


form{
    background: #fff;
    width: 100%;
    padding: 10px 0;
    border-radius: 10px;
    box-shadow: 0 0 6px 0 rgba(255, 255, 255, 0.8);
    border-style: solid;
    border-color: #265491;
    margin: auto;
}

form h1{
    text-align: center;
    margin: 10px 0;
    font-weight: 800px;
}

form .grupo{
    position: relative;
    margin: 45px;
}

input, textarea{
    background: none;
    color:#c6c6c6;
    font-size: 18px;
    padding: 10px 10px 10px 5px;
    display: block;
    width: 100%;
    border:none;
    border-bottom: 1px solid var(--colorTextos);
    resize: none;
}

input:focus,textarea:focus{
    outline: none;
    color: rgb(94,93,93);
}

input:focus~label, 
input:valid~label, 
textarea:focus~label, textarea:valid~label{
    position: absolute;
    top: -14px;
    font-size: 12px;
    color: #2196F3;
}

label{
    color: var(--colorTextos);
    font-size: 16px;
    position: absolute;
    left: 5px;
    top:10px;
    transition: 0.5s ease all;
    pointer-events: none;
}


input:focus~.barra::before, textarea:focus~.barra::before{
    width: 100%;
}

.barra{
    position: relative;
    display: block;
    width: 100%;
}
.barra::before{
    content: '';
    height: 2px;
    width: 0%;
    bottom: 0;
    position: absolute;
    background: linear-gradient(to right, #3a6073, #3a7bd5);
    transition: 0.3s ease all;
    left: 0%;
}
button{
    background: #3a7bd5;  /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, #3a6073, #3a7bd5);  /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, #3a6073, #3a7bd5); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */     
    display: block;
    width: 100px;
    height: 40px;
    border:none;
    color:#fff; 
    border-radius: 4px;
    font-size: 16px;
    margin: 10px auto;
    cursor: pointer;
}

.contenedor-contacto{
    display: flex;
    justify-content: flex-start;
    color: gray;
    font-size: larger;
}

.imagen-contacto{
    width: 1cm;
    height: 1cm;
    filter: grayscale(100%);
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

@media screen and (max-width:500px){
    nav{
        text-align: center;
        padding: 10px 0 0 0;
    }

    nav > a{
        margin-right: 5px;
    }

    .logo {
        position: static; 
        padding: 7px; 
        width: 100px; 
        margin-left: 10px;
        align-items: center;
    }

    .menufijo2 {
        width: 100%;
        height: 60px;
    }

    .centrado {
        text-align: center;
    }

    .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%;
    }

    .sobre-nosotros .contenido-textos2{
        width: 95%;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    .imagen-port2{
        width: 95%;
    }

    .imagen-port3{
        width: 95%;
    }
    .galeria{
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }

    .close{
        top: 20px;
        right: 20px;
    }


    /* 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;
    }
}