/* ==========================================================================
   Sofia — CSS base

   En producción esto se genera con Tailwind CLI.
   En desarrollo este archivo incluye los estilos base mínimos
   para que la app funcione antes de compilar Tailwind.

   Ejecutar para generar producción:
     npx tailwindcss -i src/sofia/static/css/input.css -o src/sofia/static/css/app.css --minify
   ========================================================================== */

/* --- Reset mínimo --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* --- Tipografía --- */
.font-sans {
    font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
}

.font-mono {
    font-family: 'IBM Plex Mono', ui-monospace, monospace;
}

.font-display {
    font-family: 'Rajdhani', 'IBM Plex Sans', system-ui, sans-serif;
}

/* --- Tailwind utility classes (subset mínimo para desarrollo) --- */
.h-full { height: 100%; }
.min-h-full { min-height: 100%; }
.w-full { width: 100%; }
.max-w-md { max-width: 28rem; }
.max-w-lg { max-width: 32rem; }
.flex { display: flex; }
.flex-1 { flex: 1 1 0%; }
.flex-col { flex-direction: column; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.items-end { align-items: flex-end; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.space-y-1 > * + * { margin-top: 0.25rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }
.space-y-8 > * + * { margin-top: 2rem; }
.overflow-hidden { overflow: hidden; }
.overflow-y-auto { overflow-y: auto; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whitespace-pre-wrap { white-space: pre-wrap; }

/* Spacing */
.p-3 { padding: 0.75rem; }
.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; }
.px-6 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-2 { padding-top: 0.5rem; padding-bottom: 0.5rem; }
.py-16 { padding-top: 4rem; padding-bottom: 4rem; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.ml-3 { margin-left: 0.75rem; }
.mr-3 { margin-right: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* Sizing */
.h-5 { height: 1.25rem; }
.h-6 { height: 1.5rem; }
.h-8 { height: 2rem; }
.h-12 { height: 3rem; }
.h-16 { height: 4rem; }
.w-5 { width: 1.25rem; }
.w-6 { width: 1.5rem; }
.w-8 { width: 2rem; }
.w-12 { width: 3rem; }
.w-64 { width: 16rem; }

/* 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; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.text-center { text-align: center; }
.antialiased { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.resize-none { resize: none; }

/* Colors */
.text-white { color: #fff; }
.text-gray-300 { color: #d1d5db; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-800 { color: #1f2937; }
.text-gray-900 { color: #111827; }
.text-indigo-600 { color: #4f46e5; }
.text-indigo-700 { color: #4338ca; }
.text-red-600 { color: #dc2626; }
.text-red-700 { color: #b91c1c; }
.text-green-700 { color: #15803d; }
.text-yellow-700 { color: #a16207; }
.text-orange-700 { color: #c2410c; }
.text-amber-600 { color: #d97706; }

.bg-white { background-color: #fff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-200 { background-color: #e5e7eb; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-100 { background-color: #e0e7ff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-red-50 { background-color: #fef2f2; }
.bg-red-100 { background-color: #fee2e2; }
.bg-red-600 { background-color: #dc2626; }
.bg-green-100 { background-color: #dcfce7; }
.bg-green-600 { background-color: #16a34a; }
.bg-yellow-100 { background-color: #fef9c3; }
.bg-orange-100 { background-color: #ffedd5; }

/* Borders */
.border { border-width: 1px; border-style: solid; }
.border-b { border-bottom-width: 1px; border-bottom-style: solid; }
.border-t { border-top-width: 1px; border-top-style: solid; }
.border-gray-300 { border-color: #d1d5db; }
.rounded { border-radius: 0.25rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-xl { border-radius: 0.75rem; }
.rounded-full { border-radius: 9999px; }
.ring-1 { box-shadow: 0 0 0 1px; }
.ring-gray-100 { --tw-ring-color: #f3f4f6; }

/* Effects */
.shadow-sm { box-shadow: 0 1px 2px 0 rgb(0 0 0 / 0.05); }
.shadow-lg { box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); }

/* Interactive */
.cursor-not-allowed { cursor: not-allowed; }
.accent-indigo-600 { accent-color: #4f46e5; }

a { color: inherit; text-decoration: inherit; }
button { cursor: pointer; }

.hover\:bg-gray-100:hover { background-color: #f3f4f6; }
.hover\:bg-indigo-50:hover { background-color: #eef2ff; }
.hover\:bg-indigo-500:hover { background-color: #6366f1; }
.hover\:bg-green-500:hover { background-color: #22c55e; }
.hover\:bg-red-500:hover { background-color: #ef4444; }
.hover\:text-gray-600:hover { color: #4b5563; }
.hover\:text-indigo-500:hover { color: #6366f1; }
.hover\:text-indigo-700:hover { color: #4338ca; }

.disabled\:opacity-50:disabled { opacity: 0.5; }
.disabled\:cursor-not-allowed:disabled { cursor: not-allowed; }

.focus\:border-indigo-500:focus { border-color: #4f46e5; }
.focus\:outline-none:focus { outline: 2px solid transparent; outline-offset: 2px; }
.focus\:ring-1:focus { box-shadow: 0 0 0 1px #4f46e5; }
.focus\:ring-2:focus { box-shadow: 0 0 0 2px #4f46e5; }
.focus\:ring-indigo-500:focus { --tw-ring-color: #4f46e5; }
.focus\:ring-offset-2:focus { box-shadow: 0 0 0 2px #fff, 0 0 0 4px #4f46e5; }

/* Positioning */
.relative { position: relative; }
.absolute { position: absolute; }
.fixed { position: fixed; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0; }
.bottom-0 { bottom: 0; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.transform { transform: translateX(0); }
.-translate-x-full { transform: translateX(-100%); }
.translate-x-0 { transform: translateX(0); }
.transition-transform { transition-property: transform; transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1); }
.duration-200 { transition-duration: 200ms; }

/* Block */
.block { display: block; }
.inline-flex { display: inline-flex; }
.hidden { display: none; }

/* bg overlay */
.bg-black\/50 { background-color: rgb(0 0 0 / 0.5); }

/* Responsive: lg (1024px+) */
@media (min-width: 1024px) {
    .lg\:relative { position: relative; }
    .lg\:translate-x-0 { transform: translateX(0) !important; }
    .lg\:hidden { display: none; }
}

/* Alpine.js x-cloak */
[x-cloak] { display: none !important; }

/* Server default: border color */
input, textarea, select {
    border-color: #d1d5db;
}

/* Custom: py-2.5 */
.py-2\.5 { padding-top: 0.625rem; padding-bottom: 0.625rem; }
.py-1\.5 { padding-top: 0.375rem; padding-bottom: 0.375rem; }
.py-0\.5 { padding-top: 0.125rem; padding-bottom: 0.125rem; }
