/* ==========================================================================
   02-base.css  ·  Capa 2 · Base, reset y tipografía
   --------------------------------------------------------------------------
   Elementos sin clase. Si una regla de este archivo puede affectar a varias
   secciones a la vez, es candidata a estar aquí.
   ========================================================================== */

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

html {
  /* Zona segura de notch / barra de gestos en dispositivos con pantalla curves.
     Declarado antes sobre :root en el CSS original; se mantiene aquí. */
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);

  scroll-behavior: smooth;
  /* Compensa el header fijo (sticky, 100px) al saltar a un ancla #. */
  scroll-padding-top: calc(env(safe-area-inset-top, 0px) + 110px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--tx);
  font: 400 16px/1.6 var(--font);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
  color: var(--navy);
}

h2 {
  font-size: clamp(26px, 3.6vw, 34px);
  margin-bottom: 12px;
}

section {
  padding: var(--section-y) 0;
}

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

/* Sprite SVG de iconos. Debe quedar fuera de flujo y no ser leído por lectores
   de pantalla; sus <symbol> se consumen con <use href="#id">.
   Antes era style="position:absolute" en línea sobre el <svg>. */
.svg-sprite {
  position: absolute;
}