/**
 * guardia-atm - Tokens de Diseño y Paleta Institucional FOLP / UNLP
 * Colores institucionales: #006155 (Primario) y #46A3B7 (Acento)
 */

:root {
  /* Paleta Institucional FOLP/UNLP */
  --color-primary: #003326;
  --color-primary-dark: #001f17;
  --color-primary-light: #0a4f3d;
  --color-primary-soft: #e5f0ec;
  --color-primary-subtle: rgba(0, 51, 38, 0.08);

  --color-accent: #46a3b7;
  --color-accent-dark: #2d7b8e;
  --color-accent-light: #6bc0d3;
  --color-accent-soft: #e8f6f8;
  --color-accent-subtle: rgba(70, 163, 183, 0.12);

  /* Colores de Alerta Médica y Triaje */
  --color-urgent: #dc2626;
  --color-urgent-dark: #991b1b;
  --color-urgent-bg: #fef2f2;
  --color-urgent-border: #fca5a5;

  --color-warning: #d97706;
  --color-warning-dark: #92400e;
  --color-warning-bg: #fffbeb;
  --color-warning-border: #fcd34d;

  --color-success: #059669;
  --color-success-bg: #ecfdf5;
  --color-success-border: #6ee7b7;

  /* Superficies y Neutros (Modo Claro) */
  --color-bg: #f8fafc;
  --color-surface: #ffffff;
  --color-surface-elevated: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-surface-active: #e2e8f0;

  --color-border: #e2e8f0;
  --color-border-subtle: #f1f5f9;

  --color-text-main: #0f172a;
  --color-text-secondary: #334155;
  --color-text-muted: #64748b;
  --color-text-faint: #94a3b8;
  --color-text-inverse: #ffffff;

  /* Tipografía y Espaciado */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.06);
  --shadow-sheet: 0 -8px 24px rgba(0, 0, 0, 0.15);

  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s ease;

  /* Dispositivos Móviles y Áreas Seguras */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --header-height: calc(60px + var(--safe-top));
  --bottom-nav-height: calc(64px + var(--safe-bottom));
}

/* Modo Nocturno de Guardia (Alto Contraste) */
[data-theme="dark"] {
  --color-bg: #0b131e;
  --color-surface: #14202e;
  --color-surface-elevated: #1a2a3c;
  --color-surface-hover: #22344a;
  --color-surface-active: #2b4059;

  --color-border: #233549;
  --color-border-subtle: #192738;

  --color-text-main: #f8fafc;
  --color-text-secondary: #cbd5e1;
  --color-text-muted: #94a3b8;
  --color-text-faint: #64748b;

  --color-primary: #128065;
  --color-primary-dark: #003326;
  --color-primary-light: #24a887;
  --color-primary-soft: rgba(0, 51, 38, 0.35);
  --color-primary-subtle: rgba(0, 51, 38, 0.2);

  --color-accent: #5ec7dd;
  --color-accent-soft: rgba(70, 163, 183, 0.22);

  --color-urgent-bg: rgba(220, 38, 38, 0.18);
  --color-warning-bg: rgba(217, 119, 6, 0.18);
  --color-success-bg: rgba(5, 150, 105, 0.18);

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.6);
}
