/* Estilos propios mínimos. Tailwind se sirve desde static/vendor/tailwind.js. */

[x-cloak] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.15s ease, color 0.15s ease;
}

/* Tema claro/oscuro. El script del head agrega .dark a <html>. */
html {
  color-scheme: light;
}

html.dark {
  color-scheme: dark;
  background-color: #020617;
}

html.dark body {
  background-color: #020617;
  color: #f1f5f9;
}

.theme-icon-sun {
  display: none;
}

.dark .theme-icon-sun {
  display: block;
}

.dark .theme-icon-moon {
  display: none;
}

/* Superficies */
.dark .bg-white {
  background-color: #0f172a;
}

.dark .bg-slate-50 {
  background-color: #1e293b;
}

.dark .bg-slate-100 {
  background-color: #1e293b;
}

.dark .bg-slate-200 {
  background-color: #334155;
}

.dark .bg-slate-700 {
  background-color: #334155;
}

.dark .bg-slate-800 {
  background-color: #1e293b;
}

.dark .bg-slate-900 {
  background-color: #020617;
}

/* Texto */
.dark .text-slate-900 {
  color: #f8fafc;
}

.dark .text-slate-800 {
  color: #e2e8f0;
}

.dark .text-slate-700 {
  color: #cbd5e1;
}

.dark .text-slate-600,
.dark .text-slate-500,
.dark .text-slate-400 {
  color: #94a3b8;
}

.dark .text-slate-300 {
  color: #cbd5e1;
}

/* Bordes y divisores */
.dark .border-slate-200,
.dark .border-slate-100 {
  border-color: #1e293b;
}

.dark .border-slate-300 {
  border-color: #334155;
}

.dark .divide-slate-200 > :not([hidden]) ~ :not([hidden]),
.dark .divide-slate-100 > :not([hidden]) ~ :not([hidden]) {
  border-color: #1e293b;
}

/* Hover */
.dark .hover\:bg-slate-50:hover,
.dark .hover\:bg-slate-800:hover {
  background-color: #1e293b;
}

.dark .hover\:bg-slate-100:hover,
.dark .hover\:bg-slate-200:hover {
  background-color: #334155;
}

.dark .hover\:text-slate-900:hover,
.dark .hover\:text-slate-100:hover {
  color: #f8fafc;
}

/* Estados */
.dark .bg-emerald-50 {
  background-color: #022c22;
}

.dark .bg-emerald-100 {
  background-color: #064e3b;
}

.dark .border-emerald-200 {
  border-color: #065f46;
}

.dark .text-emerald-700,
.dark .text-emerald-800 {
  color: #6ee7b7;
}

.dark .text-emerald-900 {
  color: #a7f3d0;
}

.dark .hover\:bg-emerald-50:hover {
  background-color: #064e3b;
}

.dark .bg-rose-50 {
  background-color: #4c0519;
}

.dark .bg-rose-100 {
  background-color: #7f1d1d;
}

.dark .border-rose-100,
.dark .border-rose-200 {
  border-color: #9f1239;
}

.dark .text-rose-700,
.dark .text-rose-800 {
  color: #fda4af;
}

.dark .text-rose-900 {
  color: #fecdd3;
}

.dark .hover\:bg-rose-50:hover {
  background-color: #7f1d1d;
}

.dark .bg-amber-50 {
  background-color: #451a03;
}

.dark .bg-amber-100 {
  background-color: #78350f;
}

.dark .border-amber-100,
.dark .border-amber-200 {
  border-color: #92400e;
}

.dark .text-amber-700,
.dark .text-amber-800 {
  color: #fcd34d;
}

.dark .text-amber-900 {
  color: #fde68a;
}

.dark .hover\:bg-amber-50:hover {
  background-color: #78350f;
}

.dark .bg-sky-50 {
  background-color: #082f49;
}

.dark .bg-sky-100 {
  background-color: #0c4a6e;
}

.dark .bg-indigo-100 {
  background-color: #312e81;
}

.dark .text-indigo-800 {
  color: #c7d2fe;
}

.dark .border-sky-200 {
  border-color: #075985;
}

.dark .text-sky-600,
.dark .text-sky-700,
.dark .text-sky-800 {
  color: #7dd3fc;
}

.dark .hover\:bg-sky-50:hover {
  background-color: #0c4a6e;
}

.dark .hover\:text-sky-800:hover {
  color: #bae6fd;
}

/* Formularios */
.dark input,
.dark select,
.dark textarea {
  background-color: #0f172a;
  color: #e2e8f0;
}

.dark input::placeholder,
.dark textarea::placeholder {
  color: #64748b;
}

.dark input[type="file"]::file-selector-button {
  background-color: #1e293b;
  color: #e2e8f0;
}

