/* ==========================================================================
   tokens.css — Mente de Obra (Puerto Peñasco, Sonora)
   Paleta OKLCH derivada de los activos de marca (casco esmeralda #0C9A7F,
   marino estructural #1A2642 y sello oro ocre #E2B42D) con contraste WCAG AA/AAA.
   ========================================================================== */

:root {
  /* ---------- Neutros (tintados hacia marino arquitectónico h ≈ 255°) ---------- */
  --bg:            #F6F8FB;  /* Papel arquitectónico claro */
  --surface:       #FFFFFF;  /* Láminas y tarjetas */
  --muted:         #ECF0F6;  /* Bandas alternas */
  --muted-2:       #E0E6F0;  /* Pistas de tabs / controles */
  --border:        #DCE3EE;  /* Anillos interiores 1px */
  --border-strong: #C2CDDF;  /* Bordes de botones outline */
  --border-input:  #75849C;  /* Contorno de campos (≥ 3:1 sobre --surface) */

  --ink:   #141E36;          /* Marino estructural (titulares) */
  --ink-2: #2B3854;          /* Texto de lectura */
  --ink-3: #4E5E7C;          /* Texto secundario (≥ 4.5:1 sobre --muted) */
  --ink-4: #8795AE;          /* Decorativo / deshabilitado */

  /* ---------- Marca: Esmeralda Técnico (h ≈ 172°, casco Mente de Obra) ---------- */
  --brand-25:  #F2FBF8;
  --brand-50:  #E5F7F2;
  --brand-100: #C6EDE2;
  --brand-200: #93DEC9;
  --brand-300: #55C7AB;
  --brand-400: #0C9A7F;      /* Tono exacto de las líneas del casco */
  --brand-500: #067862;      /* Principal en botones (≥ 4.5:1 con blanco) */
  --brand-600: #046250;      /* Hover sobre claro */
  --brand-700: #045948;      /* Texto de marca pequeño sobre claro */
  --brand-800: #06473B;
  --brand-900: #07382F;
  --brand-950: #04241E;
  --brand: var(--brand-500);
  --on-brand: #FFFFFF;

  --brand-hover:       var(--brand-600);
  --brand-soft:        var(--brand-50);
  --brand-soft-border: var(--brand-100);
  --brand-text:        var(--brand-700);

  /* Acento de marca: Oro Ocre del sello circular (#E2B42D) */
  --accent:    #E2B42D;
  --on-accent: #141E36;

  /* ---------- Semánticos ---------- */
  --ok: #15803D;     --ok-50: #ECFDF3;     --ok-700: #166534;
  --warn: #D97706;   --warn-50: #FFFBEB;
  --danger: #DC2626; --danger-50: #FEF2F2; --danger-700: #B91C1C;

  /* ---------- Superficie inversa (Marino profundo de plano nocturno) ---------- */
  --inverse:        #111A2E;
  --inverse-2:      #182440;
  --inverse-3:      #223154;
  --inverse-border: rgba(255,255,255,.11);
  --on-inverse:     #F7F9FC;
  --on-inverse-2:   rgba(247,249,252,.78);

  /* ---------- Tipografía ---------- */
  --font-display: "Space Grotesk", system-ui, -apple-system, sans-serif;
  --font-sans:    "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --display-weight:   700;
  --display-tracking: -0.03em;
  --display-leading:  1.02;
  --display-settings: normal;
  --display-style:    normal;

  --fs-hero:  clamp(38px, 4.9vw, 68px);
  --fs-h2:    clamp(30px, 3.8vw, 52px);
  --fs-h3:    clamp(20px, 1.9vw, 26px);
  --fs-lead:  clamp(16px, 1.35vw, 18.5px);
  --fs-body:  16px;
  --fs-small: 14px;
  --fs-meta:  12px;

  /* ---------- Forma (Radios arquitectónicos limpios) ---------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r:    8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 22px;
  --r-pill: 999px;

  /* ---------- Elevación (tintada en marino --ink) ---------- */
  --shadow-rgb: 20,30,54;
  --sh-xs: 0 1px 2px rgba(var(--shadow-rgb),.05);
  --sh-sm: 0 2px 4px rgba(var(--shadow-rgb),.07), 0 1px 2px -1px rgba(var(--shadow-rgb),.05);
  --sh-md: 0 6px 14px -3px rgba(var(--shadow-rgb),.08), 0 2px 5px -2px rgba(var(--shadow-rgb),.05);
  --sh-lg: 0 12px 24px -4px rgba(var(--shadow-rgb),.11), 0 4px 8px -4px rgba(var(--shadow-rgb),.07);
  --sh-xl: 0 24px 48px -12px rgba(var(--shadow-rgb),.22);
  --sh-btn: inset 0 0 0 1px rgba(0,0,0,.18), inset 0 -2px 0 rgba(0,0,0,.09), 0 1px 2px rgba(var(--shadow-rgb),.07);
  --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 24%, transparent);

  /* ---------- Movimiento ---------- */
  --ease:        cubic-bezier(.2,.8,.2,1);
  --ease-out:    cubic-bezier(.16,1,.3,1);
  --ease-in-out: cubic-bezier(.65,0,.35,1);
  --dur-1: .15s;
  --dur-2: .25s;
  --dur-3: .36s;
  --dur-4: .7s;

  /* ---------- Layout ---------- */
  --header-h: 68px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --section-y: clamp(56px, 7vw, 96px);
  --head-gap: clamp(28px, 3.8vw, 44px);
  --grid-gap: 16px;
}
