/* ==========================================================================
   MOVEMOS PAÍS — BASE
   --------------------------------------------------------------------------
   Reset, tipografía base y estilos globales del documento.
   Carga DESPUÉS de tokens.css.
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-surface-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-snug);
  color: var(--brand-azul-800);
  letter-spacing: var(--tracking-tight);
}

p { line-height: var(--leading-relaxed); }

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--motion-fast) var(--easing-default);
}
a:hover { color: var(--color-text-link-hover); }
a:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-xs);
}

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}
button:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

input, textarea, select {
  font-family: inherit;
  font-size: var(--text-base);
}

ul, ol { list-style: none; }

hr {
  border: 0;
  border-top: 1px solid var(--color-border-subtle);
  margin-block: var(--space-8);
}

/* Skip-navigation (accesibilidad) */
.skip-nav {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--brand-azul-800);
  color: var(--color-text-on-brand);
  padding: var(--space-3) var(--space-6);
  font-family: var(--font-display);
  font-weight: var(--weight-bold);
  font-size: var(--text-sm);
  z-index: var(--layer-skip);
  border-radius: 0 0 var(--radius-md) 0;
  text-decoration: none;
}
.skip-nav:focus { top: 0; }

/* Selection */
::selection {
  background: var(--brand-amarillo-500);
  color: var(--brand-azul-800);
}

/* Reduce motion */
@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;
  }
}
