/* =============================================================
   BASE — Sede Digital y web pública de cada ONG (PD-92)
   Reset, tipografía y foco. Sin colores literales: var(--sd-*).
   ============================================================= */

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

* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: var(--sd-font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--sd-tinta);
  background: var(--sd-lienzo);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

img { height: auto; }

a { color: var(--sd-acento); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

button,
input,
select,
textarea { font: inherit; color: inherit; }

button { cursor: pointer; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; font-weight: 750; }

p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--sd-acento-anillo);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: var(--sd-acento); color: var(--sd-sobre-acento); }

.sd-oculto {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

.sd-saltar {
  position: absolute;
  left: 1rem; top: -4rem;
  z-index: 100;
  padding: 0.6rem 1rem;
  border-radius: var(--sd-radio);
  background: var(--sd-acento);
  color: var(--sd-sobre-acento);
  font-weight: 700;
}
.sd-saltar:focus { top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
