/* Base compartida (sitio y panel). Requiere tokens.css antes. */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: var(--sans);
  font-size: var(--t-cuerpo);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.05;
}
h1, h2 { font-size: var(--t-titulo); letter-spacing: -0.02em; }
h3 { font-size: var(--t-tarjeta); line-height: 1.2; }
p { margin: 0; }

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

a { color: inherit; }

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

/* Foco visible en todo elemento interactivo (RNF-04) */
:focus-visible { outline: 3px solid var(--acento); outline-offset: 2px; }

[hidden] { display: none !important; }

/* Utilidades mínimas */
.contenedor {
  width: 100%;
  max-width: calc(var(--contenedor) + 2 * var(--margen));
  margin-inline: auto;
  padding-inline: var(--margen);
}

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

.saltar {
  position: absolute; left: var(--margen); top: -100px; z-index: 100;
  background: var(--tinta); color: var(--superficie);
  padding: 12px 16px; border-radius: var(--r-boton); font-weight: 700;
}
.saltar:focus { top: 12px; }
