.stori-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  display: none;
  background: rgba(0, 58, 64, .78);
  color: #161616;
}

#products article {
  isolation: isolate;
}

#products article > div:first-child img[alt="stori-green"],
#products article > div:first-child img[alt="stori-cuenta"],
#products article > div:first-child img[alt="stori-prestamos"] {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: right center !important;
  transform: none !important;
}

#products article:first-of-type > div:first-child {
  right: 0 !important;
  top: 0 !important;
  bottom: 0 !important;
  width: min(55%, 680px) !important;
  height: 100% !important;
  transform: none !important;
}

#products article:not(:first-of-type) > div:first-child {
  right: 0 !important;
  top: 0 !important;
  width: min(72%, 520px) !important;
  height: 100% !important;
}

#products img[alt="Tarjeta de crédito"],
#products img[alt="Cuenta débito"],
#products img[alt="Préstamo"] {
  max-width: min(72%, 310px) !important;
  height: auto !important;
  object-fit: contain !important;
}

#products article > div:nth-child(2),
#products article > div:nth-child(3) {
  z-index: 1 !important;
}

@media (max-width: 767px) {
  #products article:first-of-type > div:first-child,
  #products article:not(:first-of-type) > div:first-child {
    width: 82% !important;
    opacity: 0.96;
  }

  #products article > div:first-child img[alt="stori-green"],
  #products article > div:first-child img[alt="stori-cuenta"],
  #products article > div:first-child img[alt="stori-prestamos"] {
    object-position: right top !important;
  }
}

.loan-page {
  --loan-dark: #003f44;
  --loan-green: #00d180;
  --loan-ink: #161616;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--loan-ink);
  background: #fff;
  font-family: Inter, Arial, sans-serif;
}

.loan-page * {
  box-sizing: border-box;
}

.loan-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  min-height: 82px;
  padding: 14px 30px;
  border-bottom: 1px solid #e1e7e7;
  background: #fff;
}

.loan-header-logo img {
  display: block;
  width: 126px;
  height: auto;
}

.loan-header-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.loan-header-nav a,
.loan-header-nav button {
  min-height: 42px;
  padding: 10px 13px;
  border: 0;
  border-radius: 12px;
  color: #161616;
  background: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.loan-header-nav a:hover,
.loan-header-nav button:hover {
  background: #eaf3f3;
}

.loan-header-login,
.loan-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 25px;
  border: 0;
  border-radius: 12px;
  color: #061616;
  background: var(--loan-green);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.loan-header-login:hover,
.loan-cta:hover {
  background: #00b971;
}

.loan-mobile-trigger {
  display: none;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  font-size: 27px;
  cursor: pointer;
}

.loan-container {
  width: min(1160px, calc(100% - 40px));
  margin: 0 auto;
}

.loan-hero {
  color: #fff;
  background: var(--loan-dark);
}

.loan-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  align-items: center;
  min-height: 660px;
  padding: 70px 0;
}

.loan-hero-copy h1 {
  max-width: 650px;
  margin: 0;
  font-size: clamp(58px, 6vw, 86px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -2px;
}

.loan-hero-copy p {
  max-width: 580px;
  margin: 35px 0 30px;
  font-size: clamp(21px, 2.2vw, 30px);
  font-weight: 600;
  line-height: 1.25;
}

.loan-hero-art {
  display: flex;
  justify-content: center;
}

.loan-hero-art img {
  width: min(100%, 475px);
  height: auto;
  object-fit: contain;
}

.loan-section {
  padding: 90px 0;
}

.loan-section h2 {
  margin: 0 0 48px;
  text-align: center;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.08;
}

.loan-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: 760px;
  margin: 0 auto;
}

.loan-feature-card,
.loan-offer {
  border: 1px solid #e6e6e6;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(0, 45, 48, .1);
}

.loan-feature-card {
  min-height: 345px;
  padding: 30px;
}

.loan-feature-card img {
  display: block;
  width: 170px;
  height: 170px;
  margin: 0 auto 20px;
  object-fit: contain;
}

.loan-feature-card h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

.loan-feature-card p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.loan-offers {
  background: #fafafa;
}

.loan-offer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.loan-offer {
  padding: 28px;
}

.loan-offer small,
.loan-offer span,
.loan-offer strong {
  display: block;
}

.loan-offer strong {
  margin: 8px 0;
  font-size: 44px;
  line-height: 1;
}

.loan-offer span {
  color: #058e65;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.35;
}

.loan-legal {
  margin: 30px 0 0;
  color: #666;
  font-size: 13px;
  line-height: 1.45;
}

.loan-faq {
  max-width: 980px;
  margin: 0 auto;
}

.loan-faq details {
  padding: 19px 22px;
  border-bottom: 1px solid #ddd;
  background: #f4f4f4;
}

.loan-faq details:first-of-type {
  border-radius: 16px 16px 0 0;
}

.loan-faq details:last-of-type {
  border: 0;
  border-radius: 0 0 16px 16px;
}

.loan-faq summary {
  font-weight: 800;
  cursor: pointer;
}

.loan-faq p {
  margin: 15px 0 0;
  line-height: 1.5;
}

.loan-closing {
  padding: 90px 0;
  color: #fff;
  text-align: center;
  background: var(--loan-dark);
}

.loan-closing img {
  width: 130px;
  height: 130px;
  object-fit: contain;
}

.loan-closing h2 {
  max-width: 700px;
  margin: 22px auto 30px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.05;
}

.loan-footer {
  padding: 55px 0 30px;
  color: #fff;
  background: #003236;
}

.loan-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 30px;
}

.loan-footer img {
  width: 160px;
}

.loan-footer h3 {
  margin: 0 0 16px;
  font-size: 16px;
}

.loan-footer a {
  display: block;
  margin: 8px 0;
  color: #fff;
  font-size: 13px;
  text-decoration: none;
}

.loan-footer-legal {
  margin: 38px 0 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 1211px) {
  .loan-header {
    min-height: 68px;
    grid-template-columns: auto auto;
    justify-content: space-between;
    padding: 12px 20px;
  }

  .loan-header-nav,
  .loan-header-login {
    display: none;
  }

  .loan-mobile-trigger {
    display: block;
  }
}

@media (max-width: 767px) {
  .loan-container {
    width: min(100% - 30px, 620px);
  }

  .loan-hero-inner {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 56px 0 44px;
    text-align: center;
  }

  .loan-hero-copy h1 {
    font-size: 48px;
    letter-spacing: -1px;
  }

  .loan-hero-copy p {
    margin: 24px 0;
    font-size: 19px;
  }

  .loan-hero-art {
    order: -1;
  }

  .loan-hero-art img {
    width: 230px;
    margin-bottom: 24px;
  }

  .loan-section {
    padding: 62px 0;
  }

  .loan-section h2 {
    margin-bottom: 30px;
    font-size: 32px;
  }

  .loan-feature-grid,
  .loan-offer-grid,
  .loan-footer-grid {
    grid-template-columns: 1fr;
  }

  .loan-feature-card {
    min-height: 0;
  }

  .loan-offer strong {
    font-size: 38px;
  }

  .loan-closing {
    padding: 65px 0;
  }
}

.stori-login-overlay.is-open {
  display: grid;
  place-items: start center;
  overflow: auto;
  padding: 16px 0;
}

.stori-login-card {
  width: min(430px, calc(100vw - 22px));
  margin-top: 0;
  padding: 24px 18px 20px;
  border-radius: 12px 12px 22px 22px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .2);
  font-family: inherit;
}

.stori-login-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 18px;
  border-bottom: 1px solid #e5ecee;
}

.stori-login-head img {
  width: 126px;
  height: auto;
}

.stori-login-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: #161616;
  font-size: 44px;
  line-height: .8;
  cursor: pointer;
}

.stori-login-body {
  padding-top: 24px;
}

.stori-login-body h2 {
  margin: 0 0 10px;
  font-size: 30px;
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
}

.stori-login-body > p {
  margin: 0 0 24px;
  color: #3f4c4f;
  font-size: 15px;
  line-height: 1.35;
}

.stori-login-form {
  display: grid;
  gap: 12px;
}

.stori-login-field {
  display: grid;
  gap: 7px;
}

.stori-login-field label {
  color: #007a61;
  font-size: 13px;
  font-weight: 800;
}

.stori-login-field input {
  width: 100%;
  height: 58px;
  padding: 0 16px;
  border: 1px solid #a8b1b4;
  border-radius: 14px;
  color: #132c42;
  background: #fff;
  font-size: 17px;
  outline: none;
}

.stori-login-field input::placeholder {
  color: #8d9aa5;
}

.stori-login-field input:focus {
  border-color: #00d180;
  box-shadow: 0 0 0 3px rgba(0, 209, 128, .14);
}

.stori-login-field.has-error label {
  color: #b42318;
}

.stori-login-field.has-error input {
  border-color: #e34b3f;
  background: #fff8f7;
  box-shadow: 0 0 0 3px rgba(227, 75, 63, .12);
}

.stori-login-field-error {
  display: grid;
  gap: 3px;
  min-height: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.25;
}

.stori-login-field-error span::before,
.stori-login-message span::before {
  content: "!";
  display: inline-grid;
  place-items: center;
  width: 15px;
  height: 15px;
  margin-right: 6px;
  border-radius: 999px;
  background: #ffe5e0;
  color: #b42318;
  font-size: 10px;
  font-weight: 900;
}

.stori-login-message {
  display: grid;
  gap: 5px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #ffd0c9;
  border-radius: 12px;
  color: #b42318;
  background: #fff5f3;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
}

.stori-login-message[hidden] {
  display: none;
}

.stori-login-submit,
.stori-login-success a {
  height: 58px;
  border: 0;
  border-radius: 12px;
  background: #00d180;
  color: #061616;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.stori-login-success {
  display: none;
  padding-top: 36px;
  text-align: center;
}

.stori-login-success.is-open {
  display: block;
}

.stori-login-success h2 {
  margin: 16px 0 10px;
}

.stori-login-success-mark {
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border-radius: 50%;
  background: #00d180;
  color: #003a40;
  font-size: 42px;
  font-weight: 900;
}

.stori-login-success a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-top: 18px;
}

.stori-login-card[data-step="success"] .stori-login-body {
  display: none;
}

.stori-login-card[data-step="success"] .stori-login-success {
  display: block;
}

.stori-scroll-enhanced {
  will-change: transform;
}

img[data-stori-swapping="true"] {
  opacity: 0 !important;
}

.stori-mobile-menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: none;
  background: rgba(0, 0, 0, .66);
}

.stori-mobile-menu-overlay.is-open {
  display: block;
}

.stori-mobile-menu-card {
  width: min(430px, calc(100vw - 20px));
  max-height: calc(100vh - 12px);
  margin: 6px auto;
  padding: 18px 16px 24px;
  overflow-y: auto;
  border-radius: 10px 10px 22px 22px;
  background: #fff;
  color: #161616;
  font-family: inherit;
}

.stori-mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid #e5ecee;
}

.stori-mobile-menu-head img {
  width: 126px;
}

.stori-mobile-menu-close {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  font-size: 44px;
  line-height: .85;
  cursor: pointer;
}

.stori-mobile-menu-nav {
  display: grid;
  gap: 0;
}

.stori-mobile-menu-nav > a,
.stori-mobile-menu-nav summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #edf0f2;
  color: #050505;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  list-style: none;
  cursor: pointer;
}

.stori-mobile-menu-nav summary::-webkit-details-marker {
  display: none;
}

.stori-mobile-menu-nav summary::after {
  content: "⌄";
  font-size: 20px;
}

.stori-mobile-menu-nav details[open] summary {
  min-height: 52px;
  margin: 12px 0 10px;
  padding: 0 18px;
  border: 0;
  border-radius: 12px;
  background: #003a40;
  color: #fff;
}

.stori-mobile-menu-nav details[open] summary::after {
  content: "⌃";
}

.stori-mobile-menu-sub {
  display: grid;
  gap: 22px;
  padding: 28px 26px;
  border-radius: 14px;
  background: #f4f6f6;
}

.stori-mobile-menu-sub a {
  display: grid;
  gap: 5px;
  color: #0c0c0c;
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
}

.stori-mobile-menu-sub strong,
.stori-mobile-menu-sub small {
  display: block;
}

.stori-mobile-menu-sub small {
  color: #3b3b3b;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.stori-mobile-menu-login {
  width: 100%;
  border: 0;
  height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 26px;
  border-radius: 12px;
  background: #00d180;
  color: #041b1c;
  font-weight: 900;
  text-decoration: none;
}

.stori-desktop-dropdown {
  position: fixed;
  top: 96px;
  left: 50%;
  z-index: 2147483645;
  width: calc(100vw - 12px);
  max-width: 1888px;
  display: none;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 28px 70px;
  min-height: 245px;
  padding: 54px 68px 72px;
  border: 0;
  border-radius: 0 0 28px 28px;
  background: #fff;
  box-shadow: 0 18px 45px rgba(0, 44, 48, .16);
  transform: translateX(-50%);
  font-family: inherit;
}

.stori-desktop-dropdown.is-open {
  display: grid;
}

.stori-desktop-dropdown a {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 12px 14px;
  border-radius: 16px;
  color: #161616;
  font-size: 18px;
  line-height: 1.2;
  text-decoration: none;
}

.stori-desktop-dropdown--cards {
  min-height: 390px;
  padding-top: 68px;
}

.stori-desktop-dropdown--cards a {
  min-height: 92px;
}

.stori-nav-active {
  background: #003a40 !important;
  color: #fff !important;
}

.stori-nav-active *,
.stori-nav-active svg {
  color: #fff !important;
  stroke: currentColor !important;
}

.stori-chevron-open {
  transform: rotate(180deg);
}

html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.stori-desktop-dropdown a:hover {
  background: #eaf3f3;
}

.stori-desktop-dropdown img {
  width: 42px;
  height: 66px;
  object-fit: contain;
  flex: 0 0 auto;
}

.stori-desktop-dropdown span,
.stori-desktop-dropdown strong,
.stori-desktop-dropdown small {
  display: block;
}

.stori-desktop-dropdown strong {
  font-weight: 800;
}

.stori-desktop-dropdown small {
  margin-top: 5px;
  color: #3b3b3b;
  font-size: 15px;
  font-weight: 400;
}

.stori-generic-mobile-trigger {
  display: none;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 10px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  flex-direction: column;
  justify-content: space-around;
  cursor: pointer;
}

.stori-generic-mobile-trigger span {
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: #003a40;
}

@media (max-width: 1211px) {
  .stori-desktop-dropdown {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .stori-generic-mobile-trigger {
    display: flex;
  }

  .tap-page > section {
    display: block !important;
  }

  .tap-page > .tap-hero {
    display: grid !important;
  }
}

@media (max-width: 767px) {
  .stori-login-overlay.is-open {
    align-items: start;
    padding: 10px 0;
  }

  .stori-login-card {
    min-height: auto;
    padding: 18px 16px 16px;
    width: min(430px, calc(100vw - 16px));
  }

  .stori-login-head {
    padding-bottom: 12px;
  }

  .stori-login-head img {
    width: 116px;
  }

  .stori-login-close {
    width: 34px;
    height: 34px;
    font-size: 38px;
  }

  .stori-login-body {
    padding-top: 18px;
  }

  .stori-login-body h2 {
    margin-bottom: 6px;
    font-size: 26px;
  }

  .stori-login-body > p {
    margin-bottom: 18px;
    font-size: 14px;
  }

  .stori-login-form {
    gap: 9px;
  }

  .stori-login-field {
    gap: 5px;
  }

  .stori-login-field input {
    height: 50px;
    border-radius: 12px;
    font-size: 15px;
  }

  .stori-login-field-error,
  .stori-login-message {
    font-size: 11px;
    line-height: 1.2;
  }

  .stori-login-field-error {
    gap: 2px;
  }

  .stori-login-field-error span::before,
  .stori-login-message span::before {
    width: 13px;
    height: 13px;
    margin-right: 5px;
    font-size: 9px;
  }

  .stori-login-message {
    gap: 3px;
    padding: 8px 10px;
  }

  .stori-login-submit,
  .stori-login-success a {
    height: 52px;
  }
}
