/* Base CSS - Resets, Clamp y Rendimiento */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg-black);
  color: var(--color-text-light);
  line-height: 1.5;
  display: flex;
  flex-direction: column;
}

h1 {
  font-family: var(--font-accent);
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.2;
  font-weight: 800;
  text-transform: uppercase;
  text-align: center;
  width: 100%;
}

h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  text-align: center;
}

p {
  font-size: clamp(17px, 1rem + 0.3vw, 20px);
  line-height: 1.45;
  text-align: justify;
}

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

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #cb9b51;
  color: var(--color-bg-black);
  padding: 10px;
  z-index: 10000;
  transition: top 0.3s;
}

.skip-link:focus {
  top: 0;
}

/* Optimización de Rendimiento */
main, footer, section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 600px;
}
