/* ==========================================================================
   base.css - cimientos propios de eVale ADM

   Reemplaza el subconjunto de Bootstrap 4 que el marcado de views/ usaba:
   la rejilla de 12 columnas, las utilidades de display, flex, espaciado,
   texto, color y borde. Se conservan los MISMOS nombres de clase, de modo
   que las vistas no se tocan.

   Lo que no se reimplementa, porque el marcado nunca lo usaba, se queda
   fuera a proposito: dropdowns, carousel, collapse, cards completas,
   paginacion, badges, tooltips de Bootstrap (los nuestros van en bio.js).

   Orden del archivo:
     1. Variables
     2. Tipografia local (public/fonts, sin Google Fonts)
     3. Reset
     4. Rejilla
     5. Display y flex
     6. Espaciado
     7. Texto y tipos de letra
     8. Color de texto, fondo y borde
     9. Redondeos, sombras y varios
   ========================================================================== */

/* ------------------------------------------------------------------ 1. Variables */

:root {
  /* --- Marca -----------------------------------------------------------
     El naranja es el mismo que libs/view.php publica como $this->colorbio,
     para que CSS y PHP no se contradigan. Los tonos de alrededor salen de
     el: el oscuro es el estado :hover de botones y enlaces de marca. */
  --bio:          #ff5d00;
  --bio-oscuro:   #d44c00;

  /* --- Neutros ---------------------------------------------------------
     Una sola rampa fria, de la mas clara a la mas oscura. Que todos los
     grises vengan de la misma familia es la mitad de que una interfaz se
     vea ordenada; antes habia tres azules-grises distintos sin querer. */
  --n-50:   #f8fafc;
  --n-100:  #f1f5f9;
  --n-200:  #e6ebf1;
  --n-300:  #cfd8e3;
  --n-400:  #94a3b8;
  --n-500:  #64748b;
  --n-600:  #475569;
  --n-700:  #334155;
  --n-800:  #1e293b;
  --n-900:  #0f172a;

  /* --- Semanticos ------------------------------------------------------
     Nombres heredados de Bootstrap porque el marcado los usa
     (btn-primary, text-danger, bg-info...), valores propios. Tonos algo
     mas profundos y menos saturados que los de Bootstrap: en una pantalla
     con muchos botones pequenos juntos, el color subido cansa. */
  --primary:      #15599c;
  --primary-osc:  #0f4376;
  --secondary:    #64748b;
  --secondary-osc:#475569;
  --success:      #15803d;
  --success-osc:  #126330;
  --info:         #0e7490;
  --info-osc:     #0b5a70;
  --warning:      #c2860b;
  --warning-osc:  #9a6a08;
  --danger:       #b91c1c;
  --danger-osc:   #8f1515;
  --light:        var(--n-100);
  --dark:         var(--n-800);

  /* Azul profundo de la pantalla de acceso. */
  --azul:         #102c4a;
  --azul-osc:     #0a1e34;

  /* --- Roles -----------------------------------------------------------
     El resto del CSS usa estos, no los tonos sueltos: cambiar el aspecto
     de la aplicacion es cambiar estas lineas. */
  --texto:        var(--n-800);
  --texto-suave:  var(--n-500);
  --texto-tenue:  var(--n-400);
  --fondo:        var(--n-100);
  --superficie:   #ffffff;
  --linea:        var(--n-300);
  --linea-suave:  var(--n-200);

  /* --- Espaciado y forma ----------------------------------------------- */
  --canal:        8px;

  --radio-s:      .25rem;
  --radio:        .375rem;
  --radio-g:      .625rem;
  --radio-xg:     1rem;

  /* Escala de elevacion. Dos sombras por nivel --una fina para el borde y
     otra difusa para la profundidad-- que es lo que hace que no parezca
     una mancha gris debajo de la caja. */
  --sombra-s:     0 1px 2px rgba(15, 23, 42, .06),
                  0 1px 3px rgba(15, 23, 42, .10);
  --sombra:       0 1px 3px rgba(15, 23, 42, .05),
                  0 4px 12px rgba(15, 23, 42, .08);
  --sombra-alta:  0 2px 6px rgba(15, 23, 42, .06),
                  0 12px 32px rgba(15, 23, 42, .16);
  --sombra-xl:    0 4px 10px rgba(15, 23, 42, .08),
                  0 24px 56px rgba(15, 23, 42, .26);

  /* Halo de foco. Un solo token para que todos los controles enfoquen
     igual, que es lo que lo hace legible como sistema. */
  --foco:         0 0 0 3px rgba(21, 89, 156, .22);
  --foco-bio:     0 0 0 3px rgba(255, 93, 0, .25);

  --transicion:   .15s ease;

  /* --- Tipografia ------------------------------------------------------ */
  --tipo-ui:      'UbuntuLocal', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --tipo-mono:    'Consolas', 'Cascadia Mono', 'DejaVu Sans Mono', monospace;
  --tipo-titular: 'AcmeLocal', 'Trebuchet MS', var(--tipo-ui);
  /* Grotesca neutra para el cargador. Arial primero; las otras son
     el mismo dibujo en macOS y en Linux. */
  --tipo-grotesca: Arial, 'Helvetica Neue', Helvetica, 'Liberation Sans', sans-serif;
  --tipo-serif:   'PlayfairLocal', Georgia, 'Times New Roman', serif;
}

/* ------------------------------------------------- 2. Tipografia, servida en local

   Antes se pedia Source Sans Pro a fonts.googleapis.com. Las fuentes ya
   estaban en public/fonts y nadie las usaba; ahora son estas, y la
   aplicacion no depende de ningun tercero para pintarse. */

@font-face {
  font-family: 'UbuntuLocal';
  src: url('../fonts/Ubuntu-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'AcmeLocal';
  src: url('../fonts/Acme-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'MerriweatherLocal';
  src: url('../fonts/MerriweatherSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'PlayfairLocal';
  src: url('../fonts/PlayfairDisplay-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ------------------------------------------------------------------ 3. Reset */

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--tipo-ui);
  font-size: 14px;
  line-height: 1.45;
  color: var(--texto);
  background-color: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5rem;
  font-weight: 700;
  line-height: 1.2;
}

h1, .h1 { font-size: 2.2rem; }
h2, .h2 { font-size: 1.75rem; }
h3, .h3 { font-size: 1.45rem; }
h4, .h4 { font-size: 1.2rem; }
h5, .h5 { font-size: 1.05rem; }
h6, .h6 { font-size: .95rem; }

p { margin: 0 0 .75rem; }

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover { text-decoration: underline; }

img {
  max-width: 100%;
  border: 0;
  vertical-align: middle;
}

hr {
  margin: .75rem 0;
  border: 0;
  border-top: 1px solid var(--linea);
}

label { display: inline-block; }

strong, b { font-weight: 700; }

button, input, select, textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
}

button { cursor: pointer; }

[hidden] { display: none !important; }

/* ------------------------------------------------------------------ 4. Rejilla

   12 columnas sobre flexbox, con canal propio (--canal) en vez de los 15px
   de Bootstrap: el marcado de este proyecto anida muchas .row dentro de
   celdas de tabla y modales, y un canal mas estrecho evita los desbordes
   horizontales que eso provoca.

   Puntos de corte: sm 576, md 768, lg 992, xl 1200. */

.container,
.container-fluid {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  padding-right: var(--canal);
  padding-left: var(--canal);
}

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

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--canal) * -1);
  margin-left: calc(var(--canal) * -1);
}

/* Toda columna comparte el relleno del canal y no se encoge por debajo de
   su contenido mas estrecho de lo debido. */
[class*="col-"] {
  position: relative;
  width: 100%;
  min-height: 1px;
  padding-right: var(--canal);
  padding-left: var(--canal);
}

.col-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
.col-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
.col-3  { flex: 0 0 25%;      max-width: 25%; }
.col-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
.col-5  { flex: 0 0 41.6666%; max-width: 41.6666%; }
.col-6  { flex: 0 0 50%;      max-width: 50%; }
.col-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
.col-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
.col-9  { flex: 0 0 75%;      max-width: 75%; }
.col-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
.col-11 { flex: 0 0 91.6666%; max-width: 91.6666%; }
.col-12 { flex: 0 0 100%;     max-width: 100%; }
.col    { flex: 1 0 0%; max-width: 100%; }

/* El marcado heredado trae col-xs-12 (Bootstrap 3) y un col-12 mal escrito
   como dol-12. Los dos significan "toda la fila en pantalla pequena".

   Van AQUI, junto a col-12 y antes de los bloques @media, no despues: con
   la misma especificidad gana la ultima regla del archivo, y declaradas al
   final le robaban el ancho a col-md-* y col-lg-* en todos los tamanos
   --era lo que dejaba la tarjeta del login ocupando la pantalla entera. */
.col-xs-12,
.dol-12 { flex: 0 0 100%; max-width: 100%; }
.col-auto { flex: 0 0 auto; width: auto; max-width: 100%; }

@media (min-width: 576px) {
  .col-sm-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-sm-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
  .col-sm-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-sm-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-sm-5  { flex: 0 0 41.6666%; max-width: 41.6666%; }
  .col-sm-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-sm-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-sm-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-sm-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-sm-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-sm-11 { flex: 0 0 91.6666%; max-width: 91.6666%; }
  .col-sm-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 768px) {
  .col-md-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-md-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
  .col-md-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-md-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-md-5  { flex: 0 0 41.6666%; max-width: 41.6666%; }
  .col-md-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-md-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-md-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-md-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-md-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-md-11 { flex: 0 0 91.6666%; max-width: 91.6666%; }
  .col-md-12 { flex: 0 0 100%;     max-width: 100%; }
}

@media (min-width: 992px) {
  .col-lg-1  { flex: 0 0 8.3333%;  max-width: 8.3333%; }
  .col-lg-2  { flex: 0 0 16.6666%; max-width: 16.6666%; }
  .col-lg-3  { flex: 0 0 25%;      max-width: 25%; }
  .col-lg-4  { flex: 0 0 33.3333%; max-width: 33.3333%; }
  .col-lg-5  { flex: 0 0 41.6666%; max-width: 41.6666%; }
  .col-lg-6  { flex: 0 0 50%;      max-width: 50%; }
  .col-lg-7  { flex: 0 0 58.3333%; max-width: 58.3333%; }
  .col-lg-8  { flex: 0 0 66.6666%; max-width: 66.6666%; }
  .col-lg-9  { flex: 0 0 75%;      max-width: 75%; }
  .col-lg-10 { flex: 0 0 83.3333%; max-width: 83.3333%; }
  .col-lg-11 { flex: 0 0 91.6666%; max-width: 91.6666%; }
  .col-lg-12 { flex: 0 0 100%;     max-width: 100%; }
}

/* Una celda de tabla con .row: el marcado lo hace para alinear botones
   dentro de un <td>. Las utilidades d-*-table-cell llevan !important y
   ganan a este display, que es justo lo que se quiere. */
td.row,
th.row { margin-right: 0; margin-left: 0; }

/* ----------------------------------------------------------- 5. Display y flex

   Con !important, como en Bootstrap: el patron responsivo de las tablas
   (d-none d-md-table-cell / d-table-cell d-md-none) necesita ganarle al
   display que traiga el elemento o cualquier .row. */

.d-none         { display: none !important; }
.d-inline       { display: inline !important; }
.d-inline-block { display: inline-block !important; }
.d-block        { display: block !important; }
.d-table        { display: table !important; }
.d-table-row    { display: table-row !important; }
.d-table-cell   { display: table-cell !important; }
.d-flex         { display: flex !important; }
.d-inline-flex  { display: inline-flex !important; }

@media (min-width: 576px) {
  .d-sm-none       { display: none !important; }
  .d-sm-block      { display: block !important; }
  .d-sm-table-cell { display: table-cell !important; }
  .d-sm-flex       { display: flex !important; }
}

@media (min-width: 768px) {
  .d-md-none       { display: none !important; }
  .d-md-inline     { display: inline !important; }
  .d-md-block      { display: block !important; }
  .d-md-table-cell { display: table-cell !important; }
  .d-md-flex       { display: flex !important; }
}

@media (min-width: 992px) {
  .d-lg-none       { display: none !important; }
  .d-lg-block      { display: block !important; }
  .d-lg-table-cell { display: table-cell !important; }
  .d-lg-flex       { display: flex !important; }
}

.flex-row      { flex-direction: row !important; }
.flex-column   { flex-direction: column !important; }
.flex-wrap     { flex-wrap: wrap !important; }
.flex-nowrap   { flex-wrap: nowrap !important; }
.flex-grow-1   { flex-grow: 1 !important; }

.justify-content-start   { justify-content: flex-start !important; }
.justify-content-end     { justify-content: flex-end !important; }
.justify-content-center  { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around  { justify-content: space-around !important; }

.align-items-start    { align-items: flex-start !important; }
.align-items-center   { align-items: center !important; }
.align-items-end      { align-items: flex-end !important; }
.align-items-baseline { align-items: baseline !important; }

/* El marcado escribe align-item-center, en singular. No es una clase de
   Bootstrap --nunca hizo nada-- pero la intencion esta clara y cuesta una
   linea atenderla. */
.align-item-center { align-items: center !important; }

.align-self-start  { align-self: flex-start !important; }
.align-self-center { align-self: center !important; }
.align-self-end    { align-self: flex-end !important; }

@media (min-width: 768px) {
  .justify-content-md-end    { justify-content: flex-end !important; }
  .justify-content-md-center { justify-content: center !important; }
}

/* ------------------------------------------------------------- 6. Espaciado

   Escala de Bootstrap (0 a 5: 0, .25, .5, 1, 1.5, 3 rem) mas los auto.
   Se generan los lados que el marcado usa de verdad; estan todos. */

.m-0 { margin: 0 !important; }
.m-1 { margin: .25rem !important; }
.m-2 { margin: .5rem !important; }
.m-3 { margin: 1rem !important; }
.m-4 { margin: 1.5rem !important; }
.m-5 { margin: 3rem !important; }
.m-auto { margin: auto !important; }

.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: .25rem !important; }
.mt-2 { margin-top: .5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mt-auto { margin-top: auto !important; }

.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: .25rem !important; }
.mb-2 { margin-bottom: .5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.mb-auto { margin-bottom: auto !important; }

.ml-0 { margin-left: 0 !important; }
.ml-1 { margin-left: .25rem !important; }
.ml-2 { margin-left: .5rem !important; }
.ml-3 { margin-left: 1rem !important; }
.ml-4 { margin-left: 1.5rem !important; }
.ml-5 { margin-left: 3rem !important; }
.ml-auto { margin-left: auto !important; }

.mr-0 { margin-right: 0 !important; }
.mr-1 { margin-right: .25rem !important; }
.mr-2 { margin-right: .5rem !important; }
.mr-3 { margin-right: 1rem !important; }
.mr-4 { margin-right: 1.5rem !important; }
.mr-5 { margin-right: 3rem !important; }
.mr-auto { margin-right: auto !important; }

.mx-0 { margin-right: 0 !important; margin-left: 0 !important; }
.mx-1 { margin-right: .25rem !important; margin-left: .25rem !important; }
.mx-2 { margin-right: .5rem !important; margin-left: .5rem !important; }
.mx-3 { margin-right: 1rem !important; margin-left: 1rem !important; }
.mx-4 { margin-right: 1.5rem !important; margin-left: 1.5rem !important; }
.mx-5 { margin-right: 3rem !important; margin-left: 3rem !important; }
.mx-auto { margin-right: auto !important; margin-left: auto !important; }

.my-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
.my-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
.my-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
.my-3 { margin-top: 1rem !important; margin-bottom: 1rem !important; }
.my-4 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.my-5 { margin-top: 3rem !important; margin-bottom: 3rem !important; }
.my-auto { margin-top: auto !important; margin-bottom: auto !important; }

.p-0 { padding: 0 !important; }
.p-1 { padding: .25rem !important; }
.p-2 { padding: .5rem !important; }
.p-3 { padding: 1rem !important; }
.p-4 { padding: 1.5rem !important; }
.p-5 { padding: 3rem !important; }

.pt-0 { padding-top: 0 !important; }
.pt-1 { padding-top: .25rem !important; }
.pt-2 { padding-top: .5rem !important; }
.pt-3 { padding-top: 1rem !important; }
.pt-4 { padding-top: 1.5rem !important; }
.pt-5 { padding-top: 3rem !important; }

.pb-0 { padding-bottom: 0 !important; }
.pb-1 { padding-bottom: .25rem !important; }
.pb-2 { padding-bottom: .5rem !important; }
.pb-3 { padding-bottom: 1rem !important; }
.pb-4 { padding-bottom: 1.5rem !important; }
.pb-5 { padding-bottom: 3rem !important; }

.pl-0 { padding-left: 0 !important; }
.pl-1 { padding-left: .25rem !important; }
.pl-2 { padding-left: .5rem !important; }
.pl-3 { padding-left: 1rem !important; }
.pl-4 { padding-left: 1.5rem !important; }
.pl-5 { padding-left: 3rem !important; }

.pr-0 { padding-right: 0 !important; }
.pr-1 { padding-right: .25rem !important; }
.pr-2 { padding-right: .5rem !important; }
.pr-3 { padding-right: 1rem !important; }
.pr-4 { padding-right: 1.5rem !important; }
.pr-5 { padding-right: 3rem !important; }

.px-0 { padding-right: 0 !important; padding-left: 0 !important; }
.px-1 { padding-right: .25rem !important; padding-left: .25rem !important; }
.px-2 { padding-right: .5rem !important; padding-left: .5rem !important; }
.px-3 { padding-right: 1rem !important; padding-left: 1rem !important; }
.px-4 { padding-right: 1.5rem !important; padding-left: 1.5rem !important; }
.px-5 { padding-right: 3rem !important; padding-left: 3rem !important; }

.py-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
.py-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
.py-2 { padding-top: .5rem !important; padding-bottom: .5rem !important; }
.py-3 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.py-4 { padding-top: 1.5rem !important; padding-bottom: 1.5rem !important; }
.py-5 { padding-top: 3rem !important; padding-bottom: 3rem !important; }

@media (min-width: 768px) {
  .mx-md-0 { margin-right: 0 !important; margin-left: 0 !important; }
  .mx-md-1 { margin-right: .25rem !important; margin-left: .25rem !important; }
  .mx-md-2 { margin-right: .5rem !important; margin-left: .5rem !important; }
  .my-md-0 { margin-top: 0 !important; margin-bottom: 0 !important; }
  .my-md-1 { margin-top: .25rem !important; margin-bottom: .25rem !important; }
  .my-md-2 { margin-top: .5rem !important; margin-bottom: .5rem !important; }
  .px-md-0 { padding-right: 0 !important; padding-left: 0 !important; }
  .px-md-1 { padding-right: .25rem !important; padding-left: .25rem !important; }
  .px-md-2 { padding-right: .5rem !important; padding-left: .5rem !important; }
  .py-md-0 { padding-top: 0 !important; padding-bottom: 0 !important; }
  .py-md-1 { padding-top: .25rem !important; padding-bottom: .25rem !important; }
}

/* ------------------------------------------------- 7. Texto y tipos de letra */

.text-left   { text-align: left !important; }
.text-right  { text-align: right !important; }
.text-center { text-align: center !important; }

.text-uppercase  { text-transform: uppercase !important; }
.text-lowercase  { text-transform: lowercase !important; }
.text-capitalize { text-transform: capitalize !important; }

.text-nowrap   { white-space: nowrap !important; }
.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.font-weight-light  { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-bold   { font-weight: 700 !important; }
.font-italic        { font-style: italic !important; }

/* Tamanos absolutos. El marcado los usa como "font-14" y no como una escala,
   asi que se declaran en px: es lo que ya significan. */
.font-11  { font-size: 11px !important; }
.font-12  { font-size: 12px !important; }
.font-14  { font-size: 14px !important; }
.font-16  { font-size: 16px !important; }
.font-20  { font-size: 20px !important; }
.font-22  { font-size: 22px !important; }
.font-24  { font-size: 24px !important; }
.font-30  { font-size: 30px !important; }
.font-80  { font-size: 80px !important; }
.font-90  { font-size: 90px !important; }
.font-120 { font-size: 120px !important; }

/* Familias. Los nombres vienen del marcado heredado (font-roboto,
   text-roboto, font-harelyorange) y se resuelven con las fuentes que estan
   en public/fonts. */
.font-consolas { font-family: var(--tipo-mono) !important; }
.font-roboto,
.text-roboto   { font-family: var(--tipo-ui) !important; }
.font-serif    { font-family: var(--tipo-serif) !important; }

.font-harelyorange {
  font-family: var(--tipo-titular) !important;
  color: var(--bio);
  letter-spacing: .01em;
}

/* --------------------------------------- 8. Color de texto, fondo y borde */

.text-primary   { color: var(--primary) !important; }
.text-secondary { color: var(--secondary) !important; }
.text-success   { color: var(--success) !important; }
.text-info      { color: var(--info) !important; }
.text-warning   { color: var(--warning-osc) !important; }
.text-danger    { color: var(--danger) !important; }
.text-light     { color: var(--light) !important; }
.text-dark      { color: var(--dark) !important; }
.text-white     { color: #fff !important; }
.text-black     { color: var(--n-900) !important; }
.text-muted     { color: var(--texto-suave) !important; }
.text-bio       { color: var(--bio) !important; }

/* Heredada: un azul algo mas oscuro para texto sobre fondo claro. */
.text-primary-my { color: var(--primary-osc) !important; }

/* Enlaces e iconos pulsables: a-* es el color en reposo, con realce al
   pasar por encima. El marcado los pone sobre <i> y sobre <a>. */
.a-primary,
.a-danger,
.a-success,
.a-white,
.a-bio { cursor: pointer; transition: opacity .15s ease, color .15s ease; }

.a-primary { color: var(--primary) !important; }
.a-danger  { color: var(--danger) !important; }
.a-success { color: var(--success) !important; }
.a-white   { color: #fff !important; }
.a-bio     { color: var(--bio) !important; }

.a-primary:hover,
.a-danger:hover,
.a-success:hover,
.a-white:hover,
.a-bio:hover { opacity: .72; }

.bg-primary   { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--secondary) !important; }
.bg-success   { background-color: var(--success) !important; }
.bg-info      { background-color: var(--info) !important; }
.bg-warning   { background-color: var(--warning) !important; }
.bg-danger    { background-color: var(--danger) !important; }
.bg-light     { background-color: var(--light) !important; }
.bg-dark      { background-color: var(--dark) !important; }
.bg-white     { background-color: #fff !important; }
.bg-bio       { background-color: var(--bio) !important; }
.bg-azul      { background-color: var(--azul) !important; }

/* Fondos translucidos. El numero es el porcentaje de opacidad, igual que en
   el marcado heredado (bg-info-20, bg-white-50...). */
.bg-primary-20 { background-color: rgba(21, 89, 156, .12) !important; }
.bg-success-20 { background-color: rgba(21, 128, 61, .12) !important; }
.bg-info-20    { background-color: rgba(14, 116, 144, .12) !important; }
.bg-info-25    { background-color: rgba(14, 116, 144, .18) !important; }
.bg-white-10   { background-color: rgba(255, 255, 255, .10) !important; }
.bg-white-30   { background-color: rgba(255, 255, 255, .30) !important; }
.bg-white-50   { background-color: rgba(255, 255, 255, .50) !important; }

.border        { border: 1px solid var(--linea) !important; }
.border-0      { border: 0 !important; }
.border-top    { border-top: 1px solid var(--linea) !important; }
.border-top-0    { border-top: 0 !important; }
.border-bottom-0 { border-bottom: 0 !important; }
.border-left-0   { border-left: 0 !important; }
.border-right-0  { border-right: 0 !important; }

.border-primary   { border-color: var(--primary) !important; }
.border-secondary { border-color: var(--secondary) !important; }
.border-success   { border-color: var(--success) !important; }
.border-info      { border-color: var(--info) !important; }
.border-warning   { border-color: var(--warning) !important; }
.border-danger    { border-color: var(--danger) !important; }
.border-light     { border-color: rgba(255, 255, 255, .55) !important; }
.border-dark      { border-color: var(--dark) !important; }
.border-bio       { border-color: var(--bio) !important; }

/* ----------------------------------- 9. Redondeos, sombras y varios */

.rounded        { border-radius: var(--radio) !important; }
.rounded-0      { border-radius: 0 !important; }
.rounded-circle { border-radius: 50% !important; }
.rounded-pill   { border-radius: 50rem !important; }
.rounded-top {
  border-top-left-radius: var(--radio) !important;
  border-top-right-radius: var(--radio) !important;
}
.rounded-bottom {
  border-bottom-left-radius: var(--radio) !important;
  border-bottom-right-radius: var(--radio) !important;
}

/* Heredada de Bootstrap 5: un radio mayor. */
.rounded-3 { border-radius: var(--radio-g) !important; }

.shadow-none { box-shadow: none !important; }
.shadow-sm   { box-shadow: var(--sombra-s) !important; }
.shadow      { box-shadow: var(--sombra) !important; }

.pointer { cursor: pointer; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }

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

.position-relative { position: relative !important; }

.overflow-auto { overflow: auto !important; }

/* Solo para lectores de pantalla. El marcado la usa en el texto
   "Loading..." del spinner. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Centra un icono o texto dentro de su caja, pase lo que pase alrededor. */
.centrado {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
