@import url("https://fonts.googleapis.com/css2?family=Kanit:wght@100;300;700&family=Open+Sans:wght@400;800&display=swap");

/*----------------------------------------*/
/*-----------------FUENTES----------------*/
@font-face {
  font-family: "Open Sans Regular";
  src: url(fonts/OpenSans-Regular.ttf) format("truetype");
}

@font-face {
  font-family: "Open Sans ExtraBold";
  src: url(fonts/OpenSans-ExtraBold.ttf) format("truetype");
}

@font-face {
  font-family: "Open Sans CondensedRegular";
  src: url(fonts/OpenSans_Condensed-Regular.ttf) format("truetype");
}

@font-face {
  font-family: "Open Sans CondensedBold";
  src: url(fonts/OpenSans_Condensed-Bold.ttf) format("truetype");
}

@font-face {
  font-family: "Geomanist-WZ-OT-Bold";
  font-style: normal;
  src: url("./fonts/Geomanist-Bold-WZ.otf") format("opentype");
}

@font-face {
  font-family: "Geomanist-WZ-OT-Book";
  font-style: normal;
  src: url("../fonts/Geomanist-Book-WZ.otf") format("opentype");
}

@font-face {
  font-family: "Geomanist-WZ-OT-Light";
  font-style: normal;
  src: url("../fonts/Geomanist-Light-WZ.otf") format("opentype");
}

@font-face {
  font-family: "Geomanist-WZ-OT-Medium";
  font-style: normal;
  src: url("../fonts/Geomanist-Medium-WZ.otf") format("opentype");
}

@font-face {
  font-family: "Geomanist-WZ-OT-Regular";
  font-style: normal;
  src: url("../fonts/Geomanist-Regular.otf") format("opentype");
}

html,
body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

:root {
  --blue: #152a69;
  --white: #ffffff;
  --lila: #e9ebf5;
}

.main-header-title {
  font-family: "Geomanist-WZ-OT-Book";
  font-weight: 500;
  font-size: 34px;
  line-height: 120%;
  color: var(--white);
  text-align: center;
  margin: 0;
}

.main-header-subtitle {
  font-family: "Geomanist-WZ-OT-Book";
  font-weight: 400;
  font-size: 16px;
  line-height: 130%;
  color: var(--white);
  text-align: center;
  margin: 8px 0 0;
}

.secondary-header-title {
  font-family: "Geomanist-WZ-OT-Medium";
  font-weight: 500;
  font-size: 27px;
  line-height: 120%;
  color: var(--blue);
  text-align: center;
  margin: 0;
}

.third-header-title {
  font-family: "Geomanist-WZ-OT-Medium";
  font-weight: 500;
  font-size: 18px;
  line-height: 130%;
  color: var(--blue);
}

.paragraph {
  font-family: "Geomanist-WZ-OT-Regular";
  font-weight: 400;
  font-size: 16px;
  line-height: 140%;
  color: var(--blue);
}

.legal-text {
  font-family: "Geomanist-WZ-OT-Light";
  font-weight: 400;
  font-size: 14px;
  line-height: 140%;
  color: var(--blue);
}

/* Banner hero */
.prestamos {
  .prestamos__hero-banner-container {
    position: relative;
    height: 405px;
    picture {
      img {
        display: flex;
        width: 100%;
        height: 100%;
        object-fit: cover;
      }
    }
    .prestamos__hero-banner-container-overlay {
      position: absolute;
      top: 45px;
      left: 0;
      right: 0;
      bottom: 0;
      margin: auto;
      display: flex;
      justify-content: center;
      picture {
        display: none;
      }
    }
    .prestamos__hero-banner-container-text {
      width: 85%;
      margin-top: -15px;
      .main-header-title {
        color: #152a69;
        margin-inline: auto;
      }
      .main-header-subtitle {
        color: #152a69;
      }
    }
  }
  .prestamos__title-subtitle-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 40px;
    .secondary-header-title {
      width: 240px;
      color: #152a69;
      margin-bottom: 10px;
    }
    .paragraph {
      width: 310px;
      text-align: center;
    }
  }
  .prestamos__no-dudas-container {
    margin-top: 22px;
    .prestamos__no-dudas-container-title-container {
      display: flex;
      justify-content: center;
      .secondary-header-title {
        width: 46%;
      }
    }
    .prestamos__no-dudas-container-items {
      padding: 36px 30px 0;
      display: flex;
      flex-direction: column;
      /* gap: 15px; */
      .prestamos__no-dudas-item {
        border-radius: 16px;
        border: 1px solid #445587;
        padding: 25px 30px 26px 30px;
        gap: 5px;
        display: flex;
        flex-direction: column;
        margin: 15px 0 0;
        .prestamos__no-dudas-item-header {
          background: transparent;
          display: flex;
          justify-content: space-between;
          align-items: flex-start;
          border: none;
          padding: 0;
          width: 100%;
          cursor: pointer;
          .third-header-title {
            text-align: start;
            margin: 0;
          }
        }
        .prestamos__no-dudas-img-container {
          width: 30px;
          height: 30px;
          min-width: 30px;
          min-height: 30px;
          display: flex;
          justify-content: center;
          align-items: center;
          border-radius: 50%;
          border: 1px solid #445587;
          position: relative;
          top: -10px;
          right: -15px;
          img {
            transition: all 0.5s;
          }
        }
      }
      .prestamos__no-dudas-item-body {
        display: none;
        .paragraph {
          width: 100%;
          margin: 4px 0 0;
          padding-top: 20px;
          color: #445587;
          /*  &::before {
                        content: "";
                        position: relative;
                        display: block;
                        top: -15px;
                        width: 300px;
                        left: -30px;
                        height: 0.5px;
                        background-color: #445587;
                    } */
        }
      }
    }
  }

  .prestamos__slider {
    display: flex;
    overflow-x: auto;
    gap: 5vw;
    padding-left: 5vw;
    scroll-padding-left: 5vw;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .prestamos__slider::-webkit-scrollbar {
    display: none;
  }

  .prestamos__slide {
    flex: 0 0 80vw;
    height: 540px;
    scroll-snap-align: start;
    position: relative;
    display: flex;
    flex-direction: column;
    border-radius: 16px;
    overflow: hidden;
  }

  .prestamos__slide-img {
    picture {
      img {
        height: 135px;
        width: 100%;
        object-fit: cover;
      }
    }
  }

  .prestamos__slide-title-container {
    display: flex;
    flex-direction: column;
    align-items: anchor-center;
    margin: auto;
    .secondary-header-title {
      font-size: 26px;
      /* margin-top: 12px; */
      width: 74%;
      margin-inline: auto;
    }
    .paragraph {
      margin: 4px;
      color: #152a69;
      width: 80%;
      text-align: -webkit-center;
      font-family: "Geomanist-WZ-OT-Regular";
      margin-inline: auto;
    }
  }

  .prestamos__slide:nth-child(1) {
    background-color: #d9f5ec;
  }

  .prestamos__slide:nth-child(2) {
    background-color: #e9ebf5;
  }

  .prestamos__slide:nth-child(3) {
    background-color: #f9f5ec;
  }

  .prestamos__slide-promotion {
    width: 80%;
    margin: auto;
    font-family: "Geomanist-WZ-OT-Book";
    font-size: 16px;
    font-weight: 500;
    place-items: center;
    border: 1px solid rgba(21, 42, 105, 0.2);
    border-radius: 16px;
    /* height: 120px; */
    display: flex;
    flex-direction: column;
    /* justify-content: center; */
    color: #152a69;
    position: relative;
    .prestamos__slide-promotion-box:nth-child(2) {
      margin-top: 0;
    }
    .prestamos__slide-promotion-box:nth-child(1) {
      border-bottom: 1px solid rgba(21, 42, 105, 0.2);
      padding-bottom: 20px;
    }
    .prestamos__slide-promotion-box {
      padding: 0;
      width: 100%;
      text-align: center;
    }
    .prestamos__slide-promotion-box-first {
      padding-top: 25px !important;
    }
  }

  .prestamos__slide-promotion-multiple {
    padding: 10px 0;
    .prestamos__slide-promotion-box:nth-child(2) {
      margin-top: 10px;
    }
    .prestamos__slide-promotion-box:nth-child(3) {
      margin-top: 10px;
      padding-top: 10px;
      border-top: 1px solid rgba(21, 42, 105, 0.2);
    }
  }

  .prestamos__slide-promotion-multiple {
    margin-top: 0;
    margin-bottom: 0;
  }

  .prestamos__slide-promotion-single {
    margin: auto;
  }

  .prestamos__slide-info {
    /* background-color: #00C6C5; */
    height: 45px;
    width: 211px;
    border-radius: 999px;
    align-self: center;
    align-content: center;
    margin: auto;
    padding-bottom: 30px;
    .prestamos__slide-info-text {
      text-align: center;
      color: #152a69;
      font-family: "Geomanist-WZ-OT-Book";
      font-size: 16px;
      font-weight: 500;
    }
    .prestamos__informacion-interes-download {
      background-color: #00c6c5;
      height: 45px;
      width: 210px;
      border: none;
      border-radius: 99px;
      display: flex;
      flex-direction: row;
      padding: 0px 10px 0px 20px;
      align-items: center;
      justify-content: center;
      padding-top: 8px;
      cursor: pointer;

      .third-header-title {
        font-size: 16px;
        text-align: start;
      }
      .prestamos__no-dudas-img-container {
        width: 35px;
        height: 25px;
        border: 1px solid #445587;
        border-radius: 999px;
        align-content: center;
        margin-top: -8px;
        img {
          object-fit: contain;
          width: 12px;
          height: 12px;
          margin-top: -2px;
        }
      }
    }
    .prestamos__informacion-interes-download:hover {
      background-color: #36e0df;
      transition: background-color 0.25s ease;
    }
    .prestamos__informacion-interes-download-aplaza {
      gap: 20px;
      width: 220px;
      .third-header-title {
        width: 160px;
      }
      .prestamos__no-dudas-img-container {
        width: 30px;
      }
    }
  }

  .prestamos__two-boxes {
    padding: 30px 15px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    justify-self: center;
    .prestamos__two-boxes-box {
      border: 1px solid rgba(21, 42, 105, 0.2);
      border-radius: 16px;
      max-height: 126px;
      padding: 25px 15px;
      display: flex;
      flex-direction: row;
      gap: 15px;
      .prestamos__two-boxes-box__icon {
        background-color: #d1f3e8;
        border-radius: 11px;
        width: 75px;
        max-height: 75px;
        min-height: 60px;
        height: 75px;
        aspect-ratio: 1 / 1;
        picture {
          display: flex;
          justify-content: center;
          height: 100%;
          align-items: center;
          width: 75px;
          img {
            width: 31px;
            height: 31px;
            object-fit: contain;
          }
        }
      }
      .prestamos__two-boxes-box__text {
        display: flex;
        flex-direction: column;
        gap: 5px;
        margin: 3px 0;
        .prestamos__two-boxes-box__text-title {
          margin: 0;
          color: #152a69;
          font-size: 21px;
          font-family: "Geomanist-WZ-OT-Book";
        }
        .prestamos__two-boxes-box__text-subtitle {
          margin: 0;
          font-family: "Geomanist-WZ-OT-Regular";
          color: #152a69;
          font-size: 16px;
        }
      }
    }
  }

  .footnote {
    font-size: 10px;
    vertical-align: super;
    line-height: 0;
    cursor: pointer;
  }

  .prestamos__image-with-gradient {
    margin-top: 30px;
    position: relative;
    height: 435px;
    background: linear-gradient(to bottom, #b3ebd9, #e1f7f0);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    .prestamos__image-with-gradient__text {
      padding: 40px;
      max-width: 320px;
      margin: 0 auto;
      .paragraph {
        text-align: center;
        margin-inline: auto;
      }
      .secondary-header-title {
        font-weight: 500;
        margin-bottom: 12px;
        margin-inline: auto;
      }
    }
    .prestamos__image-with-gradient__button {
      background-color: #00c6c5;
      height: 45px;
      width: 250px;
      margin: 0 auto;
      margin-top: auto;
      display: flex;
      justify-content: center;
      align-items: center;
      position: relative;
      bottom: 44px;
      border-radius: 999px;
      border: none;
      color: #152a69;
      font-size: 16px;
      font-family: "Geomanist-WZ-OT-Medium";
      letter-spacing: 1px;
      cursor: pointer;
    }
    .prestamos__image-with-gradient__button:hover {
      background-color: #152a69;
      color: white;
      transition: background-color 0.25s ease, color 0.25s ease;
    }
  }
  .prestamos__image-with-gradient::before {
    content: "";
    position: absolute;
    bottom: 0;
    width: 100%;
    max-height: 60%;
    height: 262px;
    background-image: url("./assets/image-with-gradient.png");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    pointer-events: none;
  }

  .prestamos__consejos {
    padding: 15px;
    margin-top: 24px;
    .prestamos__consejos-text {
      max-width: 241px;
      margin: auto;
      .secondary-header-title {
        font-weight: 500;
        margin-bottom: 12px;
      }
      .paragraph {
        text-align: center;
      }
    }
    .prestamos__consejos-boxes {
      margin-top: 30px;
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 8px;
      width: 100%;
      justify-self: center;
      margin-inline: auto;
      /* width: 380px; */
      .prestamos__consejos-box {
        /* height: 180px; */
        aspect-ratio: 1 / 1;
        background-color: #d9f5ec;
        border-radius: 16px;
        display: flex;
        justify-content: center;
        .prestamos__consejos-box-button {
          height: 100%;
          border-radius: 16px;
          border: none;
          background-color: transparent;
          .third-header-title {
            font-size: 16px;
            width: 120px;
            margin: auto;
          }
          .prestamos__no-dudas-img-container {
            border: 1px solid #445587;
            width: 30px;
            height: 30px;
            border-radius: 99px;
            display: flex;
            margin: auto;
            margin-top: 10px;
            justify-content: center;
            img {
              object-fit: cover;
              width: 12px;
              height: 12px;
              align-self: center;
            }
          }
        }
      }
    }
  }

  .prestamos__no-dudas-container {
    .prestamos__title-subtitle-container {
      .secondary-header-title {
        font-weight: 600;
        margin-bottom: 12px;
      }
      .paragraph {
        width: 200px;
      }
    }
    .prestamos__no-dudas-container-items {
      padding: 6px 15px 0;
    }
    .prestamos__no-dudas-container-items-second {
      .prestamos__no-dudas-item-show {
        border: 1px solid #445587;
        border-radius: 99px;
        height: 50px;
        width: 100%;
        margin-top: 16px;
        .prestamos__no-dudas-item-header {
          height: 100%;
          width: 100%;
          background-color: transparent;
          display: flex;
          flex-direction: row;
          align-items: center;
          justify-content: center;
          gap: 10px;
          border: none;
          gap: 10px;
          cursor: pointer;
          .third-header-title {
            padding: 0;
            margin: 0;
            text-transform: uppercase;
            font-size: 16px;
          }
          .prestamos__no-dudas-img-container {
            width: 16px;
            height: 16px;
            margin-top: -12px;
            img {
              object-fit: cover;
            }
          }
        }
        .prestamos__no-dudas-item-header:hover {
          background-color: #eae9e9;
          transition: background-color 0.25s ease;
        }
      }
    }

    .prestamos__no-dudas-item.is-collapsed {
      max-height: 0;
      opacity: 0;
      display: none;
      transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .prestamos__no-dudas-item {
      transition: max-height 0.4s ease, opacity 0.4s ease;
    }

    .prestamos__no-dudas-item-show img {
      transition: transform 0.3s ease;
    }

    .prestamos__no-dudas-item-show.is-open img {
      transform: rotate(180deg);
    }

    .prestamos__no-dudas-item.no-anim {
      transition: none !important;
    }
  }

  .prestamos__informacion-interes {
    margin: 15px;
    margin-top: 40px;
    height: 180px;
    background-color: #d9f5ec;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    .secondary-header-title {
      width: 180px;
      margin-bottom: 6px;
    }
    .prestamos__informacion-interes-download {
      background-color: #00c6c5;
      height: 45px;
      max-width: 275px;
      border: none;
      border-radius: 99px;
      display: flex;
      flex-direction: row;
      gap: 20px;
      padding: 0px 15px;
      align-items: center;
      justify-content: center;
      margin-top: 12px;
      cursor: pointer;
      .third-header-title {
        font-size: 16px;
        padding-top: 6px;
      }
      .third-header-title:hover {
        color: white;
      }
      .prestamos__no-dudas-img-container {
        width: 30px;
        height: 30px;
        border: 1px solid #445587;
        border-radius: 999px;
        align-content: center;
        img {
          height: 13px;
          width: 13px;
          top: -1px;
          position: relative;
        }
      }
    }
    .prestamos__informacion-interes-download:hover {
      background-color: #152a69;
      color: white;
      transition: background-color 0.25s ease, color 0.25s ease;
    }
  }
  .prestamos__legal-text {
    padding: 30px 15px;
    .legal-text {
      font-family: "Geomanist-WZ-OT-Light";
      font-size: 14px;
    }
  }

  .legal-text-underline {
    text-decoration: underline;
  }

  .footnote-link {
    /*text-decoration:none;*/
    color: inherit;
    cursor: pointer;
  }
  .footnote-link:hover {
    text-decoration: underline;
  }
  .back-to-ref {
    font-size: 0.8rem;
    margin-left: 0.2rem;
    text-decoration: none;
    color: inherit;
  }
  .back-to-ref:hover {
    text-decoration: underline;
  }
}

.prestamos-info-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 10000;
  overflow-y: auto;
  top: 45px;
  overflow-x: auto !important;

  .prestamos-info-modal__header {
    height: 60px;
    background: #d9f5ec;
    display: flex;
    align-items: center;
    padding: 0 17px;

    .prestamos-info-modal__back {
      width: 45px;
      height: 30px;
      border: 1px solid #445587;
      border-radius: 99px;
      background: transparent;
      display: flex;
      justify-content: center;
      align-items: center;
    }

    .prestamos-info-modal__header-title {
      width: 100%;
      place-items: center;

      .third-header-title {
        width: 150px;
        text-align: center;
        margin-left: -40px;
        font-family: "Geomanist-WZ-OT-Book";
        font-size: 18px;
        margin-inline: auto;
      }
    }
  }

  .prestamos-info-modal__body {
    padding: 35px 20px 60px;
    display: flex;
    flex-direction: column;
    align-items: center;
    .prestamos-info-modal__body-content {
      .prestamos-info-modal__text-title {
        font-family: "Geomanist-WZ-OT-Regular";
        font-size: 16px;
        line-height: 140%;
        color: #445587;
        text-align: center;
        margin: 0;
        max-width: 275px;
        justify-self: center;
        margin-inline: auto;
      }
      .prestamos-info-modal__badge {
        margin: 26px 0;
        width: 280px;
        padding: 20px;
        height: 125px;
        border-radius: 16px;
        border: 1px solid rgba(21, 42, 105, 0.3);
        display: flex;
        align-items: center;
        gap: 12px;
        background-color: white;
        justify-self: center;
        margin-inline: auto;
        div {
          height: 75px;
          width: 75px;
          background-color: #00c6c5;
          align-content: center;
          text-align-last: center;
          border-radius: 11px;
          img {
            width: 31px;
            height: 31px;
            object-fit: contain;
	    margin: auto;
          }
        }
        p {
          color: #152a69;
          font-family: "Geomanist-WZ-OT-Regular";
          font-size: 16px;
          line-height: 140%;
          width: 150px;
          font-weight: 600;
          margin-top: 12px;
        }
      }
      .prestamos-info-modal__text-subtitle {
        width: 300px;
        font-family: "Geomanist-WZ-OT-Regular";
        font-size: 14px;
        line-height: 140%;
        color: #445587;
        text-align: center;
        margin: 40px 0;
        justify-self: center;
        margin-inline: auto;
      }

      .prestamos-info-modal__ok {
        margin: 40px 0;
        width: 90px;
        height: 45px;
        border-radius: 999px;
        align-items: center;
        gap: 8px;
        justify-content: center;
        display: flex;
        justify-self: center;
        margin-inline: auto;
        background-color: #00c6c5;
        color: #152a69;
        font-family: "Geomanist-WZ-OT-Book";
        p {
          margin: 0;
          font-weight: 500;
        }
        div {
          height: 25px;
          width: 25px;
          background-color: transparent;
          border-radius: 99px;
          border: 1px solid #445587;

          img {
            width: 12px;
            height: 12px;
            object-fit: contain;
            display: flex;
            justify-self: center;
            align-content: center;
            margin-top: 5px;
          }
        }
      }
      .prestamos-info-modal__ok:hover {
        background-color: #36e0df;
        transition: background-color 0.25s ease;
      }
      .prestamos-info-modal__text-legal {
        color: #445587;
        width: 300px;
        font-family: "Geomanist-WZ-OT-Regular";
        font-size: 14px;
        line-height: 140%;
        justify-self: center;
        margin-inline: auto;
      }
      .prestamos-info-modal__container {
        display: flex;
        flex-direction: column;
        border: 1px solid rgba(21, 42, 105, 0.3);
        border-radius: 16px;
        max-width: 332px;
        margin: 40px 0;
        justify-self: center;
        margin-inline: auto;
        .prestamos-info-modal__badge {
          border: none;
          margin: 0;
          position: relative;
          padding: 10px;
          height: 65px;
          width: 100%;
          div {
            height: 30px;
            width: 36px;
            background-color: transparent;
            border-radius: 99px;
            border: 1px solid rgba(21, 42, 105, 0.3);
            img {
              width: 11px;
              height: 11px;
            }
          }
          p {
            text-align: center;
            padding-top: 5px;
            width: 100%;
          }
        }

        .prestamos-info-modal__badge:not(:last-child)::after {
          content: "";
          position: absolute;
          left: 0;
          bottom: 0;
          width: 100%;
          height: 1px;
          background: rgba(21, 42, 105, 0.3);
        }
      }
    }
  }
}
