*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font-body); font-size: var(--step-0); line-height: 1.6;
  color: var(--texto); background: var(--marfil); overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.035em; line-height: .98; text-wrap: balance; }
p { text-wrap: pretty; }
:focus-visible { outline: 3px solid var(--ambar); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 100; background: var(--ambar); color: var(--grafito); padding: .6rem 1rem; border-radius: .6rem; font-weight: 700; }
.skip:focus { top: 1rem; }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.sec { position: relative; padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.sec--marfil { background: var(--marfil); color: var(--texto); }
.sec--verde { background: var(--verde); color: var(--marfil); }
.sec--hondo { background: var(--verde-hondo); color: var(--marfil); }
.sec--grafito { background: var(--grafito-hondo); color: var(--marfil); }
.sec-title { font-size: var(--step-3); max-width: 15ch; }
.sec-lead { font-size: var(--step-1); line-height: 1.45; max-width: 34rem; margin-top: 1.25rem; color: var(--texto-suave); }
.sec--verde .sec-lead, .sec--hondo .sec-lead, .sec--grafito .sec-lead { color: rgba(246, 245, 240, .82); }

/* Botones */
.btn {
  --bg: var(--ambar); --fg: var(--grafito); --bd: transparent;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 3.2rem; padding: .75rem 1.5rem; border-radius: 999px; border: 2px solid var(--bd);
  background: var(--bg); color: var(--fg); font-weight: 700; text-decoration: none; line-height: 1.1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 .7rem 1.6rem -.6rem rgba(0, 0, 0, .45); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 1.1rem; height: 1.1rem; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn--ghost { --bg: transparent; --fg: var(--marfil); --bd: rgba(246, 245, 240, .55); }
.btn--ghost:hover { background: rgba(246, 245, 240, .1); }
.btn--oscuro { --bg: var(--verde); --fg: var(--marfil); }

/* Entrada al hacer scroll: un solo gesto, sutil */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal { opacity: 1; transform: none; }
}
