/* tin_brand — Tokens de marca de OMNES Tintorería (SPEC §2.3).
 * Carácter: fresco, pulcro, luminoso — «ropa recién planchada». Blanco limpio con un dejo menta, verde menta/aqua de marca (el verde es el
 * color favorito del dueño), acentos índigo para lo que se mueve (planta, rutas), esquinas suaves y sombras ligeras como tela.
 * Distinto de las hermanas: Aluminio = azul vidrio + gris acero; Carga = grafito + naranja vial; Transporte = azul brillante + ámbar.
 * Todos los módulos tin_* usan SÓLO estas variables (con fallback: var(--tin-brand, #0A7C6B)). Modo oscuro: html.oam-dark.
 * Contraste sobre blanco: --tin-brand 5.3:1 (texto blanco sobre botón 5.3:1) · --tin-accent 6.3:1 · --tin-muted 5.6:1 (AA).
 * Tipografía autoalojada: Plus Jakarta Sans (títulos), Inter (texto) y Barlow Condensed (folios, marbetes y cifras). Todas OFL. */
@font-face { font-family: "TIN Jakarta"; src: url("../fonts/PlusJakartaSans-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "TIN Inter"; src: url("../fonts/Inter-var.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "TIN Condensed"; src: url("../fonts/BarlowCondensed-Medium.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "TIN Condensed"; src: url("../fonts/BarlowCondensed-SemiBold.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "TIN Condensed"; src: url("../fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
  /* Marca */
  --tin-brand: #0A7C6B;          /* verde menta profundo: botones, enlaces, selección */
  --tin-brand-700: #075F52;      /* hover/activo, títulos */
  --tin-brand-100: #DDF5EE;      /* fondos suaves de selección y chips de marca */
  --tin-brand-50: #F0FAF7;
  --tin-mint: #5EEAD4;           /* menta brillante: detalles, indicadores, gráficas (decorativo) */
  --tin-aqua: #22B8CF;           /* aqua: agua / lavado */
  --tin-accent: #4F46E5;         /* índigo: acentos y TEXTO de acento (AA) */
  --tin-accent-700: #3730A3;
  --tin-accent-100: #E8E7FD;
  --tin-accent-ink: #1E1B4B;
  --tin-asphalt: #0F2A2B;        /* superficie oscura de marca: login, barra del tablero (verde noche) */
  --tin-asphalt-2: #133536;
  --tin-asphalt-3: #1B4546;
  --tin-steel: #94A9A6;
  --tin-steel-2: #C8D6D3;

  /* Texto y superficies (blanco limpio con un dejo menta) */
  --tin-ink: #10232A;
  --tin-muted: #56676D;
  --tin-surface: #FFFFFF;
  --tin-surface-2: #F3F8F7;
  --tin-surface-3: #E6EFED;
  --tin-line: #DAE6E3;
  --tin-line-strong: #B8CBC7;

  /* Estados (texto AA sobre blanco; *-bg para chips) */
  --tin-ok: #15803D;
  --tin-ok-bg: #DCF5E5;
  --tin-warn: #9A5B00;
  --tin-warn-bg: #FDF1D8;
  --tin-danger: #B42332;
  --tin-danger-bg: #FBE8EA;
  --tin-info: #0E6BA8;
  --tin-info-bg: #E3F0F9;
  --tin-neutral: #4A5A60;
  --tin-neutral-bg: #ECF2F1;
  --tin-live: #4F46E5;           /* en proceso (en planta, en ruta) */
  --tin-live-bg: #ECEBFD;

  /* Etapas de la PRENDA (mismo color en chips, tablero de planta, kanban y rastreo) — tbltin_order_items.stage */
  --tin-st-recibida: #64748B;
  --tin-st-clasificada: #0E6BA8;
  --tin-st-desmanchado: #C2410C;
  --tin-st-lavado: #0891B2;
  --tin-st-planchado: #4F46E5;
  --tin-st-inspeccion: #7C3AED;
  --tin-st-ensamble: #0A7C6B;
  --tin-st-lista: #15803D;
  --tin-st-entregada: #075F52;
  --tin-st-reproceso: #B42332;

  /* Forma: esquinas suaves, sombras ligeras */
  --tin-radius: 12px;
  --tin-radius-sm: 8px;
  --tin-radius-lg: 18px;
  --tin-shadow: 0 1px 2px rgba(16, 35, 42, .05), 0 4px 14px rgba(16, 35, 42, .06);
  --tin-shadow-lg: 0 18px 44px rgba(16, 35, 42, .16);
  --tin-focus: 0 0 0 3px rgba(94, 234, 212, .55);

  --tin-font: "TIN Inter", Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --tin-font-display: "TIN Jakarta", "Plus Jakarta Sans", "TIN Inter", system-ui, sans-serif;
  --tin-font-tech: "TIN Condensed", "Barlow Condensed", "TIN Inter", system-ui, sans-serif;
  --tin-font-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Texturas del giro */
  --tin-fresh: linear-gradient(160deg, #F7FFFC 0%, #E9F8F3 55%, #DDF3F4 100%);                                     /* blanco recién lavado */
  --tin-bubbles: radial-gradient(circle at 18% 30%, rgba(94,234,212,.22) 0 22px, transparent 23px), radial-gradient(circle at 78% 62%, rgba(34,184,207,.16) 0 34px, transparent 35px), radial-gradient(circle at 56% 18%, rgba(79,70,229,.10) 0 12px, transparent 13px); /* burbujas */
  --tin-stitch: repeating-linear-gradient(90deg, var(--tin-brand) 0 6px, transparent 6px 11px);                    /* pespunte */
  --tin-tag: repeating-linear-gradient(135deg, rgba(10,124,107,.07) 0 6px, transparent 6px 12px);                  /* marbete */

  /* Logotipos */
  --tin-logo: url("../img/omnes-tintoreria.svg");
  --tin-logo-dark: url("../img/omnes-tintoreria-dark.svg");
  --tin-logo-h: url("../img/omnes-tintoreria-horizontal.svg");
  --tin-logo-h-dark: url("../img/omnes-tintoreria-horizontal-dark.svg");
  --tin-icon: url("../img/omnes-tintoreria-icono.svg");
}

html.oam-dark {
  --tin-brand: #34D3B4;
  --tin-brand-700: #8FF0DC;
  --tin-brand-100: #0E3A33;
  --tin-brand-50: #0B2A26;
  --tin-mint: #5EEAD4;
  --tin-accent: #A5A1FA;
  --tin-accent-700: #C7C4FD;
  --tin-accent-100: #231F55;
  --tin-ink: #E4EFEC;
  --tin-muted: #9DB1AD;
  --tin-surface: #142322;
  --tin-surface-2: #0D1918;
  --tin-surface-3: #1C302F;
  --tin-line: #24403D;
  --tin-line-strong: #34524E;
  --tin-ok: #4ADE80;   --tin-ok-bg: #10301F;
  --tin-warn: #FBBF24; --tin-warn-bg: #352708;
  --tin-danger: #F87171; --tin-danger-bg: #3A1518;
  --tin-info: #6CB6F0; --tin-info-bg: #102A40;
  --tin-neutral: #BAC8C5; --tin-neutral-bg: #1C302F;
  --tin-live: #A5A1FA; --tin-live-bg: #231F55;
  --tin-st-recibida: #9CA3AF; --tin-st-clasificada: #6CB6F0; --tin-st-desmanchado: #FB923C; --tin-st-lavado: #22D3EE; --tin-st-planchado: #A5A1FA;
  --tin-st-inspeccion: #C4B5FD; --tin-st-ensamble: #34D3B4; --tin-st-lista: #4ADE80; --tin-st-entregada: #8FF0DC; --tin-st-reproceso: #F87171;
  --tin-shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 4px 14px rgba(0, 0, 0, .3);
  --tin-shadow-lg: 0 12px 32px rgba(0, 0, 0, .5);
}
