/* ═══════════════════════════════════════════════
   BASE — reset, utilidades, componentes globales
═══════════════════════════════════════════════ */

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html  { scroll-behavior: smooth; font-size: 16px; }
body  { background: var(--g1); color: var(--text); font-family: var(--ffb); line-height: 1.65; overflow-x: hidden; }
a     { color: inherit; text-decoration: none; }
img   { max-width: 100%; display: block; }
button { cursor: pointer; font-family: var(--ffb); }

/* ── Layout helpers ── */
.container   { max-width: 1140px; margin: 0 auto; padding: 0 2rem; }
.section     { padding: 6rem 0; }
.section--alt  { background: var(--g2); }
.section--dark { background: var(--g0); }

/* ── Eyebrow label ── */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  font-family: var(--ffm);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 1.25rem;
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 1.5px;
  background: var(--blue);
}

/* ── Títulos de sección ── */
.section-title {
  font-family: var(--ffc);
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: -.01em;
  color: var(--navy);
  margin-bottom: .75rem;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--text2);
  max-width: 56ch;
  line-height: 1.75;
  margin-bottom: 3rem;
  font-weight: 300;
}

/* ── Botones ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .875rem 1.875rem;
  border-radius: var(--r);
  font-family: var(--ffd);
  font-weight: 700;
  font-size: .92rem;
  border: none;
  transition: transform .15s, box-shadow .15s, background .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.btn svg { width: 16px; height: 16px; flex-shrink: 0; }

.btn-primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 4px 24px rgb(var(--blue-rgb) / .35);
}
.btn-primary:hover {
  background: var(--blue2);
  box-shadow: 0 8px 32px rgb(var(--blue-rgb) / .5);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border2);
}
.btn-ghost:hover { border-color: var(--text2); }

.btn-teal { background: var(--green-ink); color: #fff; }
.btn-teal:hover { background: var(--green-ink2); }

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
  border-radius: var(--r);
  background: rgb(var(--navy-rgb) / .04);
  border: 1px solid var(--border2);
  color: var(--navy);
  font-size: .8rem;
  font-weight: 600;
}
.bdot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.bdot.b { background: var(--blue); }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .65s ease, transform .65s ease;
}
.reveal.visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .1s; }
.reveal-d2 { transition-delay: .2s; }
.reveal-d3 { transition-delay: .3s; }
.reveal-d4 { transition-delay: .4s; }

/* ── Animaciones ── */
@keyframes barIn {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
@keyframes pulse {
  0%, 100% { opacity: 1;  transform: scale(1);   }
  50%       { opacity: .5; transform: scale(1.4); }
}

/* ── Accesibilidad: skip-link ── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.sr-only-focusable:focus {
  position: fixed;
  top: .75rem; left: .75rem;
  width: auto; height: auto;
  padding: .5rem 1rem;
  clip: auto;
  white-space: normal;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r);
  font-weight: 700;
  z-index: 9999;
}

/* ── Accesibilidad: movimiento reducido ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
