body {
    font-family: Arial, sans-serif;
    background: #f4f6f9;
    margin: 0;
    padding: 0;
}

.login-contenedor {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-box {
    background: #ffffff;
    padding: 30px;
    width: 360px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

.login-box h1 {
    margin: 0 0 10px 0;
    color: #1f3c88;
    text-align: center;
}

.login-box p {
    text-align: center;
    color: #555;
    margin-bottom: 20px;
}

.login-box label {
    display: block;
    margin-top: 10px;
    margin-bottom: 5px;
    font-weight: bold;
}

.login-box input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 6px;
    box-sizing: border-box;
}

.login-box button {
    width: 100%;
    margin-top: 20px;
    padding: 12px;
    border: none;
    background: #1f3c88;
    color: white;
    font-size: 16px;
    border-radius: 6px;
    cursor: pointer;
}

.login-box button:hover {
    background: #163066;
}

.error {
    background: #ffd9d9;
    color: #a10000;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
    text-align: center;
}

.topbar {
    background: #1f3c88;
    color: white;
    padding: 15px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn-salir {
    background: #ffffff;
    color: #1f3c88;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.contenedor {
    padding: 25px;
}

.cards {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 25px;
}

.card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    min-width: 220px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.card h3 {
    margin: 0 0 10px;
    color: #333;
}

.card p {
    font-size: 28px;
    margin: 0;
    color: #1f3c88;
    font-weight: bold;
}

.tabla-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
}

table th, table td {
    border: 1px solid #ddd;
    padding: 10px;
    text-align: left;
}

table th {
    background: #f0f3f8;
}