/*======================================
    CONTENEDOR DE LA CALCULADORA
======================================*/

.calculadora {
    width: 100%;
    max-width: 700px;
    margin: 50px auto;
    background: #ffffff;
    padding: 35px;
    border-radius: 20px;
    border: 1px solid #e8e8e8;
    box-shadow: 0 12px 30px rgba(0, 0, 0, .08);
}


/*======================================
    TÍTULOS
======================================*/

.calculadora h2 {
    margin-bottom: 30px;
    text-align: center;
    font-size: 30px;
    font-weight: 600;
}


/*======================================
    LABELS
======================================*/

.calculadora label {
    display: block;
    margin-top: 20px;
    margin-bottom: 8px;
    font-weight: 600;
    color: #444;
}


/*======================================
    INPUTS Y SELECT
======================================*/

.calculadora input,
.calculadora select {
    width: 100%;
    padding: 14px 16px;
    font-size: 16px;
    border: 1px solid #d7d7d7;
    border-radius: 10px;
    background: #fff;
    transition: .25s;
}


/*======================================
    FOCUS
======================================*/

.calculadora input:focus,
.calculadora select:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}


/*======================================
    PLACEHOLDER
======================================*/

.calculadora input::placeholder {
    color: #9c9c9c;
}


/*======================================
    INPUT NUMBER
======================================*/

input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    opacity: 1;
}


/*======================================
    RESULTADOS
======================================*/

.resultado {
    margin-top: 35px;
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e9edf3;
}


/*======================================
    LÍNEAS DEL RESULTADO
======================================*/

.linea {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #ececec;
}

.linea:last-child {
    border-bottom: none;
}


/*======================================
    TOTAL
======================================*/

.total {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
}


/*======================================
    BOTÓN VOLVER
======================================*/

.volver {
    display: inline-block;
    margin-top: 30px;
    text-decoration: none;
    color: #2563eb;
    font-weight: 600;
    transition: .3s;
}

.volver:hover {
    color: #1d4ed8;
}


/*======================================
    RESPONSIVE
======================================*/

@media(max-width:768px) {
    .calculadora {
        padding: 25px;
        margin: 30px 15px;
    }
    .calculadora h2 {
        font-size: 24px;
    }
}