/* Reset general */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #2980b9, #6dd5fa);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.contenedor {
    background-color: rgba(0, 0, 0, 0.4);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    width: 350px;
    position: relative;
}

h1 {
    margin-bottom: 20px;
    font-size: 28px;
}

.formulario label {
    display: block;
    text-align: left;
    margin-top: 15px;
    font-weight: bold;
}

.formulario input[type="number"] {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
    font-size: 16px;
    border-radius: 5px;
    border: none;
    outline: none;
}

.formulario input[type="submit"] {
    margin-top: 20px;
    padding: 10px 20px;
    background-color: #27ae60;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.formulario input[type="submit"]:hover {
    background-color: #2ecc71;
}

.resultado {
    text-align: center;
    margin-top: 30px;
}

.resultado h2 {
    font-size: 24px;
    margin-bottom: 20px;
}

.valores {
    display: flex;
    justify-content: space-around;
    margin: 30px 0;
}

.valor-a, .valor-b {
    font-size: 24px;
    text-align: center;
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    width: 150px;
}

.valor-a span, .valor-b span {
    font-size: 48px;
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #f1c40f;
}
