/* =============================================================
   INTEGER · DESIGN TOKENS
   Variables compartidas por las 4 landing pages.
   Cada LP usa estos tokens pero los combina con diferente
   jerarquía visual en su propio styles.css.

   Derivado del Manual de Marca Integer (Dic 2022):
   - Orange      #E55031  (primario)
   - Navy        #27274C  (secundario)
   - Amber/peach #F7AB61  (acento)
   - Tipografía: Janna LT Bold (títulos) + Brown Pro (texto)
       -> ambas son comerciales (no Google Fonts); en web caen
          a Bricolage Grotesque + Geist como sustitutos cercanos.
   ============================================================= */

:root {
  /* ---------- BRAND · ORANGE (primario) ---------- */
  --orange-50:  #FDEEEA;
  --orange-100: #FBD5CB;
  --orange-200: #F8B19E;
  --orange-300: #F38C71;
  --orange-400: #EC6E50;
  --orange-500: #E55031;  /* PRIMARIO · manual de marca */
  --orange-600: #C13E23;
  --orange-700: #9A2F1A;
  --orange-800: #6F2112;
  --orange-900: #45140B;

  /* ---------- BRAND · NAVY (secundario) ---------- */
  --navy-50:  #EDEDF2;
  --navy-100: #D1D1DD;
  --navy-200: #A4A4BB;
  --navy-300: #767699;
  --navy-400: #4D4D75;
  --navy-500: #3D3D6E;
  --navy-600: #2F2F5B;
  --navy-700: #27274C;   /* SECUNDARIO · manual de marca */
  --navy-800: #1A1A35;
  --navy-900: #0E0E1F;

  /* ---------- BRAND · AMBER (acento) ---------- */
  /* Tercer color del manual: #F7AB61. Uso restringido a
     acentos, highlights, badges secundarios y elementos
     decorativos (las burbujas/círculos del lenguaje de marca). */
  --amber-50:  #FEF6EC;
  --amber-100: #FCE8CC;
  --amber-200: #FACFA1;
  --amber-300: #F8BC81;
  --amber-400: #F7AB61;   /* ACENTO · manual de marca */
  --amber-500: #F0913C;
  --amber-600: #D4751F;
  --amber-700: #A35713;
  --amber-800: #743D0B;
  --amber-900: #482506;

  /* ---------- NEUTRALS ---------- */
  --white:    #FFFFFF;
  --gray-50:  #F8F8FA;
  --gray-100: #F1F1F4;
  --gray-200: #E4E4EA;
  --gray-300: #CACAD3;
  --gray-400: #9494A1;
  --gray-500: #6E6E7C;
  --gray-600: #50505C;
  --gray-700: #3A3A44;
  --gray-800: #25252D;
  --gray-900: #131318;
  --black:    #000000;

  /* ---------- SEMANTIC ---------- */
  --success: #16A34A;
  --warning: #F59E0B;
  --error:   #DC2626;
  --info:    var(--navy-700);

  /* ---------- ALIASES (uso semántico) ---------- */
  --color-primary:        var(--orange-500);
  --color-primary-hover:  var(--orange-600);
  --color-secondary:      var(--navy-700);
  --color-accent:         var(--amber-400);   /* nuevo: tercer color del manual */
  --color-accent-hover:   var(--amber-500);
  --color-bg:             var(--white);
  --color-bg-alt:         var(--gray-50);
  --color-bg-dark:        var(--navy-800);
  --color-text:           var(--gray-900);
  --color-text-muted:     var(--gray-500);
  --color-text-inverse:   var(--white);
  --color-border:         var(--gray-200);
  --color-border-strong:  var(--gray-300);

  /* ---------- BRAND TRIO (uso decorativo - p.ej. burbujas) ---------- */
  --brand-orange: var(--orange-500);
  --brand-navy:   var(--navy-700);
  --brand-amber:  var(--amber-400);

  /* ---------- TYPOGRAPHY ----------
     Manual de marca: Janna LT Bold (títulos) + Brown Pro (cuerpo).
     Ambas son tipografías comerciales (Linotype / Lineto) y no se
     distribuyen como webfonts gratuitos. En web caemos a sustitutos
     más cercanos en métrica y tono:
       Janna LT Bold -> Outfit  (geometric sans, mismo peso visual)
       Brown Pro     -> Manrope (geometric humanist, alta legibilidad)
     Outfit + Manrope comparten DNA geométrica y se sienten como una
     misma familia, igual que Janna+Brown en el manual.
     Si la organización tiene licencia de las fuentes originales,
     éstas se aplicarán automáticamente al cargarlas en @font-face. */
  --font-sans:    'Brown Pro', 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Janna LT', 'Janna LT Bold', 'Outfit', 'Manrope', system-ui, -apple-system, sans-serif;
  --font-serif:   'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  /* Type scale (modular, base 16px, ratio 1.25) */
  --text-xs:   0.75rem;   /* 12 */
  --text-sm:   0.875rem;  /* 14 */
  --text-base: 1rem;      /* 16 */
  --text-md:   1.125rem;  /* 18 */
  --text-lg:   1.25rem;   /* 20 */
  --text-xl:   1.5rem;    /* 24 */
  --text-2xl:  1.875rem;  /* 30 */
  --text-3xl:  2.25rem;   /* 36 */
  --text-4xl:  3rem;      /* 48 */
  --text-5xl:  3.75rem;   /* 60 */
  --text-6xl:  4.5rem;    /* 72 */
  --text-7xl:  6rem;      /* 96 */

  --leading-tight:  1.1;
  --leading-snug:   1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.7;

  --tracking-tight:  -0.02em;
  --tracking-normal: 0;
  --tracking-wide:   0.05em;
  --tracking-wider:  0.1em;

  /* ---------- SPACING (8pt grid) ---------- */
  --space-1:  0.25rem;   /* 4  */
  --space-2:  0.5rem;    /* 8  */
  --space-3:  0.75rem;   /* 12 */
  --space-4:  1rem;      /* 16 */
  --space-5:  1.5rem;    /* 24 */
  --space-6:  2rem;      /* 32 */
  --space-7:  2.5rem;    /* 40 */
  --space-8:  3rem;      /* 48 */
  --space-9:  4rem;      /* 64 */
  --space-10: 5rem;      /* 80 */
  --space-11: 6rem;      /* 96 */
  --space-12: 8rem;      /* 128 */

  /* Section padding (vertical) */
  --section-py:        var(--space-10);
  --section-py-large:  var(--space-12);

  /* ---------- LAYOUT ---------- */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1320px;
  --container-padding: var(--space-5);

  /* ---------- BORDER RADIUS ---------- */
  --radius-none: 0;
  --radius-sm:   4px;
  --radius:      8px;
  --radius-md:   12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ---------- SHADOWS ---------- */
  --shadow-xs: 0 1px 2px rgba(15, 15, 30, 0.04);
  --shadow-sm: 0 1px 3px rgba(15, 15, 30, 0.06), 0 1px 2px rgba(15, 15, 30, 0.04);
  --shadow:    0 4px 8px rgba(15, 15, 30, 0.06), 0 2px 4px rgba(15, 15, 30, 0.04);
  --shadow-md: 0 8px 16px rgba(15, 15, 30, 0.08), 0 4px 8px rgba(15, 15, 30, 0.04);
  --shadow-lg: 0 16px 32px rgba(15, 15, 30, 0.10), 0 8px 16px rgba(15, 15, 30, 0.06);
  --shadow-xl: 0 24px 48px rgba(15, 15, 30, 0.14);
  --shadow-glow-orange: 0 0 0 4px rgba(229, 80, 49, 0.15);
  --shadow-glow-navy:   0 0 0 4px rgba(39, 39, 76, 0.15);
  --shadow-glow-amber:  0 0 0 4px rgba(247, 171, 97, 0.20);

  /* ---------- TRANSITIONS ---------- */
  --ease-out:    cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration:        250ms;
  --duration-slow:   400ms;

  /* ---------- Z-INDEX ---------- */
  --z-base:    1;
  --z-dropdown: 100;
  --z-sticky:   200;
  --z-overlay:  300;
  --z-modal:    400;
  --z-toast:    500;
}

/* ---------- DARK THEME (uso opcional por LP) ---------- */
[data-theme="dark"] {
  --color-bg:           var(--navy-900);
  --color-bg-alt:       var(--navy-800);
  --color-text:         var(--gray-100);
  --color-text-muted:   var(--gray-400);
  --color-border:       var(--navy-600);
  --color-border-strong: var(--navy-500);
}
