@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
* {
    box-sizing: border-box;
    padding: 0; margin: 0;
}

:root {
    --linear-gradient: linear-gradient(to right, #d6fcfe8a, #D6E6FE);
    --clr-grey-500: #5E6E85;
    --clr-grey-300: #ACC1DE;
    --clr-blue-900: #253347;
    --clr-blue-500: #345FF6;
    --clr-blue-300: #B3D3F1;
    --clr-blue-100: #E1E7FE;

    --spacing-0: 0px;
    --spacing-100: 8px;
    --spacing-200: 16px;
    --spacing-300: 24px;
    --spacing-400: 32px;
    --spacing-500: 40px;
    --spacing-600: 48px;
    --spacing-700: 56px;
    --spacing-900: 72px;
    --spacing-1100: 88px;
    --spacing-1200: 96px;
    --spacing-1300: 104px;
    --spacing-1600: 128px;
    --spacing-1800: 144px;

    --fnt-size-mass-title: 48px;
    --fnt-weight-mass-title: 600;
    --line-height-mass-title: 1.1;
    --letter-spacing-mass-title: -0.05em;

    --fnt-size-mass-text: 16px;
    --fnt-weight-mass-text: 400;
    --line-height-mass-text: 1.5;
    --letter-spacing-mass-text: 0em;



    --fnt-size-form-title: 24px;
    --fnt-weight-form-title: 600;
    --line-height-form-title: 29px;
    --letter-spacing-form-title: -0.05em;

    --fnt-size-result-score: 48px;
    --fnt-size-title-what: 32px;

}


body {
    height: 100vh;
    width: 100%;
     font-family: "Inter", sans-serif;
}

.main {
    padding-top: 32px;
    padding-bottom: 32px; 
}

.container {
    width: 90%;
    margin-inline: auto;
}

.mass {
    position: relative;
}

.logo {
    width: 40px; height: 40px;
    display: block;
    margin-inline: auto;
}

.mass__texts {
    margin: var(--spacing-400) 0;
    text-align: center;
}

.mass__title {
    margin-bottom: var(--spacing-300);
    font-size: var(--fnt-size-mass-title);
    font-weight: var(--fnt-weight-mass-title);
    line-height: var(--line-height-mass-title);
    letter-spacing: var(--letter-spacing-mass-title);
    color: var(--clr-blue-900);
}

.mass__text {
    margin-bottom: var(--spacing-300);
    font-size: var(--fnt-size-mass-text);
    font-weight: var(--fnt-weight-mass-text);
    line-height: var(--line-height-mass-text);
    letter-spacing: var(--letter-spacing-mass-text);
    color: var(--clr-grey-500);
}

.mass__inputs {
    padding: var(--spacing-300);
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 10px 10px 40px var(--clr-grey-300);
}

#form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-300);
}

.form__sizes {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-200);
}

.result {
    margin-top: var(--spacing-400);
}

.form__title {
     font-size: var(--fnt-size-form-title);
    font-weight: var(--fnt-weight-form-title);
    line-height: var(--line-height-form-title);
    letter-spacing: var(--letter-spacing-form-title);
    color: var(--clr-blue-900);
}

.form__types {
    display: flex;
    flex-direction: row;
    gap: var(--spacing-200);
    justify-content: space-between;
}

.form__type {
    width: fit-content;
}

.system {
    font-size: 16px;
    line-height: 1.5;
    letter-spacing: 0;
    font-weight: 600;
    color: var(--clr-blue-900);
    margin-left: var(--spacing-200);
}

input[type='radio'], label  {display: inline-block; cursor: pointer;
    vertical-align: middle;
}

.input-radio {
    position: relative;
    appearance: none;
    border: 1px solid var(--clr-grey-500);
    width: 32px; height: 32px;
    background-color: #fff;
    border-radius: 50%;
}

 .input-radio:checked {
    background-color: var(--clr-blue-100);
    border: 1px solid transparent;
 }

 .input-radio:checked::before {
    content: '';
    border-radius: 50%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    min-width: 15px; height: 15px;
    position: absolute;
    background-color: var(--clr-blue-500);
    z-index: 1;
 }

 .form__system {
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0;
    color: var(--clr-grey-500);
    margin-bottom: 8px;
 }

 .form-input {
    padding: var(--spacing-300);
    border: 1px solid var(--clr-grey-500);
    border-radius: 12px;
    height: 77px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
 }

 .input-number {
    display: inline-block;
    height: 100%;
    border: none;
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    letter-spacing: -0.05em;
    color: var(--clr-blue-900);
    width: 100%;
    cursor: pointer
 }

 .input-number:focus {
    border: none;
    outline: none;
 }

 .metric {
    font-size: 24px;
    font-weight: 600;
    line-height: 29px;
    letter-spacing: -0.05em;
    color: var(--clr-blue-500);
 }

 .result {
    border-radius: 16px;
    background-color: var(--clr-blue-500);
    padding: 32px;
    color: #fff;
 }

 .result__is {
    font-size: 16px;
    font-weight: 600;
    line-height: 1.5;
    letter-spacing: 0;

 }

.result__score {
    font-size: var(--fnt-size-result-score);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.05em;
    margin: 8px 0 24px;
}

.result__text {
    font-weight: 400;
    line-height: 1.5;

}

.bmi {
    font-weight: 700;
}

/* Para Chrome, Safari, Edge, Opera */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Para Firefox */
input[type=number] {
  -moz-appearance: textfield;
}


.background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 600px;
    background-image: var(--linear-gradient);
    z-index: -1;
    border-radius: 0 0 35px 35px;
}

.what__img {
    display: block;
    object-fit: contain;
    width: 100%;
}


.what__texts {
    margin: 16px auto;
    width: 90%;
}

.what__title {
    color: var(--clr-blue-900);
    font-size: var(--fnt-size-title-what);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.what__text {
    color: var(--clr-grey-500);
    font-size: 16px;
    line-height: 1.5;
    font-size: 400;
    margin-top: var(--spacing-400);
}

.points {
    background-color: #e1e7fe1e;
    padding: var(--spacing-600) var(--spacing-300);
    display: flex; flex-direction: column; gap: var(--spacing-500);
}

.point {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-400);
    width: 90%;
    margin-inline: auto;
}

.point__img {
    width: 64px; height: 64px;
    display: inline-block;
    object-fit: contain;
}

.point__title {
    color: var(--clr-blue-900);
    font-weight: 600;
    font-size: 24px;
    letter-spacing: -0.05em;
    line-height: 29px;
    margin-bottom: var(--spacing-300);
}

.point__text {
    color: var(--clr-grey-500);
    font-size: 16px;
    line-height: 1.5;
    font-weight: 400;
    margin-top: var(--spacing-400);   
}

.limitations {
    margin: 16px auto;
}

.limitations__texts {
    text-align: center;
    margin-bottom: var(--spacing-700);
}


.limitations__title {
    color: var(--clr-blue-900);
    font-weight: 600;
    font-size: 20px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.limitations__bmi {
    color: var(--clr-blue-900);
    font-weight: 600;
    font-size: 32px;
    line-height: 1.1;
    letter-spacing: -0.05em;
}

.limitations__text {
    color: var(--clr-grey-500);
    font-size: 16px;
    line-height: 1.5;
    font-size: 400;
    margin-top: var(--spacing-400); 
}

.limitations__features {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-100);

}

.limitations__feature {
    padding: var(--spacing-300);
    box-shadow: 5px 5px 20px var(--clr-blue-100);
    border-radius: 16px;
}

.limitations-content {
    display: flex;
    align-items: center;
    gap: var(--spacing-200);
}

.limitations__img {
    object-fit: contain;
}

.form__imperial {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.imperial-content {
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.form-block {
    flex-grow: 1;
}

.form-content:last-child {
    margin-top: 8px;
}

.imperial-content:last-child {
    margin-top: 8px;
}

.welcome {
    font-size: 24px;
}


@media screen and (min-width: 768px) {
    .mass__text {
        margin: var(--spacing-500) auto;
    }

    .form__types {
        justify-content: flex-start;
    }

    .form__type {
        flex-grow: 1;
    }

    .form__sizes {
        flex-direction: row;
        gap: 24px;
    }

    .mass__inputs {
        padding: var(--spacing-400);
    }

    #form {
        gap: var(--spacing-400);
    }

    .result__score {
        margin: 0;
    }

    /* esto se va a moficiar */
    .result {
        border-radius: 16px 150px 150px 16px / 16px 120px 120px 16px;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .result-content {
        flex-grow: 1;
    }

    .result__text {
        flex-grow: 1;
    }

    .result__score {
        margin-top: var(--spacing-100);
    }

    .what {
        display: flex;
        margin: 100px auto 54px;
        width: 90%;
        align-items: center;
    }

    .what__texts {
        margin: 0;
        width: fit-content;
    }

    .what__img {
        display: block;
        width: 435px;
        height: 435px;
        object-fit: contain;
        transform: translateX(-20%);
    }

    .point {
        flex-direction: row;
        align-items: center;
    }

    .point__texts {
        width: 582px;
    }

    .limitations {
        margin-top: var(--spacing-700);
    }

    .limitations__features {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .limitations__feature {
        width: 335px;
        padding: 32px;
        margin-bottom: 8px;
    }

    .form__imperial {
        display: flex;
        flex-direction: column;
        gap: 32px;
    }

    .imperial-content {
        display: flex;
        align-items: flex-end;
        gap: 24px;
    }
}

@media screen and (min-width: 1024px) {
    :root {
        --fnt-size-mass-title: 64px;
        --fnt-size-result-score: 64px;
        --fnt-size-title-what: 48px;
    }

    .background {
        position: absolute;
        width: 1000px;
        height: 600px !important;
    }

    .mass {
        padding-top: 144px;
    }

    .what {
        width: 100%;
        align-items: center;
        justify-content: space-evenly;
        gap: 72px;
    }

    .mass {
        display: flex;
        gap: 24px;
        align-items: flex-start;
    }

    .mass-content {
        max-width: 465px;
        transform: translateY(-20%);
    }

    .logo {
        margin-inline: 0;
    }

    .mass__texts {
        text-align: start;
    }

    .mass__inputs {
        max-width: 564px;
        height: auto;
        padding: var(--spacing-400);
    }

    .result {
        max-height: 166px;
    }

    .background {
        width: 60%;
        height: 90%;
    } 

    .what {
        padding-right: 100px;
    }
    
    .what__img {
        transform: translate(0, -5%);
        height: 540px;
        padding-left: 144px;
        width: 564px;
    }

    .what__texts {
        max-width: 100%;
        width: 100%;
    }

    .what__text {
        width: 100%;
    }

    .points {
        flex-direction: row;
        justify-content: space-evenly;
        padding: 128px 100px 128px 128px;
    }

    .point {
        flex-direction: column;
        align-items: flex-start;
        width: 365px;
        flex-grow: 1;
    }

    .point__texts {
        max-width: 100%;
        width: 100%;
        }


    .point__text {
        max-width: 100%;
        width: 100%;
        }


    .limitations__bmi {
        font-size: 48px;
    }

    .limitations__texts {
        position: absolute;
        top: 5%; left: 5%;
        text-align: start;
        width: 550px;
    }

    .limitations {
        position: relative;
        width: 100%; height: 1000px;
    }

    .limitations__features {
        height: 100%;
        width: 100%;
        position: absolute;
        top: 0; right: 0;
    }

    .limitations__feature {
        position: absolute;
    }


    .gender {
        top: 5%; right: 5%;
        width: 365px;
        height: 232px;
    }

    .age {
        width: 365px; height: 232px;
        top: 30%; right: 38%;
    }

    .muscle {
        width: 365px; height: 232px;
        top: 30%; right: 2%;
    }

    .pregnancy {
        width: 365px; height: 232px;
        top: 55%; right: 50%;
    }

    .race {
        width: 365px; height: 232px;
        top: 55%; right: 12%;
    }

    .form__imperial {
        gap: 24px;
    }

    

}