*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
}

html {
  font-size: 62.5%;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  scrollbar-color: var(--borde-fuerte) transparent;
  accent-color: var(--marca);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  background-color: var(--fondo);
  color: var(--tinta);
  font-family: var(--letra);
  font-size: var(--texto-m);
  line-height: var(--linea-m);
  font-weight: var(--peso-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  caret-color: var(--marca-texto);
  overflow-wrap: break-word;
}

body[data-cargando] {
  visibility: hidden;
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}

button {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
}

a {
  color: var(--marca-texto);
  text-decoration-thickness: 0.1rem;
  text-underline-offset: 0.3rem;
  touch-action: manipulation;
}

ul[role="list"],
ol[role="list"] {
  list-style: none;
  padding: 0;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

fieldset {
  border: 0;
  padding: 0;
  min-width: 0;
}

dialog {
  padding: 0;
  border: 0;
  color: inherit;
  background: none;
  max-width: none;
  max-height: none;
}

[hidden] {
  display: none !important;
}

::selection {
  background-color: var(--marca);
  color: var(--sobre-marca);
}

:focus-visible {
  outline: 0.3rem solid var(--marca-texto);
  outline-offset: 0.2rem;
}

:focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
