/* ==========================================================================
   base.css — sustituye a Bootstrap 4.4.1
   Solo la rejilla, la barra de navegación y las utilidades que la página usa.
   Bootstrap eran 159 KB para unas 40 clases, y está sin soporte desde 2019.
   Breakpoint único: lg = 992px, el mismo que usaba Bootstrap.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Reinicio (equivalente al «Reboot» de Bootstrap)
   -------------------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html {
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
}

body {
    margin: 0;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #212529;
    background-color: #fff;
    text-align: left;
}

h1, h2, h3, h4, h5, h6 {
    margin-top: 0;
    margin-bottom: .5rem;
}

p { margin-top: 0; margin-bottom: 1rem; }

ul, ol { margin-top: 0; margin-bottom: 1rem; padding-left: 2rem; }

address {
    margin-bottom: 1rem;
    font-style: normal;
    line-height: inherit;
}

a { color: inherit; background-color: transparent; }

img, svg { vertical-align: middle; border-style: none; }

button {
    margin: 0;
    font: inherit;
    color: inherit;
    overflow: visible;
    text-transform: none;
    -webkit-appearance: button;
    cursor: pointer;
}

button::-moz-focus-inner { padding: 0; border-style: none; }

[hidden] { display: none !important; }


/* --------------------------------------------------------------------------
   2. Rejilla
   -------------------------------------------------------------------------- */

.container {
    width: 100%;
    max-width: 1140px;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.container-fluid {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    padding-right: 15px;
    padding-left: 15px;
}

.row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -15px;
    margin-left: -15px;
}

[class*="col-"] {
    position: relative;
    width: 100%;
    padding-right: 15px;
    padding-left: 15px;
}

.justify-content-center { justify-content: center; }

@media (min-width: 992px) {
    .col-lg-6  { flex: 0 0 50%;        max-width: 50%; }
    .col-lg-8  { flex: 0 0 66.666667%; max-width: 66.666667%; }
    .col-lg-11 { flex: 0 0 91.666667%; max-width: 91.666667%; }
    .col-lg-12 { flex: 0 0 100%;       max-width: 100%; }
    .offset-lg-3 { margin-left: 25%; }
    .float-lg-right { float: right; }
}


/* --------------------------------------------------------------------------
   3. Barra de navegación
   -------------------------------------------------------------------------- */

.navbar {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.navbar > .container,
.navbar > .container-fluid {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
}

.fixed-top {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 1030;
}

.navbar-brand {
    display: inline-block;
    margin-right: 1rem;
    white-space: nowrap;
}

.navbar-nav {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.navbar-nav .nav-link { display: block; }

.navbar-collapse {
    flex-basis: 100%;
    flex-grow: 1;
    align-items: center;
}

.navbar-toggler {
    padding: .25rem .75rem;
    background-color: transparent;
    border: 1px solid transparent;
    line-height: 1;
}

/* El desplegable lo abre y cierra js/app.js añadiendo o quitando .show */
.collapse:not(.show) { display: none; }

.ml-auto { margin-left: auto; }

@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-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-lg .navbar-toggler { display: none; }
}


/* --------------------------------------------------------------------------
   4. Utilidades
   -------------------------------------------------------------------------- */

.text-center { text-align: center; }
.text-right  { text-align: right; }

.text-white  { color: #fff !important; }
.text-muted  { color: #6c757d !important; }

.bg-white { background-color: #fff !important; }
.bg-light { background-color: #f8f9fa !important; }
.bg-dark  { background-color: #343a40 !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }

.img-fluid { max-width: 100%; height: auto; }

.align-bottom { vertical-align: bottom !important; }
