/* CSS Reset - Normalización de estilos entre navegadores */

/* Box sizing */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Remover márgenes y padding por defecto */
* {
  margin: 0;
  padding: 0;
}

/* Configuración base del documento */
html {
  font-size: 100%; /* 16px base */
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

html:focus-within {
  scroll-behavior: smooth;
}

/* Body defaults */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.5;
}

/* Elementos de texto */
h1, h2, h3, h4, h5, h6,
p, li, figcaption {
  overflow-wrap: break-word;
}

/* Listas */
ul, ol {
  list-style: none;
}

/* Imágenes y media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Formularios */
input,
button,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

/* Enlaces */
a {
  text-decoration: none;
  color: inherit;
}

/* Tablas */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remover animaciones para usuarios que prefieren movimiento reducido */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
