/* Base del CRM Grupo MM: fuentes propias (sin CDN), reinicio, tipografía, foco y controles de formulario. */

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

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

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

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

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow Condensed";
  font-weight: 800;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--gmm-fondo);
  color: var(--gmm-tinta);
  font-family: var(--fuente-cuerpo);
  line-height: 1.5;
}

/* El atributo hidden siempre gana sobre cualquier display */
[hidden] {
  display: none !important;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--fuente-titulo);
  font-weight: 700;
  line-height: 1.15;
}

h1 {
  font-size: var(--texto-xl);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h2 {
  font-size: var(--texto-l);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

h3 {
  font-size: var(--texto-l);
}

p {
  margin: 0;
}

a {
  color: var(--gmm-azul);
}

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

/* Tamaño 1rem para que Safari en iPhone no amplíe la página al enfocar un campo */
input,
select,
textarea,
button {
  font-family: inherit;
  font-size: var(--texto-m);
}

img {
  max-width: 100%;
}
