/* La marca del LIMS en lo que no es la aplicacion: el portal "Solicitar prueba"
   y los admin de Django. Los valores son los de frontend/src/index.css: si alli
   cambian, cambian aqui y en backend/sistema/static/sistema/marca.css. Sin reglas
   sobre etiquetas: esta hoja tambien la carga el admin. */
:root {
  color-scheme: light;
  --accion-fondo: #1c4e80;
  --accion-hover: #163d64;
  --marca-profundo: #4d0d0d;
  --marca-noche: #2b0808;
  --fondo-login-movil: linear-gradient(150deg, #4d0d0d, #c00000);
  --lenash-naranja: #c2410c;
  --acento: #0f6d6b;
  --acento-fuerte: #0b5251;
  --gris-borde: #d4dae0;
  --borde-sutil: #e6eaee;
  --gris-texto: #5a6570;
  --gris-suave: #667180;
  --texto: #1a2027;
  --fondo: #f4f6f8;
  --superficie: #ffffff;
  --blanco: #ffffff;
  --rojo: #8c1d18;
  --rojo-fondo: #fdecea;
  --fuente: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --radio-sm: 7px;
  --radio-lg: 14px;
  --sombra-sm: 0 1px 2px rgb(77 13 13 / 5%), 0 1px 1px rgb(77 13 13 / 4%);
  --sombra-md: 0 2px 4px rgb(77 13 13 / 6%), 0 10px 24px rgb(77 13 13 / 10%);
  --ease-salida: cubic-bezier(0.22, 1, 0.36, 1);
  --dur-rapida: 0.14s;
  --anillo: 0 0 0 3px rgb(15 109 107 / 22%);
}

:root[data-tema='oscuro'] {
  color-scheme: dark;
  --accion-fondo: #3a6ea5;
  --accion-hover: #325f8f;
  --fondo-login-movil: #292929;
  --lenash-naranja: #ff7a2f;
  --acento: #80cfca;
  --acento-fuerte: #9bdfdb;
  --gris-borde: #808080;
  --borde-sutil: #4b4b4b;
  --gris-texto: #c7c7c7;
  --gris-suave: #bdbdbd;
  --texto: #ededed;
  --fondo: #292929;
  --superficie: #333333;
  --rojo: #ffb1a6;
  --rojo-fondo: #4b3330;
  --sombra-sm: 0 1px 2px rgb(20 20 20 / 16%);
  --sombra-md: 0 6px 20px rgb(20 20 20 / 26%);
  --anillo: 0 0 0 3px rgb(128 207 202 / 45%);
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* El logo que corresponde a cada tema. */
.logo-en-oscuro,
:root[data-tema='oscuro'] .logo-en-claro {
  display: none;
}

:root[data-tema='oscuro'] .logo-en-oscuro {
  display: block;
}

/* El interruptor de tema del LIMS (shared/components/BotonTema). */
.boton-tema {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 80px;
  height: 44px;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--gris-texto);
  box-shadow: none;
  cursor: pointer;
}

.boton-tema:hover,
.boton-tema:active {
  background: transparent;
  color: var(--texto);
}

.boton-tema:focus-visible {
  outline: 2px solid var(--acento);
  outline-offset: 2px;
}

.tema-riel {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 72px;
  height: 36px;
  padding: 3px;
  border: 1px solid var(--gris-borde);
  border-radius: 999px;
  background: var(--fondo);
  transition: border-color 140ms ease-out, background-color 180ms ease-out;
}

.boton-tema:hover .tema-riel {
  border-color: var(--gris-suave);
}

.tema-indicador {
  position: absolute;
  inset: 3px auto 3px 5px;
  width: 28px;
  border-radius: 50%;
  background: var(--superficie);
  box-shadow: 0 1px 3px rgb(40 40 40 / 18%);
  transition: transform 220ms var(--ease-salida), background-color 180ms ease-out;
}

.boton-tema svg {
  position: relative;
  width: 18px;
  height: 18px;
  transform-origin: center;
  transition: transform 220ms var(--ease-salida), color 180ms ease-out, opacity 140ms ease-out;
}

.tema-sol {
  color: var(--acento-fuerte);
}

.tema-rayos {
  transform-origin: 12px 12px;
  transition: transform 220ms var(--ease-salida), opacity 140ms ease-out;
}

.tema-luna {
  color: var(--gris-texto);
  transform: rotate(-25deg) scale(0.85);
}

:root[data-tema='oscuro'] .tema-indicador {
  transform: translateX(32px);
}

:root[data-tema='oscuro'] .tema-sol {
  color: var(--gris-texto);
  transform: rotate(45deg) scale(0.85);
}

:root[data-tema='oscuro'] .tema-rayos {
  transform: scale(0.75);
  opacity: 0.65;
}

:root[data-tema='oscuro'] .tema-luna {
  color: var(--acento-fuerte);
  transform: none;
}

/* El credito del desarrollo (shared/components/CreditoLenash). */
.credito-lenash {
  color: var(--gris-suave);
  font-size: 0.7rem;
  text-decoration: none;
  transition: color var(--dur-rapida) var(--ease-salida);
}

.credito-lenash:hover {
  color: var(--texto);
}

.credito-lenash b {
  font-weight: 600;
}

.credito-lenash:hover b,
.credito-lenash:focus-visible b {
  text-decoration: underline;
  text-underline-offset: 2px;
}
