﻿/* TESSIO Systems â€” base.css
   Tokens, reset, tipografia, utilidades globales
   No hardcodear colores fuera de estas variables
*/

/* ============================================================
   TOKENS DE COLOR
   ============================================================ */
:root {
  --color-bg:           #05080f;
  --color-bg-alt:       #0c1220;
  --color-surface:      #101827;
  --color-surface-alt:  #141e2e;

  --color-text:         #f0f4f8;
  --color-text-muted:   #7a8fa8;
  --color-text-faint:   #3d5166;

  --color-border:       rgba(120, 145, 170, 0.12);
  --color-border-mid:   rgba(120, 145, 170, 0.22);

  --color-silver:       #a8bfd0;
  --color-platinum:     #c8dae6;

  --color-accent-edu:   #D4A017;
  --color-accent-glow:  rgba(212, 160, 23, 0.08);

  --color-active:       #e8f0f8;
  --color-inactive:     #2a3a4d;
}

/* ============================================================
   TOKENS DE TIPOGRAFIA
   ============================================================ */
:root {
  --font-display: "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  --font-body:    "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "Courier New", Courier, monospace;

  --text-xs:   0.6875rem;
  --text-sm:   0.8125rem;
  --text-base: 1rem;
  --text-md:   1.125rem;
  --text-lg:   1.375rem;
  --text-xl:   1.75rem;
  --text-2xl:  2.25rem;
  --text-3xl:  3rem;
  --text-4xl:  4rem;
  --text-5xl:  5.5rem;

  --leading-tight:  1.1;
  --leading-snug:   1.3;
  --leading-normal: 1.6;
  --leading-loose:  1.85;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0em;
  --tracking-wide:   0.06em;
  --tracking-wider:  0.12em;
  --tracking-widest: 0.22em;
}

/* ============================================================
   TOKENS DE ESPACIO
   ============================================================ */
:root {
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  --container-max: 1280px;
  --container-pad: clamp(1.5rem, 5vw, 5rem);
}

/* ============================================================
   TOKENS DE TRANSICION
   ============================================================ */
:root {
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:   cubic-bezier(0.4, 0, 1, 1);
  --ease-std:  cubic-bezier(0.4, 0, 0.2, 1);

  --duration-fast:   150ms;
  --duration-base:   280ms;
  --duration-slow:   500ms;
  --duration-slower: 800ms;
}

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

ul, ol {
  list-style: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--container-pad);
  padding-right: var(--container-pad);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.rule {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--color-border);
  border: none;
}

