@import "fonts.css";

:root {
    --black: #4A4C4B;
    --red: #D00814;
    --red-button: #D00713;
    --light-red: #FE000D;
    --blue: #3B5387;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Open-sans, serif;
    color: var(--black);
}

body {
    position: relative;
    min-height: 100vh;

    &::before {
        position: absolute;
        content: "";
        top: 0;
        left: 0;
        bottom: 0;
        width: 100%;
        background-image: url("../images/stripes/big-strip.svg");
        background-repeat: no-repeat;
        background-size: auto 100%;
    }

    @media screen and (max-width: 1024px) {
        &:before {
            background-image: url("../images/stripes/small-strip.svg");
        }
    }

    &::after {
        position: absolute;
        content: "";
        right: 0;
        bottom: 0;
        width: 439px;
        height: 395px;
        background-image: url("../images/decoration.svg");
        background-repeat: no-repeat;
        background-size: auto 100%;
    }

    @media screen and (max-width: 425px) {
        &::after {
            width: calc(439px * 0.5);
            height: calc(395px * 0.5);
        }
    }

    @media screen and (min-width: 425px) and (max-width: 500px) {
        &::after {
            width: calc(439px * 0.6);
            height: calc(395px * 0.6);
        }
    }

    @media screen and (min-width: 500px) and (max-width: 768px) {
        &::after {
            width: calc(439px * 0.5);
            height: calc(395px * 0.5);
        }
    }

    @media screen and (min-width: 769px) and (max-width: 1024px) {
        &::after {
            width: calc(439px * 0.9);
            height: calc(395px * 0.9);
        }
    }

    @media screen and (min-width: 1024px) and (max-width: 1199px) {
        &::after {
            width: calc(439px * 0.25);
            height: calc(395px * 0.25);
        }
    }

    @media screen and (min-width: 1200px) and (max-width: 1399px) {
        &::after {
            width: calc(439px * 0.5);
            height: calc(395px * 0.5);
        }
    }

    @media screen and (min-width: 1400px) and (max-width: 1690px) {
        &::after {
            width: calc(439px * 0.6);
            height: calc(395px * 0.6);
        }
    }

    @media screen and (min-width: 1920px) {
        &::after {
            width: calc(439px * 1.2);
            height: calc(395px * 1.2);
        }
    }
}


img {
    max-width: 100%;
    height: auto;
}

.jump {
    position: absolute;
    top: 0;
    left: 56px;
    z-index: 1;

    @media screen and (max-width: 1024px) {
        display: none;
    }
}

header {
    position: relative;
    padding: 50px 0;
    margin-left: 415px;

    a {
        display: inline-block;

        @media screen and (max-width: 768px) {
            width: 70%;
        }
    }

    &::after {
        position: absolute;
        content: "";
        right: 60px;
        bottom: -30px;
        width: 171px;
        height: 171px;
        background: url("../images/croquettes/big/blue-pastel-croquette.png") no-repeat;
    }

    @media screen and (max-width: 768px) {
        &::after {
            width: 41px;
            height: 41px;
            right: 50px;
            bottom: -5px;
            background: url("../images/croquettes/small/blue-pastel-croquette.png") no-repeat;
        }
    }

    @media screen and (max-width: 1024px) {
        margin-left: 100px;
    }

    @media screen and (min-width: 1850px) {
        &::after {
            position: absolute;
            content: "";
            right: 200px;
        }
    }
}

section {
    position: relative;
    width: fit-content;
    margin-left: 500px;

    text-align: center;

    padding: 0 60px;

    &::before {
        position: absolute;
        content: "";
        left: 0;
        bottom: 0;
        width: 162px;
        height: 161px;
        background: url("../images/croquettes/big/yellow-croquette.png") no-repeat;
    }

    @media screen and (max-width: 376px) {
        &::before {
            left: 45px;
            bottom: 200px;
            width: 42px;
            height: 42px;
            background: url("../images/croquettes/small/yellow-croquette.png") no-repeat;
        }
    }

    @media screen and (min-width: 376px) and (max-width: 425px) {
        &::before {
            left: 45px;
            bottom: 100px;
            width: 42px;
            height: 42px;
            background: url("../images/croquettes/small/yellow-croquette.png") no-repeat;
        }
    }

    @media screen and (min-width: 425px) and (max-width: 500px) {
        &::before {
            left: 45px;
            bottom: 100px;
            width: 42px;
            height: 42px;
            background: url("../images/croquettes/small/yellow-croquette.png") no-repeat;
        }
    }

    @media screen and (min-width: 500px) and (max-width: 768px) {
        &::before {
            left: 45px;
            bottom: 100px;
        }
    }


    @media screen and (max-width: 1024px) {
        text-align: left;
        margin-left: 85px;
        padding: 0 25px 0 0;
    }

    @media screen and (min-width: 1600px) {
        margin-left: 600px;
    }

    @media screen and (min-width: 1850px) {
        margin-left: 675px;
    }

    @media screen and (min-width: 2000px) {
        margin-left: 750px;
    }

    @media screen and (min-width: 2200px) {
        margin-left: 1000px;
    }

    article {
        width: fit-content;
        align-self: flex-start;

        letter-spacing: -1px;

        h1 {
            font-weight: 300;
            font-size: 60px;

            .title-agilicio {
                font-weight: 700;
            }

            .title-webnet {
                color: var(--red);
                font-weight: 700;
            }

            margin-bottom: 20px;

            @media screen and (max-width: 1200px) {
                font-size: 50px;
                line-height: 50px;
            }
        }

        h2 {
            font-weight: 700;
            font-size: 24px;

            color: var(--blue);

            span {
                font-weight: 400;
                color: inherit;
            }

            margin-bottom: 20px;

            @media (max-width: 426px) {
                br {
                    display: none;
                }
            }

            @media screen and (max-width: 1200px) {
                font-size: 20px;
            }
        }

        p {
            margin-bottom: 20px;
            font-weight: 600;
        }

        @media (max-width: 426px) {
            p {
                br {
                    display: none;
                }
            }
        }

        .cta {
            padding: 12px 16px;
            background: var(--red-button);
            border-radius: 6px;
            color: white;
            text-decoration: none;
            display: inline-block;
            min-width: 200px;
            margin-top: 20px;
            font-weight: 600;
            text-align: center;
            transition: .3s background-color;

            &:hover {
                background-color: var(--light-red);
            }
        }

        ul {
            list-style: none;
            display: grid;
            grid-template-columns: repeat(2, 1fr);
            grid-gap: 40px;
            font-weight: 700;


            li:first-child {
                text-align: right;
            }

            li:last-child {
                text-align: left;
            }

            margin-top: 150px;
            margin-left: 47px;

            @media screen and (max-width: 1024px) {
                grid-template-columns: repeat(1, 1fr);

                li:first-child {
                    text-align: left;
                }

                margin-top: 30px;
                margin-left: 0px;

                grid-gap: 20px;

            }

            @media screen and (min-width: 1024px) and (max-width: 1200px) {
                margin-top: 80px;
            }

            @media screen and (max-width: 1024px) {
                padding-bottom: 300px;
            }
        }
    }
}

