/* =============================================================
   reset.css — Fede Saimur Tattoo
   Reset moderno basado en Josh Comeau / Andy Bell.
   Propósito: eliminar inconsistencias de browser, sin destruir
   comportamiento útil. No contiene valores visuales del proyecto.
   ============================================================= */

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

/* 2. Márgenes y paddings base a cero */
* {
  margin: 0;
  padding: 0;
}

/* 3. Raíz: smooth scroll y base de tipografía */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* Optimización de renderizado de fuentes */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

/* Lenis (smooth scroll JS) añade esta clase al <html> al inicializarse.
   Cuando está presente, el scroll-behavior:smooth de CSS queda redundante
   y puede generar doble suavizado (el navegador "frena" el scroll que
   Lenis ya está animando por rAF) — se desactiva a favor del de Lenis. */
html.lenis {
  scroll-behavior: auto !important;
}

/* 4. Body: altura mínima de ventana, line-height accesible */
body {
  min-height: 100dvh;
  line-height: 1.5;
}

/* 5. Imágenes y medios: responsive por defecto */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* 6. Formularios: heredan tipografía */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* 7. Párrafos y encabezados: no overflow-wrap oculto */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
  hyphens: auto;
}

/* 8. Listas: sin estilo por defecto (se añade donde se necesita) */
ul,
ol {
  list-style: none;
}

/* 9. Links: sin decoración por defecto */
a {
  text-decoration: none;
  color: inherit;
}

/* 10. Botones: sin estilos de browser */
button {
  background: none;
  border: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

/* 11. SVG inline: sin overflow */
svg {
  overflow: hidden;
}

/* 12. Respetar preferencia de movimiento reducido (base) */
@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;
  }
}
