html {
    box-sizing: border-box;
    height: 100%;
}

*,
*::before,
*::after {
    box-sizing: inherit;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: inherit;
    background: linear-gradient(320deg, #f0f2f5, #d3dce6, #a0b8c8);
    font-family: 'Dosis', sans-serif;
    font-display: swap;
    color: #333333;
}

/* Titulos */
h2 {
    text-align: right;
    border-radius: 12px;
    color: #333333;
    padding-left: 20%;
    margin: 5%;
}

/* Contenedor principal */
.wrapper {
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(50, 50, 50, 0.15);
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(220, 220, 220, 0.5);
    color: #333333;
    width: 540px !important;
    height: 540px;
    padding: 20px 35px;
}

/* Pantalla de la calculadora */
.screen {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(220, 220, 220, 0.3);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(50, 50, 50, 0.1);
    color: #333333;
    font-size: 32px;
    padding: 15px;
    text-align: right;
    width: 100%;
    overflow: auto;
}

/* Filas de botones */
.calc-button-row {
    display: flex;
    justify-content: space-between;
    margin: 5% 0;
}

/* Botones de la calculadora */
.calc-button {
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    background: rgba(240, 240, 240, 0.85);
    border: 1px solid rgba(220, 220, 220, 0.5);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(50, 50, 50, 0.1);
    color: #333333;
    flex-basis: 20%;
    font-family: inherit;
    font-size: 24px;
    height: 65px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* Botón de acción especial (ej. igual) */
.calc-button:last-child {
    background: #3a7bd5;
    color: #fff;
    border: none;
    transition: background-color 0.3s ease;
}

.calc-button:last-child:hover {
    background-color: #335ea7;
    color: #fff;
}

.calc-button:hover {
    background-color: #e6e9ef;
}

.calc-button:active {
    background-color: #b3c7d6;
}

/* Botones dobles y triples */
.double {
    flex-basis: 47%;
}

.triple {
    flex-basis: 73%;
}
