/* ============================================
   MODERN CSS RESET — 2025
   Inspirado en Andy Bell + Josh Comeau + custom
   ============================================ */

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

html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scroll-behavior: smooth;
  scroll-padding-top: 100px; /* compensa nav sticky */
}

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

body {
  /* Paleta CLARA por defecto para toda la página
     (NAV y HERO redefinen sus propios tokens en su subárbol) */
  --color-text:         #0E1B2E;
  --color-text-soft:    #45566B;
  --color-text-muted:   #6B7A8F;
  --color-surface:      rgba(13, 38, 71, 0.04);
  --color-surface-2:    rgba(13, 38, 71, 0.07);
  --color-border:       rgba(13, 38, 71, 0.12);
  --color-border-soft:  rgba(13, 38, 71, 0.07);

  min-height: 100dvh;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: var(--lh-normal);
  font-family: var(--font-body);
  font-size: var(--fs-body-m);
  color: var(--color-text);
  background-color: var(--color-page);
}

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

img, picture { height: auto; }

input, button, textarea, select {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

a { color: inherit; text-decoration: none; }

ul[role="list"], ol[role="list"] { list-style: none; }

p, h1, h2, h3, h4, h5, h6 { overflow-wrap: break-word; }

:focus-visible {
  outline: 2px solid var(--color-cyan);
  outline-offset: 3px;
}

::selection {
  background: var(--color-cyan);
  color: var(--color-bg);
}
