.home-intro-wrap {
  padding-top: clamp(18px, 3vw, 36px);
}

.home-intro {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #30414c;
  border-radius: 12px;
  background: #090e12;
}

.home-intro-content {
  max-width: 850px;
  padding: clamp(32px, 4.25vw, 60px) clamp(30px, 4.6vw, 66px);
}

.home-coverage {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: #d7e7ef;
  font-size: .94rem;
  font-weight: 700;
}

.home-coverage svg {
  flex: none;
  width: 19px;
  height: 19px;
  color: #6cdd9d;
}

.home-intro h1 {
  color: #f7fbfc;
  font-size: clamp(2rem, 4.25vw, 3.65rem);
  line-height: 1.06;
  letter-spacing: -.027em;
  text-wrap: balance;
}

.home-intro-copy {
  max-width: 52ch;
  margin-top: 20px;
  color: #d6e5ed;
  font-size: clamp(1.0625rem, 1.65vw, 1.25rem);
  line-height: 1.5;
}

.home-intro-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.home-intro-media {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-intro-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 69% 50%;
}

.home-intro-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #090e12 1%, #090e12ed 31%, #090e12ba 49%, #090e122c 67%, transparent 82%);
}

.home-services-title,
.how-we-work h2 {
  margin-bottom: 20px;
  font-size: clamp(1.5rem, 2.7vw, 2rem);
}

#contenido > :is(.home-identifier-section, .how-we-work, .blog-section, .with-google-reviews),
.with-google-reviews > .faq-preview {
  position: relative;
  margin-top: var(--section-rule-space);
  padding-top: var(--section-rule-space);
  border-top: 0;
}

#contenido > :is(.home-identifier-section, .how-we-work, .blog-section, .with-google-reviews)::before,
.with-google-reviews > .faq-preview::before {
  content: "";
  position: absolute;
  inset-block-start: 0;
  inset-inline: var(--section-rule-gutter);
  height: 1px;
  background: var(--line);
}

.with-google-reviews > .faq-preview::before {
  inset-inline: 0;
}

.with-google-reviews > .faq-preview {
  row-gap: 16px;
}

.faq-preview > div > p {
  margin-bottom: 0;
}

.faq-preview .faq-list > details {
  border-bottom: 0;
  padding: 8px 0;
}

.faq-preview .faq-list summary {
  list-style-position: outside;
  margin-inline-start: 1.125em;
}

.faq-preview .faq-list > .text-action {
  display: inline-block;
  margin-top: 12px;
}

#contenido > :is(.how-we-work, .blog-section),
.with-google-reviews > .faq-preview {
  padding-bottom: 0;
}

.with-google-reviews {
  row-gap: 0;
}

.with-google-reviews > :is(.network-instagram-section, .reviews-area) {
  margin-top: calc(2 * var(--section-rule-space));
}

.how-we-work .work-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(15px, 2vw, 24px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.how-we-work .work-card {
  --work-accent: var(--blue);
  --work-icon: #76bce9;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  align-content: start;
  gap: 12px;
  padding: clamp(16px, 1.6vw, 23px);
  border: 1px solid #34464e;
  border-top: 2px solid var(--work-accent);
  border-radius: 12px;
  background: #0e1316f0;
}

.how-we-work .work-card:nth-child(even) {
  --work-accent: var(--green);
  --work-icon: #66d49a;
}

.how-we-work .work-icon .n-icon {
  width: 30px;
  height: 30px;
  color: var(--work-icon);
}

.how-we-work .work-card h3 {
  color: #fff;
  font-size: 1.125rem;
  line-height: 1.25;
}

.how-we-work .work-card p {
  margin-top: 8px;
  color: #e0e9ef;
  font-size: 1rem;
  line-height: 1.5;
}

.identifier-band.home-identifier {
  width: 100%;
  border-color: #396c90;
  border-top-color: var(--blue);
  background: linear-gradient(118deg, #122b3c, #101e1e 92%);
}

.home-identifier .identifier-copy h2 {
  max-width: 19ch;
}

.home-identifier .diagnostic-preview {
  background: #0c151bef;
  border-color: #3d647d;
}

.how-we-work .work-details {
  margin-top: clamp(32px, 4vw, 52px);
}

.how-we-work .work-details .reference-row {
  padding-block: 0;
  border-top: 0;
}

.how-we-work .work-details .reference-row + .reference-row {
  margin-top: clamp(36px, 4.5vw, 60px);
}

.how-we-work .reference-copy h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  line-height: 1.2;
}

#servicios.services {
  padding-bottom: 0;
}

@media (max-width: 1050px) {
  .how-we-work .work-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 540px) {
  .how-we-work .work-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 800px) {
  .home-intro-wrap {
    --mobile-header-height: 110px; /* Logo de 65 px, dos márgenes de 22 px y borde de 1 px. */
    --intro-inset-top: 24px;
    --intro-inset-bottom: 16px;
    --intro-photo-height: clamp(224px, min(72vw, 34svh), 390px);
    padding-block: var(--intro-inset-top) var(--intro-inset-bottom);
  }

  .home-intro {
    display: flex;
    min-height: calc(100svh - var(--mobile-header-height) - var(--intro-inset-top) - var(--intro-inset-bottom));
  }

  .home-intro-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: calc(var(--intro-photo-height) - 10px) var(--mobile-action-inset) 24px;
  }

  .home-intro-media {
    inset: 0 0 auto;
    height: var(--intro-photo-height);
  }

  .home-intro-media img {
    object-position: 84% 68%;
  }

  .home-intro-media::after {
    background: linear-gradient(180deg, #090e12d9 0%, #090e1226 22%, transparent 36%,
                                       transparent 77%, #090e124d 89%, #090e12 100%);
  }

  .home-coverage {
    position: absolute;
    inset: 17px 21px auto;
    align-items: flex-start;
    margin: 0;
    color: #ecf4f7;
    font-size: .875rem;
  }

  .home-intro h1 {
    font-size: clamp(1.8rem, 7.65vw, 3rem);
  }

  .home-intro-copy {
    margin-top: 16px;
  }

  .home-intro-actions {
    margin-top: auto;
    padding-top: 24px;
  }

  #servicios.services {
    padding-top: 43px;
  }

  #servicios > .service-layout {
    row-gap: 30px;
  }

  .how-we-work .work-cards {
    row-gap: 22px;
  }

  .how-we-work .work-details .reference-row {
    row-gap: 36px;
  }
}

@media (max-width: 540px) {
  .home-intro-actions {
    display: grid;
    gap: 12px;
  }

  .home-identifier > .identifier-layout {
    padding-inline: var(--mobile-action-inset);
  }

  .home-identifier .identifier-copy > .prototype-note {
    max-width: none;
  }

}

@media (max-width: 490px) {
  .home-intro-media {
    overflow: hidden;
  }

  .home-intro-media img {
    position: absolute;
    right: 0;
    width: 148%;
    object-position: center 76%;
  }
}
