@import url('https://fonts.googleapis.com/css?family=Nunito:300,400');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Nunito', sans-serif;
}


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

.titulo {
    color: rgb(17, 3, 41);
    font-size: 30px;
    text-align: center;
    margin-bottom: 60px;
}


header {
    width: 100%;
    height: 90px;
    border-bottom: 1px solid #55A79A;
    position: fixed;
    z-index: 100;
    background: #023877;
    /*     background: white; */
}

.container-header {
    width: 100%;
    max-width: 1220px;
    display: flex;
    justify-content: space-between;
    position: relative;
    margin: auto;
}

.container-logo-title {
    display: flex;
    margin-top: 14px;
    margin-left: 10px;
}

.container-logo-title img {
    width: 175px;
    height: 50px;
}

.container-logo-title h1 {
    font-weight: 300;
    margin-top: 16px;
    margin-left: 10px;
}

.container-logo-send {
    display: flex;
    margin-top: 16px;
    margin-right: 50px;
}

.container-logo-send img {
    width: 160px;
    height: 45px;
}


.menu {
    /*Si quito esto, se justifica todo el menu a la derecha*/
    /* position: absolute; */
    position: relative;
    /*Esta es la separación desde la derecha*/
    right: 200px;
    margin-top: 20px;
}

.menu ul {
    display: flex;
}

.menu>ul li {
    list-style: none;
    font-size: 16px;
    font-weight: bold;
    color: #f7f2f2;
    padding: 15px 10px;
    /*     border: 1px solid transparent; */
    /*     border-top: 4px solid transparent; */
    cursor: pointer;
    transition: border 300ms;
    position: relative;
}

.menu>ul>li:hover {
    /*     border: 1px solid #eeeeee;
    border-top: 1px solid #55A79A; */
    background-color: #032449;
}

.menu ul li label,
.menu ul li span {
    color: #660909;
}

.menu ul li span {
    font-size: 14px;
    position: relative;
    top: 4px;
}

.menu ul li label {
    font-size: 22px;
    position: relative;
    top: -6px;
}

.menu ul li .icon2 {
    position: relative;
    top: -2px;
}



/*Submenu*/

.menu ul li ul {
    /*Anchura del 1º submenu*/
    width: 180px;
    position: absolute;
    top: 50px;
    left: 0;
    flex-direction: column;
    /*     border: 1px solid #eeeeee; */
    background: #023877;
    /*     border-bottom: 1px solid #55A79A; */
    padding: 5px 0px;
}

.menu ul li ul li {
    padding: 2px 5px;
    /*     border-bottom: 1px solid #eeeeee; */
    font-weight: 100;
    font-size: 14px;
    position: relative;
}


.menu ul li ul li a {
    text-decoration: none;
    color: #f1f0f0;
}



.menu ul li ul li:hover {
    background: #032449;
}

.menu ul li ul li ul {
    /*Anchura del 2º submenu*/
    width: 260px;
    position: absolute;
    left: 176px;
    top: 0;
}

.menu ul li ul li ul li a {
    text-decoration: none;
    color: #f1f0f0;
}

.menu ul li ul li ul li:hover {
    background: #032449;
}

.icon-menu {
    display: none;
}

main {
    width: 100%;
    max-width: 1220px;
    margin: auto;
    position: relative;
    top: 90px;
}


/* .textos-header{
    background: #bc4e9c;
    background: -webkit-linear-gradient(to right, hsla(340, 95%, 50%, 0.459), hsla(317, 45%, 52%, 0.664)), url(../image/portada.jpg);
    background: linear-gradient(to right, hsla(340, 95%, 50%, 0.459), hsla(317, 45%, 52%, 0.664)), url(../image/portada.jpg);
    background-size: cover;
    background-attachment: fixed;

    display: flex;
    height: 700px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header h1{
    font-size: 50px;
    color:white;
}

.textos-header h2{
    font-size: 30px;
    font-weight: 300;
    color:white;
}
 */
.textos-header-ap {

    background: #bc4e9c;
    background: -webkit-linear-gradient(to right, hsla(254, 95%, 15%, 0.459), hsla(115, 93%, 17%, 0.664)), url(../image/portada.jpg);
    background: linear-gradient(to right, hsla(241, 94%, 13%, 0.459), hsla(148, 90%, 23%, 0.664)), url(../image/portada.jpg);
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    height: 700px;
    width: 100%;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
}

.textos-header-ap h1 {
    font-size: 50px;
    color: white;
}

.textos-header-ap h2 {
    font-size: 20px;
    font-weight: 300;
    color: white;
}

.textos-header-ap h3 {
    font-size: 30px;
    font-weight: 500;
    color: white;
}

.textos-header-ap h4 {
    font-size: 22px;
    font-weight: 500;
    color: rgb(255, 255, 255);
}
/* Contador */

.contador {
    height: 155px;
    width: 320px;
    transform: rotate(180deg);
/*     margin: 200px 100px; */
    position: relative;
}

.numero {
    height: 100%;
    width: 100%;
    text-align: center;
    font-size: 3.8em;
    font-weight: bold;
    font-family: sans-serif;
    color: white;
    position: absolute;
    transform: rotate(-180deg);
    mix-blend-mode: screen;
    display: flex;
    justify-content: center;
    align-items: center;
}

.color_fondo {
    transition: .2s;
    transform-origin: bottom;
    position: absolute;
    display: block;
    height: 0%;
    width: 100%;
    background-color: rgb(2, 5, 190);
}

article {
    padding: 20px;
}

article h1 {
    font-size: 40px;
    font-weight: 100;
}

/* article p{
    font-size: 18px;
    margin-top: 20px;
}
 */
.container-bg {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.bg1 {
    width: 100%;
    max-width: 300px;
    height: 180px;
    background-image: url(../image/bg1.jpg);
    background-position: center center;
    background-size: cover;
    margin: 10px;
}

.bg2 {
    width: 100%;
    max-width: 300px;
    height: 180px;
    background-image: url(../image/bg2.jpg);
    background-position: center center;
    background-size: cover;
    margin: 10px;
}

.bg3 {
    width: 100%;
    max-width: 300px;
    height: 180px;
    background-image: url(../image/bg3.jpg);
    background-position: center center;
    background-size: cover;
    margin: 10px;
}

.bg4 {
    width: 100%;
    max-width: 300px;
    height: 180px;
    background-image: url(../image/bg4.jpg);
    background-position: center center;
    background-size: cover;
    margin: 10px;
}



/* Cómo lo hago */

main .sobre-nosotros {
    padding: 30px 0 60px 0;
}

.contenedor-sobre-nosotros {
    display: flex;
    justify-content: space-evenly;
}

.imagen-about-us {
    width: 48%;
}

.imagen-yademas {
    width: 18%;
}

.sobre-nosotros .contenido-textos {
    width: 48%;
}

.contenido-textos h3 {
    margin-top: 20px;
}

.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 rgba(0, 0, 0, .5);
    margin-right: 5px;
}

.contenido-textos p {
    padding: 10px 0px 30px 15px;
    font-weight: 300;
    text-align: justify;
}

/* Algunos ejemplos */


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

/* Alumnos */

.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;
    object-fit: cover;
    border: 3px solid #fff;
    border-radius: 50%;
    display: block;
}

.cards .card>.contenido-texto-card {
    text-align: center;
    width: 60%;
    color: #fff;
}

.cards .card>.contenido-texto-card p {
    font-weight: 300;
    padding-top: 5px;
    text-align: center;
}

/*  Más información */

.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: 90%;
}

.servicio-ind h3 {
    margin: 10px 0;
}

.servicio-ind p {
    font-weight: 300;
    text-align: center;
}


/*  Contacto */

.contacto {
    background: #969494;
    padding-bottom: 10px;

}


.contacto-cont {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contacto-ind {
    width: 35%;
    text-align: center;
}


.contacto-ind h4 {
    color: #fff;
    border-bottom: 3px solid #af20d3;
    padding-bottom: 5px;
    margin-bottom: 10px;
}

.contacto-ind p {
    font-weight: 400;
    text-align: center;
}

/* footer */

footer {

    padding: 60px 0px 30px 0px;
    margin: auto;
    overflow: hidden;
}

.contenedor-footer {
    background: #414141;
    display: flex;
    width: 90%;
    justify-content: space-between;
    margin: 100px 73px;
    padding: 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 {
    background-color: #414141;
    text-align: center;
    text-decoration: none;
    font-size: 17px;
    margin: 50px 10px;
    padding: 10px;
    color: #fff;
}





@media screen and (max-width: 1000px) {

    .textos-header {
        background-position: center;
    }

    .container-logo-title {
        height: 60px;
        margin-top: 10px;
    }

    .container-logo-title img {
        width: 175px;
        height: 50px;
    }

    .container-logo-title h1 {
        font-size: 20px;
        margin-top: 6px;
    }

    .container-logo-send {
        display: flex;
        margin-top: 16px;
        margin-right: 110px;
    }

    .container-logo-send img {
        width: 120px;
        height: 35px;
    }

    .icon-menu {
        display: block;
        position: absolute;
        right: 10px;
        top: 65px;
        font-size: 20px;
        color: white;
    }

    body {
        transition: all 300ms;
    }

    .body2 {
        transform: translateX(-300px);
    }

    .menu {
        width: 300px;
        height: 100vh;
        position: fixed;
        top: 0px;
        right: -300px;
        /* background: #2D2F30; */
        background: #023877;
        margin-top: 0px;
        overflow-y: scroll;
    }

    .menu ul {
        flex-direction: column;
    }

    /*Texto del menu principal*/
    .menu ul li {
        padding: 10px 20px;
        font-size: 20px
    }

    .menu ul li ul {
        top: 0;
        border-bottom: 1px solid transparent;
        background: #023877;
        ;
    }

    .menu ul li:hover {
        border: 1px solid transparent;
        border-top: 1px solid transparent;
        background: #032449;
    }

    .menu ul li ul {
        width: 100%;
        position: relative;
        border: none;
        padding: 2px;
    }

    /*Texto del primer submenu*/
    .menu ul li ul li {
        font-size: 20px;
        border-bottom: 1px solid #023877;
        color: #ccc;
    }

    .menu ul li ul li:hover {
        background: #021225;
        border-bottom: 1px solid;
        border-bottom-color: #ccc;
    }

    .menu ul li ul li ul {


        width: 100%;
        position: relative;
        left: 0px;
        top: 6px;
        background: #023877;
    }

    /*Texto del segundo submenu*/
    .menu ul li ul li ul li {
        font-size: 20px;
        border-bottom: 1px solid #023877;
        color: #ccc;
    }

    article {
        text-align: 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: 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%;
    }

    .titulo-final {
        font-size: 13px;
        font-weight: 200;
    }


}


@media screen and (max-width:500px) {

    nav {
        /*         text-align: center; */
        padding: 30px 0 0 0;
    }

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

    /* 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: 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: 12px;
        font-weight: 100;
    }


}