* {
    box-sizing: border-box;
}

body {
    margin: 0;
    /* padding: 24px; */
    font-family: Arial, sans-serif;
    background: #f3f5f8;
    color: #243247;
}

.contenedor {
    max-width: 1000px;
    margin: 0 auto;
}

h1 {
    margin-top: 40px;
    margin-bottom: 8px;
}

.subtitulo {
    color: #5c6878;
    margin-top: 0;
}

.panel {
    background: white;
    padding: 24px;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 2px 8px #0000000d;
}

.busqueda {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: end;
}

.campo {
    display: block;
    margin: 12px 0;
}

label {
    font-weight: bold;
}

input[type="text"],
input[type="email"],
select {
    display: block;
    width: 100%;
    max-width: 440px;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #cbd2dc;
    border-radius: 6px;
    background: white;
    font-size: 15px;
}

button {
    padding: 11px 18px;
    border: 0;
    border-radius: 6px;
    background: #2457a7;
    color: white;
    font-size: 15px;
    cursor: pointer;
}

button:hover {
    background: #194581;
}

.materia {
    display: grid;
    grid-template-columns: 32px minmax(180px, 1fr) minmax(150px, 220px);
    gap: 12px;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px solid #e3e7ed;
}

.materia:last-child {
    border-bottom: 0;
}

.materia input[type="checkbox"] {
    width: 18px;
    height: 18px;
}

.nombre-materia {
    font-weight: bold;
}

.detalle-materia {
    margin-top: 5px;
    color: #687587;
    font-size: 14px;
}

.division label {
    font-size: 13px;
}

.division select {
    margin-top: 5px;
}

.mensaje {
    padding: 12px 14px;
    margin: 12px 0;
    border-radius: 6px;
    background: #e8f1ff;
}

.error {
    background: #fff0ef;
    color: #922d27;
}

.estado {
    display: inline-block;
    margin-top: 6px;
    padding: 4px 8px;
    border-radius: 5px;
    background: #fff0d8;
    color: #815000;
    font-size: 13px;
}

.acciones {
    margin-top: 24px;
}

/* Cabecera con logo de normal */

.cabecera {
    width: 100%;
    height: auto;
    display: block;
}


/* LOGIN */

.login-contenedor {
    max-width: 520px;
    padding: 0 16px;
}

.login-contenedor h1 {
    margin-top: 40px;
}

.login-panel h2 {
    margin-top: 0;
    margin-bottom: 24px;
}

.form-login .campo {
    margin: 18px 0;
}

.form-login input[type="text"],
.form-login input[type="password"] {
    display: block;
    width: 100%;
    max-width: none;
    padding: 10px;
    margin-top: 6px;
    border: 1px solid #cbd2dc;
    border-radius: 6px;
    background: white;
    font-size: 15px;
}

.form-login input:focus {
    outline: 2px solid #2457a7;
    outline-offset: 1px;
}

.form-login .acciones {
    margin-top: 24px;
}

.form-login button {
    width: 100%;
}

/* RESULTADO DE INSCRIPCIÓN */

.resultado-contenedor {
    max-width: 800px;
    padding: 0 16px;
}

.lista-resultado {
    padding-left: 24px;
}

.lista-resultado li {
    margin: 14px 0;
    padding-bottom: 12px;
    border-bottom: 1px solid #e3e7ed;
}

.lista-resultado li:last-child {
    border-bottom: 0;
}

.lista-resultado span {
    display: block;
    margin-top: 5px;
    color: #687587;
    font-size: 14px;
}

.mensaje.success {
    background: #e7f6ec;
    color: #216738;
}

.mensaje.warning {
    background: #fff0d8;
    color: #815000;
}

.mensaje.info {
    background: #e8f1ff;
    color: #2457a7;
}

.acciones-resultado {
    margin: 24px 0 40px;
}

.boton-enlace {
    display: inline-block;
    padding: 11px 18px;
    border-radius: 6px;
    background: #2457a7;
    color: white;
    text-decoration: none;
    font-size: 15px;
}

.boton-enlace:hover {
    background: #194581;
}


/* SESIÓN */

.barra-sesion {
    display: flex;
    justify-content: flex-end;
    padding: 10px 24px;
}

.barra-sesion form {
    margin: 0;
}

.boton-salir {
    background: #5c6878;
    padding: 8px 14px;
    font-size: 14px;
}

.boton-salir:hover {
    background: #3e4958;
}


/* MEDIA */

@media (max-width: 650px) {
    body {
        padding: 12px;
    }

    .panel {
        padding: 16px;
    }

    .materia {
        grid-template-columns: 28px 1fr;
    }

    .division {
        grid-column: 2;
    }
}