/* ============================================================
   Hero de portada
   ============================================================ */
.section-hero-main {
  position: relative;
  display: grid;
  align-items: center;
  min-height: clamp(34rem, 85svh, 44rem);
  padding-block: 5rem;
  background-color: var(--color-text);
  color: white;

  .hero__field-image {
    position: absolute;
    inset: 0;

    &::after {
      position: absolute;
      inset: 0;
      content: "";
      background: rgb(0 0 0 / 48%);
    }

    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }

  .hero--content {
    position: relative;
    width: var(--width);
    max-width: var(--max-width);
    margin-inline: auto;
    text-align: center;
  }

  .field--name-field-tipbloq-slider-title :is(h1, h2, h3, h4, h5, h6) {
    max-width: 19ch;
    margin: 0 auto 0.65rem;
    font-size: clamp(1.375rem, 5.5vw, 1.875rem);
    font-weight: 800;
    line-height: 1.1;
    overflow-wrap: anywhere;
  }

  .field--name-body {
    max-width: 49ch;
    margin-inline: auto;
    line-height: 1.35;

    p:last-child {
      margin-bottom: 0;
    }

    a {
      color: inherit;
      text-decoration: underline;
    }
  }

  .hero__links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;

    > a {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
      padding: 0.7rem 1rem;
      border: 1px solid rgb(255 255 255 / 75%);
      border-radius: 999px;
      color: inherit;
      font-size: 0.8125rem;
      font-weight: 700;
      line-height: 1.25;
      text-transform: uppercase;
    }

    > a:first-child {
      border-color: transparent;
      background-color: var(--brand2);

      &::after {
        --hero-icon: url("../img/icons/hero-arrow-up-right.svg");
        color: var(--cl-yellow-1);
      }
    }

    > a:nth-child(2)::before {
      --hero-icon: url("../img/icons/availability-calendar.svg");
    }

    > a:hover {
      border-color: var(--cl-yellow-1);
    }

    > a:first-child::after,
    > a:nth-child(2)::before {
      content: "";
      flex: 0 0 0.9rem;
      width: 0.9rem;
      height: 0.9rem;
      background-color: currentColor;
      mask: var(--hero-icon) center / contain no-repeat;
    }
  }

  .hero__scroll {
    position: absolute;
    inset-inline-start: 50%;
    inset-block-end: clamp(1.25rem, 2.3vw, 2rem);
    translate: -50% 0;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid rgb(255 255 255 / 75%);
    border-radius: 50%;
    color: inherit;

    &:hover {
      border-color: var(--cl-yellow-1);
      color: var(--cl-yellow-1);
    }
  }

  a:focus-visible {
    outline: 2px solid var(--cl-yellow-1);
    outline-offset: 3px;
  }
}

@media (width >= 1024px) {
  .section-hero-main {
    min-height: clamp(32rem, 46vw, 48rem);
    padding-block: 4rem 5.5rem;

    .hero__field-image::after {
      background: linear-gradient(90deg, rgb(0 0 0 / 62%), rgb(0 0 0 / 40%));
    }

    .hero--content {
      text-align: start;
    }

    .field--name-field-tipbloq-slider-title :is(h1, h2, h3, h4, h5, h6) {
      margin-inline: 0;
      font-size: clamp(1.875rem, 3.15vw, 3.5rem);
    }

    .field--name-body {
      margin-inline: 0;
    }

    .hero__links {
      flex-flow: row wrap;
      margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
    }
  }
}

/* Presentación de la agencia */
.home-intro {
  padding-block: clamp(2rem, 4vw, 3rem);
  background-color: #f3f1ec;
  color: var(--color-text);
  text-align: center;

  .home-intro__content {
    width: var(--width);
    max-width: var(--max-width);
    margin-inline: auto;
  }

  .field--name-field-tipbloq-info-slogan {
    margin-bottom: 0.5rem;
    color: #6d655d;
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  h2 {
    margin-bottom: clamp(1rem, 2.5vw, 2rem);
    font-size: clamp(1.5rem, 2.4vw, 2.125rem);
    line-height: 1.15;
    text-wrap: balance;
  }

  .field--name-field-tipbloq-info-para-body {
    max-width: 78ch;
    margin-inline: auto;

    p:last-child {
      margin-bottom: 0;
    }
  }

  .home-intro__logos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: clamp(0.875rem, 2vw, 2rem);
    max-width: 65rem;
    margin: clamp(1.25rem, 2.5vw, 2rem) auto 0;

    img {
      width: auto;
      max-width: 100%;
      height: auto;
      max-height: 4.25rem;
      margin-inline: auto;
    }
  }
}

@media (width >= 1024px) {
  .home-intro .home-intro__logos {
    grid-template-columns: repeat(4, minmax(0, 1fr));

    img {
      max-height: 6rem;
    }
  }
}
