/* ============================================================
   Club de Finanzas UACh — Hoja de estilos
   Estilos base, utilidades personalizadas y componentes que
   complementan las clases de Tailwind usadas en index.html.
   ============================================================ */

/* ---------- Base ---------- */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #080D19;
}

.font-mono-num {
  font-family: 'IBM Plex Mono', monospace;
  font-variant-numeric: tabular-nums;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: #080D19;
}

::-webkit-scrollbar-thumb {
  background: #243357;
  border-radius: 6px;
}

/* ---------- Componentes ---------- */
.glass {
  background: linear-gradient(180deg, rgba(26, 39, 64, 0.55) 0%, rgba(18, 27, 46, 0.55) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(143, 160, 190, 0.14);
}

.grid-lines {
  background-image:
    linear-gradient(rgba(143, 160, 190, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 160, 190, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ---------- Gráfico animado del hero ---------- */
.num-plot path {
  fill: none;
  stroke: #4FD1C5;
  stroke-width: 2.5;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: draw 2.4s ease-out .3s forwards;
}

@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* ---------- Accesibilidad ---------- */
a:focus-visible,
button:focus-visible {
  outline: 2px solid #4FD1C5;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {

  *,
  ::before,
  ::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
