/* ==========================================================================
   utilities.css — utilidades atómicas del Design System.
   Consumen tokens; reemplazan las utilidades que aportaba Bootstrap.
   ========================================================================== */

/* Display / flexbox */
.d-flex { display: flex; }
.d-grid { display: grid; }
.d-none { display: none; }
.d-inline-flex { display: inline-flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 auto; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

/* Gaps */
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

/* Márgenes verticales */
.mt-1 { margin-top: var(--space-1); } .mt-2 { margin-top: var(--space-2); }
.mt-3 { margin-top: var(--space-3); } .mt-4 { margin-top: var(--space-4); }
.mt-5 { margin-top: var(--space-5); } .mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-1 { margin-bottom: var(--space-1); } .mb-2 { margin-bottom: var(--space-2); }
.mb-3 { margin-bottom: var(--space-3); } .mb-4 { margin-bottom: var(--space-4); }
.mb-5 { margin-bottom: var(--space-5); } .mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.m-0 { margin: 0; }

/* Dimensiones */
.w-full { width: 100%; }
.h-full { height: 100%; }
.mx-auto { margin-inline: auto; }

/* Texto */
.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--text-primary); }
.text-secondary-2 { color: var(--text-secondary); }
.text-muted-2 { color: var(--text-muted); }
.text-success { color: var(--success-ink); }
.text-danger { color: var(--danger-ink); }
.text-warning { color: var(--warning-ink); }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Peso / tamaño tipográfico */
.fw-800 { font-weight: 800; }
.fw-700 { font-weight: 700; }
.fw-600 { font-weight: 600; }
.fw-500 { font-weight: 500; }
.tight { letter-spacing: -0.02em; }
.tnum { font-variant-numeric: tabular-nums; }
.fs-12 { font-size: var(--fs-12); }
.fs-13 { font-size: var(--fs-13); }
.fs-14 { font-size: var(--fs-14); }

/* Utilidad de accesibilidad: contenido solo para lectores de pantalla */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
