/* ─── CREDITO VOLUME SECTION ─── */
.credito-volume {
  width: 100%;
  background-color: #f8f9fa; /* Sleek light mode background consistent with b2b */
  padding: 96px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.credito-volume__inner {
  width: min(calc(100% - 48px), var(--container-max));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 80px;
  align-items: center;
}

.credito-volume__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 24px;
}

.credito-volume__title {
  font-family: 'Google Sans Flex', 'Geist', sans-serif;
  font-size: clamp(26px, 3.5vw, 36px);
  font-weight: 500;
  line-height: 1.389;
  letter-spacing: 0.72px;
  text-transform: uppercase;
  color: #3a3a3a;
  margin: 0;
}

.credito-volume__description {
  font-family: 'Google Sans Flex', 'Geist', sans-serif;
  font-size: clamp(16px, 2vw, 18px);
  font-weight: 400;
  line-height: 1.389;
  letter-spacing: 0.36px;
  color: #3a3a3a;
  margin: 0;
}

.credito-volume__action {
  /* DocBlocker: set width to 100% to resolve circular sizing dependency and allow button to expand to its full 269px width */
  width: 100%;
  margin-top: 8px;
}

.credito-volume__media {
  position: relative;
  width: 100%;
  display: flex;
  justify-content: center;
}

.credito-volume__image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 757 / 403;
  overflow: hidden;
  /* Premium shape mask with subtracted corner */
  -webkit-mask: url("../../images/Subtract.svg") center / 100% 100% no-repeat;
  mask: url("../../images/Subtract.svg") center / 100% 100% no-repeat;
}

.credito-volume__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  /* Premium hover micro-interaction */
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.credito-volume__image-wrapper:hover .credito-volume__image {
  transform: scale(1.04);
}

/* Responsiveness */
@media (max-width: 1024px) {
  .credito-volume {
    padding: 80px 0;
  }
  
  .credito-volume__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  
  .credito-volume__content {
    max-width: 768px;
    margin: 0 auto;
    text-align: left;
  }
  
  .credito-volume__action {
    align-self: flex-start;
  }

  .credito-volume__media {
    max-width: 768px;
    margin: 0 auto;
  }
}

@media (max-width: 480px) {
  .credito-volume {
    padding: 64px 0;
  }
  
  .credito-volume__inner {
    width: min(calc(100% - 32px), var(--container-max));
    gap: 36px;
  }
  
  .credito-volume__action {
    width: 100%;
  }
  
  .credito-volume__action .btn {
    width: 100%;
  }
}
