/* ============================================================================
   IFRIT LABS · base.css
   Reset + variables + tipografía base. Compartido por todas las páginas.
   ============================================================================ */

:root {
  /* Paleta estricta — solo 3 colores puros */
  --black: #000000;
  --white: #FFFFFF;
  --red:   #FF0000;

  /* Variaciones permitidas (derivadas de los 3 colores puros) */
  --black-soft:    #050505;
  --black-card:    #0a0a0a;
  --gray-line:     rgba(255, 255, 255, 0.08);
  --gray-line-2:   rgba(255, 255, 255, 0.18);
  --gray-text:     rgba(255, 255, 255, 0.55);
  --gray-mute:     rgba(255, 255, 255, 0.30);
  --red-glow:      rgba(255, 0, 0, 0.55);
  --red-glow-soft: rgba(255, 0, 0, 0.18);
  --red-glow-faint:rgba(255, 0, 0, 0.08);
  --white-glow:    rgba(255, 255, 255, 0.20);

  /* Tipografía */
  --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;

  /* Espaciado */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;

  /* Curvas de animación */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html,
body {
  height: 100%;
}

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

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, button, textarea, select { font-family: inherit; }
img, svg, video { max-width: 100%; display: block; }

::selection {
  background: var(--red);
  color: var(--white);
}

/* Scrollbar coherente con la paleta */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb {
  background: var(--gray-line-2);
  border: 2px solid var(--black);
}
::-webkit-scrollbar-thumb:hover { background: var(--red); }
