*{
    font-family: Helvetica, Arial, sans-serif;
    color: black;
}

body{
    background-color: white;
    width: 85%;
    margin: 0px auto;
}


header{
    width: 100%;
    margin: 0px auto;
    height: 80px;
    line-height: 50px;
    /* position:sticky; */
    top: 0;
    z-index: 2;
    background-color: white;
    border-style: none none solid none;
    border-width: thin;
    padding-bottom: 10px;
}

header #wrap{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    height: 100%;
    width: 90%;
    margin: 0px auto;
    
}

header #wrap #logo a img{
    width: 80px;
}

header #wrap nav{
    width: 50%;
}



header #wrap nav ul{
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
}

header #wrap nav ul li{
    list-style: none;
    text-align: center;
}

header #wrap nav ul li a{
    text-decoration: none;
    color: rgba(0, 0, 0, 0.712);
    font-size: 20px;
}

header #wrap nav ul li a:hover{
    text-decoration:underline;
    color: black;
}





/* MAIN */
#main{
    text-align: center;
    width: 100%;
    
}

#main #cartel{
    width: 100%;
}

#main #cartel #img{
    width: 100px;
}

#main h2{
    font-size: 45px;
    text-align: left;
}

#main #categorias{
    text-align: center;
    
}

#main #categorias{
    display: flex;
    flex-flow: row wrap;
    justify-content:space-evenly;
    margin-top: 20px;
}

#main #categorias .categoria a{
    text-decoration: none;
}

#main #categorias .categoria a:hover{
    text-shadow: 2px 2px #00000025;
}

#main #categorias .categoria a img{
    width: 400px;
    height: 400px;
    margin-bottom: -10px;
}

#main #categorias .categoria a h3{
    text-align: left;
}

/* ------------------------------------------------------------------------------- */

/* CURSOS.HTML */

#categorias .categoria{
    margin-top: 20px;
}

#main h3{
    font-size: 35px;
    text-align: center;
}

#main h4{
    font-size: 25px;
    text-align: left;
    margin-top: 10px;
}

#main #categorias .categoria a p{
    text-align: left;
    margin-top: -25px;
}

/* ------------------------------------------------------------------------------- */

/* CONTACTO.HTML */

#main .wrapabsoluto .etiquetamain .comunicaciones{
    margin-top: 30px;
}

#main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion{
    margin-bottom: 120px
}

#main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion h4{
    text-align: center;
}

#main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion h4 a{
    text-decoration: none;
}

#main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion h4 a:hover{
    text-shadow: 2px 2px #00000025;
}

/* ------------------------------------------------------------------------------- */

/* Plantilla Cursos */
/* #main .wrapabsoluto .etiquetamain #fotos{
    display: flex;
    flex-flow: row wrap;
    justify-content:space-between;
} */

#main .wrapabsoluto .etiquetamain #fotos img{
    width:200px;
    height: 200px;
    margin-bottom: 10px;
}

#main .wrapabsoluto #wrapCursos{
    width: 45%;
}

#main .wrapabsoluto #wrapCursos p{
    width: 80%;
    margin: 0px auto;
    text-align: justify;
}

#main .wrapabsoluto #wrapCursos h5{
    font-size: 18px;
    margin-bottom: 5px;
}

#main .wrapabsoluto #wrapCursos h6{
    font-size: 15px;
    margin-bottom: 5px;
    margin-top: 5px;
}

#main .wrapabsoluto #fotos{
    width: 45%;
}

/* ------------------------------------------------------------------------------- */

/* ABOUTME.HTML */

.aboutmewrap{
   display: flex;
   flex-flow: row wrap;
   justify-content:space-around;
}

.aboutmewrap h2{
    text-align: left;
}

.aboutmewrap h4{
    text-align: left;
}

.aboutmewrap p{
    text-align: left;
}

.aboutmewrap #wrapabout{
    width: 45%;
}

.aboutmewrap #imgabout{
    width: 45%;
}

.aboutmewrap #imgabout img{
    width: 80%;
}


/* ------------------------------------------------------------------------------- */
/* PIEZAS.HTML */

.piezawrap{
    display: flex;
    flex-flow: row wrap;
    justify-content:space-evenly;
}

.piezawrap .etiquetapieza{
    width: 20%;
}

.piezawrap .etiquetapieza .wrapimgpieza img{
    width: 95%;  
}

.piezawrap .etiquetapieza h5{
    margin-left: 2%;
    margin-bottom: 10px;
    margin-top: 5px;
    font-size: 17px;
}

.piezawrap .etiquetapieza h6{
    margin-left: 2%;
    margin-bottom: 20px;
    margin-top: 5px;
    font-size: 13px;
    font-style: italic;
}

.piezawrap .etiquetapieza p{
    text-align: left;
    margin-left: 2%;
    margin-top: 10px;
}


/* FOOTER */

#footer{
    margin-top: 30px;
    padding-top: 5px;
    border-style: solid none none none;
    border-width: thin;
    text-align: center;
    width: 100%;
    background-color: white;
}

#footer #wrapfooter #footer2 p{
    display: flex;
    flex-flow: row wrap;
    justify-content:space-between;
    width: 10%;
    margin: 0px auto;
}

#footer #wrapfooter #footer2 p a{
    text-decoration: none;
}

#footer #wrapfooter #footer2 p a img{
    width: 50px;
    color: black;
}

#footer #end a{
    text-decoration: none;
    color: black;
}

#footer #end a:hover{
    text-decoration: underline;
    color: black;
}




/* ****RESPONSIVE**** */

@media (max-width: 1152px){

    header #wrap nav{
        width: 60%;
    }
    .piezawrap .etiquetapieza{
        width: 25%;
    }

    .aboutmewrap #wrapabout{
        width: 40%;
    }
    
    .aboutmewrap #imgabout{
        width: 50%;
    }

}

@media (max-width: 1056px){

    #main .wrapabsoluto #wrapCursos{
        width: 60%;
    }
    
    #main .wrapabsoluto #fotos{
        width: 30%;
    }

}

@media (max-width: 1000px){

    iframe{
        width: 400px;
        height: 400px;
    }

    .aboutmewrap #imgabout{
        width: 55%;
    }
}


@media (max-width: 964px){

    header #wrap nav{
        width: 70%;
        
    }

    .piezawrap .etiquetapieza{
        width: 30%;
    }

    #main h2{
        text-align: center;
    }

    .aboutmewrap{
        display: inline;
     }
    
     .aboutmewrap #wrapabout{
        width: 100%;
    }
    
    .aboutmewrap #imgabout{
        width: 100%;
    }

}

@media (max-width: 808px){

    header #wrap nav{
        width: 50%;
    }
    header{
        height: 120px;
    }

    header #wrap #logo a img{
        margin-top: 15px;
    }

    .piezawrap .etiquetapieza{
        width: 33%;
    }

    .comunicaciones {
        display: flex;
        flex-flow: row wrap;
        justify-content:space-between;
    }

    #main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion{
        margin-bottom: 0px;
        margin-right: 20px;
    }

    

    .comunicaciones {
        margin: 0px auto;
    }

}

@media (max-width: 735px){

    iframe{
        width: 100%;
    }

    #main #categorias{
        display: inline;
    }

    #main #categorias #wrapCursos{
        margin: 0px auto;
    }

    #main #categorias #fotos{
        margin: 0px auto;
    }

    #main .wrapabsoluto #wrapCursos{
        width: 100%;
    }

    #main .wrapabsoluto #fotos{
        width: 100%;
    }

    #main h4{
        text-align: center;
    }
    
    #main #categorias .categoria a p{
        text-align: center;
    }

    #main #categorias .categoria a h3{
        text-align: center;
    }

    #main .wrapabsoluto #wrapCursos #ResumenPrecios{
        margin-bottom: 30px;
    }

}



@media (max-width: 643px){

    header #wrap nav{
        width: 80%;
        
    }
}

@media (max-width: 550px){

    header{
        height: 160px;
 
    }

    header #wrap{
        display:inline;
        text-align: center;
    }

    header #wrap nav{
        width: 100%;
    }

    header #wrap nav ul{
        padding-left: 0px;
        margin-top: 0px;
        margin-bottom: 0px;
    }

    .piezawrap .etiquetapieza{
        width: 45%;
    }
    
    #main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion{
        margin: 0px auto;
    }

}

@media (max-width: 520px){

    header{
        height: 160px;
    }
}

@media (max-width: 480px){

    header{
        height: 160px;
    }

    #main #categorias .categoria a img{
        width: 350px;
        height: 350px;
    }

    #main .wrapabsoluto .etiquetamain #fotos img{
        width: 100%;
        height: auto;
    }
}

@media (max-width: 450px){

    header{
        height: 320px;
    }

    header #wrap nav ul{
        display: inline;
    }

    header #wrap nav ul li{
        border-style: none none solid none;
        border-width: thin;
    }

    header #wrap nav ul li:last-child{
        border-style: none none none none;
    }

    .piezawrap .etiquetapieza{
        width: 80%;
    }
}

@media (max-width: 427px){

    #main .wrapabsoluto .etiquetamain .comunicaciones .comunicacion{
        margin: 0px auto;
    }
    
}

@media (max-width: 420px){

    #main #categorias .categoria a img{
        width: 300px;
        height: 300px;
    }

    
    
}

@media (max-width: 370px){

    #main #categorias .categoria a img{
        width: 250px;
        height: 250px;
    }
    
}