/* Felix — Reset + base + utilities */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-base);
  color: var(--ink);
  background: var(--bg);
  min-height: 100vh;
  font-feature-settings: "ss03", "cv11";
}

img, picture, svg, video {
  display: block;
  max-width: 100%;
}

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

button { cursor: pointer; background: none; border: none; padding: 0; }

a {
  color: var(--primary);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { color: var(--primary-hover); }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

h1, h2, h3, h4 {
  line-height: var(--leading-tight);
  letter-spacing: -0.015em;
  font-weight: 600;
  text-wrap: balance;
  color: var(--ink);
}

h1 { font-size: var(--text-3xl); letter-spacing: -0.022em; font-weight: 600; }
h2 { font-size: var(--text-xl); letter-spacing: -0.015em; }
h3 { font-size: var(--text-base); letter-spacing: -0.005em; font-weight: 600; }
h4 { font-size: var(--text-sm); letter-spacing: 0; font-weight: 600; }

p { text-wrap: pretty; }

small, .text-sm { font-size: var(--text-sm); }
.text-xs  { font-size: var(--text-xs); }
.text-2xs { font-size: var(--text-2xs); letter-spacing: 0.03em; }

.text-muted { color: var(--ink-muted); }
.text-soft  { color: var(--ink-soft); }
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-success { color: var(--success); }
.text-warning { color: var(--warning); }
.text-danger  { color: var(--danger); }

.mono { font-family: var(--font-mono); font-feature-settings: "zero"; }
.tabular { font-variant-numeric: tabular-nums; }
.num { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-feature-settings: "zero"; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.flex { display: flex; }
.inline-flex { display: inline-flex; }
.grid { display: grid; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.items-baseline { align-items: baseline; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.gap-1 { gap: var(--space-1); }
.gap-2 { gap: var(--space-2); }
.gap-3 { gap: var(--space-3); }
.gap-4 { gap: var(--space-4); }
.gap-5 { gap: var(--space-5); }
.gap-6 { gap: var(--space-6); }

.w-full { width: 100%; }
.h-full { height: 100%; }
.flex-1 { flex: 1; }

.hidden { display: none; }
[hidden] { display: none !important; }   /* que ningún display de componente le gane al atributo */

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: var(--radius-full); border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: var(--ink-soft); }
