/* =========================
   CSS RESET - Base Global
   ========================= */

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

/* Documento base */
html {
  font-size: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

/* Body base */
body {
  min-height: 100vh;
  line-height: 1.5;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, Inter, Helvetica, Arial, sans-serif;
  background-color: #f6f7f8;
  color: #111618;
  text-rendering: optimizeLegibility;
}

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

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

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

/* Listas */
ul,
ol {
  list-style: none;
}

/* Enlaces */
a {
  color: inherit;
  text-decoration: none;
}

/* Títulos */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.2;
}

/* Accesibilidad */
:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

/* Preferencia de animaciones */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
