/* =========================================================
   ENCO 2027 · Base
   Reinicio mínimo y estilos por defecto. Requiere enco-tokens.css.
   ========================================================= */

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

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

body {
  margin: 0;
  font-family: var(--enco-fuente-texto);
  font-size: var(--enco-t-cuerpo);
  line-height: var(--enco-interlineado-texto);
  color: var(--enco-negro);
  background: var(--enco-blanco);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Bebas Neue tiene un solo peso: sin negrita falsa */
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--enco-fuente-titulo);
  font-weight: 400;
  font-synthesis: none;
  text-transform: uppercase;
  line-height: var(--enco-interlineado-titulo);
  letter-spacing: var(--enco-tracking-titulo);
  text-wrap: balance;
}
h1 { font-size: var(--enco-t-h1); }
h2 { font-size: var(--enco-t-h2); }
h3 { font-size: var(--enco-t-h3); }

p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

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

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-color: var(--enco-naranja); }

:focus-visible { outline: 3px solid var(--enco-naranja); outline-offset: 3px; }

::selection { background: var(--enco-naranja); color: var(--enco-negro); }

button { font: inherit; }

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