/* ════════════════════════════════════════════════════════
   RESET & BASE
   Normalización, base tipográfica y utilidades globales
════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font-b);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; }

/* ── Scrollbar ── */
::-webkit-scrollbar       { width: 5px; }
::-webkit-scrollbar-track  { background: var(--dark-900); }
::-webkit-scrollbar-thumb  { background: var(--blue-600); border-radius: 99px; }

/* ── Scroll arrival glow ── */
@keyframes section-arrival {
  0%   { box-shadow: inset 0 2px 30px rgba(37,99,235,.18); }
  100% { box-shadow: inset 0 0 0 transparent; }
}
.scroll-arrived {
  animation: section-arrival .9s ease-out forwards;
}

/* ════════════════════════════════════════════════════════
   UTILIDADES
════════════════════════════════════════════════════════ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* Variantes de reveal */
.reveal-left {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left.visible { opacity: 1; transform: none; }

.reveal-right {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-right.visible { opacity: 1; transform: none; }

.reveal-scale {
  opacity: 0;
  transform: scale(.92);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-scale.visible { opacity: 1; transform: none; }

.d1 { transition-delay: .1s; }
.d2 { transition-delay: .2s; }
.d3 { transition-delay: .3s; }

/* Utilidad de color texto */
.text-blue { color: var(--blue-600); }

/* ════════════════════════════════════════════════════════
   KEYFRAMES
════════════════════════════════════════════════════════ */

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .3; transform: scale(.7); }
}

@keyframes growUp {
  from { transform: scaleY(0); transform-origin: bottom; }
  to   { transform: scaleY(1); transform-origin: bottom; }
}

@keyframes waFloat {
  0%, 100% { box-shadow: 0 8px 28px rgba(102,187,106,.45); }
  50%      { box-shadow: 0 8px 50px rgba(102,187,106,.7); }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-6px); }
  40%      { transform: translateX(6px); }
  60%      { transform: translateX(-4px); }
  80%      { transform: translateX(4px); }
}

@keyframes driftGradient {
  0%   { background-position: 0% 0%; }
  50%  { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

@keyframes floatParticle {
  0%, 100% { transform: translateY(0) translateX(0); opacity: .4; }
  25%      { transform: translateY(-20px) translateX(10px); opacity: .7; }
  50%      { transform: translateY(-10px) translateX(-8px); opacity: .5; }
  75%      { transform: translateY(-25px) translateX(15px); opacity: .6; }
}

@keyframes scanLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}

/* ════════════════════════════════════════════════════════
   ACCESIBILIDAD — Reduced Motion
   Respeta la configuración del usuario para reducir
   animaciones y transiciones (WCAG 2.1 §2.3.3)
════════════════════════════════════════════════════════ */

@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;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .hero-orb { transition: none; }
}
