/* ==========================================================================
   base.css — reset mínimo, tipografía global y fondo con atmósfera.
   Depende de tokens.css. Sin colores ni medidas literales.
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body, h1, h2, h3, h4, p, figure, ul, ol, dl, dd { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
img, svg, video, canvas { display: block; max-width: 100%; }
input, button, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }

body {
  min-height: 100dvh;
  font-family: var(--fuente-texto);
  font-size: var(--paso-0);
  line-height: var(--interlineado-texto);
  color: var(--texto);
  background-color: var(--fondo);
  /* Atmósfera: retícula punteada muy tenue sobre el fondo tintado */
  background-image: radial-gradient(var(--reticula-punto) 1px, transparent 1.2px);
  background-size: var(--reticula-paso) var(--reticula-paso);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { line-height: var(--interlineado-titulo); font-weight: var(--peso-fuerte); text-wrap: balance; }
h1 { font-size: var(--paso-4); }
h2 { font-size: var(--paso-2); }
h3 { font-size: var(--paso-1); }
p { text-wrap: pretty; }
a { color: var(--enlace); text-underline-offset: 0.2em; }

/* Datos técnicos: horas, códigos, teléfonos, RUC, montos → monoespaciada con cifras tabulares */
.mono, time, code, kbd, samp { font-family: var(--fuente-mono); font-variant-numeric: tabular-nums; }
.cifra { font-variant-numeric: tabular-nums; }

/* Rótulo de grupo: MAYÚSCULAS con tracking (PROSPECCIÓN, PENDIENTES…) */
.rotulo {
  font-size: var(--paso-n2);
  font-weight: var(--peso-fuerte);
  letter-spacing: var(--tracking-rotulo);
  text-transform: uppercase;
  color: var(--texto-secundario);
}

:focus-visible { outline: 2px solid var(--borde-enfoque); outline-offset: 2px; }

/* Marca de agua: capa FIJA detrás de todo; las superficies son opacas y la tapan */
.marca-agua {
  position: fixed;
  inset: auto -2vw -4vw auto;
  z-index: var(--z-fondo);
  pointer-events: none;
  font-family: var(--fuente-texto);
  font-weight: var(--peso-negrita);
  font-size: clamp(8rem, 22vw, 26rem);
  line-height: 0.8;
  letter-spacing: -0.04em;
  color: var(--marca-agua);
  opacity: var(--marca-agua-opacidad);
  user-select: none;
}

/* "Ir al contenido" (USA-13): primer elemento con Tab, visible solo con foco */
.saltar {
  position: absolute; left: var(--esp-s); top: var(--esp-s); z-index: var(--z-toast);
  padding: var(--esp-xs) var(--esp-s); border: 1px solid var(--borde-enfoque); border-radius: var(--radio-m);
  background: var(--superficie-alta); color: var(--texto); transform: translateY(-200%);
}
.saltar:focus { transform: none; }

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