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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-family);
  background: var(--color-bg);
  color: var(--color-text);
  font-weight: var(--fw-regular);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--color-accent); color: #fff; }

/* fijo en la esquina durante todo el recorrido */
.companies-badge {
  position: fixed;
  top: var(--space-md);
  left: var(--space-md);
  z-index: 100;
  display: block;
  width: 180px;
  height: auto;
  max-width: 180px;
  margin: 0;
  object-fit: contain;
  transform-origin: top left;
  transition: transform 0.3s ease, top 0.3s ease, left 0.3s ease, background 0.3s ease, padding 0.3s ease;
}

.companies-badge.is-scrolled {
  transform: scale(0.72);
  top: var(--space-sm);
  left: var(--space-sm);
}

@media (max-width: 640px) {
  .companies-badge {
    width: 130px;
    top: var(--space-sm);
    left: var(--space-sm);
  }
  .companies-badge.is-scrolled { transform: scale(0.75); }
}

h1, h2, h3, h4 {
  font-weight: var(--fw-bold);
  line-height: 1.15;
  margin: 0 0 var(--space-sm);
}

p { margin: 0 0 var(--space-sm); color: var(--color-text-muted); }

img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; color: inherit; }
a { color: var(--color-accent); }

/* botones "blanditos": se aplastan un poco al pulsarlos (scale no choca con los transform de GSAP) */
button, .hero__cta {
  transition-property: background, color, box-shadow, border-color, scale;
  transition-duration: 200ms, 200ms, 200ms, 200ms, 320ms;
  transition-timing-function: ease, ease, ease, ease, cubic-bezier(0.34, 1.8, 0.64, 1);
}
button:active:not(:disabled), .hero__cta:active { scale: 0.94; transition-duration: 200ms, 200ms, 200ms, 200ms, 80ms; }

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

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

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