* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family:Georgia, 'Times New Roman', Times, serif
}

.contenedor {
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden;
}

.titulo {
    color: #642a73;
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}

/* Header */

header {
    width: 100%;
    height: 600px;
    background: #bc4e9c;
    /* fallback for old browsers */
    background: -webkit-linear-gradient(to right, hsla(340, 95%, 50%, 0.459), hsla(317, 45%, 52%, 0.664)), url(../img/portada.jpg);
    /* Chrome 10-25, Safari 5.1-6 */
    background: linear-gradient(to right, hsla(340, 95%, 50%, 0.459), hsla(317, 45%, 52%, 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;
}

.volver{
    text-align: right;
    padding: 20px;
    border: antiquewhite
}

.aspect-ratio-1-1 {
    width: 100%;
    /*object-fit: cover;  Recorta la imagen sin deformarla */
    object-position: center;
}

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%;
}

/* About us */

main .sobre-nosotros{
    padding: 30px 0 60px 0;
}

.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us{
    width: 48%;
}

.sobre-nosotros .contenido-textos{
    width: 48%;
}

.contenido-textos h3{
    margin-bottom: 15px;
}

.contenido-textos h3 span{
    background: #4d0686;
    color: #fff;
    border-radius: 50%;
    display: inline-block;
    text-align: center;
    width: 30px;
    height: 30px;
    padding: 2px;
    box-shadow: 0 0 6px 0 rgb(0 0 0 / 50%);
    margin-right: 5px;
    line-height: 18px;
    font-size: 2.5rem;
}

.contenido-textos p{
    padding: 0px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

.texto {
    background: hsla(59, 100%, 83%, 0.363);
    color:hsla(273,91%,27%, 0.7);
    width: 95%;
    padding: 10px;
    margin-top: 20px;
    margin-bottom: 20px;
    margin-left: 30px;
    margin-right: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
}

.texto_centrado{
    text-align: center;
}

.texto p{
    padding: 15px 15px 15px 15px;
    font-weight: 300;
    text-align: justify;
    color: #7c147c;
    font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif ;
    font-size: larger;
}

label {
    display:block;
    margin-top:20px;
    letter-spacing:1px;
}

.principal {
    display:block;
    margin:0 auto;
    width:510px;
    color: #666666;
    font-family:Arial;
}

form {
    margin:0 auto;
    width:400px;
}

.sendmail{
    margin:0 auto;
    width:100%;
}

.mensaje{
    display: flex;
    width: 50%;
    background: #dadada8a;
    margin-left: 25%;
}

input, textarea {
    width:380px;
    height:27px;
    background:#666666;
    border:2px solid #f6f6f6;
    padding:10px;
    margin-top:5px;
    font-size:10px;
    color:#ffffff;
}

.contacto input, .contacto textarea{
    width:40%px;
    height:40px;
    background:#bdbbbb;
    border:2px solid #f6f6f6;
    padding:10px;
    margin-top:5px;
    font-size:16px;
    color:#292929;
}

textarea {
    height:150px;
}

.contacto textarea{
    height:200px;
}

.mens{
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

#submit {
    width:85px;
    height:35px;
    border:none;
    margin-top:20px;
    cursor:pointer;
}

/* Galeria */

.soluciones{
    background: #a9bdf5;
}

.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);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.color1{
    background: rgba(132, 92, 6, 0.7);
}

.color2{
    background: rgba(9, 135, 194, 0.822);
}

.color3{
    background: rgba(35, 132, 6, 0.7);
}

.color4{
    background: rgba(132, 145, 84, 0.568);
}

.color5{
    background: rgba(132, 6, 6, 0.7);
}

.color6{
    background: rgba(255, 251, 17, 0.7);
}
.color7{
    background: rgba(132, 92, 6, 0.7);
}

.color8{
    background: rgba(132, 6, 6, 0.7);
}

.hover-galeria img{
    width: 50px;
}

.hover-galeria p{
    color: #fff;
}

.imagen-port:hover .hover-galeria{
    transform: scale(1);
}

.hover-galeria-soluciones{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: hsla(90, 30%, 52%, 0.664);
    transition: transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.hover-galeria-soluciones img{
    width: 50px;
}

.hover-galeria-soluciones p{
    color: #fff;
    text-align: center;
}

.imagen-port:hover .hover-galeria-soluciones{
    transform: scale(1);
}

/* Clients */

.cards{
    display: flex;
    justify-content: space-evenly;
}

.cards .card{
    background: #4d0686;
    display: flex;
    width: 46%;
    height: 280px;
    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: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card > .contenido-texto-card{
    width: 60%;
    color: #fff;
}

.cards .card > .contenido-texto-card p{
    font-weight: 300;
    padding-top: 5px;
}

/*  Our team */

.about-services{
    background: #f2f2f2;
    padding-bottom: 30px;
}


.servicio-cont{
    display:flex;
    justify-content: space-between;
    align-items: center;
    flex-direction: column;
}

.servicio-ind-izq{
    display: flex;
    width: 80%;
    text-align: center;
    flex-direction: row;
    align-items: center;    
}

.servicio-ind-der{
    display: flex;
    width: 80%;
    text-align: center;
    flex-direction: row;
    align-items: center;    
}

.servicio-ind-izq-h3{
    width : 70%;
    float: right;
}

.servicio-ind-izq-img{
    width : 30%;
    float: left;
}

.servicio-ind-der-h3{
    width : 70%;
    float: left;
}

.servicio-ind-der-img{
    width : 30%;
    float: right;
}

/* 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 #af20d3;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.content-foo p{
    color: #ccc;
}

.titulo-final{
    display: flex;
    text-align: center;
    font-size: 18px;
    margin: 20px 0 0 0;
    color: #9e9797;
    justify-content: center;
    line-height: 10px;
}

.origen{
    padding: 3px;
}

.boton1{
    padding-right: 10px;
    margin-right: 5px;
    padding-bottom: 5px;
    padding-top: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.boton2{
    padding-left: 10px;
    margin-left: 5px;
    padding-top: 5px;
    padding-bottom: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

@media only screen and (min-width: 481px) and (max-width: 768px) {
    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%;
    }

    .texto {
        width: 95%;
        padding: 3px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 10px;
    }

    /* Galeria */

    .imagen-port{
        width: 44%;
    }

    .fotos{
        flex-direction: column;
        width: 95%;
        padding: 3px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 10px;
    }

    .grupo1{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .grupo2{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .grupo3{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .f_det{
        margin-top: 10px;
    }

    /* Clientes */

    .cards{
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

    .cards .card{
        width: 90%;
    }

    .cards .card:first-child{
        margin-bottom: 30px;
    }

    /* 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){
        margin-bottom: 60px;
    }

    .servicio-ind img{
        width: 90%;
    }

    .servicio-ind-izq{
        width: 100%;
        flex-direction: column;
        margin-bottom: 10px;
    }
    
    .servicio-ind-der{
        width: 100%;
        flex-direction: column;
        margin-bottom: 10px;
    }    

    .servicio-ind-izq-h3{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-izq-img{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-der-h3{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-der-img{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
}

@media screen and (max-width: 480px){
    .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%;
    }

    .contenedor-sobre-nosotros {
        flex-direction: column;
    }        
        
    .texto {
        width: 95%;
        padding: 3px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 10px;
    }

    /* Galeria */

    .imagen-port{
        width: 95%;
    }

    .fotos{
        flex-direction: column;
        width: 95%;
        padding: 3px;
        margin-top: 20px;
        margin-bottom: 20px;
        margin-left: 10px;
    }

    .grupo1{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .grupo2{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .grupo3{
        width: 90%;
        flex-direction: column;
        margin-top: 10px;
        justify-content: center;
        align-items: center;
    }
    
    .f_det{
        margin-top: 10px;
    }

    /* 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;
    }

    .servicio-ind-izq{
        width: 100%;
        flex-direction: column;
    }
    
    .servicio-ind-der{
        width: 100%;
        flex-direction: column;
    }    

    .servicio-ind-izq-h3{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-izq-img{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-der-h3{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
    
    .servicio-ind-der-img{
        width: 100%;
        display: flex;
        align-items: center;        
        justify-content: center
    }
}

