/* ============================
   CALCULADORA – DISEÑO MODERNO
===============================
   * Paleta suave
   * Botones redondeados
   * Sombra elegante
   * Display tipo "pantalla digital"
   * Animaciones suaves
*/

.calc {
    width: 340px;
    margin: 40px auto;
    padding: 22px;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    font-family: "Segoe UI", Arial, sans-serif;
    transition: 0.3s;
}

/* Pantalla */
.calc #pantalla {
    width: 100%;
    height: 70px;
    padding: 12px;
    font-size: 26px;
    font-weight: 500;
    text-align: right;
    border-radius: 12px;
    border: none;
    background: #f7f7f7;
    box-shadow: inset 0 0 5px rgba(0,0,0,0.15);
    margin-bottom: 18px;
    outline: none;
}

/* Contenedor de botones */
.calc .buttons {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
}

/* Estilo de botones */
.calc button {
    padding: 14px;
    font-size: 17px;
    font-weight: 600;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: 0.25s ease;
    background: #e8e8e8;
    color: #333;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

/* Hover */
.calc button:hover {
    background: #dcdcdc;
}

/* Botones especiales */
.calc .igual {
    background: #2ecc71 !important;
    color: white;
}

.calc .igual:hover {
    background: #26b863 !important;
}

.calc .grande {
    grid-column: span 2;
}

.calc .scientific {
    background: #6c5ce7;
    color: white;
}

.calc .scientific:hover {
    background: #5a4bcc;
}

/* Botón eliminar */
.calc .delete {
    background: #ff7675;
    color: white;
}

.calc .delete:hover {
    background: #d95f5f;
}

/* Botón limpiar */
.calc .clear {
    background: #fab43f;
    color: white;
}

.calc .clear:hover {
    background: #e09d32;
}

/* Botón grados/radianes */
.calc .rad-toggle {
    background: #3498db;
    color: white;
}

.calc .rad-toggle:hover {
    background: #217dbb;
}
