/*==========================
    RESET
==========================*/

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

html{

    scroll-behavior:smooth;

}

body{

    font-family:'Poppins',sans-serif;

    background:#eef3fa;

    color:#222;

    min-height:100vh;

    display:flex;

    flex-direction:column;

}

/*==========================
    FONDO
==========================*/

.background{

    position:fixed;

    inset:0;

    background:linear-gradient(
        135deg,
        #4f8dfd,
        #6fb8ff
    );

    z-index:-2;

}

.background::after{

    content:"";

    position:absolute;

    inset:0;

    background:rgba(255,255,255,.82);

}

/*==========================
    CONTENEDOR
==========================*/

.container{

    width:min(1000px,92%);

    margin:40px auto;

    flex:1;

}

/*==========================
    HEADER
==========================*/

header{

    text-align:center;

    margin-bottom:35px;

}

.logo{

    font-size:55px;

    margin-bottom:10px;

}

header h1{

    font-size:2.2rem;

    color:#2058d4;

    margin-bottom:10px;

}

header p{

    color:#555;

    max-width:650px;

    margin:auto;

    line-height:1.7;

}

/*==========================
    TABS
==========================*/

.tabs{

    display:flex;

    justify-content:center;

    gap:15px;

    flex-wrap:wrap;

    margin-bottom:25px;

}

.tab{

    border:none;

    cursor:pointer;

    background:white;

    padding:13px 25px;

    border-radius:12px;

    font-size:16px;

    transition:
        .25s;

    box-shadow:
        0 5px 12px rgba(0,0,0,.08);

}

.tab:hover{

    transform:
        translateY(-3px);

    box-shadow:
        0 10px 22px rgba(0,0,0,.15);

}
.tab.active{

    background:#2f73ff;

    color:white;

    transform:translateY(-2px);

    box-shadow:
        0 10px 20px rgba(47,115,255,.35);

}

/*==========================
    TARJETAS
==========================*/

.card{

    background:white;

    border-radius:18px;

    padding:28px;

    margin-bottom:25px;

    box-shadow:0 12px 30px rgba(0,0,0,.08);

}

.card h2{

    color:#2564e9;

    margin-bottom:20px;

}

/*==========================
    INPUTS
==========================*/

.inputs{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:20px;

}

.input-group{

    display:flex;

    flex-direction:column;

}

.input-group label{

    margin-bottom:8px;

    font-weight:600;

}

.input-group input{

    padding:14px;

    border:2px solid #d8d8d8;

    border-radius:10px;

    font-size:16px;

    transition:.25s;

}

.input-group input:focus{

    outline:none;

    border-color:#4285ff;

}

/*==========================
    BOTON
==========================*/

.btn{

    margin-top:25px;
    width:100%;

    padding:15px;

    border:none;
    border-radius:12px;

    cursor:pointer;

    background:#2d74ff;

    color:white;

    font-size:17px;
    font-weight:600;

    transition:
        transform .25s,
        box-shadow .25s,
        background .25s;

    box-shadow:
        0 8px 20px rgba(45,116,255,.35);

}

.btn:hover{

    transform:
        translateY(-4px)
        scale(1.02);

    background:#195de4;

    box-shadow:
        0 15px 30px rgba(45,116,255,.45);

}
.btn:active{

    transform:
        scale(.96);

}

/*==========================
    RESULTADO
==========================*/

#resultado{

    font-size:30px;

    font-weight:bold;

    color:#2564e9;

    text-align:center;

    padding:20px;

}

#pasos{

    line-height:1.8;

    white-space:pre-wrap;

    color:#555;

}

/*==========================
    CONTENT
==========================*/

.content{

    display:none;

}

.content.active{

    display:block;

    animation:fade .3s;

}

@keyframes fade{

    from{

        opacity:0;

        transform:translateY(10px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================
    FOOTER
==========================*/

footer{

    text-align:center;

    padding:25px;

    color:#666;

    font-size:14px;

}

.username{

    margin-top:4px;

    font-size:10px;

    color:#888;

    letter-spacing:1px;

    text-align:center;

    user-select:none;

}

/*==========================
    RESPONSIVE
==========================*/

@media(max-width:700px){

    .inputs{

        grid-template-columns:1fr;

    }

    header h1{

        font-size:1.8rem;

    }

    .card{

        padding:20px;

    }

    .logo{

        font-size:42px;

    }

    #resultado{

        font-size:24px;

    }

}

@media(max-width:420px){

    .tab{

        width:100%;

    }

    header h1{

        font-size:1.5rem;

    }

}