/* ============================================================
   RESET.CSS — CSS Reset moderno para VELEX
   ============================================================ */

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

/* Quitar márgenes y paddings por defecto */
* {
  margin: 0;
  padding: 0;
}

/* Scroll suave a nivel HTML */
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  tab-size: 4;
}

/* Tipografía base y fondo */
body {
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

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

/* Inputs y formularios heredan tipografía */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

/* Botones sin estilos por defecto */
button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  -webkit-appearance: none;
  appearance: none;
}

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

/* Párrafos y headings con overflow wrap */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* Tabla sin colapso raro */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Evitar overflow por defecto en textareas */
textarea {
  resize: vertical;
}

/* Quitar outline por defecto (se restaura con :focus-visible en global.css) */
:focus {
  outline: none;
}

/* Línea horizontal sin estilos raros */
hr {
  border: none;
  border-top: 1px solid currentColor;
  opacity: 0.15;
}

/* Fieldset y legend limpios */
fieldset {
  border: none;
}

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

/* Reducir animaciones si el usuario lo prefiere */
@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;
  }
}
