/* Base: reset mínimo y tipografía. Solo selectores de elemento. */
*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--tm-alto-header) + var(--tm-esp-4)); }

body {
  margin: 0;
  background: var(--tm-fondo);
  color: var(--tm-texto);
  font-family: var(--tm-fuente);
  font-size: var(--tm-texto-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }

a { color: var(--tm-ambar); text-decoration: none; }
a:hover { color: var(--tm-ambar-hover); }

button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible { outline: 3px solid var(--tm-ambar); outline-offset: 2px; border-radius: 6px; }

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

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

/* El atributo hidden siempre gana (si no, un display de un componente lo anula). */
[hidden] { display: none !important; }
