/* ==========================================================================
   RESET CSS — DIGART Studio
   Base normativa del Frontend: normaliza el comportamiento de los
   navegadores antes de que intervenga cualquier Componente o Pattern.

   Este archivo no define color, tipografía, espaciado ni ningún valor de
   Design Token: esos valores se consumen desde tokens.css en capas
   posteriores. No contiene clases utilitarias ni reglas específicas de
   página.
   ========================================================================== */

/* --------------------------------------------------------------------
   1. Box sizing universal
   -------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* --------------------------------------------------------------------
   2. Eliminación de márgenes y paddings por defecto
   -------------------------------------------------------------------- */
* {
  margin: 0;
  padding: 0;
}

/* --------------------------------------------------------------------
   3. html y body
   -------------------------------------------------------------------- */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

html,
body {
  min-height: 100%;
}

body {
  line-height: 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --------------------------------------------------------------------
   4. Imágenes, SVG, video y canvas
   -------------------------------------------------------------------- */
img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------------------------
   5. Formularios (button, input, textarea, select)
   -------------------------------------------------------------------- */
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  appearance: none;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

textarea {
  resize: vertical;
}

/* --------------------------------------------------------------------
   6. Listas
   -------------------------------------------------------------------- */
ul,
ol {
  list-style: none;
}

/* --------------------------------------------------------------------
   7. Enlaces
   -------------------------------------------------------------------- */
a {
  color: inherit;
  text-decoration: none;
}

/* --------------------------------------------------------------------
   8. Tablas
   -------------------------------------------------------------------- */
table {
  border-collapse: collapse;
  border-spacing: 0;
  width: 100%;
}

/* --------------------------------------------------------------------
   9. Elementos multimedia
   -------------------------------------------------------------------- */
audio,
video {
  display: block;
}

audio {
  width: 100%;
}

/* --------------------------------------------------------------------
   10. Elementos interactivos
   -------------------------------------------------------------------- */
[hidden] {
  display: none;
}

details summary {
  cursor: pointer;
}

/* --------------------------------------------------------------------
   11. Herencia tipográfica donde corresponda
   -------------------------------------------------------------------- */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-size: inherit;
  font-weight: inherit;
}

p,
span,
label {
  font: inherit;
  color: inherit;
}

/* --------------------------------------------------------------------
   12. Respeto por prefers-reduced-motion
   -------------------------------------------------------------------- */
@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;
  }
}
