/* ============================================================
   BASE — reset, document defaults, typography primitives.
   ============================================================ */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

/* Mientras la portada está puesta, el fondo no se puede arrastrar. */
html.portada-activa,
html.portada-activa body {
  overflow: hidden;
  height: 100%;
  overscroll-behavior: none;
  touch-action: none;
}

body {
  margin: 0;
  background: var(--fondo);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: var(--txt-base);
  font-weight: 600;
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--fuente-display);
  font-weight: 800;
  margin: 0;
  line-height: 1.08;
  text-wrap: balance;
}

p { margin: 0; text-wrap: pretty; }

a { color: var(--acento); }
a:hover { color: var(--acento-fuerte); }

img { max-width: 100%; display: block; }

button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  cursor: pointer;
}

input {
  font: inherit;
  color: inherit;
}

ol, ul { margin: 0; padding: 0; list-style: none; }

/* Visible focus for everything reachable by keyboard. */
:focus-visible {
  outline: 3px solid var(--rosa-700);
  outline-offset: 3px;
  border-radius: 6px;
}

/* Screen-reader-only helper. */
.solo-lectores {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.oculto { display: none !important; }

/* The <defs>-only sprite must never take up space. */
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Reusable type helpers ---------- */

.rotulo {
  font-family: var(--fuente-display);
  font-weight: 700;
  font-size: var(--txt-xs);
  letter-spacing: var(--track-wide);
  text-transform: uppercase;
}

.titulo-seccion {
  font-size: var(--txt-3xl);
  text-align: center;
  color: var(--acento-verde);
}

.subtitulo-seccion {
  margin-top: var(--sp-2);
  text-align: center;
  font-size: var(--txt-md);
  font-weight: 600;
  color: var(--texto-suave);
}

::-webkit-scrollbar { height: 6px; width: 8px; }
::-webkit-scrollbar-thumb { background: var(--rosa-400); border-radius: var(--r-full); }
::-webkit-scrollbar-track { background: transparent; }
