/* ==========================================================================
   SUITE TRINISALUD · FISIATEK — Hoja de estilos común
   Versión 1.0 · noviembre 2026

   Uso:
   1. Cargar las fuentes en el <head>, antes de esta hoja:
      <link rel="preconnect" href="https://fonts.googleapis.com">
      <link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Poppins:wght@500;600&display=swap" rel="stylesheet">
      <link rel="stylesheet" href="/assets/suite.css">
   2. Declarar la empresa activa en la etiqueta <html>:
      <html lang="es" data-empresa="trinisalud">   o   data-empresa="fisiatek"
      Sin el atributo se aplica TRINISALUD.
   3. Usar las clases de este archivo. No escribir colores sueltos en las
      páginas: todo color sale de una variable --st-*.
   ========================================================================== */


/* --------------------------------------------------------------------------
   1. Variables base (iguales para las dos empresas)
   -------------------------------------------------------------------------- */
:root {
  /* Marino institucional */
  --st-marino: #1A3A5C;
  --st-marino-oscuro: #0F2740;

  /* Neutros */
  --st-texto: #1F2124;
  --st-texto-2: #5F6670;        /* secundario: 5,8:1 sobre blanco */
  --st-texto-3: #4B5563;        /* sobre fondos grises */
  --st-borde: #E3E6EA;
  --st-borde-fuerte: #CBD0D6;
  --st-fondo: #F5F6F8;          /* fondo de página */
  --st-fondo-2: #EEF0F3;        /* zonas hundidas, selector, chips */
  --st-superficie: #FFFFFF;     /* tarjetas, tablas, barras */

  /* Estados (semánticos, nunca decorativos) */
  --st-exito: #166534;     --st-exito-fondo: #DCFCE7;     --st-exito-punto: #16A34A;
  --st-alerta: #92400E;    --st-alerta-fondo: #FEF3C7;    --st-alerta-punto: #D97706;
  --st-peligro: #B42318;   --st-peligro-fondo: #FEE4E2;   --st-peligro-punto: #D92D20;
  --st-info: #1D4F91;      --st-info-fondo: #E0ECFB;      --st-info-punto: #2A78D6;

  /* Tipografía */
  --st-fuente-titulo: "Poppins", system-ui, sans-serif;
  --st-fuente: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --st-t-12: 12px; --st-t-13: 13px; --st-t-14: 14px; --st-t-16: 16px;
  --st-t-20: 20px; --st-t-28: 28px; --st-t-34: 34px;

  /* Espaciado (múltiplos de 4) */
  --st-e-1: 4px;  --st-e-2: 8px;  --st-e-3: 12px; --st-e-4: 16px;
  --st-e-5: 20px; --st-e-6: 24px; --st-e-8: 32px; --st-e-10: 40px; --st-e-12: 48px;

  /* Forma */
  --st-radio-s: 6px; --st-radio: 8px; --st-radio-l: 12px; --st-radio-pill: 999px;
  --st-sombra: 0 1px 2px rgba(16, 24, 40, 0.05);
  --st-sombra-l: 0 8px 24px rgba(16, 24, 40, 0.12);
  --st-foco: 0 0 0 3px var(--st-acento-suave), 0 0 0 1px var(--st-acento-accion);

  /* Gráficas: categóricos en orden fijo (paleta validada para daltonismo).
     Usar en este orden, nunca saltando ni repitiendo. Máximo 3 en tortas
     o dispersión; hasta 8 en barras y líneas. */
  --st-graf-1: #2A78D6;  /* azul */
  --st-graf-2: #EB6834;  /* naranja */
  --st-graf-3: #1BAF7A;  /* aguamarina */
  --st-graf-4: #EDA100;  /* amarillo */
  --st-graf-5: #E87BA4;  /* magenta */
  --st-graf-6: #008300;  /* verde */
  --st-graf-7: #6250D6;  /* violeta */
  --st-graf-8: #E34948;  /* rojo */
  /* Gráficas: estado / nivel de riesgo (siempre con etiqueta de texto) */
  --st-graf-bien: #0CA30C;
  --st-graf-precaucion: #FAB219;
  --st-graf-riesgo: #EC835A;
  --st-graf-critico: #D03B3B;
  --st-graf-neutro: #98A2B3;
  --st-graf-rejilla: #EEF0F3;
  --st-graf-eje: #CBD0D6;
}

/* --------------------------------------------------------------------------
   2. Acento por empresa
      marca  = filete superior y detalles decorativos (no lleva texto encima)
      accion = botón principal, enlaces, foco (cumple 4,5:1 con texto)
      suave  = fondos de selección
      texto  = texto sobre fondo suave
   -------------------------------------------------------------------------- */
:root,
[data-empresa="trinisalud"] {
  --st-acento-marca: #FC6A20;
  --st-acento-accion: #C2410C;
  --st-acento-accion-hover: #9A3412;
  --st-acento-sobre: #FFFFFF;
  --st-acento-suave: #FFF1EA;
  --st-acento-texto: #9A3412;
}

[data-empresa="fisiatek"] {
  --st-acento-marca: #00A854;
  --st-acento-accion: #007A3D;
  --st-acento-accion-hover: #00663A;
  --st-acento-sobre: #FFFFFF;
  --st-acento-suave: #E6F6EC;
  --st-acento-texto: #00663A;

  /* En FISIATEK el verde es el color de la empresa: el estado "éxito" pasa a
     neutro con punto verde para no confundirse con el acento. */
  --st-exito: #374151;
  --st-exito-fondo: #EEF0F3;
}


/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--st-fuente);
  font-size: var(--st-t-14);
  line-height: 1.5;
  color: var(--st-texto);
  background: var(--st-fondo);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { margin: 0; color: var(--st-marino); }
h1, .st-h1 { font-family: var(--st-fuente-titulo); font-weight: 600; font-size: var(--st-t-28); line-height: 1.25; letter-spacing: -0.01em; }
h2, .st-h2 { font-family: var(--st-fuente-titulo); font-weight: 600; font-size: var(--st-t-20); line-height: 1.3; }
h3, .st-h3 { font-family: var(--st-fuente); font-weight: 600; font-size: var(--st-t-16); line-height: 1.4; color: var(--st-texto); }
h4, .st-h4 { font-family: var(--st-fuente); font-weight: 600; font-size: var(--st-t-14); color: var(--st-texto); }
p { margin: 0; }

a { color: var(--st-acento-accion); text-decoration: none; }
a:hover { color: var(--st-acento-accion-hover); text-decoration: underline; }

:focus-visible { outline: none; box-shadow: var(--st-foco); border-radius: var(--st-radio-s); }

.st-sobretitulo {
  font-size: var(--st-t-12); font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--st-texto-2);
}
.st-texto-2 { color: var(--st-texto-2); }
.st-pequeno { font-size: var(--st-t-13); }
.st-num { font-variant-numeric: tabular-nums; }
.st-codigo { white-space: nowrap; font-family: var(--st-fuente); font-variant-numeric: tabular-nums; font-weight: 600; letter-spacing: 0.01em; }

.st-icono { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.st-icono--20 { width: 20px; height: 20px; }
.st-icono--16 { width: 16px; height: 16px; }


/* --------------------------------------------------------------------------
   4. Estructura de la aplicación
      <div class="st-app">
        <header class="st-barra">…</header>
        <div class="st-cuerpo">
          <nav class="st-menu">…</nav>          (opcional)
          <main class="st-contenido">…</main>
        </div>
        <footer class="st-pie">…</footer>      (opcional)
      </div>
   -------------------------------------------------------------------------- */
.st-app { min-height: 100vh; display: flex; flex-direction: column; }
.st-app::before { content: ""; display: block; height: 3px; background: var(--st-acento-marca); }

.st-barra {
  background: var(--st-superficie);
  border-bottom: 1px solid var(--st-borde);
  padding: var(--st-e-3) var(--st-e-6);
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--st-e-3) var(--st-e-8);
}
.st-barra__marca { display: flex; flex-direction: column; gap: 2px; }
.st-barra__nombre { font-family: var(--st-fuente-titulo); font-weight: 600; font-size: var(--st-t-14); letter-spacing: 0.06em; text-transform: uppercase; color: var(--st-marino); }
.st-barra__sub { font-size: var(--st-t-12); color: var(--st-texto-2); }
.st-barra__nav { display: flex; flex-wrap: wrap; gap: var(--st-e-1); }
.st-barra__espacio { flex: 1 1 auto; }
.st-barra__acciones { display: flex; align-items: center; gap: var(--st-e-4); }

.st-barra__enlace {
  display: inline-flex; align-items: center; gap: var(--st-e-2);
  padding: var(--st-e-2) var(--st-e-3); min-height: 40px;
  border-radius: var(--st-radio); font-size: var(--st-t-14); font-weight: 500;
  color: var(--st-texto-3);
}
.st-barra__enlace:hover { background: var(--st-fondo-2); color: var(--st-texto); text-decoration: none; }
.st-barra__enlace.is-activo, .st-barra__enlace[aria-current="page"] { background: var(--st-acento-suave); color: var(--st-acento-texto); font-weight: 600; }

.st-usuario { display: flex; align-items: center; gap: 10px; }
.st-avatar {
  width: 36px; height: 36px; border-radius: 50%; flex: none;
  background: var(--st-acento-suave); color: var(--st-acento-texto);
  font-size: var(--st-t-13); font-weight: 600;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-usuario__nombre { font-size: var(--st-t-14); font-weight: 600; line-height: 1.2; }
.st-usuario__rol { font-size: var(--st-t-12); color: var(--st-texto-2); }

.st-cuerpo { flex: 1 1 auto; display: flex; flex-wrap: wrap; }

.st-menu {
  flex: 1 1 240px; max-width: 280px;
  background: var(--st-superficie); border-right: 1px solid var(--st-borde);
  padding: var(--st-e-6) var(--st-e-4);
  display: flex; flex-direction: column; gap: 6px;
}
.st-menu__grupo { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-texto-2); padding: var(--st-e-4) var(--st-e-3) 6px; }
.st-menu__grupo:first-child { padding-top: 0; }
.st-menu__item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px var(--st-e-3); min-height: 44px;
  border-radius: var(--st-radio); font-size: var(--st-t-14); font-weight: 500; color: var(--st-texto);
}
.st-menu__item:hover { background: var(--st-fondo); color: var(--st-texto); text-decoration: none; }
.st-menu__item.is-activo, .st-menu__item[aria-current="page"] { background: var(--st-acento-suave); color: var(--st-acento-texto); font-weight: 600; }

.st-contenido {
  flex: 999 1 560px; min-width: 0;
  padding: var(--st-e-8) var(--st-e-10);
  display: flex; flex-direction: column; gap: var(--st-e-6);
}
.st-contenido--angosto { max-width: 1120px; margin: 0 auto; width: 100%; }

.st-encabezado { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--st-e-4); }
.st-encabezado__textos { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.st-encabezado__desc { font-size: 15px; color: var(--st-texto-2); }
.st-encabezado__acciones { display: flex; flex-wrap: wrap; gap: var(--st-e-2); }

.st-pie {
  border-top: 1px solid var(--st-borde); background: var(--st-superficie);
  padding: var(--st-e-5) var(--st-e-6); text-align: center;
  font-size: var(--st-t-12); line-height: 1.7; color: var(--st-texto-2);
}

@media (max-width: 720px) {
  .st-menu { max-width: none; border-right: 0; border-bottom: 1px solid var(--st-borde); }
  .st-contenido { padding: var(--st-e-6) var(--st-e-4); }
}


/* --------------------------------------------------------------------------
   5. Selector de empresa
      <div class="st-selector" role="group" aria-label="Empresa">
        <a class="st-selector__op is-activo">TRINISALUD</a>
        <a class="st-selector__op">FISIATEK</a>
      </div>
   -------------------------------------------------------------------------- */
.st-selector { display: inline-flex; gap: 2px; padding: 3px; background: var(--st-fondo-2); border-radius: var(--st-radio); }
.st-selector__op {
  font-family: var(--st-fuente); font-size: var(--st-t-13); font-weight: 500;
  padding: var(--st-e-2) 14px; min-height: 36px; border: 0; border-radius: var(--st-radio-s);
  background: transparent; color: var(--st-texto-3); cursor: pointer;
  display: inline-flex; align-items: center;
}
.st-selector__op:hover { color: var(--st-texto); text-decoration: none; }
.st-selector__op.is-activo, .st-selector__op[aria-pressed="true"] { background: var(--st-acento-accion); color: var(--st-acento-sobre); font-weight: 600; }


/* --------------------------------------------------------------------------
   6. Botones
      Regla: un solo .st-btn--primario por zona visible.
   -------------------------------------------------------------------------- */
.st-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--st-e-2);
  min-height: 40px; padding: var(--st-e-2) var(--st-e-4);
  font-family: var(--st-fuente); font-size: var(--st-t-14); font-weight: 600; line-height: 1;
  border-radius: var(--st-radio); border: 1px solid transparent; cursor: pointer;
  text-decoration: none; white-space: nowrap;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;
}
.st-btn:hover { text-decoration: none; }
.st-btn:disabled, .st-btn[aria-disabled="true"] { cursor: not-allowed; background: var(--st-fondo-2); border-color: var(--st-fondo-2); color: var(--st-texto-3); font-weight: 500; }

.st-btn--primario { background: var(--st-acento-accion); color: var(--st-acento-sobre); }
.st-btn--primario:hover { background: var(--st-acento-accion-hover); color: var(--st-acento-sobre); }

.st-btn--secundario { background: var(--st-superficie); border-color: var(--st-borde-fuerte); color: var(--st-texto); }
.st-btn--secundario:hover { background: var(--st-fondo); color: var(--st-texto); }

.st-btn--fantasma { background: transparent; color: var(--st-texto-3); }
.st-btn--fantasma:hover { background: var(--st-fondo-2); color: var(--st-texto); }

.st-btn--peligro { background: var(--st-superficie); border-color: #F4C7C3; color: var(--st-peligro); }
.st-btn--peligro:hover { background: var(--st-peligro-fondo); color: var(--st-peligro); }

.st-btn--s { min-height: 32px; padding: 6px var(--st-e-3); font-size: var(--st-t-13); }
.st-btn--l { min-height: 48px; padding: var(--st-e-3) var(--st-e-5); font-size: 15px; }
.st-btn--bloque { width: 100%; }
.st-btn--icono { padding: 0; width: 40px; }


/* --------------------------------------------------------------------------
   7. Tarjetas y paneles
   -------------------------------------------------------------------------- */
.st-tarjeta {
  background: var(--st-superficie); border: 1px solid var(--st-borde);
  border-radius: var(--st-radio-l); box-shadow: var(--st-sombra);
  padding: var(--st-e-6); display: flex; flex-direction: column; gap: var(--st-e-4);
}
.st-tarjeta--plana { box-shadow: none; }
.st-tarjeta--sin-relleno { padding: 0; overflow: hidden; }
.st-tarjeta__cabeza { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--st-e-3); }
.st-tarjeta__pie { border-top: 1px solid var(--st-borde); padding-top: var(--st-e-4); display: flex; align-items: center; justify-content: space-between; gap: var(--st-e-3); }

.st-icono-caja {
  width: 40px; height: 40px; border-radius: 10px; flex: none;
  background: var(--st-acento-suave); color: var(--st-acento-texto);
  display: inline-flex; align-items: center; justify-content: center;
}
.st-icono-caja--neutro { background: var(--st-fondo); color: var(--st-texto-2); }

.st-rejilla { display: grid; gap: var(--st-e-5); grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.st-rejilla--4 { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }


/* --------------------------------------------------------------------------
   8. Indicadores (cifra destacada)
      Sin bordes de color a la izquierda. El color, si lo hay, va en el punto.
   -------------------------------------------------------------------------- */
.st-indicador {
  background: var(--st-superficie); border: 1px solid var(--st-borde); border-radius: var(--st-radio-l);
  padding: var(--st-e-5) var(--st-e-6); display: flex; flex-direction: column; gap: var(--st-e-1);
}
.st-indicador__etiqueta { display: flex; align-items: center; gap: var(--st-e-2); font-size: var(--st-t-13); font-weight: 500; color: var(--st-texto-2); }
.st-indicador__valor { font-family: var(--st-fuente); font-size: var(--st-t-28); font-weight: 600; line-height: 1.2; color: var(--st-texto); font-variant-numeric: tabular-nums; }
.st-indicador__detalle { font-size: var(--st-t-13); color: var(--st-texto-2); }
.st-punto { width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--st-graf-neutro); }


/* --------------------------------------------------------------------------
   9. Etiquetas de estado
      <span class="st-estado st-estado--exito">Entregada</span>
   -------------------------------------------------------------------------- */
.st-estado {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 3px var(--st-e-2); border-radius: var(--st-radio-s);
  font-size: var(--st-t-12); font-weight: 600; line-height: 1.4;
  background: var(--st-fondo-2); color: var(--st-texto-3);
}
.st-estado::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-estado--exito   { background: var(--st-exito-fondo);   color: var(--st-exito); }
.st-estado--exito::before { background: var(--st-exito-punto); }
.st-estado--alerta  { background: var(--st-alerta-fondo);  color: var(--st-alerta); }
.st-estado--alerta::before { background: var(--st-alerta-punto); }
.st-estado--peligro { background: var(--st-peligro-fondo); color: var(--st-peligro); }
.st-estado--peligro::before { background: var(--st-peligro-punto); }
.st-estado--info    { background: var(--st-info-fondo);    color: var(--st-info); }
.st-estado--info::before { background: var(--st-info-punto); }
.st-estado--neutro::before { background: var(--st-graf-neutro); }

.st-insignia { display: inline-flex; align-items: center; padding: 2px var(--st-e-2); border-radius: var(--st-radio-pill); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; background: var(--st-fondo-2); color: var(--st-texto-3); }


/* --------------------------------------------------------------------------
   10. Tablas
      <div class="st-tabla-caja"><table class="st-tabla">…</table></div>
   -------------------------------------------------------------------------- */
.st-tabla-caja { background: var(--st-superficie); border: 1px solid var(--st-borde); border-radius: var(--st-radio-l); overflow-x: auto; }
.st-tabla { width: 100%; min-width: 640px; border-collapse: collapse; font-size: var(--st-t-14); }
.st-tabla th {
  text-align: left; white-space: nowrap;
  padding: var(--st-e-3) var(--st-e-4);
  background: var(--st-fondo); border-bottom: 1px solid var(--st-borde);
  font-size: var(--st-t-12); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--st-texto-2);
}
.st-tabla td { padding: 14px var(--st-e-4); border-bottom: 1px solid var(--st-borde); vertical-align: middle; }
.st-tabla tr:last-child td { border-bottom: 0; }
.st-tabla tbody tr:hover td { background: #FAFBFC; }
.st-tabla .st-num, .st-tabla .is-num { text-align: right; font-variant-numeric: tabular-nums; }
.st-tabla .is-acciones { text-align: right; white-space: nowrap; width: 1%; }
.st-tabla__sub { display: block; font-size: var(--st-t-12); color: var(--st-texto-2); margin-top: 2px; }
.st-tabla--compacta td { padding: var(--st-e-2) var(--st-e-4); }
.st-tabla tfoot td { font-weight: 600; background: var(--st-fondo); border-top: 1px solid var(--st-borde); }


/* --------------------------------------------------------------------------
   11. Formularios
   -------------------------------------------------------------------------- */
.st-form { display: flex; flex-direction: column; gap: var(--st-e-5); }
.st-form__fila { display: grid; gap: var(--st-e-4); grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.st-campo { display: flex; flex-direction: column; gap: 6px; }
.st-etiqueta { font-size: var(--st-t-13); font-weight: 600; color: var(--st-texto); }
.st-ayuda { font-size: var(--st-t-12); color: var(--st-texto-2); }
.st-error { font-size: var(--st-t-12); color: var(--st-peligro); font-weight: 500; }

.st-entrada, .st-seleccion, .st-area {
  width: 100%; min-height: 44px; padding: 10px var(--st-e-3);
  font-family: var(--st-fuente); font-size: var(--st-t-14); color: var(--st-texto);
  background: var(--st-superficie); border: 1px solid var(--st-borde-fuerte); border-radius: var(--st-radio);
  transition: border-color 120ms ease, box-shadow 120ms ease;
}
.st-area { min-height: 96px; resize: vertical; line-height: 1.5; }
.st-entrada::placeholder, .st-area::placeholder { color: #8A929C; }
.st-entrada:hover, .st-seleccion:hover, .st-area:hover { border-color: #AEB5BE; }
.st-entrada:focus, .st-seleccion:focus, .st-area:focus { outline: none; border-color: var(--st-acento-accion); box-shadow: 0 0 0 3px var(--st-acento-suave); }
.st-entrada[aria-invalid="true"], .st-entrada.is-error { border-color: var(--st-peligro-punto); }
.st-entrada:disabled { background: var(--st-fondo); color: var(--st-texto-2); }

.st-entrada-grupo { position: relative; display: flex; }
.st-entrada-grupo .st-entrada { padding-right: 48px; }
.st-entrada-grupo__boton {
  position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; border: 0; border-radius: var(--st-radio-s);
  background: transparent; color: var(--st-texto-2); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.st-entrada-grupo__boton:hover { background: var(--st-fondo-2); color: var(--st-texto); }

.st-check { display: inline-flex; align-items: center; gap: var(--st-e-2); font-size: var(--st-t-14); }
.st-check input { width: 18px; height: 18px; accent-color: var(--st-acento-accion); }


/* --------------------------------------------------------------------------
   12. Pestañas y filtros
   -------------------------------------------------------------------------- */
.st-pestanas { display: flex; gap: var(--st-e-6); border-bottom: 1px solid var(--st-borde); overflow-x: auto; }
.st-pestanas__item {
  padding: var(--st-e-3) 0; margin-bottom: -1px; white-space: nowrap;
  font-size: var(--st-t-14); font-weight: 500; color: var(--st-texto-2);
  border-bottom: 2px solid transparent; background: none; border-top: 0; border-left: 0; border-right: 0; cursor: pointer;
  font-family: var(--st-fuente);
}
.st-pestanas__item:hover { color: var(--st-texto); text-decoration: none; }
.st-pestanas__item.is-activo, .st-pestanas__item[aria-selected="true"] { color: var(--st-acento-texto); border-bottom-color: var(--st-acento-accion); font-weight: 600; }

/* Filtros tipo píldora: más livianos que un botón */
.st-filtros { display: flex; flex-wrap: wrap; gap: var(--st-e-2); }
.st-filtro {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 6px var(--st-e-3);
  border-radius: var(--st-radio-pill); border: 1px solid var(--st-borde-fuerte); background: var(--st-superficie);
  font-family: var(--st-fuente); font-size: var(--st-t-13); font-weight: 500; color: var(--st-texto-3); cursor: pointer;
}
.st-filtro:hover { background: var(--st-fondo); color: var(--st-texto); text-decoration: none; }
.st-filtro.is-activo, .st-filtro[aria-pressed="true"] { background: var(--st-acento-suave); border-color: transparent; color: var(--st-acento-texto); font-weight: 600; }
.st-filtro__conteo { font-variant-numeric: tabular-nums; color: inherit; opacity: 0.75; }


/* --------------------------------------------------------------------------
   13. Avisos, vacío, carga de archivos
   -------------------------------------------------------------------------- */
.st-aviso { display: flex; gap: var(--st-e-3); align-items: flex-start; padding: var(--st-e-3) var(--st-e-4); border-radius: var(--st-radio); font-size: var(--st-t-14); background: var(--st-info-fondo); color: var(--st-info); }
.st-aviso--exito { background: var(--st-exito-fondo); color: var(--st-exito); }
.st-aviso--alerta { background: var(--st-alerta-fondo); color: var(--st-alerta); }
.st-aviso--peligro { background: var(--st-peligro-fondo); color: var(--st-peligro); }

.st-vacio { display: flex; flex-direction: column; align-items: center; text-align: center; gap: var(--st-e-2); padding: var(--st-e-12) var(--st-e-6); color: var(--st-texto-2); }
.st-vacio__titulo { font-size: var(--st-t-16); font-weight: 600; color: var(--st-texto); }

.st-carga {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: var(--st-e-2);
  padding: var(--st-e-10) var(--st-e-6); border: 1.5px dashed var(--st-borde-fuerte); border-radius: var(--st-radio-l);
  background: var(--st-fondo); cursor: pointer; transition: border-color 120ms ease, background-color 120ms ease;
}
.st-carga:hover, .st-carga.is-arrastrando { border-color: var(--st-acento-accion); background: var(--st-acento-suave); }
.st-carga__titulo { font-size: 15px; font-weight: 600; color: var(--st-texto); }
.st-carga__ayuda { font-size: var(--st-t-13); color: var(--st-texto-2); }


/* --------------------------------------------------------------------------
   14. Inicio de sesión
      <body class="st-login">
        <main class="st-login__panel">
          <div class="st-login__marca">…</div>
          <form class="st-tarjeta st-form">…</form>
        </main>
      </body>
   -------------------------------------------------------------------------- */
.st-login { min-height: 100vh; display: flex; flex-direction: column; }
.st-login::before { content: ""; display: block; height: 3px; background: var(--st-acento-marca); }
.st-login__panel { flex: 1 1 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--st-e-6); padding: var(--st-e-10) var(--st-e-4); }
.st-login__panel > .st-tarjeta { width: 100%; max-width: 400px; padding: var(--st-e-8); }
.st-login__marca { display: flex; flex-direction: column; align-items: center; gap: var(--st-e-2); text-align: center; }
.st-login__marca img { height: 48px; width: auto; }


/* --------------------------------------------------------------------------
   15. Ventana modal
   -------------------------------------------------------------------------- */
.st-modal-fondo { position: fixed; inset: 0; background: rgba(15, 23, 42, 0.45); display: flex; align-items: center; justify-content: center; padding: var(--st-e-4); z-index: 100; }
.st-modal { width: 100%; max-width: 560px; max-height: calc(100vh - 32px); overflow: auto; background: var(--st-superficie); border-radius: var(--st-radio-l); box-shadow: var(--st-sombra-l); display: flex; flex-direction: column; }
.st-modal__cabeza { padding: var(--st-e-5) var(--st-e-6); border-bottom: 1px solid var(--st-borde); display: flex; align-items: center; justify-content: space-between; gap: var(--st-e-3); }
.st-modal__cuerpo { padding: var(--st-e-6); display: flex; flex-direction: column; gap: var(--st-e-4); }
.st-modal__pie { padding: var(--st-e-4) var(--st-e-6); border-top: 1px solid var(--st-borde); display: flex; justify-content: flex-end; gap: var(--st-e-2); }


/* --------------------------------------------------------------------------
   16. Figuras (gráficas e informes)
      <figure class="st-figura">
        <figcaption class="st-figura__titulo"><span class="st-figura__num">Figura 1</span> Título</figcaption>
        … gráfica …
        <p class="st-figura__fuente">Fuente: …</p>
      </figure>
   -------------------------------------------------------------------------- */
.st-figura { margin: 0; background: var(--st-superficie); border: 1px solid var(--st-borde); border-radius: var(--st-radio-l); padding: var(--st-e-6); display: flex; flex-direction: column; gap: var(--st-e-4); }
.st-figura__titulo { display: flex; flex-direction: column; gap: 2px; font-size: var(--st-t-16); font-weight: 600; color: var(--st-texto); }
.st-figura__num { font-size: var(--st-t-12); font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--st-texto-2); }
.st-figura__fuente { font-size: var(--st-t-12); color: var(--st-texto-2); }
.st-leyenda { display: flex; flex-wrap: wrap; gap: var(--st-e-2) var(--st-e-4); font-size: var(--st-t-13); color: var(--st-texto-2); }
.st-leyenda__item { display: inline-flex; align-items: center; gap: 6px; }
.st-leyenda__muestra { width: 10px; height: 10px; border-radius: 3px; }


/* --------------------------------------------------------------------------
   17. Utilidades
   -------------------------------------------------------------------------- */
.st-fila { display: flex; align-items: center; gap: var(--st-e-3); flex-wrap: wrap; }
.st-fila--entre { justify-content: space-between; }
.st-columna { display: flex; flex-direction: column; gap: var(--st-e-3); }
.st-oculto-visual { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }


/* --------------------------------------------------------------------------
   18. Impresión
   -------------------------------------------------------------------------- */
@media print {
  body { background: #FFFFFF; font-size: 11pt; }
  .st-app::before, .st-login::before, .st-barra, .st-menu, .st-encabezado__acciones, .st-btn, .st-filtros, .st-pestanas { display: none !important; }
  .st-contenido { padding: 0; }
  .st-tarjeta, .st-figura, .st-tabla-caja, .st-indicador { box-shadow: none; break-inside: avoid; }
}
