/* ============================================================
   RESET.CSS — Reset / Normalize
   Base mínima para eliminar inconsistencias entre navegadores.
   ============================================================ */

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

/* 2. Raíz */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

/* 3. Body base */
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 4. Media responsive por defecto */
img,
video,
svg {
  display: block;
  max-width: 100%;
}

/* 5. Herencia tipográfica para formularios */
input,
button,
textarea,
select {
  font: inherit;
}

/* 6. Evitar desbordamiento de texto largo */
p,
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 7. Eliminar estilo de listas */
ul, ol {
  list-style: none;
}

/* 8. Anclas sin subrayado por defecto */
a {
  text-decoration: none;
  color: inherit;
}

/* 9. Botones */
button {
  cursor: pointer;
  border: none;
  background: none;
}

/* 10. Tabla */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 11. Fieldset */
fieldset {
  border: none;
}

/* 12. Scrollbar personalizada (Chromium) */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--color-gray-100, #f1f5f9);
}

::-webkit-scrollbar-thumb {
  background: var(--color-gray-400, #94a3b8);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary, #0369a1);
}

/* 13. Selección de texto */
::selection {
  background: hsl(200, 80%, 38%, 0.2);
  color: inherit;
}
