/* ============================================================
   ESTILOS GENERALES DEL SISTEMA
   Bootstrap 5 define formularios, botones, redondeo y espaciado.
   ============================================================ */
:root {
    --bs-body-font-family: "Montserrat", sans-serif;
}

html {
    position: relative;
    min-height: 100%;
}

body {
    font-family: var(--bs-body-font-family);
}

/* Identidad visual que no aporta Bootstrap por defecto */
.titulo-pagina-web {
    font-size: 24px;
}

.titulo-formulario {
    font-size: 18px;
}

.img-blanca {
    filter: brightness(0) invert(1);
}

/* ============================================================
   DATATABLES — ESTILO COMPARTIDO, REUTILIZABLE
   La disposición, inputs, botones y bordes se definen en Razor
   mediante clases Bootstrap. Aquí solo la identidad de la tabla.
   ============================================================ */
.table.dataTable thead th {
    background-color: #125773;
    color: #fff;
    vertical-align: middle;
}

/* Para no exportar/mostrar el botón Excel duplicado de Buttons. */
.dataTables_wrapper .dt-buttons {
    display: none;
}

/* La descripción se expande con clic, sin forzar ancho de tabla. */
.texto-expandible.cortado {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Navegación institucional: único botón especial fuera de Bootstrap. */
.btn-nav {
    --bs-btn-color: #fff;
    --bs-btn-bg: #125773;
    --bs-btn-border-color: #125773;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #062b40;
    --bs-btn-hover-border-color: #062b40;
}

/* ============================================================
   BOTONES INSTITUCIONALES — COMPATIBILIDAD BOOTSTRAP 5.0+
   Usamos propiedades reales porque Bootstrap 5.0/5.1 no aplica
   todas las variables --bs-btn-* utilizadas por Bootstrap 5.2+.
   ============================================================ */
.btn.btn-institucional,
.btn.btn-primary {
    color: #fff;
    background-color: #125773;
    border-color: #125773;
}

    .btn.btn-institucional:hover,
    .btn.btn-primary:hover {
        color: #fff;
        background-color: #0d4258;
        border-color: #0d4258;
    }

    .btn.btn-institucional:focus,
    .btn.btn-primary:focus {
        color: #fff;
        background-color: #125773;
        border-color: #125773;
        box-shadow: 0 0 0 .25rem rgba(18, 87, 115, .25);
    }

    .btn.btn-institucional:active,
    .btn.btn-institucional.active,
    .btn.btn-primary:active,
    .btn.btn-primary.active {
        color: #fff;
        background-color: #0b3546;
        border-color: #0b3546;
    }

    .btn.btn-institucional:disabled,
    .btn.btn-primary:disabled {
        color: #fff;
        background-color: #125773;
        border-color: #125773;
        opacity: .65;
    }
