/* ============================================
   ILBD — styles.css (RESPONSIVE MEJORADO)
   ============================================ */
/* ── RESET & BASE ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  width: calc(100% - 20px);
  max-width: var(--medida-pagina);
  margin: 0 auto;
  font-family: var(--font-b);
  color: var(--black);
  background: var(--white);
  overflow-x: hidden;
}

body {
  padding: 10px;
  padding-top: 120px;
}

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

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

:focus-visible {
  outline-color: var(--color-negro);
  outline-style: solid;
  outline-width: 3px;
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
html {
    width: calc(100% - 16px);
  }

body {
    padding: 8px;
    padding-top: 90px;
  }
}

@media (max-width: 480px) {
html {
    width: calc(100% - 12px);
  }

body {
    padding: 6px;
    padding-top: 82px;
  }
}

@media (max-width: 360px) {
body {
    padding: 4px;
    padding-top: 78px;
  }
}

@media (prefers-reduced-motion: reduce) {
html {
    scroll-behavior: auto;
  }

*,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
