/* ============================================================
   RESET MODERNO
   Basado en el reset de Josh Comeau con ajustes para Venibex.
   Objetivo: comportamiento predecible entre navegadores.
   ============================================================ */

/* 1. Modelo de caja consistente */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* 2. Eliminar márgenes por defecto */
* {
  margin: 0;
  padding: 0;
}

/* 3. HTML: scroll suave nativo + tipografía base */
html {
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Respeta usuarios que prefieren menos movimiento */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* 4. Body: alturas y line-height legible */
body {
  min-height: 100vh;
  line-height: 1.6;
}

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

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

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

/* 8. Texto que no rompe contenedores */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

/* 9. Listas sin viñetas por defecto (las añadimos donde aplique) */
ul,
ol {
  list-style: none;
}

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

/* 11. Tablas con borde colapsado */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 12. Eliminar el borde naranja del autofill en algunos navegadores */
input:-webkit-autofill {
  -webkit-text-fill-color: inherit;
  transition: background-color 5000s ease-in-out 0s;
}

/* 13. Foco visible solo cuando se navega con teclado */
:focus:not(:focus-visible) {
  outline: none;
}
