/* Reglas generales aplicadas a toda la aplicación. */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--color-text);
  background: var(--color-background);
  font-family: var(--font-main);
  line-height: 1.5;
}

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

button,
a,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  line-height: 1.25;
}

h3 {
  line-height: 1.3;
}

button,
select,
a {
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition);
}

/* Un foco visible ayuda a navegar sin ratón. */
:focus-visible {
  outline: 3px solid var(--color-accent);
  outline-offset: 3px;
}
