* {
    margin: 0;
    padding: 0;
}

main {
    margin: 20px auto;
    max-width: 1360px;
    overflow: hidden;
    color: #333333;
    font-family: Montserrat, Arial, Helvetica, sans-serif;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    /* Quitar este padding ya que solo es para testear el template en mi local */
    padding: 16px;
    /* Debe de modificarse el margin a solo auto */
}

h1 {
    color: #0066BB;
    font-size: 24px;
    font-weight: 600;
    line-height: 32px;
    text-align: center;
    margin: 32px 0;
}

h2 {
    color: #333333;
    font-size: 36px;
    font-weight: 600;
    line-height: 46px;
    margin: 0;

    & span {
        color: #EF6D00;
    }
}

h3 {
    color: #333333;
    font-size: 16px;
    font-weight: 600;
    line-height: 24px;
    margin: 0;
}

a {
    color: #0066BB;
    font-weight: 700;

    &:link {
        text-decoration: none;
    }

    &:hover {
        text-decoration: underline;
    }
}

.card-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
    overflow: hidden;
    padding: 40px 60px;

    .text-information {
        & h2 {
            margin-bottom: 20px;
        }

        & p:first-of-type {
            margin-bottom: 16px;
        }
    }

    & img:not(.background-image) {
        height: 400px;
        width: 598px;
        border-radius: 12px;
    }
}

header {
    height: 662px;
    background-image: url(https://www.cyberpuerta.mx/out/cmsp/brands/pcb-assembly-service/header-servicio-de-ensamble.png);
    background-size: cover;
    background-position: center;
    border-radius: 12px;
    display: flex;
    align-items: start;
    justify-content: center;

    & .info-container {
        display: flex;
        flex-direction: column;
        gap: 16px;
        margin-top: 56px;
        text-align: center;

        & h1 {
            color: #FFFFFF;
            font-size: 48px;
            line-height: 58px;
            margin: 0;
        }

        & p {
            color: #FFFFFF;
            font-size: 16px;
            line-height: 24px;
        }
    }
}

#subheader {
    padding: 40px 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 120px;

    & > div p {
        margin-bottom: 20px;
        max-width: 656px;
    }
}

#gamers {
    display: flex;
    margin: 40px 0;

    & img {
        flex-grow: 1;
        width: 33%;
        max-width: 442px;
        height: auto !important;
    }

    & img:first-of-type {
        border-radius: 12px 0 0 12px;
    }

    & img:last-of-type {
        border-radius: 0 12px 12px 0;
    }
}

#time-and-excellence {
    & .text-information {
        & p {
            margin-bottom: 0;

            & span {
                font-weight: 600;
            }
        }
    }
}

#reviews {
    padding-top: 40px;

    & .title {
        text-align: center;
        padding: 0 52px;

        & h2 {
            margin-bottom: 20px;
        }
    }

    & .reviews {
        display: flex;
        gap: 16px;
        margin-top: 40px;

        & .reviews-card {
            box-sizing: border-box;
            min-height: 288px;
            max-width: 430px;
            border: 1px solid #EEEEEE;
            border-radius: 8px;
            padding: 16px;
            display: flex;
            flex-direction: column;
            justify-content: space-between;

            & .message {
                display: flex;
                gap: 8px;

                & i {
                    font-size: 16px;
                    color: #128ADF;
                }

                & i:first-of-type {
                    transform: rotate(180deg);
                    align-self: self-start;
                }
                
                & i:last-of-type {
                    align-self: self-end;
                }
            }

            & .rating {
                & .stars {
                    display: flex;
                    margin-bottom: 8px;

                    & .material-icons-round {
                        color: #FF8D0A;
                        font-size: 24px;
                    }
                }

                & .user {
                    display: flex;
                    gap: 16px;
                    align-items: center;

                    & .material-icons {
                        background-color: #0066BB;
                        border-radius: 50%;
                        color: #FFFFFF;
                        display: flex;
                        justify-content: center;
                        align-items: center;
                        font-size: 20px;
                        height: 32px;
                        width: 32px;
                    }

                    & > div p {
                        font-size: 12px;
                    }

                    & > div p:first-of-type {
                        font-weight: 700;
                    }

                    & > div p:last-of-type {
                        color: #A0A0A0;
                    }
                }
            }
        }
    }
}

#build-your-dream-pc {
    margin: 40px 0;

    & .image-container {
        height: 490px;
        background-image: url(https://storage.googleapis.com/cp-shared-files/out/cmsp/brands/pcb-assembly-service/banner-servicio-de-ensamble.png);
        background-size: cover;
        background-position: center;
        border-radius: 12px;
        display: flex;
        align-items: end;
        justify-content: center;
        text-align: center;

        & > div {
            margin-bottom: 40px;

            & h1 {
                color: #FFFFFF;
                font-size: 48px;
                line-height: 58px;
            }

            & a.desktop {
                background-color: #0066BB;
                color: #FFFFFF !important;
                border: none;
                border-radius: 8px;
                padding: 12px 16px;
                max-width: max-content;
                font-family: Montserrat;
                font-size: 14px;
                font-weight: 600;
                line-height: 24px;

                &:hover {
                    background-color: #128ADF !important;
                    color: #FFFFFF !important;
                    text-decoration: none;
                }
            }
        }
    }
}

@media (max-width: 1024px) {
    .card-section {
        & img:not(.background-image) {
            height: 376px;
            width: 376px;
            object-fit: cover;
            border-radius: 12px;
        }
    }

    #assembled-pcs {
        & .background-image {
            bottom: -180px;
        }
    }
}

@media (max-width: 992px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (max-width: 768px) {
    .card-section,
    #subheader .information {
        flex-direction: column;
        padding: 20px 0;
    }

    #assembled-pcs {
        flex-direction: column-reverse;
    }

    .card-section {
        gap: 16px;
    }

    #subheader .information h2,
    #subheader .information p {
        max-width: 100%;
    }

    #subheader .information h2 {
        margin-bottom: 16px;
    }

    #gamers {
        margin: 20px 0;
    }
}

@media only screen and (max-width: 640px) {
    main {
        font-family: Montserrat, Arial, Helvetica, sans-serif;
        font-size: 12px;
        font-weight: 400;
        line-height: 16px;
    }

    h1 {
        font-size: 18px;
        line-height: 24px;
    }

    h2 {
        font-size: 18px;
        line-height: 24px;
    }

    h3 {
        font-size: 14px;
        line-height: 20px;
    }

    .card-section {
        border-radius: 8px;
        gap: 16px;

        & img:not(.background-image) {
            border-radius: 12px;
            width: 100%;
            height: 236px;
        }

        & .text-information {
            & h2 {
                margin-bottom: 16px;
            }
        }
    }

    header {
        border-radius: 8px;
        height: 104px;

        & .info-container {
            margin-left: 8px;
            gap: 0;

            & img {
                height: 32px;
            }
        
            & h1 {
                font-size: 18px;
                line-height: 24px;
                max-width: none;
            }

            & button {
                display: none;
            }
        }
    }

    #subheader {
        margin-bottom: 20px;

        & > a {
            color: #FFFFFF;
            border-radius: 8px;
            display: block;
            padding: 12px;
            text-align: center;
            background-color: #0066BB;
            margin-top: 10px;
            font-size: 14px;
        }

        & .information h2 {
            text-align: center;
        }
    }

    #gamers {
        flex-direction: column;

        & img {
            width: 100%;
            max-width: none;
            height: 130px !important;

            &:first-of-type {
                border-radius: 12px 12px 0 0;
            }

            &:last-of-type {
                border-radius: 0 0 12px 12px;
            }
        }
    }

    #assembly-experience {
        & .text-information h2 span {
            display: inline;
        }
    }

    #assembled-pcs {
        & .text-information h2 span {
            display: inline;
        }
    }

    #build-your-dream-pc {
        margin: 20px auto;

        & .image-container {
            height: 278px;

            & > div {
                margin: 20px;

                & h1 {
                    font-size: 18px;
                    font-weight: 600;
                    line-height: 24px;
                    margin: 0;
                }

                & a.desktop {
                    display: none;
                }
            }
        }

        & a.mobile {
            color: #FFFFFF;
            border-radius: 8px;
            display: block;
            padding: 12px;
            text-align: center;
            background-color: #0066BB;
            margin-top: 10px;
            font-size: 14px;
        }
    }
}