*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: var(--bg-sheen);
  color: var(--text-body);
  -webkit-font-smoothing: antialiased;
  font-size: 22px;
  line-height: 1.6;
  background-attachment: fixed;
}

/* SCROLLBAR */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--border-color);
}

/* SEMANTIC */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
}

main {
  position: relative;
}

section {
  position: relative;
}

footer {
  background: var(--negro);
  color: var(--papel);
}

/* HEADINGS */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
}

h2 {
  font-size: clamp(1.75rem, 4vw, 3rem);
}

h3 {
  font-size: clamp(1.2rem, 3vw, 1.5rem);
}

h4 {
  font-size: clamp(1.1rem, 2.5vw, 1.3rem);
}

/* LINKS */
a {
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.3s ease;
}

a:hover {
  color: var(--accent-primary);
}

a:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

/* BUTTONS */
button {
  font-family: var(--font-ui);
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  background: none;
  padding: 0;
}

button:focus-visible {
  outline: 2px solid var(--accent-primary);
  outline-offset: 2px;
}

button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* IMAGES */
img {
  max-width: 100%;
  display: block;
}

/* REDUCE MOTION */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* MOBILE: Aumentar tamaño de fuente */
@media (max-width: 480px) {
  body {
    font-size: 26px;
  }
}
