/* Home móvil: composición independiente de desktop y tablet. */
@media only screen and (max-width: 767px) {
  .juan-menu-toggle {
    display: block !important;
    position: fixed !important;
    top: max(22px, env(safe-area-inset-top)) !important;
    left: 22px !important;
    z-index: 111000 !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  body.fullscreendark #main > section#home {
    isolation: isolate;
    background-position: 20% center;
  }

  body.fullscreendark #main > section#home::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    content: '';
    background: linear-gradient(180deg, rgba(8, 10, 14, 0) 22%, rgba(8, 10, 14, .14) 42%, rgba(8, 10, 14, .93) 100%);
  }

  #home .main-text-container {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    width: 100%;
    height: 100%;
    max-width: none;
    margin-left: 0;
    padding: 0 24px max(30px, env(safe-area-inset-bottom));
  }

  #home .main-text {
    display: block;
    width: 100%;
    margin: 0;
    text-align: left;
  }

  #home .main-text h3 {
    margin: 0 0 10px;
    font-size: 14px;
    letter-spacing: .03em;
  }

  #home .main-text h1 {
    margin: 0;
    min-height: calc(2 * 1.22em);
    font-size: clamp(22px, 6.5vw, 28px);
    line-height: 1.22;
    white-space: normal;
  }

  #home .main-text h1 .home-intro {
    display: block;
  }

  #home .main-text h1 .ah-words-wrapper {
    /* Keep Istanbul's clip animation, while giving its longest English role
       enough measured room on phones. The old 290px template width clipped
       the final "r" in "engineer". */
    width: min(330px, calc(100vw - 48px));
    max-width: 100%;
  }

  #home .main-text h1 .ah-words-wrapper b {
    width: min(330px, calc(100vw - 48px));
  }

  #home .main-text p {
    max-width: 34rem;
    margin: 14px 0 18px;
    font-size: 14px;
    line-height: 23px;
  }

  #home .call-to-actions-home {
    white-space: nowrap;
  }

  #home .call-to-actions-home .btn {
    height: 42px;
    padding: 0 16px;
    font-size: 11px;
    line-height: 42px;
  }

  #home .call-to-actions-home .btn i {
    padding-right: 7px;
  }
}

@media only screen and (max-width: 360px) {
  #home .main-text-container {
    padding-right: 18px;
    padding-left: 18px;
  }

  #home .call-to-actions-home .btn {
    padding: 0 12px;
    font-size: 10px;
  }
}
