/**
 * El reset y los estilos de elemento. Únicos.
 */

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

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

  body {
    margin: 0;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    font-family: var(--fuente-texto);
    font-size: var(--texto-md);
    font-weight: var(--peso-normal);
    line-height: var(--interlinea-normal);
    -webkit-font-smoothing: antialiased;
  }

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

  /* Títulos grandes y compactos. */
  h1,
  h2,
  h3 {
    font-family: var(--fuente-titulos);
    font-weight: var(--peso-encabezado);
    font-stretch: var(--ancho-encabezado);
    line-height: var(--interlinea-apretada);
    /* Líneas parejas: con la fuente ancha, el corte normal deja palabras
       sueltas en la última línea. */
    text-wrap: balance;
    letter-spacing: var(--espaciado-letra-titulo);
  }

  h1 {
    font-size: var(--titulo-hero);
  }

  a {
    color: var(--color-guinda-claro);
    text-decoration: underline;
    text-underline-offset: 0.2em;
  }

  a:hover,
  a:focus-visible {
    color: var(--color-texto);
  }

  :focus-visible {
    outline: 2px solid var(--color-guinda-claro);
    outline-offset: 3px;
  }

  address {
    font-style: normal;
  }

  ul,
  ol {
    margin: 0;
    padding: 0;
    list-style: none;
  }

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

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