/* ==========================================================
   UTILITIES EXTRA
   Utilidades y helpers adicionales
   Este archivo se carga DESPUÉS de styles_new.css
========================================================== */

/* ==========================================================
   SPACING UTILITIES (adicionales)
========================================================== */
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; }
.mb-6 { margin-bottom: 1.5rem !important; }
.mb-8 { margin-bottom: 2rem !important; }

.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.mt-4 { margin-top: 1rem !important; }
.mt-6 { margin-top: 1.5rem !important; }
.mt-8 { margin-top: 2rem !important; }

.p-4 { padding: 1rem !important; }
.p-6 { padding: 1.5rem !important; }
.p-8 { padding: 2rem !important; }

.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.gap-4 { gap: 1rem !important; }
.gap-6 { gap: 1.5rem !important; }

/* ==========================================================
   FLEXBOX UTILITIES (adicionales)
========================================================== */
.flex { display: flex !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.flex-1 { flex: 1 !important; }
.flex-wrap { flex-wrap: wrap !important; }

/* ==========================================================
   GRID UTILITIES (adicionales)
========================================================== */
.grid { display: grid !important; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }

@media (min-width: 768px) {
    .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .md\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

@media (min-width: 1024px) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, 1fr) !important; }
    .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr) !important; }
    .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr) !important; }
}

/* ==========================================================
   TEXT UTILITIES (adicionales)
========================================================== */
.text-center { text-align: center !important; }
.text-left { text-align: left !important; }
.text-right { text-align: right !important; }

.font-bold { font-weight: 700 !important; }
.font-semibold { font-weight: 600 !important; }
.font-medium { font-weight: 500 !important; }
.font-normal { font-weight: 400 !important; }

.text-sm { font-size: 0.875rem !important; }
.text-base { font-size: 1rem !important; }
.text-lg { font-size: 1.125rem !important; }
.text-xl { font-size: 1.25rem !important; }
.text-2xl { font-size: 1.5rem !important; }

/* ==========================================================
   WIDTH/HEIGHT UTILITIES (adicionales)
========================================================== */
.w-full { width: 100% !important; }
.w-auto { width: auto !important; }
.h-full { height: 100% !important; }
.h-auto { height: auto !important; }

.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-6xl { max-width: 72rem !important; }

/* ==========================================================
   DISPLAY UTILITIES (adicionales)
========================================================== */
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.inline { display: inline !important; }

/* ==========================================================
   BORDER UTILITIES (adicionales)
========================================================== */
.border { border: 1px solid var(--border) !important; }
.border-t { border-top: 1px solid var(--border) !important; }
.border-b { border-bottom: 1px solid var(--border) !important; }
.border-l { border-left: 1px solid var(--border) !important; }
.border-r { border-right: 1px solid var(--border) !important; }
.border-0 { border: none !important; }

.rounded { border-radius: var(--radius) !important; }
.rounded-lg { border-radius: 0.75rem !important; }
.rounded-xl { border-radius: 1rem !important; }
.rounded-full { border-radius: 9999px !important; }

/* ==========================================================
   SHADOW UTILITIES (adicionales)
========================================================== */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important; }
.shadow { box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1) !important; }
.shadow-ios { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important; }
.shadow-ios-lg { box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15) !important; }

/* ==========================================================
   COLOR UTILITIES (adicionales)
========================================================== */
.text-primary { color: var(--primary) !important; }
.text-secondary { color: var(--text-gray) !important; }
.text-muted { color: var(--muted-foreground) !important; }
.text-purple { color: var(--brand-primary) !important; }
.text-destructive { color: var(--destructive) !important; }

/* Dashboard category colors — paleta brandbook */
.text-orange-vivid { color: #EE907B !important; }       /* Salmón 486 — liquidez */
.text-blue-vivid   { color: #323E48 !important; }       /* Gris 432 — patrimonio / rentabilidad */
.text-purple-vivid { color: var(--brand-primary) !important; } /* Rojo Objettiva — seguridad / inmuebles */
.text-red-vivid    { color: var(--obj-red) !important; }

.bg-primary { background-color: var(--primary) !important; }
.bg-secondary { background-color: var(--muted) !important; }
.bg-card { background-color: var(--card) !important; }
.bg-purple { background-color: var(--brand-primary) !important; }
.bg-blue-500 { background-color: #323E48 !important; }  /* Gris 432 — no blue en brandbook */
.bg-green-500 { background-color: #5B6670 !important; } /* Gris 431 — no green en brandbook */
.bg-gray-600 { background-color: #5B6670 !important; }

/* ==========================================================
   CURSOR UTILITIES (adicionales)
========================================================== */
.cursor-pointer { cursor: pointer !important; }
.cursor-default { cursor: default !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* ==========================================================
   OVERFLOW UTILITIES (adicionales)
========================================================== */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.overflow-x-auto { overflow-x: auto !important; }
