@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');
:root{
    /* ### Primary */

    --Red: hsl(0, 100%, 74%);
    --Red-Shadow: hsla(0, 34%, 46%, 0.5);
    --Green: hsl(154, 59%, 51%);
    --Green-Shadow: hsla(154, 59%, 91%, 0.5);

    /* ### Accent */

    --Blue: hsl(248, 32%, 49%);
    --Blue-Shadow: hsla(248, 32%, 49%,0.50);

    /* ### Neutral */

    --Dark_Blue: hsl(249, 10%, 26%);
    --Grayish_Blue: hsl(246, 25%, 77%);
}
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body{
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    background-color: var(--Red);
    background-image: url("images/bg-intro-mobile.png");
    color: white;
}
.main-container{
    width: 330px;
    margin: 96px auto 40px;
}
h1{
    width: 235px;
    font-size: 1.7em;
    line-height: 38px;
    margin: -10px auto 16px;
}
.description{
    text-align: center;
    margin: 0 10px 68px;
}
.offer{
    background-color: var(--Blue);
    width: 330px;
    height: 90px;
    padding: 22px 75px;
    border-radius: 10px;
    text-align: center;
    font-weight: 400;
    margin-bottom: 20px;
    box-shadow: 0 6px 0 var(--Blue-Shadow);
}
.offer span{
    font-weight: 700;
}
.form-container{
    background-color: white;
    border-radius: 10px;
    padding: 24px;
    box-shadow: 0 6px 0 var(--Red-Shadow);
}
input{
    width: 100%;
    height: 55px;
    margin: 0 0 18px;
    border-radius: 5px;
    border: 1px solid var(--Grayish_Blue);
    padding-left: 20px;
    outline: none;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}
input:focus{
    border: 1px solid var(--Blue);
}
input[type="submit"]{
    background-color: var(--Green);
    color: white;
    text-transform: uppercase;
    font-size: 1em;
    font-weight: 400;
    border: none;
    box-shadow: 0 3px 0 var(--Green-Shadow);
}
input[type="submit"]:hover{
    cursor: pointer;
    background-color: hsl(154, 59%, 51%,0.6);
}
.error-container{
    position: relative;
}
.icon-error{
    position: absolute;
    right: 15px;
    top: -45px;
}
.error{
    color: var(--Red);
    font-style: italic;
    text-align: right;
    font-size: 12px;
    margin: -12px 0 18px;
}
.terms{
    color: var(--Grayish_Blue);
    font-size: 0.7em;
    margin: 0 14px;
    text-align: center;
}
.terms a{
    color: var(--Red);
    text-decoration: none;
    font-weight: 700;
}
/*FOOTER  ---------------------------------*/
.attribution {
    font-size: 14px;
    text-align: center;
    margin-bottom: 20px;
}

.attribution a {
    color: hsl(228, 45%, 44%);
}

/*VISTA DE ESCRITORIO --------------------------*/
@media only screen and (min-width:1120px) {
    body{
        background-image: url("images/bg-intro-desktop.png");
    }
    .main-container{
        display: flex;
        width: 1114px;
    }
    h1{
        font-size: 3em;
        width: 414px;
        line-height: 55px;
        margin-bottom: 30px;
        margin-left: 0;
    }
    .description{
        text-align: left;
        margin-left: 0;
    }
    section:nth-child(1){
        padding-top: 200px;
        width: 570px;
    }
    section:nth-child(2){
        width: 540px;
    }
    .offer{
        width: 100%;
        height: 60px;
    }
}