@import url('https://fonts.googleapis.com/css2?family=Roboto+Flex:opsz,wght@8..144,900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

.banner-suscripcion {
  background-color: #3FBD74;
  min-height: 4.375rem;
  position: relative;
  display: flex;
  align-items: center;

  .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0;
    max-width: 1190px;

    >img {
      max-width: 84px;
    }

    .text-container {
      display: flex;
      gap: 24px;
      align-items: center;
      flex: 1;
      justify-content: center;
    }

    p {
      margin: 0;
      line-height: normal;
    }

    p.main-text {
      font-family: 'Clarendon Condensed';
      font-weight: 500;
      font-size: 2rem;
      margin: 0;

      span.roboto {
        font-family: 'Roboto Flex', sans-serif;
        font-weight: 900;
      }
    }

    p.secondary-text {
      max-width: 14rem;
      font-family: 'Roboto', sans-serif;
      font-size: 0.875rem;
    }

    >a {
      color: #000;
      font-family: 'Roboto', sans-serif;
      font-size: 0.875rem;
      text-decoration: none;
      text-transform: uppercase;
      padding: 10px 12px;
      border-radius: 50px;
      background-color: #F5E857;
      line-height: normal;
    }

    >a:hover {
      background-color: #64C2E6;
    }
  }
}

@media only screen and (max-width: 846px) {
  .banner-suscripcion .container {
    padding: 16px;
    flex-direction: column;

    position: relative;

    >img {
      position: absolute;
      bottom: 16px;
      left: 16px;
      max-width: 47px;
    }

    .text-container {
      flex-direction: column;
      gap: 16px;
      padding-bottom: 16px;
    }

    .main-text {
      text-align: center;

      p.roboto {
        display: block;
      }
    }
  }
}

@media only screen and (min-width: 846px) and (max-width: 1080px) {
  .banner-suscripcion .container {
    padding: 16px;
  }

  p.main-text {
    max-width: 20rem;
  }
}
