/* Base */
html {
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--white);
  font-family: var(--font-sans);
  color: var(--navy);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
}

a:hover {
  color: var(--navy);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Keyboard focus: visible ring, white on dark backgrounds */
:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.subastas :focus-visible,
.cta-banner :focus-visible,
.site-footer :focus-visible {
  outline-color: var(--white);
}

/* Skip-link target (tabindex="-1"): no ring on the whole page */
main:focus {
  outline: none;
}

.skip-link,
.skip-link:hover {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 3000;
  padding: 12px 18px;
  border-radius: 0 0 12px 12px;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}

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

/* <button> that looks like inline text (e.g. "Configurar cookies") */
.link-button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}

/* Fade-in on scroll (classes added by js/animations.js) */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Shared section headings */
.section-title {
  margin: 0;
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.section-lede {
  margin: 0;
  font-size: 18px;
  color: var(--text-body);
}

/* Buttons (hover keeps the same colour, overriding the base a:hover) */
.btn {
  text-decoration: none;
  border-radius: 999px;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
}

.btn-sm {
  padding: 12px 20px;
  min-height: 44px;
}

.btn-lg {
  font-weight: 700;
  font-size: 16px;
  padding: 14px 26px;
  min-height: 48px;
}

.btn-primary,
.btn-primary:hover {
  color: var(--white);
  background: var(--accent);
}

.btn-light,
.btn-light:hover {
  color: var(--navy);
  background: var(--white);
}
