/* reset.css
   Versión: moderna, combina un reset clásico con ajustes actuales (box-sizing, imágenes responsivas,
   elementos de formulario heredando la fuente, etc.)
   Incluir antes de tus estilos principales.
*/

/* 1) Box sizing: más fácil para layouts */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2) Reset básico de márgenes, paddings y tipografía básica */
html, body,
div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6,
p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup, menu, nav, output,
ruby, section, summary, time, mark, audio, video {
  margin: 0;
  padding: 0;
  border: 0;
  vertical-align: baseline;
  background: transparent;
  font-size: 100%;
  font: inherit;
}

/* 3) HTML5 elements display fix for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
  display: block;
}

/* 4) Base body settings */
html, body {
  height: 100%;
}
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  background: #fff; /* opcional, cambia según tu diseño */
  color: #000;      /* opcional, hereda si prefieres */
}

/* 5) Lists */
ol, ul {
  list-style: none;
}

/* 6) Links */
a {
  text-decoration: none;
  color: inherit;
  background-color: transparent;
}

/* 7) Images & media */
img, picture, video, canvas, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

/* 8) Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 9) Form elements: heredan fuente, quitar apariencia por defecto */
input, textarea, select, button {
  font: inherit;
  line-height: inherit;
  color: inherit;
  background: transparent;
  border: none;
  outline: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
}

/* 10) Restaurar accesibilidad mínima: enfoque visible (no lo quites) */
:focus {
  outline: 3px solid rgba(21, 156, 228, 0.6); /* se puede personalizar */
  outline-offset: 2px;
}

/* 11) Buttons y elementos clicables: base plausible */
button {
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

/* 12) Inputs tipo number, search - quitar flechas y estilos de plataforma si se desea */
input[type="search"]::-webkit-search-decoration,
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-results-button,
input[type="search"]::-webkit-search-results-decoration {
  -webkit-appearance: none;
}

/* 13) Small utility: ocultar elementos visualmente pero accesibles a screen readers */
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap; /* evita wrapping */
  border: 0;
}

/* 14) Useful defaults you can override en tu CSS principal */
img[alt=""] { /* si la imagen es puramente decorativa */
  /* mantener si prefieres display:none; pero generalmente mejor dejar visible */
}

/* 15) Media queries: asegurar que texto pequeños no se rompan */
html {
  -webkit-text-size-adjust: 100%;
}

/* Fin del reset */
