/* generales */
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html{
    scroll-behavior: smooth;
}
body{
    font-family: "open sans";
}
/* header */
header{
    width: 100%;
    height: 600px;
    background: #bc4e9c;
    background: -webkit-linear-gradient(to right, hsla(340, 95%, 50%, 0.459),hsla(317, 95%, 50%, 0.659)) ,url(../img/portada.jpg);
    background: linear-gradient(to right, hsla(340, 95%, 50%, 0.459),hsla(317, 95%, 50%, 0.659)) ,url(../img/portada.jpg);
    background-size: cover;
    background-attachment: fixed;
    position: relative;
}

nav{
    text-align: right;
    padding: 30px 50px 0 0;
}

nav > a {
    color: #fff;
    text-decoration: none;
    margin-right: 10px;
}
nav > a:hover{
    text-decoration: underline;
} 
.texto-encabezado{
    display: flex;
    height: 430px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    text-shadow: 2px 2px 2px black;
}

.texto-encabezado > h1 {
    color: #fff;
    font-size: 30px;
    text-shadow: 2px 2px 2px black;
}
.texto-encabezado > h2 {
    color: #fff;
    font-size: 25px;
    font-weight: 300;
    text-shadow: 2px 2px 2px black;
}
.titulo{
    color: #642a73;
    font-size: 30px;
    text-align: center;
    margin-top: 10px;
    margin-bottom: 30px;
}
.contenedor{
    padding: 60px 0;
    width: 90%;
    max-width: 1000px;
    margin: auto;
    overflow: hidden; /* Si desborda el contenido se oculta*/
}
/* sobre-nosotros*/
 .sobre-nosotros{
    padding: 5px 0  5px 0;
}
.contenedor-sobre-nosotros{
    display: flex;
    justify-content: space-evenly;
}
.imagen-sobre-nosotros{
    width: 48%;
}
.contenido-texto{
    width: 48%;
    margin-right: 30px;
    padding-right: 30px;
}
.contenido-texto h3{
    margin-bottom: 15px;
}
.contenido-texto p{
    margin-bottom: 30px;
    text-align: justify;
    font-weight: 300;
}
.contenido-texto h3 span{
    background: #4d0686;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    text-align: center;
    margin-right: 10px;
    padding: 2px;
    display: inline-block;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5); /* Sombra de la caja color negro 50%*/
}

/* Portafolio */
.portafolio{
    background: #f2f2f2;
}
.galeria-portafolio{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap; /* si falta espacio en el ancho, lo desplaza abajo*/
}
.imagen-portafolio{ 
    width: 24%;
    margin-bottom: 10px;
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5); 
}
.imagen-portafolio > img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hover-galeria{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    transform: scale(0);
    background: #4d0686;
    transition:  transform .5s;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.hover-galeria p{
    color: #fff;
}
.hover-galeria img{
    width: 80px;
}
.imagen-portafolio:hover .hover-galeria{
    transform: scale(100%);
}
/* Clientes */
.tarjetas{
    display: flex;
    justify-content: space-evenly;
}
.tarjetas .tarjeta-ind{
    background: #4d0686;
    display: flex;
    width: 46%;
    height: 200px;
    align-items: center; /*alineación vertical */
    justify-content: space-evenly;
    border-radius: 15px;
    box-shadow: 0 0 6px 0 rgba(0, 0, 0, .5);
}
.tarjetas .tarjeta-ind img{
    width: 100px;
    height: 100px;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50px;
    display: block;
}
.tarjetas .tarjeta-ind > .contenido-texto-tarjeta{
    width: 50%;
    color: #fff;
}
.tarjetas .tarjeta-ind > .contenido-texto-tarjeta p{
    padding-top: 6px;
    text-align: justify;
    font-weight: 300;
}

/* Servicios */
.servicios{
    background: #f2f2f2;
    padding-bottom: 30px;
}
.servicios-contenidos{
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.servicio-ind{
    width: 28%;
    text-align: center;
}
.servicio-ind img {
    width: 90%;
    height: 100px;
}
.servicio-ind p{
    padding: 20px;
    text-align: justify;
    font-weight: 300;
}

/* 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-foot{
    text-align: center;
}
.content-foot h4{
    color: #fff;
    border-bottom: 3px solid #af20d3;
    margin-bottom: 10px;
    padding-bottom: 5px;
}
.content-foot p{
    color: #fff;
}
.derechos-reservados{
    text-align: center;
    font-size: 24px;
    margin: 20px 0 0 0;
    color: #9e9797;
}

/* Dispositivos móviles */

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

    .texto-encabezado > h1{
        font-size: 25px;
    }

    .texto-encabezado > h2 {
        font-size: 20px;
    }

    .contenedor-sobre-nosotros{
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }

    .imagen-sobre-nosotros{
        width: 95%;
    }
    .contenido-texto{
        width: 95%;
        
    }

    /* Portafolio */
    .imagen-portafolio{ 
        width: 45%;
    }

    /* Clientes */

    .tarjetas{
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }
    .tarjetas .tarjeta-ind{
        width: 95%;
    }
    
    .tarjetas .tarjeta-ind:first-child{
       margin-bottom: 30px;
    }

    /* servicios */
    .servicios-contenidos{
        flex-direction: column;
        justify-content: center;
        align-content: center;
    }
    .servicio-ind{
         width: 95% !important;
    }
    .servicio-ind  > img {
        width: 95% !important;
    }
    .servicio-ind > p {
        text-align: center;
    }

    /* footer */
    .content-foot{
        border-bottom: none;
        border-style: none !important;
    }
    .contenedor-footer{
        flex-direction: column;
        justify-content: center;
        align-content: center;
        
    }
    .content-foot p{
        margin-bottom: 25px;
    }
}

/*
@media screen and (max-width: 400px){
    header{
        background: blue;
    }
}*/