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

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    background-color: #f4f4f4;
    color: #222;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 80px;
}

/* Navbar */
.navbar {
    background-color: #252c62;
    width: 100%;
    padding: 0.75rem 1.5rem;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;
}

.navbar a {
    display: inline-block;
    line-height: 0;
}

.navbar__logo {
    height: 56px;
    display: block;
}

/* Contenedor base */
.contenedor {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    width: 100%;
    max-width: 500px;
}

/* Pantalla de inicio */
.contenedor--inicio {
    max-width: 600px;
    text-align: center;
}

.botones-inicio {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.btn-seccion {
    display: block;
    padding: 1rem;
    background-color: #252c62;
    color: #fff;
    text-decoration: none;
    border-radius: 6px;
    font-size: 1.1rem;
    font-weight: bold;
    transition: background-color 0.2s;
}

.btn-seccion:hover {
    background-color: #1a2050;
}

/* Titulos */
h1 {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 1.25rem;
    color: #1a1a2e;
    line-height: 1.4;
}

h2 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
    color: #1a1a2e;
}

/* Aviso */
.aviso {
    font-size: 0.85rem;
    color: #555;
    text-align: center;
    margin-bottom: 1.25rem;
    line-height: 1.4;
    border-left: 3px solid #252c62;
    padding-left: 0.75rem;
    text-align: left;
}

/* Formulario */
.formulario {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.formulario label {
    font-weight: bold;
    font-size: 0.95rem;
}

.formulario input[type="text"] {
    padding: 0.6rem 0.75rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
    width: 100%;
}

.formulario input[type="text"]:focus {
    outline: none;
    border-color: #252c62;
    box-shadow: 0 0 0 2px rgba(37, 44, 98, 0.2);
}

.formulario button {
    padding: 0.65rem;
    background-color: #252c62;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    cursor: pointer;
    margin-top: 0.25rem;
}

.formulario button:hover {
    background-color: #1a2050;
}

/* Link volver */
.link-volver {
    display: inline-block;
    margin-top: 1rem;
    font-size: 0.9rem;
    color: #252c62;
    text-decoration: none;
}

.link-volver:hover {
    text-decoration: underline;
}

/* Mensajes */
.mensaje {
    margin-top: 1.25rem;
    padding: 0.75rem 1rem;
    border-radius: 4px;
    font-size: 0.95rem;
}

.mensaje--error {
    background-color: #fdecea;
    border: 1px solid #e57373;
    color: #b71c1c;
}

.mensaje--no-encontrado {
    background-color: #fff8e1;
    border: 1px solid #ffc107;
    color: #7a5900;
}

/* Resultado */
.resultado {
    margin-top: 1.5rem;
}

.tabla-resultado {
    width: 100%;
    border-collapse: collapse;
}

.tabla-resultado th,
.tabla-resultado td {
    padding: 0.5rem 0.75rem;
    border: 1px solid #ddd;
    text-align: left;
    font-size: 0.95rem;
}

.tabla-resultado th {
    background-color: #f0f4f8;
    width: 40%;
    font-weight: bold;
}

/* Responsive */
@media (max-width: 540px) {
    .contenedor {
        margin: 1rem;
        padding: 1.25rem;
    }

    .botones-inicio {
        margin-top: 1.5rem;
    }
}
