/* ===================================================
   RESET & BASE STYLES
   =================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  color: var(--clr-text);
  background-color: var(--clr-bg);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

/* Anillo de Enfoque de Accesibilidad */
:focus-visible {
  outline: 2px solid var(--clr-accent);
  outline-offset: 4px;
  border-radius: 2px;
}

ul,
ol,
li {
  list-style: none !important;
  list-style-type: none !important;
}

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

/* --- Utilidades Básicas --- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip to main content (WCAG obligatorio) */
.skip-link {
  position: fixed;
  top: -100%;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--clr-accent);
  color: var(--clr-bg);
  padding: var(--sp-md) var(--sp-xl);
  border-radius: var(--radius-md);
  z-index: 9999;
  font-weight: 600;
  text-decoration: none;
  transition: top 0.25s ease-out;
}

.skip-link:focus-visible {
  top: 20px;
  outline: 3px solid var(--clr-gold);
  outline-offset: 2px;
}
