/* ============================================
   VIALTECH — DESIGN TOKENS
   Basado en el Manual de Marca oficial
   ============================================ */

:root {
  /* ===== COLORES OFICIALES (Manual de Marca) ===== */
  /* Verdes institucionales */
  --vt-green-900: #062818;
  --vt-green-800: #0b5230;   /* Verde oscuro institucional */
  --vt-green-700: #107040;   /* Verde institucional principal */
  --vt-green-600: #14823c;
  --vt-green-500: #1a8a52;   /* Verde secundario / CTA */
  --vt-green-400: #2ea868;
  --vt-green-300: #6ec798;
  --vt-green-200: #b6e3c9;
  --vt-green-100: #e8f3ec;

  /* Negros / grises */
  --vt-black: #1a1a1a;       /* Negro institucional */
  --vt-ink: #1a1a1a;
  --vt-graphite: #2a2a2a;
  --vt-slate: #3d3d3d;
  --vt-steel: #666666;
  --vt-stone: #999999;
  --vt-mist: #d9d6cf;
  --vt-sand: #ebe7df;        /* Cream / bone palette cálida */
  --vt-bone: #f5f3ee;
  --vt-cream: #faf8f3;
  --vt-white: #ffffff;

  /* Acento (manual de marca) */
  --vt-accent: #f4c542;      /* Amarillo de acento */
  --vt-warning: #d9a01a;
  --vt-error: #b53636;

  /* Roles semánticos */
  --color-bg: var(--vt-cream);
  --color-bg-alt: var(--vt-white);
  --color-bg-warm: var(--vt-bone);
  --color-bg-dark: var(--vt-black);
  --color-text: var(--vt-ink);
  --color-text-soft: var(--vt-slate);
  --color-text-muted: var(--vt-steel);
  --color-text-inverse: var(--vt-white);
  --color-brand: var(--vt-green-700);
  --color-brand-strong: var(--vt-green-800);
  --color-cta: var(--vt-green-500);
  --color-cta-hover: var(--vt-green-600);
  --color-accent: var(--vt-accent);
  --color-border: var(--vt-mist);
  --color-border-soft: var(--vt-sand);
  --color-border-strong: var(--vt-stone);

  /* ===== TIPOGRAFÍA (Manual de Marca: Barlow + Barlow Condensed + JetBrains Mono) ===== */
  --font-display: 'Barlow Condensed', 'Barlow', system-ui, -apple-system, sans-serif;
  --font-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Escala tipográfica fluida */
  --fs-xs: clamp(0.75rem, 0.72rem + 0.15vw, 0.8125rem);
  --fs-sm: clamp(0.875rem, 0.85rem + 0.15vw, 0.9375rem);
  --fs-base: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  --fs-md: clamp(1.125rem, 1.07rem + 0.27vw, 1.25rem);
  --fs-lg: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --fs-xl: clamp(1.5rem, 1.32rem + 0.9vw, 2rem);
  --fs-2xl: clamp(2rem, 1.7rem + 1.5vw, 2.75rem);
  --fs-3xl: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
  --fs-4xl: clamp(3rem, 2.3rem + 3.5vw, 5rem);
  --fs-display: clamp(3.5rem, 2.4rem + 5.5vw, 7.5rem);

  --lh-tight: 0.95;
  --lh-snug: 1.1;
  --lh-base: 1.55;
  --lh-relaxed: 1.7;

  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-black: 800;

  --ls-tight: -0.025em;
  --ls-snug: -0.012em;
  --ls-wide: 0.04em;
  --ls-wider: 0.18em;

  /* ===== ESPACIADO (escala 8px) — REDUCIDO ===== */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3rem;
  --sp-10: 4rem;
  --sp-12: 5rem;
  --sp-16: 6.5rem;
  --sp-20: 8rem;
  --sp-24: 10rem;

  /* Layout */
  --container-max: 1280px;
  --container-narrow: 920px;
  --container-pad: clamp(1.25rem, 4vw, 3rem);
  --section-y: clamp(3.5rem, 5.5vw, 5.5rem);     /* antes era 8rem — reducido */
  --section-y-lg: clamp(4.5rem, 7vw, 7rem);

  /* ===== BORDES Y RADIOS ===== */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 18px;
  --radius-pill: 999px;

  /* ===== SOMBRAS ===== */
  --shadow-sm: 0 1px 2px rgba(26, 26, 26, 0.06), 0 1px 3px rgba(26, 26, 26, 0.04);
  --shadow-md: 0 4px 12px rgba(26, 26, 26, 0.08), 0 2px 4px rgba(26, 26, 26, 0.04);
  --shadow-lg: 0 18px 40px rgba(26, 26, 26, 0.10), 0 6px 12px rgba(26, 26, 26, 0.05);
  --shadow-xl: 0 32px 70px rgba(26, 26, 26, 0.16), 0 10px 24px rgba(26, 26, 26, 0.07);
  --shadow-brand: 0 12px 28px rgba(16, 112, 64, 0.32);

  /* ===== TRANSICIONES ===== */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --t-fast: 180ms;
  --t-base: 320ms;
  --t-slow: 600ms;

  /* ===== Z-INDEX ===== */
  --z-base: 1;
  --z-sticky: 50;
  --z-header: 100;
  --z-overlay: 500;
  --z-modal: 1000;
  --z-toast: 1500;
}

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