/* ==========================================================================
   NOVA — Ecosistema Digital de Salud Integrado + Alianza Farmacéutica Grupo Leti
   Codificación: UTF-8 (sin BOM)
   Paleta: Nova Midnight (#07111F), Nova Cyan (#22C5E8), Superficies Clínicas (#F4F8FB)
   Riesgos: Leve (#2AD19B) · Moderado (#F5A623) · Crítico (#FB6F84)
   Grupo Leti: Azul Corporativo (#004B93) · Corazón Leti (#E32739) · Genven (#00856A)
   ========================================================================== */

:root {
  --nova-navy-950: #060E1A;
  --nova-navy-900: #0B172A;
  --nova-navy-800: #11223B;
  --nova-cyan-400: #22C5E8;
  --nova-cyan-500: #0891B2;

  --nova-risk-mild: #10B981;
  --nova-risk-mod: #F59E0B;
  --nova-risk-crit: #F43F5E;

  --leti-blue: #004B93;
  --leti-blue-dark: #00356B;
  --leti-red: #E32739;
  --genven-teal: #00856A;
  --biocontrolled-blue: #0072CE;

  --nova-shadow-soft: 0 8px 26px -6px rgba(11, 23, 42, 0.07), 0 2px 8px -2px rgba(11, 23, 42, 0.04);
  --nova-shadow-hover: 0 16px 36px -8px rgba(11, 23, 42, 0.12), 0 4px 12px -2px rgba(11, 23, 42, 0.06);
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

html {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  background-color: #060E1A;
  background-image:
    radial-gradient(circle at 85% 8%, rgba(34, 197, 232, 0.16) 0%, transparent 40%),
    radial-gradient(circle at 10% 88%, rgba(16, 185, 129, 0.11) 0%, transparent 42%),
    linear-gradient(180deg, #060E1A 0%, #0A1628 100%);
  color: #0F172A;
}

.tabular-nums {
  font-variant-numeric: tabular-nums;
}

/* Scrollbar limpio */
.nova-scroll {
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.nova-scroll::-webkit-scrollbar {
  width: 5px;
}

.nova-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.nova-scroll::-webkit-scrollbar-thumb {
  background-color: #CBD5E1;
  border-radius: 9999px;
}

/* Entrada suave de pantallas y tarjetas */
@keyframes novaFadeUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.nova-animate-in {
  animation: novaFadeUp 0.3s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Onda expansiva para indicadores en vivo (Ambulancia / Delivery / Estado Estable) */
@keyframes novaPulseRing {
  0% {
    transform: scale(0.95);
    opacity: 0.75;
  }
  70% {
    transform: scale(1.75);
    opacity: 0;
  }
  100% {
    transform: scale(1.75);
    opacity: 0;
  }
}

.nova-ping-slow {
  animation: novaPulseRing 2.6s cubic-bezier(0.24, 0, 0.38, 1) infinite;
}

/* Indicador de análisis IA */
@keyframes novaAiDot {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.35;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

.nova-dot-1 { animation: novaAiDot 1.25s infinite ease-in-out 0s; }
.nova-dot-2 { animation: novaAiDot 1.25s infinite ease-in-out 0.16s; }
.nova-dot-3 { animation: novaAiDot 1.25s infinite ease-in-out 0.32s; }

/* Trazo progresivo de gráficas SVG */
@keyframes novaDrawChart {
  from {
    stroke-dashoffset: 620;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.nova-chart-line {
  stroke-dasharray: 620;
  animation: novaDrawChart 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Superficies interactivas */
.nova-card {
  background: #FFFFFF;
  box-shadow: var(--nova-shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.nova-card-interactive:hover {
  transform: translateY(-1.5px);
  box-shadow: var(--nova-shadow-hover);
}

.nova-card-interactive:active {
  transform: scale(0.992);
}

/* Tarjeta oscura estilo presentación Nova Genesis */
.nova-glass-dark {
  background: linear-gradient(145deg, rgba(16, 33, 58, 0.92) 0%, rgba(10, 21, 38, 0.95) 100%);
  border: 1px solid rgba(34, 197, 232, 0.22);
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom, 0.5rem);
}
