/* ============================================
   NORMALIZE CSS - RESET BÁSICO
   Normalización de estilos entre navegadores
   ============================================ */

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

/* HTML y body */
html {
  font-size: 16px; /* Base para rem */
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
    'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
    sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: inherit;
  line-height: 1.2;
}

/* Links */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

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

/* Imágenes */
img {
  max-width: 100%;
  height: auto;
  display: block;
  border-style: none;
}

/* Botones */
button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

button:focus,
input:focus,
select:focus,
textarea:focus {
  outline: none;
}

/* Formularios */
input,
button,
textarea,
select {
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;
  margin: 0;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
}

textarea {
  resize: vertical;
}

/* Tablas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Media */
audio,
canvas,
iframe,
img,
svg,
video {
  vertical-align: middle;
}

/* Ocultar elementos con atributo hidden */
[hidden] {
  display: none !important;
}
