/* =========================================================
   WIRTZ HUB · BASE
   Reset global · fondo premium · dark safe · scrollbars
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
}

body {
  min-height: 100vh;
  margin: 0;

  font-family: var(--font);

  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(0, 0, 0, 0.035), transparent 34%),
    linear-gradient(135deg, var(--bg-soft), var(--bg));

  overflow-x: hidden;

  transition:
    background var(--transition),
    color var(--transition);
}

/* Dark premium real: negro/gris, sin azul */
html[data-theme="dark"] body {
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.035), transparent 32%),
    linear-gradient(135deg, #070707, #0b0b0b 48%, #111111);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::selection {
  background: var(--yellow);
  color: #000000;
}

#app {
  min-height: 100vh;
}

/* Lucide global */
.icon {
  width: 13px;
  height: 13px;
  stroke-width: 1.75;
}

.app-empty {
  padding: 14px;
  color: var(--muted);
}

/* =========================================================
   SCROLLBAR GLOBAL
   ========================================================= */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(107, 114, 128, 0.38);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(107, 114, 128, 0.58);
  background-clip: content-box;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: rgba(180, 180, 180, 0.28);
  background-clip: content-box;
}

html[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: rgba(210, 210, 210, 0.42);
  background-clip: content-box;
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(107, 114, 128, 0.38) transparent;
}

html[data-theme="dark"] * {
  scrollbar-color: rgba(180, 180, 180, 0.28) transparent;
}

/* =========================================================
   ACCESIBILIDAD / REDUCCIÓN DE MOVIMIENTO
   ========================================================= */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}