/* ==========================================================
   Bootstrap 3 → Bootstrap 5 compatibility layer
   Agrega clases B3 que el tema usa, sin tocar los templates.
   Solo requiere cambiar data-toggle → data-bs-toggle en HTML
   (eso CSS no puede resolverlo).
   ========================================================== */

/* ----------------------------------------------------------
   GRID — col-xs-* solo en mobile (max-width: 767px)
   Envuelto en media query para NO sobreescribir col-sm/md/lg
   de Bootstrap 5 en pantallas más grandes.
   ---------------------------------------------------------- */
@media (max-width: 767px) {
  .col-xs-1  { flex: 0 0 auto; width: 8.33333333%; }
  .col-xs-2  { flex: 0 0 auto; width: 16.66666667%; }
  .col-xs-3  { flex: 0 0 auto; width: 25%; }
  .col-xs-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-xs-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-xs-6  { flex: 0 0 auto; width: 50%; }
  .col-xs-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-xs-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-xs-9  { flex: 0 0 auto; width: 75%; }
  .col-xs-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-xs-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-xs-12 { flex: 0 0 auto; width: 100%; }
}

/* ----------------------------------------------------------
   GRID — col-sm-* reforzado (576px+)
   Bootstrap 5 ya los tiene, pero los redeclaramos después
   para asegurar que ganan sobre cualquier col-xs residual.
   ---------------------------------------------------------- */
@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 auto; width: 8.33333333%; }
  .col-sm-2  { flex: 0 0 auto; width: 16.66666667%; }
  .col-sm-3  { flex: 0 0 auto; width: 25%; }
  .col-sm-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-sm-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-sm-6  { flex: 0 0 auto; width: 50%; }
  .col-sm-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-sm-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-sm-9  { flex: 0 0 auto; width: 75%; }
  .col-sm-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-sm-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-sm-12 { flex: 0 0 auto; width: 100%; }
}

/* ----------------------------------------------------------
   GRID — col-md-* reforzado (768px+)
   ---------------------------------------------------------- */
@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 auto; width: 8.33333333%; }
  .col-md-2  { flex: 0 0 auto; width: 16.66666667%; }
  .col-md-3  { flex: 0 0 auto; width: 25%; }
  .col-md-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-md-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-md-6  { flex: 0 0 auto; width: 50%; }
  .col-md-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-md-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-md-9  { flex: 0 0 auto; width: 75%; }
  .col-md-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-md-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-md-12 { flex: 0 0 auto; width: 100%; }
}

/* ----------------------------------------------------------
   GRID — col-lg-* reforzado (992px+)
   ---------------------------------------------------------- */
@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 auto; width: 8.33333333%; }
  .col-lg-2  { flex: 0 0 auto; width: 16.66666667%; }
  .col-lg-3  { flex: 0 0 auto; width: 25%; }
  .col-lg-4  { flex: 0 0 auto; width: 33.33333333%; }
  .col-lg-5  { flex: 0 0 auto; width: 41.66666667%; }
  .col-lg-6  { flex: 0 0 auto; width: 50%; }
  .col-lg-7  { flex: 0 0 auto; width: 58.33333333%; }
  .col-lg-8  { flex: 0 0 auto; width: 66.66666667%; }
  .col-lg-9  { flex: 0 0 auto; width: 75%; }
  .col-lg-10 { flex: 0 0 auto; width: 83.33333333%; }
  .col-lg-11 { flex: 0 0 auto; width: 91.66666667%; }
  .col-lg-12 { flex: 0 0 auto; width: 100%; }
}

/* Offsets usados en el tema */
@media (min-width: 576px) {
  .col-sm-offset-1 { margin-left: 8.33333333%; }
  .col-sm-offset-3 { margin-left: 25%; }
}
@media (min-width: 768px) {
  .col-md-offset-2 { margin-left: 16.66666667%; }
  .col-md-offset-4 { margin-left: 33.33333333%; }
  .col-md-offset-7 { margin-left: 58.33333333%; }
}

/* ----------------------------------------------------------
   VISIBILIDAD — hidden-* / visible-*
   ---------------------------------------------------------- */

/* hidden-xs: oculto en xs, visible desde sm */
.hidden-xs { display: none !important; }
@media (min-width: 768px) {
  .hidden-xs { display: block !important; }
}

/* hidden-sm: visible en xs y md+, oculto en sm */
@media (min-width: 768px) and (max-width: 991px) {
  .hidden-sm { display: none !important; }
}

/* hidden-md: oculto en md */
@media (min-width: 992px) and (max-width: 1199px) {
  .hidden-md { display: none !important; }
}

/* hidden-lg: oculto en lg+ */
@media (min-width: 1200px) {
  .hidden-lg { display: none !important; }
}

/* visible-xs: visible solo en xs */
.visible-xs { display: none !important; }
@media (max-width: 767px) {
  .visible-xs { display: block !important; }
}

/* visible-sm: visible solo en sm */
.visible-sm { display: none !important; }
@media (min-width: 768px) and (max-width: 991px) {
  .visible-sm { display: block !important; }
}

/* visible-md: visible solo en md */
.visible-md { display: none !important; }
@media (min-width: 992px) and (max-width: 1199px) {
  .visible-md { display: block !important; }
}

/* ----------------------------------------------------------
   UTILIDADES
   ---------------------------------------------------------- */
.center-block   { display: block !important; margin-left: auto !important; margin-right: auto !important; }
.img-responsive { max-width: 100%; height: auto; display: block; }
.pull-right     { float: right !important; }
.pull-left      { float: left !important; }

/* ----------------------------------------------------------
   FORMULARIOS — validación B3
   ---------------------------------------------------------- */
.has-error .form-control         { border-color: #a94442; box-shadow: inset 0 1px 1px rgba(0,0,0,.075); }
.has-error .control-label,
.has-error .help-block,
.has-error .radio,
.has-error .checkbox            { color: #a94442; }
.help-block                      { display: block; margin-top: 5px; margin-bottom: 10px; color: #737373; font-size: 12px; }

/* ----------------------------------------------------------
   WELL (componente removido en B5)
   ---------------------------------------------------------- */
.well {
  min-height: 20px;
  padding: 19px;
  margin-bottom: 20px;
  background-color: #f5f5f5;
  border: 1px solid #e3e3e3;
  border-radius: 4px;
  box-shadow: inset 0 1px 1px rgba(0,0,0,.05);
}
.well-sm { padding: 9px; border-radius: 3px; }
.well-lg { padding: 24px; border-radius: 6px; }

/* ----------------------------------------------------------
   PANELS — Bootstrap 3 completo (compilado desde panels.less)
   stylelint-disable selector-max-type, selector-max-compound-selectors,
                     selector-max-combinators, no-duplicate-selectors
   ---------------------------------------------------------- */

/* Base */
.panel {
  margin-bottom: 20px;
  background-color: #fff;
  border: 1px solid transparent;
  border-radius: 4px;
  box-shadow: 0 1px 1px rgba(0,0,0,.05);
}
.panel-body { padding: 15px; }
.panel-body::before, .panel-body::after { display: table; content: " "; }
.panel-body::after { clear: both; }

/* Heading */
.panel-heading {
  padding: 10px 15px;
  border-bottom: 1px solid transparent;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel-heading > .dropdown .dropdown-toggle { color: inherit; }

/* Title */
.panel-title {
  margin-top: 0;
  margin-bottom: 0;
  font-size: 16px; /* ceil(14px * 1.125) */
  color: inherit;
}
.panel-title > a,
.panel-title > small,
.panel-title > .small,
.panel-title > small > a,
.panel-title > .small > a { color: inherit; }

/* Footer */
.panel-footer {
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-top: 1px solid #ddd;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}

/* List groups inside panels */
.panel > .list-group,
.panel > .panel-collapse > .list-group { margin-bottom: 0; }
.panel > .list-group .list-group-item,
.panel > .panel-collapse > .list-group .list-group-item { border-width: 1px 0; border-radius: 0; }
.panel > .list-group:first-child .list-group-item:first-child,
.panel > .panel-collapse > .list-group:first-child .list-group-item:first-child {
  border-top: 0;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .list-group:last-child .list-group-item:last-child,
.panel > .panel-collapse > .list-group:last-child .list-group-item:last-child {
  border-bottom: 0;
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.panel > .panel-heading + .panel-collapse > .list-group .list-group-item:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.panel-heading + .list-group .list-group-item:first-child { border-top-width: 0; }
.list-group + .panel-footer { border-top-width: 0; }

/* Tables inside panels */
.panel > .table,
.panel > .table-responsive > .table,
.panel > .panel-collapse > .table { margin-bottom: 0; }
.panel > .table caption,
.panel > .table-responsive > .table caption,
.panel > .panel-collapse > .table caption { padding-right: 15px; padding-left: 15px; }

.panel > .table:first-child,
.panel > .table-responsive:first-child > .table:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > thead:first-child > tr:first-child,
.panel > .table-responsive:first-child > .table:first-child > tbody:first-child > tr:first-child {
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}
.panel > .table:first-child > thead:first-child > tr:first-child td:first-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:first-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:first-child { border-top-left-radius: 3px; }
.panel > .table:first-child > thead:first-child > tr:first-child td:last-child,
.panel > .table:first-child > thead:first-child > tr:first-child th:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child td:last-child,
.panel > .table:first-child > tbody:first-child > tr:first-child th:last-child { border-top-right-radius: 3px; }

.panel > .table:last-child,
.panel > .table-responsive:last-child > .table:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tbody:last-child > tr:last-child,
.panel > .table-responsive:last-child > .table:last-child > tfoot:last-child > tr:last-child {
  border-bottom-left-radius: 3px;
  border-bottom-right-radius: 3px;
}
.panel > .table:last-child > tbody:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:first-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:first-child { border-bottom-left-radius: 3px; }
.panel > .table:last-child > tbody:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tbody:last-child > tr:last-child th:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child td:last-child,
.panel > .table:last-child > tfoot:last-child > tr:last-child th:last-child { border-bottom-right-radius: 3px; }

.panel > .panel-body + .table,
.panel > .panel-body + .table-responsive,
.panel > .table + .panel-body,
.panel > .table-responsive + .panel-body { border-top: 1px solid #ddd; }
.panel > .table > tbody:first-child > tr:first-child th,
.panel > .table > tbody:first-child > tr:first-child td { border-top: 0; }

.panel > .table-bordered,
.panel > .table-responsive > .table-bordered { border: 0; }
.panel > .table-bordered > thead > tr > th:first-child,
.panel > .table-bordered > thead > tr > td:first-child,
.panel > .table-bordered > tbody > tr > th:first-child,
.panel > .table-bordered > tbody > tr > td:first-child,
.panel > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-bordered > tfoot > tr > td:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:first-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:first-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:first-child { border-left: 0; }
.panel > .table-bordered > thead > tr > th:last-child,
.panel > .table-bordered > thead > tr > td:last-child,
.panel > .table-bordered > tbody > tr > th:last-child,
.panel > .table-bordered > tbody > tr > td:last-child,
.panel > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-bordered > tfoot > tr > td:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > th:last-child,
.panel > .table-responsive > .table-bordered > thead > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tbody > tr > td:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > th:last-child,
.panel > .table-responsive > .table-bordered > tfoot > tr > td:last-child { border-right: 0; }
.panel > .table-bordered > thead > tr:first-child > td,
.panel > .table-bordered > thead > tr:first-child > th,
.panel > .table-bordered > tbody > tr:first-child > td,
.panel > .table-bordered > tbody > tr:first-child > th,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > td,
.panel > .table-responsive > .table-bordered > thead > tr:first-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:first-child > th { border-bottom: 0; }
.panel > .table-bordered > tbody > tr:last-child > td,
.panel > .table-bordered > tbody > tr:last-child > th,
.panel > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-bordered > tfoot > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tbody > tr:last-child > th,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > td,
.panel > .table-responsive > .table-bordered > tfoot > tr:last-child > th { border-bottom: 0; }
.panel > .table-responsive { margin-bottom: 0; border: 0; }

/* Accordion / panel-group */
.panel-group { margin-bottom: 20px; }
.panel-group .panel { margin-bottom: 0; border-radius: 4px; }
.panel-group .panel + .panel { margin-top: 5px; }
.panel-group .panel-heading { border-bottom: 0; }
.panel-group .panel-heading + .panel-collapse > .panel-body,
.panel-group .panel-heading + .panel-collapse > .list-group { border-top: 1px solid #ddd; }
.panel-group .panel-footer { border-top: 0; }
.panel-group .panel-footer + .panel-collapse .panel-body { border-bottom: 1px solid #ddd; }
.panel-collapse { border: 0; }

/* Contextual variants — compiled from .panel-variant() mixin */

/* default */
.panel-default { border-color: #ddd; }
.panel-default > .panel-heading { color: #333; background-color: #f5f5f5; border-color: #ddd; }
.panel-default > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ddd; }
.panel-default > .panel-heading .badge { color: #f5f5f5; background-color: #333; }
.panel-default > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ddd; }

/* primary */
.panel-primary { border-color: #337ab7; }
.panel-primary > .panel-heading { color: #fff; background-color: #337ab7; border-color: #337ab7; }
.panel-primary > .panel-heading + .panel-collapse > .panel-body { border-top-color: #337ab7; }
.panel-primary > .panel-heading .badge { color: #337ab7; background-color: #fff; }
.panel-primary > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #337ab7; }

/* success */
.panel-success { border-color: #d6e9c6; }
.panel-success > .panel-heading { color: #3c763d; background-color: #dff0d8; border-color: #d6e9c6; }
.panel-success > .panel-heading + .panel-collapse > .panel-body { border-top-color: #d6e9c6; }
.panel-success > .panel-heading .badge { color: #dff0d8; background-color: #3c763d; }
.panel-success > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #d6e9c6; }

/* info */
.panel-info { border-color: #bce8f1; }
.panel-info > .panel-heading { color: #31708f; background-color: #d9edf7; border-color: #bce8f1; }
.panel-info > .panel-heading + .panel-collapse > .panel-body { border-top-color: #bce8f1; }
.panel-info > .panel-heading .badge { color: #d9edf7; background-color: #31708f; }
.panel-info > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #bce8f1; }

/* warning */
.panel-warning { border-color: #faebcc; }
.panel-warning > .panel-heading { color: #8a6d3b; background-color: #fcf8e3; border-color: #faebcc; }
.panel-warning > .panel-heading + .panel-collapse > .panel-body { border-top-color: #faebcc; }
.panel-warning > .panel-heading .badge { color: #fcf8e3; background-color: #8a6d3b; }
.panel-warning > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #faebcc; }

/* danger */
.panel-danger { border-color: #ebccd1; }
.panel-danger > .panel-heading { color: #a94442; background-color: #f2dede; border-color: #ebccd1; }
.panel-danger > .panel-heading + .panel-collapse > .panel-body { border-top-color: #ebccd1; }
.panel-danger > .panel-heading .badge { color: #f2dede; background-color: #a94442; }
.panel-danger > .panel-footer + .panel-collapse > .panel-body { border-bottom-color: #ebccd1; }

/* ----------------------------------------------------------
   NAVBAR — Bootstrap 3 completo (compilado desde navbars.less)
   stylelint-disable selector-max-type, selector-max-compound-selectors,
                     selector-max-combinators, selector-max-class,
                     declaration-no-important, selector-no-qualifying-type
   ---------------------------------------------------------- */

/* Base wrapper */
.navbar {
  position: relative;
  min-height: 50px;
  margin-bottom: 20px;
  border: 1px solid transparent;
}
.navbar::before, .navbar::after { display: table; content: " "; }
.navbar::after { clear: both; }
@media (min-width: 768px) {
  .navbar { border-radius: 4px; }
}

/* navbar-header */
.navbar-header::before, .navbar-header::after { display: table; content: " "; }
.navbar-header::after { clear: both; }
@media (min-width: 768px) {
  .navbar-header { float: left; }
}

/* navbar-collapse */
.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);
  -webkit-overflow-scrolling: touch;
}
.navbar-collapse::before, .navbar-collapse::after { display: table; content: " "; }
.navbar-collapse::after { clear: both; }
.navbar-collapse.in { overflow-y: auto; }

@media (min-width: 768px) {
  .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;
  }
  .navbar-collapse.in { overflow-y: visible; }
  .navbar-fixed-top .navbar-collapse,
  .navbar-static-top .navbar-collapse,
  .navbar-fixed-bottom .navbar-collapse {
    padding-right: 0;
    padding-left: 0;
  }
  /* B5 compat: también mostrar con display flex en desktop */
  .navbar-collapse,
  .navbar-collapse.collapse {
    display: flex !important;
    flex-basis: auto;
    align-items: center;
  }
}

/* Fixed navbars */
.navbar-fixed-top,
.navbar-fixed-bottom {
  position: fixed;
  right: 0;
  left: 0;
  z-index: 1030;
}
.navbar-fixed-top .navbar-collapse,
.navbar-fixed-bottom .navbar-collapse { max-height: 340px; }
@media (max-device-width: 480px) and (orientation: landscape) {
  .navbar-fixed-top .navbar-collapse,
  .navbar-fixed-bottom .navbar-collapse { max-height: 200px; }
}
@media (min-width: 768px) {
  .navbar-fixed-top,
  .navbar-fixed-bottom { border-radius: 0; }
}
.navbar-fixed-top { top: 0; border-width: 0 0 1px; }
.navbar-fixed-bottom { bottom: 0; margin-bottom: 0; border-width: 1px 0 0; }

/* Static top */
.navbar-static-top { z-index: 1000; border-width: 0 0 1px; }
@media (min-width: 768px) { .navbar-static-top { border-radius: 0; } }

/* Container margins */
.container > .navbar-header,
.container > .navbar-collapse,
.container-fluid > .navbar-header,
.container-fluid > .navbar-collapse {
  margin-right: -15px;
  margin-left: -15px;
}
@media (min-width: 768px) {
  .container > .navbar-header,
  .container > .navbar-collapse,
  .container-fluid > .navbar-header,
  .container-fluid > .navbar-collapse {
    margin-right: 0;
    margin-left: 0;
  }
}

/* Brand */
.navbar-brand {
  float: left;
  height: 50px;
  padding: 15px 15px;
  font-size: 18px;
  line-height: 20px;
}
.navbar-brand:hover,
.navbar-brand:focus { text-decoration: none; }
.navbar-brand > img { display: block; }
@media (min-width: 768px) {
  .navbar > .container .navbar-brand,
  .navbar > .container-fluid .navbar-brand { margin-left: -15px; }
}

/* Toggle — mantiene .navbar-toggle y .navbar-toggler */
.navbar-toggle,
.navbar-toggler {
  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;
  cursor: pointer;
}
.navbar-toggle:focus,
.navbar-toggler:focus { outline: 0; }
.navbar-toggle .icon-bar,
.navbar-toggler .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
}
.navbar-toggle .icon-bar + .icon-bar,
.navbar-toggler .icon-bar + .icon-bar { margin-top: 4px; }
@media (min-width: 768px) {
  .navbar-toggle,
  .navbar-toggler { display: none; }
}

/* Navbar nav */
.navbar-nav {
  margin: 7.5px -15px;
}
.navbar-nav > li > a {
  padding-top: 10px;
  padding-bottom: 10px;
  line-height: 20px;
}
@media (max-width: 767px) {
  .navbar-nav .open .dropdown-menu {
    position: static;
    float: none;
    width: auto;
    margin-top: 0;
    background-color: transparent;
    border: 0;
    box-shadow: none;
  }
  .navbar-nav .open .dropdown-menu > li > a,
  .navbar-nav .open .dropdown-menu .dropdown-header { padding: 5px 15px 5px 25px; }
  .navbar-nav .open .dropdown-menu > li > a { line-height: 20px; }
  .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-nav .open .dropdown-menu > li > a:focus { background-image: none; }
}
@media (min-width: 768px) {
  .navbar-nav { float: left; margin: 0; }
  .navbar-nav > li { float: left; }
  .navbar-nav > li > a { padding-top: 15px; padding-bottom: 15px; }
}

/* Navbar form */
.navbar-form {
  padding: 10px 15px;
  margin-right: -15px;
  margin-left: -15px;
  border-top: 1px solid transparent;
  border-bottom: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 1px 0 rgba(255,255,255,.1);
}
@media (max-width: 767px) {
  .navbar-form .form-group { margin-bottom: 5px; }
  .navbar-form .form-group:last-child { margin-bottom: 0; }
}
@media (min-width: 768px) {
  .navbar-form {
    width: auto;
    padding-top: 0;
    padding-bottom: 0;
    margin-right: 0;
    margin-left: 0;
    border: 0;
    box-shadow: none;
  }
  .navbar-form { margin-top: 8px; margin-bottom: 8px; }
}

/* Dropdown menus in navbars */
.navbar-nav > li > .dropdown-menu {
  margin-top: 0;
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.navbar-fixed-bottom .navbar-nav > li > .dropdown-menu {
  margin-bottom: 0;
  border-radius: 4px 4px 0 0;
}

/* Navbar btn */
.navbar-btn { margin-top: 8px; margin-bottom: 8px; }
.navbar-btn.btn-sm { margin-top: 10px; margin-bottom: 10px; }
.navbar-btn.btn-xs { margin-top: 14px; margin-bottom: 14px; }

/* Navbar text */
.navbar-text { margin-top: 15px; margin-bottom: 15px; }
@media (min-width: 768px) {
  .navbar-text { float: left; margin-right: 15px; margin-left: 15px; }
}

/* Alignment */
@media (min-width: 768px) {
  .navbar-left  { float: left !important; }
  .navbar-right { float: right !important; margin-right: -15px; }
  .navbar-right ~ .navbar-right { margin-right: 0; }
}

/* .open dropdown support */
.open > .dropdown-menu { display: block; }
.open > a { outline: 0; }

/* ==========================================================
   NAVBAR DEFAULT — compiled from .navbar-default variant
   ========================================================== */
.navbar-default {
  background-color: #f8f8f8;
  border-color: #e7e7e7;
}
.navbar-default .navbar-brand { color: #777; }
.navbar-default .navbar-brand:hover,
.navbar-default .navbar-brand:focus { color: #5e5e5e; background-color: transparent; }
.navbar-default .navbar-text { color: #777; }
.navbar-default .navbar-nav > li > a { color: #777; }
.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus { color: #333; background-color: transparent; }
.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus { color: #555; background-color: #e7e7e7; }
.navbar-default .navbar-nav > .disabled > a,
.navbar-default .navbar-nav > .disabled > a:hover,
.navbar-default .navbar-nav > .disabled > a:focus { color: #ccc; background-color: transparent; }
.navbar-default .navbar-nav > .open > a,
.navbar-default .navbar-nav > .show > a,
.navbar-default .navbar-nav > .open > a:hover,
.navbar-default .navbar-nav > .show > a:hover,
.navbar-default .navbar-nav > .open > a:focus,
.navbar-default .navbar-nav > .show > a:focus { color: #555; background-color: #e7e7e7; }
@media (max-width: 767px) {
  .navbar-default .navbar-nav .open .dropdown-menu > li > a { color: #777; }
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > li > a:focus { color: #333; background-color: transparent; }
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .active > a:focus { color: #555; background-color: #e7e7e7; }
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-default .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #ccc; background-color: transparent; }
}
.navbar-default .navbar-toggle,
.navbar-default .navbar-toggler { border-color: #ddd; }
.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus,
.navbar-default .navbar-toggler:hover,
.navbar-default .navbar-toggler:focus { background-color: #ddd; }
.navbar-default .navbar-toggle .icon-bar,
.navbar-default .navbar-toggler .icon-bar { background-color: #888; }
.navbar-default .navbar-collapse,
.navbar-default .navbar-form { border-color: #e7e7e7; }
.navbar-default .navbar-link { color: #777; }
.navbar-default .navbar-link:hover { color: #333; }
.navbar-default .btn-link { color: #777; }
.navbar-default .btn-link:hover,
.navbar-default .btn-link:focus { color: #333; }
.navbar-default .btn-link[disabled]:hover,
.navbar-default .btn-link[disabled]:focus,
fieldset[disabled] .navbar-default .btn-link:hover,
fieldset[disabled] .navbar-default .btn-link:focus { color: #ccc; }

/* ==========================================================
   NAVBAR INVERSE — compiled from .navbar-inverse variant
   ========================================================== */
.navbar-inverse {
  background-color: #222;
  border-color: #090909;
}
.navbar-inverse .navbar-brand { color: #9d9d9d; }
.navbar-inverse .navbar-brand:hover,
.navbar-inverse .navbar-brand:focus { color: #fff; background-color: transparent; }
.navbar-inverse .navbar-text { color: #9d9d9d; }
.navbar-inverse .navbar-nav > li > a { color: #9d9d9d; }
.navbar-inverse .navbar-nav > li > a:hover,
.navbar-inverse .navbar-nav > li > a:focus { color: #fff; background-color: transparent; }
.navbar-inverse .navbar-nav > .active > a,
.navbar-inverse .navbar-nav > .active > a:hover,
.navbar-inverse .navbar-nav > .active > a:focus { color: #fff; background-color: #090909; }
.navbar-inverse .navbar-nav > .disabled > a,
.navbar-inverse .navbar-nav > .disabled > a:hover,
.navbar-inverse .navbar-nav > .disabled > a:focus { color: #444; background-color: transparent; }
.navbar-inverse .navbar-nav > .open > a,
.navbar-inverse .navbar-nav > .show > a,
.navbar-inverse .navbar-nav > .open > a:hover,
.navbar-inverse .navbar-nav > .show > a:hover,
.navbar-inverse .navbar-nav > .open > a:focus,
.navbar-inverse .navbar-nav > .show > a:focus { color: #fff; background-color: #090909; }
@media (max-width: 767px) {
  .navbar-inverse .navbar-nav .open .dropdown-menu > .dropdown-header { border-color: #090909; }
  .navbar-inverse .navbar-nav .open .dropdown-menu .divider { background-color: #090909; }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a { color: #9d9d9d; }
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > li > a:focus { color: #fff; background-color: transparent; }
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .active > a:focus { color: #fff; background-color: #090909; }
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:hover,
  .navbar-inverse .navbar-nav .open .dropdown-menu > .disabled > a:focus { color: #444; background-color: transparent; }
}
.navbar-inverse .navbar-toggle,
.navbar-inverse .navbar-toggler { border-color: #333; }
.navbar-inverse .navbar-toggle:hover,
.navbar-inverse .navbar-toggle:focus,
.navbar-inverse .navbar-toggler:hover,
.navbar-inverse .navbar-toggler:focus { background-color: #333; }
.navbar-inverse .navbar-toggle .icon-bar,
.navbar-inverse .navbar-toggler .icon-bar { background-color: #fff; }
.navbar-inverse .navbar-collapse,
.navbar-inverse .navbar-form { border-color: #101010; }
.navbar-inverse .navbar-link { color: #9d9d9d; }
.navbar-inverse .navbar-link:hover { color: #fff; }
.navbar-inverse .btn-link { color: #9d9d9d; }
.navbar-inverse .btn-link:hover,
.navbar-inverse .btn-link:focus { color: #fff; }
.navbar-inverse .btn-link[disabled]:hover,
.navbar-inverse .btn-link[disabled]:focus,
fieldset[disabled] .navbar-inverse .btn-link:hover,
fieldset[disabled] .navbar-inverse .btn-link:focus { color: #444; }

/* ----------------------------------------------------------
   FORMULARIOS B3 — form-group, input-group, form-control
   ---------------------------------------------------------- */
.form-group { margin-bottom: 15px; }
.form-control {
  display: block; width: 100%; height: 34px; padding: 6px 12px;
  font-size: 14px; line-height: 1.42857143; color: #555;
  background-color: #fff; background-image: none;
  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);
}

/* ========== PAGE HEADER ========== */
.page-header {
  padding-bottom: 9px;
  margin: 40px 0 20px;
  border-bottom: 1px solid #eeeeee;
}

/* ========== INPUT SIZES ========== */
.input-sm {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
select.input-sm {
  height: 30px;
  line-height: 30px;
}
textarea.input-sm,
select[multiple].input-sm {
  height: auto;
}
.form-group-sm .form-control {
  height: 30px;
  padding: 5px 10px;
  font-size: 12px;
  line-height: 1.5;
  border-radius: 3px;
}
.form-group-sm select.form-control {
  height: 30px;
  line-height: 30px;
}
.form-group-sm textarea.form-control,
.form-group-sm select[multiple].form-control {
  height: auto;
}
.form-group-sm .form-control-static {
  height: 30px;
  min-height: 32px;
  padding: 6px 10px;
  font-size: 12px;
  line-height: 1.5;
}
.input-lg {
  height: 46px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}
select.input-lg {
  height: 46px;
  line-height: 46px;
}
textarea.input-lg,
select[multiple].input-lg {
  height: auto;
}
.form-group-lg .form-control {
  height: 46px;
  padding: 10px 16px;
  font-size: 18px;
  line-height: 1.3333333;
  border-radius: 6px;
}
.form-group-lg select.form-control {
  height: 46px;
  line-height: 46px;
}
.form-group-lg textarea.form-control,
.form-group-lg select[multiple].form-control {
  height: auto;
}
.form-group-lg .form-control-static {
  height: 46px;
  min-height: 38px;
  padding: 11px 16px;
  font-size: 18px;
  line-height: 1.3333333;
}

/* ========== BTN-GROUP-VERTICAL / BTN-TOOLBAR ========== */
.btn-group,
.btn-group-vertical {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}
.btn-group > .btn,
.btn-group-vertical > .btn {
  position: relative;
  float: left;
}
.btn-group > .btn:hover,
.btn-group-vertical > .btn:hover,
.btn-group > .btn:focus,
.btn-group-vertical > .btn:focus,
.btn-group > .btn:active,
.btn-group-vertical > .btn:active,
.btn-group > .btn.active,
.btn-group-vertical > .btn.active {
  z-index: 2;
}
.btn-group .btn + .btn,
.btn-group .btn + .btn-group,
.btn-group .btn-group + .btn,
.btn-group .btn-group + .btn-group {
  margin-left: -1px;
}
.btn-toolbar {
  margin-left: -5px;
}
.btn-toolbar .btn,
.btn-toolbar .btn-group,
.btn-toolbar .input-group {
  float: left;
}
.btn-toolbar > .btn,
.btn-toolbar > .btn-group,
.btn-toolbar > .input-group {
  margin-left: 5px;
}
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
  border-radius: 0;
}
.btn-group > .btn:first-child {
  margin-left: 0;
}
.btn-group > .btn:first-child:not(:last-child):not(.dropdown-toggle) {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-group > .btn:last-child:not(:first-child),
.btn-group > .dropdown-toggle:not(:first-child) {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group > .btn-group {
  float: left;
}
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}
.btn-group > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group .dropdown-toggle:active,
.btn-group.open .dropdown-toggle {
  outline: 0;
}
.btn-group > .btn + .dropdown-toggle {
  padding-right: 8px;
  padding-left: 8px;
}
.btn-group > .btn-lg + .dropdown-toggle {
  padding-right: 12px;
  padding-left: 12px;
}
.btn-group.open .dropdown-toggle {
  -webkit-box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
  box-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
}
.btn-group.open .dropdown-toggle.btn-link {
  -webkit-box-shadow: none;
  box-shadow: none;
}
.btn .caret {
  margin-left: 0;
}
.btn-lg .caret {
  border-width: 5px 5px 0;
  border-bottom-width: 0;
}
.dropup .btn-lg .caret {
  border-width: 0 5px 5px;
}
.btn-group-vertical > .btn,
.btn-group-vertical > .btn-group,
.btn-group-vertical > .btn-group > .btn {
  display: block;
  float: none;
  width: 100%;
  max-width: 100%;
}
.btn-group-vertical > .btn-group > .btn {
  float: none;
}
.btn-group-vertical > .btn + .btn,
.btn-group-vertical > .btn + .btn-group,
.btn-group-vertical > .btn-group + .btn,
.btn-group-vertical > .btn-group + .btn-group {
  margin-top: -1px;
  margin-left: 0;
}
.btn-group-vertical > .btn:not(:first-child):not(:last-child) {
  border-radius: 0;
}
.btn-group-vertical > .btn:first-child:not(:last-child) {
  border-top-left-radius: 4px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn:last-child:not(:first-child) {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
  border-bottom-right-radius: 4px;
  border-bottom-left-radius: 4px;
}
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
  border-radius: 0;
}
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .btn:last-child,
.btn-group-vertical > .btn-group:first-child:not(:last-child) > .dropdown-toggle {
  border-bottom-right-radius: 0;
  border-bottom-left-radius: 0;
}
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
  border-top-left-radius: 0;
  border-top-right-radius: 0;
}
.form-inline .form-control { display: inline-block; width: auto; vertical-align: middle; }

.input-group { position: relative; display: flex; align-items: stretch; width: 100%; }
.input-group .form-control { position: relative; flex: 1 1 auto; width: 1%; min-width: 0; }
.input-group-addon, .input-group-btn {
  display: flex; align-items: center; padding: 6px 12px;
  font-size: 14px; font-weight: 400; line-height: 1; color: #555;
  text-align: center; white-space: nowrap;
  background-color: #eee; border: 1px solid #ccc; border-radius: 4px;
}
.input-group-addon:first-child, .input-group-btn:first-child > .btn { border-right: 0; border-radius: 4px 0 0 4px; }
.input-group-addon:last-child,  .input-group-btn:last-child  > .btn { border-left:  0; border-radius: 0 4px 4px 0; }
.input-group-lg > .form-control,
.input-group-lg > .input-group-addon,
.input-group-lg > .input-group-btn > .btn { height: 46px; padding: 10px 16px; font-size: 18px; border-radius: 6px; }

/* ----------------------------------------------------------
   BOTONES B3 — btn-xs, btn-sm, btn-lg, btn-group
   ---------------------------------------------------------- */
.btn-xs { padding: 1px 5px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-sm { padding: 5px 10px; font-size: 12px; line-height: 1.5; border-radius: 3px; }
.btn-lg { padding: 10px 16px; font-size: 18px; line-height: 1.33333; border-radius: 6px; }
.btn-group { position: relative; display: inline-flex; vertical-align: middle; }
.btn-group > .btn { position: relative; flex: 1 1 auto; }
.btn-group > .btn:not(:first-child) { margin-left: -1px; border-top-left-radius: 0; border-bottom-left-radius: 0; }
.btn-group > .btn:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.btn-block { display: block; width: 100%; }
.btn-block + .btn-block { margin-top: 5px; }

/* ----------------------------------------------------------
   ALERTS B3 — alert-*, alert-dismissible, close
   ---------------------------------------------------------- */
.alert { padding: 15px; margin-bottom: 20px; border: 1px solid transparent; border-radius: 4px; }
.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; }
.alert-dismissible { padding-right: 35px; }
.alert-dismissible .close { position: relative; top: -2px; right: -21px; color: inherit; }
.close {
  float: right; font-size: 21px; font-weight: 700; line-height: 1;
  color: #000; text-shadow: 0 1px 0 #fff; opacity: .2;
  background: transparent; border: 0; cursor: pointer; padding: 0;
}
.close:hover, .close:focus { color: #000; text-decoration: none; opacity: .5; }
.alert .close { margin-top: -2px; }

/* ----------------------------------------------------------
   RADIO / CHECKBOX INLINE B3
   ---------------------------------------------------------- */
.radio-inline, .checkbox-inline {
  position: relative; display: inline-block;
  padding-left: 20px; margin-bottom: 0;
  font-weight: 400; vertical-align: middle; cursor: pointer;
}
.radio-inline + .radio-inline,
.checkbox-inline + .checkbox-inline { margin-top: 0; margin-left: 10px; }
.radio, .checkbox { position: relative; display: block; margin-top: 10px; margin-bottom: 10px; }
.radio label, .checkbox label { min-height: 20px; padding-left: 20px; margin-bottom: 0; font-weight: 400; cursor: pointer; }
.radio input[type="radio"],
.checkbox input[type="checkbox"] { position: absolute; margin-left: -20px; }

/* ----------------------------------------------------------
   TABLE B3 — table-condensed, table-bordered, table-striped
   ---------------------------------------------------------- */
.table-condensed > thead > tr > th,
.table-condensed > thead > tr > td,
.table-condensed > tbody > tr > th,
.table-condensed > tbody > tr > td,
.table-condensed > tfoot > tr > th,
.table-condensed > tfoot > tr > td { padding: 5px; }

/* ----------------------------------------------------------
   NAVS — Bootstrap 3 completo (compilado desde navs.less)
   stylelint-disable selector-no-qualifying-type, selector-max-type
   ---------------------------------------------------------- */

/* Base .nav */
.nav {
  padding-left: 0;
  margin-bottom: 0;
  list-style: none;
}
.nav::before, .nav::after { display: table; content: " "; }
.nav::after { clear: both; }

.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; }

.nav > li.disabled > a { color: #777; }
.nav > li.disabled > a:hover,
.nav > li.disabled > a:focus {
  color: #777; text-decoration: none;
  cursor: not-allowed; background-color: transparent;
}

.nav .open > a,
.nav .open > a:hover,
.nav .open > a:focus { background-color: #eee; border-color: #337ab7; }

.nav .nav-divider {
  height: 1px; margin: 9px 0;
  overflow: hidden; background-color: #e5e5e5;
}

.nav > li > a > img { max-width: none; }

/* Tabs — .nav-tabs */
.nav-tabs { border-bottom: 1px solid #ddd; }
.nav-tabs > li { float: left; margin-bottom: -1px; }
.nav-tabs > li > a {
  margin-right: 2px;
  line-height: 1.42857143;
  border: 1px solid transparent;
  border-radius: 4px 4px 0 0;
}
.nav-tabs > li > a:hover {
  border-color: #eee #eee #ddd;
}
.nav-tabs > li.active > a,
.nav-tabs > li.active > a:hover,
.nav-tabs > li.active > a:focus {
  color: #555;
  cursor: default;
  background-color: #fff;
  border: 1px solid #ddd;
  border-bottom-color: transparent;
}

/* Tabs justified */
.nav-tabs.nav-justified { width: 100%; border-bottom: 0; }
.nav-tabs.nav-justified > li { float: none; }
.nav-tabs.nav-justified > li > a { margin-bottom: 5px; text-align: center; border-radius: 4px; margin-right: 0; }
.nav-tabs.nav-justified > .active > a,
.nav-tabs.nav-justified > .active > a:hover,
.nav-tabs.nav-justified > .active > a:focus { border: 1px solid #ddd; }
@media (min-width: 768px) {
  .nav-tabs.nav-justified > li { display: table-cell; width: 1%; }
  .nav-tabs.nav-justified > li > a { margin-bottom: 0; border-bottom: 1px solid #ddd; border-radius: 4px 4px 0 0; }
  .nav-tabs.nav-justified > .active > a,
  .nav-tabs.nav-justified > .active > a:hover,
  .nav-tabs.nav-justified > .active > a:focus { border-bottom-color: #fff; }
}

/* Dropdown inside nav-tabs */
.nav-tabs .dropdown-menu { margin-top: -1px; border-top-left-radius: 0; border-top-right-radius: 0; }

/* Pills — .nav-pills */
.nav-pills > li { float: left; }
.nav-pills > li > a { border-radius: 4px; }
.nav-pills > li + li { margin-left: 2px; }
.nav-pills > li.active > a,
.nav-pills > li.active > a:hover,
.nav-pills > li.active > a:focus { color: #fff; background-color: #337ab7; }

/* Stacked pills */
.nav-stacked > li { float: none; }
.nav-stacked > li + li { margin-top: 2px; margin-left: 0; }

/* Justified nav */
.nav-justified { width: 100%; }
.nav-justified > li { float: none; }
.nav-justified > li > a { margin-bottom: 5px; text-align: center; }
.nav-justified > .dropdown .dropdown-menu { top: auto; left: auto; }
@media (min-width: 768px) {
  .nav-justified > li { display: table-cell; width: 1%; }
  .nav-justified > li > a { margin-bottom: 0; }
}

/* Tab content & panes */
.tab-content > .tab-pane { display: none; }
.tab-content > .active { display: block; }
/* B3 usa .in + .active; B5 usa .show + .active — cubrimos ambos */
.tab-content > .tab-pane.active.show { display: block; }
.tab-content > .tab-pane.active.in  { display: block; }

/* ----------------------------------------------------------
   MODAL B3 — ajustes para que funcione con Bootstrap 5
   Bootstrap 5 mantiene estas clases; solo necesitan data-bs-*
   ---------------------------------------------------------- */
.modal-backdrop.in { opacity: .5; }
.fade.in { opacity: 1; }
/* B3 .in equivale a B5 .show para modales */
.modal.in { display: block; }

/* ----------------------------------------------------------
   COLLAPSE B3 — .in = abierto (B5 usa .show)
   ---------------------------------------------------------- */
.collapse.in { display: block; }
.collapsing { height: 0; overflow: hidden; transition: height .35s ease; }

/* ----------------------------------------------------------
   NAVBAR COLLAPSE — visible en desktop sin navbar-expand-*
   ---------------------------------------------------------- */
.navbar { display: flex; align-items: center; flex-wrap: wrap; padding: 0 15px; }
@media (min-width: 768px) {
  .navbar-collapse.in,
  .navbar-collapse      { display: flex !important; flex-grow: 1; align-items: center; }
}

/* ----------------------------------------------------------
   DROPDOWN — .open equivale a .show en B5
   ---------------------------------------------------------- */
.dropdown.open .dropdown-menu,
.dropdown.show .dropdown-menu { display: block; }

/* ----------------------------------------------------------
   MISCELÁNEOS
   ---------------------------------------------------------- */
.text-muted    { color: #777 !important; }
.small, small  { font-size: 85%; }
.thumbnail     { display: block; padding: 4px; margin-bottom: 20px; line-height: 1.42857143; background-color: #fff; border: 1px solid #ddd; border-radius: 4px; }
.breadcrumb    { padding: 8px 15px; margin-bottom: 20px; list-style: none; background-color: #f5f5f5; border-radius: 4px; }
.breadcrumb > li + li::before { padding: 0 5px; color: #ccc; content: "/\00a0"; }
.breadcrumb > .active { color: #777; }
.sr-only       { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.clearfix::after { display: block; content: ""; clear: both; }

/* ==========================================================
   Bootstrap 3 Utility classes — retrocompatibilidad completa
   Fuente: bootstrap/less/utilities.less (v3.x)
   ========================================================== */

/* stylelint-disable declaration-no-important */

/* Floats */
.clearfix { *zoom: 1; }
.clearfix::before, .clearfix::after { display: table; content: " "; }
.clearfix::after { clear: both; }
.center-block  { display: block !important; margin-left: auto !important; margin-right: auto !important; }
.pull-right    { float: right !important; }
.pull-left     { float: left !important; }

/* Toggling content */
.hide          { display: none !important; }
.show          { display: block !important; }
.invisible     { visibility: hidden; }
.hidden        { display: none !important; }
.text-hide     { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; }
