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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--fuente-principal);
  background-color: var(--fondo-base);
  color: var(--texto-principal);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transicion), color var(--transicion);
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  color: inherit;
}

::selection {
  background: var(--acento-amarillo);
  color: #000000;
}

:focus-visible {
  outline: 2px solid var(--acento-cyan);
  outline-offset: 3px;
  border-radius: 4px;
}

::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--fondo-base);
}

::-webkit-scrollbar-thumb {
  background: var(--borde-color);
  border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--texto-atenuado);
}

.skip-link {
  position: fixed;
  top: -60px;
  left: 12px;
  z-index: 200;
  padding: 0.6rem 1.2rem;
  background: var(--acento-amarillo);
  color: #000000;
  border-radius: 8px;
  font-weight: 600;
  transition: top var(--transicion);
}

.skip-link:focus {
  top: 12px;
}

.container {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin-inline: auto;
  padding-inline: 24px;
}

.section {
  padding-block: var(--espaciado-seccion);
  position: relative;
}

.entrada {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.entrada.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: no-preference) {
  .entrada {
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  }
}