:root {
    --verde: #167d63;
    --verde-oscuro: #105644;
    --fondo: #f2f8f5;
    --texto: #22352d;
    --gris: #66756e;
    --borde: #dce8e1;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, sans-serif;
    color: var(--texto);
    background: var(--fondo);
}

button,
input {
    font: inherit;
}

.pagina-login {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.tarjeta-login {
    width: 100%;
    max-width: 440px;
    padding: 36px;
    background: white;
    border-radius: 24px;
    box-shadow: 0 12px 40px #163e2612;
}

.marca {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: var(--verde);
    color: white;
    font-size: 28px;
    font-weight: bold;
}

.subtitulo {
    margin-top: 24px;
    font-size: 12px;
    font-weight: bold;
    letter-spacing: 1.5px;
    color: var(--verde);
}

h1 {
    margin: 12px 0;
    font-size: 32px;
}

h2 {
    margin-top: 0;
    font-size: 20px;
}

.descripcion {
    color: var(--gris);
    line-height: 1.6;
}

label {
    display: block;
    margin: 22px 0 8px;
    font-size: 14px;
    font-weight: bold;
}

input:not([type="hidden"]) {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: #fbfdfc;
}

input:focus {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}

.boton {
    width: 100%;
    margin-top: 26px;
    padding: 14px;
    border: 0;
    border-radius: 10px;
    background: var(--verde);
    color: white;
    font-weight: bold;
    cursor: pointer;
}

.boton:hover {
    background: var(--verde-oscuro);
}

.nota {
    margin-top: 24px;
    text-align: center;
    color: var(--gris);
    font-size: 13px;
}

.error {
    margin-top: 20px;
    padding: 14px;
    border-radius: 10px;
    background: #fff0ef;
    color: #a52c28;
    line-height: 1.5;
}

.pagina-panel {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 30px 22px;
    background: var(--verde-oscuro);
    color: white;
}

.nombre-sistema {
    font-size: 25px;
    font-weight: bold;
}

.etiqueta-sidebar {
    color: #b6dbce;
    font-size: 11px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
}

.sidebar nav {
    display: grid;
    gap: 10px;
}

.sidebar nav a,
.sidebar nav span {
    display: block;
    padding: 13px;
    border-radius: 10px;
    font-size: 14px;
    text-decoration: none;
}

.menu-activo {
    background: #ffffff20;
    color: white;
}

.sidebar nav span {
    color: #b6dbce;
}

.boton-salir {
    width: 100%;
    padding: 12px;
    margin-top: 35px;
    border: 1px solid #ffffff60;
    border-radius: 10px;
    background: transparent;
    color: white;
    cursor: pointer;
}

.boton-salir:hover {
    background: #ffffff15;
}

.contenido {
    flex: 1;
    min-width: 0;
    padding: 40px;
}

.encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.encabezado .subtitulo {
    margin-top: 0;
}

.insignia {
    padding: 10px 16px;
    border-radius: 30px;
    background: #dcefe5;
    color: var(--verde-oscuro);
    font-size: 13px;
}

.estadisticas {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.tarjeta {
    padding: 24px;
    border: 1px solid var(--borde);
    border-radius: 16px;
    background: white;
}

.tarjeta > p:first-child {
    margin-top: 0;
    color: var(--gris);
}

.estadisticas strong {
    display: block;
    margin: 15px 0;
    font-size: 38px;
    color: var(--verde);
}

.tarjeta small {
    color: var(--gris);
}

.cuenta {
    margin-top: 24px;
}

.cuenta p {
    line-height: 1.6;
    overflow-wrap: anywhere;
}

@media (max-width: 1100px) {
    .estadisticas {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .pagina-panel {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
    }

    .contenido {
        padding: 24px;
    }

    .encabezado {
        align-items: flex-start;
        flex-direction: column;
    }

    .estadisticas {
        grid-template-columns: 1fr;
    }

    .tarjeta-login {
        padding: 26px;
    }
}

.sidebar nav a {
    color: white;
}

.sidebar nav a:hover {
    background: #ffffff15;
}

.bloque-modulo {
    margin-top: 24px;
}

.exito {
    padding: 16px;
    border-radius: 10px;
    background: #dcefe5;
    color: #105644;
}

.campos-formulario {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 20px;
}

.campo-check {
    display: flex;
    align-items: center;
    gap: 10px;
}

.campo-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    padding: 0;
    accent-color: var(--verde);
}

.acciones-formulario {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 24px;
}

.boton-ajustado {
    width: auto;
    margin-top: 0;
    padding: 14px 24px;
}

.enlace-accion {
    color: var(--verde);
    font-weight: bold;
    text-decoration: none;
}

.enlace-accion:hover {
    text-decoration: underline;
}

.tabla-scroll {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th,
td {
    padding: 16px 12px;
    text-align: left;
    border-bottom: 1px solid var(--borde);
}

th {
    background: #f2f8f5;
    color: var(--verde-oscuro);
    font-size: 14px;
}

@media (max-width: 700px) {
    .campos-formulario {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
select {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: #fbfdfc;
    color: var(--texto);
    font: inherit;
}

select:focus {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}
.campos-estudiante {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 20px;
}

.ayuda-campo {
    margin: 8px 0 0;
    font-size: 13px;
}

@media (max-width: 700px) {
    .campos-estudiante {
        grid-template-columns: 1fr;
    }
}
.boton-cancelar {
    padding: 10px 14px;
    border: 1px solid #ebc6c3;
    border-radius: 8px;
    background: #fff0ef;
    color: #a52c28;
    cursor: pointer;
    font: inherit;
}

.boton-cancelar:hover {
    background: #fce0dd;
}

textarea {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--borde);
    border-radius: 10px;
    background: #fbfdfc;
    color: var(--texto);
    font: inherit;
    line-height: 1.6;
    resize: vertical;
}

textarea:focus {
    outline: 2px solid var(--verde);
    outline-offset: 2px;
}

.aviso-registro {
    padding: 20px 0;
    border-bottom: 1px solid var(--borde);
}

.aviso-registro:last-child {
    border-bottom: 0;
}

.aviso-registro h3 {
    margin-top: 0;
    color: var(--verde-oscuro);
}

.aviso-contenido {
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    line-height: 1.7;
}