/*
 * app.css — fallback manual mientras se compila Tailwind con `npm run build`.
 *
 * Este sandbox de desarrollo no tuvo acceso al registro de npm para
 * descargar Tailwind, así que este archivo es un CSS a mano que cubre
 * las clases usadas en las vistas actuales (home, login, registro, layout).
 * Es 100% reemplazado al correr en tu máquina:
 *
 *   npm install
 *   npm run build
 *
 * eso generará este mismo archivo con Tailwind real (purgado, minificado)
 * y todas las utilidades quedarán disponibles para las vistas nuevas de
 * las próximas fases.
 */

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

.bg-slate-50 { background-color: #f8fafc; }
.bg-white { background-color: #fff; }
.bg-brand-600 { background-color: #164cb6; }
.bg-emerald-100 { background-color: #d1fae5; }
.bg-red-50 { background-color: #fef2f2; }

.text-white { color: #fff; }
.text-slate-400 { color: #94a3b8; }
.text-slate-500 { color: #64748b; }
.text-slate-600 { color: #475569; }
.text-slate-700 { color: #334155; }
.text-slate-800 { color: #1e293b; }
.text-slate-900 { color: #0f172a; }
.text-brand-600 { color: #164cb6; }
.text-brand-700 { color: #113d92; }
.text-emerald-800 { color: #065f46; }
.text-red-700 { color: #b91c1c; }

.border { border-width: 1px; border-style: solid; border-color: #e2e8f0; }
.border-slate-200 { border-color: #e2e8f0; }
.border-slate-300 { border-color: #cbd5e1; }
.border-emerald-300 { border-color: #6ee7b7; }
.border-red-200 { border-color: #fecaca; }

.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-2xl { border-radius: 1rem; }
.rounded-md { border-radius: 0.375rem; }

.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.inline-flex { display: inline-flex; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.grid { display: grid; grid-template-columns: minmax(0, 1fr); }
/* Evita que un hijo con contenido ancho (ej. un párrafo largo o una fila
   de botones) fuerce que toda la grilla se ensanche más que la pantalla
   en vez de envolver — el "min-width: auto" por defecto de los items de
   grid es la causa más común de scroll horizontal no deseado. No se
   aplica lo mismo a los hijos de .flex en general porque encogería
   botones/íconos por debajo de su contenido; el contenedor .flex-wrap
   ya envuelve correctamente una vez que su ancestro de grid no se sale. */
.grid > * { min-width: 0; }
.gap-1 { gap: 0.25rem; }
.gap-1\.5 { gap: 0.375rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.block { display: block; }
.inline-block { display: inline-block; }

.min-h-screen { min-height: 100vh; }
.max-w-5xl { max-width: min(92rem, calc(100vw - 3rem)); }
.max-w-md { max-width: 28rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
.w-full { width: 100%; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }

/* Tamaños de ícono (SVG de App\Core\Icon) — deben cubrir TODOS los que se
   usan en las vistas (ver Icon::render($name, $class)), porque un SVG sin
   estos w-N/h-N no tiene ancho/alto propio y el navegador lo dibuja a su
   tamaño por defecto (bastante grande) — eso causaba los "íconos gigantes"
   reportados. Si agregas un ícono con un tamaño nuevo, agrégalo aquí también. */
.w-3 { width: 0.75rem; }
.h-3 { height: 0.75rem; }
.w-3\.5 { width: 0.875rem; }
.h-3\.5 { height: 0.875rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }
.w-5 { width: 1.25rem; }
.h-5 { height: 1.25rem; }
.w-6 { width: 1.5rem; }
.h-6 { height: 1.5rem; }
.w-7 { width: 1.75rem; }
.h-7 { height: 1.75rem; }
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-10 { width: 2.5rem; }
.h-10 { height: 2.5rem; }
.w-12 { width: 3rem; }
.h-12 { height: 3rem; }

.p-4 { padding: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.px-3 { padding-left: 0.75rem; padding-right: 0.75rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.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-6 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.py-8 { padding-top: 2rem; padding-bottom: 2rem; }

.space-x-4 > * + * { margin-left: 1rem; }
.space-y-4 > * + * { margin-top: 1rem; }

.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.tracking-tight { letter-spacing: -0.025em; }

/* Reducidos ~10-12% de forma global (no solo en la pantalla de envío) —
   ver reporte: "de forma global reduzcas el tamaño de todos los
   títulos... no solo aquí sino en todo el sistema" — los títulos con
   font-bold/text-2xl-xl-lg se sentían demasiado grandes en las tarjetas
   flotantes y en general. */
.text-2xl { font-size: 1.3rem; line-height: 1.75rem; }
.text-xl { font-size: 1.1rem; line-height: 1.5rem; }
.text-lg { font-size: 1rem; line-height: 1.4rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-center { text-align: center; }

.list-disc { list-style-type: disc; }
.list-inside { list-style-position: inside; }
.underline { text-decoration: underline; }

a { color: inherit; text-decoration: none; }

input, select, button { font: inherit; }

.hover\:underline:hover { text-decoration: underline; }
.hover\:bg-brand-700:hover { background-color: #113d92; }

.h-8 { height: 2rem; }
.w-auto { width: auto; }
.border-t { border-top-width: 1px; border-top-style: solid; border-top-color: #e2e8f0; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #e2e8f0; }
.mt-8 { margin-top: 2rem; }
img { max-width: 100%; height: auto; display: inline-block; vertical-align: middle; }

@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)); }
  .sm\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
