/* ============================================
   BOLETÍN OFICIAL MINERD - FORMATO EXACTO
   Replicando el diseño oficial del Ministerio de Educación
   ============================================ */

/* Contenedor principal del boletín oficial */
.boletin-oficial-editable {
    background: #ffffff;
    padding: 0;
    border: 3px solid #000000;
    margin: 2rem auto;
    max-width: 1200px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    font-family: 'Arial', 'Helvetica', sans-serif;
}

/* ============================================
   ENCABEZADO OFICIAL
   ============================================ */

.boletin-header-oficial {
    background: #ffffff;
    border-bottom: 3px solid #000000;
    padding: 1.5rem;
}

.header-logos {
    display: grid;
    grid-template-columns: 100px 1fr 100px;
    gap: 1rem;
    align-items: center;
}

.logo-left, .logo-right {
    display: flex;
    justify-content: center;
    align-items: center;
}

.escudo-placeholder {
    width: 80px;
    height: 80px;
    border: 2px solid #000000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    font-weight: 700;
    text-align: center;
    background: #f0f0f0;
}

.header-text {
    text-align: center;
}

.header-line {
    margin: 0;
    padding: 2px 0;
    font-size: 0.85rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.boletin-title {
    margin: 10px 0 5px 0;
    font-size: 1.4rem;
    font-weight: 900;
    color: #000000;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.header-subtitle {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: #000000;
    text-transform: uppercase;
}

/* ============================================
   INFORMACIÓN DEL ESTUDIANTE
   ============================================ */

.info-estudiante-oficial {
    padding: 1.5rem;
    background: #ffffff;
    border-bottom: 2px solid #000000;
}

.info-row-oficial {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.8rem;
}

.info-field-oficial {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.info-field-oficial.half {
    flex: 0 0 calc(50% - 0.5rem);
}

.label-oficial {
    font-weight: 700;
    font-size: 0.9rem;
    color: #000000;
    white-space: nowrap;
}

.input-oficial {
    flex: 1;
    padding: 6px 10px;
    border: none;
    border-bottom: 2px solid #000000;
    background: transparent;
    font-size: 0.9rem;
    font-weight: 600;
    color: #000000;
    font-family: 'Arial', sans-serif;
}

.input-oficial:focus {
    outline: none;
    background: #ffffcc;
}

.input-oficial[readonly] {
    background: #f9f9f9;
}

/* ============================================
   SECCIONES DEL BOLETÍN
   ============================================ */

/* Fila divisoria dentro de la tabla */
.fila-divisoria-tabla {
    background: #ffffff !important;
}

.celda-divisoria {
    background: #ffffff !important;
    border: 2px solid #000000 !important;
    padding: 12px 15px !important;
    font-size: 0.75rem !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    line-height: 1.4 !important;
}

.seccion-boletin-oficial {
    margin: 0;
    border-bottom: 2px solid #000000;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

/* Estilo del scrollbar horizontal */
.seccion-boletin-oficial::-webkit-scrollbar {
    height: 10px;
}

.seccion-boletin-oficial::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 5px;
}

.seccion-boletin-oficial::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.seccion-boletin-oficial::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.titulo-seccion-oficial {
    background: #000000;
    color: #ffffff;
    padding: 10px 15px;
    margin: 0;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* ============================================
   TABLAS OFICIALES
   ============================================ */

.tabla-oficial {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.tabla-oficial thead {
    background: #e8e8e8;
}

.tabla-oficial th {
    border: 2px solid #000000;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    text-transform: uppercase;
    background: #e8e8e8;
}

.col-competencia-nombre,
.col-materia-nombre {
    min-width: 250px;
    text-align: left !important;
    padding-left: 15px !important;
}

.col-periodos-header {
    background: #d0d0d0 !important;
}

.col-pruebas-header {
    background: #c0c0c0 !important;
}

.col-periodo,
.col-prueba {
    width: 60px;
    font-size: 0.8rem;
}

.tabla-oficial tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 40px;
    background: #ffffff;
}

.nombre-competencia-oficial,
.nombre-materia-oficial {
    text-align: left !important;
    padding: 10px 15px !important;
    font-weight: 600;
    font-size: 0.9rem;
    color: #000000;
    background: #fafafa;
}

/* ============================================
   INPUTS DE CALIFICACIONES
   ============================================ */

.input-calificacion {
    width: 100%;
    height: 40px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
    font-size: 1.1rem;
    font-weight: 700;
    background: transparent;
    box-sizing: border-box;
    color: #000000;
    font-family: 'Arial', sans-serif;
}

.input-calificacion::-webkit-outer-spin-button,
.input-calificacion::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-calificacion {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-calificacion:focus {
    outline: none;
    background: #ffffcc;
    box-shadow: inset 0 0 0 2px #000000;
}

.input-calificacion::placeholder {
    color: #cccccc;
    font-weight: 400;
}

.input-calificacion:not(:placeholder-shown) {
    background: #f0f9ff;
    font-weight: 900;
}

/* ============================================
   FILAS ALTERNAS
   ============================================ */

.tabla-oficial tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-oficial tbody tr:nth-child(odd) {
    background: #ffffff;
}

.tabla-oficial tbody tr:hover {
    background: #e6f2ff;
}

/* ============================================
   BOTÓN DE GUARDAR
   ============================================ */

.btn-primary.btn-full {
    background: #000000;
    color: #ffffff;
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border: 3px solid #000000;
    margin: 2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    width: calc(100% - 4rem);
}

.btn-primary.btn-full:hover {
    background: #333333;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1024px) {
    .boletin-oficial-editable {
        margin: 1rem;
        border-width: 2px;
    }
    
    .header-logos {
        grid-template-columns: 70px 1fr 70px;
        gap: 0.5rem;
    }
    
    .escudo-placeholder {
        width: 60px;
        height: 60px;
        font-size: 0.6rem;
    }
    
    .boletin-title {
        font-size: 1.2rem;
    }
    
    .header-line {
        font-size: 0.75rem;
    }
}

@media (max-width: 768px) {
    .boletin-oficial-editable {
        overflow-x: auto;
    }
    
    .header-logos {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .logo-left, .logo-right {
        display: none;
    }
    
    .info-row-oficial {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .info-field-oficial.half {
        flex: 1;
    }
    
    .tabla-oficial {
        min-width: 800px;
    }
    
    .col-competencia-nombre,
    .col-materia-nombre {
        min-width: 200px;
    }
    
    .input-calificacion {
        font-size: 1rem;
    }
}

/* ============================================
   IMPRESIÓN
   ============================================ */

@media print {
    .boletin-oficial-editable {
        border: 2px solid #000000;
        box-shadow: none;
        page-break-inside: avoid;
        max-width: 100%;
    }
    
    .input-calificacion,
    .input-oficial {
        border: none;
        background: transparent !important;
        box-shadow: none !important;
    }
    
    .btn-primary.btn-full {
        display: none;
    }
    
    .tabla-oficial tbody tr:hover {
        background: inherit;
    }
}

/* ============================================
   SCROLL PERSONALIZADO
   ============================================ */

.boletin-oficial-editable::-webkit-scrollbar {
    height: 12px;
}

.boletin-oficial-editable::-webkit-scrollbar-track {
    background: #e0e0e0;
    border: 1px solid #cccccc;
}

.boletin-oficial-editable::-webkit-scrollbar-thumb {
    background: #000000;
    border: 1px solid #000000;
}

.boletin-oficial-editable::-webkit-scrollbar-thumb:hover {
    background: #333333;
}


/* ============================================
   TABLAS HORIZONTALES (COMPETENCIAS)
   ============================================ */

.tabla-oficial-horizontal {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.tabla-oficial-horizontal thead {
    background: #e8e8e8;
}

.tabla-oficial-horizontal th {
    border: 2px solid #000000;
    padding: 10px 8px;
    text-align: center;
    font-weight: 700;
    font-size: 0.75rem;
    color: #000000;
    text-transform: uppercase;
    background: #e8e8e8;
    vertical-align: middle;
}

.col-periodo-label {
    width: 80px;
    background: #d0d0d0 !important;
}

.col-competencia-h {
    min-width: 100px;
    font-size: 0.7rem;
    line-height: 1.2;
    padding: 8px 6px !important;
}

.tabla-oficial-horizontal tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 40px;
    background: #ffffff;
}

.periodo-label {
    font-weight: 700;
    font-size: 0.9rem;
    color: #000000;
    background: #f0f0f0 !important;
    padding: 10px !important;
}

/* Responsive para tablas horizontales */
@media (max-width: 1024px) {
    .tabla-oficial-horizontal {
        font-size: 0.85rem;
    }
    
    .col-competencia-h {
        min-width: 90px;
        font-size: 0.65rem;
        padding: 6px 4px !important;
    }
}

@media (max-width: 768px) {
    .tabla-oficial-horizontal {
        min-width: 900px;
    }
    
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ============================================
   TABLA DE COMPETENCIAS - FORMATO CORRECTO
   ============================================ */

.tabla-oficial-competencias {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
}

.tabla-oficial-competencias thead th {
    border: 2px solid #000000;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    font-size: 0.7rem;
    color: #000000;
    background: #e8e8e8;
    vertical-align: middle;
    line-height: 1.2;
}

.col-vacio {
    width: 60px;
    background: #d0d0d0 !important;
}

.col-competencia-header {
    min-width: 200px;
    font-size: 14px !important;
    padding: 12px 10px !important;
    line-height: 1.4;
}

.tabla-oficial-competencias tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 35px;
    background: #ffffff;
}

.periodo-label-comp {
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    background: #f0f0f0 !important;
    padding: 8px !important;
    width: 60px;
}

.input-calificacion-small {
    width: 100%;
    height: 30px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    box-sizing: border-box;
    color: #000000;
    font-family: 'Arial', sans-serif;
}

.input-calificacion-small::-webkit-outer-spin-button,
.input-calificacion-small::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-calificacion-small {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-calificacion-small:focus {
    outline: none;
    background: #ffffcc;
    box-shadow: inset 0 0 0 2px #000000;
}

.input-calificacion-small::placeholder {
    color: #cccccc;
    font-weight: 400;
}

.input-calificacion-small[readonly] {
    background: #f5f5f5;
    color: #666;
}

/* Responsive para tabla de competencias */
@media (max-width: 1200px) {
    .tabla-oficial-competencias {
        font-size: 0.85rem;
    }
    
    .col-competencia-header {
        min-width: 180px;
        font-size: 14px !important;
    }
}

@media (max-width: 768px) {
    .tabla-oficial-competencias {
        min-width: 800px;
    }
    
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}


/* ============================================
   TABLA COMPETENCIAS COMPLETA - FORMATO OFICIAL
   ============================================ */

.tabla-oficial-competencias-completa {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.75rem;
}

.tabla-oficial-competencias-completa thead th {
    border: 2px solid #000000;
    padding: 6px 4px;
    text-align: center;
    font-weight: 700;
    color: #000000;
    background: #e8e8e8;
    vertical-align: middle;
    line-height: 1.1;
}

.col-vacio-comp {
    width: 50px;
    background: #d0d0d0 !important;
}

.col-competencias-titulo {
    font-size: 0.65rem;
    padding: 8px 6px !important;
    line-height: 1.2;
}

.col-comp-ind {
    min-width: 70px;
    font-size: 0.6rem;
    padding: 4px 3px !important;
}

.col-extra {
    min-width: 90px;
    font-size: 14px !important;
    padding: 8px 6px !important;
}

.col-extra-tiny {
    min-width: 80px;
    font-size: 14px !important;
    padding: 8px 6px !important;
}

.tabla-oficial-competencias-completa tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 32px;
    background: #ffffff;
}

.input-tiny {
    width: 100%;
    height: 32px;
    padding: 0;
    margin: 0;
    border: none;
    text-align: center;
    font-size: 0.85rem;
    font-weight: 700;
    background: transparent;
    box-sizing: border-box;
    color: #000000;
    font-family: 'Arial', sans-serif;
}

.input-tiny::-webkit-outer-spin-button,
.input-tiny::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.input-tiny {
    -moz-appearance: textfield;
    appearance: textfield;
}

.input-tiny:focus {
    outline: none;
    background: #ffffcc;
    box-shadow: inset 0 0 0 2px #000000;
}

.input-tiny::placeholder {
    color: #cccccc;
    font-weight: 400;
}

.input-tiny[readonly] {
    background: #f5f5f5;
    color: #666;
}

/* Responsive */
@media (max-width: 1400px) {
    .tabla-oficial-competencias-completa {
        font-size: 0.7rem;
    }
    
    .col-competencias-titulo {
        font-size: 0.6rem;
    }
    
    .col-comp-ind {
        min-width: 60px;
        font-size: 0.55rem;
    }
}

@media (max-width: 1024px) {
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabla-oficial-competencias-completa {
        min-width: 1400px;
    }
}


/* ============================================
   TABLA COMPETENCIAS VERTICAL - FORMATO OFICIAL
   ============================================ */

.tabla-oficial-competencias-vertical {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.75rem;
}

.tabla-oficial-competencias-vertical thead th {
    border: 2px solid #000000;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    color: #000000;
    background: #e8e8e8;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 0.7rem;
}

.col-competencia-nombre-vertical {
    min-width: 250px;
    text-align: left !important;
    padding-left: 15px !important;
    font-size: 0.65rem;
}

.col-periodo-vertical {
    min-width: 60px;
    font-size: 0.7rem;
}

.col-extra-vertical {
    min-width: 70px;
    font-size: 0.65rem;
}

.col-extra-tiny-vertical {
    min-width: 60px;
    font-size: 0.6rem;
}

.tabla-oficial-competencias-vertical tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 35px;
    background: #ffffff;
}

.nombre-competencia-vertical {
    text-align: left !important;
    padding: 10px 15px !important;
    font-weight: 600;
    font-size: 0.85rem;
    color: #000000;
    background: #fafafa;
}

/* Filas alternas para competencias verticales */
.tabla-oficial-competencias-vertical tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-oficial-competencias-vertical tbody tr:nth-child(odd) {
    background: #ffffff;
}

.tabla-oficial-competencias-vertical tbody tr:hover {
    background: #e6f2ff;
}

/* Responsive para tabla vertical */
@media (max-width: 1400px) {
    .tabla-oficial-competencias-vertical {
        font-size: 0.7rem;
    }
    
    .col-competencia-nombre-vertical {
        min-width: 200px;
        font-size: 0.6rem;
    }
    
    .col-periodo-vertical {
        min-width: 50px;
        font-size: 0.65rem;
    }
}

@media (max-width: 1024px) {
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabla-oficial-competencias-vertical {
        min-width: 1200px;
    }
}


/* ============================================
   TABLA COMPETENCIAS HORIZONTAL - FORMATO OFICIAL
   ============================================ */

.tabla-oficial-competencias-horizontal {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.75rem;
}

.tabla-oficial-competencias-horizontal thead th {
    border: 2px solid #000000;
    padding: 8px 6px;
    text-align: center;
    font-weight: 700;
    color: #000000;
    background: #e8e8e8;
    vertical-align: middle;
    line-height: 1.2;
    font-size: 0.65rem;
}

.col-vacio-h {
    width: 50px;
    background: #d0d0d0 !important;
}

.col-comp-h {
    min-width: 90px;
    font-size: 0.6rem;
    padding: 6px 4px !important;
}

.col-extra-h {
    min-width: 65px;
    font-size: 0.6rem;
}

.col-extra-tiny-h {
    min-width: 55px;
    font-size: 0.55rem;
}

.tabla-oficial-competencias-horizontal tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 32px;
    background: #ffffff;
}

.periodo-label-h {
    font-weight: 700;
    font-size: 0.85rem;
    color: #000000;
    background: #f0f0f0 !important;
    padding: 8px !important;
    width: 50px;
}

/* Filas alternas */
.tabla-oficial-competencias-horizontal tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.tabla-oficial-competencias-horizontal tbody tr:nth-child(odd) {
    background: #ffffff;
}

.tabla-oficial-competencias-horizontal tbody tr:hover {
    background: #e6f2ff;
}

/* Responsive */
@media (max-width: 1400px) {
    .tabla-oficial-competencias-horizontal {
        font-size: 0.7rem;
    }
    
    .col-comp-h {
        min-width: 80px;
        font-size: 0.55rem;
    }
}

@media (max-width: 1024px) {
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabla-oficial-competencias-horizontal {
        min-width: 1400px;
    }
}


/* ============================================
   TABLA COMPETENCIAS DOBLE HEADER - FORMATO OFICIAL
   ============================================ */

.tabla-oficial-competencias-doble-header {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    font-size: 0.55rem;
}

.tabla-oficial-competencias-doble-header thead th {
    border: 2px solid #000000;
    padding: 3px 1px;
    text-align: center;
    font-weight: 700;
    color: #000000;
    background: #e8e8e8;
    vertical-align: middle;
    line-height: 1.05;
}

/* Columnas finales con color azul claro */
.col-final {
    background: #cce5ff !important;
}

/* Texto vertical para columnas finales */
.col-vertical-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding: 8px 4px !important;
    height: 150px;
    min-height: 150px;
    font-size: 14px !important;
}

/* Columna ÁREAS CURRICULARES vertical en el header */
.col-area-vertical-header {
    width: 35px;
    min-width: 35px;
    max-width: 35px;
    background: #e8e8e8 !important;
    border: 2px solid #000000 !important;
    padding: 0 !important;
}

/* Celda COMPETENCIAS FUNDAMENTALES en el header */
.col-header-titulo {
    min-width: 180px;
    text-align: center !important;
    font-weight: 900;
    font-size: 0.7rem;
    background: #e8e8e8 !important;
    border: 2px solid #000000 !important;
    padding: 8px 6px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

/* Celda PERÍODOS en el header */
.col-header-periodos {
    min-width: 180px;
    text-align: center !important;
    font-weight: 900;
    font-size: 1.1rem;
    background: #d0d0d0 !important;
    border: 2px solid #000000 !important;
    padding: 8px 6px !important;
    letter-spacing: 1px;
    text-transform: uppercase;
    vertical-align: middle;
}

.col-area-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding: 8px 6px !important;
    font-weight: 900;
    font-size: 1.1rem;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
}

/* Celda ÁREAS CURRICULARES vertical en el tbody */
.area-curriculares-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    white-space: nowrap;
    padding: 15px 6px !important;
    font-weight: 900;
    font-size: 1.1rem;
    background: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #000000 !important;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    vertical-align: middle;
    width: 35px;
    min-width: 35px;
    max-width: 35px;
}

.col-periodo-sub {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
    font-size: 14px !important;
    padding: 10px 8px !important;
    background: #d0d0d0 !important;
    text-align: center !important;
}

.col-periodo-sub.col-final {
    background: #cce5ff !important;
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

.col-periodo-sub.col-completiva {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}

.col-periodo-sub.col-extraordinaria {
    width: 60px;
    min-width: 60px;
    max-width: 60px;
}
    min-width: 110px;
    max-width: 110px;
}

.nombre-fila {
    text-align: left !important;
    padding: 6px 8px !important;
    font-weight: 600;
    font-size: 14px;
    color: #000000;
    background: #fafafa;
    width: 70px;
    min-width: 70px;
}

.tabla-oficial-competencias-doble-header tbody td {
    border: 2px solid #000000;
    padding: 0;
    text-align: center;
    height: 30px;
    background: #ffffff;
}

.col-competencia-header {
    font-size: 0.52rem;
    padding: 3px 1px !important;
    line-height: 1.1;
}

.col-extra {
    width: 55px;
    min-width: 55px;
    font-size: 0.5rem;
}

.col-extra-tiny {
    width: 48px;
    min-width: 48px;
    font-size: 0.48rem;
}

/* Responsive */
@media (max-width: 1600px) {
    .tabla-oficial-competencias-doble-header {
        font-size: 0.5rem;
    }
    
    .col-periodo-sub {
        width: 28px;
        min-width: 28px;
        max-width: 28px;
        font-size: 0.48rem;
    }
    
    .col-competencia-header {
        font-size: 0.48rem;
    }
    
    .nombre-fila {
        font-size: 0.65rem;
    }
    
    .col-vertical-text {
        height: 140px;
        min-height: 140px;
    }
}

@media (max-width: 1024px) {
    .seccion-boletin-oficial {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .tabla-oficial-competencias-doble-header {
        min-width: 1300px;
    }
}

/* ============================================
   ESTILOS PARA LEYENDA, SITUACION Y FIRMAS
   Asegurando fondo blanco y visibilidad
   ============================================ */

/* Contenedor de LEYENDA y SITUACION */
.boletin-oficial-editable > div[style*="display: flex"] {
    background: #ffffff !important;
}

/* Estilos específicos para las cajas de LEYENDA y SITUACION */
.boletin-oficial-editable div[style*="border: 2px solid #000"] {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Títulos de LEYENDA y SITUACION */
.boletin-oficial-editable h4 {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Contenido de texto en LEYENDA */
.boletin-oficial-editable div[style*="font-size: 10px"] {
    background: #ffffff !important;
    color: #000000 !important;
}

.boletin-oficial-editable div[style*="font-size: 10px"] strong {
    color: #000000 !important;
}

/* Checkboxes y labels en SITUACION */
.boletin-oficial-editable label {
    background: transparent !important;
    color: #000000 !important;
}

/* Sección de Firmas */
.boletin-oficial-editable div[style*="margin-top: 40px"] {
    background: #ffffff !important;
}

.boletin-oficial-editable div[style*="margin-top: 40px"] p {
    background: #ffffff !important;
    color: #000000 !important;
}

/* Asegurar que todo dentro del boletín editable tenga fondo blanco */
.boletin-oficial-editable * {
    background-color: inherit;
}

.boletin-oficial-editable {
    background: #ffffff !important;
}


/* ============================================
   CONTENEDOR SCROLLABLE - FIX PARA BUG DE SCROLL
   ============================================ */

.boletin-scroll-container {
    max-height: 80vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
    margin-bottom: 2rem;
    background: #ffffff;
}

/* Estilos personalizados para scrollbar */
.boletin-scroll-container::-webkit-scrollbar {
    width: 12px;
}

.boletin-scroll-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 6px;
}

.boletin-scroll-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 6px;
}

.boletin-scroll-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* Responsive para contenedor scrollable */
@media (max-width: 768px) {
    .boletin-scroll-container {
        max-height: 70vh;
    }
}


/* ============================================
   SISTEMA DE IMÁGENES COLAPSABLES - FIX PARA BUG DE IMÁGENES BLOQUEANTES
   ============================================ */

.boletin-referencia {
    margin-bottom: 2rem;
    border: 2px solid #003366;
    border-radius: 8px;
    overflow: hidden;
    background: #ffffff;
}

.boletin-referencia-header {
    background: #003366;
    color: #ffffff;
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.3s ease;
    user-select: none;
}

.boletin-referencia-header:hover {
    background: #004488;
}

.boletin-referencia-header h4 {
    margin: 0;
    font-size: 1.1rem;
    color: #ffffff;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.toggle-icon.expanded {
    transform: rotate(180deg);
}

/* Imágenes ocultas por defecto */
.imagenes-referencia {
    display: none;
    padding: 20px;
    background: #f9f9f9;
}

.imagenes-referencia.visible {
    display: block;
}

.imagen-ref {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

.imagen-ref h5 {
    margin-bottom: 1rem;
    color: #003366;
    font-size: 1.1rem;
}

.imagen-ref img {
    width: auto;
    max-width: none;
    height: 600px;
    border: 2px solid #000;
    display: block;
    transform: rotate(270deg);
    transform-origin: center center;
}

.imagen-ref p {
    text-align: center;
    font-weight: 600;
    color: #003366;
    margin-top: 10px;
}

/* Responsive para imágenes */
@media (max-width: 768px) {
    .boletin-referencia-header h4 {
        font-size: 1rem;
    }
    
    .toggle-icon {
        font-size: 1.2rem;
    }
}

/* ============================================
   PANEL DE ADMINISTRADOR - AZUL
   ============================================ */

.panel-admin {
    padding: 2rem 0;
    min-height: 60vh;
}

.admin-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(0, 86, 210, 0.15));
    border-radius: 15px;
    border: 1px solid rgba(0, 123, 255, 0.4);
}

.admin-datos h4 {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.admin-datos p {
    color: #aaa;
    margin: 0;
    font-size: 0.95rem;
}

.admin-tabs {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 123, 255, 0.2);
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.6), rgba(0, 86, 210, 0.6));
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 -2px 10px rgba(0, 123, 255, 0.3);
    width: 100%;
}

.admin-tab-btn {
    padding: 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    color: #e0f2fe;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 0.85rem;
    font-weight: 500;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-align: center;
}

.admin-tab-btn:hover {
    color: #fff;
    background: rgba(0, 123, 255, 0.5);
}

.admin-tab-btn.active {
    color: #007bff;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 1));
    border-bottom-color: #007bff;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.admin-content {
    display: none;
    padding: 1.5rem 0.5rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(0, 123, 255, 0.2);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

.admin-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-content h3 {
    color: #007bff;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(0, 123, 255, 0.4);
    padding-bottom: 0.5rem;
}

.form-admin {
    max-width: 900px;
}

.form-admin .form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-admin .form-group {
    display: flex;
    flex-direction: column;
}

.form-admin .form-group label {
    color: #007bff;
    margin-bottom: 0.5rem;
    font-weight: 500;
    font-size: 0.95rem;
}

.form-admin .form-group input {
    padding: 0.8rem 1rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 123, 255, 0.4);
    border-radius: 8px;
    color: #333;
    font-size: 1rem;
    transition: all 0.3s;
}

.form-admin .form-group input:focus {
    outline: none;
    border-color: #007bff;
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 0 10px rgba(0, 123, 255, 0.4);
}

.form-admin .form-group input::placeholder {
    color: #999;
}

.materias-checkbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-top: 1rem;
}

.materias-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #fff;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 5px;
    transition: all 0.3s;
    justify-content: flex-start;
}

.materias-checkbox label.break-row {
    grid-column: 1;
}

.materias-checkbox label:hover {
    background: rgba(0, 123, 255, 0.15);
}

.materias-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #007bff;
}

.tabla-responsive {
    overflow-x: hidden;
    margin-top: 1.5rem;
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.2);
}

.tabla-docentes,
.tabla-estudiantes {
    width: 100%;
    border-collapse: collapse;
}

.tabla-docentes th,
.tabla-estudiantes th {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 86, 210, 0.25));
    color: #007bff;
    padding: 1rem;
    text-align: left;
    border-bottom: 2px solid #007bff;
    font-weight: 600;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tabla-docentes td,
.tabla-estudiantes td {
    padding: 1rem;
    color: #1e293b;
    border-bottom: 1px solid rgba(0, 123, 255, 0.15);
    font-size: 0.95rem;
    transition: color 0.3s;
}

.tabla-docentes tbody tr,
.tabla-estudiantes tbody tr {
    transition: all 0.3s;
    background: #ffffff;
}

.tabla-docentes tbody tr:hover,
.tabla-estudiantes tbody tr:hover {
    background: #007bff;
}

.tabla-docentes tbody tr:hover td,
.tabla-estudiantes tbody tr:hover td {
    color: #ffffff;
}

.tabla-docentes tbody tr:last-child td,
.tabla-estudiantes tbody tr:last-child td {
    border-bottom: none;
}

/* Botón eliminar en tablas */
.btn-eliminar {
    padding: 0.5rem 1rem;
    background: #dc3545;
    border: 1px solid #dc3545;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 0 0 rgba(220, 53, 69, 0);
}

.btn-eliminar:hover {
    background: #c82333;
    border-color: #bd2130;
    color: #fff;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.4);
}

/* Botón Crear Docente */
.btn-primary.btn-full {
    width: 100%;
    padding: 1.2rem 2rem;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.25), rgba(0, 86, 210, 0.25));
    border: 2px solid rgba(0, 123, 255, 0.5);
    color: #ffffff;
    border-radius: 10px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.2);
    margin-top: 1.5rem;
}

.btn-primary.btn-full:hover {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.35), rgba(0, 86, 210, 0.35));
    border-color: rgba(0, 123, 255, 0.7);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.3);
}

.btn-primary.btn-full:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.25);
}

/* ============================================
   PANEL DE DOCENTES - VERDE
   ============================================ */

.panel-docentes {
    padding: 2rem 0;
    min-height: 60vh;
}

.docente-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(40, 167, 69, 0.15), rgba(25, 135, 84, 0.15));
    border-radius: 15px;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.docente-datos h4 {
    color: #28a745;
    margin-bottom: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.docente-datos p {
    color: #aaa;
    margin: 0;
    font-size: 0.95rem;
}

.docente-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
    border-bottom: 2px solid rgba(40, 167, 69, 0.2);
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px 10px 0 0;
    overflow: hidden;
}

.docente-tab-btn {
    padding: 1.2rem 2rem;
    background: transparent;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: all 0.3s;
    border-bottom: 3px solid transparent;
    font-size: 1rem;
    font-weight: 500;
}

.docente-tab-btn:hover {
    color: #fff;
    background: rgba(40, 167, 69, 0.15);
}

.docente-tab-btn.active {
    color: #28a745;
    background: rgba(40, 167, 69, 0.2);
    border-bottom-color: #28a745;
}

.docente-content {
    display: none;
    padding: 2.5rem;
    background: rgba(40, 167, 69, 0.05);
    border-radius: 0 0 15px 15px;
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.docente-content.active {
    display: block;
    animation: fadeIn 0.3s ease-in;
}

.docente-content h3 {
    color: #28a745;
    margin-bottom: 2rem;
    font-size: 1.5rem;
    font-weight: 600;
    border-bottom: 2px solid rgba(40, 167, 69, 0.4);
    padding-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
    .admin-tabs, .docente-tabs {
        flex-direction: column;
    }
    
    .admin-tab-btn, .docente-tab-btn {
        border-bottom: none;
        border-left: 3px solid transparent;
    }
    
    .admin-tab-btn.active {
        border-left-color: #007bff;
    }
    
    .docente-tab-btn.active {
        border-left-color: #28a745;
    }
    
    .form-admin .form-row {
        grid-template-columns: 1fr;
    }
    
    .admin-info, .docente-info {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   MODAL DE CAMBIO DE CONTRASEÑA
   ============================================ */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.modal-content h3 {
    color: #007bff;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    color: #666;
    margin-bottom: 1.5rem;
}

.modal-content .form-group {
    margin-bottom: 1rem;
}

.modal-content label {
    display: block;
    margin-bottom: 0.5rem;
    color: #333;
    font-weight: 500;
}

.modal-content input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

.modal-content input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}


.password-info {
    background: #e3f2fd;
    border-left: 4px solid #007bff;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 5px;
    color: #1565c0;
    font-size: 0.95rem;
}

.password-info strong {
    color: #0d47a1;
    font-weight: 600;
}


/* Asegurar que el panel de docentes esté oculto por defecto */
#panel-docentes {
    display: none;
}


/* ============================================
   PANEL DE DOCENTES
   ============================================ */

#panel-docentes {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.docente-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #007bff;
}

.docente-info h3 {
    color: #007bff;
    margin: 0;
    font-size: 1.5rem;
}

#btn-cerrar-sesion-docente {
    padding: 0.75rem 1.5rem;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

#btn-cerrar-sesion-docente:hover {
    background: #c82333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}


/* ============================================
   BOTÓN FLOTANTE DE CERRAR SESIÓN
   ============================================ */

.btn-cerrar-sesion-flotante {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 99999;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
}

.btn-cerrar-sesion-flotante::before {
    content: '🚪';
    font-size: 1.2rem;
}

.btn-cerrar-sesion-flotante:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.6);
}

.btn-cerrar-sesion-flotante:active {
    transform: translateY(0) scale(1);
}

@media (max-width: 768px) {
    .btn-cerrar-sesion-flotante {
        top: 80px;
        right: 10px;
        padding: 0.6rem 1rem;
        font-size: 0.85rem;
    }
    
    .btn-cerrar-sesion-flotante::before {
        font-size: 1rem;
    }
}

/* ============================================
   BOTÓN FLOTANTE DE CREAR CUENTA DE DOCENTE
   ============================================ */

/* Botón flotante para subir al principio */
.btn-scroll-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99999;
    width: 50px;
    height: 50px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-scroll-top:hover {
    background: #e74c3c;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.6);
}

.btn-scroll-top:active {
    transform: scale(1.05);
}

/* ============================================
   IMÁGENES DE BOLETÍN - ANCHO COMPLETO
   ============================================ */

.boletin-imagenes-fullwidth {
    width: 100vw;
    margin: 0;
    padding: 0;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background: #000000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.imagen-ref-fullwidth {
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #000000;
    overflow: hidden;
}

.imagen-ref-fullwidth img {
    width: 60vw;
    height: auto;
    max-width: 1000px;
    display: block;
    margin: 0 auto;
    padding: 0;
    transform: rotate(270deg);
    transform-origin: center center;
}


/* ============================================
   ESTILOS PARA FORMULARIO DE CREAR DOCENTE
   ============================================ */

.form-admin {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.form-admin .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-admin .form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.form-admin label {
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-admin input[type="text"],
.form-admin input[type="email"] {
    padding: 0.9rem 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: white;
}

.form-admin input[type="text"]:focus,
.form-admin input[type="email"]:focus {
    outline: none;
    border-color: #c0392b;
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

/* Materias */
.materias-checkbox {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #3498db;
}

.materias-checkbox label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.6rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 500;
    text-transform: none;
    letter-spacing: normal;
}

.materias-checkbox label:hover {
    background-color: #ecf0f1;
    transform: translateX(4px);
}

.materias-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #3498db;
}

.materias-checkbox label.break-row {
    grid-column: 1;
}

/* Grados y Secciones */
.grados-secciones-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 0.5rem;
}

.grados-seccion-group {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.grados-seccion-group label:first-child {
    font-weight: 700;
    margin-bottom: 1rem;
    color: #2c3e50;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding-bottom: 0.8rem;
    border-bottom: 2px solid #ecf0f1;
}

.grados-checkbox,
.secciones-checkbox {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.8rem;
}

.grados-checkbox label,
.secciones-checkbox label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    cursor: pointer;
    padding: 0.7rem 0.8rem;
    border-radius: 6px;
    border: 2px solid #e0e0e0;
    transition: all 0.2s ease;
    font-weight: 600;
    background: white;
    text-transform: none;
    letter-spacing: normal;
}

.grados-checkbox label:hover,
.secciones-checkbox label:hover {
    border-color: #3498db;
    background-color: #ecf0f1;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.2);
}

.grados-checkbox input[type="checkbox"],
.secciones-checkbox input[type="checkbox"] {
    cursor: pointer;
    width: 18px;
    height: 18px;
    accent-color: #27ae60;
}

.grados-checkbox label.break-row,
.secciones-checkbox label.break-row {
    grid-column: 1;
}

/* Información de contraseña */
.password-info {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe6cc 100%);
    padding: 1rem 1.5rem;
    border-radius: 8px;
    border-left: 4px solid #f39c12;
    color: #7f5c0f;
    font-size: 0.9rem;
    margin: 1.5rem 0;
    font-weight: 500;
}

.password-info strong {
    color: #d68910;
}

/* Botón de envío */
.btn-full {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 1rem;
}

.btn-primary.btn-full {
    background: linear-gradient(135deg, #c0392b 0%, #e74c3c 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(192, 57, 43, 0.3);
}

.btn-primary.btn-full:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(192, 57, 43, 0.4);
}

.btn-primary.btn-full:active {
    transform: translateY(0);
}

/* Responsive para pantallas pequeñas */
@media (max-width: 768px) {
    .form-admin {
        padding: 1.5rem;
    }
    
    .form-admin .form-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .grados-secciones-row {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .grados-checkbox,
    .secciones-checkbox {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .materias-checkbox {
        grid-template-columns: 1fr;
    }
}


/* ============================================
   ESTILOS PARA TABLA DE DOCENTES
   ============================================ */

.tabla-responsive {
    overflow-x: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tabla-docentes {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background: white !important;
    font-size: 0.9rem !important;
}

.tabla-docentes thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    font-weight: 700 !important;
}

.tabla-docentes th {
    padding: 1.2rem 1rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    background: transparent !important;
}

.tabla-docentes td {
    padding: 1rem !important;
    border-bottom: 1px solid #ecf0f1 !important;
    font-size: 0.9rem !important;
}

.tabla-docentes tbody tr {
    transition: all 0.3s ease !important;
}

.tabla-docentes tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.tabla-docentes tbody tr:hover {
    background-color: #e8f4f8 !important;
    box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.1) !important;
}

.tabla-docentes tbody tr:hover td {
    color: #000000 !important;
}

.tabla-docentes tbody tr:last-child td {
    border-bottom: none !important;
}

/* Estilos para tabla de estudiantes (igual que docentes) */
.tabla-estudiantes {
    width: 100% !important;
    table-layout: fixed !important;
    border-collapse: collapse !important;
    background: white !important;
    font-size: 0.9rem !important;
}

.tabla-estudiantes thead {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important;
    color: white !important;
    font-weight: 700 !important;
}

.tabla-estudiantes th {
    padding: 1.2rem 1rem !important;
    text-align: left !important;
    font-weight: 700 !important;
    border: none !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-size: 0.85rem !important;
    color: #ffffff !important;
    background: transparent !important;
}

.tabla-estudiantes td {
    padding: 1rem !important;
    border-bottom: 1px solid #ecf0f1 !important;
    font-size: 0.9rem !important;
}

.tabla-estudiantes tbody tr {
    transition: all 0.3s ease !important;
}

.tabla-estudiantes tbody tr:nth-child(even) {
    background-color: #f8f9fa !important;
}

.tabla-estudiantes tbody tr:hover {
    background-color: #e8f4f8 !important;
    box-shadow: inset 0 0 10px rgba(52, 152, 219, 0.1) !important;
}

.tabla-estudiantes tbody tr:hover td {
    color: #000000 !important;
}

.tabla-estudiantes tbody tr:last-child td {
    border-bottom: none !important;
}

/* Materias asignadas */
.materias-asignadas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.materia-tag {
    display: inline-block;
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3);
}

/* Asignaciones docente (materia con cursos) */
.asignaciones-docente {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.materia-con-cursos {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.6rem;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 3px solid #3498db;
}

.materia-con-cursos strong {
    color: #2c3e50;
    font-size: 0.85rem;
    font-weight: 700;
}

.cursos-lista {
    color: #555;
    font-size: 0.8rem;
    font-weight: 500;
    padding-left: 0.5rem;
}

/* Grados y Secciones */
.grados-asignados,
.secciones-asignadas {
    font-weight: 600;
    color: #2c3e50;
    background: #ecf0f1;
    padding: 0.5rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
}

.grados-asignados {
    border-left: 3px solid #27ae60;
}

.secciones-asignadas {
    border-left: 3px solid #f39c12;
}

/* Botón eliminar */
.btn-eliminar {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-eliminar:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.5);
    transform: scale(1.05);
}

.btn-eliminar:active {
    transform: scale(0.98);
}

/* Botón editar */
.btn-editar {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    border: none;
    padding: 0.6rem 1.2rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
    margin-right: 2rem;
}

.btn-editar:hover {
    background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
    box-shadow: 0 4px 12px rgba(52, 152, 219, 0.5);
    transform: scale(1.05);
}

.btn-editar:active {
    transform: scale(0.98);
}

/* Admin tabs */
.admin-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #ecf0f1;
    flex-wrap: wrap;
}

.admin-tab-btn {
    padding: 0.8rem 1.5rem;
    background: white;
    border: none;
    cursor: pointer;
    font-weight: 600;
    color: #7f8c8d;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.85rem;
}

.admin-tab-btn:hover {
    color: #ffffff;
    border-bottom-color: #ecf0f1;
}

.admin-tab-btn.active {
    color: #ffffff;
    border-bottom-color: #2c3e50;
    background: linear-gradient(to bottom, rgba(44, 62, 80, 0.05), transparent);
}

/* Admin content */
.admin-content {
    display: none;
    animation: fadeIn 0.3s ease;
}

.admin-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.admin-content h3 {
    color: #2c3e50;
    font-size: 1.3rem;
    margin-bottom: 1.5rem;
    font-weight: 700;
}

/* Responsive */
@media (max-width: 768px) {
    .tabla-docentes th,
    .tabla-docentes td {
        padding: 0.8rem 0.5rem;
        font-size: 0.8rem;
    }
    
    .materia-tag {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
    
    .admin-tabs {
        gap: 0.2rem;
    }
    
    .admin-tab-btn {
        padding: 0.6rem 1rem;
        font-size: 0.75rem;
    }
}


/* ============================================
   FORMULARIO GRANULAR DE ASIGNACIONES
   ============================================ */

.materias-grados-secciones {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    margin: 1.5rem 0;
}

.materia-asignacion {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #f9f9f9;
    transition: all 0.3s ease;
}

.materia-asignacion:hover {
    border-color: #4CAF50;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.1);
}

.materia-titulo {
    margin: 0 0 1rem 0;
    font-size: 1.1rem;
    font-weight: 700;
    color: #333;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.grados-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.grado-selector {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.grado-label {
    font-weight: 600;
    color: #555;
    font-size: 0.95rem;
}

.secciones-select {
    padding: 0.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.secciones-select:hover {
    border-color: #4CAF50;
}

.secciones-select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.secciones-select option {
    padding: 0.5rem;
    background: white;
    color: #333;
}

.secciones-select option:checked {
    background: #4CAF50;
    color: white;
}

/* Estilos para el formulario admin */
.form-admin {
    background: #f5f5f5;
    padding: 2rem;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input,
.form-group select {
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 0.95rem;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.1);
}

.password-info {
    background: #e8f5e9;
    border-left: 4px solid #4CAF50;
    padding: 1rem;
    border-radius: 4px;
    margin: 1.5rem 0;
    font-size: 0.95rem;
    color: #2e7d32;
}

.btn-primary {
    background: #4CAF50;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.btn-primary:hover {
    background: #45a049;
}

.btn-full {
    width: 100%;
}


/* ============================================
   SECCIONES COLAPSABLES
   ============================================ */

.seccion-colapsable {
    margin-bottom: 1rem;
    border: 2px solid #003366;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.seccion-header {
    width: 100%;
    padding: 15px 20px;
    background: #003366;
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1rem;
    font-weight: 700;
    transition: background 0.3s ease;
    text-align: left;
}

.seccion-header:hover {
    background: #004488;
}

.seccion-titulo {
    flex: 1;
}

.seccion-toggle {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
    margin-left: 10px;
}

.seccion-header[aria-expanded="false"] .seccion-toggle {
    transform: rotate(-90deg);
}

.seccion-contenido {
    display: none;
    padding: 15px;
    background: #ffffff;
    animation: slideDown 0.3s ease;
    overflow-x: hidden;
}

.seccion-contenido.active {
    display: block;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 1000px;
    }
}

/* Tabla sin scroll horizontal */
.tabla-responsive {
    overflow-x: auto;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* Fix para eliminar espacio en blanco a la derecha en lista de estudiantes */
#admin-lista-estudiantes {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#admin-lista-estudiantes .tabla-responsive {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
}

#admin-lista-estudiantes .tabla-estudiantes {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

/* Distribución de columnas para tabla de estudiantes */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(1) { width: 26%; } /* Nombre */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(2) { width: 13%; } /* Cédula */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(3) { width: 19%; } /* Código */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(4) { width: 21%; } /* Email */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(5) { width: 8%; }  /* Grado */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(6) { width: 8%; }  /* Sección */
#admin-lista-estudiantes .tabla-estudiantes th:nth-child(7) { width: 5%; }  /* Acciones */

#admin-lista-estudiantes .tabla-estudiantes td:nth-child(1) { width: 26%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(2) { width: 13%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(3) { width: 19%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(4) { width: 21%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(5) { width: 8%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(6) { width: 8%; }
#admin-lista-estudiantes .tabla-estudiantes td:nth-child(7) { width: 5%; }

#admin-lista-estudiantes h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix para eliminar espacio en blanco a la derecha en lista de docentes */
#admin-lista-docentes {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}

#admin-lista-docentes .tabla-responsive {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
}

#admin-lista-docentes .tabla-docentes {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

/* Distribución de columnas para tabla de docentes */
#admin-lista-docentes .tabla-docentes th:nth-child(1) { width: 18%; } /* Nombre */
#admin-lista-docentes .tabla-docentes th:nth-child(2) { width: 15%; } /* Usuario */
#admin-lista-docentes .tabla-docentes th:nth-child(3) { width: 20%; } /* Email */
#admin-lista-docentes .tabla-docentes th:nth-child(4) { width: 30%; } /* Asignaciones */
#admin-lista-docentes .tabla-docentes th:nth-child(5) { width: 12%; } /* Docente Guía */
#admin-lista-docentes .tabla-docentes th:nth-child(6) { width: 5%; }  /* Acciones */

#admin-lista-docentes .tabla-docentes td:nth-child(1) { width: 18%; }
#admin-lista-docentes .tabla-docentes td:nth-child(2) { width: 15%; }
#admin-lista-docentes .tabla-docentes td:nth-child(3) { width: 20%; }
#admin-lista-docentes .tabla-docentes td:nth-child(4) { width: 30%; }
#admin-lista-docentes .tabla-docentes td:nth-child(5) { width: 12%; }
#admin-lista-docentes .tabla-docentes td:nth-child(6) { width: 5%; }

#admin-lista-docentes h3 {
    margin-left: 0 !important;
    margin-right: 0 !important;
}

/* Fix para tabla de resumen por grado en dashboard */
#admin-dashboard {
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
}

#admin-dashboard .tabla-responsive {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto !important;
}

#tabla-resumen-grado {
    width: 100% !important;
    max-width: 100% !important;
    table-layout: fixed !important;
    margin: 0 !important;
}

/* Distribución de columnas para tabla de resumen por grado */
#tabla-resumen-grado th:nth-child(1) { width: 16%; } /* Grado */
#tabla-resumen-grado th:nth-child(2) { width: 16%; } /* Total Inicial */
#tabla-resumen-grado th:nth-child(3) { width: 16%; } /* Total Actual */
#tabla-resumen-grado th:nth-child(4) { width: 14%; } /* Hembras */
#tabla-resumen-grado th:nth-child(5) { width: 14%; } /* Varones */
#tabla-resumen-grado th:nth-child(6) { width: 12%; } /* Retirados */
#tabla-resumen-grado th:nth-child(7) { width: 12%; } /* % Retención */

#tabla-resumen-grado td:nth-child(1) { width: 16%; }
#tabla-resumen-grado td:nth-child(2) { width: 16%; }
#tabla-resumen-grado td:nth-child(3) { width: 16%; }
#tabla-resumen-grado td:nth-child(4) { width: 14%; }
#tabla-resumen-grado td:nth-child(5) { width: 14%; }
#tabla-resumen-grado td:nth-child(6) { width: 12%; }
#tabla-resumen-grado td:nth-child(7) { width: 12%; }

/* Asegurar que el contenedor del panel admin no cause overflow */
#panel-admin .container {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
    box-sizing: border-box !important;
}

.tabla-calificaciones {
    width: 100%;
    table-layout: auto;
    font-size: 0.9rem;
}

.tabla-calificaciones th,
.tabla-calificaciones td {
    padding: 8px 6px;
    white-space: nowrap;
}

/* Responsive para secciones colapsables */
@media (max-width: 768px) {
    .seccion-header {
        padding: 12px 15px;
        font-size: 1rem;
    }
    
    .seccion-contenido {
        padding: 10px;
    }
    
    .tabla-calificaciones {
        font-size: 0.8rem;
    }
    
    .tabla-calificaciones th,
    .tabla-calificaciones td {
        padding: 6px 4px;
    }
}


/* ============================================
   MODAL DE INACTIVIDAD
   ============================================ */

.modal-inactividad {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-inactividad-content {
    background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
    padding: 1.5rem 1.2rem;
    border-radius: 15px;
    text-align: center;
    max-width: 300px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6);
    border: 2px solid #3b82f6;
    animation: slideDown 0.4s ease-out, borderGlow 2s ease-in-out infinite;
}

.modal-inactividad-icon {
    font-size: 3rem;
    margin-bottom: 0.8rem;
    animation: pulse 1.5s ease-in-out infinite;
}

.modal-inactividad-content h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: bold;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.modal-inactividad-content p {
    color: #e0e7ff;
    font-size: 1rem;
    margin-bottom: 1rem;
}

.countdown-display {
    background: #ffffff;
    border: 3px solid #ef4444;
    border-radius: 15px;
    padding: 1.5rem;
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    animation: countdownShake 0.5s ease-in-out infinite;
}

#countdown-seconds {
    font-size: 3.5rem;
    font-weight: 900;
    color: #dc2626;
    font-family: 'Impact', 'Arial Black', sans-serif;
    letter-spacing: 3px;
    text-shadow: 
        0 0 5px rgba(220, 38, 38, 0.3),
        0 0 10px rgba(220, 38, 38, 0.2),
        2px 2px 4px rgba(0, 0, 0, 0.3);
    animation: 
        countdownPulse 1s ease-in-out infinite, 
        colorChange 2s ease-in-out infinite,
        glowPulse 1.5s ease-in-out infinite;
}

.countdown-label {
    font-size: 1rem;
    color: #991b1b;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.inactividad-hint {
    font-size: 0.85rem !important;
    color: #bfdbfe !important;
    font-style: italic;
    margin-top: 0.8rem !important;
}

.btn-continuar-sesion {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: white;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
    margin-top: 0.8rem;
    animation: buttonFloat 2s ease-in-out infinite;
}

.btn-continuar-sesion:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
    background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 100%);
}

.btn-continuar-sesion:active {
    transform: translateY(0) scale(1);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideDown {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes countdownPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

@keyframes borderGlow {
    0%, 100% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.6), 0 0 20px rgba(59, 130, 246, 0.5);
    }
    50% {
        box-shadow: 0 20px 60px rgba(37, 99, 235, 0.8), 0 0 40px rgba(59, 130, 246, 0.8);
    }
}

@keyframes countdownShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-2px);
    }
    75% {
        transform: translateX(2px);
    }
}

@keyframes colorChange {
    0%, 100% {
        color: #dc2626;
    }
    50% {
        color: #ef4444;
    }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 
            0 0 5px rgba(220, 38, 38, 0.3),
            0 0 10px rgba(220, 38, 38, 0.2),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
    50% {
        text-shadow: 
            0 0 8px rgba(220, 38, 38, 0.4),
            0 0 15px rgba(220, 38, 38, 0.3),
            2px 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@keyframes buttonFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-3px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .modal-inactividad-content {
        padding: 2rem 1.5rem;
    }
    
    .modal-inactividad-content h2 {
        font-size: 1.5rem;
    }
    
    #countdown-seconds {
        font-size: 3rem;
    }
    
    .countdown-display {
        padding: 1.5rem;
    }
}
