/* Paginas migradas de Bootstrap 3 a Bootstrap 5 (SEC-085).
   Se carga despues de Bootstrap 5 y antes de las hojas propias de cada pagina. Mantiene el
   aspecto que tenian con Bootstrap 3: tipografia base, separacion de la cuadricula, ancho
   del contenedor, columnas anidadas sin .row, formularios, alertas, botones, encabezados
   propios y modales/tooltips. Las paginas que ademas cargaban la hoja responsive de
   Bootstrap 2 cargan tambien compat-bs2-responsive.css (despues de esta). */

/* Tipografia y colores base */
:root {
    --bs-body-font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    --bs-body-font-size: 14px;
    --bs-body-line-height: 1.42857143;
    --bs-body-color: #333;
    --bs-body-color-rgb: 51, 51, 51;
    --bs-link-color: #337ab7;
    --bs-link-color-rgb: 51, 122, 183;
    --bs-link-hover-color: #23527c;
    --bs-link-hover-color-rgb: 35, 82, 124;
}

/* Bootstrap 3 fijaba la raiz en 10px y las hojas propias usan rem contando con eso */
html { font-size: 10px; }

/* Impresion: Bootstrap 5 ya no trae las reglas de impresion de Bootstrap 3 (texto negro sin fondos ni
   sombras, URL despues de los enlaces, encabezado de tabla repetido en cada hoja, filas sin cortar).
   Los estados de cuenta imprimen con window.print() y su print.css cuenta con ellas. Va antes de las
   demas reglas, en el mismo orden que en Bootstrap 3: por eso los enlaces impresos siguen sin subrayar. */
@media print {
    *, *:before, *:after { color: #000 !important; text-shadow: none !important; background: transparent !important; box-shadow: none !important; }
    /* las utilidades de color de Bootstrap 5 llevan !important y ganarian a la regla anterior; en Bootstrap 3 no */
    [class*="text-"], [class*="bg-"], [class*="link-"] { color: #000 !important; background: transparent !important; }
    a, a:visited { text-decoration: underline; }
    a[href]:after { content: " (" attr(href) ")"; }
    abbr[title]:after { content: " (" attr(title) ")"; }
    a[href^="#"]:after, a[href^="javascript:"]:after { content: ""; }
    pre, blockquote { border: 1px solid #999; page-break-inside: avoid; }
    thead { display: table-header-group; }
    tr, img { page-break-inside: avoid; }
    img { max-width: 100% !important; }
    p, h2, h3 { orphans: 3; widows: 3; }
    h2, h3 { page-break-after: avoid; }
    .navbar { display: none; }
    .btn > .caret, .dropup > .btn > .caret { border-top-color: #000 !important; }
    .label { border: 1px solid #000; }
    .table { border-collapse: collapse !important; }
    .table td, .table th { background-color: #fff !important; }
    .table-bordered th, .table-bordered td { border: 1px solid #ddd !important; }
}

a { text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
/* Bootstrap 5 quita el color de enlace a los <a> sin href ni clase (p. ej. con onclick); Bootstrap 3 no */
a:not([href]):not([class]) { color: rgba(var(--bs-link-color-rgb), var(--bs-link-opacity, 1)); }
a:not([href]):not([class]):hover, a:not([href]):not([class]):focus { color: rgba(var(--bs-link-hover-color-rgb), var(--bs-link-opacity, 1)); text-decoration: underline; }

h1, h2, h3, h4, h5, h6 { font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; }
h1, h2, h3 { margin-top: 20px; margin-bottom: 10px; }
h4, h5, h6 { margin-top: 10px; margin-bottom: 10px; }
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
p { margin: 0 0 10px; }
ul, ol { padding-left: 40px; margin-top: 0; margin-bottom: 10px; }
dl { margin-top: 0; margin-bottom: 20px; }
dd { margin-bottom: 0; }
legend { float: none; display: block; width: 100%; padding: 0; margin-bottom: 20px; font-size: 21px; line-height: inherit; color: #333; border: 0; border-bottom: 1px solid #e5e5e5; }
label, .form-label { display: inline-block; max-width: 100%; margin-bottom: 5px; font-weight: 700; }
img { vertical-align: middle; }
b, strong { font-weight: 700; }
input[type="radio"], input[type="checkbox"] { margin: 4px 0 0; line-height: normal; }
hr { margin-top: 20px; margin-bottom: 20px; border: 0; border-top: 1px solid #eee; opacity: 1; }
.lead { margin-bottom: 20px; font-size: 16px; font-weight: 300; line-height: 1.4; }
@media (min-width: 768px) { .lead { font-size: 21px; } }
.hidden, .hide { display: none !important; }
/* Colores de Bootstrap 3 en las utilidades que Bootstrap 5 pinta con sus propios colores (bg-* claros) */
.text-primary { --bs-primary-rgb: 51, 122, 183; }
.bg-primary { --bs-primary-rgb: 51, 122, 183; color: #fff; }
.bg-info { --bs-info-rgb: 217, 237, 247; }
.bg-warning { --bs-warning-rgb: 252, 248, 227; }
.label { display: inline; padding: .2em .6em .3em; font-size: 75%; font-weight: 700; line-height: 1; color: #fff; text-align: center; white-space: nowrap; vertical-align: baseline; border-radius: .25em; }
.label:empty { display: none; }
/* Clases propias que coinciden con componentes de Bootstrap 5 (no existian en Bootstrap 3):
   se anulan los estilos del componente; las reglas de cada pagina siguen ganando */
.card { position: static; display: block; min-width: auto; height: auto; color: inherit; word-wrap: normal; background-color: transparent; background-clip: border-box; border: 0; border-radius: 0; }

/* Cuadricula: separacion de 30px entre columnas y anchos de contenedor anteriores */
.container, .container-fluid, .row { --bs-gutter-x: 30px; }
/* Bootstrap 3 daba al contenedor un ancho fijo (width), que se sale de un padre mas angosto; Bootstrap 5 usa max-width */
@media (min-width: 576px) { .container { max-width: none; } }
@media (min-width: 768px) { .container { width: 750px; } }
@media (min-width: 992px) { .container { width: 970px; } }
@media (min-width: 1200px) { .container { width: 1170px; } }
/* En Bootstrap 3 las columnas flotaban y cada una media lo de su contenido; no se estiran al alto de la fila.
   Una fila siempre empieza debajo de las columnas flotantes anteriores, a todo el ancho. */
.row { align-items: flex-start; clear: both; }
/* Una fila cuya unica columna esta centrada (.col-centered no flota) era un bloque normal: el margen
   inferior del ultimo elemento salia de la columna en vez de agrandar su fondo */
.row:has(> .col-centered:only-child) { display: block; }
/* Filas usadas como contenedor de texto con <br> (en flex los <br> no ocupan linea): bloque como en
   Bootstrap 3, con su clearfix; sus columnas flotan (ver "Columnas fuera de un .row") */
.row:has(> br) { display: block; }
.row:has(> br)::before, .row:has(> br)::after { content: " "; display: table; }
.row:has(> br)::after { clear: both; }
/* Filas sin columnas (solo bloques o texto): bloque como en Bootstrap 3, con su clearfix. El texto rodea los
   floats que entran en la fila y los margenes en % se miden sobre todo el ancho de la fila */
.row:not(:has(> [class^="col-"], > [class*=" col-"])) { display: block; }
.row:not(:has(> [class^="col-"], > [class*=" col-"]))::before, .row:not(:has(> [class^="col-"], > [class*=" col-"]))::after { content: " "; display: table; }
.row:not(:has(> [class^="col-"], > [class*=" col-"]))::after { clear: both; }
/* .row-bs3: fila con el comportamiento de Bootstrap 3 (bloque con columnas flotantes), para las filas cuyo
   diseno depende de el: columnas pull-left/right (float-start/end) que flotan aun por debajo de su punto
   de quiebre, o hijos con position:absolute que toman su lugar del flujo de bloque */
.row-bs3 { margin-right: -15px; margin-left: -15px; }
.row-bs3::before, .row-bs3::after { content: " "; display: table; }
.row-bs3::after { clear: both; }
/* Columnas vacias (espaciadores) por debajo de su punto de quiebre: en Bootstrap 3 eran bloques de 1px
   que no cortaban la linea de las columnas flotantes; en flex ocuparian una linea completa
   (compat-internas.css las devuelve con --cw-col-vacia, porque alli las filas son bloques) */
@media (max-width: 767.98px) {
    .row > :empty:not(br):is([class*="col-md-"], [class*="col-lg-"], [class*="col-xl-"]):not(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12) { display: var(--cw-col-vacia, none); }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .row > :empty:not(br):is([class*="col-lg-"], [class*="col-xl-"]):not(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, [class*="col-md-"]) { display: var(--cw-col-vacia, none); }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .row > :empty:not(br)[class*="col-xl-"]:not(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12, [class*="col-md-"], [class*="col-lg-"]) { display: var(--cw-col-vacia, none); }
}
/* Los hijos de una fila que no son columnas eran bloques: sin padding de columna, en su propia linea y con
   el ancho que les dejan sus margenes (p. ej. un offset sin col-*); los titulos conservaban su margen
   superior (Bootstrap 5 pone margin-top: 0 a todo hijo directo de .row) */
.row > :where(:not([class^="col-"], [class*=" col-"])) { flex: 0 1 100%; width: auto; min-width: 0; max-width: none; padding-right: 0; padding-left: 0; }
.row > :where(h1, h2, h3, hr) { margin-top: 20px; }
.row > :where(h4, h5, h6) { margin-top: 10px; }
/* Clearfix como en Bootstrap 3: el ::before tambien evita que el margen superior del primer hijo
   se funda con el del contenedor */
.container::before, .container::after, .container-fluid::before, .container-fluid::after,
.navbar::before, .navbar::after, .navbar-header::before, .navbar-header::after,
.navbar-collapse::before, .navbar-collapse::after, .nav::before, .nav::after { content: " "; display: table; }
.container::after, .container-fluid::after, .navbar::after, .navbar-header::after, .navbar-collapse::after, .nav::after { clear: both; }

/* Columnas fuera de un .row. En Bootstrap 3 toda columna tenia position:relative y 15px de
   padding, y flotaba aunque no estuviera dentro de un .row; varias paginas anidan columnas asi.
   Especificidad cero (:where) para que las hojas propias sigan ganando (p. ej. .col-centered). */
:where([class^="col-"], [class*=" col-"]) { position: relative; min-height: 1px; }
:where(:not(.row), .row:has(> br)) > :where([class^="col-"], [class*=" col-"]) { padding-right: 15px; padding-left: 15px; }
:where(:not(.row), .row:has(> br)) > :where(.col-1, .col-2, .col-3, .col-4, .col-5, .col-6, .col-7, .col-8, .col-9, .col-10, .col-11, .col-12) { float: left; }
@media (min-width: 768px) {
    :where(:not(.row), .row:has(> br)) > :where(.col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5, .col-md-6, .col-md-7, .col-md-8, .col-md-9, .col-md-10, .col-md-11, .col-md-12) { float: left; }
}
@media (min-width: 992px) {
    :where(:not(.row), .row:has(> br)) > :where(.col-lg-1, .col-lg-2, .col-lg-3, .col-lg-4, .col-lg-5, .col-lg-6, .col-lg-7, .col-lg-8, .col-lg-9, .col-lg-10, .col-lg-11, .col-lg-12) { float: left; }
}
@media (min-width: 1200px) {
    :where(:not(.row), .row:has(> br)) > :where(.col-xl-1, .col-xl-2, .col-xl-3, .col-xl-4, .col-xl-5, .col-xl-6, .col-xl-7, .col-xl-8, .col-xl-9, .col-xl-10, .col-xl-11, .col-xl-12) { float: left; }
}

/* Formularios */
.form-group { margin-bottom: 15px; }
.form-control {
    height: 34px; padding: 6px 12px; font-size: 14px; line-height: 1.42857143; color: #555;
    background-color: #fff; border: 1px solid #ccc; border-radius: 4px;
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075);
    transition: border-color ease-in-out .15s, box-shadow ease-in-out .15s;
}
.form-control:focus { border-color: #66afe9; outline: 0; box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, .6); }
textarea.form-control { height: auto; }
.has-feedback { position: relative; }
.form-control-feedback { position: absolute; top: 0; right: 0; z-index: 2; display: block; width: 34px; height: 34px; line-height: 34px; text-align: center; pointer-events: none; }
.checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; }
.checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: 400; cursor: pointer; }
.checkbox input[type="checkbox"] { position: absolute; margin-left: -20px; }
/* Bootstrap 5 quita la flecha nativa a select.form-control (para eso usa .form-select) y no oscurece los
   campos de solo lectura */
select.form-control { -webkit-appearance: menulist; -moz-appearance: menulist; appearance: auto; }
select[multiple].form-control, select[size].form-control { height: auto; }
.form-control[disabled], .form-control[readonly], fieldset[disabled] .form-control { background-color: #eee; opacity: 1; }
.form-control[disabled], fieldset[disabled] .form-control { cursor: not-allowed; }
@media (min-width: 768px) {
    .form-inline .form-group { display: inline-block; margin-bottom: 0; vertical-align: middle; }
    .form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }
    .form-inline .input-group { display: inline-table; vertical-align: middle; }
    .form-inline .input-group .input-group-addon, .form-inline .input-group .input-group-btn, .form-inline .input-group .form-control { width: auto; }
    .form-inline .input-group > .form-control { width: 100%; }
    .form-inline .control-label { margin-bottom: 0; vertical-align: middle; }
    .form-inline .checkbox { display: inline-block; margin-top: 0; margin-bottom: 0; vertical-align: middle; }
    .form-inline .checkbox label { padding-left: 0; }
    .form-inline .checkbox input[type="checkbox"] { position: relative; margin-left: 0; }
}
/* Grupos de campo: tabla de Bootstrap 3 con .input-group-addon (Bootstrap 5 usa flex e .input-group-text).
   Bootstrap 5 corre 1px a la izquierda cada hijo que no es el primero; aqui el addon pierde su borde */
.input-group { display: table; width: auto; flex-wrap: nowrap; align-items: normal; border-collapse: separate; }
.input-group[class*="col-"] { float: none; padding-right: 0; padding-left: 0; }
.input-group .form-control, .input-group > .form-control { position: relative; z-index: 2; float: left; width: 100%; min-width: 0; margin-bottom: 0; flex: none; }
.input-group-addon, .input-group-btn, .input-group .form-control { display: table-cell; }
.input-group > :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) { margin-left: 0; }
.input-group-addon, .input-group-btn { width: 1%; white-space: nowrap; vertical-align: middle; }
.input-group-addon { padding: 6px 12px; font-size: 14px; font-weight: 400; line-height: 1; color: #555; text-align: center; background-color: #eee; border: 1px solid #ccc; border-radius: 4px; }
.input-group-addon.input-sm { padding: 5px 10px; font-size: 12px; border-radius: 3px; }
.input-group-addon.input-lg { padding: 10px 16px; font-size: 18px; border-radius: 6px; }
.input-group-addon input[type="radio"], .input-group-addon input[type="checkbox"] { margin-top: 0; }
.input-group-addon:not(:first-child):not(:last-child), .input-group-btn:not(:first-child):not(:last-child), .input-group .form-control:not(:first-child):not(:last-child) { border-radius: 0; }
.input-group .form-control:first-child, .input-group-addon:first-child, .input-group-btn:first-child > .btn, .input-group-btn:last-child > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group-addon:first-child { border-right: 0; }
.input-group .form-control:last-child, .input-group-addon:last-child, .input-group-btn:last-child > .btn, .input-group-btn:first-child > .btn:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group-addon:last-child { border-left: 0; }
.input-group-btn { position: relative; font-size: 0; white-space: nowrap; }
.input-group-btn > .btn { position: relative; }
.input-group-btn:first-child > .btn { margin-right: -1px; }
.input-group-btn:last-child > .btn { margin-left: -1px; }

/* Tablas: aspecto de Bootstrap 3. Bootstrap 5 pinta las celdas con variables (fondo, sombra interior para
   las rayas, color y borde inferior); se neutralizan y se aplican las reglas de Bootstrap 3 */
th { text-align: left; }
/* Celdas con clase de columna (p. ej. <th class="col-lg-1">): solo toman el ancho, siguen siendo celdas */
table col[class*="col-"] { position: static; display: table-column; float: none; }
table td[class*="col-"], table th[class*="col-"] { position: static; display: table-cell; float: none; }
.table { --bs-table-color: initial; --bs-table-striped-color: initial; --bs-table-active-color: initial; --bs-table-hover-color: initial; --bs-table-bg: transparent; --bs-table-accent-bg: transparent; --bs-table-striped-bg: transparent; --bs-table-border-color: #ddd; width: 100%; max-width: 100%; margin-bottom: 20px; vertical-align: baseline; }
.table > thead > tr > th, .table > tbody > tr > th, .table > tfoot > tr > th, .table > thead > tr > td, .table > tbody > tr > td, .table > tfoot > tr > td {
    padding: 8px; line-height: 1.42857143; vertical-align: top; background-color: transparent; box-shadow: none; border-width: 1px 0 0; border-top: 1px solid #ddd;
}
.table > thead > tr > th { vertical-align: bottom; border-bottom: 2px solid #ddd; }
.table > caption + thead > tr:first-child > th, .table > colgroup + thead > tr:first-child > th, .table > thead:first-child > tr:first-child > th,
.table > caption + thead > tr:first-child > td, .table > colgroup + thead > tr:first-child > td, .table > thead:first-child > tr:first-child > td { border-top: 0; }
.table > tbody + tbody { border-top: 2px solid #ddd; }
.table .table { background-color: #fff; }
.table-condensed > thead > tr > th, .table-condensed > tbody > tr > th, .table-condensed > tfoot > tr > th, .table-condensed > thead > tr > td, .table-condensed > tbody > tr > td, .table-condensed > tfoot > tr > td { padding: 5px; }
.table-bordered { border: 1px solid #ddd; }
.table-bordered > :not(caption) > * { border-width: 0; }
.table-bordered > thead > tr > th, .table-bordered > tbody > tr > th, .table-bordered > tfoot > tr > th, .table-bordered > thead > tr > td, .table-bordered > tbody > tr > td, .table-bordered > tfoot > tr > td { border: 1px solid #ddd; }
.table-bordered > thead > tr > th, .table-bordered > thead > tr > td { border-bottom-width: 2px; }
.table-striped > tbody > tr:nth-child(odd) { background-color: #f9f9f9; }
.table-responsive { min-height: .01%; overflow-x: auto; }
@media screen and (max-width: 767px) {
    .table-responsive { width: 100%; margin-bottom: 15px; overflow-y: hidden; -ms-overflow-style: -ms-autohiding-scrollbar; border: 1px solid #ddd; }
    .table-responsive > .table { margin-bottom: 0; }
    .table-responsive > .table > thead > tr > th, .table-responsive > .table > tbody > tr > th, .table-responsive > .table > tfoot > tr > th,
    .table-responsive > .table > thead > tr > td, .table-responsive > .table > tbody > tr > td, .table-responsive > .table > tfoot > tr > td { white-space: nowrap; }
    .table-responsive > .table-bordered { border: 0; }
    .table-responsive > .table-bordered > thead > tr > th:first-child, .table-responsive > .table-bordered > tbody > tr > th:first-child, .table-responsive > .table-bordered > tfoot > tr > th:first-child,
    .table-responsive > .table-bordered > thead > tr > td:first-child, .table-responsive > .table-bordered > tbody > tr > td:first-child, .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; }
    .table-responsive > .table-bordered > thead > tr > th:last-child, .table-responsive > .table-bordered > tbody > tr > th:last-child, .table-responsive > .table-bordered > tfoot > tr > th:last-child,
    .table-responsive > .table-bordered > thead > tr > td:last-child, .table-responsive > .table-bordered > tbody > tr > td:last-child, .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; }
    .table-responsive > .table-bordered > tbody > tr:last-child > th, .table-responsive > .table-bordered > tfoot > tr:last-child > th,
    .table-responsive > .table-bordered > tbody > tr:last-child > td, .table-responsive > .table-bordered > tfoot > tr:last-child > td { border-bottom: 0; }
}
/* Bordes que el navegador da a las celdas de <table border> y <table rules> (p. ej. GridView con GridLines):
   Bootstrap 5 (reboot) los quita con border-width: 0 en todas las celdas. El color sigue heredandose */
table[rules="all" i] > * > tr > :is(td, th) { border-width: 1px; border-style: solid; }
table[rules="cols" i] > * > tr > :is(td, th) { border-left-width: 1px; border-right-width: 1px; border-left-style: solid; border-right-style: solid; }
table[rules="rows" i] > * > tr > :is(td, th) { border-top-width: 1px; border-bottom-width: 1px; border-top-style: solid; border-bottom-style: solid; }
table[border]:not([border="0"], [rules]) > * > tr > :is(td, th) { border-width: 1px; border-style: inset; }

/* Alertas */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.alert h4 { margin-top: 0; color: inherit; }
.alert > p, .alert > ul { margin-bottom: 0; }
.alert > p + p { margin-top: 5px; }
.alert-success { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.alert-info { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.alert-warning { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.alert-danger { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }

/* Botones */
/* background-image: none es del .btn de Bootstrap 3: quita el degradado del tema si este se carga antes. Deshabilitado:
   Bootstrap 3 dejaba los colores del boton (con opacidad); Bootstrap 5 usa los suyos */
.btn {
    --bs-btn-padding-x: 12px; --bs-btn-padding-y: 6px; --bs-btn-font-size: 14px; --bs-btn-line-height: 1.42857143; --bs-btn-border-radius: 4px;
    --bs-btn-disabled-color: var(--bs-btn-color); --bs-btn-disabled-bg: var(--bs-btn-bg); --bs-btn-disabled-border-color: var(--bs-btn-border-color);
    white-space: nowrap; background-image: none;
}
.btn-lg { --bs-btn-padding-x: 16px; --bs-btn-padding-y: 10px; --bs-btn-font-size: 18px; --bs-btn-line-height: 1.3333333; --bs-btn-border-radius: 6px; }
.btn-sm { --bs-btn-padding-x: 10px; --bs-btn-padding-y: 5px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; }
.btn-default { --bs-btn-color: #333; --bs-btn-bg: #fff; --bs-btn-border-color: #ccc; --bs-btn-hover-color: #333; --bs-btn-hover-bg: #e6e6e6; --bs-btn-hover-border-color: #adadad; --bs-btn-active-color: #333; --bs-btn-active-bg: #e6e6e6; --bs-btn-active-border-color: #adadad; }
.btn-success { --bs-btn-bg: #5cb85c; --bs-btn-border-color: #4cae4c; --bs-btn-hover-bg: #449d44; --bs-btn-hover-border-color: #398439; --bs-btn-active-bg: #449d44; --bs-btn-active-border-color: #398439; }
.btn-primary { --bs-btn-bg: #337ab7; --bs-btn-border-color: #2e6da4; --bs-btn-hover-bg: #286090; --bs-btn-hover-border-color: #204d74; --bs-btn-active-bg: #286090; --bs-btn-active-border-color: #204d74; }
.btn-danger { --bs-btn-bg: #d9534f; --bs-btn-border-color: #d43f3a; --bs-btn-hover-bg: #c9302c; --bs-btn-hover-border-color: #ac2925; --bs-btn-active-bg: #c9302c; --bs-btn-active-border-color: #ac2925; }
.btn-warning { --bs-btn-color: #fff; --bs-btn-bg: #f0ad4e; --bs-btn-border-color: #eea236; --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #ec971f; --bs-btn-hover-border-color: #d58512; --bs-btn-active-color: #fff; --bs-btn-active-bg: #ec971f; --bs-btn-active-border-color: #d58512; }
/* En Bootstrap 3 las clases de color de boton pintaban tambien sin .btn (p. ej. <div class="btn-warning">);
   en Bootstrap 5 solo definen variables que usa .btn */
.btn-default:where(:not(.btn)), .btn-primary:where(:not(.btn)), .btn-success:where(:not(.btn)), .btn-warning:where(:not(.btn)), .btn-danger:where(:not(.btn)) {
    color: var(--bs-btn-color); background-color: var(--bs-btn-bg); border-color: var(--bs-btn-border-color);
}
.btn-xs { --bs-btn-padding-x: 5px; --bs-btn-padding-y: 1px; --bs-btn-font-size: 12px; --bs-btn-line-height: 1.5; --bs-btn-border-radius: 3px; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: 5px; }

/* Menus desplegables con el marcado de Bootstrap 3 (li > a, .caret propio): medidas en px (Bootstrap 5 usa rem
   y la raiz es de 10px) y sin el triangulo que Bootstrap 5 agrega a .dropdown-toggle */
.caret { display: inline-block; width: 0; height: 0; margin-left: 2px; vertical-align: middle; border-top: 4px solid; border-right: 4px solid transparent; border-left: 4px solid transparent; }
.btn .caret { margin-left: 0; }
.dropdown-toggle::after { content: none; }
.dropdown-menu {
    --bs-dropdown-min-width: 160px; --bs-dropdown-padding-y: 5px; --bs-dropdown-spacer: 2px; --bs-dropdown-font-size: 14px;
    --bs-dropdown-color: #333; --bs-dropdown-border-color: rgba(0, 0, 0, .15); --bs-dropdown-border-radius: 4px;
    --bs-dropdown-link-color: #333; --bs-dropdown-link-hover-color: #262626; --bs-dropdown-link-hover-bg: #f5f5f5;
    --bs-dropdown-item-padding-x: 20px; --bs-dropdown-item-padding-y: 3px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, .175);
}
.dropdown-menu > li > a { display: block; padding: 3px 20px; clear: both; font-weight: 400; line-height: 1.42857143; color: #333; white-space: nowrap; }
.dropdown-menu > li > a:hover, .dropdown-menu > li > a:focus { color: #262626; text-decoration: none; background-color: #f5f5f5; }

/* Barras: las paginas usan encabezados propios, no el navbar de Bootstrap 5 */
.navbar { display: block; min-height: 50px; padding: 0; margin-bottom: 20px; border: 1px solid transparent; }
.navbar > .container, .navbar > .container-fluid { display: block; }
.navbar.fixed-top { border-width: 0 0 1px; }
.navbar.fixed-bottom { border-width: 1px 0 0; }
.fixed-bottom { margin-bottom: 0; }
.navbar-default { background-color: #f8f8f8; border-color: #e7e7e7; }
.nav, .navbar-nav { display: block; padding-left: 0; margin-bottom: 0; list-style: none; }
.nav > li { position: relative; display: block; }
.nav > li > a { position: relative; display: block; padding: 10px 15px; }
.nav > li > a:hover, .nav > li > a:focus { text-decoration: none; background-color: #eee; }
.navbar-nav { margin: 7.5px -15px; }
.navbar-nav > li > a { padding-top: 10px; padding-bottom: 10px; line-height: 20px; }
.navbar-collapse { padding-right: 15px; padding-left: 15px; overflow-x: visible; border-top: 1px solid transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); }
.fixed-top .navbar-collapse { max-height: 340px; }
.container > .navbar-header, .container > .navbar-collapse { margin-right: -15px; margin-left: -15px; }
.navbar-toggle {
    position: relative; float: right; padding: 9px 10px; margin-top: 8px; margin-right: 15px; margin-bottom: 8px;
    background-color: transparent; background-image: none; border: 1px solid transparent; border-radius: 4px;
}
.navbar-toggle .icon-bar { display: block; width: 22px; height: 2px; border-radius: 1px; }
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }
@media (min-width: 768px) {
    .navbar { border-radius: 4px; }
    .navbar.fixed-top, .navbar.fixed-bottom { border-radius: 0; }
    .navbar-header { float: left; }
    .navbar-toggle { display: none; }
    .navbar-collapse { width: auto; border-top: 0; box-shadow: none; }
    .navbar-collapse.collapse { display: block !important; height: auto !important; padding-bottom: 0; overflow: visible !important; }
    .fixed-top .navbar-collapse { padding-right: 0; padding-left: 0; }
    .container > .navbar-header, .container > .navbar-collapse { margin-right: 0; margin-left: 0; }
    .navbar-nav { float: left; margin: 0; }
    .navbar-nav > li { float: left; }
    .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
}

/* Modales: medidas y aspecto de Bootstrap 3, tanto los de Bootstrap 5 como los propios de cada
   pagina; las reglas de cada pagina siguen ganando. Bootstrap 3 tambien permitia un .modal-dialog
   fuera de un .modal (en linea con el contenido): las variables de Bootstrap 5 solo existen en .modal,
   asi que se le dan aqui (fondo y borde incluidos) y se le devuelven los clics */
:where(:not(.modal)) > .modal-dialog { pointer-events: auto; --bs-modal-bg: #fff; --bs-modal-border-width: 1px; }
.modal, :where(:not(.modal)) > .modal-dialog {
    --bs-modal-margin: 10px;
    --bs-modal-width: 600px;
    --bs-modal-padding: 15px;
    --bs-modal-header-padding: 15px;
    --bs-modal-border-color: rgba(0, 0, 0, .2);
    --bs-modal-border-radius: 6px;
    --bs-modal-inner-border-radius: 6px;
    --bs-modal-header-border-color: #e5e5e5;
    --bs-modal-footer-border-color: #e5e5e5;
    --bs-modal-footer-gap: 0;
    --bs-modal-title-line-height: 1.42857143;
}
@media (min-width: 576px) and (max-width: 767px) { .modal-dialog { max-width: none; margin: 10px; } }
@media (min-width: 768px) { .modal, :where(:not(.modal)) > .modal-dialog { --bs-modal-margin: 30px; } }
.modal-sm { --bs-modal-width: 300px; }
.modal-content { display: block; color: inherit; border: 1px solid rgba(0, 0, 0, .2); border-radius: 6px; box-shadow: 0 3px 9px rgba(0, 0, 0, .5); }
@media (min-width: 768px) { .modal-content { box-shadow: 0 5px 15px rgba(0, 0, 0, .5); } }
.modal-header { display: block; padding: 15px; border-bottom: 1px solid #e5e5e5; }
.modal-header .close { margin-top: -2px; }
.modal-title { margin: 0; }
.modal-body { padding: 15px; }
.modal-footer { display: block; padding: 15px; text-align: right; border-top: 1px solid #e5e5e5; }
.modal-footer .btn + .btn { margin-bottom: 0; margin-left: 5px; }
/* Las utilidades text-* de Bootstrap 5 llevan !important; en Bootstrap 3 perdian ante los componentes
   definidos despues: <div class="modal-footer text-center"> quedaba alineado a la derecha */
.modal-footer:is(.text-center, .text-start, .text-justify) { text-align: right !important; }
.btn:is(.text-start, .text-end, .text-justify) { text-align: center !important; }
.close { float: right; font-size: 21px; font-weight: 700; line-height: 1; color: #000; text-shadow: 0 1px 0 #fff; opacity: .2; }
.close:hover, .close:focus { color: #000; text-decoration: none; cursor: pointer; opacity: .5; }
button.close { padding: 0; cursor: pointer; background: transparent; border: 0; -webkit-appearance: none; appearance: none; }

/* Tooltips de Bootstrap 5 con el aspecto de Bootstrap 3, y leyendas propias (div.tooltip) */
.tooltip {
    --bs-tooltip-padding-x: 8px; --bs-tooltip-padding-y: 3px; --bs-tooltip-font-size: 12px;
    --bs-tooltip-color: #fff; --bs-tooltip-bg: #000; --bs-tooltip-border-radius: 4px; --bs-tooltip-opacity: .9;
    margin: 0; font-family: "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 12px; line-height: 1.42857143;
}
