/* AMULETO — base: reset, tipografía, foco, utilidades de layout */

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

html {
  -webkit-text-size-adjust: 100%;
  background: var(--color-background);
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: var(--weight-light);
  line-height: 1.5;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: var(--weight-heavy); color: var(--color-heading); text-wrap: balance; }

:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
::selection { background: var(--am-ciruela); color: var(--am-claro); }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 400;
  padding: 12px 20px;
  border-radius: var(--radius-pill);
  background: var(--am-ciruela);
  color: var(--am-claro);
  font: 400 var(--fs-button) / 1 var(--font-mono);
  letter-spacing: var(--ls-mono);
  text-transform: uppercase;
}
.skip-link:focus { top: 16px; }

.mono {
  font-family: var(--font-mono);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: var(--ls-kicker);
}

main, .footer { position: relative; z-index: 1; }

/* Secciones */
.section {
  padding: var(--sp-l) var(--gutter);
  background: var(--surface-block);
  color: var(--color-text);
}

.sec-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-end;
  gap: 8px 24px;
  margin-bottom: 8vh;
  text-align: center;
}
.sec-head h2 {
  font-size: var(--fs-h2);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-h2);
}
.sec-head .mono {
  font-size: var(--fs-kicker);
  color: var(--text-soft);
  padding-bottom: 0.5em;
}

/* Revelado al entrar en pantalla: solo con JS. Se hace con animation (no transition)
   para no pisar las transiciones propias de tarjetas y filas. */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; }
.js .reveal.is-in { animation: rise 0.8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; }
  .js .reveal.is-in { animation: none; }
}

.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; }
