/**
 * Estilos de respaldo del dashboard cuando /_next/static/*.css no carga
 * (caché HTML obsoleta en Hostinger CDN o proxy). Complementa el bloque inline en layout.tsx.
 */

/* Layout base */
.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.hidden { display: none; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.shrink-0 { flex-shrink: 0; }
.min-w-0 { min-width: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }

/* Spacing */
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-3 { padding-top: 0.75rem; padding-bottom: 0.75rem; }
.py-5 { padding-top: 1.25rem; padding-bottom: 1.25rem; }
.pr-3 { padding-right: 0.75rem; }

/* Sizing */
.min-h-screen { min-height: 100vh; }
.min-h-\[40px\] { min-height: 40px; }
.min-h-\[44px\] { min-height: 44px; }
.w-full { width: 100%; }
.max-w-7xl { max-width: 80rem; }
.h-8 { height: 2rem; }

/* Grid */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Typography */
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-mono { font-family: ui-monospace, monospace; }
.uppercase { text-transform: uppercase; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wide { letter-spacing: 0.025em; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.leading-relaxed { line-height: 1.625; }
.whitespace-nowrap { white-space: nowrap; }
.break-all { word-break: break-all; }
.capitalize { text-transform: capitalize; }
.tabular-nums { font-variant-numeric: tabular-nums; }

/* Colors (Tailwind defaults used in dashboard) */
.text-green-600 { color: #16a34a; }
.text-red-600 { color: #dc2626; }
.text-red-800 { color: #991b1b; }
.text-amber-900 { color: #78350f; }
.text-amber-950 { color: #451a03; }
.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-red-50 { background-color: #fef2f2; }
.bg-amber-50 { background-color: #fffbeb; }

/* Borders & radius */
.border { border-width: 1px; border-style: solid; border-color: var(--procasa-border); }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-color: var(--procasa-border); }
.border-t { border-top-width: 1px; border-top-style: solid; border-color: var(--procasa-border); }
.border-dashed { border-style: dashed; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.sticky { position: sticky; }
.top-0 { top: 0; }
.z-10 { z-index: 10; }
.z-30 { z-index: 30; }
.overflow-x-auto { overflow-x: auto; }
.overflow-auto { overflow: auto; }
.cursor-pointer { cursor: pointer; }
.antialiased { -webkit-font-smoothing: antialiased; }

/* Header dashboard */
header.sticky { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(8px); }

/* Nav: evitar subrayado de enlaces del dashboard */
nav[aria-label="Secciones del dashboard"] a {
  text-decoration: none;
}

/* Hover filas tabla */
.hover\:bg-gray-50:hover { background-color: #f9fafb; }

/* Listas */
.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.space-y-2 > * + * { margin-top: 0.5rem; }

/* Align */
.align-top { vertical-align: top; }

/* Responsive sm (640px+) */
@media (min-width: 640px) {
  .sm\:block { display: block; }
  .sm\:flex { display: flex; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sm\:flex-wrap { flex-wrap: wrap; }
  .sm\:items-end { align-items: flex-end; }
  .sm\:gap-2 { gap: 0.5rem; }
  .sm\:gap-6 { gap: 1.5rem; }
  .sm\:px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
  .sm\:py-8 { padding-top: 2rem; padding-bottom: 2rem; }
  .sm\:p-5 { padding: 1.25rem; }
  .sm\:mt-6 { margin-top: 1.5rem; }
  .sm\:text-2xl { font-size: 1.5rem; line-height: 2rem; }
  .sm\:w-40 { width: 10rem; }
  .sm\:w-44 { width: 11rem; }
  .sm\:w-48 { width: 12rem; }
  .sm\:w-56 { width: 14rem; }
  .sm\:w-auto { width: auto; }
  .sm\:min-w-0 { min-width: 0; }
  .sm\:h-9 { height: 2.25rem; }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lg\:px-8 { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 1280px) {
  .xl\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
