/* ==========================================================================
   reset.css — Reset CSS moderno
   Normaliza comportamiento entre navegadores y establece defaults sensatos.
   ========================================================================== */

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

/* Eliminar margenes y padding por defecto */
* {
  margin: 0;
  padding: 0;
}

/* Altura minima del documento, tipografia suavizada */
html {
  -webkit-text-size-adjust: 100%;
  -moz-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}

/* Body sin scroll horizontal */
body {
  min-height: 100dvh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Imagenes y media responsivos */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

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

/* Botones sin estilos por defecto */
button {
  background: none;
  border: none;
  cursor: pointer;
}

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

/* Headings sin tamano predefinido */
h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
  font-size: inherit;
  font-weight: inherit;
}

/* Parrafos y texto sin desbordamiento */
p, span, a, li {
  overflow-wrap: break-word;
}

/* Enlaces sin decoracion por defecto */
a {
  color: inherit;
  text-decoration: none;
}

/* Tablas sin colapso de bordes por defecto */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Textarea solo redimensionable en vertical */
textarea {
  resize: vertical;
}

/* Respetar preferencia de movimiento reducido */
@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;
    scroll-behavior: auto !important;
  }
}
