/**
 * JARS Sistemas Integrados — UI Kit (Fase 2)
 * Complemento a Tailwind: glassmorphism, tipografía enterprise y utilidades de sección.
 */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600;700&display=swap");

:root {
  --jars-bg-base: #06090f;
  --jars-bg-section: #0c111d;
  --jars-cyan: #00f2fe;
  --jars-blue: #3b82f6;
  --jars-graphite: #1f2937;
}

/* ── Fondos y gradientes de página ── */
body {
  background-color: var(--jars-bg-base);
}

.jars-bg-section {
  background: linear-gradient(180deg, var(--jars-bg-base) 0%, var(--jars-bg-section) 100%);
}

.jars-bg-hero {
  background: linear-gradient(135deg, var(--jars-bg-base) 0%, var(--jars-bg-section) 55%, var(--jars-bg-base) 100%);
}

/* ── Glassmorphism global ── */
.jars-glass {
  background: rgba(16, 24, 40, 0.65);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.jars-glass--hover-glow {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.jars-glass--hover-glow:hover {
  border-color: rgba(0, 242, 254, 0.35);
  box-shadow:
    0 0 24px rgba(0, 242, 254, 0.12),
    0 4px 30px rgba(0, 0, 0, 0.5);
}

/* ── Tipografía Enterprise Senior ── */
.jars-title {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: 0.03em;
  line-height: 1.08;
  text-transform: uppercase;
}

.jars-heading {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.jars-eyebrow {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--jars-cyan);
}

.jars-body {
  color: rgb(148 163 184);
  line-height: 1.7;
}

/* KPIs, métricas y datos operativos — monoespaciado */
.jars-data,
.jars-kpi-value {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.jars-kpi-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgb(100 116 139);
}

/* ── CTA corporativo con corchetes ── */
.jars-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--jars-cyan);
  transition: color 0.2s ease, box-shadow 0.2s ease;
}

.jars-cta-bracket {
  opacity: 0.55;
  font-weight: 400;
}

/* ── Pulso luminoso cian — KPI Salud de Red ── */
.jars-pulse-cyan {
  position: relative;
}

.jars-pulse-cyan::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 1px solid rgba(0, 242, 254, 0.4);
  animation: jarsPulseRing 2.4s ease-out infinite;
  pointer-events: none;
}

@keyframes jarsPulseRing {
  0% { opacity: 0.8; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.08); }
}

/* ── Reveal al scroll ── */
.jars-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.jars-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--jars-bg-base); }
::-webkit-scrollbar-thumb { background: var(--jars-graphite); border-radius: 4px; }

@media (prefers-reduced-motion: reduce) {
  .jars-reveal { transition: none; opacity: 1; transform: none; }
  .jars-pulse-cyan::before { animation: none; }
}
