/* Estilos corporativos según contexto.md */
:root {
    --primary-color: #0883F1;
    --secondary-color: #e8f5ff;
    --background-color: #FFFFFF;
    --text-color: #333333;
    --border-color: #dee2e6;
    --background-color-secondary: #b4e1ef;

    /* Botones del sistema */
    --btn-primary-bg: var(--primary-color);
    --btn-primary-hover: var(--primary-dark);
    --btn-secondary-bg: var(--primary-light);
    --btn-secondary-hover: var(--primary-color);
    --btn-tertiary-bg: #F0F5F6;
    --btn-tertiary-text: #4A4A4A;
    --btn-danger-bg: #E74C3C;
    --btn-danger-hover: #C0392B;
    --btn-warning-bg: #F4B400;
    --btn-warning-hover: #D89C00;
    --btn-success-bg: #4CAF50;
    --btn-success-hover: #449D48;
}

:root {
    --font-base: "Montserrat", sans-serif;
}

body {
    font-family: var(--font-base);
    font-optical-sizing: auto;
    font-weight: weight;
    font-style: normal;
    background-color: #f5f5f5;
}

.dataTables_info {
    font-size: 1rem;
}

[data-activates="select-options-anio_operacion"] {
    font-size: 0.9rem !important;
    color: #ffff !important;
    text-transform: none !important;
    padding-left: 5px !important;
}

.menu-inicio {
    border-left: none !important;
}

/* ============================================
   ESTILOS DE BOTONES
   ============================================ */
/* Botones con estilo corporativo */
.btn-success {
    color: #fff;
    background-color: #37A745!important;
}

.btn-min {
    margin: 0rem;
    width: 0.3125rem;
}

.btn {
    margin: 0rem;
    border-radius: 0.3125rem;
}

.btn-primary {
    color: #fff;
    background-color: #0883F1!important;
    font-size: 0.7rem;
    font-weight: 200;
    width: 100%;
}

.btn-danger {
    color: #fff;
    background-color: #e83c3c!important;
    font-size: 0.7rem;
    font-weight: 200;
    width: 100%;
    border-radius: 0.3125rem;
}

.btn-primary:hover {
    background-color: #0883F1;
    border-color: #0883F1;
}

.btn-outline-danger,
.btn-outline-success {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

.btn-primary.mt-4 {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

.btn-modal_primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    border-radius: 0.5rem;
    color: white;
}

.btn-modal_primary:hover {
    background-color: #0883F1;
    border-color: #0883F1;
}

.btn-modal_secondary {
    background-color: #6c757d;
    border-color: #6c757d;
    border-radius: 0.5rem;
    color: white;
}

.btn-modal_secondary:hover {
    background-color: #5a6268;
    border-color: #5a6268;
}

/* Botón para copiar RUT */
.btn-copiar-rut {
    background: transparent;
    border: none;
    color: var(--primary-color);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    margin-left: 0.5rem;
    font-size: 0.9rem;
    transition: all 0.2s ease;
    border-radius: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn-copiar-rut:hover {
    background-color: rgba(89, 148, 166, 0.1);
    color: #0883F1;
    transform: scale(1.1);
}

.btn-copiar-rut:active {
    transform: scale(0.95);
}

.btn-copiar-rut i {
    font-size: 0.85rem;
}

.alert-warning {
    color: #464646;
    background-color: #ffefba;
    border-color: #ffeeba;
    font-size: 0.9rem;
}

/* Botón destacado - Color #53a251 */
.btn-destacado {
    background-color: #53a251;
    border-color: #53a251;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-destacado:hover {
    background-color: #459043;
    border-color: #459043;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(83, 162, 81, 0.3);
}

.btn-destacado:active,
.btn-destacado:focus {
    background-color: #3a7a38;
    border-color: #3a7a38;
    color: white;
    box-shadow: 0 2px 4px rgba(83, 162, 81, 0.3);
}

/* Botón destacado2 - Color #e37b7b */
.btn-destacado2 {
    background-color: #e37b7b;
    border-color: #e37b7b;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-destacado2:hover {
    background-color: #d66565;
    border-color: #d66565;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(227, 123, 123, 0.3);
}

.btn-destacado2:active,
.btn-destacado2:focus {
    background-color: #c95454;
    border-color: #c95454;
    color: white;
    box-shadow: 0 2px 4px rgba(227, 123, 123, 0.3);
}

/* Botón acción - Color #364B60 */
.btn-accion {
    background-color: #364B60;
    border-color: #364B60;
    color: white;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s ease;
}

.btn-accion:hover {
    background-color: #2a3a4d;
    border-color: #2a3a4d;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(54, 75, 96, 0.3);
}

.btn-accion:active,
.btn-accion:focus {
    background-color: #1f2a38;
    border-color: #1f2a38;
    color: white;
    box-shadow: 0 2px 4px rgba(54, 75, 96, 0.3);
}

/* Botón de apoderado económico */
.btn-apoderado-economico {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.5rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: 0.375rem;
    border: 1px solid var(--primary-color);
    background-color: var(--primary-color);
    color: white;
    transition: all 0.2s ease;
    cursor: default;
    white-space: nowrap;
    width: 100%;
}

.btn-apoderado-economico:hover {
    background-color: #0883F1;
    border-color: #0883F1;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-apoderado-economico i {
    font-size: 0.75rem;
}

.btn-apoderado-economico span {
    font-size: 0.75rem;
}

strong {
    font-weight: 600 !important;
}

/* Responsive para botón apoderado económico */
@media (max-width: 768px) {
    .btn-apoderado-economico {
        width: 100%;
        padding: 0.625rem 0.875rem;
    }
}

/* Botón ficha médica en student-info-header */
.student-info-header .btn-ficha-medica {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    white-space: nowrap;
    border-radius: 0.375rem;
}

/* Tooltip personalizado existente */
[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    position: absolute;
    bottom: 1.6em;
    left: 0%;
    padding: 4px 4px 4px 8px;
    color: #000;
    white-space: nowrap;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0px 0px 4px #222;
    -webkit-box-shadow: 0px 0px 4px #222;
    box-shadow: 0px 0px 4px #222;
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f8f8f8), color-stop(1, #cccccc));
    background-image: -webkit-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -ms-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -o-linear-gradient(top, #f8f8f8, #cccccc);
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
}

/* Asegurar altura completa para html y body */
html,
body {
    min-height: 100%;
}

/* ============================================
COLOR FONDO LOGIN
============================================ */

.background-color-login {
    background-color: #1892fc;
}

/* ============================================
   IMAGEN LOGIN
   ============================================ */

.logo-login {
    content: url("../image/logo_salesianos.svg");
    width: 100%;
    /* Definir de acuerdo al ancho de la imagen */
    height: 100%;
    /* Definir de acuerdo al alto de la imagen */
}

/* ============================================
ESTILO OTP
============================================ */

/* Estilos para la página de login OTP */
.login-otp-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: #F5F5F5;
    padding: 2rem 1rem;
}

.login-otp-card {
    background-color: #1892fc;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(89, 148, 166, 0.3);
    max-width: 900px;
    width: 100%;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.login-otp-card:hover {
    box-shadow: 0 12px 32px rgba(89, 148, 166, 0.4);
}

.login-otp-card-header {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    padding: 1.5rem 2.5rem;
    border-bottom: 2px solid rgba(255, 255, 255, 0.25);
    text-align: center;
    backdrop-filter: blur(10px);
}

.login-otp-card-header-text {
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.98);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.login-otp-card-header-text i {
    font-size: 1.2rem;
    opacity: 0.9;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.95);
}

.login-otp-card-header-text span {
    flex: 1;
}

.login-otp-card-body {
    padding: 2.5rem;
}

.login-otp-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
}

.login-otp-logo {
    max-width: 100%;
    height: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.login-otp-content {
    color: white;
}

.login-otp-form {
    margin-top: 0;
}

.login-otp-input-group {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
}

.login-otp-input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.login-otp-input {
    background-color: rgba(255, 255, 255, 0.95);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 0.5rem;
    padding: 0.5rem 0.875rem;
    font-size: 1rem;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
    box-sizing: border-box;
    line-height: 1.5;
    height: 2.5rem;
}

.login-otp-input:focus {
    background-color: white;
    border-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
    outline: none;
}

.login-otp-input::placeholder {
    color: #007ae4;
    opacity: 0.7;
}

.login-otp-label {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    display: block;
}

.login-otp-btn-wrapper {
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
    height: 2.5rem;
}

.login-otp-btn-submit {
    background-color: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-radius: 0.5rem;
    color: white;
    padding: 0.5rem 1.25rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    min-width: auto;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-sizing: border-box;
    line-height: 1.5;
    height: 2.5rem;
    margin: 0;
}

.login-otp-btn-submit:hover {
    background-color: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.login-otp-btn-submit:active {
    transform: translateY(0);
}

.login-otp-btn-submit i {
    font-size: 1.1rem;
}

.login-otp-back-link {
    margin-top: 1.5rem;
    text-align: center;
}

.login-otp-back-link a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
}

.login-otp-back-link a:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(-4px);
}

.login-otp-back-link a i {
    font-size: 0.9rem;
}

.login-otp-footer {
    background-color: rgba(89, 148, 166, 0.1);
    padding: 1.5rem 1rem;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.login-otp-footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 1.5rem;
    color: #6c757d;
    font-size: 0.9rem;
}

.login-otp-footer-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.login-otp-footer-item i {
    color: #5994A6;
    font-size: 1rem;
}

.login-otp-footer-item a {
    color: #5994A6;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-otp-footer-item a:hover {
    color: #4a7a8a;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .login-otp-container {
        padding: 1rem 0.5rem;
    }

    .login-otp-card-header {
        padding: 1.25rem 1.5rem;
    }

    .login-otp-card-header-text {
        font-size: 0.9rem;
        flex-direction: row;
        gap: 0.625rem;
        text-align: left;
        align-items: flex-start;
    }

    .login-otp-card-header-text i {
        font-size: 1.1rem;
        margin-top: 0.125rem;
    }

    .login-otp-card-body {
        padding: 1.5rem;
    }

    .login-otp-logo-container {
        margin-bottom: 1.5rem;
    }

    .login-otp-input-group {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }

    .login-otp-btn-wrapper {
        width: 100%;
        align-items: stretch;
        height: auto;
    }

    .login-otp-btn-submit {
        width: 100%;
        height: 2.5rem;
    }

    .login-otp-footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .login-otp-footer-item {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .login-otp-card-header {
        padding: 1rem 1rem;
    }

    .login-otp-card-header-text {
        font-size: 0.875rem;
        line-height: 1.6;
        gap: 0.5rem;
    }

    .login-otp-card-header-text i {
        font-size: 1rem;
    }

    .login-otp-card-body {
        padding: 1.25rem;
    }

    .login-otp-input {
        font-size: 0.95rem;
        padding: 0.5rem 0.875rem;
        height: 2.5rem;
    }

    .login-otp-btn-submit {
        padding: 0.5rem 1rem;
        font-size: 0.95rem;
        height: 2.5rem;
    }
}

/* Ajustes para Material Design Bootstrap */
.md-form.md-outline {
    margin-bottom: 0;
}

.md-form.md-outline label {
    color: rgba(67, 67, 67, 0.9);
    font-size: 0.9rem;
    font-weight: 500;
}

.md-form.md-outline input:focus+label,
.md-form.md-outline input:not(:placeholder-shown)+label {
    color: rgba(255, 255, 255, 0.95);
    transform: translateY(-1.5rem) scale(0.85);
}

/* ============================================
   ESTILO NAV
   ============================================ */

.logo-nav-header {
    content: url("../image/logo_bolsa_trabajo_blanco.png");
    display: block;
    margin: 0 auto;
    width: 70%;
    height: auto;
}



/* Tooltip personalizado existente */
[data-title]:hover:after {
    opacity: 1;
    transition: all 0.1s ease 0.5s;
    visibility: visible;
}

[data-title]:after {
    content: attr(data-title);
    position: absolute;
    bottom: 1.6em;
    left: 0%;
    padding: 4px 4px 4px 8px;
    color: #000;
    white-space: nowrap;
    -moz-border-radius: 5px;
    -webkit-border-radius: 5px;
    border-radius: 5px;
    -moz-box-shadow: 0px 0px 4px #222;
    -webkit-box-shadow: 0px 0px 4px #222;
    box-shadow: 0px 0px 4px #222;
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0, #f8f8f8), color-stop(1, #cccccc));
    background-image: -webkit-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -moz-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -ms-linear-gradient(top, #f8f8f8, #cccccc);
    background-image: -o-linear-gradient(top, #f8f8f8, #cccccc);
    opacity: 0;
    z-index: 99999;
    visibility: hidden;
}

/* Asegurar altura completa para html y body */
html,
body {
    min-height: 100%;
}

/* Layout sidenav - Por defecto oculto en mobile */
#sidenav {
    background-color: #C6332B !important;
    color: #ffffff;
    min-width: 260px;
    max-width: 260px;
    display: flex;
    flex-direction: column;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    z-index: 1050;
    overflow-y: auto;
    visibility: hidden;
}

#sidenav.open {
    transform: translateX(0);
    visibility: visible;
}

#sidenav .sidenav-logo {
    border: 2px solid #dee2e6 !important;
    border-radius: 0.5rem !important;
    padding: 0.75rem 1rem;
}

#sidenav .nav-link {
    color: #ffffff !important;
    font-size: 0.9rem;
}

#sidenav .nav-link:hover {
    background-color: rgba(255, 255, 255, 0.08);
}

#sidenav .submenu-link {
    font-size: 0.85rem;
    position: relative;
    padding-left: 2rem !important;
}

/* Indicador de flecha para submenú activo */
#sidenav .submenu-link.active::before {
    content: "\f061";
    /* Font Awesome arrow-right */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    position: absolute;
    left: 0.75rem;
    color: #ffffff;
    font-size: 0.75rem;
}

/* Estilo para submenú activo */
#sidenav .submenu-link.active {
    background-color: rgba(255, 255, 255, 0.15);
    font-weight: 600;
    border-left: 3px solid #ffffff;
}

/* Rotar chevron cuando el módulo está abierto */
#sidenav .nav-link[aria-expanded="true"] .fa-chevron-down {
    transform: rotate(180deg);
}

#sidenav .fa-chevron-down {
    transition: transform 0.3s ease;
}

#sidenav-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

/* Backdrop para mobile */
#sidenav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1035;
    display: none;
}

#sidenav-backdrop.show {
    display: block;
}

/* Botón toggle para desktop - oculto por defecto */
#sidenav-toggle-desktop {
    display: none;
}

/* Desktop: sidenav siempre visible y fijo, sin overlay */
@media (min-width: 992px) {
    #app-layout {
        position: relative;
    }

    #sidenav {
        position: fixed;
        transform: none !important;
        height: 100vh;
        top: 0;
        left: 0;
        visibility: visible !important;
        transition: min-width 0.3s ease, max-width 0.3s ease;
        overflow-x: hidden;
        overflow-y: auto;
    }

    /* Botón toggle para desktop - visible solo en desktop */
    #sidenav-toggle-desktop {
        position: fixed;
        top: 1rem;
        left: calc(260px - 1rem);
        /* Borde derecho del sidenav - la mitad del ancho del botón */
        background-color: #C6332B;
        color: white;
        border: none;
        border-radius: 50%;
        width: 2rem;
        height: 2rem;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        z-index: 1051;
        transition: left 0.3s ease, transform 0.3s ease;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        padding: 0;
    }

    #sidenav-toggle-desktop:hover {
        background-color: #e66862;
        transform: scale(1.1);
    }

    #sidenav-toggle-desktop i {
        font-size: 0.875rem;
        transition: transform 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        line-height: 1;
    }

    /* Sidenav plegado */
    #sidenav.collapsed {
        min-width: 70px;
        max-width: 70px;
    }

    /* Ocultar header y footer cuando está plegado */
    #sidenav.collapsed #sidenav-header,
    #sidenav.collapsed #sidenav-footer {
        display: none !important;
    }

    /* Mostrar solo iconos cuando está plegado */
    #sidenav.collapsed #sidenav-content {
        display: flex !important;
    }

    /* Ocultar textos pero mantener iconos visibles */
    #sidenav.collapsed .nav-link .fa-chevron-down {
        display: none !important;
    }

    /* Ocultar el span que contiene el texto (es el segundo hijo del span contenedor) */
    #sidenav.collapsed .nav-link>span:first-child>span {
        display: none !important;
    }

    /* Centrar iconos en sidenav colapsado */
    #sidenav.collapsed .nav-link {
        justify-content: center !important;
        padding: 0.75rem 0 !important;
    }

    #sidenav.collapsed .nav-link>span:first-child {
        justify-content: center !important;
        margin: 0 !important;
        width: 100%;
    }

    #sidenav.collapsed .nav-link>span:first-child>i {
        margin: 0 !important;
    }

    /* Ocultar submenús cuando está colapsado */
    #sidenav.collapsed .nav.flex-column.ml-3.mb-2.collapse {
        display: none !important;
    }

    #sidenav.collapsed #sidenav-toggle-desktop i {
        transform: rotate(180deg);
    }

    #main-content {
        margin-left: 260px;
        transition: margin-left 0.3s ease;
    }

    body.sidenav-collapsed #main-content {
        margin-left: 70px;
    }

    /* Ajustar el toggle cuando está colapsado */
    body.sidenav-collapsed #sidenav-toggle-desktop {
        left: calc(70px - 1rem);
        /* Borde derecho del sidenav colapsado - la mitad del ancho del botón */
    }

    /* Rotar el icono cuando está colapsado */
    body.sidenav-collapsed #sidenav-toggle-desktop i {
        transform: rotate(180deg);
    }


    #sidenav-backdrop {
        display: none !important;
    }

    /* Ocultar topbar en desktop */
    #topbar-mobile {
        display: none !important;
    }
}

/* Sidenav horizontal en mobile (solo xs-sm-md) */
@media (max-width: 991.98px) {

    /* Ocultar topbar móvil */
    #topbar-mobile {
        display: none !important;
    }

    /* Sidenav como menú vertical deslizable desde arriba en mobile */
    #sidenav {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        max-height: 80vh;
        transform: translateY(-100%);
        flex-direction: column;
        z-index: 1050;
        visibility: hidden;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
        overflow-y: auto;
        overflow-x: hidden;
        padding: 0;
    }

    /* Sidenav visible cuando tiene clase .open */
    #sidenav.open {
        transform: translateY(0) !important;
        visibility: visible !important;
    }

    /* Contenedor del logo y año en mobile - oculto */
    #sidenav>div:first-child {
        display: none !important;
    }

    /* Menú vertical en mobile */
    #sidenav>div.px-3.pt-3.pb-2.flex-grow-1 {
        flex-grow: 1 !important;
        padding: 1rem !important;
        overflow-y: auto;
        overflow-x: hidden;
        display: flex !important;
        flex-direction: column !important;
        width: 100%;
        -webkit-overflow-scrolling: touch;
    }

    #sidenav .nav.flex-column {
        flex-direction: column !important;
        margin: 0;
        padding: 0;
        width: 100%;
    }

    #sidenav .nav-item {
        margin-bottom: 0.25rem !important;
        margin-right: 0;
        width: 100%;
    }

    #sidenav .nav-link {
        padding: 0.75rem 1rem;
        width: 100%;
        border-radius: 0.25rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    /* Submenús en mobile - mostrar como lista vertical */
    #sidenav .nav.flex-column.ml-3.mb-2.collapse {
        position: relative;
        top: auto;
        left: auto;
        background-color: rgba(255, 255, 255, 0.1);
        min-width: auto;
        width: 100%;
        padding: 0.5rem 0 0.5rem 1.5rem;
        border-radius: 0.25rem;
        box-shadow: none;
        z-index: auto;
        flex-direction: column !important;
        margin-top: 0.25rem;
    }

    /* Los submenús se muestran cuando tienen la clase .show de Bootstrap */
    #sidenav .nav.flex-column.ml-3.mb-2.collapse.show {
        display: flex !important;
    }

    /* Footer del sidenav oculto en mobile */
    #sidenav-footer {
        display: none;
    }

    /* Backdrop visible solo cuando sidenav está abierto */
    #sidenav-backdrop {
        z-index: 1045;
    }

    /* Botón toggle para abrir/cerrar sidenav horizontal */
    #sidenav-toggle-mobile {
        position: fixed;
        top: 0.75rem;
        right: 0.75rem;
        z-index: 1060;
        background-color: #C6332B;
        color: white;
        border: none;
        border-radius: 0.5rem;
        padding: 0.75rem;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
        cursor: pointer;
        font-size: 1.2rem;
        transition: background-color 0.3s;
    }

    #sidenav-toggle-mobile:hover {
        background-color: #C6332B;
    }

    #sidenav-toggle-mobile:active {
        background-color: #3d6572;
    }

    #main-content {
        margin-left: 0;
        margin-top: 0;
        transition: padding-top 0.3s ease-in-out;
    }

    /* Cuando el sidenav está abierto, agregar padding superior al contenido */
    body.sidenav-open #main-content {
        padding-top: 0;
    }
}

/* ============================================
   FIN ESTILO NAV
   ============================================ */

/* Botón ficha médica en nav-tabs */
.nav-tabs .btn-ficha-medica-tab {
    margin: 0.5rem 1.5rem 0.5rem 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white !important;
}

.nav-tabs .btn-ficha-medica-tab:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Botón específico para search-header */
.search-header .btn-search-header {
    margin: 0.5rem 0.5rem 0.5rem 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white !important;
    min-width: fit-content;
    flex-shrink: 0;
    justify-content: center;
}

.search-header .btn-search-header i {
    font-size: 0.875rem;
    line-height: 1;
}

.search-header .btn-search-header:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Mantener compatibilidad con btn-ficha-medica-tab si se usa en search-header */
.search-header .btn-ficha-medica-tab {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white !important;
    min-width: fit-content;
    flex-shrink: 0;
}

.search-header .btn-ficha-medica-tab i {
    font-size: 0.8125rem;
}

.search-header .btn-ficha-medica-tab:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Menú desplegable en search-header */
.dropdown-menu-header {
    position: relative;
    flex-shrink: 0;
    margin-left: auto;
}

/* Asegurar que el menú esté a la derecha en search-header */
.search-header>.d-flex.justify-content-between>.dropdown-menu-header {
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2;
    flex-shrink: 0;
}

.search-header .btn-menu-header {
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    border-radius: 0.375rem;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white !important;
    min-width: fit-content;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    cursor: pointer;
}

.search-header .btn-menu-header:hover,
.search-header .btn-menu-header:focus {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    outline: none;
}

.search-header .btn-menu-header i {
    font-size: 1.125rem;
    line-height: 1;
}

.search-header .dropdown-menu {
    min-width: 220px;
    border-radius: 0.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 1px solid var(--border-color);
    padding: 0.5rem 0;
    margin-top: 0.5rem;
}

.search-header .dropdown-item {
    padding: 0.75rem 1rem;
    font-size: 0.875rem;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    transition: all 0.2s ease;
}

.search-header .dropdown-item:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.search-header .dropdown-item i {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
    color: var(--primary-color);
}

.search-header .dropdown-item:active {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

/* Botones dentro del dropdown menu */
.search-header .dropdown-menu .px-2 {
    padding: 0.5rem 0.75rem;
}

.search-header .dropdown-menu .px-2 .btn {
    width: 100%;
    margin: 0;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.search-header .dropdown-menu .px-2 .btn i {
    font-size: 0.875rem;
    width: 1.25rem;
    text-align: center;
}

.search-header .dropdown-menu .dropdown-item-text {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--text-color);
}

/* Botón volver en search-header */
.btn-volver-header {
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-volver-header:hover {
    background-color: rgba(255, 255, 255, 0.3) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: white !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

.btn-volver-header i {
    font-size: 0.875rem;
    line-height: 1;
}

/* Botón volver en nav-tabs */
.nav-tabs .btn-volver-tab {
    margin: 0.5rem 1.5rem 0.5rem 1rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: 0.375rem;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background-color: white !important;
    color: var(--primary-color) !important;
    border: 1px solid white !important;
}

.nav-tabs .btn-volver-tab:hover {
    background-color: #f8f9fa !important;
    border-color: #f8f9fa !important;
    color: var(--primary-color) !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Diseño mejorado sin cards pesadas */
.data-section {
    background-color: var(--background-color);
    border-radius: 0.75rem;
    margin-bottom: 3rem;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* Headers minimalistas y simples */
.section-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 1.5rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.section-header .icon {
    font-size: 1.5rem;
    margin-right: 0.75rem;
    opacity: 0.9;
}

.section-header h2 {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: white;
}

.md-form.md-outline {
    position: relative;
    margin-top: 0px;
    margin-bottom: 1.5rem;
}

/* Header principal de búsqueda - estilo similar a tabs */
.search-header {
    background-color: #C6332B;
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem 0.5rem 0 0;
    margin-bottom: 0;
    cursor: pointer;
    transition: background-color 0.2s ease;
    overflow: visible;
    min-height: 3.5rem;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Asegurar que el primer hijo (contenedor flex) no agregue padding extra */
.search-header>.d-flex.justify-content-between {
    margin-left: 0;
    padding-left: 0;
    align-items: center;
    display: flex !important;
    justify-content: space-between !important;
    width: 100%;
}

/* Asegurar que el menú esté a la derecha */
.search-header>.d-flex.justify-content-between>.dropdown-menu-header {
    margin-left: auto !important;
    margin-right: 0 !important;
    flex-shrink: 0;
}

/* Asegurar que el título esté pegado al borde izquierdo del contenedor */
.search-header>.d-flex.justify-content-between>.search-header-title:first-child,
.search-header>.d-flex.justify-content-between>.search-header-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    align-items: center;
    display: flex;
}

.search-header>.d-flex {
    width: 100%;
    overflow: visible;
    box-sizing: border-box;
    align-items: center;
}

/* El contenedor de botones mantiene su tamaño pero puede ajustarse si es necesario */
.search-header>.d-flex>.d-flex {
    flex-shrink: 0;
}

/* Asegurar que el título esté a la izquierda y el menú a la derecha */
.search-header>.d-flex.justify-content-between {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.search-header>.d-flex.justify-content-between>.search-header-title {
    flex: 0 1 auto;
    margin-right: auto;
}

.search-header>.d-flex.justify-content-between>.dropdown-menu-header {
    flex: 0 0 auto !important;
    margin-left: auto !important;
    margin-right: 0 !important;
    order: 2;
}

/* Data section cuando está después del search-header */
#filtro_datos_estudiante .data-section {
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: 0;
    margin-bottom: 2rem;
    overflow: visible !important;
}

/* Data section después de search-header en general */
.search-header+.data-section {
    border-radius: 0 0 0.5rem 0.5rem;
    margin-top: 0;
    overflow: visible !important;
}

.search-header:hover {
    background-color: #ca504a;
}

.search-header-title {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    font-weight: 500;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 0.5rem;
    text-align: left;
    flex: 0 0 auto;
}

/* Badge de porcentaje en search-header */
.search-header-title .badge {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    cursor: help;
    margin-left: 0.5rem;
}

/* Asegurar que el contenedor del search-header alinee el título a la izquierda */
.search-header>.d-flex {
    align-items: center;
}

/* Específico para search-header con justify-content-between - alinear título a la izquierda */
#sec_informacion_estudiante .search-header>.d-flex.justify-content-between>.search-header-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    margin-right: auto !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    display: flex !important;
    flex: 0 0 auto;
}

/* Footer de secciones - estilo similar al search-header */
.section-footer {
    background-color: var(--background-color-secondary);
    color: white;
    padding: 0.75rem 1rem;
    margin-top: 0;
    margin-bottom: 0;
    overflow: visible;
    min-height: 3.5rem;
    box-sizing: border-box;
    width: 100%;
    display: flex;
    align-items: center;
}

/* Cuando data-section tiene section-footer, quitar border-radius inferior del data-section */
.data-section:has(.section-footer) {
    border-radius: 0.75rem 0.75rem 0 0;
}

.section-footer>.row {
    width: 100%;
    margin: 0;
    align-items: center;
}

.section-footer .btn {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-footer .btn:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
    transition: all 0.2s ease;
}

/* Ajustar texto de ayuda en footer */
.section-footer .txt_ayuda3 {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.875rem;
    margin-bottom: 0;
}

/* Estilos para botones en footer con iconos */
.section-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    white-space: nowrap;
    font-weight: bold;
    min-width: 12rem;
}

.section-footer .btn i {
    font-size: 0.875rem;
    line-height: 1;
}

/* Botones solo con icono en footer */
.section-footer .btn-icon-only {
    min-width: auto;
    width: auto;
    padding: 0.5rem 0.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.section-footer .btn-icon-only i {
    font-size: 1rem;
    margin: 0;
}

/* Espaciado entre botones en footer */
.section-footer .btn.ml-2 {
    margin-left: 0.5rem;
}

#sec_informacion_estudiante .search-header>.d-flex.justify-content-between {
    padding-left: 0 !important;
    margin-left: 0 !important;
    align-items: center;
    justify-content: space-between;
}

/* Asegurar que el primer elemento (título) esté completamente a la izquierda */
#sec_informacion_estudiante .search-header>.d-flex.justify-content-between>.search-header-title:first-child {
    order: 1;
    flex-grow: 0;
    flex-shrink: 0;
}

/* Asegurar que el icono y el texto dentro del título estén alineados a la izquierda */
#sec_informacion_estudiante .search-header-title i {
    margin-left: 0 !important;
    padding-left: 0 !important;
    flex-shrink: 0;
}

#sec_informacion_estudiante .search-header-title strong {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.search-header>.d-flex:not(.justify-content-between) {
    justify-content: flex-start;
}

/* Forzar alineación izquierda del título incluso con justify-content-between */
.search-header>.d-flex.justify-content-between>.search-header-title {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
    justify-content: flex-start !important;
    flex: 0 1 auto;
    min-width: 0;
    align-items: center !important;
}

/* Asegurar que el icono dentro del título también esté alineado a la izquierda */
.search-header>.d-flex.justify-content-between>.search-header-title>i {
    margin-left: 0 !important;
    padding-left: 0 !important;
}

/* Asegurar que el strong dentro del título esté alineado */
.search-header>.d-flex.justify-content-between>.search-header-title>strong {
    margin-left: 0 !important;
    padding-left: 0 !important;
    text-align: left !important;
}

.search-header>.d-flex>.search-header-title {
    margin-left: 0;
    padding-left: 0;
    text-align: left;
    justify-content: flex-start;
}

/* Cuando hay iconos materiales fuera del título, asegurar alineación izquierda */
.search-header>.d-flex>.icon.material-icons {
    margin-left: 0;
    margin-right: 0;
    flex-shrink: 0;
}

/* Contenedor con iconos y título alineados a la izquierda */
.search-header>.d-flex>.d-flex:first-child {
    justify-content: flex-start;
    align-items: center;
    gap: 1rem;
    margin-left: 0;
    padding-left: 0;
}

.search-header-title strong {
    font-weight: 600;
}

.search-header-title i {
    font-size: 1rem;
    opacity: 0.9;
}

.search-header .txt_ayuda3 {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    margin: 0;
    margin-left: 1rem;
    font-style: italic;
}

/* Botón de toggle para filtrar */
.search-header .btn-link {
    color: rgba(255, 255, 255, 0.9) !important;
    text-decoration: none;
    font-size: 0.875rem;
    transition: all 0.3s ease;
    padding: 0;
}

.btn-toggle-collapse {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: rgba(255, 255, 255, 0.15);
}

.search-header .btn-link:hover {
    color: white !important;
    background-color: rgba(255, 255, 255, 0.25) !important;
    text-decoration: none;
}

/* Botón cuando está desplegado (mostrar icono de menos para plegar) */
.btn-toggle-collapse[aria-expanded="true"] {
    background-color: rgba(255, 255, 255, 0.15);
}

.btn-toggle-collapse[aria-expanded="true"] #icon-toggle-collapse {
    color: white;
}

/* Botón cuando está plegado (mostrar icono de más para desplegar) */
.btn-toggle-collapse[aria-expanded="false"] {
    background-color: rgba(255, 255, 255, 0.1);
}

.btn-toggle-collapse[aria-expanded="false"] #icon-toggle-collapse {
    color: rgba(255, 255, 255, 0.9);
}

.btn-toggle-collapse #icon-toggle-collapse {
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Contenido de sección */
.section-content {
    padding: 2rem;
    background-color: var(--background-color);
}

/* Secciones de formulario mejoradas */
.form-section {
    padding: 1.5rem 0;
    border-bottom: 1px solid rgba(222, 226, 230, 0.5);
}

.form-section:last-child {
    border-bottom: none;
}

.section-subtitle {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--primary-color);
}

/* Alerta mejorada */
.alert {
    border-radius: 0.5rem;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
    border-left: 4px solid #ffc107;
}

.alert-warning i {
    color: #ffc107;
}

/* Separador visual entre secciones */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, var(--border-color), transparent);
    margin: 2rem 0;
}

/* Estilos para inputs readonly */
.form-control[readonly] {
    background-color: #eaecef;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-color);
    cursor: default;
}

input:disabled {
    background-color: #eaecef !important;
}

/* Estilos para selects */
.form-control,
select.form-control {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.5rem 0.75rem;
}

/* Input de búsqueda mejorado */
#buscar_rut {
    border-radius: 0.5rem;
    border: 1px solid var(--border-color);
    padding: 0.75rem;
}

#buscar_rut:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(89, 148, 166, 0.25);
}

/* Labels mejorados */
label.upper,
label.custom_outline {
    font-size: 15px;
    color: #8c8c8c;
    margin-bottom: 4px;
    font-weight: 500;
    border-radius: 15px;
    height: 12px;
}

/* Card body con mejor espaciado */
.card-body {
    padding: 2rem;
}

/* Contenedor de búsqueda de RUT */
.busqueda-rut-container {
    position: relative;
}

/* Contenedor de resultados de búsqueda */
.rut-student-container {
    margin-top: 3px;
    position: absolute;
    margin-left: auto;
    margin-right: auto;
    left: 0;
    right: 0;
    text-align: center;
    box-shadow: none;
    width: 100%;
}

/* Tabla de búsqueda mejorada */
#rut_student {
    left: 0%;
    border: 0px solid white;
    margin: auto;
    top: 20%;
    z-index: 100;
    padding: 2px;
    position: relative;
    background: white;
    background-color: white;
    border-radius: 0.5rem;
    max-height: 300px;
    overflow-y: auto;
    text-transform: uppercase;
}

#rut_student p {
    margin: 0.25rem 0;
    padding: 0.75rem;
    border-radius: 0.25rem;
    transition: background-color 0.2s;
    background: #e8e8e8;
}

#rut_student p:hover {
    background-color: var(--secondary-color);
}

#rut_student a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    display: block;
    width: 100%;
}

#rut_student a:hover {
    text-decoration: underline;
    color: #0883F1;
}

/* Contenedor de búsqueda */
.card[style*="position: absolute"] {
    z-index: 1000;
    border: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

/* Título principal mejorado */
.panel-heading h1 i {
    color: white !important;
    margin-right: 0.5rem;
}

.txt_ayuda3 {
    color: #6c757d;
    font-size: 0.9rem;
    margin-top: 0.5rem;
}

/* Indicador de situación */
#indicador {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: block;
}

/* Indicador intermitente rojo para situación danger */
#indicador.indicador-danger,
#indicador2.indicador-danger {
    background-color: #dc3545 !important;
    animation: parpadeo 1s infinite;
}

@keyframes parpadeo {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.3;
    }
}

/* Mejora visual para el nombre del estudiante */
h1.panel-title.text-center {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 2rem;
    padding: 1rem 0;
}

h3.panel-title.text-center {
    color: #6c757d;
    font-weight: 500;
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

/* Información del estudiante - minimalista y amigable en línea */
.student-info-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    flex-wrap: wrap;
}

.student-info-header .student-main-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

/* Fila con nombre y situación escolar */
.student-name-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    width: 100%;
}

.student-name-row h1 {
    margin: 0 0 0.25rem 0;
    flex: 0 1 auto;
}

.student-name-row #txt_sit {
    margin: 0;
    flex: 0 1 auto;
}

.student-name-row #indicador,
.student-name-row #indicador2 {
    margin: 0;
    flex: 0 1 auto;
}

.student-info-header h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
}

.student-info-header h1 img {
    width: 38px;
    height: 38px;
    margin: 0;
}

.student-info-header .student-details {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.student-info-header .student-details span {
    font-size: 1.14rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-info-header .student-details i {
    color: var(--primary-color);
    font-size: 1.08rem;
    opacity: 0.8;
}

/* Situación SIGE simple bajo el curso y RUT */
.sige-status-simple {
    font-size: 1.14rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.sige-status-simple .btn {
    margin: 0;
    white-space: nowrap;
}

.sige-status-simple span {
    font-size: 1.14rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.status-simple {
    font-size: 1.14rem;
    color: #6c757d;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.status-simple span {
    font-size: 0.9rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

/* Texto estado SIGE */
#textoEstadoSige {
    font-size: 0.8rem;
}

.student-info-header .student-observations {
    flex: 1;
    min-width: 200px;
    max-width: 400px;
}

.student-info-header .student-observations label {
    font-size: 0.85rem;
    color: #8c8c8c;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.student-info-header .student-observations textarea {
    font-size: 0.9rem;
    padding: 0.5rem;
    min-height: 60px;
    max-height: 80px;
    resize: vertical;
}

.student-info-header .student-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* Mejor espaciado en formularios */
.form-group {
    margin-bottom: 1.25rem;
}

/* Botón de ficha médica */
.btn-primary.mt-4 {
    border-radius: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 500;
}

/* Situación escolar mejorada */
.btn-outline-danger,
.btn-outline-success {
    border-radius: 0.5rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
}

/* Textarea readonly */
textarea.form-control[readonly] {
    background-color: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    min-height: 100px;
    resize: none;
}

/* Radio buttons mejorados - diseño con icono */
.custom-control.custom-radio {
    margin-bottom: 1rem;
    position: relative;
}

.custom-control.custom-radio .form-check-input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
    margin: 0;
    pointer-events: none;
}

.custom-control.custom-radio .form-check-label {
    color: var(--text-color);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: default;
    padding: 0.5rem 0.75rem;
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.custom-control.custom-radio .form-check-label .apoderado-economico-icon {
    display: none;
    color: var(--primary-color);
    font-size: 1rem;
}

/* Cuando el input está checked, mostrar el icono y cambiar el estilo del label */
.custom-control.custom-radio .form-check-input:checked+.form-check-label .apoderado-economico-icon {
    display: inline-block;
}

.custom-control.custom-radio .form-check-input:checked+.form-check-label {
    color: var(--primary-color);
    font-weight: 600;
}

/* Container con mejor espaciado */
.container {
    padding-top: 2rem;
    padding-bottom: 2rem;
}

/* Filtro de datos estudiante con ancho completo */
#filtro_datos_estudiante {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 2rem;
    padding-bottom: 2rem;
    box-sizing: border-box;
}

/* Ocultar ficha del estudiante por defecto */
#ficha_estudiante {
    display: none;
    padding-left: 2rem;
    padding-right: 2rem;
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    #filtro_datos_estudiante {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Mejora para grupos de campos */
.form-group-lg .row {
    margin-bottom: 0.5rem;
}

/* Situación SIGE destacada */
.sige-status {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--secondary-color);
    border-radius: 0.5rem;
    margin: 1.5rem 0;
}

.sige-status h2 {
    color: var(--primary-color);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.sige-status span {
    font-size: 1.1rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Responsive mejorado */
@media (max-width: 768px) {
    .section-header {
        padding: 0.875rem 1.25rem;
    }

    .section-header h2 {
        font-size: 1.1rem;
    }

    .section-header .icon {
        font-size: 1.25rem;
    }

    .section-content {
        padding: .5rem;
    }

    .card {
        padding-bottom: 5px !important;
        margin-bottom: 5px !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 0px !important;
    }

    .search-header {
        padding: 1.25rem;
    }

    .search-header h1 {
        font-size: 1.25rem;
    }

    .student-info-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .student-info-header .student-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        min-width: auto;
    }

    .student-info-header h1 {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .student-info-header h1 img {
        width: 34px;
        height: 34px;
    }

    .student-info-header .student-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .student-info-header .student-details span {
        font-size: 1.08rem;
    }

    .student-info-header .student-observations {
        min-width: auto;
        max-width: none;
    }

    .student-info-header .student-actions {
        width: 100%;
        justify-content: center;
    }

    .student-info-header .btn-ficha-medica {
        width: 100%;
    }

    /* Tabs responsive */
    .nav-tabs {
        flex-wrap: wrap;
        overflow-x: auto;
    }

    .nav-tabs .nav-link {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
        white-space: nowrap;
        color: rgba(255, 255, 255, 0.8);
    }

    .nav-tabs .nav-link:hover {
        color: white;
    }

    .nav-tabs .nav-link.active {
        color: white;
    }

    .nav-tabs .nav-link i {
        font-size: 0.85rem;
        color: rgba(255, 255, 255, 0.9);
    }

    .nav-tabs .nav-link.active i {
        color: white;
    }

    .nav-tabs .nav-link span {
        display: inline-block;
    }

    .tab-content {
        padding: 1.5rem 0;
    }

    .tabs-container .nav-tabs {
        padding: 0.5rem;
    }

    /* Botón de ficha médica en tab (mobile) */
    .nav-tabs .btn-ficha-medica-tab {
        margin: 0.25rem 1rem 0.25rem 0.5rem;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
        background-color: white !important;
        color: var(--primary-color) !important;
        border: 1px solid white !important;
    }

    .nav-tabs .nav-item.ml-auto {
        margin-left: auto;
        width: 100%;
        text-align: center;
    }
}

/* Transiciones suaves */
.data-section {
    transition: box-shadow 0.3s ease;
}

.data-section:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Estilos para tabs */
.nav-tabs {
    border-bottom: none;
    margin-bottom: 0;
    background-color: var(--primary-color);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}

.nav-tabs .nav-item {
    margin-bottom: 0;
}

.nav-tabs .nav-link {
    color: rgba(255, 255, 255, 0.8);
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 1.5rem;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: transparent;
}

.nav-tabs .nav-link i {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
}

.nav-tabs .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-color: rgba(255, 255, 255, 0.3);
}

.nav-tabs .nav-link:hover i {
    color: white;
}

.nav-tabs .nav-link.active {
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    border-bottom-color: white;
    font-weight: 600;
}

.nav-tabs .nav-link.active i {
    color: white;
}

.picker__box .picker__table .picker__weekday {
    color: #ffffff !important;
}

/* Asegurar espacio en search-header para botones */
.search-header .d-flex.justify-content-between {
    flex-wrap: nowrap;
    gap: 0.25rem;
    align-items: center;
    overflow: visible;
    width: 100%;
    min-width: 0;
    position: relative;
}

.search-header .d-flex.justify-content-between>span:first-child {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 95%;
    overflow: hidden;
}

.search-header .d-flex.align-items-center {
    flex-wrap: nowrap;
    flex: 0 0 auto;
    min-width: 0;
    overflow: visible;
    white-space: nowrap;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 768px) {
    .search-header .d-flex.justify-content-between {
        flex-wrap: wrap;
    }
}

.search-header .search-header-title {
    flex-shrink: 1;
    min-width: 0;
    margin-right: 0.5rem;
    white-space: nowrap;
    font-size: 1rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-header .search-header-title i {
    font-size: 1rem;
    margin-right: 0.5rem;
}

/* Responsive para botones en search-header */
@media (max-width: 768px) {
    .search-header .d-flex.justify-content-between {
        flex-direction: column;
        align-items: flex-start !important;
        gap: 0.75rem;
    }

    .search-header .d-flex.align-items-center {
        width: 100%;
        justify-content: flex-start;
    }

    .search-header .btn-ficha-medica-tab {
        width: 100%;
        justify-content: center;
    }
}

@media (min-width: 769px) and (max-width: 991px) {
    .search-header .btn-ficha-medica-tab {
        font-size: 0.8rem;
        padding: 0.5rem 0.75rem;
    }
}

.nav-tabs .nav-item.ml-auto {
    margin-left: auto;
}

.tab-content {
    padding: 2rem 0;
}

.tab-pane {
    animation: fadeIn 0.3s ease;
}

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

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Contenedor de tabs */
.tabs-container {
    background-color: var(--background-color);
    border-radius: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    margin-bottom: 3rem;
}

.tabs-container .nav-tabs {
    padding: 0.5rem 0 0 0;
    border-radius: 0.5rem 0.5rem 0 0;
    margin: 0;
}

/* Prevenir desbordamiento del botón de ficha médica */
.nav-tabs {
    max-width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.nav-tabs .nav-item:last-child {
    flex-shrink: 0;
}

.nav-tabs .nav-link {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Contenedor principal */
.container-fluid {
    padding: 2rem;
    max-width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container-fluid {
        padding: 1rem;
    }
}

/* Asegurar que las secciones tengan el mismo ancho */
#sec_buscar,
#sec_mod_datos,
#sec_habilitar,
#sec_actualizar_sige {
    max-width: 100%;
    box-sizing: border-box;
    width: 100%;
}

/* Títulos de sección */
h4,
h6 {
    color: var(--text-color);
    font-weight: 600;
}

h4 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

h6 {
    font-size: 1rem;
    margin-bottom: 0.75rem;
}

/* Switch styles mejorados */
.switch {
    margin: 0.5rem 0;
    width: 100% !important;
}

/* Blockquotes mejorados */
.blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0.25rem;
    background-color: var(--secondary-color);
}

.blockquote.bq-danger {
    border-left-color: #dc3545;
    background-color: #fff5f5;
}

.blockquote.bq-success {
    border-left-color: #48AF42;
    background-color: #f0fff4;
}

.blockquote h5 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-color);
}

/* Separador */
hr {
    border-top: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

/* Información del estudiante con fondo blanco */
.student-white-header {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.25rem 1.5rem;
    background-color: var(--background-color);
    border-radius: 0.5rem;
    margin-bottom: 2rem;
    border-left: 4px solid var(--primary-color);
    flex-wrap: wrap;
}

.student-white-header .student-main-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    flex: 1;
    min-width: 300px;
}

.student-white-header h1 {
    margin: 0 0 0.25rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
}

.student-white-header h1 img {
    width: 38px;
    height: 38px;
    margin: 0;
}

.student-white-header .student-details {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.student-white-header .student-details span {
    font-size: 1.14rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.student-white-header .student-details i {
    color: var(--primary-color);
    font-size: 1.08rem;
    opacity: 0.8;
}

/* Ocultar tab PIE */
#pie-tab,
#pie {
    display: none !important;
}

/* Ocultar tab Actividad Física */
#actividad-fisica-tab,
#actividad-fisica {
    display: none !important;
}

/* Responsive para student-white-header */
@media (max-width: 768px) {
    .student-white-header {
        padding: 1rem;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
    }

    .student-white-header .student-main-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
        min-width: auto;
    }

    .student-white-header h1 {
        font-size: 1.5rem;
        flex-wrap: wrap;
    }

    .student-white-header h1 img {
        width: 34px;
        height: 34px;
    }

    .student-white-header .student-details {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .student-white-header .student-details span {
        font-size: 1.08rem;
    }
}

/* Estilo para alerta de tratamientos */
#alerta-tratamientos {
    display: inline-block;
    font-size: 0.76rem;
    padding: 0.5rem 0.75rem;
    background-color: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 0.375rem;
    color: #856404;
    font-weight: 500;
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

#alerta-tratamientos b {
    font-weight: 600;
    color: #856404;
}

/* Listado de condiciones preexistentes con iconos de check */
.condiciones-preexistentes-list {
    margin-top: 1rem;
    margin-bottom: 1.5rem;
}

.list-condiciones-preexistentes {
    list-style: none;
    padding: 0;
    margin: 0;
}

.condicion-item {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.condicion-item:last-child {
    border-bottom: none;
}

.condicion-item i {
    font-size: 1.25rem;
    margin-right: 0.75rem;
    transition: all 0.2s ease;
}

.condicion-item .check-activo {
    color: #ff9800;
    /* Naranjo */
}

.condicion-item .check-inactivo {
    color: #9e9e9e;
    /* Gris */
}

.condicion-item span {
    color: var(--text-color);
    font-weight: 500;
}

@media (max-width: 768px) {
    .condiciones-preexistentes-list .col-md-6 {
        margin-bottom: 1rem;
    }
}

/* Estilos minimalistas para datos de salud */
.datos-salud-minimalista {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 0.5rem 0;
}

.dato-salud-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.dato-salud-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    min-width: 1.5rem;
    text-align: center;
}

.dato-salud-content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.dato-salud-label {
    font-size: 0.875rem;
    color: #6c757d;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dato-salud-value {
    font-size: 1rem;
    color: var(--text-color);
    font-weight: 600;
}

.check-vacunas-cumplido {
    color: #28a745 !important;
}

.check-alergias {
    color: #ff9800 !important;
}

/* Diseño responsive para información de salud */
.salud-info-responsive {
    margin-bottom: 1.5rem;
}

.salud-card {
    background-color: var(--background-color);
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    padding: 1.5rem;
    height: 100%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.2s ease;
}

.salud-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.salud-card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 1.25rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.salud-card-title i {
    font-size: 1.25rem;
}

/* Grid responsive para condiciones preexistentes */
.condiciones-grid-responsive {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem;
}

.condicion-grid-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border-radius: 0.5rem;
    background-color: var(--secondary-color);
    transition: all 0.2s ease;
    text-align: center;
    gap: 0.5rem;
}

.condicion-grid-item:hover {
    background-color: #d0f4f8;
    transform: translateY(-2px);
}

.condicion-grid-item i {
    font-size: 1.5rem;
}

.condicion-grid-item span {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-color);
    line-height: 1.2;
}

.condicion-grid-item .check-activo {
    color: #ff9800;
}

.condicion-grid-item .check-inactivo {
    color: #9e9e9e;
}

/* Responsive adjustments */
@media (max-width: 991.98px) {
    .salud-info-responsive {
        gap: 1rem;
    }

    .salud-card {
        margin-bottom: 1rem;
    }

    .condiciones-grid-responsive {
        grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
        gap: 0.5rem;
    }

    .condicion-grid-item {
        padding: 0.625rem 0.375rem;
    }

    .condicion-grid-item i {
        font-size: 1.25rem;
    }

    .condicion-grid-item span {
        font-size: 0.8rem;
    }
}

@media (max-width: 575.98px) {
    .salud-card {
        padding: 1rem;
    }

    .salud-card-title {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .condiciones-grid-responsive {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .datos-salud-minimalista {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    .dato-salud-item {
        padding: 0.375rem 0;
    }

    .dato-salud-item i {
        font-size: 1.125rem;
    }

    .dato-salud-label {
        font-size: 0.75rem;
    }

    .dato-salud-value {
        font-size: 0.9375rem;
    }
}

/* Estilos para información adicional minimalista */
.informacion-adicional-minimalista {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 0.5rem 0;
}

.info-adicional-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.info-adicional-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-adicional-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.info-adicional-header i {
    font-size: 1.125rem;
}

.info-adicional-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-adicional-content {
    padding-left: 1.625rem;
}

.info-adicional-content p {
    margin: 0;
    color: var(--text-color);
    font-size: 0.9375rem;
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* Responsive adjustments para información adicional */
@media (max-width: 575.98px) {
    .info-adicional-item {
        padding-left: 0.75rem;
        padding-bottom: 0.75rem;
    }

    .info-adicional-header {
        gap: 0.375rem;
        margin-bottom: 0.5rem;
    }

    .info-adicional-header i {
        font-size: 1rem;
    }

    .info-adicional-label {
        font-size: 0.8125rem;
    }

    .info-adicional-content {
        padding-left: 1.375rem;
    }

    .info-adicional-content p {
        font-size: 0.875rem;
    }
}

/* Estilos para home.twig */
table.table a {
    margin: 0;
    color: #2d2d2d;
    font-weight: 600;
    text-decoration: underline;
}

tbody tr:nth-child(odd) {
    background-color: #ffe2e2;
    color: #2d2d2d;
}

tbody tr:nth-child(even) {
    background-color: #ffffff;
    color: #2d2d2d;
}

table {
    background-color: rgb(241, 241, 241) !important;
    color: white !important;
}

/* Estilos específicos para gestión de cursos */
.data-section .table {
    margin-bottom: 0;
}

.data-section .table thead th {
    background-color: #495057;
    color: white !important;
    font-weight: 600;
    border-color: #218fc8;
    padding: 0.5rem;
}

.data-section .table tbody td {
    vertical-align: middle;
    padding: 0.75rem;
}

/* Mantener colores alternados originales pero solo en gestioncurso */
.data-section .table tbody tr:nth-child(odd) {
    background-color: #ffe2e2;
    color: #2d2d2d;
}

.data-section .table tbody tr:nth-child(even) {
    background-color: #ffffff;
    color: #2d2d2d;
}

.data-section .table tbody tr:hover {
    background-color: #ffcccc;
    transition: background-color 0.2s ease;
}

.data-section .table .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

.data-section .table .form-check-input {
    margin-top: 0;
    cursor: pointer;
}

.data-section .table .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    margin-bottom: 0;
}

/* Estilos para sección de acciones masivas */
#op_masivo {
    border: 1px solid var(--border-color);
    transition: box-shadow 0.2s ease;
}

#op_masivo:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Responsive para gestión de cursos */
@media (max-width: 768px) {

    #op_masivo .col-md-8,
    #op_masivo .col-md-4 {
        margin-bottom: 1rem;
    }
}

/* Estilos para modificaciontotal */
#indicador,
#indicador2 {
    width: 25px;
    height: 25px;
    opacity: 1;
    transition: opacity .5s;
    float: left;
    border-radius: 50px;
    margin-top: 5px;
    margin-left: 15px;
}

#indicador.fade,
#indicador2.fade {
    opacity: 0;
}

/* Indicador intermitente rojo para situación danger en modificaciontotal */
#indicador2.indicador-danger {
    background-color: #dc3545 !important;
    animation: parpadeo 1s infinite;
}

#btn_cambio,
#btn_reset {
    width: 280px;
    font-size: 0.8rem;
}

.parent {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.child {
    margin: 0 10px;
}

.textbox {
    width: 100%;
    height: 100%;
}

.ta_detalle {
    width: 100%;
    font-size: 16px;
    height: 70px;
    padding: 5px;
}

.ta_log {
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    padding: 5px;
}

.ta_cabecera {
    padding: 0px 0px 0px 5px;
    margin: 0px;
    background-color: #c9c9c9;
    border: 1px solid #9f9f9f;
    color: #3b3b3b;
    font-size: 12px;
}

.badge-primary {
    font-size: 1rem;
}

/* Estilos de botones para modificaciontotal.twig con colores personalizados */
/* Botones de guardar - Color #11A59F */
#sec_mod_datos .btn-success,
#sec_informacion_estudiante .btn-success,
#sec_habilitar .btn-success,
#sec_actualizar_sige .btn-success,
#sec_buscar .btn-success {
    background-color: #11A59F !important;
    border-color: #11A59F !important;
}

#sec_mod_datos .btn-success:hover,
#sec_informacion_estudiante .btn-success:hover,
#sec_habilitar .btn-success:hover,
#sec_actualizar_sige .btn-success:hover,
#sec_buscar .btn-success:hover {
    background-color: #0d8a84 !important;
    border-color: #0d8a84 !important;
}

/* Botones primarios - Color #71C4DE */
#sec_mod_datos .btn-primary,
#sec_informacion_estudiante .btn-primary,
#sec_habilitar .btn-primary,
#sec_actualizar_sige .btn-primary,
#sec_buscar .btn-primary {
    background-color: #71C4DE !important;
    border-color: #71C4DE !important;
}

#sec_mod_datos .btn-primary:hover,
#sec_informacion_estudiante .btn-primary:hover,
#sec_habilitar .btn-primary:hover,
#sec_actualizar_sige .btn-primary:hover,
#sec_buscar .btn-primary:hover {
    background-color: #5db3cc !important;
    border-color: #5db3cc !important;
}

/* Botones de información/consulta - Color #71C4DE */
#sec_mod_datos .btn-info,
#sec_informacion_estudiante .btn-info,
#sec_habilitar .btn-info,
#sec_actualizar_sige .btn-info,
#sec_buscar .btn-info {
    background-color: #71C4DE !important;
    border-color: #71C4DE !important;
}

#sec_mod_datos .btn-info:hover,
#sec_informacion_estudiante .btn-info:hover,
#sec_habilitar .btn-info:hover,
#sec_actualizar_sige .btn-info:hover,
#sec_buscar .btn-info:hover {
    background-color: #5db3cc !important;
    border-color: #5db3cc !important;
}

/* Botones de peligro/eliminar - Color #71C4DE */
#sec_mod_datos .btn-danger,
#sec_informacion_estudiante .btn-danger,
#sec_habilitar .btn-danger,
#sec_actualizar_sige .btn-danger,
#sec_buscar .btn-danger {
    background-color: #71C4DE !important;
    border-color: #71C4DE !important;
}

#sec_mod_datos .btn-danger:hover,
#sec_informacion_estudiante .btn-danger:hover,
#sec_habilitar .btn-danger:hover,
#sec_actualizar_sige .btn-danger:hover,
#sec_buscar .btn-danger:hover {
    background-color: #5db3cc !important;
    border-color: #5db3cc !important;
}

/* Botones del dropdown menu en modificaciontotal */
#sec_informacion_estudiante .dropdown-item a.btn-primary {
    background-color: #71C4DE !important;
    border-color: #71C4DE !important;
}

#sec_informacion_estudiante .dropdown-item a.btn-primary:hover {
    background-color: #5db3cc !important;
    border-color: #5db3cc !important;
}

#sec_informacion_estudiante .dropdown-item a.btn-primary[id="b_reglz"] {
    background-color: #11A59F !important;
    border-color: #11A59F !important;
}

#sec_informacion_estudiante .dropdown-item a.btn-primary[id="b_reglz"]:hover {
    background-color: #0d8a84 !important;
    border-color: #0d8a84 !important;
}

/* ============================================
   ESTILOS PARA CARDS CON BORDE IZQUIERDO
   ============================================ */
.border-left-primary {
    border-left: 4px solid #0883F1 !important;
}

.border-left-warning {
    border-left: 4px solid #F4B400 !important;
}

.border-left-success {
    border-left: 4px solid #4CAF50 !important;
}

.border-left-danger {
    border-left: 4px solid #E74C3C !important;
}

.border-left-info {
    border-left: 4px solid #17a2b8 !important;
}

/* Cards con sombra suave */
.shadow-sm {
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075) !important;
}

/* Altura completa para cards en fila */
.h-100 {
    height: 100% !important;
}

/* Estilos mejorados para la sección de Programas y Autorizaciones */
#programas_autorizaciones .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    border: 1px solid #e0e0e0;
}

#programas_autorizaciones .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

#programas_autorizaciones .card-body {
    padding: 1.25rem;
}

#programas_autorizaciones .switch {
    flex-shrink: 0;
    margin: 0 0.75rem;
}

/* Estilos para las etiquetas del switch */
#programas_autorizaciones .d-flex.align-items-center.justify-content-start {
    align-items: center;
    gap: 0.5rem;
}

#programas_autorizaciones .d-flex.align-items-center.justify-content-start span.small {
    white-space: nowrap;
    font-weight: 500;
}

/* Responsive: en móviles, las cards ocupan todo el ancho */
@media (max-width: 991.98px) {
    #programas_autorizaciones .col-lg-6 {
        margin-bottom: 1rem !important;
    }

    #programas_autorizaciones .card-body {
        padding: 1rem;
    }

    #programas_autorizaciones .d-flex.align-items-start {
        flex-direction: column;
    }

    #programas_autorizaciones .d-flex.align-items-center.justify-content-start {
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    #programas_autorizaciones .switch {
        margin: 0.5rem 0;
    }
}

/* ============================================
   ESTILOS PARA ICONO DE ALERTA DE CAMBIOS SIN GUARDAR
   ============================================ */
/* Estilos mejorados para el icono de alerta de cambios sin guardar */
#alert-cambios-sin-guardar {
    display: inline-block;
    cursor: pointer;
    vertical-align: middle;
    position: relative;
}

/* Estilos adicionales para el icono dentro del alerta - sin animación que interfiera */
#alert-cambios-sin-guardar i {
    filter: drop-shadow(0 2px 4px rgba(255, 193, 7, 0.4));
    transition: filter 0.3s ease;
    display: inline-block;
}

/* Hover sutil sin animación que interfiera con tooltip */
#alert-cambios-sin-guardar:hover i {
    filter: drop-shadow(0 3px 6px rgba(255, 193, 7, 0.6));
}

/* Asegurar que el icono se muestre cuando hay cambios */
#alert-cambios-sin-guardar.visible,
#alert-cambios-sin-guardar[style*="display: inline-block"] {
    display: inline-block !important;
    visibility: visible !important;
}

/* ============================================
   ESTILOS PARA REGISTRO AVANZADO
   ============================================ */
/* Estilos para tablas en registro avanzado */
#formularioRegistroAvanzado table.table a {
    margin: 0;
    color: #2d2d2d;
    font-weight: 600;
    text-decoration: underline;
}

#formularioRegistroAvanzado tbody tr:nth-child(odd) {
    background-color: #ffe2e2;
    color: #2d2d2d;
}

#formularioRegistroAvanzado tbody tr:nth-child(even) {
    background-color: #ffffff;
    color: #2d2d2d;
}

#formularioRegistroAvanzado table {
    background-color: #d0333a;
    color: white !important;
}

/* Botón flotante de registro */
.btn-flotante-registro {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    border-radius: 50px;
    padding: 1rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 10rem;
}

.btn-flotante-registro:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.btn-flotante-registro:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .btn-flotante-registro {
        bottom: 1.5rem;
        right: 1.5rem;
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
    }

    .btn-flotante-registro span {
        display: none;
    }

    .btn-flotante-registro i {
        margin: 0;
    }
}

/* ============================================
   ESTILOS PARA MATRICULAR
   ============================================ */
/* Indicadores */
#indicador,
#indicador2 {
    width: 25px;
    height: 25px;
    opacity: 1;
    transition: opacity .5s;
    float: left;
    border-radius: 50px;
    margin-top: 5px;
    margin-left: 15px;
}

#indicador.fade,
#indicador2.fade {
    opacity: 0;
}

/* Opacidad para botones deshabilitados */
.opacity-50 {
    opacity: 0.5;
    pointer-events: none;
}

/* Inline label+action alignment for Email row */
.inline-field {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.inline-field form {
    display: inline;
    margin: 0;
}

.inline-field .value {
    margin-left: 4px;
}

/* ============================================
   ESTILOS PARA AYUDA DESPLEGABLE
   ============================================ */
.btn-ayuda-desplegable {
    background: transparent;
    border: none;
    padding: 0;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    transition: none;
}

.btn-ayuda-desplegable:hover,
.btn-ayuda-desplegable:focus,
.btn-ayuda-desplegable:active {
    background: transparent;
    border: none;
    color: var(--text-color);
    text-decoration: none;
    outline: none;
    box-shadow: none;
}

.btn-ayuda-desplegable strong {
    color: var(--text-color);
    font-weight: 600;
}

.btn-ayuda-desplegable i.fa-info-circle {
    color: #17a2b8;
}

.btn-ayuda-desplegable i.fa-chevron-down,
.btn-ayuda-desplegable i.fa-chevron-up {
    color: #6c757d;
    font-size: 0.875rem;
}

/* ============================================
   ESTILOS PARA INPUTS DE CÓDIGO OTP
   ============================================ */
.codigo-input {
    transition: all 0.2s ease;
}

.codigo-input:focus {
    border-color: var(--primary-color) !important;
    box-shadow: 0 0 0 0.2rem rgba(89, 148, 166, 0.25);
    outline: none;
}

.codigo-input:not(:placeholder-shown) {
    background-color: #f0f8ff;
}

/* ============================================
   ESTILOS PARA TABLA DE PROMOCIÓN
   ============================================ */
#tabla-promocion tbody tr:nth-child(odd) {
    background-color: #ffe2e2;
    color: #2d2d2d;
}

#tabla-promocion tbody tr:nth-child(even) {
    background-color: #ffffff;
    color: #2d2d2d;
}

#tabla-promocion thead {
    background-color: rgb(51, 195, 208);
    color: white !important;
}

#tabla-promocion thead th {
    color: white !important;
}

/* ============================================
   MENSAJE FINAL MATRÍCULA - ESTILOS
   ============================================ */
/* Indicador de estado de campaña */
#indicador {
    width: 25px;
    height: 25px;
    opacity: 1;
    transition: opacity .5s;
    float: right;
    border-radius: 100px;
}

#indicador.fade {
    opacity: 0;
}

/* Modal custom (sin Bootstrap/MDB) */
.hf-modal-overlay[hidden] {
    display: none !important;
}

.hf-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050;
}

.hf-modal {
    width: min(800px, 92vw);
    max-height: 85vh;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, .2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .5s ease, transform .5s ease;
}

.hf-modal-overlay.show .hf-modal {
    opacity: 1;
    transform: translateY(0);
}

@keyframes hfModalIn {
    from {
        transform: translateY(10px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.hf-modal-header,
.hf-modal-footer {
    padding: 12px 16px;
    background: #f8f9fb;
}

.hf-modal-title {
    margin: 0;
    font-size: 1rem;
    display: flex;
    gap: 8px;
    align-items: center;
}

.hf-modal-body {
    padding: 16px;
    overflow: auto;
}

.hf-btn-close {
    appearance: none;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
}

body.hf-modal-open {
    overflow: hidden;
}

.hf-prose {
    line-height: 1.6;
    font-size: .95rem;
    color: #111827;
}

.hf-prose .meta {
    font-size: .85rem;
    color: var(--hf-muted);
}

.hf-card {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 14px;
    background: #fcfcfd;
}

.campaign-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 20px;
}

.status-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid #e5e7eb;
    background: #fff;
    font-weight: 600;
}

.status-chip .label {
    font-size: 1.2rem;
    color: #111827;
}

/* ============================================
   ESTILOS PARA TABLA DE CUOTA MATRÍCULA
   ============================================ */
#tabla-cuota-matricula tbody tr:nth-child(odd) {
    background-color: #ffe2e2;
    color: #2d2d2d;
}

#tabla-cuota-matricula tbody tr:nth-child(even) {
    background-color: #ffffff;
    color: #2d2d2d;
}

#tabla-cuota-matricula thead {
    background-color: rgb(51, 164, 208);
    color: white !important;
}

#tabla-cuota-matricula thead th {
    color: white !important;
}

/* Estilos para radio buttons de cuota matrícula */
.rb-nopaga:checked+label {
    color: red !important;
    font-weight: bold;
}

.rb-paga:checked+label {
    color: blue !important;
    font-weight: bold;
}

/* ============================================
   ESTILOS PARA FORMULARIO DE MATRÍCULA PORTAL APODERADO
   ============================================ */

/* Card con fondo gris para información readonly */
.card-readonly {
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
}

/* Título de sección */
.section-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Título de sección editable (con color primario) */
.section-title-editable {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Label pequeño para campos readonly */
.label-readonly {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Input readonly */
.input-readonly {
    background-color: #e9ecef;
    border: none;
}

/* Contenedor de valor readonly */
.value-readonly {
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

/* Badge de porcentaje */
.badge-porcentaje {
    font-size: 0.9rem;
}

/* Botón de guardar responsive */
.btn-guardar-responsive {
    min-width: 18rem;
    max-width: 100%;
}

/* Estilos para tabla de usuarios */
#tabla-usuarios {
    background-color: transparent;
}

#tabla-usuarios tbody tr:nth-child(odd) {
    background-color: #f8f9fa;
}

#tabla-usuarios tbody tr:nth-child(even) {
    background-color: #ffffff;
}

#tabla-usuarios thead {
    background-color: var(--primary-color);
}

#tabla-usuarios thead th {
    color: white;
    font-weight: 600;
    border: none;
}

#tabla-usuarios tbody tr:hover {
    background-color: #e8f4f8;
}

/* Estilos para tabla de cursos */
/* ============================================
   ESTILOS MEJORADOS PARA TABLA DE CURSOS
   ============================================ */
#tabla-cursos {
    background-color: var(--background-color);
    border-radius: 0.75rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

/* Header de la tabla */
#tabla-cursos thead {
    background-color: var(--primary-color);
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

#tabla-cursos thead th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Footer de la tabla - mismo estilo que header */
#tabla-cursos tfoot {
    background-color: var(--primary-color);
    border-top: 2px solid rgba(255, 255, 255, 0.2);
}

#tabla-cursos tfoot th {
    color: white;
    font-weight: 600;
    border: none;
    padding: 1rem 0.75rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    vertical-align: middle;
}

/* Filas del cuerpo - colores alternados suaves */
#tabla-cursos tbody tr:nth-child(odd) {
    background-color: var(--secondary-color);
}

#tabla-cursos tbody tr:nth-child(even) {
    background-color: var(--background-color);
}

/* Efecto hover mejorado */
#tabla-cursos tbody tr:hover {
    background-color: rgba(89, 148, 166, 0.15);
    transition: background-color 0.2s ease;
    cursor: pointer;
}

/* Celdas del cuerpo */
#tabla-cursos tbody td {
    padding: 0.4rem 0.75rem;
    vertical-align: middle;
    border-top: 1px solid rgba(222, 226, 230, 0.5);
    font-size: 0.9rem;
    color: var(--text-color);
}

#tabla-cursos tbody td.celdas_tabla {
    font-size: 0.9rem;
    color: var(--text-color);
}

/* Checkbox en header y footer */
#tabla-cursos thead .form-check,
#tabla-cursos tfoot .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

#tabla-cursos thead .form-check-label,
#tabla-cursos tfoot .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: white;
    user-select: none;
}

#tabla-cursos .form-check-input {
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    margin-top: 0;
    border: 2px solid rgba(255, 255, 255, 0.8);
    background-color: transparent;
}

#tabla-cursos .form-check-input:checked {
    background-color: white;
    border-color: white;
}

#tabla-cursos .form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.5);
}

/* Checkbox en el cuerpo de la tabla */
#tabla-cursos tbody .form-check {
    display: flex;
    align-items: center;
    justify-content: center;
}

#tabla-cursos tbody .form-check-label {
    cursor: pointer;
    margin-left: 0.5rem;
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Anchos mínimos para columnas específicas */
#tabla-cursos .th-n-mat {
    min-width: 120px;
}

#tabla-cursos .th-rut {
    min-width: 130px;
}

#tabla-cursos .th-nombre {
    min-width: 200px;
}

#tabla-cursos .th-email {
    min-width: 180px;
}

#tabla-cursos .th-estado {
    min-width: 120px;
}

#tabla-cursos .th-seleccion {
    min-width: 140px;
}

/* Contenedor de controles de la tabla (botón CSV y filtro) */
#tabla-cursos-controls {
    margin-bottom: 1rem;
    gap: 1rem;
    flex-wrap: nowrap;
    align-items: center;
}

#tabla-cursos_filter-container {
    flex: 1;
    min-width: 200px;
    display: flex;
    align-items: center;
}

#tabla-cursos_filter-container #tabla-cursos_filter {
    width: 100%;
}

#tabla-cursos_filter-container #tabla-cursos_filter label {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    width: 100%;
    white-space: nowrap;
}

#tabla-cursos_filter-container #tabla-cursos_filter input {
    margin-left: 0.5rem;
    flex: 1;
    min-width: 150px;
}

#tabla-cursos-controls .d-flex.gap-2 {
    gap: 0.5rem;
    flex-shrink: 0;
    margin-left: auto;
}

#tabla-cursos-controls #btn-copiar-tabla,
#tabla-cursos-controls #btn-descargar-csv {
    white-space: nowrap;
}

/* Div de acción masiva fijo en la parte inferior */
#op_masivo {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--background-color);
    border-top: 2px solid var(--primary-color);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin: 0;
    padding: 1rem 2rem;
    max-width: 100%;
    transition: all 0.3s ease;
}

/* Ajustar el div fijo cuando el sidenav está visible (desktop) */
@media (min-width: 992px) {
    #op_masivo {
        left: 260px;
        /* Ancho del sidenav expandido */
        transition: left 0.3s ease;
    }

    body.sidenav-collapsed #op_masivo {
        left: 70px;
        /* Ancho del sidenav plegado */
    }
}

/* El padding se maneja dinámicamente con JavaScript */
@media (max-width: 768px) {
    #op_masivo {
        padding: 1rem;
        left: 0;
    }
}

/* Ocultar el contenedor original de DataTables si el filtro fue movido */
#tabla-cursos_wrapper .row:first-child {
    display: none;
}

@media (max-width: 768px) {
    #tabla-cursos-controls {
        flex-direction: column;
        align-items: stretch;
    }

    #tabla-cursos_filter-container {
        width: 100%;
    }

    #tabla-cursos-controls #btn-descargar-csv {
        width: 100%;
        margin-left: 0;
    }
}

/* Botón estilo texto con subrayado al hover */
.btn-text-link {
    background: none;
    border: none;
    padding: 0;
    color: var(--text-color);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: none;
}

.btn-text-link:hover,
.btn-text-link:focus {
    background: none;
    border: none;
    color: var(--text-color);
    text-decoration: underline;
    box-shadow: none;
    outline: none;
}

.btn-text-link:active {
    background: none;
    border: none;
    box-shadow: none;
}

/* ============================================
   ESTILOS PARA INPUTS Y SELECTS MINIMALISTAS
   ============================================ */
.form-control-minimalista,
select.form-control-minimalista {
    border-radius: 0.5rem;
    background-color: #f8f9fa;
    border: 1px solid #e9ecef;
    padding: 0.65rem 0.75rem;
}

/* ESTILOS PARA AVISO DE POLÍTICA DE PRIVACIDAD
   ============================================ */
.privacy-policy-notice {
    background-color: #f8f9fa;
    border-left: 3px solid var(--primary-color, #0883F1);
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    margin-bottom: 1.5rem;
    border-radius: 0.375rem;
}

.privacy-policy-notice p {
    font-size: 0.875rem;
    color: #6c757d;
    line-height: 1.6;
}

.privacy-policy-notice i {
    color: var(--primary-color, #0883F1);
    font-size: 0.9rem;
}

.privacy-policy-notice strong {
    color: #495057;
    font-weight: 600;
}

/* ESTILOS PARA BOTONES DE CALENDARIO
   ============================================ */
.btn-icon-calendario {
    flex-shrink: 0;
    height: 38px;
    width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #e9ecef;
    color: #6c757d;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.btn-icon-calendario:hover {
    background-color: #dee2e6;
    border-color: #adb5bd;
    color: #495057;
}

.btn-icon-calendario:active {
    background-color: #ced4da;
    transform: scale(0.95);
}

.btn-icon-calendario:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(89, 148, 166, 0.25);
}

/* Ajuste para inputs de fecha con icono de calendario */
.datepicker input[type="text"] {
    padding-right: 2.5rem !important;
}

/* ESTILOS PARA INPUT GROUP CON DOMINIO DE EMAIL
   ============================================ */
.input-group-text {
    border-radius: 0 0.375rem 0.375rem 0;
    border-left: none;
}

.input-group .form-control:first-child {
    border-radius: 0.375rem 0 0 0.375rem;
}

.input-group .form-control:not(:first-child):not(:last-child) {
    border-radius: 0;
}