/* ========================================
   ESTILOS GENERALES
======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background-color: #f2f5f9;
    color: #222;
}


/* ========================================
   BANNER
======================================== */

.banner {
    width: 100%;
    height: 360px;

    background-image:
        linear-gradient(
            rgba(0, 0, 0, 0.35),
            rgba(0, 0, 0, 0.45)
        ),
        url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;
    background-position: center;

    display: flex;
    align-items: center;
    justify-content: center;

    text-align: center;
}

.banner h1 {
    color: white;

    font-size: 44px;
    font-weight: bold;

    text-transform: uppercase;

    letter-spacing: 1px;

    text-shadow:
        2px 2px 6px rgba(0, 0, 0, 0.8);

    padding: 20px;
}


/* ========================================
   CONTENEDOR
======================================== */

.contenedor {
    display: flex;
    justify-content: center;

    padding: 50px 20px;
}


/* ========================================
   TARJETA
======================================== */

.tarjeta {
    width: 100%;
    max-width: 430px;

    background-color: white;

    padding: 40px;

    border-radius: 15px;

    box-shadow:
        0 8px 25px rgba(0, 0, 0, 0.12);

    text-align: center;
}

.tarjeta h2 {
    color: #1f3c88;

    font-size: 28px;

    margin-bottom: 30px;
}


/* ========================================
   FORMULARIO
======================================== */

.formulario {
    text-align: left;
}

.formulario label {
    display: block;

    font-size: 16px;
    font-weight: bold;

    margin-bottom: 10px;

    color: #333;
}

.formulario input {
    width: 100%;

    padding: 14px;

    border: 2px solid #d5dbe3;

    border-radius: 8px;

    font-size: 16px;

    outline: none;

    transition: 0.3s;
}

.formulario input:focus {
    border-color: #1f6feb;

    box-shadow:
        0 0 0 3px rgba(31, 111, 235, 0.15);
}


/* ========================================
   BOTÓN
======================================== */

.btn-enviar {
    width: 100%;

    margin-top: 25px;

    padding: 14px;

    border: none;

    border-radius: 8px;

    background-color: #1f6feb;

    color: white;

    font-size: 16px;

    font-weight: bold;

    cursor: pointer;

    transition: 0.3s;
}

.btn-enviar:hover {
    background-color: #1558b0;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.2);
}


/* ========================================
   CELULARES
======================================== */

@media (max-width: 600px) {

    .banner {
        height: 280px;
    }

    .banner h1 {
        font-size: 30px;
    }

    .tarjeta {
        padding: 30px 25px;
    }

}
/* ========================================
   PÁGINAS DE RESULTADO
======================================== */

.pagina-resultado {
    min-height: 100vh;
    background-color: #f2f5f9;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px 20px;
}

.tarjeta-resultado {
    width: 100%;
    max-width: 520px;

    background-color: white;

    padding: 45px 40px;

    border-radius: 18px;

    text-align: center;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.12);
}

.tarjeta-resultado h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.tarjeta-resultado h2 {
    color: #1f3c88;

    font-size: 24px;

    margin-bottom: 20px;
}

.tarjeta-resultado p {
    color: #555;

    font-size: 17px;

    line-height: 1.6;

    margin-bottom: 12px;
}


/* ========================================
   DATOS DE ASISTENCIA
======================================== */

.datos-asistencia {
    background-color: #f5f7fa;

    border-radius: 12px;

    padding: 20px;

    margin: 25px 0;

    text-align: left;
}

.datos-asistencia p {
    margin-bottom: 10px;
}

.datos-asistencia strong {
    color: #222;
}


/* ========================================
   MENSAJES
======================================== */

.exito {
    color: #16803c;
}

.advertencia {
    color: #c47a00;
}

.error {
    color: #c62828;
}


/* ========================================
   BOTÓN VOLVER
======================================== */

.btn-volver {
    display: inline-block;

    margin-top: 20px;

    padding: 13px 25px;

    background-color: #1f6feb;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 16px;

    font-weight: bold;

    transition: 0.3s;
}

.btn-volver:hover {
    background-color: #1558b0;

    transform: translateY(-2px);

    box-shadow:
        0 5px 12px rgba(0, 0, 0, 0.2);
}


/* ========================================
   ICONO
======================================== */

.icono-resultado {
    font-size: 55px;

    margin-bottom: 15px;
}


/* ========================================
   CELULARES
======================================== */

@media (max-width: 600px) {

    .tarjeta-resultado {
        padding: 35px 25px;
    }

    .tarjeta-resultado h1 {
        font-size: 27px;
    }

    .tarjeta-resultado h2 {
        font-size: 21px;
    }

}
 /* ========================================
    PÁGINAS DEL PROFESOR
 ======================================== */

 .pagina-profesor {
     min-height: 100vh;
     background-color: #f2f5f9;
     padding: 40px 20px;
 }

 .contenedor-profesor {
     width: 100%;
     max-width: 1000px;
     margin: 0 auto;
 }

 .encabezado-profesor {
     background-color: #1f3c88;
     color: white;
     padding: 30px;
     border-radius: 15px;
     margin-bottom: 25px;
     box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
 }

 .encabezado-profesor h1 {
     font-size: 30px;
     margin-bottom: 8px;
 }

 .encabezado-profesor p {
     font-size: 17px;
     opacity: 0.9;
 }


 /* ========================================
    MENÚ DEL PANEL
 ======================================== */

 .menu-profesor {
     display: grid;
     grid-template-columns: repeat(2, 1fr);
     gap: 20px;
     margin-bottom: 25px;
 }

 .opcion-profesor {
     background-color: white;
     padding: 25px;
     border-radius: 14px;
     text-decoration: none;
     color: #222;
     box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
     transition: 0.3s;
 }

 .opcion-profesor:hover {
     transform: translateY(-4px);
     box-shadow: 0 10px 25px rgba(0, 0, 0, 0.14);
 }

 .opcion-profesor h3 {
     color: #1f3c88;
     margin-bottom: 8px;
 }

 .opcion-profesor p {
     color: #666;
 }


 /* ========================================
    BOTÓN CERRAR SESIÓN
 ======================================== */

 .btn-cerrar {
     display: inline-block;
     padding: 12px 22px;
     background-color: #c62828;
     color: white;
     text-decoration: none;
     border-radius: 8px;
     font-weight: bold;
     transition: 0.3s;
 }

 .btn-cerrar:hover {
     background-color: #a91f1f;
 }


 /* ========================================
    FORMULARIOS DEL PROFESOR
 ======================================== */

 .tarjeta-profesor {
     background-color: white;
     padding: 35px;
     border-radius: 15px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
     margin-bottom: 25px;
 }

 .tarjeta-profesor h2 {
     color: #1f3c88;
     margin-bottom: 25px;
 }

 .form-profesor label {
     display: block;
     font-weight: bold;
     margin-bottom: 8px;
     color: #333;
 }

 .form-profesor input,
 .form-profesor select {
     width: 100%;
     padding: 13px;
     margin-bottom: 20px;
     border: 2px solid #d5dbe3;
     border-radius: 8px;
     font-size: 16px;
     outline: none;
 }

 .form-profesor input:focus,
 .form-profesor select:focus {
     border-color: #1f6feb;
     box-shadow: 0 0 0 3px rgba(31, 111, 235, 0.12);
 }

 .btn-profesor {
     border: none;
     padding: 13px 25px;
     background-color: #1f6feb;
     color: white;
     border-radius: 8px;
     font-size: 16px;
     font-weight: bold;
     cursor: pointer;
     transition: 0.3s;
 }

 .btn-profesor:hover {
     background-color: #1558b0;
     transform: translateY(-2px);
 }


 /* ========================================
    ENLACE VOLVER
 ======================================== */

 .volver-profesor {
     display: inline-block;
     margin-bottom: 20px;
     color: #1f6feb;
     text-decoration: none;
     font-weight: bold;
 }

 .volver-profesor:hover {
     text-decoration: underline;
 }


 /* ========================================
    TABLAS
 ======================================== */

 .tabla-contenedor {
     background-color: white;
     padding: 25px;
     border-radius: 15px;
     box-shadow: 0 8px 25px rgba(0, 0, 0, 0.10);
     overflow-x: auto;
 }

 .tabla-profesor {
     width: 100%;
     border-collapse: collapse;
 }

 .tabla-profesor th {
     background-color: #1f3c88;
     color: white;
     padding: 14px;
     text-align: left;
 }

 .tabla-profesor td {
     padding: 13px;
     border-bottom: 1px solid #e1e5ea;
 }

 .tabla-profesor tr:hover {
     background-color: #f5f7fa;
 }


 /* ========================================
    MENSAJES
 ======================================== */

 .mensaje-profesor {
     background-color: #eef4ff;
     color: #1f3c88;
     padding: 15px;
     border-radius: 8px;
     margin-bottom: 20px;
 }


 /* ========================================
    CELULARES
 ======================================== */

 @media (max-width: 700px) {

     .menu-profesor {
         grid-template-columns: 1fr;
     }

     .encabezado-profesor h1 {
         font-size: 25px;
     }

     .tarjeta-profesor {
         padding: 25px 20px;
     }
 }
 /* ========================================
   ACCESO DEL PROFESOR
======================================== */

.enlace-profesor {
    display: inline-block;

    margin-top: 22px;

    color: #1f3c88;

    font-size: 14px;

    font-weight: bold;

    text-decoration: none;

    transition: 0.3s;
}

.enlace-profesor:hover {
    color: #1f6feb;

    text-decoration: underline;
}
/* ========================================
   PORTAL DE DOCENTE
======================================== */

.portal-banner {

    width: 100%;

    height: 320px;

    background-image:
        linear-gradient(
            rgba(20, 38, 90, 0.45),
            rgba(10, 25, 70, 0.65)
        ),
        url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.portal-banner-contenido {

    color: white;

    padding: 20px;
}


.portal-banner h1 {

    font-size: 46px;

    font-weight: bold;

    letter-spacing: 2px;

    margin-bottom: 12px;

    text-shadow:
        2px 3px 8px rgba(0, 0, 0, 0.5);
}


.portal-banner p {

    font-size: 20px;

    margin: 0;

}


/* ========================================
   CONTENEDOR
======================================== */

.portal-contenedor {

    background:
        linear-gradient(
            135deg,
            #eef4ff,
            #f7f9fc
        );

    padding: 55px 20px;

    min-height: 500px;
}


/* ========================================
   PANEL PRINCIPAL
======================================== */

.portal-panel {

    max-width: 1100px;

    margin: 0 auto;

    background-color: white;

    border-radius: 20px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);
}


/* ========================================
   OPCIONES
======================================== */

.portal-opciones {

    padding: 45px;
}


.portal-opciones h2 {

    color: #1f3c88;

    font-size: 30px;

    margin-bottom: 10px;
}


.bienvenida {
    margin-bottom: 30px;

    font-size: 28px;

    font-weight: bold;
}

.texto-bienvenido {
    color: #1f3c88;
}

.bienvenida em {
    color: #1f6feb;

    font-style: italic;

    margin-left: 6px;
}

/* ========================================
   OPCIONES INDIVIDUALES
======================================== */

.portal-opcion {

    display: flex;

    align-items: center;

    gap: 18px;

    padding: 18px;

    margin-bottom: 15px;

    background-color: #f5f8ff;

    border: 1px solid #e0e8f8;

    border-radius: 12px;

    text-decoration: none;

    transition: 0.3s;
}


.portal-opcion:hover {

    transform: translateX(5px);

    background-color: #edf3ff;

    border-color: #1f6feb;

    box-shadow:
        0 6px 15px rgba(31, 111, 235, 0.12);
}


.portal-icono {

    min-width: 52px;

    height: 52px;

    border-radius: 12px;

    background-color: #1f6feb;

    display: flex;

    align-items: center;

    justify-content: center;

    font-size: 25px;
}


.portal-opcion h3 {

    color: #1f3c88;

    font-size: 18px;

    margin-bottom: 5px;
}


.portal-opcion p {

    color: #666;

    font-size: 14px;

    line-height: 1.4;

    margin: 0;
}


/* ========================================
   BOTÓN CERRAR SESIÓN
======================================== */

.portal-cerrar {

    display: inline-block;

    margin-top: 12px;

    padding: 12px 22px;

    background-color: #d83a3a;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 14px;

    font-weight: bold;

    transition: 0.3s;
}


.portal-cerrar:hover {

    background-color: #b52c2c;

    transform: translateY(-2px);
}


/* ========================================
   IMAGEN DEL DOCENTE
======================================== */

.portal-profesor {

    position: relative;

    min-height: 550px;

    overflow: hidden;

    background-color: #1f3c88;
}


.portal-profesor img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.portal-profesor::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(18, 35, 85, 0.85),
            rgba(18, 35, 85, 0.05)
        );
}


.portal-profesor-texto {

    position: absolute;

    bottom: 35px;

    left: 30px;

    right: 30px;

    color: white;

    z-index: 2;
}


.portal-profesor-texto h2 {

    font-size: 27px;

    margin-bottom: 10px;
}


.portal-profesor-texto p {

    font-size: 16px;

    line-height: 1.5;

    margin: 0;
}


/* ========================================
   CELULARES
======================================== */

@media (max-width: 800px) {

    .portal-banner {

        height: 260px;
    }


    .portal-banner h1 {

        font-size: 32px;
    }


    .portal-banner p {

        font-size: 17px;
    }


    .portal-panel {

        grid-template-columns: 1fr;
    }


    .portal-opciones {

        padding: 30px 22px;
    }


    .portal-profesor {

        min-height: 400px;
    }

}
/* ========================================
   SUBPÁGINAS DEL DOCENTE
======================================== */

.subpagina-banner {

    width: 100%;

    height: 280px;

    background-image:
        linear-gradient(
            rgba(20, 38, 90, 0.55),
            rgba(10, 25, 70, 0.70)
        ),
        url("https://images.unsplash.com/photo-1523240795612-9a054b0db644?auto=format&fit=crop&w=1600&q=85");

    background-size: cover;

    background-position: center;

    display: flex;

    align-items: center;

    justify-content: center;

    text-align: center;

    color: white;
}


.subpagina-banner h1 {

    font-size: 42px;

    letter-spacing: 2px;

    margin-bottom: 10px;
}


.subpagina-banner p {

    font-size: 18px;

    margin: 0;
}


/* ========================================
   CONTENEDOR
======================================== */

.subpagina-contenedor {

    background:
        linear-gradient(
            135deg,
            #eef4ff,
            #f7f9fc
        );

    padding: 50px 20px;

    min-height: 550px;
}


.subpagina-panel {

    max-width: 1100px;

    margin: 0 auto;

    background-color: white;

    border-radius: 20px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 1.1fr 0.9fr;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.12);
}


/* ========================================
   FORMULARIO
======================================== */

.formulario-panel {

    padding: 45px;
}


.formulario-panel h2 {

    color: #1f3c88;

    font-size: 28px;

    margin-bottom: 10px;
}


.descripcion-formulario {

    color: #666;

    line-height: 1.5;

    margin-bottom: 25px;
}


/* ========================================
   IMAGEN
======================================== */

.subpagina-imagen {

    position: relative;

    min-height: 600px;

    overflow: hidden;

    background-color: #1f3c88;
}


.subpagina-imagen img {

    width: 100%;

    height: 100%;

    object-fit: cover;

    display: block;
}


.subpagina-imagen::after {

    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(18, 35, 85, 0.90),
            rgba(18, 35, 85, 0.05)
        );
}


.subpagina-imagen-texto {

    position: absolute;

    bottom: 35px;

    left: 30px;

    right: 30px;

    color: white;

    z-index: 2;
}


.subpagina-imagen-texto h2 {

    font-size: 28px;

    margin-bottom: 10px;
}


.subpagina-imagen-texto p {

    font-size: 16px;

    line-height: 1.5;

    margin: 0;
}


/* ========================================
   RESPONSIVE
======================================== */

@media (max-width: 800px) {

    .subpagina-banner {

        height: 240px;
    }


    .subpagina-banner h1 {

        font-size: 32px;
    }


    .subpagina-panel {

        grid-template-columns: 1fr;
    }


    .formulario-panel {

        padding: 30px 22px;
    }


    .subpagina-imagen {

        min-height: 400px;
    }

}
/* ========================================
   ASISTENCIAS POR SEMANA
======================================== */

.asistencia-encabezado {
    margin-bottom: 20px;
}

.asistencia-encabezado h2 {
    margin-bottom: 10px;
}

.asistencia-encabezado p {
    margin: 0;
    color: #666;
}


/* SELECTOR DE SEMANA */

.selector-semana {
    background-color: white;
    padding: 25px 30px;
    border-radius: 15px;
    margin-bottom: 20px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);

    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.selector-semana h3 {
    color: #1f3c88;
    margin-bottom: 5px;
    font-size: 20px;
}

.selector-semana p {
    margin: 0;
    color: #666;
}

.selector-semana select {
    min-width: 220px;
    padding: 13px 15px;
    border: 2px solid #d5dbe3;
    border-radius: 8px;
    font-size: 16px;
    color: #333;
    background-color: white;
    cursor: pointer;
    outline: none;
}

.selector-semana select:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31,111,235,0.12);
}


/* INFORMACIÓN DE LA SEMANA */

.semana-info {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 20px;
}

.semana-info div {
    background-color: #1f3c88;
    color: white;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
}

.semana-info span {
    display: block;
    font-size: 12px;
    letter-spacing: 1px;
    opacity: 0.85;
    margin-bottom: 7px;
}

.semana-info strong {
    display: block;
    font-size: 20px;
}


/* TÍTULO DE TABLA */

.tabla-asistencias {
    padding: 30px;
}

.tabla-titulo {
    margin-bottom: 25px;
}

.tabla-titulo h2 {
    color: #1f3c88;
    font-size: 24px;
    margin-bottom: 8px;
}

.tabla-titulo p {
    color: #666;
    margin: 0;
}


/* TABLA SEMANAL */

.tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.tabla-semanal {
    min-width: 800px;
}

.tabla-semanal th {
    text-align: center;
    vertical-align: middle;
}

.tabla-semanal th:nth-child(2) {
    text-align: left;
}

.tabla-semanal th small {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.85;
}

.tabla-semanal td {
    text-align: center;
    vertical-align: middle;
}

.tabla-semanal td:nth-child(2) {
    text-align: left;
}


/* NOMBRE DEL ESTUDIANTE */

.nombre-estudiante {
    min-width: 240px;
}

.nombre-estudiante strong {
    display: block;
    color: #1f3c88;
    font-size: 14px;
}

.nombre-estudiante small {
    display: block;
    color: #777;
    margin-top: 4px;
    font-size: 12px;
}


/* CELDAS DE ASISTENCIA */

.celda-asistencia {
    width: 70px;
    font-size: 22px;
}

.asistencia-si {
    color: #16803c;
    font-weight: bold;
}

.asistencia-no {
    color: #b8bec7;
    font-weight: bold;
}


/* TOTAL */

.total-asistencias {
    background-color: #eef4ff;
    color: #1f3c88;
    font-size: 18px;
}


/* LEYENDA */

.leyenda-asistencia {
    display: flex;
    gap: 25px;
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid #e1e5ea;
    color: #666;
    font-size: 14px;
}

.leyenda-si {
    color: #16803c;
    font-size: 18px;
    margin-right: 5px;
}

.leyenda-no {
    color: #b8bec7;
    font-size: 18px;
    margin-right: 5px;
}


/* RESUMEN */

.resumen-asistencia {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 20px;
}

.resumen-tarjeta {
    background-color: white;
    padding: 22px;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(0,0,0,0.08);

    display: flex;
    align-items: center;
    gap: 15px;
}

.resumen-icono {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background-color: #eef4ff;
    color: #1f6feb;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
    font-weight: bold;
}

.resumen-tarjeta p {
    margin: 0 0 5px 0;
    color: #666;
    font-size: 13px;
}

.resumen-tarjeta strong {
    color: #1f3c88;
    font-size: 25px;
}


/* NOTA FINAL */

.detalle-nota {
    margin-top: 20px;
}

.detalle-nota h2 {
    font-size: 20px;
    margin-bottom: 10px;
}

.detalle-nota p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* RESPONSIVE */

@media (max-width: 800px) {

    .selector-semana {
        flex-direction: column;
        align-items: stretch;
    }

    .selector-semana select {
        width: 100%;
    }

    .semana-info {
        grid-template-columns: 1fr;
    }

    .resumen-asistencia {
        grid-template-columns: 1fr;
    }

    .tabla-asistencias {
        padding: 22px 15px;
    }

    .leyenda-asistencia {
        flex-direction: column;
        gap: 8px;
    }

}
/* ========================================
   SELECTOR DE SEMANAS
======================================== */

.asistencia-selector {
    max-width: 700px;
    margin: 0 auto 25px auto;
}

.asistencia-selector h2 {
    color: #1f3c88;
    font-size: 28px;
    margin-bottom: 10px;
}

.asistencia-selector > p {
    color: #666;
    line-height: 1.5;
    margin-bottom: 30px;
}

.form-seleccion-semana {
    display: flex;
    flex-direction: column;
}

.form-seleccion-semana label {
    color: #333;
    font-weight: bold;
    margin-bottom: 8px;
}

.form-seleccion-semana select {
    width: 100%;
    padding: 14px;
    border: 2px solid #d5dbe3;
    border-radius: 8px;
    background-color: white;
    font-size: 16px;
    margin-bottom: 18px;
    outline: none;
    cursor: pointer;
}

.form-seleccion-semana select:focus {
    border-color: #1f6feb;
    box-shadow: 0 0 0 3px rgba(31,111,235,0.12);
}

.btn-ver-semana {
    width: 100%;
}

.informacion-asistencias {
    max-width: 700px;
    margin: 0 auto;
}

.informacion-asistencias h2 {
    color: #1f3c88;
    font-size: 22px;
    margin-bottom: 10px;
}

.informacion-asistencias p {
    color: #666;
    line-height: 1.6;
    margin: 0;
}


/* ========================================
   PÁGINA DE UNA SEMANA
======================================== */

.asistencia-semana-info {
    margin-bottom: 20px;
}

.asistencia-semana-info h2 {
    color: #1f3c88;
    font-size: 25px;
    margin-bottom: 10px;
}

.asistencia-semana-info p {
    color: #666;
    margin: 0;
    line-height: 1.5;
}


/* TABLA */

.tabla-semana {
    min-width: 700px;
}

.tabla-semana th {
    text-align: center;
    vertical-align: middle;
}

.tabla-semana th:nth-child(2) {
    text-align: left;
}

.tabla-semana th small {
    font-size: 11px;
    font-weight: normal;
    opacity: 0.85;
}

.tabla-semana td {
    text-align: center;
    vertical-align: middle;
}

.tabla-semana td:nth-child(2) {
    text-align: left;
}


/* ESTADO SIN HORARIOS */

.estado-sin-horarios {
    max-width: 650px;
    margin: 0 auto;
    text-align: center;
    padding: 50px 35px;
}

.icono-sin-horarios {
    font-size: 55px;
    margin-bottom: 15px;
}

.estado-sin-horarios h2 {
    color: #1f3c88;
    font-size: 25px;
    margin-bottom: 12px;
}

.estado-sin-horarios p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}


/* RESPONSIVE */

@media (max-width: 700px) {

    .asistencia-selector {
        padding: 30px 22px;
    }

    .informacion-asistencias {
        padding: 30px 22px;
    }

    .estado-sin-horarios {
        padding: 40px 25px;
    }

}
/* =========================================================
   SEMANAS DE ASISTENCIA
========================================================= */

.semanas-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
    margin-bottom: 25px;
}

.tarjeta-semana {
    background-color: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    border-left: 5px solid #1f6feb;
    transition: 0.3s;
}

.tarjeta-semana:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.14);
}

.icono-semana {
    font-size: 38px;
    margin-bottom: 12px;
}

.tarjeta-semana h2 {
    color: #1f3c88;
    font-size: 23px;
    margin-bottom: 12px;
}

.rango-semana {
    color: #333;
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
}

.rango-semana span {
    color: #1f6feb;
    margin: 0 5px;
}

.cantidad-horarios {
    color: #777;
    font-size: 14px;
    margin-bottom: 20px;
}

.btn-ver-semana {
    display: inline-block;
    padding: 11px 18px;
    background-color: #1f6feb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-ver-semana:hover {
    background-color: #1558b0;
    transform: translateY(-2px);
}

.tarjeta-horas-link {
    background-color: white;
    padding: 25px 30px;
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.10);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.tarjeta-horas-link h2 {
    color: #1f3c88;
    margin-bottom: 8px;
}

.tarjeta-horas-link p {
    color: #666;
    line-height: 1.5;
    margin: 0;
}


/* =========================================================
   TABLA DE ASISTENCIA SEMANAL
========================================================= */

.tabla-scroll {
    width: 100%;
    overflow-x: auto;
}

.tabla-semana {
    min-width: 750px;
}

.tabla-semana th {
    text-align: center;
    vertical-align: middle;
}

.tabla-semana th:nth-child(2) {
    text-align: left;
}

.tabla-semana td {
    text-align: center;
    vertical-align: middle;
}

.tabla-semana td:nth-child(2) {
    text-align: left;
}

.asistencia-presente {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: #e2f5e9;
    color: #16803c;
    font-weight: bold;
}

.asistencia-ausente {
    color: #aaa;
    font-size: 20px;
}

.total-asistencia {
    font-weight: bold;
    color: #1f3c88;
    background-color: #f3f6fb;
}

.sin-registros {
    text-align: center !important;
    color: #777;
    padding: 30px !important;
}


/* =========================================================
   TABLA DE HORAS
========================================================= */

.tabla-horas {
    min-width: 600px;
}

.tabla-horas th,
.tabla-horas td {
    vertical-align: middle;
}

.horas-total {
    font-weight: bold;
    color: #1f3c88;
    font-size: 17px;
}


/* =========================================================
   MENSAJE SIN HORARIOS
========================================================= */

.estado-sin-horarios {
    text-align: center;
    padding: 55px 35px;
}

.icono-sin-horarios {
    font-size: 55px;
    margin-bottom: 15px;
}

.estado-sin-horarios h2 {
    color: #1f3c88;
    font-size: 25px;
    margin-bottom: 12px;
}

.estado-sin-horarios p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}


/* =========================================================
   RESPONSIVE
========================================================= */

@media (max-width: 700px) {

    .semanas-grid {
        grid-template-columns: 1fr;
    }

    .tarjeta-horas-link {
        flex-direction: column;
        align-items: flex-start;
    }

}
/* =========================================================
   ACCIONES DE HORARIOS
========================================================= */

.titulo-tabla-profesor {
    color: #1f3c88;
    font-size: 25px;
    margin-bottom: 25px;
}

.acciones-horario {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-editar-horario,
.btn-eliminar-horario {
    display: inline-block;
    padding: 8px 12px;
    border-radius: 7px;
    text-decoration: none;
    font-size: 13px;
    font-weight: bold;
    transition: 0.3s;
}

.btn-editar-horario {
    background-color: #eaf2ff;
    color: #1f6feb;
}

.btn-editar-horario:hover {
    background-color: #d9e8ff;
    transform: translateY(-2px);
}

.btn-eliminar-horario {
    background-color: #fdeaea;
    color: #c62828;
}

.btn-eliminar-horario:hover {
    background-color: #f8d4d4;
    transform: translateY(-2px);
}

@media (max-width: 700px) {

    .acciones-horario {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-editar-horario,
    .btn-eliminar-horario {
        text-align: center;
    }

}
.mensaje-recuperacion {
    padding: 13px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: bold;
}

.mensaje-recuperacion.error {
    background-color: #fdeaea;
    color: #c62828;
}

.mensaje-recuperacion.exito {
    background-color: #e8f5e9;
    color: #16803c;
}
/* =========================================================
   CAMBIAR CONTRASEÑA
========================================================= */
.btn-cambiar-contrasena {
    display: inline-block;
    padding: 13px 22px;
    background-color: #1f6feb;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: bold;
}

.btn-cambiar-contrasena:hover {
    background-color: #1859bd;
}