﻿/* ============================= */
/* TOPBAR */
/* ============================= */

.sb-topnav {
    background: linear-gradient( 360deg, #3b0808 0%, #3b0808 100% ) !important;
    /*background-color: #8b0d14 !important;*/ /* rojo fuerte */
}

/* ICONO HAMBURGUESA */
#sidebarToggle {
    color: #ffffff !important;
}

    #sidebarToggle i {
        color: #ffffff !important;
    }

/* ============================= */
/* SIDEBAR */
/* ============================= */
.sb-sidenav-dark {
    background: linear-gradient(360deg, #8b0d14 0%, #a41118 100% ) !important;
    /*background-color: #8b0d14 !important;*/
}

    /* TÍTULOS (ADMINISTRACIÓN / CUENTA) */
    .sb-sidenav-dark .sb-sidenav-menu-heading {
        color: #e0bcbc;
        font-weight: 600;
        letter-spacing: 0.05em;
    }

    /* LINKS */
    .sb-sidenav-dark .nav-link {
        color: #f1eaea;
    }

    /* ICONOS */
    .sb-sidenav-dark .sb-nav-link-icon {
        color: #ffffff;
    }

    /* ============================= */
    /* LINK ACTIVO */
    /* ============================= */
    .sb-sidenav-dark .nav-link.active {
        background: linear-gradient( 0deg, #5f0c0c 50%, #4e0a0a 100% ) !important;
        color: #ffffff !important;
        font-weight: 600;
    }

        /* ICONO ACTIVO */
        .sb-sidenav-dark .nav-link.active .sb-nav-link-icon {
            color: #ffffff;
        }

    /* ============================= */
    /* HOVER */
    /* ============================= */
    .sb-sidenav-dark .nav-link:hover {
        background-color: #8b0d14;
        color: #ffffff;
    }

/* ============================= */
/* SUBMENÚ */
/* ============================= */
.sb-sidenav-menu-nested {
    background-color: linear-gradient( 0deg, #5f0c0c 20%, #8b0d14 100% ) !important;
}
.sb-sidenav-menu-nested .nav-link {
    padding-left: 2.75rem;
    font-size: 0.9rem;
    color: #f0dede;
}

    .sb-sidenav-menu-nested .nav-link.active {
        background-color: #3b0808;
        color: #ffffff;
    }

/* BOTÓN HAMBURGUESA */

.sb-topnav .btn-link {
    color: #ffffff !important;
}

    /* ICONO */
    .sb-topnav .btn-link i {
        color: #ffffff !important;
        font-size: 1.25rem;
    }

    /* HOVER */
    .sb-topnav .btn-link:hover {
        color: #ffffff !important;
        opacity: 0.85;
    }

.sb-topnav .btn-link {
    background-color: rgba(255,255,255,0.1);
    border-radius: 6px;
}

    .sb-topnav .btn-link:hover {
        background-color: rgba(255,255,255,0.2);
    }

.nav-link{
    color: white;
}
.collapse {
    background-color: #70080e;
}
/* TEXTO DE LINKS */
.sb-sidenav .nav-link {
    color: #ffffff !important;
    font-weight: 500;
}

/* ICONOS */
.sb-nav-link-icon i {
    color: #ffffff !important;
}
.fas {
    color: #ffffff !important;
    font-weight: 600;
}
.sb-sidenav-menu-heading {
    color: #e9d3d3 !important;
}
/* LOGO */
.top-logo {
    height: 28px;
    width: auto;
}
/* NAVBAR ALTURA PRO */
.sb-topnav {
    height: 56px;
}
/* TEXTO NAVBAR */
.sb-topnav .navbar-brand span {
    font-size: 1.05rem;
    letter-spacing: 0.5px;
}
/* SEPARADOR ENTRE LOGO Y HAMBURGUESA */
.border-separator {
    padding-right: 1rem;
    margin-right: 0.75rem;
    border-right: 1px solid rgba(255, 255, 255, 0.6);
}
/* Para el topnav del usuario*/
.dropdown-item form button {
    text-decoration: none;
}
/* para submenu de Administrador*/
.usuarios-submenu .nav-link {
    padding-left: 2.5rem; /* separa bien */
    font-size: 0.9rem; /* un poco más fino */
    opacity: 0.9;
}

    .usuarios-submenu .nav-link:hover {
        opacity: 1;
    }
/* Para cerrar secion*/
.btn-link {
    text-decoration: none !important;
}


/* CABECERA DE LA TABLA */
#datatablesSimple thead th {
    background-color: #dbab12; /* verde bootstrap */
    color: #ffffff;
}

    #datatablesSimple thead th::after,
    #datatablesSimple thead th::before {
        color: #ffffff !important;
    }

/* FILAS HOVER */
#datatablesSimple tbody tr:hover {
    background-color: #f5eaea;
}

/* BUSCADOR */
.datatable-input {
    border-radius: 20px;
    padding: 6px 12px;
    border: 1px solid #ced4da;
}


/* PAGINADOR */
.datatable-pagination a {
    color: #7a0c0c;
    border-radius: 6px;
    padding: 6px 10px;
}

/* PAGINA ACTIVA */
.datatable-pagination .active a {
    background-color: #7a0c0c;
    color: #ffffff;
}


/** color de la tabla head*/
.bg-istta {
    background-color: #7a0c0c; /* rojo vino */
    color: #ffffff;
}
/** GRID DOCENTES COORDINADOR */
.docente-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}

/*** Card de docentes*/
.docente-card {
    height: 100%;
    background: #f5f5f5;
    border-radius: 15px;
    text-align: center;
    position: relative;
    margin: 5px 5px;
    border: 2px solid #cea6a6;
    box-shadow: 1px 5px 60px 0px #100a886b;
}
.docente-card .card-border-top {
        width: 60%;
        height: 3%;
        background: #5f0c0c;
        margin: auto;
        border-radius: 0px 0px 15px 15px;
}
.card-actions {
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    display: flex;
    justify-content: space-between;
}

.icon-btn {
    background: none;
    border: none;
    font-size: 1.1rem;
    cursor: pointer;
   
}

.avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid #eee;
    margin-bottom: 10px;
    margin-top: 10px;
}

.nombre {
    font-weight: 600;
    margin: 0;
    color: black
}

.codigo {
    color: gray;
    font-size: .85rem;
}

.chips {
    margin-top: .7rem;
    margin-bottom: 2px;
    display: flex;
    gap: .4rem;
    justify-content: center;
    flex-wrap: wrap;
}

.chip {
    background: #e0e0e0;
    padding: .3rem .7rem;
    border-radius: 999px;
    font-size: .75rem;
}
/*************************************************************/
/* Toolbar superior */
.table-toolbar {
    gap: 0.5rem;
}
.table-color {
    background-color: #e8b510;
}

/* Select pequeño */
.page-size-select {
    width: 90px;
}

/* Footer */
.table-footer {
    border-top: 1px solid #e5e7eb;
    padding-top: 0.75rem;
}

/* Texto informativo */
.table-info {
    font-weight: 500;
}

/* Paginación */
.pagination .page-link {
    color: #92400e;
    border-radius: 0.375rem;
    border: 1px solid #fcd34d;
}

.pagination .page-item.active .page-link {
    background-color: #facc15;
    border-color: #facc15;
    color: #78350f;
    font-weight: 600;
}

.pagination .page-link:hover {
    background-color: #facc15;
    color: #78350f;
}

/* Responsive */
@media (max-width: 768px) {
    .table-info {
        text-align: center;
    }
}

@media (max-width:993px) {
    .top-logo {
        height: 30px;
    }

    .sb-topnav .navbar-brand span {
        font-size: 0.95rem;
    }
    .border-separator {
        border-right: none;
        margin-right: 0;
        padding-right: 0.5rem;
    }
}
/* ===== Simple Datatables responsive fix ===== */

@media (max-width: 768px) {

    .datatable-bottom {
        display: flex;
        flex-direction: column;
        gap: 8px;
        align-items: center;
        text-align: center;
    }

    .datatable-bottom .datatable-info {
        order: 1;
        font-size: 0.85rem;
    }

    .datatable-bottom .datatable-pagination {
        order: 2;
        width: 100%;
        overflow-x: auto;
    }

    .datatable-bottom .datatable-pagination ul {
        justify-content: center;
        flex-wrap: wrap;
    }
}

/* Opcional: reducir botones en pantallas muy chicas */
@media (max-width: 576px) {
    .datatable-pagination li:not(.active):not(:first-child):not(:last-child) {
        display: none;
    }
}

/* ===== LOADING OVERLAY ===== */

.loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(10, 15, 30, 0.9);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.logo-loader {
    position: relative;
    width: 180px;
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
}
/*.logo-loader img {
    width: 110px;
    height: 110px;
    object-fit: contain;
    position: relative;
    z-index: 2;
}*/

/* ARO GIRATORIO */
.loader-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top: 4px solid #f5c16c;
    border-right: 4px solid #a51d2d;
    animation: spin 1.2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.user-profile {
    
}

.user-avatar {
    width: 56px;
    height: 56px;
    flex-shrink: 0;
}

.user-info {
    min-width: 0;
}

/* RESPONSIVE */
@media (max-width: 768px) {

    .user-avatar {
        width: 48px;
        height: 48px;
    }

    .user-profile {
        padding: 0.75rem;
    }
}
/* para los nombres en peril de usuario*/
.nombre-usuario {
    white-space: normal; /* permite salto de línea */
    word-break: break-word; /* corta palabras largas */
    line-height: 1.2;
}

.periodo-card {
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.periodo-header {
    background: #8d0909;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 12px 18px;
}


/* CONTENIDO */

.periodo-contenido {
    padding: 25px 15px;
}


/* ==============================
   PERIODO PRINCIPAL
============================== */

.periodo-principal {
    text-align: center;
    padding: 20px;
}

.periodo-icono {
    width: 65px;
    height: 65px;
    margin: 0 auto 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #8d0909;
    color: white;
    border-radius: 50%;
    font-size: 1.8rem;
    box-shadow: 0 4px 10px rgba(141, 9, 9, .25);
}

.periodo-label {
    color: #777;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.periodo-semestre {
    display: inline-block;
    margin-top: 8px;
    padding: 8px 35px;
    background: #ffc107;
    border-radius: 20px;
    font-size: 1.8rem;
    font-weight: 700;
    color: #333;
    box-shadow: 0 3px 8px rgba(0,0,0,.12);
}


/* ==============================
   TARJETAS DE FECHA
============================== */

.fecha-card {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    padding: 20px;
    transition: all .2s ease;
    height: 100%;
}

    .fecha-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 6px 15px rgba(0,0,0,.12);
    }


/* ICONOS */

.fecha-icono {
    width: 55px;
    height: 55px;
    min-width: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    margin-right: 15px;
    font-size: 1.4rem;
}

    .fecha-icono.inicio {
        background: #8d0909;
        color: white;
    }

    .fecha-icono.fin {
        background: #ffc107;
        color: #333;
    }


/* TEXTO */

.fecha-info {
    display: flex;
    flex-direction: column;
}

.fecha-label {
    font-size: .75rem;
    font-weight: 700;
    color: #777;
    letter-spacing: .5px;
}

.fecha-valor {
    font-size: 1.35rem;
    font-weight: 600;
    color: #333;
    margin-top: 3px;
}


/* ==============================
   RESPONSIVE
============================== */

@media (max-width: 576px) {

    .periodo-contenido {
        padding: 15px 5px;
    }

    .periodo-semestre {
        font-size: 1.5rem;
        padding: 7px 25px;
    }

    .fecha-card {
        padding: 15px;
    }

    .fecha-valor {
        font-size: 1.15rem;
    }
}
/***Para el periodo en el NavBar***/
.periodo-navbar {

    color: white;
    font-size: 0.85rem;
    white-space: nowrap;
}

.periodo-navbar i {
    color: #ffc107;
    font-size: 1rem;
}

.periodo-navbar-text {
    color: rgba(255, 255, 255, 0.75);
}

.periodo-navbar-valor {
    background-color: #ffffff;
    color: #3a1a1a;

    font-weight: 700;

    padding: 4px 12px;

    border-radius: 5px;

    font-size: 0.8rem;

    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}





/*CODIGO CSS PARA MATRICULADOS ALUMNOS */

/* ==========================================================
   MATRICULADOS ALUMNOS
   NO MODIFICA SIDEBAR NI TOPBAR
========================================================== */

.matriculados-page {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}


/* ==========================================================
   LAYOUT
========================================================== */

.matriculados-layout {
    width: 100%;
    display: grid;
    gap: 16px;
    align-items: start;
    box-sizing: border-box;
}


    /* DETALLE ABIERTO */

    .matriculados-layout.detalle-abierto {
        grid-template-columns: minmax(0, 1fr) 350px;
    }


    /* DETALLE CERRADO */

    .matriculados-layout.detalle-cerrado {
        grid-template-columns: minmax(0, 1fr);
    }


/* ==========================================================
   CONTENIDO PRINCIPAL
========================================================== */

.matriculados-main {
    width: 100%;
    min-width: 0;
}


/* ==========================================================
   UNIDAD DIDÁCTICA
========================================================== */

.unidad-card {
    width: 100%;
    min-height: 112px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 16px;
    box-sizing: border-box;
    border: 1px solid #eadfd5;
    border-radius: 10px;
    background: linear-gradient( 120deg, #fffaf4 0%, #fff8ed 65%, #f7e9d6 100% );
    box-shadow: 0 2px 8px rgba(60, 20, 20, 0.06);
    margin-bottom: 25px;
}


.unidad-icono {
    width: 115px;
    height: 110px;
    min-width: 115px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: linear-gradient( 145deg, #e98d14, #c96f0a );
    color: white;
    font-size: 3rem;
}


.unidad-info {
    flex: 1;
    min-width: 0;
}


.unidad-label {
    display: block;
    color: #d66e0b;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 5px;
}


.unidad-info h2 {
    margin: 0;
    color: #5f1018;
    font-size: 1.25rem;
    font-weight: 800;
}


.unidad-periodo {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 9px;
    color: #642028;
    font-size: 0.9rem;
}


    .unidad-periodo i {
        color: #6d0d18;
    }


/* BOTON CAMBIAR UNIDAD */

.btn-cambiar-unidad {
    flex-shrink: 0;
    border: none;
    background: #7a0715;
    color: white;
    padding: 11px 17px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
    font-weight: 600;
}


    .btn-cambiar-unidad:hover {
        background: #5f0711;
    }


/* ==========================================================
   TITULO
========================================================== */

.estudiantes-heading {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}


.heading-icon {
    color: #760b18;
    font-size: 2rem;
}


.estudiantes-heading h1 {
    margin: 0;
    color: #5e1018;
    font-size: 1.55rem;
    font-weight: 800;
}


.estudiantes-heading p {
    margin: 4px 0 0;
    color: #526173;
    font-size: 0.9rem;
}


/* ==========================================================
   ESTADISTICAS
========================================================== */

.estadisticas-grid {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 18px;
}


.estadistica-card {
    min-height: 92px;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 15px;
    box-sizing: border-box;
    border: 1px solid #eadfd5;
    border-radius: 10px;
    background: #fffdfb;
    box-shadow: 0 3px 8px rgba(70, 20, 20, 0.06);
}


.estadistica-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: white;
    font-size: 1.45rem;
}


    .estadistica-icon.total {
        background: #870d20;
    }


    .estadistica-icon.activos {
        background: #159447;
    }


    .estadistica-icon.otros {
        background: #e68a0b;
    }


.estadistica-card strong {
    display: block;
    color: #5f1018;
    font-size: 1.7rem;
    line-height: 1;
}


.estadistica-card span {
    display: block;
    margin-top: 5px;
    color: #334155;
    font-size: 0.85rem;
}


/* ==========================================================
   CONTENEDOR TABLA
========================================================== */

.estudiantes-card {
    width: 100%;
    box-sizing: border-box;
    padding: 12px;
    background: #fffdfb;
    border: 1px solid #eadfd5;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(60, 20, 20, 0.05);
}


/* ==========================================================
   TOOLBAR
========================================================== */

.estudiantes-toolbar {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) 190px auto;
    gap: 18px;
    align-items: center;
    margin-bottom: 20px;
}


.buscador-estudiantes {
    height: 42px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #e5d9ce;
    border-radius: 8px;
    background: white;
}


    .buscador-estudiantes i {
        color: #6d0d18;
    }


    .buscador-estudiantes input {
        width: 100%;
        border: none;
        outline: none;
        color: #334155;
        font-size: 0.85rem;
        background: transparent;
    }


.filtro-estado {
    position: relative;
}


    .filtro-estado label {
        position: absolute;
        top: -8px;
        left: 10px;
        padding: 0 5px;
        background: #fffdfb;
        color: #64748b;
        font-size: 0.72rem;
    }


    .filtro-estado select {
        width: 100%;
        height: 42px;
        padding: 0 10px;
        border: 1px solid #e5d9ce;
        border-radius: 8px;
        background: white;
        color: #334155;
        outline: none;
    }


.btn-exportar {
    height: 42px;
    padding: 0 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid #1d6f42;
    border-radius: 8px;
    background: #217346; /* verde Excel */
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}

    .btn-exportar:hover:not(:disabled) {
        background: #1a5c38; /* verde más oscuro al pasar el mouse */
    }

    .btn-exportar:disabled {
        opacity: 0.55;
        cursor: not-allowed;
    }


/* ==========================================================
   TABLA
========================================================== */

.tabla-wrapper {
    width: 100%;
    overflow-x: auto;
    box-sizing: border-box;
}


.tabla-estudiantes {
    width: 100%;
    min-width: 900px;
    border-collapse: separate;
    border-spacing: 0;
    font-size: 0.82rem;
}


    .tabla-estudiantes thead th {
        padding: 12px 10px;
        background: #7c0616;
        color: white;
        text-align: left;
        font-weight: 700;
        white-space: nowrap;
    }


        .tabla-estudiantes thead th:first-child {
            border-radius: 8px 0 0 0;
        }


        .tabla-estudiantes thead th:last-child {
            border-radius: 0 8px 0 0;
        }


    .tabla-estudiantes tbody td {
        padding: 10px;
        border-bottom: 1px solid #eee4db;
        color: #334155;
        vertical-align: middle;
        white-space: nowrap;
    }


    .tabla-estudiantes tbody tr:hover {
        background: #fff8f3;
    }


/* ==========================================================
   ESTADO
========================================================== */

.estado-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    padding: 4px 11px;
    border-radius: 20px;
    font-size: 0.74rem;
    font-weight: 600;
}


.estado-activo {
    background: #dff5e3;
    color: #16833b;
    border: 1px solid #a8dfb3;
}


.estado-proceso {
    background: #fff0d5;
    color: #d47700;
    border: 1px solid #f2c779;
}


.estado-retirado {
    background: #ffe0e0;
    color: #c62828;
    border: 1px solid #f2aaaa;
}


/* ==========================================================
   BOTON VER
========================================================== */

.btn-ver-alumno {
    border: none;
    background: transparent;
    color: #5f1018;
    font-size: 1rem;
    cursor: pointer;
    padding: 5px 8px;
    border-radius: 5px;
}


    .btn-ver-alumno:hover {
        background: #f5e3df;
    }


/* ==========================================================
   FOOTER
========================================================== */

.tabla-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 4px 2px;
    color: #475569;
    font-size: 0.82rem;
}


.paginacion {
    display: flex;
    gap: 5px;
}


    .paginacion button {
        width: 31px;
        height: 31px;
        border: 1px solid #e5d9ce;
        background: white;
        border-radius: 6px;
        color: #5f1018;
        cursor: pointer;
    }


        .paginacion button.activo {
            background: #7c0616;
            border-color: #7c0616;
            color: white;
        }


/* ==========================================================
   DETALLE ESTUDIANTE
========================================================== */

.detalle-estudiante {
    width: 100%;
    min-width: 0;
    background: #fffdfb;
    border: 1px solid #eadfd5;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 3px 12px rgba(60, 20, 20, 0.10);
}


.detalle-header {
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 18px;
    background: #6f0715;
    color: white;
}


    .detalle-header h3 {
        margin: 0;
        font-size: 1.05rem;
        font-weight: 700;
    }


.btn-cerrar-detalle {
    border: none;
    background: transparent;
    color: white;
    font-size: 1.3rem;
    cursor: pointer;
}


.detalle-body {
    padding: 20px;
}


.detalle-perfil {
    display: flex;
    align-items: center;
    gap: 15px;
}


.detalle-avatar {
    width: 78px;
    height: 78px;
    min-width: 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #8b0d2a;
    color: white;
    font-size: 2rem;
}


.detalle-perfil h4 {
    margin: 0 0 7px;
    color: #5c121b;
    font-size: 1rem;
    line-height: 1.3;
}


.detalle-estado {
    display: inline-block;
    padding: 4px 11px;
    border-radius: 20px;
    background: #dff5e3;
    color: #17813a;
    border: 1px solid #9edcab;
    font-size: 0.74rem;
}


.detalle-body hr {
    border: none;
    border-top: 1px solid #eadfd5;
    margin: 18px 0;
}


.detalle-item {
    display: flex;
    gap: 13px;
    margin-bottom: 19px;
    align-items: flex-start;
}


    .detalle-item > i {
        width: 20px;
        min-width: 20px;
        margin-top: 2px;
        color: #720d19;
    }


    .detalle-item span {
        display: block;
        margin-bottom: 3px;
        color: #64748b;
        font-size: 0.77rem;
    }


    .detalle-item strong {
        display: block;
        color: #263b54;
        font-size: 0.82rem;
        line-height: 1.4;
        font-weight: 500;
    }


/* INFORMACION ADICIONAL */

.informacion-adicional {
    margin-top: 20px;
    padding: 16px;
    border-radius: 9px;
    background: #fff7ee;
}


    .informacion-adicional h4 {
        margin: 0 0 18px;
        color: #67101a;
        font-size: 0.85rem;
    }


.btn-cerrar-final {
    width: 100%;
    height: 44px;
    margin-top: 8px;
    border: 1px solid #e27c1b;
    border-radius: 8px;
    background: white;
    color: #9b4b08;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 1200px) {

    .matriculados-layout.detalle-abierto {
        grid-template-columns: minmax(0, 1fr) 320px;
    }
}


@media (max-width: 992px) {

    .matriculados-layout.detalle-abierto {
        grid-template-columns: 1fr;
    }

    .estadisticas-grid {
        grid-template-columns: 1fr;
    }

    .estudiantes-toolbar {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 768px) {

    .matriculados-page {
        padding: 10px;
    }

    .unidad-card {
        flex-direction: column;
        align-items: flex-start;
    }

    .unidad-icono {
        width: 75px;
        min-width: 75px;
        height: 75px;
        font-size: 2rem;
    }

    .btn-cambiar-unidad {
        width: 100%;
        justify-content: center;
    }

    .estudiantes-toolbar {
        grid-template-columns: 1fr;
    }

    .tabla-footer {
        flex-direction: column;
        align-items: center;
    }
}


@media (max-width: 576px) {

    .estadistica-card {
        min-height: 80px;
    }

    .estadistica-icon {
        width: 50px;
        min-width: 50px;
        height: 50px;
    }

    .detalle-body {
        padding: 15px;
    }
}
/* ==========================================================
   TABLA BASE (nuevo diseño) - complementos
========================================================== */

.tabla-registros {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

    .tabla-registros select {
        height: 31px;
        padding: 0 6px;
        border: 1px solid #e5d9ce;
        border-radius: 6px;
        background: white;
        color: #334155;
        outline: none;
    }

.paginacion {
    flex-wrap: wrap;
    align-items: center;
}

    .paginacion button:hover:not(:disabled):not(.activo) {
        background: #fff5e9;
    }

    .paginacion button:disabled {
        opacity: 0.45;
        cursor: not-allowed;
    }

    .paginacion .puntos {
        width: 31px;
        line-height: 31px;
        text-align: center;
        color: #94a3b8;
    }

.tabla-estudiantes tbody td.tabla-vacia {
    text-align: center;
    padding: 28px 10px;
    color: #64748b;
    white-space: normal;
}

.tabla-vacia i {
    margin-right: 6px;
    color: #a3505a;
}
/* ==========================================================
   DETALLE ESTUDIANTE - versión compacta
========================================================== */

.detalle-perfil .detalle-avatar {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.detalle-codigo {
    display: block;
    margin-bottom: 7px;
    color: #64748b;
    font-size: 0.78rem;
}

.detalle-seccion {
    margin: 20px 0 12px;
    padding-bottom: 6px;
    border-bottom: 1px solid #eadfd5;
    color: #67101a;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detalle-body .detalle-item {
    margin-bottom: 12px;
}

    /* Los correos largos no se salen del panel */
    .detalle-body .detalle-item strong {
        white-space: normal;
        word-break: break-word;
    }

/* ==========================================================
   CONFIGURACIÓN DE USUARIO
========================================================== */

.config-page {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

/* ---------- AVISO CAMBIAR CONTRASEÑA ---------- */
.config-aviso {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 18px;
    margin-bottom: 18px;
    border: 1px solid #f2c779;
    border-left: 5px solid #e49a20;
    border-radius: 10px;
    background: #fff6e6;
    color: #7a4a05;
}

    .config-aviso i {
        font-size: 1.5rem;
        color: #df8c12;
    }

    .config-aviso strong {
        display: block;
        color: #68091b;
    }

    .config-aviso span {
        font-size: 0.88rem;
    }

/* ---------- TARJETA DE PERFIL ---------- */
.perfil-card {
    display: flex;
    align-items: center;
    gap: 22px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eadfd5;
    border-radius: 12px;
    background: linear-gradient(120deg, #fffaf4 0%, #fff8ed 65%, #f7e9d6 100%);
    box-shadow: 0 2px 8px rgba(60, 20, 20, 0.06);
}

.perfil-avatar {
    width: 96px;
    height: 96px;
    min-width: 96px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #e98d14, #c96f0a);
    color: #ffffff;
    font-size: 2.2rem;
    font-weight: 800;
    letter-spacing: 1px;
    box-shadow: 0 4px 12px rgba(201, 111, 10, 0.3);
}

.perfil-info {
    flex: 1;
    min-width: 0;
}

.perfil-label {
    display: block;
    margin-bottom: 4px;
    color: #d66e0b;
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.perfil-info h2 {
    margin: 0;
    color: #5f1018;
    font-size: 1.35rem;
    font-weight: 800;
    word-break: break-word;
}

.perfil-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-top: 6px;
    color: #642028;
    font-size: 0.9rem;
}

    .perfil-meta i {
        color: #6d0d18;
    }

.perfil-separador {
    color: #c9a9a0;
}

.perfil-roles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.rol-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 20px;
    background: #7a0715;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 600;
}

/* ---------- PESTAÑAS ---------- */
.config-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 18px;
    border-bottom: 2px solid #eadfd5;
}

.config-tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    margin-bottom: -2px;
    border: none;
    border-bottom: 3px solid transparent;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    cursor: pointer;
}

    .config-tab:hover {
        color: #5f1018;
    }

    .config-tab.activa {
        color: #68091b;
        border-bottom-color: #df8c12;
    }

.tab-alerta {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #c62828;
}

/* ---------- TARJETAS DE INFORMACIÓN ---------- */
.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
    align-items: start;
}

.info-card {
    padding: 18px;
    border: 1px solid #eadfd5;
    border-radius: 10px;
    background: #fffdfb;
    box-shadow: 0 2px 8px rgba(60, 20, 20, 0.05);
}

    .info-card .detalle-seccion {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-top: 0;
    }

    .info-card .detalle-item {
        margin-bottom: 12px;
    }

        .info-card .detalle-item strong {
            white-space: normal;
            word-break: break-word;
        }

.config-panel {
    max-width: 900px;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 768px) {
    .config-page {
        padding: 10px;
    }

    .perfil-card {
        flex-direction: column;
        text-align: center;
    }

    .perfil-meta,
    .perfil-roles {
        justify-content: center;
    }

    .config-tab {
        flex: 1;
        justify-content: center;
        padding: 10px 8px;
    }
}
.config-tab.bloqueada,
.config-tab.bloqueada:hover {
    color: #b0b8c4;
    cursor: not-allowed;
}

.tab-candado {
    font-size: 0.75rem;
}
/* ---------- SEGURIDAD ---------- */
.seguridad-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    max-width: 1000px;
}

.form-password {
    max-width: 480px;
}

.campo-password {
    margin-bottom: 16px;
}

    .campo-password label {
        display: block;
        margin-bottom: 6px;
        color: #5f1018;
        font-size: 0.85rem;
        font-weight: 600;
    }

/* Campo con el botón del ojo dentro */
.input-password {
    position: relative;
}

    .input-password .form-control {
        height: 42px;
        padding-right: 44px;
        border: 1px solid #e5d9ce;
        border-radius: 8px;
    }

        .input-password .form-control:focus {
            border-color: #df8c12;
            box-shadow: 0 0 0 3px rgba(223, 140, 18, 0.15);
        }

.btn-ver-password {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: #6d0d18;
    cursor: pointer;
}

    .btn-ver-password:hover {
        background: #f5e3df;
    }

.mensaje-validacion {
    margin-top: 5px;
    color: #c62828;
    font-size: 0.8rem;
}

/* Botón guardar */
.btn-guardar-password {
    height: 44px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    border-radius: 8px;
    background: #7a0715;
    color: #ffffff;
    font-weight: 700;
    cursor: pointer;
}

    .btn-guardar-password:hover:not(:disabled) {
        background: #5f0711;
    }

    .btn-guardar-password:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

/* Requisitos en vivo */
.requisitos-password h6 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px;
    color: #67101a;
    font-weight: 800;
}

.requisitos-password ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requisitos-password li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 0;
    color: #64748b;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

    .requisitos-password li i {
        color: #b0b8c4;
    }

    .requisitos-password li.cumple {
        color: #16833b;
        font-weight: 600;
    }

        .requisitos-password li.cumple i {
            color: #159447;
        }

@media (max-width: 768px) {
    .seguridad-grid {
        grid-template-columns: 1fr;
    }
}
/* Periodo centrado en la barra (pantallas grandes) */
@media (min-width: 992px) {
    .periodo-navbar {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
    }
}