@foreach($topStats as $key => $stat)
@php
$colors = [
'slate' => ['text' => 'text-slate-600', 'bg' => 'bg-slate-50', 'icon' => 'text-slate-500'],
'indigo' => ['text' => 'text-indigo-600', 'bg' => 'bg-indigo-50', 'icon' => 'text-indigo-500'],
'emerald' => ['text' => 'text-emerald-600', 'bg' => 'bg-emerald-50', 'icon' => 'text-emerald-500'],
'violet' => ['text' => 'text-violet-600', 'bg' => 'bg-violet-50', 'icon' => 'text-violet-500'],
'rose' => ['text' => 'text-rose-600', 'bg' => 'bg-rose-50', 'icon' => 'text-rose-500'],
'blue' => ['text' => 'text-blue-600', 'bg' => 'bg-blue-50', 'icon' => 'text-blue-500'],
'amber' => ['text' => 'text-amber-600', 'bg' => 'bg-amber-50', 'icon' => 'text-amber-500'],
'orange' => ['text' => 'text-orange-600', 'bg' => 'bg-orange-50', 'icon' => 'text-orange-500'],
];
$c = $colors[$stat['color']] ?? $colors['slate'];
// Estilo especial para atrasados para resaltarlo
$isAtrasado = ($key === 'atrasado');
@endphp
@endforeach