/* ============================================================================
   ADRE · adre-ops.shim.css  —  App Operador de campo (PWA)
   ----------------------------------------------------------------------------
   Carga después de adre-tokens.css y antes de ADRE.ops.css.
   Objetivo: mantener la paleta original del operador y puente de alias.
   Acento = ÁMBAR  (#f59e0b, fijado en html[data-app="ops"]).
============================================================================ */

:root {
  /* ──────────────────────────────────────────────────────────────────
     Superficies OPS: coinciden con adre-core / token defaults.
     Los declaramos explícitamente para que no dependan del cascade.
     Original: bg=#07090f  surface=#0e1320  surface2=#141b2d
               border=rgba(255,255,255,.08)  border2=rgba(255,255,255,.14)
  ────────────────────────────────────────────────────────────────── */
  --bg:        #07090f;
  --bg2:       #0b0e18;
  --surface:   #0e1320;
  --surface2:  #141b2d;
  --border:    rgba(255,255,255,.08);
  --border2:   rgba(255,255,255,.14);

  /* ──────────────────────────────────────────────────────────────────
     Texto OPS: ligeramente más brillante que el default (#f0f2f8 vs #e8edf5)
  ────────────────────────────────────────────────────────────────── */
  --text:       #f0f2f8;
  --text-dim:   rgba(240,242,248,.55);
  --text-muted: rgba(240,242,248,.30);
  --muted:      rgba(240,242,248,.55);
  --dim:        rgba(240,242,248,.35);

  /* ──────────────────────────────────────────────────────────────────
     Brand — OPS usa --brand como alias de su acento (ámbar).
     adre-core define --brand como teal default; aquí lo sincronizamos.
  ────────────────────────────────────────────────────────────────── */
  --brand:      #f59e0b;
  --brand-dim:  rgba(245,158,11,.15);
  --brand-glow: rgba(245,158,11,.30);

  /* ──────────────────────────────────────────────────────────────────
     Color funcional con las variantes dim que el CSS de ops usa
  ────────────────────────────────────────────────────────────────── */
  --red-dim:    rgba(239,68,68,.15);
  --green-dim:  rgba(16,185,129,.15);

  /* ──────────────────────────────────────────────────────────────────
     Radios — ops usaba --radius (14) y --radius-sm (9)
  ────────────────────────────────────────────────────────────────── */
  --radius:    14px;
  --radius-sm:  9px;

  /* ──────────────────────────────────────────────────────────────────
     Layout móvil — variables que vivían en el :root borrado
  ────────────────────────────────────────────────────────────────── */
  --nav-h:    64px;
  --header-h: 60px;
  --safe-top: env(safe-area-inset-top,    0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
}

/* ── Modo claro OPS ── */
:root[data-theme="light"] {
  --bg:        #f0f2f5;
  --bg2:       #e8eaf0;
  --surface:   #ffffff;
  --surface2:  #eef0f5;
  --border:    rgba(0,0,0,.08);
  --border2:   rgba(0,0,0,.14);
  --text:       #1a2030;
  --text-dim:   rgba(26,32,48,.55);
  --text-muted: rgba(26,32,48,.35);
  --muted:      rgba(26,32,48,.55);
  --dim:        rgba(26,32,48,.42);
  --brand:      #d97706;  /* ámbar ligeramente más oscuro para contraste en claro */
}

/* ── Asegurar font-family en html/body ── */
html, body { font-family: var(--font-display); }
