/* Ajustes funcionales para la arquitectura multipágina. */
.matthiasvera_menu .menu_route_link {
  appearance: none;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.matthiasvera_menu .menu_route_link:focus-visible {
  outline: 0;
}

a.proyecto_desctacado,
a.project_page_card,
a.blog_card {
  color: inherit;
  text-decoration: none;
}

a.proyecto_desctacado {
  display: block;
}

.services_page_routes {
  width: var(--content-width);
  margin: clamp(90px, 11vw, 180px) auto 0;
  padding-top: clamp(50px, 6vw, 90px);
  border-top: 1px solid rgba(255, 255, 255, .18);
}

.services_page_routes_head {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, .65fr);
  gap: 7vw;
  align-items: end;
  margin: 22px 0 46px;
}

.services_page_routes_head h2 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(38px, 4.8vw, 72px);
  font-weight: 200;
  line-height: .96;
  letter-spacing: -.1rem;
}

.services_page_routes_head p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 17px;
  line-height: 1.45;
}

.services_page_routes_grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .18);
  border-left: 1px solid rgba(255, 255, 255, .18);
}

.services_page_routes_grid a {
  display: flex;
  min-height: 220px;
  flex-direction: column;
  padding: 28px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  color: inherit;
  text-decoration: none;
  transition: background .2s ease, color .2s ease;
}

.services_page_routes_grid a:hover,
.services_page_routes_grid a:focus-visible {
  background: var(--accent);
  color: #080808;
}

.services_page_routes_grid span {
  margin-bottom: auto;
  font-size: 13px;
  letter-spacing: .18em;
}

.services_page_routes_grid strong {
  display: block;
  margin: 38px 0 10px;
  font-size: clamp(20px, 1.7vw, 28px);
  font-weight: 400;
  line-height: 1.08;
}

.services_page_routes_grid small {
  max-width: 280px;
  color: rgba(255, 255, 255, .65);
  font-size: 14px;
  line-height: 1.4;
}

.services_page_routes_grid a:hover small,
.services_page_routes_grid a:focus-visible small {
  color: rgba(8, 8, 8, .72);
}

/* El encabezado principal pasa a H1 sin cambiar su aspecto visual. */
.services_page_intro h1,
.projects_page_intro h1,
.blog_page_intro h1,
.contact_page_intro h1,
.faq_page_intro_copy h1,
.blog_article_head h1,
.proyecto_hero_container h1 {
  margin: 0;
  color: var(--fg);
  font-weight: 200;
  line-height: .92;
  letter-spacing: -.1rem;
}

.services_page_intro h1 { max-width: 940px; font-size: clamp(44px,5.3vw,82px); }
.projects_page_intro h1 { max-width: 900px; font-size: clamp(44px,5.5vw,82px); }
.blog_page_intro h1 { max-width: 760px; font-size: clamp(40px,5vw,74px); line-height: .94; }
.contact_page_intro h1 { max-width: 980px; font-size: clamp(58px,8vw,132px); line-height: .86; letter-spacing: -.12rem; }
.faq_page_intro_copy h1 { font-size: clamp(48px,5.4vw,84px); letter-spacing: -.12rem; }
.blog_article_head h1 { max-width: 920px; margin-bottom: 16px; font-size: clamp(42px,5.2vw,74px); line-height: .95; }
.proyecto_hero_container h1 { max-width: 640px; font-size: clamp(38px,4.3vw,64px); }

@media (max-width: 768px) {
  .services_page_routes {
    margin-top: 82px;
    padding-top: 52px;
  }

  .services_page_routes_head {
    grid-template-columns: 1fr;
    gap: 20px;
    margin-bottom: 32px;
  }

  .services_page_routes_head h2 {
    font-size: clamp(38px, 11vw, 54px);
  }

  .services_page_routes_grid {
    grid-template-columns: 1fr;
  }

  .services_page_routes_grid a {
    min-height: 170px;
    padding: 22px;
  }

  .services_page_intro h1,
  .projects_page_intro h1,
  .blog_page_intro h1,
  .blog_article_head h1,
  .faq_page_intro_copy h1,
  .proyecto_hero_container h1 {
    max-width: 100%;
    font-size: clamp(42px,12vw,58px);
    line-height: .94;
    letter-spacing: -.08rem;
  }

  .contact_page_intro h1 {
    font-size: 52px;
    letter-spacing: -.08rem;
  }
}
