/* =============================================================
   RESET CSS — VIDA Xport
   Reset moderno minimal (estilo Andy Bell / Josh Comeau adaptado).
   No editar salvo decisión arquitectónica.
   ============================================================= */

/* Box-sizing predecible en todo el árbol */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* Evita ajustes automáticos de tamaño de texto en iOS al rotar */
html {
  -webkit-text-size-adjust: 100%;
}

/* Quitar márgenes por defecto en bloques tipográficos */
body,
h1, h2, h3, h4, h5, h6,
p, figure, blockquote,
dl, dd {
  margin: 0;
}

/* Listas marcadas con role="list" no llevan estilos por defecto
   (útil para listas de navegación o cards) */
ul[role='list'],
ol[role='list'] {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Scroll suave al navegar por anclas internas */
html:focus-within {
  scroll-behavior: smooth;
}

/* Body: altura mínima de viewport, render optimizado, line-height legible */
body {
  min-height: 100vh;
  text-rendering: optimizeSpeed;
  line-height: 1.6;
}

/* Mejora de subrayado en enlaces sin clase */
a:not([class]) {
  text-decoration-skip-ink: auto;
}

/* Imágenes y media: nunca exceder su contenedor, comportamiento bloque */
img,
picture,
video,
canvas,
svg {
  max-width: 100%;
  display: block;
}

/* Heredar tipografía en form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* Evitar texto largo no fragmentable en bloques de texto */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* Remover estilos de botón por defecto (lo controlamos en main.css) */
button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
}

/* Respetar preferencia del usuario por reducir movimiento */
@media (prefers-reduced-motion: reduce) {
  html:focus-within {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
