/* BONJOUR WEB — 28-R04B / SHOWCASE PROYECTOS — COMPACTO + DRAG */

.bj-ecom-showcase {
  width: 100%;
  padding: clamp(64px, 7vw, 108px) 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 12%, rgba(26, 145, 255, .08), transparent 28%),
    #f5f9ff;
}

.bj-ecom-showcase__head {
  width: min(1280px, calc(100% - 40px));
  margin: 0 auto clamp(28px, 3.2vw, 44px);
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
}

.bj-ecom-showcase__head > div:first-child {
  max-width: 820px;
}

.bj-ecom-showcase__eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  color: #087df0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .12em;
}

.bj-ecom-showcase__head h2 {
  margin: 0;
  color: #0d284a;
  font-size: clamp(36px, 4vw, 62px);
  line-height: 1;
  letter-spacing: -.04em;
}

.bj-ecom-showcase__head p {
  margin: 18px 0 0;
  max-width: 700px;
  color: #536b88;
  font-size: clamp(16px, 1.3vw, 20px);
  line-height: 1.5;
}

.bj-ecom-showcase__controls {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.bj-ecom-showcase__arrow {
  width: 50px;
  height: 50px;
  border: 1px solid #cbd9e9;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  color: #0b4c91;
  font-size: 23px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, opacity .2s ease;
}

.bj-ecom-showcase__arrow:hover {
  transform: translateY(-2px);
  background: #fff;
}

.bj-ecom-showcase__track {
  --edge: 20px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(68vw, 940px);
  gap: 22px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 4px var(--edge) 16px;
  outline: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y pinch-zoom;
}

.bj-ecom-showcase__track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
  scroll-behavior: auto;
}

.bj-ecom-showcase__track::-webkit-scrollbar {
  display: none;
}

.bj-ecom-showcase__card {
  scroll-snap-align: start;
  min-width: 0;
  padding: clamp(14px, 1.5vw, 20px);
  border: 1px solid #d8e4f0;
  border-radius: 32px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 20px 48px rgba(31, 76, 125, .09);
}

.bj-ecom-showcase__card[data-bj-showcase-clone="true"] {
  pointer-events: none;
}

.bj-ecom-showcase__media {
  position: relative;
  min-height: clamp(390px, 36vw, 500px);
  border-radius: 23px;
  overflow: hidden;
  background: linear-gradient(145deg, #edf5ff, #dfeeff);
}

.bj-ecom-showcase__desktop {
  position: absolute;
  inset: 18px auto auto 18px;
  width: calc(82% - 18px);
  height: auto;
  aspect-ratio: 1.6 / 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(10,50,90,.12);
  border-radius: 17px;
  box-shadow: 0 20px 42px rgba(12, 45, 82, .16);
  pointer-events: none;
}

.bj-ecom-showcase__mobile {
  position: absolute;
  right: 22px;
  bottom: 18px;
  width: min(23%, 205px);
  height: auto;
  aspect-ratio: .463 / 1;
  object-fit: cover;
  object-position: top center;
  border: 1px solid rgba(10,50,90,.14);
  border-radius: 21px;
  box-shadow: 0 22px 46px rgba(12, 45, 82, .23);
  background: #fff;
  pointer-events: none;
}

.bj-ecom-showcase__card--flip .bj-ecom-showcase__desktop {
  left: auto;
  right: 18px;
}

.bj-ecom-showcase__card--flip .bj-ecom-showcase__mobile {
  left: 22px;
  right: auto;
}

.bj-ecom-showcase__copy {
  padding: 22px 6px 4px;
}

.bj-ecom-showcase__tag {
  display: inline-block;
  margin-bottom: 10px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #eef6ff;
  color: #086dcc;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.1;
}

.bj-ecom-showcase__copy h3 {
  margin: 0;
  color: #0d284a;
  font-size: clamp(27px, 2.4vw, 38px);
  line-height: 1.05;
  letter-spacing: -.03em;
}

.bj-ecom-showcase__copy p {
  margin: 11px 0 0;
  max-width: 740px;
  color: #536b88;
  font-size: clamp(15.5px, 1.2vw, 18px);
  line-height: 1.5;
}

@media (min-width: 1400px) {
  .bj-ecom-showcase__track {
    --edge: max(20px, calc((100vw - 1400px) / 2));
  }
}

@media (max-width: 767px) {
  .bj-ecom-showcase {
    padding: 58px 0 66px;
  }

  .bj-ecom-showcase__head {
    width: calc(100% - 28px);
    margin-bottom: 26px;
    align-items: flex-start;
  }

  .bj-ecom-showcase__head h2 {
    font-size: clamp(36px, 10vw, 48px);
  }

  .bj-ecom-showcase__head p {
    margin-top: 16px;
    font-size: 16.5px;
  }

  .bj-ecom-showcase__controls {
    display: none;
  }

  .bj-ecom-showcase__track {
    --edge: 14px;
    grid-auto-columns: 88vw;
    gap: 12px;
    padding-bottom: 10px;
    cursor: default;
    touch-action: pan-y pinch-zoom;
  }

  .bj-ecom-showcase__card {
    padding: 10px;
    border-radius: 25px;
  }

  .bj-ecom-showcase__media {
    min-height: 390px;
    border-radius: 18px;
  }

  .bj-ecom-showcase__desktop,
  .bj-ecom-showcase__card--flip .bj-ecom-showcase__desktop {
    inset: 12px auto auto 12px;
    width: calc(100% - 24px);
    border-radius: 14px;
  }

  .bj-ecom-showcase__mobile,
  .bj-ecom-showcase__card--flip .bj-ecom-showcase__mobile {
    left: auto;
    right: 12px;
    bottom: 12px;
    width: 35%;
    border-radius: 16px;
  }

  .bj-ecom-showcase__card--flip .bj-ecom-showcase__mobile {
    left: 12px;
    right: auto;
  }

  .bj-ecom-showcase__copy {
    padding: 18px 8px 10px;
  }

  .bj-ecom-showcase__tag {
    white-space: normal;
    line-height: 1.2;
  }

  .bj-ecom-showcase__copy h3 {
    font-size: 29px;
  }

  .bj-ecom-showcase__copy p {
    font-size: 15.5px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bj-ecom-showcase__track {
    scroll-behavior: auto;
  }

  .bj-ecom-showcase__arrow {
    transition: none;
  }
}
