@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Lexend+Deca:wght@100..900&display=swap');

:root {
    --Very-dark-blue-main-background: hsl(233, 47%, 7%);
    --Dark-desaturated-blue-card-background: hsl(244, 38%, 16%);
    --Soft-violet-accent: hsl(277, 64%, 61%);
    --White-main-heading-stats: hsl(0, 0%, 100%);
    --Slightly-transparent-white-main-paragraph: hsla(0, 0%, 100%, 0.75);
    --Slightly-transparent-white-stat-headings: hsla(0, 0%, 100%, 0.6);
  }

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

body{
    background-color: var(--Very-dark-blue-main-background);
    font-family: 'Inter', sans-serif;
    color: var(--White-main-heading-stats);  
    display: flex;
    justify-content: center;
    align-items: center;
    
}


.main-container{
    display: flex;
    width: 1100px;
    border-radius: 8px;
    background-color: var(--Dark-desaturated-blue-card-background);
    overflow: hidden;
    margin-top: 150px;
}

.primera-seccion{
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 50%;
    padding: 70px;
}



.card-title{
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
}

span{
    color: var(--Soft-violet-accent);
}

.parrafo{
    font-size: 1rem;
    color: var(--Slightly-transparent-white-stat-headings);
    line-height: 25px;
    margin-bottom: 60px;
}

.card-stats{
    display: flex;
    font-weight: 400;
    width: 90%;
    justify-content: space-between;
    margin-top: 20px;
}

.stats h2{
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 10px;
}

.stats p{
    font-size: .8rem;
    font-weight: 400;
    text-transform: uppercase;
    color: var(--Slightly-transparent-white-stat-headings);
    font-family: "Lexend Deca", sans-serif;
}

.segunda-seccion{
    position: relative;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}


.img-desktop{
    
    width: 100%;
    border-radius: 0px 10px 10px 0;
    height: 100%;
}

.background{
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    right: 0;
    background-color: hsla(277, 76%, 32%, 0.674);
}

@media (max-width: 768px){
    .main-container{
        width: 375px;
        flex-direction: column-reverse;
        margin-top: 0;
    }

    .primera-seccion{
        width: 100%;
        padding: 40px;
    }

    .segunda-seccion{
        width: 100%;
    }

    .img-desktop{
        border-radius: 10px 10px 0 0;
    }

    .card-title{
        text-align: center;
        font-size: 1.9rem;
        line-height: 35px;
    }

    .parrafo{
        text-align: center;
        font-size: .95rem;
        width: 90%;
        line-height: 25px;
        margin-bottom: 30px;
    }

    .card-stats{
        flex-direction: column;
        align-items: center;
        text-align: center;
        line-height: 15px;
        gap: 30px;
    }

    .stats h2{
        font-size: 1.2rem;
    }
    
}
