/* ==========================================================================
   SIGMA · Módulo de gestión comercial · Tokens de marca               v1
   --------------------------------------------------------------------------
   Concepto: Σ es la sumatoria y también un embudo. La información de cada
   proveedor entra por arriba, se junta en el vértice y sale ordenada hacia
   ventas. El punto del vértice es el cliente listo para contactar; su color
   sale del triángulo del imagotipo de Sur Compliance.

   Paleta (tomada del portal y de Sur Compliance):
     Noche          #061427  fondo de marca, escena de ingreso y login
     Abismo         #030A15  sombra profunda del fondo
     Marino         #0F2D52  mosaico del ícono
     Tinta          #182F4E  títulos del portal ("Certificaciones · Proveedores")
     Azul acción    #1766B9  botón primario del portal ("Nuevo proveedor")
     Hielo          #7CC0FF  flujos, enlaces y foco sobre oscuro
     Vértice        #E8492C  acento cálido (triángulo de Sur Compliance)
     Carmesí        #C2183E  fin del degradado del vértice

   Uso: importar este archivo una sola vez, antes que sigma-splash.css.
   Las rutas de fuente son relativas a /tokens/.
   ========================================================================== */

/* Funnel Display (SIL OFL 1.1). El nombre no es casual: funnel es embudo. */
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-latin-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Funnel Display";
  src: url("../fonts/funnel-display-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 300 800; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Inter (SIL OFL 1.1): la misma letra del portal, para que el paso del login al portal no se note. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* ---------- Marca: noche ---------- */
  --sigma-night:      #061427;
  --sigma-abyss:      #030A15;
  --sigma-navy:       #0F2D52;
  --sigma-navy-hi:    #2464AE;
  --sigma-glass:      rgba(12, 34, 64, .62);      /* tarjeta de vidrio sobre la noche */
  --sigma-glass-hi:   rgba(18, 46, 84, .70);
  --sigma-hairline:   rgba(150, 196, 240, .16);

  /* ---------- Marca: luz ---------- */
  --sigma-star:       #F2F7FC;  /* texto sobre oscuro (17:1 sobre noche) */
  --sigma-frost:      #EAF4FF;
  --sigma-ice:        #7CC0FF;  /* flujos, enlaces y foco (9.6:1 sobre noche) */
  --sigma-mist:       #93A9C2;  /* texto secundario sobre oscuro (7.6:1 sobre noche) */

  /* ---------- Vértice (de Sur Compliance) ---------- */
  --sigma-node:       #E8492C;
  --sigma-node-hi:    #FF7A4A;
  --sigma-node-deep:  #C2183E;
  --sigma-node-text:  #FF9B7A;  /* versión legible como texto sobre oscuro */

  /* ---------- Portal (fondo claro) ---------- */
  --sigma-ink:        #182F4E;  /* 13:1 sobre blanco */
  --sigma-ink-2:      #4D647B;
  --sigma-muted:      #68798B;  /* 4.6:1 sobre #F5F7FA */
  --sigma-portal-bg:  #F5F7FA;
  --sigma-paper:      #FFFFFF;
  --sigma-line:       #E2E8EF;
  --sigma-line-soft:  #EDF1F6;
  --sigma-tab-bg:     #F7FAFF;
  --sigma-nav-active: #125CA6;
  --sigma-ok:         #1C704C;
  --sigma-ok-bg:      #ECF6F0;
  --sigma-warn:       #8A5A00;
  --sigma-warn-bg:    #FFF5DF;
  --sigma-alert:      #B34B42;
  --sigma-alert-bg:   #FCEEEC;

  /* ---------- Acción primaria (igual al portal) ---------- */
  --sigma-blue-hi:    #2A7DD3;
  --sigma-blue:       #1766B9;  /* 5.6:1 con texto blanco */
  --sigma-blue-lo:    #11559F;
  --sigma-blue-ink:   #FFFFFF;
  --sigma-focus:      #7CC0FF;

  /* ---------- Tipografía ---------- */
  --sigma-font-display: "Funnel Display", "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --sigma-font:         "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;

  /* ---------- Movimiento ---------- */
  --sigma-ease-out:    cubic-bezier(.16, 1, .3, 1);
  --sigma-ease-inout:  cubic-bezier(.65, 0, .35, 1);
  --sigma-ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  /* ---------- Fondo de escena (intro y login) ---------- */
  --sigma-scene:
    radial-gradient(55% 45% at 78% 46%, rgba(42, 125, 211, .20), transparent 70%),
    radial-gradient(45% 40% at 10% 92%, rgba(232, 73, 44, .07), transparent 70%),
    radial-gradient(60% 50% at 18% 6%, rgba(124, 192, 255, .07), transparent 70%),
    radial-gradient(130% 100% at 60% 40%, #0B2343 0%, #061427 48%, #030A15 100%);
}
