:root {
    font-size: 62.5%;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-size: 1.6rem;
    font-family: "Open Sans";
}

#app {
    max-width: 112rem;
    margin: 8.8rem auto 4.8rem;
    padding-inline: 6.4rem;
}

img {
    max-width: 100%;
    border-radius: 2.8rem;
}

.bar {
    border: 1.5px solid #E1624F;
    width: 5.2rem;
}

.before-heading-p {
    color: #E1624F;
    text-transform: uppercase;

    font-weight: 700;
    line-height: 22px;
}

header h1 {
    font-weight: 700;
    font-size: 3.6rem;
    line-height: 4.9rem;

    color: #1B1B1B;
}

header .hero-grid-layout {
    display: grid;
    grid-template-columns: 5fr 2fr;
    gap: 3.2rem;

    margin-top: 4.4rem;
}

header .hero-grid-layout p {
    margin-top: 2.4rem;
    font-style: italic;
}

header a {
    position: relative;

    display: block;
    margin-top: 2.8rem;
    padding: 8px 1.6rem;
    width: 14.8rem;

    border: 2px solid #E1624F;
    color: #E1624F;

    border-radius: 2.4rem;

    font-size: 1.4rem;
    font-weight: 700;
    font-style: normal;
    text-decoration: none;
    text-transform: uppercase;

    transition: all .3s;
}

header a:hover {
    border: 2px solid #ffffff;
    background-color: #e1624fd0;
    color: #fff;
}

header a span+span {
    font-weight: initial;

    margin-left: .8rem;
    position: absolute;
    animation: .6s linear 1s infinite alternate learnmore;
}

.divider {
    border: 1px solid #e2e2e2;
    margin-top: 4rem;
}

.primary-article {
    margin-top: 6.4rem;
}

article h2 {
    font-weight: 700;
    font-size: 3.2rem;
    line-height: 4.4rem;

    color: #1B1B1B;
}

article h3 {
    margin-bottom: 16px;
}

article h3 span {
    font-weight: 700;
    color: #E1624F;
}

section+section {
    margin-top: 7.2rem;
    display: flex;
    gap: 3.2rem;
}

article section img {
    max-width: 65rem;
    object-fit: cover;
}

article section:nth-child(even) img {
    order: 1;
}

section div p {
    margin-top: 8px;
    line-height: 2.2rem;

    color: #333333;
}

section div ul {
    margin-top: 1.6rem;
    list-style: none;
}

section div ul li span {
    font-weight: bolder;
    color: #E1624F;
}

.secundary-article {
    margin-top: 4rem;
    text-align: center;

    color: #333333;
}

footer {
    margin-top: 6.4rem;
    text-align: center;
}

footer a {
    font-weight: 600;
    text-decoration: none;
    color: #1B1B1B;
    padding-bottom: 1px;
    border-bottom: 1px solid #1B1B1B;
}

@media (max-width: 1024px) {

    section+section {
        display: grid;
        grid-template-columns: 3fr 3fr;
        gap: 3.2rem;
    }

    article section img {
        width: 100%;
        height: 100%;

        object-fit: cover;
    }
}

@media (max-width: 820px) {
    header .hero-grid-layout {
        grid-template-columns: 1fr;
        gap: 3.2rem;
    }

    header a {
        display: none;
    }

    header p:nth-child(2) {
        margin-top: 8px;
    }

    section+section {
        display: block;
        margin-top: 4.8rem;
    }

    section .bar {
        display: none;
    }

    .sm-bar {
        margin: 2.4rem auto 0;
        border: 1px solid #E1624F;
        width: 5.2rem;
    }


    section+section img {
        max-width: 100%;
        margin-bottom: 1.6rem;
    }

}

@keyframes learnmore {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(.8rem);
    }
}