.home-hero {
  position: relative;
  min-height: clamp(590px, 78vh, 790px);
  padding-block: clamp(94px, 14vw, 156px);
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background:
    linear-gradient(120deg, rgb(12 12 13 / 88%), rgb(12 12 13 / 66%)),
    url("../../img/fachada.jpg") center 58% / cover no-repeat;
}

.home-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, rgb(0 0 0 / 22%));
  pointer-events: none;
}

.home-hero__content {
  position: relative;
  z-index: 1;
  max-width: 900px;
}

.home-hero .eyebrow {
  color: #ffb6b6;
}

.home-hero h1 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: clamp(2.35rem, 6vw, 4.3rem);
  text-shadow: 0 2px 24px rgb(0 0 0 / 30%);
}

.home-hero__copy {
  max-width: 730px;
  margin: 0 auto 30px;
  color: #efeff1;
  font-size: clamp(1.05rem, 2.2vw, 1.28rem);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 28px);
}

.service-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.service-card__icon {
  min-height: 112px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    radial-gradient(circle at 78% 25%, rgb(255 255 255 / 14%), transparent 34%),
    var(--color-primary);
  font-size: 2rem;
}

.service-card__body {
  padding: clamp(22px, 3vw, 30px);
  display: flex;
  flex: 1;
  flex-direction: column;
}

.service-card h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.service-card p {
  margin-bottom: 22px;
  color: var(--color-muted);
}

.service-card .btn {
  width: 100%;
  margin-top: auto;
}

.urgent-cta {
  position: relative;
  padding-block: clamp(58px, 8vw, 82px);
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  background: #202124;
}

.urgent-cta::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  top: -210px;
  right: 5%;
  border: 46px solid rgb(211 47 47 / 12%);
  border-radius: 50%;
}

.urgent-cta h2 {
  margin-bottom: 12px;
  color: #ffffff;
  font-size: clamp(1.85rem, 4vw, 2.65rem);
}

.urgent-cta p {
  max-width: 700px;
  margin: 0 auto 24px;
  color: #dddddf;
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(40px, 7vw, 82px);
  align-items: center;
}

.about-visual {
  position: relative;
  min-height: 430px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, #ffffff, #eeeeef);
  box-shadow: var(--shadow-md);
}

.about-visual::before {
  content: "";
  position: absolute;
  width: 290px;
  height: 290px;
  border: 30px solid rgb(211 47 47 / 7%);
  border-radius: 50%;
}

.about-visual img {
  position: relative;
  width: min(72%, 330px);
  aspect-ratio: 1;
  object-fit: contain;
}

.about-copy h2 {
  margin-bottom: 20px;
  font-size: clamp(1.95rem, 4vw, 2.8rem);
}

.about-copy p {
  color: var(--color-muted);
}

.about-copy .btn {
  margin-top: 8px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.contact-card {
  min-width: 0;
  padding: 24px;
}

.contact-card__icon {
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--color-primary);
}

.contact-card h3 {
  margin-bottom: 8px;
  font-size: 1.05rem;
}

.contact-card p,
.contact-card address {
  margin: 0;
  color: var(--color-muted);
  font-style: normal;
}

.contact-card a {
  color: var(--color-primary-dark);
  font-weight: 700;
}

@media (max-width: 980px) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-card:last-child {
    grid-column: 1 / -1;
    width: min(100%, 560px);
    justify-self: center;
  }

  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 740px) {
  .home-hero {
    min-height: calc(100svh - var(--header-height));
    padding-block: 86px;
    background-position: 48% center;
  }

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

  .about-visual {
    min-height: 330px;
  }
}

@media (max-width: 580px) {
  .service-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .service-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .home-hero h1 {
    font-size: clamp(2.15rem, 11vw, 3rem);
  }
}
