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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--alto-header) + 16px);
}

body {
  background: var(--superficie);
  color: var(--texto);
  font-family: var(--fuente-texto);
  font-size: 16px;
  line-height: 1.5;
  font-feature-settings: 'cv11', 'ss01';
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

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

button {
  background: none;
  border: none;
  cursor: pointer;
}

ul,
ol {
  list-style: none;
}

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

.hm-contenedor {
  width: 100%;
  max-width: var(--ancho-maximo);
  margin-inline: auto;
  padding-inline: var(--margen-lateral);
}

.hm-seccion {
  padding-block: var(--seccion-y);
  background: var(--superficie);
}

.hm-seccion--alterna {
  background: var(--superficie-3);
}

.hm-h1,
.hm-h2,
.hm-h3,
.hm-h4 {
  font-family: var(--fuente-titulos);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.04;
  color: var(--texto);
  text-wrap: balance;
}

.hm-h1 { font-size: clamp(40px, 5vw, 88px); }
.hm-h2 { font-size: clamp(30px, 3.6vw, 60px); }
.hm-h3 { font-size: clamp(22px, 2vw, 36px); }
.hm-h4 { font-size: clamp(18px, 1.4vw, 22px); }

.hm-bajada {
  font-size: 18px;
  line-height: 1.5;
  color: var(--texto-suave);
}

.hm-antetitulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--texto-tenue);
}

@media (min-width: 1024px) {
  .hm-antetitulo {
    font-size: 13px;
  }
}

.hm-antetitulo::before {
  content: "";
  width: 24px;
  height: 1.5px;
  flex: none;
  background: var(--acento);
}

.hm-encabezado {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--e-6);
  margin-bottom: var(--e-7);
}

.hm-encabezado__titulo {
  margin-top: var(--e-4);
  max-width: 720px;
}

.hm-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hm-saltar {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 200;
  padding: 12px 20px;
  background: var(--acento);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top var(--transicion);
}

.hm-saltar:focus {
  top: 16px;
}

.hm-linea {
  height: 1px;
  width: 100%;
  background: var(--borde);
  border: 0;
}

.hm-junto {
  white-space: nowrap;
}

@media (max-width: 1023px) {
  :root {
    --margen-lateral: 32px;
    --seccion-y: 64px;
    --e-9: 64px;
    --e-10: 96px;
  }

  .hm-encabezado {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 639px) {
  :root {
    --margen-lateral: 20px;
    --seccion-y: 48px;
  }

  .hm-bajada {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
