/* ─────────────────────────────────────────────────────────────
   CSS DE RESPALDO — SOLO se activa cuando Tailwind NO carga.
   Todas las reglas están bajo "html.no-tailwind" para no interferir
   con Tailwind cuando funciona correctamente.
───────────────────────────────────────────────────────────── */

/* Reset mínimo (siempre — no afecta el layout) */
*, *::before, *::after { box-sizing: border-box; }

/* Estilos de respaldo — solo aplican si Tailwind NO cargó */
html.no-tailwind body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
}

html.no-tailwind .max-w-7xl,
html.no-tailwind .max-w-\[1400px\] { max-width: 1400px; margin: 0 auto; }
html.no-tailwind .max-w-6xl { max-width: 1152px; margin: 0 auto; }
html.no-tailwind .max-w-5xl { max-width: 1024px; margin: 0 auto; }
html.no-tailwind .max-w-3xl { max-width: 768px; margin: 0 auto; }
html.no-tailwind .max-w-md  { max-width: 28rem; margin: 0 auto; }

html.no-tailwind nav {
  background: #fff; border-bottom: 1px solid #e2e8f0; padding: 10px 24px;
  display: flex; align-items: center; justify-content: space-between;
}
html.no-tailwind nav a {
  color: #475569; text-decoration: none; padding: 6px 12px;
  border-radius: 6px; font-weight: 500; margin-right: 4px;
}
html.no-tailwind nav a:hover { background: #f1f5f9; color: #0f172a; }

html.no-tailwind main { padding: 24px; }

html.no-tailwind .bg-white {
  background: #fff; border: 1px solid #e2e8f0;
  border-radius: 10px; padding: 16px; margin-bottom: 16px;
}

html.no-tailwind h1 { font-size: 24px; font-weight: 700; margin: 0 0 4px; }
html.no-tailwind h2 { font-size: 18px; font-weight: 600; margin: 0 0 8px; }
html.no-tailwind h3 { font-size: 14px; font-weight: 600; margin: 0 0 6px; }

html.no-tailwind button {
  display: inline-block; padding: 8px 14px; border: 1px solid #cbd5e1;
  border-radius: 6px; background: #f8fafc; color: #0f172a;
  font-size: 14px; cursor: pointer; font-weight: 500;
}
html.no-tailwind button:hover { background: #e2e8f0; }

/* Botones solo-ícono: conservar forma, centrado y color aunque se active el respaldo */
html.no-tailwind .ibtn, html.no-tailwind .ibtn-c {
  display: inline-flex !important; align-items: center; justify-content: center;
  padding: 0 !important; border-radius: 9px; border: none;
}
html.no-tailwind .ibtn { width: 36px; height: 36px; }
html.no-tailwind .ibtn-c { width: 40px; height: 40px; }
html.no-tailwind .ibtn.border { background: #fff; border: 1px solid #cbd5e1; color: #475569; }
html.no-tailwind .bx-ic { width: 18px !important; height: 18px !important; display: block; }
html.no-tailwind .ibtn-c .bx-ic { width: 20px !important; height: 20px !important; }
html.no-tailwind .bg-teal-600   { background: #0d9488 !important; color: #fff; }
html.no-tailwind .bg-indigo-600 { background: #4f46e5 !important; color: #fff; }
html.no-tailwind .bg-green-600  { background: #16a34a !important; color: #fff; }
html.no-tailwind .bg-amber-600  { background: #d97706 !important; color: #fff; }
html.no-tailwind .bg-sky-600    { background: #0284c7 !important; color: #fff; }
html.no-tailwind .bg-slate-800, html.no-tailwind .bg-slate-900,
html.no-tailwind .bg-slate-700 {
  background: #1e293b; color: #fff; border-color: #1e293b;
}
html.no-tailwind .bg-emerald-600 { background: #059669; color: #fff; }
html.no-tailwind .bg-blue-600, html.no-tailwind .bg-sky-600 { background: #2563eb; color: #fff; }
html.no-tailwind .bg-red-600 { background: #dc2626; color: #fff; }
html.no-tailwind .bg-orange-600 { background: #ea580c; color: #fff; }
html.no-tailwind .bg-purple-600 { background: #9333ea; color: #fff; }

html.no-tailwind input, html.no-tailwind select, html.no-tailwind textarea {
  font: inherit; padding: 8px 12px; border: 1px solid #cbd5e1; border-radius: 6px;
  background: #fff; color: #0f172a; width: 100%; outline: none;
}
html.no-tailwind input:focus, html.no-tailwind select:focus { border-color: #475569; }

html.no-tailwind table { width: 100%; border-collapse: collapse; font-size: 14px; }
html.no-tailwind th {
  background: #f1f5f9; color: #475569; padding: 10px 12px; text-align: left;
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.04em;
  font-weight: 700; border-bottom: 2px solid #e2e8f0;
}
html.no-tailwind td { padding: 10px 12px; border-bottom: 1px solid #f1f5f9; vertical-align: top; }
html.no-tailwind tr:hover td { background: #f8fafc; }

html.no-tailwind .grid { display: grid; gap: 12px; }
html.no-tailwind .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
html.no-tailwind .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
html.no-tailwind .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
html.no-tailwind .col-span-2 { grid-column: span 2; }
html.no-tailwind .col-span-3 { grid-column: span 3; }
html.no-tailwind .col-span-4 { grid-column: span 4; }

html.no-tailwind .flex { display: flex; }
html.no-tailwind .items-center { align-items: center; }
html.no-tailwind .justify-between { justify-content: space-between; }
html.no-tailwind .justify-end { justify-content: flex-end; }
html.no-tailwind .gap-2 { gap: 8px; }
html.no-tailwind .gap-3 { gap: 12px; }
html.no-tailwind .gap-4 { gap: 16px; }

html.no-tailwind .text-right { text-align: right; }
html.no-tailwind .text-center { text-align: center; }
html.no-tailwind .text-xs { font-size: 11px; }
html.no-tailwind .text-sm { font-size: 13px; }
html.no-tailwind .font-bold { font-weight: 700; }
html.no-tailwind .font-semibold { font-weight: 600; }
html.no-tailwind .uppercase { text-transform: uppercase; }

html.no-tailwind .rounded-lg { border-radius: 8px; }
html.no-tailwind .rounded { border-radius: 6px; }
html.no-tailwind .shadow-sm { box-shadow: 0 1px 2px rgba(0,0,0,.05); }

html.no-tailwind .hidden { display: none; }
html.no-tailwind .w-full { width: 100%; }
html.no-tailwind .min-h-screen { min-height: 100vh; }

@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
