/*!
 * Subconjunto de Bootstrap 5.3.0 extraído a mano.
 * Contiene únicamente las reglas de Bootstrap que este sitio
 * realmente usa (contenedor, navbar, menú colapsable y un par de
 * botones/utilidades). El diseño y el comportamiento visual quedan
 * idénticos a como estaban cargando el bootstrap.min.css completo
 * por CDN; el resto de las reglas de Bootstrap (grid completo,
 * formularios, modales, tarjetas, tooltips, etc.) no se usaban acá
 * y se quitaron.
 * Fuente original: Bootstrap v5.3.0 (https://getbootstrap.com/)
 * Copyright 2011-2023 The Bootstrap Authors - Licencia MIT
 */

/* Reboot mínimo: todo el resto del CSS del sitio asume box-sizing:
   border-box (lo pone Bootstrap globalmente). */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Reboot: Bootstrap le pone cursor de "manito" a los botones (el
   navegador por defecto les deja flecha). Sin esto, botones como el
   de "+" o el del lápiz se ven como si no fueran clickeables. */
button:not(:disabled),
[type="button"]:not(:disabled),
[type="reset"]:not(:disabled),
[type="submit"]:not(:disabled) {
  cursor: pointer;
}

/* ---------- .container ---------- */
.container {
  width: 100%;
  padding-right: 0.75rem;
  padding-left: 0.75rem;
  margin-right: auto;
  margin-left: auto;
}
@media (min-width: 576px) {
  .container { max-width: 540px; }
}
@media (min-width: 768px) {
  .container { max-width: 720px; }
}
@media (min-width: 992px) {
  .container { max-width: 960px; }
}
@media (min-width: 1200px) {
  .container { max-width: 1140px; }
}
@media (min-width: 1400px) {
  .container { max-width: 1320px; }
}

/* ---------- Navbar ---------- */
.navbar {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.navbar > .container {
  display: flex;
  flex-wrap: inherit;
  align-items: center;
  justify-content: space-between;
}
.navbar-brand {
  padding-top: 0.3125rem;
  padding-bottom: 0.3125rem;
  margin-right: 1rem;
  font-size: 1.25rem;
  text-decoration: none;
  white-space: nowrap;
}
.navbar-nav {
  display: flex;
  flex-direction: column;
  padding-left: 0;
  /* Reboot de <ul>: el subconjunto de Bootstrap no trae el reboot completo,
     así que el <ul> conservaba el margen superior por defecto del navegador
     (1em = 16px). En escritorio eso empujaba los links del header ~8px más
     abajo que el logo y los botones, e inflaba el header. */
  margin-top: 0;
  margin-bottom: 0;
  list-style: none;
}
.navbar-nav .nav-link {
  padding-right: 0;
  padding-left: 0;
}
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  color: #0d6efd;
  text-decoration: none;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
    border-color .15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .nav-link { transition: none; }
}
.navbar-toggler {
  padding: 0.25rem 0.75rem;
  font-size: 1.25rem;
  line-height: 1;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: box-shadow .15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .navbar-toggler { transition: none; }
}
.navbar-toggler:hover {
  text-decoration: none;
}
.navbar-toggler:focus {
  text-decoration: none;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.navbar-collapse {
  flex-basis: 100%;
  flex-grow: 1;
  align-items: center;
}

@media (min-width: 992px) {
  .navbar-expand-lg {
    flex-wrap: nowrap;
    justify-content: flex-start;
  }
  .navbar-expand-lg .navbar-nav {
    flex-direction: row;
  }
  .navbar-expand-lg .navbar-nav .nav-link {
    padding-right: 0.5rem;
    padding-left: 0.5rem;
  }
  .navbar-expand-lg .navbar-collapse {
    display: flex !important;
    flex-basis: auto;
  }
  .navbar-expand-lg .navbar-toggler {
    display: none;
  }
}

/* ---------- Collapse (menú móvil desplegable) ---------- */
.collapse:not(.show) {
  display: none;
}
.collapsing {
  height: 0;
  overflow: hidden;
  transition: height 0.35s ease;
}
@media (prefers-reduced-motion: reduce) {
  .collapsing { transition: none; }
}

/* ---------- Botones (.btn / .btn-primary / .btn-sm) ---------- */
.btn {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  user-select: none;
  background-color: transparent;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out,
    border-color .15s ease-in-out, box-shadow .15s ease-in-out;
}
@media (prefers-reduced-motion: reduce) {
  .btn { transition: none; }
}
.btn:hover {
  text-decoration: none;
}
.btn-primary {
  color: #fff;
  background-color: #0d6efd;
  border-color: #0d6efd;
}
.btn-primary:hover {
  color: #fff;
  background-color: #0b5ed7;
  border-color: #0a58ca;
}
.btn-sm {
  padding: 0.25rem 0.5rem;
  font-size: 0.875rem;
  border-radius: 0.2rem;
}

/* ---------- Utilidades puntuales usadas en el HTML ---------- */
.d-flex { display: flex !important; }
.align-items-center { align-items: center !important; }
.gap-2 { gap: 0.5rem !important; }
.ms-auto { margin-left: auto !important; }
.text-decoration-none { text-decoration: none !important; }
.mb-3 { margin-bottom: 1rem !important; }
.me-1 { margin-right: 0.25rem !important; }
@media (min-width: 992px) {
  .ms-lg-4 { margin-left: 1.5rem !important; }
}
