body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    color: #333;
    padding: 20px;
    margin: 0;
}

h1 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 10px;
}

.ejercicio {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

/* Azul bonito de la plantilla */
.explicacion {
    background-color: #ebf8ff;
    border-left: 4px solid #3182ce;
    color: #2b6cb0;
    padding: 15px;
    margin-bottom: 20px;
    border-radius: 0 6px 6px 0;
    font-size: 0.95rem;
}

.formulario {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-bottom: 15px;
}

.formulario label {
    font-weight: bold;
}

.formulario input {
    padding: 8px 12px;
    border: 1px solid #cbd5e0;
    border-radius: 4px;
    width: 220px;
    font-size: 1.1rem;
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #2b6cb0;
    background-color: #f7fafc;
}

.resultado {
    background-color: #e6fffa;
    border: 1px solid #b2f5ea;
    color: #234e52;
    padding: 10px;
    border-radius: 4px;
    font-weight: bold;
    display: inline-block;
    margin-top: 5px;
}

code {
    background-color: #edf2f7;
    color: #c53030;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
}