/* Estilos específicos de impermeabilizacion.html. Cargar después de comun.css. */

.im-project {
  position: relative;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  padding: 0;
  width: 100%;
}

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

.im-project .mt-service-body {
  display: flex;
  width: 100%;
}

.mt-service h3 {
  font-size: 19px;
}

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

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

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

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

.im-details h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.im-details p {
  font-size: 14px;
  color: #536176;
}

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

.mt-hero-media {
  grid-template-rows: 320px 155px;
}

.mt-nav {
  gap: 16px;
}

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

@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) {
  .im-details {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mt-hero-media {
    grid-template-rows: 220px 110px;
  }

}

/* El botón abre la galería y su área activa cubre la tarjeta completa. */
.im-project .im-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: 1.65;
  text-align: left;
  cursor: pointer;
}

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

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

/* El nombre del servicio cabe también en pantallas pequeñas. */
.mt-hero .im-hero-title {
  font-size: clamp(26px, 3.4vw, 44px);
  max-width: 100%;
}

@media (max-width:720px) {
  .mt-hero .im-hero-title {
    font-size: clamp(24px, 7.5vw, 44px);
  }

  .im-project .im-project-open {
    font-size: 11px;
    padding-top: 12px;
  }
}

@media (max-width:380px) {
  .im-project .im-project-open {
    font-size: 12px;
    padding-top: 15px;
  }
}
