/* ═══════════════════════════════════════
   Utilities — Grupo DYT
   ═══════════════════════════════════════ */

/* ── Display ── */
.d-flex   { display: flex; }
.d-grid   { display: grid; }
.d-block  { display: block; }
.d-inline { display: inline; }
.d-none   { display: none; }

/* ── Flexbox ── */
.flex-col     { flex-direction: column; }
.flex-wrap    { flex-wrap: wrap; }
.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; }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* ── Spacing ── */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }

.p-4   { padding: var(--space-4); }
.p-6   { padding: var(--space-6); }
.p-8   { padding: var(--space-8); }
.px-4  { padding-inline: var(--space-4); }
.py-4  { padding-block: var(--space-4); }

/* ── Text ── */
.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }

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

.font-mono    { font-family: var(--font-mono); }
.font-display { font-family: var(--font-display); }
.font-bold    { font-weight: 700; }
.font-medium  { font-weight: 500; }

.uppercase    { text-transform: uppercase; letter-spacing: 0.08em; }
.tracking-wide{ letter-spacing: 0.05em; }
.truncate     { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── Color ── */
.text-primary { color: var(--color-primary); }
.text-accent  { color: var(--color-accent); }
.text-soft    { color: var(--color-ink-soft); }
.text-muted   { color: var(--color-ink-muted); }
.text-ink     { color: var(--color-ink); }
.text-white   { color: #fff; }

.bg-primary   { background-color: var(--color-primary); }
.bg-accent    { background-color: var(--color-accent); }
.bg-elevated  { background-color: var(--color-bg-elevated); }
.bg-dark      { background-color: var(--color-dark-bg, #0B0F19); }

/* ── Borders ── */
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-full { border-radius: 9999px; }

.border     { border: 1px solid var(--color-line); }
.border-top { border-top: 1px solid var(--color-line); }

/* ── Shadows ── */
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }

/* ── Width ── */
.w-full  { width: 100%; }
.max-w-sm  { max-width: 480px; }
.max-w-md  { max-width: 640px; }
.max-w-lg  { max-width: 768px; }
.mx-auto { margin-inline: auto; }

/* ── Responsive show/hide ── */
@media (max-width: 767px) {
  .hide-mobile { display: none; }
}

@media (min-width: 768px) {
  .hide-desktop { display: none; }
}
