:root {
    --font: "Inter", sans-serif;
    --Soft-orange: hsl(35, 77%, 62%);
    --Soft-red: hsl(5, 85%, 63%);
    --Off-white: hsl(36, 100%, 99%);
    --Grayish-blue: hsl(233, 8%, 79%);
    --Dark-grayish-blue: hsl(236, 13%, 42%);
    --Very-dark-blue: hsl(240, 100%, 5%);
}

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

html {
    font-size: 62.5%
}

body {
    position: relative;
    font-family: var(--font);
    background-color: var(--Off-white);
    padding: 1.6rem;
}

p {
    font-size: 1.45rem;
    color: var(--Dark-grayish-blue);
    line-height: 2.5rem;
}

main {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

nav {
    display: flex;
    justify-content: space-between;
    margin-block-start: 1.2rem;
}

nav .menu {
    display: none;
}

nav .menu p {
    font-size: 1.4rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

nav .menu p:hover {
    color: var(--Soft-red);
}

nav .logo {
    inline-size: clamp(4.5rem, 5vw, 6.3rem);
    block-size: clamp(2.8rem, 5vw, 4rem);
}

nav .logo-menu {
    inline-size: 4rem;
    block-size: auto;
    cursor: pointer;
}

article {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

article .image-web {
    inline-size: 100%;
}

article h1 {
    color: var(--Very-dark-blue);
    font-size: clamp(3.8rem, 5vw, 5.3rem);
    font-weight: 800;
    inline-size: 30rem;
    margin-block-end: 2.1rem;
}

article .read-more-button {
    background-color: var(--Soft-red);
    color: var(--Very-dark-blue);
    text-transform: uppercase;
    border: none;
    font-family: var(--font);
    font-size: 1.5rem;
    font-weight: 700;
    padding-inline: 3rem;
    padding-block: 1.7rem;
    text-align: center;
    inline-size: fit-content;
    letter-spacing: 0.4rem;
    margin-block-start: 2.7rem;
    cursor: pointer;
    transition: background 0.3s ease;
}

article .read-more-button:hover {
    background-color: var(--Very-dark-blue);
    color: var(--Off-white);
}

aside {
    background-color: var(--Very-dark-blue);
    padding: clamp(2rem, 5vw, 2.6rem);
    margin-block-start: 3rem;
}

aside h2 {
    color: var(--Soft-orange);
    font-size: clamp(2.4rem, 10vw, 2.9rem);
}

aside .text-container {
    border-bottom: 0.1rem solid var(--Dark-grayish-blue);
    padding-block: 3.4rem;
}

aside .text-container:last-of-type {
    border: none;
}

aside .text-container h3 {
    font-size: 1.9rem;
    color: var(--Off-white);
    text-align: left;
    font-weight: 700;
    cursor: pointer;
    transition: color 0.3s ease;
}

aside .text-container h3:hover {
    color: var(--Soft-orange);
}

aside .text-container p {
    text-align: left;
    padding-block-start: 1rem;
    font-size: 1.45rem;
    color: var(--Grayish-blue);
    font-weight: 400;
}

section {
    margin-block-start: 3rem;
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

section .card-container {
    display: flex;
    gap: 2rem;
}

section .card-container img {
    inline-size: 10.1rem;
}

section .info {
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

section .info .number {
    color: var(--Soft-red);
    font-size: 2.4rem;
    font-weight: 700;
}

section .info h4 {
    font-size: 1.7rem;
    font-weight: 800;
    cursor: pointer;
    transition: color 0.3s ease;
}

section .info h4:hover {
    color: var(--Soft-red);
}

/* Aditional clases */
.is-hidden {
    display: none;
}

/* Menu clases for JS */
.menu-displayed {
    background-color: var(--Off-white);
    position: absolute;
    right: 0;
    top: 0;
    inline-size: 25.5rem;
    block-size: 100%;
}

.menu-displayed img {
    inline-size: 3rem;
    position: absolute;
    right: 2rem;
    top: 2.5rem;
}

.menu-displayed .menu-text{
    margin-block-start: 14.6rem;
    margin-inline-start: 2.3rem;
    display: flex;
    flex-direction: column;
    gap: 1.3rem;
}

.menu-displayed .menu-text p {
    color: var(--Very-dark-blue);
    transition: color 0.3s ease;
    cursor: pointer;
}

.menu-displayed .menu-text p:hover {
    color: var(--Soft-red);
}

.close-menu {
    cursor: pointer;
}

.overlay {
    position: fixed;
    top: 0;
    left: 0;
    inline-size: 100%;
    block-size: 100%;
    background-color: black;
    opacity: 0.5;
    pointer-events: auto;
}

/* Media */
@media(min-width:76.8rem) {
    body {
        padding-inline: 16.6rem;
        padding-block: 8.4rem;
    }

    main {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 3rem;
    }

    nav {
        grid-column: 1/3;
    }

    nav .logo-menu {
        display: none;
    }

    nav .close-menu {
        display: none;
    }

    nav .menu {
        display: flex;
    }

    .menu-text {
        display: flex;
        gap: 3rem;
    }

    article {
        grid-column: 1/2;
    }

    article .web-info {
        display: flex;
        gap: 6.5rem;
    }

    article .web-info h1 {
        flex: 0 0 40%;
    }

    article .web-info p {
        line-height: 3rem;
        inline-size: 34rem;
        font-size: 1.55rem;
    }

    aside {
        grid-column: 2/3;
        margin-block-start: 0;
    }

    section {
        grid-column: 1/3;
        display: flex;
        flex-direction: row;
    }
}