:root {
    --bg-primario: #065893;
    --bg-secundario: #179CBC;
    --tx-primario: #47C0A7;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Ubuntu',sans-serif;
    font-size: 16px;
}

.contenedor {
    max-width: 1200px;
    width: 90%;
    margin: 0 auto;
}

/* scroll efecto*/

::-webkit-scrollbar {
    width: 0;
}

#scrollPath {
    position: fixed;
    top: 0;
    right: 0;
    width: 10px;
    height: 100%;
    background: rgba(255,255,255,0.05);
}

#progressbar {
    position: fixed;
    top: 0;
    right: 0;
    width: 10px;
    background: linear-gradient(to top, var(--bg-primario)10%, #fff 100%);
    animation: scroll 5s linear infinite;
}

#progressbar::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #008aff, #00ffe7);
    filter: blur(10px);
}

#progressbar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, #008aff, #00ffe7);
    filter: blur(30px);
}

/* Header menu */

header .logo {
    margin: 30px 20px;
    position: absolute;
    font-size: 1.5em;
    color: #fff;
}


header .contenedor-menu ul {
    display: flex;
    justify-content: flex-end;
    list-style: none;
}

header .contenedor-menu ul li {
    margin-right: 20px;
    margin-top: 20px;
    display: inline-block;
    padding: 20px;
}

header .contenedor-menu ul li a{
    color: #fff;
    text-decoration: none;
    font-weight: 400;
    border: 1px transparent;
    padding: 20px;
    transition: 0.3s all;
    position: relative;
}

header .contenedor-menu ul li a:hover {
    opacity: .5;
    border-bottom: 1px solid rgba(255, 255, 255, 0.164);
    padding: 20px;
}

/* Header titulo */

header .contenedor-texto {
    text-align: center;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 220px;
    color: var(--bg-secundario);
    font-size: 1.5em;
    animation: texto 5s linear infinite;
    position: relative;
}

@keyframes texto {
    0% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(20px) rotate(-5deg) ;
    }
    100% {
        transform: translate(0px) rotate(0deg);
    }
}

/* Header area de animacion */

.animacion-area {
    background: linear-gradient(to left, var(--bg-primario) 40%, var(--bg-secundario) 100%);
    height: 100vh;
}

.caja-area {
    position: absolute;
    top: 60px;
    right: 0;
    width: 100%;
    height: 91%;
    overflow: hidden;
}

.caja-area li {
    position: absolute;
    display: block;
    list-style: none;
    width: 25px;
    height: 25px;
    background: rgba(255,255,255,.2);
    animation: cajas 20s linear infinite;
    bottom: -280px;
}

.caja-area li:nth-child(1) {
    left: 86%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}

.caja-area li:nth-child(2) {
    left: 12%;
    width: 30px;
    height: 30px;
    animation-delay: 1.5s;
    animation-duration: 10s;
}

.caja-area li:nth-child(3) {
    left: 70%;
    width: 100px;
    height: 100px;
    animation-delay: 5.5s;
}

.caja-area li:nth-child(4) {
    left: 70%;
    width: 150px;
    height: 150px;
    animation-delay: 0;
    animation-duration: 15s;
}

.caja-area li:nth-child(5) {
    left: 40%;
    width: 75px;
    height: 75px;
    animation-delay: 0;
}

.caja-area li:nth-child(6) {
    left: 30%;
    width: 110px;
    height: 110px;
    animation-delay: 3.5;
}

/* Animacion */

@keyframes cajas {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(-800px) rotate(360deg);
        opacity: 0;
    }
}

/* Main acerca de */

main .acerca-de {
    padding: 100px 40px;
    display: flex;
    width: 100%;
    margin-bottom: 100px;
}

main .contenedor-texto {
    width: 400%;
    align-self: center;
}

main .contenedor-texto h2 {
    text-align: center;
    font-size: 3em;
    margin-bottom: 40px;
    font-weight: 400;
}

main .contenedor-texto p {
    font-size: 1.5em;
    font-weight: 300;
    text-align: right;
    line-height: 40px;
}

main .img img {
    width: 110%;
}

/* Main servicios */

main .servicios {
    width: 100%;
    display: flex;
    height: 800px;
    flex-wrap: wrap;
}


main .box {
    position: relative;
    width: 300px;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px;
    background: #060c21;
    transition: 0.5s;
}

main .box:hover {
    height: 400px;
}

main .box .imgBx {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    padding: 10px;
    box-sizing: border-box;
}

main .box .imgBx img {
    max-width: 100%;
    opacity: 0.1;
    transition: 0.5s;
}

.box:hover .imgBx img {
    opacity: 1;
}

main .box::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    z-index: -1;
}

main .box::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: #fff;
    z-index: -2;
    filter: blur(40px);
}

main .box::before,
main .box::after {
    background: linear-gradient(235deg, #89ff00, #010615,#00bcd4);
}

main .box:nth-child(2)::before,
main .box:nth-child(2)::after {
    background: linear-gradient(235deg, #ff005e, #010615, #fbff00);
}

main .box:nth-child(3)::before,
main .box:nth-child(3)::after {
    background: linear-gradient(235deg, #772aff, #010615, #2196f3);
}

main .box .content {
    position: absolute;
    bottom: 0;
    left: 10px;
    right: 10px;
    bottom: 10px;
    height: 90px;
    background: rgba(0,0,0,0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: 0.5s;
    text-align: center;
}

main .box:hover .content {
    opacity: 1;
}

main .box .content h2 {
    font-size: 20px;
    color: #fff;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: 1px;
}

main .box .content h2 span {
    font-size: 14px;
    color: #fff;
    font-weight: 200;
    letter-spacing: 2px;
}

/* Main diseños */

main .disenos {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    vertical-align: top;
    justify-content: center;
    background: #FFF;
    padding: 100px 0;
}

main .disenos img {
    width: 50%;
    opacity: .5;
    transition: all 0.3s;
    cursor: pointer;
}

main .disenos img:hover {
    opacity: 1;
}

/* Main Contacto */

main .contacto {
    text-align: center;
    padding-bottom: 100px;
}

main .contacto .contenedor-contacto {
    margin: 0 auto;
}

main .contacto h3 {
    font-size: 2em;
    font-weight: 400;
    margin-bottom: 40px;
}

main .contacto p {
    font-size: 1.1em;
    font-weight: 300;
    line-height: 25px;
}

/* Footer */

footer {
    background: #000;
    color: #fff;
    text-align: center;
    padding: 20px 0;
}

footer a {
    color: #fff;
    text-decoration: none;
    transition: 0.3s all;
}

footer a:hover {
    opacity: .8;
}

/* MediaQueries */

@media screen and (max-width: 800px) {
    /* header menu */
    header .contenedor-menu ul li {
        margin-right: 0;
    }
    
    /* main acerca de */
    
    main .contenedor-texto h2 {
        font-size: 2.5em;
    }
    
    main .contenedor-texto p {
        font-size: 1.3em;
        line-height: 35px;
    }
    main .img{
        align-self: center;
    }

    main .img img {
        width: 100%;
    }

    /* Main servicios */
    main .servicios {
        justify-content: center;
        margin-bottom: 600px;
    }

/*     main .articulos h3 {
        margin-bottom: 40px;
        font-size: 1.5em;
        font-weight: 400;
        padding: 40px;
    } */
    
    /* main contacto */

}

@media screen and (max-width: 500px) {
    header .contenedor-menu ul {
        display: flex;
        justify-content: center;
    }
    
    header .contenedor-menu ul li {
        margin-right: 20px;
        margin-top: 10px;
        display: inline-block;
        padding: 0;
    }
    
    header .contenedor-menu ul li a{
        border: none;
        padding: 0;
    }

    header .contenedor-menu ul li a:hover {
        border: none;
        padding: 0;
    }

    main .contenedor-texto h2 {
        font-size: 3em;
    }
    
    main .contenedor-texto p {
        font-size: 1.3em;
        line-height: 35px;
        text-align: center;
    }

    main .img img {
        display: none;
    }

    /* Main servicios */
    main .contenedor-servicios {
        flex-wrap: wrap;
        justify-content: center;
        height: 800px;
    }
    
    main .articulos {
        width: 100%;
        text-align: center;
    }

    main .disenos img {
        width: 100%;
    }
}
