/* ============================================================
   INDAGO Labs — Base CSS
   Estilos globales, tipografía y utilidades
   ============================================================ */

/* SCROLLBAR PERSONALIZADA */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-light);
}
::-webkit-scrollbar-thumb {
  background: var(--blue-primary);
  border-radius: var(--radius-pill);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--blue-hover);
}

/* SELECCIÓN DE TEXTO */
::selection {
  background: var(--blue-light);
  color: var(--navy-deep);
}

/* ============================================================
   BODY Y TIPOGRAFÍA BASE
   ============================================================ */
html {
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: var(--weight-regular);
  line-height: var(--leading-normal);
  color: var(--text-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
}

/* SCROLL PROGRESS BAR */
#scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--gradient-divider);
  z-index: var(--z-toast);
  transition: width 0.1s linear;
}

/* ============================================================
   HEADINGS
   ============================================================ */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  line-height: var(--leading-tight);
  color: var(--text-primary);
  letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-hero); font-weight: var(--weight-extrabold); }
h2 { font-size: var(--text-5xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

a {
  color: var(--text-link);
  transition: color var(--duration-fast) ease;
}
a:hover {
  color: var(--text-link-hover);
}

strong { font-weight: var(--weight-semibold); }
em { font-style: italic; }

/* ============================================================
   SECCIÓN OVERLINE (etiqueta sobre el título)
   ============================================================ */
.overline {
  display: inline-block;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--blue-primary);
  letter-spacing: var(--tracking-widest);
  text-transform: uppercase;
  margin-bottom: var(--space-4);
}

/* ============================================================
   FOCUS VISIBLE (accesibilidad)
   ============================================================ */
:focus-visible {
  outline: 2px solid var(--blue-primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ============================================================
   UTILIDADES
   ============================================================ */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.text-center  { text-align: center; }
.text-left    { text-align: left; }
.text-right   { text-align: right; }

.text-primary   { color: var(--text-primary) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-muted     { color: var(--text-muted) !important; }
.text-on-dark   { color: var(--text-on-dark) !important; }
.text-blue      { color: var(--blue-primary) !important; }

.fw-bold      { font-weight: var(--weight-bold); }
.fw-semibold  { font-weight: var(--weight-semibold); }

.d-none     { display: none; }
.d-block    { display: block; }
.d-flex     { display: flex; }
.d-grid     { display: grid; }

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gap-2  { gap: var(--space-2); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

.mt-auto { margin-top: auto; }
.mb-0    { margin-bottom: 0; }

.w-full  { width: 100%; }

/* DIVIDER DE SECCIÓN — Barra de color como Deloitte */
.section-divider {
  width: 100%;
  height: var(--divider-height);
  background: var(--gradient-divider);
}

.section-divider--navy {
  background: var(--navy-deep);
}

.section-divider--teal {
  background: var(--teal-accent);
}
