/* =========================================================
   Base / reset ligero
   ========================================================= */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Evita que el header fijo tape la sección al navegar por anclas */
  scroll-padding-top: var(--header-height);
}

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--color-page-bg);
  color: var(--color-ink);
  font-family: var(--font-base);
  font-size: var(--fs-md);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Bloquea el scroll cuando el menú móvil está abierto */
body.is-nav-open {
  overflow: hidden;
}

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

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

/* Iconos Material Symbols (rellenos, color plano heredado del contexto) */
.mi {
  display: block;
  flex: none;
  width: 24px;
  height: 24px;
  fill: currentColor;
}


ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Foco visible y consistente en todo el sitio */
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-sm);
}

/* Enlace para saltar al contenido (accesibilidad por teclado) */
.skip-link {
  position: absolute;
  left: var(--space-md);
  top: -100px;
  z-index: calc(var(--z-header) + 10);
  padding: var(--space-xs) var(--space-md);
  background: var(--color-yellow);
  color: var(--color-ink);
  font-size: var(--fs-base);
  font-weight: var(--fw-semibold);
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-link:focus-visible {
  top: var(--space-xs);
}

@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;
  }
}
