/* ======== CONTENEDOR PRINCIPAL PARA TODA LA PÁGINA ======== */
body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 40px 0;
    display: flex;
    justify-content: center;
    color: #333;
}

.page-wrapper {
    width: 90%;
    max-width: 800px;
    background: white;
    padding: 30px 40px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* ======== TÍTULOS ======== */
h1, h2 {
    color: #2c3e50;
    text-align: center;
    margin-bottom: 25px;
}

/* ======== LISTA DEL HISTORIAL ======== */
ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

li {
    background: #eef2f5;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 10px;
    font-size: 0.95rem;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

/* ======== BOTONES GENERALES ======== */
button,
input[type="submit"],
input[type="reset"] {
    padding: 12px 20px;
    margin-top: 10px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    background: #3498db;
    color: white;
    transition: background 0.25s, transform 0.1s;
}

button:hover,
input[type="submit"]:hover,
input[type="reset"]:hover {
    background: #2980b9;
    transform: scale(1.03);
}

button:active,
input[type="submit"]:active,
input[type="reset"]:active {
    transform: scale(0.97);
}

/* Botón gris */
form button[name="esborrar"],
form button[name="borrar_tot"] {
    background: #95a5a6;
}

form button[name="esborrar"]:hover,
form button[name="borrar_tot"]:hover {
    background: #7f8c8d;
}

/* ======== CAMPOS Y SELECT ======== */
select,
input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    margin-top: 5px;
    margin-bottom: 12px;
    border: 1px solid #ccd1d9;
    border-radius: 8px;
    font-size: 1rem;
    background: #fdfdfd;
    transition: border 0.25s;
}

select:focus,
input:focus {
    border-color: #3498db;
    outline: none;
    box-shadow: 0 0 4px rgba(52, 152, 219, 0.3);
}

/* PARRAFOS */
p {
    font-weight: bold;
    color: #2c3e50;
    text-align: center;
}

/* SEPARACIÓN ENTRE FORMULARIOS */
form {
    margin-bottom: 20px;
}

