/* Reset ligero + estilos base mobile-first, apoyados en tokens.css */

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Montserrat";
  src: url("../fonts/montserrat-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

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

html, body {
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  transition: background-color 0.25s ease, color 0.25s ease;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  line-height: 1.2;
  margin-top: 0;
}

h1 {
  font-weight: 700;
}

h2, h3 {
  font-weight: 600;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--color-link);
}

a:focus-visible,
button:focus-visible {
  /* --color-link, no --color-accent: el naranja falla 3:1 de componente no
     textual sobre fondo claro (2.44:1) — --color-link cumple en ambos modos */
  outline: 3px solid var(--color-link);
  outline-offset: 2px;
}

main {
  display: block;
}
