@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

:root {
    --main-color: #003045;
    --gray: #5d616dff;
    --blue: #1323e5ff;
    --max-area-content: 1300px;
    --dark-blue: #00115bff;
    --soft-gray: #d7d8daff;
    --purple-1: #717befff;
    --purple-2: #a1a7f5ff;
    --purple-3: #d0d3faff;
}

@font-face {
    font-family: 'Nimbus-Black';
    src: url('../fonts/nimbus-sans/Nimbus\ Sans\ Becker\ PBla\ Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.blue {
    color: var(--blue);
}

.blue-bg {
    background-color: var(--blue);
    color: white;
}

.dark-blue {
    color: var(--dark-blue);
}

html {
    font-family: "Montserrat", sans-serif;
    font-size: 16px;
    overflow-x: hidden;
}

body {
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

.center {
    text-align: center;
}

.justify {
    text-align: justify;
}

.wrapper {
    width: 90%;
    max-width: 1300px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

.flex {
    display: flex;
    flex-wrap: wrap;

    &.middle {
        align-items: center;
    }

    .half {
        width: 50%;
    }

    .full {
        width: 100%;
    }

    .flex-1 {
        flex: 1;
    }

    .flex-fit {
        width: fit-content;
    }
}

.container.table {
    display: table;
    width: 100%;
    height: 100lvh;

    .middle {
        display: table-cell;
        vertical-align: middle;
    }
}

img {
    width: 100%;
}

.title {
    font-family: Nimbus-Black;
    font-weight: normal;
    font-size: 3rem;
}

p.big {
    font-size: 1.5rem;
}

header {
    position: fixed;
    width: 90%;
    top: 20px;
    box-sizing: border-box;
    padding: 0 1rem;
    color: var(--gray);
    border: 1px solid var(--gray);
    max-width: 1300px;
    margin-left: 50%;
    transform: translateX(-50%);

    .global {
        align-items: center;
    }

    .logo {
        position: relative;
        width: 20%;

        img {
            width: 58%;
        }
    }

    .menu {
        flex: 1;
        text-align: right;

        li {
            display: inline-block;
            margin-left: 1rem;
            cursor: pointer;
            transform: translateY(-0.2rem);

            &.selected {
                color: var(--blue);
            }

            &:hover {
                color: var(--blue);
            }

            & .icon {
                color: var(--blue);
                border-radius: 50%;
                border: 1px solid var(--gray);
                padding: 0.4rem;
                aspect-ratio: 1/1;
                transform: translateY(0rem);

                img {
                    width: 2rem;
                    transform: translateY(0.2rem);
                }
            }
        }
    }

    &.contrast {
        -webkit-backdrop-filter: blur(40px) saturate(1);
        backdrop-filter: blur(40px) saturate(1);
        background-color: #0000000d;
        border: 1px solid hsla(0, 0%, 100%, .05);
        border-radius: 7em;
        z-index: 10000;
        overscroll-behavior: none;
    }
}

.liquid-glass {
    -webkit-backdrop-filter: blur(40px) saturate(1);
    backdrop-filter: blur(40px) saturate(1);
    background-color: #0000000d;
    border: 1px solid hsla(0, 0%, 100%, .05);
    border-radius: 7em;
    z-index: 10000;
    overscroll-behavior: none;
}

/* hero */
.hero {
    background-image: url(../img/paticulas-gcab.png);
    background-size: cover;
    background-position: center;
    height: 100lvh;
    position: relative;
    overflow: hidden;
    .title {
        font-size: 4rem;
        min-width: 600px;
    }

    .action {
        width: fit-content;
        padding: 0.6rem 1rem;
        border-radius: 3rem;
        cursor: pointer;
    }

    .flex {
        height: 100lvh;
        align-items: center;

        .half {
            position: relative;
        }
    }

    .frasco {
        position: absolute;
        top: -56%;
        height: 100lvh;
        width: auto;
        left: 41%;
    }
}

.nosotros {
    position: relative;
    padding: 1rem 0 5rem 0;
    overflow: hidden;
    .jengibre {
        position: absolute;
        width: 50%;
        right: 0;
        top: 20rem;
        transform: translateY(-50%);
    }

    .main.flex {
        padding: 12rem 0 6rem 0;
    }

    .cards {
        position: relative;
        .line {
            display: block;
            position: absolute;
            width: 100%;
            height: 2px;
            background-color: var(--gray);
            top: 7.65rem;
            left: 0rem;
        }

        .card {
            width: calc(100% / 3);
        }

        .point {
            position: relative;

            span {
                display: block;
                height: 0.7rem;
                width: 0.7rem;
                background-color: var(--gray);
                margin-left: 50%;
                border-radius: 50%;
                box-shadow: 0px 0px 0px 5px var(--soft-gray);
            }
        }
    }

}

.big-cards {
    .card {
        padding: 15rem 0;
        background-size: cover;
        background-position: center center;
        color: white;

        &:nth-child(1) {
            background-image: url(../img/bascula.png);
        }

        &:nth-child(2) {
            background-image: url(../img/polvos.webp);
        }

        &:nth-child(3) {
            background-image: url(../img/frasco-maquila.webp);
        }
    }
}

.slider {
    padding: 2rem 0;

    .content {
        .scenary {
            margin-left: auto;
            margin-right: auto;
            width: fit-content;
            width: 350px;
            position: relative;
            aspect-ratio: 1/1.6;

            .card {
                background-color: var(--blue);
                width: 100%;
                height: 100%;
                padding: 7%;
                border-radius: 3rem;
                color: white;
                position: absolute;
                top: 0;
                left: 0;

                p.big {
                    border: 1px solid white;
                    width: fit-content;
                    padding: 0.2rem 0.7rem;
                    border-radius: 2rem;
                }

                &:nth-child(1) {
                    z-index: 4;
                }

                &:nth-child(2) {
                    z-index: 3;
                    transform: rotate(-7deg);
                    background-color: var(--purple-1);
                }

                &:nth-child(3) {
                    z-index: 2;
                    transform: rotate(-14deg);
                    background-color: var(--purple-2);

                }

                &:nth-child(4) {
                    z-index: 1;
                    transform: rotate(-21deg);
                    background-color: var(--purple-3);

                }
            }
        }
    }
}

.contact {
    .title {
        padding: 0 13rem;
    }

    padding: 5rem 0;

    form {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;

        .flex {
            .group {
                width: 50%;
                position: relative;
                padding: 1rem;
                box-sizing: border-box;

                &.full {
                    width: 100%;
                }

                label,
                input {
                    width: 100%;
                }

                label {
                    font-size: 1.3rem;
                    font-weight: 600;
                }

                input {
                    font-size: 1.1rem;
                    margin: 0.8rem 0;
                    border-radius: 1rem;
                    border: 1px solid var(--blue);
                    padding: 0.3rem 1rem;
                    box-sizing: border-box;
                }
            }
        }
    }
}

footer {
    padding: 2rem 0 3rem 0;

    .wrapper .info {
        >.half:nth-child(1) {
            width: auto;
            flex: 1;
        }

        >.half:nth-child(2) {
            width: 400px;
        }
    }

    ul {
        margin: 0;
        padding: 0;
    }

    li {
        list-style: none;
        margin: 1.2rem 0;
    }

    .info {
        padding: 2rem;
        border-radius: 2rem;
        box-sizing: border-box;
    }

    .social {
        font-size: 1.2rem;
        justify-content: space-between;

        span {
            border: 1px solid white;
            border-radius: 2rem;
            padding: 0.2rem 2rem;
            cursor: pointer;
        }

        i {
            background-color: white;
            color: var(--blue);
            border-radius: 50%;
            aspect-ratio: 1/1;
            width: 2rem;
            height: 2rem;
            padding: 0.4rem 0 0 0;
            box-sizing: border-box;
            cursor: pointer;
        }
    }

    .gibby {
        background-color: white;
        color: black;
        margin: 1rem 0;
        box-sizing: border-box;
        border-radius: 2rem;
        padding: 2rem;
        font-size: 1.2rem;
        margin-left: 0rem;

        .flex {
            align-items: center;
        }

        .action {
            text-align: center;
            width: 100%;
            display: block;
            border: 1px solid var(--blue);
            color: var(--blue);
            border-radius: 1rem;
        }
    }

    .bottom {
        margin-top: -0.6rem;
        padding: 0.2rem 1rem;
        background-color: rgba(207, 207, 207, 0.3);
        box-sizing: border-box;
        border-radius: 2rem;
        box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.3);
    }
}

@media screen and (max-width: 768px) {
    h1 {
        font-size: 1.5rem;
    }

    .flex {
        .half {
            width: 100%;
        }
    }

    header {
        .menu {
            ul {
                height: 0;
                overflow: hidden;

                li {
                    display: inherit;

                    .icon {
                        width: 2rem;
                        aspect-ratio: 1/1;
                        text-align: right;
                        margin-left: auto;
                    }
                }
            }
        }

    }

    .hero {
        .flex {
            height: 70lvh;
        }

        padding-bottom: 0rem;

        .title {
            font-size: 2.5rem;
        }

        .action {
            width: max-content;
        }

        .frasco {
            position: absolute;
            top: 100%;
            height: 100lvh;
            width: 128%;
            height: auto;
            left: -29%;
        }
    }
}