/* Compatibilidad básica de clases Bootstrap 3 sobre Bootstrap 4 */

/* Grid XS (BS3) */
[class*="col-xs-"] {
  position: relative;
  width: 100%;
  padding-right: 15px;
  padding-left: 15px;
}
.col-xs-1 { flex: 0 0 8.333333%; max-width: 8.333333%; }
.col-xs-2 { flex: 0 0 16.666667%; max-width: 16.666667%; }
.col-xs-3 { flex: 0 0 25%; max-width: 25%; }
.col-xs-4 { flex: 0 0 33.333333%; max-width: 33.333333%; }
.col-xs-5 { flex: 0 0 41.666667%; max-width: 41.666667%; }
.col-xs-6 { flex: 0 0 50%; max-width: 50%; }
.col-xs-7 { flex: 0 0 58.333333%; max-width: 58.333333%; }
.col-xs-8 { flex: 0 0 66.666667%; max-width: 66.666667%; }
.col-xs-9 { flex: 0 0 75%; max-width: 75%; }
.col-xs-10 { flex: 0 0 83.333333%; max-width: 83.333333%; }
.col-xs-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
.col-xs-12 { flex: 0 0 100%; max-width: 100%; }

/* Helpers BS3 */
.help-block {
  display: block;
  margin-top: .25rem;
  color: #6c757d;
}
.pull-left { float: left !important; }
.pull-right { float: right !important; }
.center-block {
  display: block;
  margin-right: auto;
  margin-left: auto;
}
.img-responsive {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Visibilidad BS3 */
.visible-xs,
.visible-xs-block,
.visible-xs-inline,
.visible-xs-inline-block { display: none !important; }
@media (max-width: 767.98px) {
  .hidden-xs { display: none !important; }
  .visible-xs-block { display: block !important; }
  .visible-xs-inline { display: inline !important; }
  .visible-xs-inline-block { display: inline-block !important; }
  .visible-xs { display: block !important; }
}

/* Botón por defecto BS3 */
.btn-default {
  color: #212529;
  background-color: #f8f9fa;
  border-color: #ced4da;
}
.btn-default:hover,
.btn-default:focus {
  color: #212529;
  background-color: #e2e6ea;
  border-color: #dae0e5;
}

/* Input group addon BS3 */
.input-group-addon {
  display: flex;
  align-items: center;
  padding: .375rem .75rem;
  margin-bottom: 0;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  color: #495057;
  text-align: center;
  white-space: nowrap;
  background-color: #e9ecef;
  border: 1px solid #ced4da;
  border-radius: .25rem;
}
.input-group .input-group-addon:first-child {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}
.input-group .input-group-addon + .form-control {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

/* Paneles BS3 */
.panel {
  margin-bottom: 1rem;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, .125);
  border-radius: .25rem;
}
.panel-heading {
  padding: .75rem 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, .125);
}
.panel-title { margin: 0; font-size: 1.1rem; }
.panel-body { padding: 1rem; }
.panel-footer {
  padding: .75rem 1rem;
  border-top: 1px solid rgba(0, 0, 0, .125);
  background-color: #f8f9fa;
}
.panel-default > .panel-heading {
  background-color: #f8f9fa;
  color: #212529;
}
.panel-primary > .panel-heading {
  background-color: #007bff;
  color: #fff;
}
.panel-success > .panel-heading {
  background-color: #28a745;
  color: #fff;
}
.panel-warning > .panel-heading {
  background-color: #ffc107;
  color: #212529;
}
.panel-danger > .panel-heading {
  background-color: #dc3545;
  color: #fff;
}

/* Navbar toggle BS3 sobre BS4 */
.navbar-toggle {
  padding: .25rem .75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid rgba(0, 0, 0, .2);
  border-radius: .25rem;
}
.navbar-toggle .icon-bar {
  display: block;
  width: 22px;
  height: 2px;
  border-radius: 1px;
  background-color: #333;
}
.navbar-toggle .icon-bar + .icon-bar { margin-top: 4px; }

/* Glyphicons (subset usado por el proyecto) */
@font-face {
  font-family: 'Glyphicons Halflings';
  src: url('../fonts/glyphicons-halflings-regular.eot');
  src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'),
       url('../fonts/glyphicons-halflings-regular.woff2') format('woff2'),
       url('../fonts/glyphicons-halflings-regular.woff') format('woff'),
       url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'),
       url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}
.glyphicon {
  position: relative;
  top: 1px;
  display: inline-block;
  font-family: 'Glyphicons Halflings';
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
.glyphicon-plus:before { content: "\2b"; }
.glyphicon-trash:before { content: "\e020"; }
.glyphicon-list-alt:before { content: "\e032"; }
.glyphicon-credit-card:before { content: "\e025"; }
.glyphicon-user:before { content: "\e008"; }
.glyphicon-envelope:before { content: "\2709"; }
.glyphicon-phone:before { content: "\e145"; }
.glyphicon-pencil:before { content: "\270f"; }
.glyphicon-remove:before { content: "\e014"; }
.glyphicon-lock:before { content: "\e033"; }
.glyphicon-edit:before { content: "\e065"; }
.glyphicon-share:before { content: "\e095"; }
.glyphicon-minus:before { content: "\2212"; }
.glyphicon-arrow-left:before { content: "\e091"; }
.glyphicon-hdd:before { content: "\e172"; }
.glyphicon-resize-full:before { content: "\e096"; }
