/*
 * tw-supplement.css — utilidades Tailwind que NO están en el dashboard.css compilado.
 *
 * dashboard.css es una compilación PARCIAL de Tailwind (Tailwind no corre en el build
 * Docker). Muchos templates usan clases de layout/color que no quedaron compiladas
 * (max-w-5xl, max-w-6xl, bg-blue-600, text-slate-900, grid-cols-*, etc.) → el elemento
 * se renderiza sin esa propiedad (ancho completo, botón sin fondo...).
 *
 * Este fichero rellena esas utilidades con sus valores Tailwind estándar. Se incluye
 * DESPUÉS de dashboard.css en las plantillas base, así que añade sin pisar lo compilado.
 * Valores: tabla por defecto de Tailwind (rem / paleta slate/blue/gray/green/amber/red).
 */

/* ── max-width (los que faltan) ─────────────────────────────────────────── */
.max-w-none { max-width: none; }
.max-w-xs   { max-width: 20rem; }
.max-w-lg   { max-width: 32rem; }
.max-w-xl   { max-width: 36rem; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-6xl  { max-width: 72rem; }
.max-w-7xl  { max-width: 80rem; }

/* ── min-width puntuales ────────────────────────────────────────────────── */
.min-w-36 { min-width: 9rem; }
.min-w-44 { min-width: 11rem; }

/* ── grid-cols (layout de rejillas) ─────────────────────────────────────── */
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ── flex / spacing puntuales ───────────────────────────────────────────── */
.flex-shrink-0 { flex-shrink: 0; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2\.5 { gap: 0.625rem; }
.space-y-8 > :not([hidden]) ~ :not([hidden]) { margin-top: 2rem; }
.border-b { border-bottom-width: 1px; }
.border-collapse { border-collapse: collapse; }
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1); }

/* ── font-size puntuales ────────────────────────────────────────────────── */
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-6xl  { font-size: 3.75rem; line-height: 1; }

/* ── colores de texto (paleta Tailwind por defecto) ─────────────────────── */
.text-slate-900 { color: #0f172a; }
.text-slate-600 { color: #475569; }
.text-gray-900 { color: #111827; }
.text-gray-600 { color: #4b5563; }
.text-gray-500 { color: #6b7280; }
.text-gray-400 { color: #9ca3af; }
.text-blue-600 { color: #2563eb; }
.text-green-700 { color: #15803d; }
.text-amber-800 { color: #92400e; }
.text-amber-600 { color: #d97706; }
.text-amber-500 { color: #f59e0b; }
.text-red-500 { color: #ef4444; }
.text-red-400 { color: #f87171; }
.text-red-300 { color: #fca5a5; }
.text-orange-300 { color: #fdba74; }
.text-yellow-300 { color: #fde047; }
.hover\:text-slate-900:hover { color: #0f172a; }

/* ── colores de fondo ───────────────────────────────────────────────────── */
.bg-blue-600 { background-color: #2563eb; }
.bg-green-100 { background-color: #dcfce7; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-slate-800 { background-color: #1e293b; }
.hover\:bg-blue-700:hover { background-color: #1d4ed8; }
.hover\:bg-blue-500:hover { background-color: #3b82f6; }

/* ── bordes de color ────────────────────────────────────────────────────── */
.border-slate-600 { border-color: #475569; }
.border-amber-200 { border-color: #fde68a; }
.focus\:border-blue-500:focus { border-color: #3b82f6; }
.border-astropalo-300 { border-color: #93c5fd; }
.border-emerald-200 { border-color: #a7f3d0; }
.border-indigo-200 { border-color: #c7d2fe; }

/* ── padding (p-*, py-*, pt-*) que faltan ───────────────────────────────── */
.p-6  { padding: 1.5rem; }
.p-8  { padding: 2rem; }
.p-10 { padding: 2.5rem; }
.p-12 { padding: 3rem; }
.py-2   { padding-top: 0.5rem;   padding-bottom: 0.5rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.pt-2 { padding-top: 0.5rem; }

/* ── margin (ml-*, mr-*, mt-*) que faltan ──────────────────────────────── */
.ml-1 { margin-left: 0.25rem; }
.ml-2 { margin-left: 0.5rem; }
.ml-4 { margin-left: 1rem; }
.mr-2 { margin-right: 0.5rem; }
.mt-5 { margin-top: 1.25rem; }

/* ── flex / alignment ───────────────────────────────────────────────────── */
.items-end { align-items: flex-end; }
.gap-1 { gap: 0.25rem; }

/* ── colores de texto adicionales ───────────────────────────────────────── */
.text-astropalo-500 { color: #3e7bff; }
.text-astropalo-700 { color: #1d4ed8; }
.text-emerald-500 { color: #10b981; }
.text-emerald-600 { color: #059669; }
.text-red-800 { color: #991b1b; }
.hover\:text-red-500:hover { color: #ef4444; }

/* ── colores de fondo adicionales ───────────────────────────────────────── */
.bg-indigo-50 { background-color: #eef2ff; }
.hover\:bg-astropalo-50:hover  { background-color: #f2f7ff; }
.hover\:bg-astropalo-100:hover { background-color: #e6efff; }
.hover\:bg-emerald-50:hover    { background-color: #ecfdf5; }

/* ── hover / transition ─────────────────────────────────────────────────── */
.hover\:opacity-90:hover { opacity: 0.9; }
.transition-colors {
  transition-property: color, background-color, border-color, text-decoration-color, fill, stroke;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
  transition-duration: 150ms;
}

/* ── focus ring adicional ───────────────────────────────────────────────── */
.focus\:ring-2:focus {
  --tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);
  --tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);
  box-shadow: var(--tw-ring-offset-shadow), var(--tw-ring-shadow), var(--tw-shadow, 0 0 #0000);
}
.focus\:ring-astropalo-400:focus {
  --tw-ring-opacity: 1;
  --tw-ring-color: rgb(115 161 255 / var(--tw-ring-opacity, 1));
}

/* ── typography ─────────────────────────────────────────────────────────── */
.font-normal { font-weight: 400; }
.tracking-wide { letter-spacing: 0.025em; }
