/* ────────────────────────────────────────────────────────────
 * aeroStations — Base: reset, body, typography, grain overlay
 * ──────────────────────────────────────────────────────────── */

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

html { background: var(--bg); }

body {
  font-family: var(--font);
  color: var(--on-bg);
  font-size: 0.9375rem;
  line-height: 1.5;
  min-height: 100dvh;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background var(--dur-mid) var(--ease), color var(--dur-mid) var(--ease);
}

/* Film grain global — fixed, pointer-none, sin costo de scroll */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 200;
  opacity: var(--grain-opacity);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/></svg>");
  mix-blend-mode: overlay;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: 8px;
}

/* Layout shell */
.layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px clamp(20px, 4vw, 32px) 80px;
}

/* Íconos inline (Phosphor-style) */
.ic {
  display: inline-block;
  width: 1em;
  height: 1em;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.15em;
  flex-shrink: 0;
}

/* Reveal animation entrante (controlada por IntersectionObserver en app.js) */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity var(--dur-slow) var(--ease),
              transform var(--dur-slow) var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
