:root {
  /* Design Tokens: Estándar Global Verde Petróleo Degradado */
  --primary: #0f766e;
  --primary-hover: #115e59;
  --primary-active: #134e4a;
  --primary-glow: rgba(15, 118, 110, 0.28);
  
  --petrol-950: #021a1f;
  --petrol-900: #04272e;
  --petrol-850: #07353f;
  --petrol-800: #0a434f;
  --petrol-700: #0e5664;
  --petrol-600: #0d7480;
  --petrol-500: #0d9488;
  --petrol-400: #14b8a6;
  --petrol-300: #2dd4bf;
  --petrol-200: #5eead4;
  --petrol-100: #ccfbf1;
  --petrol-50: #f0fdfa;

  /* Gradientes Estándar Verde Petróleo */
  --petrol-grad-primary: linear-gradient(135deg, #0d9488 0%, #0f766e 60%, #115e59 100%);
  --petrol-grad-hover: linear-gradient(135deg, #14b8a6 0%, #0d9488 60%, #0f766e 100%);
  --petrol-grad-hero: linear-gradient(145deg, #021418 0%, #04272e 35%, #073a45 75%, #0b4e5c 100%);
  --petrol-grad-header: linear-gradient(90deg, #021a1f 0%, #042b33 50%, #073843 100%);
  --petrol-grad-card: linear-gradient(135deg, #ffffff 0%, #f4fbfb 100%);
  --petrol-grad-subtle: linear-gradient(135deg, rgba(20, 184, 166, 0.08) 0%, rgba(15, 118, 110, 0.02) 100%);

  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --petrol-subtle: #f0fdfa;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #04272e;
  --border-color: #d1e7e5;
  --border-subtle: #e2e8f0;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --ink: #04272e;
  --muted: #64748b;
  --paper: #f4fbfb;
  --surface: #ffffff;
  --surface-muted: #f8fafc;
  --card-bg: #ffffff;
  --accent: #0d9488;
  --accent-hover: #0f766e;
  --line: #d1e7e5;
  --success: #059669;
  --danger: #dc2626;
  --header-height: 58px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--slate-900);
  font-family: var(--font-sans);
  font-size: 14px;
  background: var(--paper);
  -webkit-tap-highlight-color: transparent;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Accesibilidad de foco por teclado */
:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* Soporte para movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Iconos vectoriales unificados */
.ui-ico {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: -0.14em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ui-ico-lg { width: 22px; height: 22px; }
.ui-ico-sm { width: 14px; height: 14px; }

/* Superficies y tarjetas compatibles con tema claro y oscuro */
.sicam-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.sicam-kpi-card {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 12px 14px;
  border-left-width: 4px;
  border-left-style: solid;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}
.sicam-kpi-card.accent-teal { border-left-color: #0f766e; }
.sicam-kpi-card.accent-sky { border-left-color: #0284c7; }
.sicam-kpi-card.accent-amber { border-left-color: #f59e0b; }
.sicam-kpi-card.accent-emerald { border-left-color: #10b981; }
.sicam-kpi-card.accent-indigo { border-left-color: #6366f1; }
.sicam-kpi-card.accent-violet { border-left-color: #8b5cf6; }
.sicam-kpi-card.accent-red { border-left-color: #ef4444; }
.sicam-kpi-card.accent-orange { border-left-color: #ea580c; }
.sicam-kpi-card.accent-petrol { border-left-color: #14b8a6; }
.sicam-kpi-card.accent-slate { border-left-color: #64748b; }

.sicam-kpi-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.35px;
  color: var(--slate-600);
}
.sicam-kpi-num {
  font-size: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--slate-900);
  margin-top: 3px;
}
.sicam-kpi-sub {
  font-size: 11px;
  color: var(--slate-500);
  margin-top: 2px;
}

.sicam-panel-surface {
  background: var(--card-bg);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  box-shadow: 0 6px 24px -4px rgba(15, 23, 42, 0.08);
  padding: 22px;
  margin-bottom: 24px;
}
.sicam-sub-card {
  background: var(--surface-muted);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 10px 12px;
}
.sicam-modal-box {
  background: var(--card-bg);
  color: var(--slate-900);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.sicam-badge-pill {
  background: var(--surface-muted);
  color: var(--slate-600);
  border: 1px solid var(--border-subtle);
  font-weight: 700;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
}
.sicam-logo-chip {
  background: #ffffff;
  padding: 4px 8px;
  border-radius: 8px;
  border: 1px solid rgba(20, 184, 166, 0.28);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Diálogo no bloqueante reutilizable (confirmaciones / copias) */
.sicam-confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 120000;
  background: rgba(2, 20, 24, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.sicam-confirm-dialog {
  width: 100%;
  max-width: 440px;
  background: var(--card-bg);
  color: var(--slate-900);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.3);
  padding: 20px 22px;
}
.sicam-confirm-title {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--slate-900);
}
.sicam-confirm-message {
  margin: 0 0 16px 0;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--slate-600);
  white-space: pre-line;
}
.sicam-confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

