/* ═══════════════════════════════════════════════════════════
   IBBQ LMS — utils.css
   Clases de utilidad: flex · spacing · tipografía · colores
   Requiere: tokens.css
   ═══════════════════════════════════════════════════════════ */

/* ── Display / Flex ──────────────────────────────────────── */
.flex            { display: flex; }
.d-flex          { display: flex; }
.flex-col        { display: flex; flex-direction: column; }
.flex-wrap       { flex-wrap: wrap; }
.flex-1          { flex: 1; }
.flex-shrink-0   { flex-shrink: 0; }
.items-center    { align-items: center; }
.items-start     { align-items: flex-start; }
.items-end       { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center  { justify-content: center; }
.justify-end     { justify-content: flex-end; }
.min-w-0         { min-width: 0; }
.w-full          { width: 100%; }
.h-full          { height: 100%; }

/* ── Gap ─────────────────────────────────────────────────── */
.gap-2   { gap: var(--sp-2); }
.gap-3   { gap: var(--sp-3); }
.gap-4   { gap: var(--sp-4); }
.gap-6   { gap: 6px; }
.gap-8   { gap: 8px; }
.gap-10  { gap: 10px; }
.gap-12  { gap: 12px; }
.gap-14  { gap: 14px; }
.gap-16  { gap: 16px; }
.gap-18  { gap: 18px; }
.gap-20  { gap: 20px; }
.gap-24  { gap: 24px; }

/* ── Margin top ──────────────────────────────────────────── */
.mt-4    { margin-top: 4px; }
.mt-6    { margin-top: 6px; }
.mt-8    { margin-top: 8px; }
.mt-10   { margin-top: 10px; }
.mt-12   { margin-top: 12px; }
.mt-16   { margin-top: 16px; }
.mt-20   { margin-top: 20px; }
.mt-24   { margin-top: 24px; }

/* ── Margin bottom ───────────────────────────────────────── */
.mb-0    { margin-bottom: 0; }
.mb-4    { margin-bottom: 4px; }
.mb-6    { margin-bottom: 6px; }
.mb-8    { margin-bottom: 8px; }
.mb-10   { margin-bottom: 10px; }
.mb-12   { margin-bottom: 12px; }
.mb-14   { margin-bottom: 14px; }
.mb-16   { margin-bottom: 16px; }
.mb-20   { margin-bottom: 20px; }
.mb-24   { margin-bottom: 24px; }
.mb-28   { margin-bottom: 28px; }
.mb-32   { margin-bottom: 32px; }

/* ── Padding ─────────────────────────────────────────────── */
.p-0     { padding: 0; }
.p-14    { padding: 14px; }
.p-16    { padding: 16px; }
.p-20    { padding: 20px; }
.pt-16   { padding-top: 16px; }
.pb-16   { padding-bottom: 16px; }

/* ── Border ──────────────────────────────────────────────── */
.border-top    { border-top: 1px solid var(--border); }
.border-bottom { border-bottom: 1px solid var(--border); }

/* ── Overflow ────────────────────────────────────────────── */
.overflow-hidden  { overflow: hidden; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Texto ───────────────────────────────────────────────── */
.text-center  { text-align: center; }
.text-right   { text-align: right; }
.text-left    { text-align: left; }
.uppercase    { text-transform: uppercase; letter-spacing: 0.05em; }
.italic       { font-style: italic; }

/* ── Font size ───────────────────────────────────────────── */
.fs-10   { font-size: 10px; }
.fs-11   { font-size: 11px; }
.fs-12   { font-size: 12px; }
.fs-13   { font-size: 13px; }
.fs-14   { font-size: 14px; }
.fs-15   { font-size: 15px; }
.text-sm { font-size: 12px; }

/* ── Font weight ─────────────────────────────────────────── */
.fw-500       { font-weight: 500; }
.fw-600       { font-weight: 600; }
.fw-700       { font-weight: 700; }
.fw-800       { font-weight: 800; }
.fw-900       { font-weight: 900; }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

/* ── Font family ─────────────────────────────────────────── */
.font-raleway    { font-family: 'Raleway', sans-serif; }
.font-mono       { font-family: 'DM Mono', monospace; }
.font-mono-bold  { font-family: 'DM Mono', monospace; font-weight: 700; }

/* ── Color texto ─────────────────────────────────────────── */
.text-muted   { color: var(--muted); }
.text-navy    { color: var(--navy); }
.text-azul    { color: var(--azul); }
.text-info    { color: var(--info); }
.text-danger  { color: var(--danger); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-2       { color: var(--text-2); }

/* ── Line height ─────────────────────────────────────────── */
.lh-1   { line-height: 1; }
.lh-15  { line-height: 1.5; }
.lh-17  { line-height: 1.7; }
.lh-2   { line-height: 2; }
.lh-22  { line-height: 2.2; }

/* ── Divider vertical (para separar stat-mini en fila) ───── */
.vdivider {
  width: 1px;
  background: var(--border);
  align-self: stretch;
  flex-shrink: 0;
  margin: 0 4px;
}
