/* Estilos específicos de albañilería. Cargar después de comun.css. */

.mt-nav {
  gap: 16px;
}

.mt-nav>a:not(.mt-button) {
  font-size: 12px;
}

.mt-nav>a[aria-current=page] {
  color: #1a4287;
  font-weight: 800;
}

.ab-breadcrumb {
  font-size: 12px;
  color: #c5d9f5;
  margin-bottom: 22px !important;
}

.ab-breadcrumb a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.ab-card {
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
  cursor: pointer;
}

.ab-card .mt-service-image {
  display: block;
  position: relative;
  width: 100%;
}

.ab-card .mt-service-body {
  display: flex;
  width: 100%;
}

.ab-card h3 {
  font-size: 20px;
  margin-top: 5px;
}

.ab-count {
  position: absolute;
  top: 14px;
  left: 14px;
  background: #fff;
  color: #1a4287;
  font-size: 10px;
  font-weight: 750;
  padding: 5px 10px;
  letter-spacing: .04em;
}

.ab-columns {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 32px;
  margin-top: 32px;
}

.ab-columns h3 {
  font-size: 18px;
  line-height: 1.4;
  margin-bottom: 10px;
}

.ab-columns p {
  font-size: 14px;
  line-height: 1.9;
  color: #536176;
}

.mt-hero h1 {
  font-size: clamp(40px,4.25vw,61px);
}

@media (max-width:1150px) {
  .mt-brand-name {
    font-size: 16px;
  }

  .mt-nav {
    gap: 12px;
  }

  .mt-nav>a:not(.mt-button) {
    font-size: 11px;
  }

}

@media (max-width:960px) {
  .mt-nav>a:not(.mt-button) {
    font-size: 14px;
  }

}

@media (max-width:720px) {
  .ab-columns {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mt-hero h1 {
    font-size: clamp(35px,8.5vw,51px);
  }

}

/* Botón accesible con un área activa que cubre toda la tarjeta. */
.ab-project {
  position: relative;
}

.ab-project .ab-project-open {
  position: static;
  appearance: none;
  width: 100%;
  margin: auto 0 0;
  padding: 15px 0 0;
  border: 0;
  border-top: 1px solid #e8edf4;
  border-radius: 0;
  background: transparent;
  color: var(--mt-blue);
  font: inherit;
  font-size: 12px;
  font-weight: 750;
  line-height: inherit;
  text-align: left;
  cursor: pointer;
}

.ab-project-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ab-project:focus-within {
  border-color: #427fc7;
  box-shadow: 0 0 0 3px rgba(66, 127, 199, .3);
}

@media (max-width:720px) {
  .ab-project .ab-project-open {
    font-size: 11px;
    padding-top: 12px;
  }
}
