/* ==========================================================================
   PANEL ADMINISTRATIVO — Estilos exclusivos
   Adapta los parámetros del sistema de diseño IES10 a las clases del panel.
   ========================================================================== */

/* --------------------------------------------------------------------------
   BODY / FONDO GENERAL
   -------------------------------------------------------------------------- */
body {
    background-color: var(--slate-100);
    font-family: var(--font-sans);
    margin: 0;
}

/* --------------------------------------------------------------------------
   ENCABEZADO PRINCIPAL — sticky glassmorphism
   -------------------------------------------------------------------------- */
.encabezadoPrincipal {
    background-color: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.10);
    width: 100%;
    box-sizing: border-box;
}

/* Flex interno del encabezado */
.encabezadoFlexible {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
    padding: 0 var(--space-6);
    max-width: 1400px;
    margin: 0 auto;
    gap: var(--space-4);
}

/* --------------------------------------------------------------------------
   LOGO + TEXTO INSTITUCIONAL
   -------------------------------------------------------------------------- */
.logoPrincipal {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    /* NO poner width:100% — debe compartir fila con el menú */
    flex-shrink: 1;
    min-width: 0;
}

.logoImg {
    height: 4rem;
    width: auto;
    object-fit: contain;
    flex-shrink: 0;
}

.logoText {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
    min-width: 0;
}

.marcaLogo {
    font-size: 1rem;
    font-weight: 800;
    color: var(--emerald-700);
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.marcaSub {
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--slate-400);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* --------------------------------------------------------------------------
   MENÚ DE USUARIO (contenedor + botón + dropdown)
   -------------------------------------------------------------------------- */
.desktop-menu {
    position: relative;
    flex-shrink: 0;
}

/* Botón disparador del dropdown */
.btn-menu {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    background: var(--white);
    border: 1px solid var(--slate-200);
    cursor: pointer;
    color: var(--slate-600);
    font-weight: 600;
    font-size: 0.9rem;
    transition: all var(--transition-base);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.btn-menu:hover {
    background: var(--slate-50);
    color: var(--slate-800);
    border-color: var(--emerald-300);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

/* Nombre de usuario visible en el botón */
.btn-menu .display-user-name {
    font-weight: 700;
    color: var(--slate-800);
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

/* Ícono chevron */
.icon-menu {
    width: 1.1rem;
    height: 1.1rem;
    flex-shrink: 0;
    transition: transform var(--transition-base);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%2394a3b8'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.btn-menu.open .icon-menu {
    transform: rotate(180deg);
}

/* El dropdown usa .desktop-nav de navigation.css.
   Solo ajustamos la lista interna que aquí es <ul class="menu-list"> */
.desktop-menu .menu-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

/* El <li class="desktop-divider"> tiene styles en navigation.css,
   pero si vienen en línea aquí los reforzamos */
.desktop-menu li.desktop-divider {
    height: 1px;
    background: var(--slate-100);
    margin: var(--space-2) 0;
    list-style: none;
}

/* --------------------------------------------------------------------------
   SECCIÓN NOTICIAS / HERO SLIDER
   -------------------------------------------------------------------------- */
.main-noticias {
    max-width: 1400px;
    margin: var(--space-6) auto 0;
    padding: 0 var(--space-6);
    box-sizing: border-box;
}

.info-noticias {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.1);
    height: 480px;
}

/* --------------------------------------------------------------------------
   SECCIÓN PRINCIPAL — contenedor sedes + botón info
   -------------------------------------------------------------------------- */
.contenedorPrincipal {
    max-width: 1400px;
    margin: var(--space-8) auto var(--space-12);
    padding: 0 var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    box-sizing: border-box;
}

/* --------------------------------------------------------------------------
   CABECERA ESPECTACULAR DE SECCIÓN (FILA HORIZONTAL)
   -------------------------------------------------------------------------- */
.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: var(--space-4);
    border-bottom: 2px solid var(--slate-100);
    padding-bottom: var(--space-5);
    flex-wrap: wrap;
    gap: var(--space-4);
}

.section-title {
    font-size: clamp(1.4rem, 2.5vw, 1.85rem);
    font-weight: 850;
    color: var(--slate-900);
    position: relative;
    padding-left: var(--space-4);
    line-height: 1.2;
    margin: 0;
    letter-spacing: -0.02em;
}

/* Barra de acento izquierdo premium con gradiente esmeralda */
.section-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 15%;
    height: 70%;
    width: 5px;
    background: linear-gradient(to bottom, var(--emerald-400), var(--emerald-600));
    border-radius: var(--radius-full);
}

.info-heider {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: var(--space-3);
}

/* Botón de Resolución en Cabecera */
.btn-header-resolucion {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-5);
    background: rgba(16, 185, 129, 0.08);
    border: 1.5px solid var(--emerald-400);
    color: var(--emerald-700);
    border-radius: var(--radius-xl);
    font-size: 0.95rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(16, 185, 129, 0.05);
}

.btn-header-resolucion:hover {
    background: var(--emerald-600);
    color: var(--white);
    border-color: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.25);
}

.btn-header-resolucion i {
    font-size: 1.1rem;
}

/* --------------------------------------------------------------------------
   GRID DE SEDES — las cards se inyectan directamente en #contenedor-sedes
   -------------------------------------------------------------------------- */
#contenedor-sedes {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    width: 100%;
}

/* --------------------------------------------------------------------------
   CARD ACTIONS ROW — el JS inyecta .card-actions-row, alineamos con el sistema
   -------------------------------------------------------------------------- */
.card-actions-row {
    display: flex;
    gap: var(--space-3);
    margin-top: auto;
    padding-top: var(--space-4);
    border-top: 1px solid var(--slate-100);
    width: 100%;
}

.card-actions-row .btn-outline-emerald {
    flex: 1;
}

.card-actions-row .btn-cargos-sede {
    flex: none;
    width: auto;
    padding: var(--space-2) var(--space-4);
}

/* --------------------------------------------------------------------------
   RESPONSIVO
   -------------------------------------------------------------------------- */






/* ==========================================================================
   ESTILOS PREMIUM DE TARJETAS DE SEDES (OPCIÓN A - GLASSMORPHIC)
   ========================================================================== */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    width: 100%;
}

.doc-card-premium {
    background: var(--glass-bg, rgba(255, 255, 255, 0.8));
    backdrop-filter: blur(var(--glass-blur, 12px)) saturate(180%);
    -webkit-backdrop-filter: blur(var(--glass-blur, 12px)) saturate(180%);
    border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.4));
    border-radius: var(--radius-2xl);
    padding: var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    cursor: pointer;
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    box-shadow: var(--glass-shadow);
    text-align: left;
}

/* Hover de la Tarjeta */
.doc-card-premium:hover {
    transform: translateY(-4px);
    border-color: var(--emerald-400);
    box-shadow: 0 12px 20px -8px rgba(16, 185, 129, 0.15);
}

/* Barra inferior interactiva */
.doc-card-premium::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--emerald-500);
    transform: scaleX(0);
    transition: transform var(--transition-base);
    transform-origin: left;
}

.doc-card-premium:hover::after {
    transform: scaleX(1);
}

/* Título */
.doc-card-premium .doc-title-main {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--slate-900);
    line-height: 1.3;
    margin: 0;
}

/* Descripción */
.doc-card-premium .doc-description {
    color: var(--slate-500);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
    flex-grow: 1;
}

/* Footer interno */
.doc-card-premium .doc-footer {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--space-4);
    border-top: 1px solid var(--slate-200);
}

/* Enlace/Acción */
.doc-card-premium .action-label {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--emerald-600);
    font-weight: 800;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
    transition: transform var(--transition-base);
}

.doc-card-premium:hover .action-label {
    transform: translateX(3px);
}

/* Contenedor del Icono */
.doc-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all var(--transition-base);
    background: var(--slate-50);
    color: var(--slate-600);
}

.doc-icon-wrapper.emerald {
    background: var(--emerald-50);
    color: var(--emerald-600);
}

.doc-icon-wrapper.blue {
    background: var(--blue-50);
    color: var(--blue-600);
}

.doc-icon-wrapper.orange {
    background: var(--orange-50);
    color: var(--orange-600);
}

/* Giro sutil al hacer hover en la card */
.doc-card-premium:hover .doc-icon-wrapper {
    transform: scale(1.1) rotate(-5deg);
}

/* Píldora de POF */
.btn-pof-pill {
    background: var(--slate-100);
    color: var(--slate-600);
    border: 1px solid var(--slate-200);
    padding: 0.35rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-base);
}

.btn-pof-pill:hover {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border-color: var(--emerald-300);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1.5px);
}
.btn-pof-pill:hover i {
    color: var(--emerald-600);
}

/* Responsividad */




/* ==========================================================================
   SEDES Y CARRERAS - Estilos Avanzados de Oferta Académica
   ========================================================================== */

/* === HERO BANNER DE SEDES === */
.career-hero {
    background: linear-gradient(135deg, var(--emerald-800) 0%, var(--slate-900) 100%);
    padding: 3rem var(--space-6);
    position: relative;
    overflow: visible; /* Cambiado para evitar cortar dropdowns */
    color: var(--white);
    border-bottom: 2px solid var(--emerald-600);
}

.career-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        linear-gradient(45deg, transparent 48%, rgba(16, 185, 129, 0.04) 50%, transparent 52%),
        linear-gradient(-45deg, transparent 48%, rgba(16, 185, 129, 0.04) 50%, transparent 52%);
    background-size: 40px 40px;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1; /* Protege de salirse o quedar arriba del submenu */
}

.container-hero {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

/* === BREADCRUMB (Ruta de Navegación) === */
.hero-breadcrumb {
    margin-bottom: var(--space-4);
}

.breadcrumb-trail {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 0.82rem;
    font-weight: 700;
}

.breadcrumb-item {
    color: var(--emerald-300);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    transition: all var(--transition-base);
}

.breadcrumb-item:hover {
    color: var(--emerald-400);
    transform: translateY(-1px);
}

.breadcrumb-sep {
    color: var(--slate-500);
    font-size: 0.68rem;
}

.breadcrumb-current {
    color: var(--slate-300);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

/* === DETALLES DE CABECERA === */
.career-hero .badge {
    display: inline-block;
    background: rgba(16, 185, 129, 0.15);
    color: var(--emerald-300);
    padding: 0.35rem 0.85rem;
    border-radius: var(--radius-lg);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(16, 185, 129, 0.25);
    margin-bottom: var(--space-3);
}

.career-hero .hero-title {
    font-size: 2.2rem;
    font-weight: 900;
    margin: 0 0 var(--space-2);
    letter-spacing: -0.02em;
    text-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    line-height: 1.15;
}

.career-hero .hero-subtitle {
    font-size: 0.95rem;
    max-width: 700px;
    color: var(--slate-300);
    line-height: 1.5;
    margin: 0;
}

/* === FILTROS Y BUSCADOR === */
.filter-search-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-4);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
    background: var(--white);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: 0 10px 25px -5px rgba(0,0,0,0.02);
}

.filter-buttons {
    display: flex;
    gap: var(--space-2);
}

.filter-btn {
    padding: 0.55rem 1.25rem;
    border-radius: var(--radius-full);
    border: 1px solid var(--slate-200);
    background: var(--white);
    color: var(--slate-600);
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all var(--transition-base);
}

.filter-btn:hover {
    border-color: var(--emerald-500);
    color: var(--emerald-600);
    background: var(--emerald-50);
}

.filter-btn.active {
    background: var(--emerald-600);
    color: var(--white);
    border-color: var(--emerald-600);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.search-container {
    position: relative;
    max-width: 350px;
    width: 100%;
}

.search-input {
    width: 100%;
    padding: 0.58rem 1rem 0.58rem 2.3rem;
    border: 1px solid var(--slate-200);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    outline: none;
    transition: all var(--transition-base);
    background: var(--slate-50);
    box-sizing: border-box;
}

.search-input:focus {
    border-color: var(--emerald-500);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1);
}

.search-icon {
    position: absolute;
    left: 0.95rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--slate-400);
    font-size: 0.85rem;
}

/* === TARJETAS DE CARRERAS PERSONALIZADAS === */
.career-card-badge {
    position: absolute;
    top: var(--space-5);
    right: var(--space-5);
    font-size: 0.66rem;
    font-weight: 800;
    padding: 0.25rem 0.6rem;
    border-radius: var(--radius-md);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

/* Variación Profesorado (Esmeralda) */
.type-profesorado {
    border-top: 4px solid var(--emerald-500) !important;
}
.type-profesorado .career-card-badge {
    background: var(--emerald-50) !important;
    color: var(--emerald-700) !important;
}
.type-profesorado .doc-icon-wrapper {
    background: var(--emerald-50) !important;
    color: var(--emerald-600) !important;
}

/* Variación Tecnicatura (Esmeralda) */
.type-tecnica {
    border-top: 4px solid var(--emerald-500) !important;
}
.type-tecnica .career-card-badge {
    background: var(--emerald-50);
    color: var(--emerald-700);
}
.type-tecnica .doc-icon-wrapper {
    background: var(--emerald-50) !important;
    color: var(--emerald-600) !important;
}

/* Tarjeta vacía (Sin Carreras) */
.empty-career-card {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 4rem 2rem;
    background: var(--white);
    border: 1px dashed var(--slate-300);
    border-radius: var(--radius-3xl);
    text-align: center;
}

.empty-career-icon {
    font-size: 3rem;
    color: var(--slate-300);
    margin-bottom: var(--space-4);
}

.empty-career-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--slate-800);
    margin-bottom: var(--space-1);
}

.empty-career-subtitle {
    font-size: 0.85rem;
    color: var(--slate-400);
    max-width: 400px;
}

/* Responsividad Sede */


/* ==========================================================================
   PORTAL DE PRECEPTORES — Sobreescritura de Estilos para el Sector Preceptor
   ========================================================================== */

body[data-sec-modulo="preceptores"] .encabezadoPrincipal {
    box-shadow: 0 4px 12px rgba(4, 120, 87, 0.08) !important;
}

body[data-sec-modulo="preceptores"] .marcaLogo {
    color: var(--emerald-700) !important;
}

body[data-sec-modulo="preceptores"] .section-title::before {
    background: linear-gradient(to bottom, var(--emerald-400), var(--emerald-600)) !important;
}

body[data-sec-modulo="preceptores"] .btn-menu:hover {
    border-color: var(--emerald-400) !important;
    background: var(--emerald-50) !important;
}

body[data-sec-modulo="preceptores"] .btn-outline-emerald {
    border-color: var(--emerald-600) !important;
    color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .btn-outline-emerald:hover {
    background-color: var(--emerald-600) !important;
    color: var(--white) !important;
    border-color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .btn-pof-pill:hover {
    background: var(--emerald-50) !important;
    border-color: var(--emerald-300) !important;
    color: var(--emerald-700) !important;
}
body[data-sec-modulo="preceptores"] .btn-pof-pill:hover i {
    color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .doc-card-premium:hover {
    border-color: var(--emerald-400) !important;
    box-shadow: 0 12px 20px -8px rgba(16, 185, 129, 0.15) !important;
}

body[data-sec-modulo="preceptores"] .doc-card-premium::after {
    background: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .doc-card-premium .action-label {
    color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .doc-icon-wrapper.emerald {
    background: var(--emerald-50) !important;
    color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .btn-back-selection:hover {
    background: var(--emerald-600) !important;
    border-color: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .info-noticias {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.12) !important;
    border: 1px solid rgba(16, 185, 129, 0.08) !important;
}

body[data-sec-modulo="preceptores"] .loader-path {
    stroke: var(--emerald-600) !important;
}

body[data-sec-modulo="preceptores"] .loader-main-text {
    color: var(--emerald-700) !important;
}

/* Layout del Dashboard Split */
body[data-sec-modulo="preceptores"] .preceptor-dashboard-split {
    display: grid;
    grid-template-columns: 2.2fr 1fr;
    gap: var(--space-6);
    align-items: start;
    width: 100%;
    margin-top: var(--space-4);
}



/* Panel Izquierdo */
body[data-sec-modulo="preceptores"] .dashboard-panel-main {
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

/* Selector de Pestañas */
body[data-sec-modulo="preceptores"] .dashboard-tabs-bar {
    display: flex;
    background: var(--slate-50);
    border-bottom: 1px solid var(--slate-200);
    padding: var(--space-2) var(--space-4);
    gap: var(--space-2);
}

body[data-sec-modulo="preceptores"] .tab-btn {
    border: none;
    background: transparent;
    padding: var(--space-3) var(--space-5);
    font-size: 0.9rem;
    font-weight: 750;
    color: var(--slate-500);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
}

body[data-sec-modulo="preceptores"] .tab-btn:hover {
    color: var(--emerald-600);
    background: var(--slate-100);
}

body[data-sec-modulo="preceptores"] .tab-btn.active {
    color: var(--emerald-600);
    background: var(--emerald-50);
}

/* Tabla Premium */
body[data-sec-modulo="preceptores"] .table-card-container {
    padding: var(--space-4);
    overflow-x: auto;
    position: relative;
    min-height: 200px;
}

body[data-sec-modulo="preceptores"] .premium-dashboard-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

body[data-sec-modulo="preceptores"] .premium-dashboard-table th {
    padding: var(--space-4);
    font-size: 0.82rem;
    font-weight: 800;
    color: var(--slate-500);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid var(--slate-200);
}

body[data-sec-modulo="preceptores"] .premium-dashboard-table td {
    padding: var(--space-4);
    font-size: 0.88rem;
    color: var(--slate-700);
    border-bottom: 1px solid var(--slate-100);
    vertical-align: middle;
}

body[data-sec-modulo="preceptores"] .premium-dashboard-table tr:hover td {
    background: var(--slate-50);
}

/* Celdas especiales y Badges */
body[data-sec-modulo="preceptores"] .badge-status {
    padding: 0.25rem 0.65rem;
    border-radius: var(--radius-full);
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    display: inline-block;
}

body[data-sec-modulo="preceptores"] .badge-status.pendiente {
    background: var(--orange-50);
    color: var(--orange-600);
    border: 1px solid rgba(234, 88, 12, 0.15);
}

body[data-sec-modulo="preceptores"] .badge-status.aprobado {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

body[data-sec-modulo="preceptores"] .badge-status.finalizado {
    background: var(--emerald-50);
    color: var(--emerald-700);
    border: 1px solid rgba(16, 185, 129, 0.15);
}

body[data-sec-modulo="preceptores"] .badge-status.rechazado {
    background: rgba(239, 68, 68, 0.05);
    color: var(--red-600);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

/* Botones de acción de tabla */
body[data-sec-modulo="preceptores"] .btn-action-sm {
    padding: 0.4rem 0.8rem;
    font-size: 0.75rem;
    font-weight: 800;
    border-radius: var(--radius-md);
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
}

body[data-sec-modulo="preceptores"] .btn-action-sm.approve {
    background: var(--emerald-600);
    color: var(--white);
}

body[data-sec-modulo="preceptores"] .btn-action-sm.approve:hover {
    background: var(--emerald-700);
    transform: translateY(-1px);
}

body[data-sec-modulo="preceptores"] .btn-action-sm.reject {
    background: rgba(239, 68, 68, 0.08);
    color: var(--red-600);
}

body[data-sec-modulo="preceptores"] .btn-action-sm.reject:hover {
    background: var(--red-600);
    color: var(--white);
    transform: translateY(-1px);
}

/* Estado Deshabilitado (PDF no disponible) */
body[data-sec-modulo="preceptores"] .btn-action-sm.default {
    background: var(--slate-100);
    color: var(--slate-400);
    border: 1px solid var(--slate-200);
    cursor: not-allowed;
}

/* Estado Listo (PDF Disponible - Verde Esmeralda) */
body[data-sec-modulo="preceptores"] .btn-action-sm.pdf-ready {
    background: var(--emerald-50);
    color: var(--emerald-600);
    border: 1px solid var(--emerald-200);
    cursor: pointer;
}

body[data-sec-modulo="preceptores"] .btn-action-sm.pdf-ready:hover {
    background: var(--emerald-600);
    color: var(--white);
    border-color: var(--emerald-600);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2), 0 2px 4px -1px rgba(16, 185, 129, 0.1);
}

/* Panel Derecho (Sidebar) */
body[data-sec-modulo="preceptores"] .dashboard-panel-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
}

body[data-sec-modulo="preceptores"] .sidebar-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    border: 1px solid var(--slate-200);
    box-shadow: var(--shadow-md);
    padding: var(--space-5);
}

body[data-sec-modulo="preceptores"] .sidebar-card-title {
    font-size: 1rem;
    font-weight: 850;
    color: var(--slate-900);
    margin: 0 0 var(--space-4);
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

body[data-sec-modulo="preceptores"] .btn-sidebar-primary {
    width: 100%;
    background: linear-gradient(135deg, var(--emerald-600) 0%, var(--emerald-700) 100%);
    color: var(--white);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-xl);
    border: none;
    font-weight: 800;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
    transition: all var(--transition-base);
}

body[data-sec-modulo="preceptores"] .btn-sidebar-primary:hover {
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.3);
    transform: translateY(-1px);
}

body[data-sec-modulo="preceptores"] .sidebar-news-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

body[data-sec-modulo="preceptores"] .sidebar-news-list li {
    font-size: 0.82rem;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--slate-100);
}

body[data-sec-modulo="preceptores"] .sidebar-news-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

body[data-sec-modulo="preceptores"] .news-date {
    font-weight: 800;
    color: var(--emerald-600);
    font-size: 0.72rem;
    text-transform: uppercase;
}

body[data-sec-modulo="preceptores"] .news-text {
    color: var(--slate-600);
}

/* Empty State */
body[data-sec-modulo="preceptores"] .empty-state-box {
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

body[data-sec-modulo="preceptores"] .empty-icon {
    font-size: 2.5rem;
    color: var(--slate-300);
    margin-bottom: var(--space-3);
}

body[data-sec-modulo="preceptores"] .empty-title {
    font-size: 1rem;
    font-weight: 800;
    color: var(--slate-700);
    margin: 0 0 var(--space-1);
}

body[data-sec-modulo="preceptores"] .empty-subtitle {
    font-size: 0.8rem;
    color: var(--slate-400);
    margin: 0;
}

/* Table Loader */
body[data-sec-modulo="preceptores"] .table-loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--emerald-600);
    gap: var(--space-2);
    z-index: 10;
}
/* ==========================================================================
   PANEL LATERAL DE NOTIFICACIONES (ALUMNOS)
   ========================================================================== */
.student-notif-drawer {
    position: fixed;
    top: 0;
    right: -350px;
    width: 350px;
    height: 100vh;
    background: var(--white);
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.1);
    z-index: 10000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.student-notif-drawer.open {
    right: 0;
}

.notif-drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.notif-drawer-header h3 {
    margin: 0;
    font-size: 1.25rem;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-drawer-header h3 i {
    color: var(--brand-blue);
}

.btn-close-drawer {
    background: none;
    border: none;
    font-size: 1.25rem;
    color: var(--slate-500);
    cursor: pointer;
    transition: color 0.2s;
}

.btn-close-drawer:hover {
    color: var(--brand-red);
}

.notif-drawer-content {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.notif-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.notif-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

/* Tarjeta de notificación individual */
.student-notif-card {
    background: var(--white);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1rem;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    border-left: 4px solid var(--brand-blue);
}

.student-notif-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.student-notif-card.unread {
    background: #f0fdf4; /* Light green tint */
    border-left-color: #22c55e;
}

.student-notif-card.unread::before {
    content: '';
    position: absolute;
    top: -4px;
    right: -4px;
    width: 12px;
    height: 12px;
    background: #ef4444;
    border-radius: 50%;
    border: 2px solid white;
}

.notif-card-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    align-items: center;
}

.notif-card-title {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.notif-card-date {
    font-size: 0.75rem;
    color: var(--slate-500);
}

.notif-card-body {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.notif-card-footer {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    border-top: 1px solid var(--border-light);
    padding-top: 0.5rem;
    font-size: 0.75rem;
    color: var(--slate-500);
}

.notif-card-author {
    font-weight: 500;
}
