/* ==========================================================================
   BANGESA – Base (reset + elementos)
   ========================================================================== */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--navbar-height);
}

/* Desplazamiento suave al navegar por anclas (menú, botones del hero, etc.).
   Solo si el usuario no pidió reducir el movimiento. */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  font-family: var(--font-primary);
  font-size: clamp(1rem, 2.5vw, 1.0625rem);
  line-height: var(--leading-relaxed);
  color: var(--color-text);
  background-color: var(--color-bg);
}

body.is-menu-open {
  overflow: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-heading);
  font-weight: var(--font-bold);
  line-height: var(--leading-tight);
  color: var(--color-heading);
  text-transform: uppercase;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

a {
  color: inherit;
}

address {
  font-style: normal;
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--color-text-inverse);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--color-charcoal);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: var(--space-md);
  z-index: calc(var(--z-fixed) + 1);
  padding: var(--space-sm) var(--space-md);
  background: var(--color-text-inverse);
  color: var(--color-charcoal);
  font-weight: var(--font-bold);
}

.skip-link:focus {
  top: var(--space-sm);
}

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
