
html{
    scroll-behavior: smooth;
}

#contProduct{
    position: fixed;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    background-color: rgba(0,0,0,0.3);
    z-index: 199;
    .modal{
        position: relative;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 2rem 0;
        height: auto;
        width: 50%;
        background-color: #fff;
        border-radius: 5px;
        color: var(--main);
        h3{
            letter-spacing: 1px;
        }
        .img{
            height: auto;
            width: 40%;
            aspect-ratio: 1/1;
            border: 1px solid var(--main);
            border-radius: 5px;
            background-size: contain;
            background-position: center;
            filter: brightness(110%);
            background-repeat: no-repeat;
        }
        .tachita{
            position: absolute;
            left: 10px;
            top: 10px;
            font-size: 18px;
            background: unset;
            border: unset;
        }
        #btnBuy{
            margin-top: 12px;
            width: 80%;
            cursor: pointer;
            padding: 8px;
            color: #fff;
            border-radius: 5px;
            border: unset;
            background-color: var(--main);
        }
    }
}

#desc{
    text-align: center;
    text-wrap: balance;
    line-height: 24px;
    font-size: 0.8rem;
    width: 90%;
}

body{
    height: auto;
    min-height: 100vh;
    background-color: var(--main);
    background: linear-gradient(var(--main), var(--main2));
}

header{
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
    /*background: unset;*/
    /*--gap: 90px;*/
    /*--line: 1px;*/
    /*--color: rgba(239, 253, 40, 0.4);*/

    /*background-image: linear-gradient(*/
    /*  -90deg,*/
    /*  transparent calc(var(--gap) - var(--line)),*/
    /*  var(--color) calc(var(--gap) - var(--line) + 1px),*/
    /*  var(--color) var(--gap)*/
    /*),*/
    /*linear-gradient(*/
    /*  0deg,*/
    /*  transparent calc(var(--gap) - var(--line)),*/
    /*  var(--color) calc(var(--gap) - var(--line) + 1px),*/
    /*  var(--color) var(--gap)*/
    /*);*/
    /*background-size: var(--gap) var(--gap);*/

    /*animation: moveBg 5s infinite linear;*/
    video{
        position: absolute;
        width: 100%;
    }
    h1{
        color: #fff;
        font-weight: 800;
        text-shadow: 4px 4px 10px rgba(0, 0, 0, 0.6);
        font-size: 3rem;
        width: 50%;
        text-align: center;
        letter-spacing: 2px;
        z-index: 99;
    }
}

@keyframes moveBg{
    0%{
        background-position-x: 0px;
    }

    100%{
        background-position-x: 90px;
    }
}


#logo{
    position: absolute;
    top: 32px;
    left: 32px;
    filter: drop-shadow(4px 4px 4px rgba(0,0,0,0.6));
}

#mainImg{
    transform: scale(1.8);
}

.socials{
    position: absolute;
    top: calc(50% - 64px);
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    cursor: pointer;
    .blue{
        color: rgb(65, 116, 244);
    }
    .blue:hover{
        color: #fff;
        background-color: rgba(65, 116, 244);
    }
    .pink{
        color: rgb(255, 24, 136);
    }
    .pink:hover{
        color: #fff;
        background-color: rgba(255, 24, 136);
    }
    .green{
        color: rgb(0, 175, 0);
    }
    .green:hover{
        color: #fff;
        background-color: rgba(0,175,0);
    }
}

.social{
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 45px;
    width: auto;
    aspect-ratio: 1/1;
    background-color: #fff;
    border-radius: 50%;
    font-size: 1.2rem;
    transition: all 0.2s;
}

#mainImg{
    margin-top: 128px;
}

.bottomGrass{
    transform: translateY(80px);
    height: 200px;
    width: 95%;
    background-image: url(../Images/cesped.webp);
    background-size: contain;
    filter: brightness(190%);
}

.line{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transform: rotate(30deg);
    position: absolute;
    left: -120px;
    bottom: 100px;
    height: 60px;
    width: 100%;
    background-color: var(--yellow);
    color: var(--orange);
    font-weight: 900;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-wrap: nowrap;
    p{  
        position: absolute;
        animation: pacmanEffect 8s infinite linear;
    }
}

@keyframes pacmanEffect{
    0%{
        left: -30%;
    }

    100%{
        left: 100%;
    }
}

main{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    background-color: #fff;
    color: var(--main);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    padding-inline: 32px;
    padding-bottom: 64px;
    box-sizing: border-box;
    h2{
        margin: 62px 0;
        font-weight: 400;
        letter-spacing: 1px;
        text-align: center;
        padding-inline: 32px;
    }
}

#listItems{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 90%;
    gap: 32px;
    margin-bottom: 64px;
    .item{
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 500px;
        width: 20%;
        background-color: var(--main);
        border-radius: 10px;
        border: 5px solid var(--lime);
        transition: all 0.12s ease;
        box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
        cursor: pointer;
        img{
            filter: brightness(125%);
        }
        &:hover{
            border-color: var(--yellow);
            transform: scale(102%);
            box-shadow: 8px 8px 7px rgba(0, 0, 0, 0.3);
        }
        .itemContent{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            flex: 1;
            color: #fff;
            text-align: center;
            h3{
                font-size: 1.5rem;
                letter-spacing: 1px;
            }
        }
        &:hover button{
            background-color: var(--yellow);
            transform: scale(102%);
        }
        button{
            height: 40px;
            width: 100%;
            color: var(--main);
            font-weight: 600;
            letter-spacing: 1px;
            background-color: var(--lime);
            border: unset;
            transition: all 0.12s ease;
        }
    }
}


.nosotros{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
    width: 100%;
    background-color: var(--yellow);
    h2{
        font-weight: 700;
        letter-spacing: 1px;
        color: var(--main);
    }
    p{
        text-align: center;
        width: 90%;
        color: var(--main);
        font-weight: 500;
        font-size: 1.2rem;
    }
    .nosotrosText{
        padding: 6rem 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 80%;
        text-align: center;
    }
    .imgNosotros{
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 300px;
        width: 100%;
        background-image: url(../Images/nosotros.jpg);
        background-size: cover;
        background-position: center;
        p{
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            margin: 0;
            height: 100%;
            width: 100%;
            padding-inline: 20%;
            box-sizing: border-box;
            color: #fff;
            font-weight: 600;
            letter-spacing: 1px;
            background-color: rgba(0, 0, 0, 0.4);
        }
    }
}

.contactSection{
    padding-top: 32px;
    padding-bottom: 64px;
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: var(--main);
    width: 100%;
    box-shadow: inset 1px 1px 20px rgba(0, 109, 0, 0.5);
    text-align: center;
    .cYellow{
        width: 90%;
    }
    h3{
        font-size: 2rem;
        color: var(--yellow);
        font-weight: 500;
    }
    .imp{
        height: 30px;
        border-radius: 5px;
        padding: 8px;
        width: 100%;
        border: 1px solid var(--yellow);
        background-color: var(--main2);
        color: #fff;
    }
    .impRow{
        color: #fff;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 8px;
        width: 90%;
        font-weight: 600;
        user-select: none;
        label{
            letter-spacing: 1px;
            cursor: pointer;
        }
    }
    button{
        margin-top: 32px;
        padding: 16px 0;
        cursor: pointer;
        width: 70%;
        background-color: var(--yellow);
        color: var(--main2);
        border: 1px solid var(--yellow);
        border-radius: 5px;
        font-weight: 550;
        transition: all 0.2s ease;
    }
    button:hover{
        color: var(--yellow);
        background-color: var(--main2);
    }

}

.topContact{
    padding: 3rem 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: 70%;
}

.leftContact{
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    width: 50%;
    gap: 8px;
}

.rightContact{
    display: flex;
    flex-direction: column;
    height: 100%;
    width: 40%;
    gap: 16px;
}

@media(max-width:1300px){
    #listItems{
        gap: 18px;
        .item{
            height: 400px;
            img{
                height: 50%;
            }
        }
    }
}

@media(max-width:1000px){

    header{
        video{
            height: 150%;
            width: auto;
        }
    }

    #logo{
        top: 104px;
        height: 90px;
    }

    #mainImg{
        transform: scale(1.2);
    }

    #listItems{
        gap: 16px;
        .item{
            width: 45%;
        }
    }
}

@media(max-width:800px){

    .nosotros{
        .imgNosotros{
            height: auto;
            p{
                padding: 6rem 32px;
                height: auto;
                box-sizing: border-box;
                background-color: rgba(0, 0, 0, 0.6);
            }
        }
    }

    header{
        h1{
            width: 90%;
            font-size: 2.3rem;
        }
    }

    .socials{
        top: unset;
        bottom: 128px;
    }

    #logo{
        top: 94px;
        height: 90px;
    }

    main{
        padding-inline: 8px;
    }

    #listItems{
        gap: 8px;
        .item{
            margin-top: 16px;
            width: 45%;
        }
    }

    #contProduct{
        .modal{
            width: 80%;
        }
    }

    .topContact{
        width: 90%;
    }

    .contactSection{
        button{
            width: 90%;
        }
    }

}

@media(max-width:500px){

    header{
        video{
            height: 100%;
            width: auto;
        }
    }

    #contProduct{
        .modal{
            width: 90%;
        }
    }

    .topContact{
        flex-direction: column;
    }

    h1{
        margin-top: -42px;
    }

    .socials{
        bottom: 64px;
        z-index: 99;
    }

    .rightContact{
        margin-top: 32px;
        width: 100%;
    }

    .leftContact{
        width: 100%;
        .cYellow{
            margin-top: 0;
            width: 70%;
        }
        .imp{
            height: 40px;
            box-sizing: border-box;
        }
    }

    .line{
       width: 150%;
        bottom: 50px;
        p{
            text-wrap: nowrap;
        }
    }

    main{
        padding: 0;
    }

    #logo{
        height: 200px;
        right: unset;
        left: unset;
        top: 20px;
    }

    #mainImg{
        margin-top: 256px;
        transform: scale(0.9);
    }

    #listItems{
        gap: 0px;
        .item{
            height: auto;
            width: 45%;
            img{
                margin-top: 12px;
                height: auto;
                width: 60%;
            }
            .itemContent{
                h3{
                    width: auto;
                    font-size: 1rem;
                    margin-bottom: 0;
                }
                font-size: 0.8rem;
            }
        }
    }
    .nosotros{
        .nosotrosText{
            text-align: center;
            width: 90%;
            p{
                font-size: 1rem;
            }
        }
    }

    .contactSection{
        form{
            .imp{
                width: 90%;
            }
        }
    }

}