/* ==========================================================================
   DEPUBAC — Base: reset + globales
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: var(--nav-height);
}

body {
  font-family: var(--font-sans);
  font-size: var(--fs-base);
  line-height: var(--lh-relaxed);
  color: var(--color-slate-900);
  background-color: var(--color-white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture, video, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--fw-medium);
  color: var(--color-ink);
  line-height: var(--lh-tight);
  letter-spacing: -0.02em;
}

h1 {
  font-size: var(--fs-4xl);
  letter-spacing: -0.03em;
  font-weight: var(--fw-medium);
}

h2 {
  font-size: var(--fs-3xl);
  letter-spacing: -0.025em;
  font-weight: var(--fw-medium);
}

h3 { font-size: var(--fs-2xl); font-weight: var(--fw-medium); }
h4 { font-size: var(--fs-xl); font-weight: var(--fw-medium); }
h5 { font-size: var(--fs-lg); font-weight: var(--fw-medium); }

p {
  line-height: var(--lh-relaxed);
  color: var(--color-slate-700);
}

p + p { margin-top: var(--sp-5); }

strong { font-weight: var(--fw-semibold); color: var(--color-slate-900); }

a {
  color: var(--color-ink);
  text-decoration: none;
  transition: color var(--t-fast);
}

a:hover { color: var(--color-blue); }

a:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 2px;
}

ul, ol { padding-left: 1.25rem; }

li {
  margin-bottom: var(--sp-2);
  color: var(--color-slate-700);
  line-height: var(--lh-relaxed);
}

li::marker { color: var(--color-blue); }

::selection {
  background: var(--color-blue);
  color: var(--color-white);
}

/* Eyebrow (label sobre título) */
.eyebrow {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: var(--fs-xs);
  font-weight: var(--fw-extrabold);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-blue);
  margin-bottom: var(--sp-4);
}

.eyebrow--bio { color: var(--color-bio); }
.eyebrow--sky { color: var(--color-sky); }
.eyebrow--white { color: var(--color-white); }

.lead {
  font-family: var(--font-display);
  font-size: var(--fs-xl);
  line-height: var(--lh-snug);
  color: var(--color-slate-900);
  font-weight: var(--fw-regular);
}

/* Divisor con nodo (signature) */
.thread-divider {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin: var(--sp-16) 0 var(--sp-8);
}

.thread-divider::before,
.thread-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--color-slate-200);
}

.thread-divider .node {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-bio);
  box-shadow: 0 0 0 4px var(--color-bio-soft);
}

/* Utilidades */
.text-center { text-align: center; }
.text-ink { color: var(--color-ink); }
.text-slate { color: var(--color-slate-600); }
.text-blue { color: var(--color-blue); }
.text-bio { color: var(--color-bio); }

.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 700ms ease-out, transform 700ms ease-out;
}

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

/* Motion reducido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
