/* Componente: Banner 3D */
.banner3d-wrapper {
  width: 100%;
  display: grid;
  place-items: center;
}

.banner3d-scene {
  width: min(390px, 92vw);
  aspect-ratio: 390 / 537;
  height: auto;
  perspective: 1200px;
}

.banner3d-card {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
  border-radius: 44px;
  overflow: visible;
}

.banner3d-face {
  position: absolute;
  inset: 0;
  border-radius: 44px;
  backface-visibility: hidden;
  overflow: visible;
  transform-style: preserve-3d;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  letter-spacing: .2px;
}

.banner3d-face-front {
  transform: rotateY(0deg) translateZ(1px);
}

.banner3d-face-back {
  transform: rotateY(180deg) translateZ(1px);
}

.banner3d-canvas {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  width: 390px;
  height: 537px;
  transform-origin: 0 0;
  transform: scale(var(--banner3d-scale));
}

.banner3d-layer {
  position: absolute;
  top: 0;
  left: 0;
  transform-style: preserve-3d;
  backface-visibility: hidden;
  pointer-events: none;
  user-select: none;
  will-change: transform;
  image-rendering: auto;
  object-fit: contain;
  height: auto;
}

.banner3d-overlay {
  position: absolute;
  top: 18px;
  left: 18px;
  right: 18px;
  height: 72px;
  width: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 22px;
  transform: translateZ(140px) translateY(-10px) rotateX(10deg);
  transform-origin: center top;
  background: rgba(255, 255, 255, .22);
  border: 1px solid rgba(255, 255, 255, .40);
  box-shadow: 0 22px 60px rgba(0, 0, 0, .30), 0 8px 18px rgba(0, 0, 0, .18);
  backdrop-filter: blur(10px);
  pointer-events: none;
}

.banner3d-overlay-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.banner3d-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .95);
  box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
  flex: 0 0 auto;
}

.banner3d-overlay-title {
  font-size: 15px;
  line-height: 1.1;
  font-weight: 800;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.banner3d-overlay-sub {
  font-size: 12px;
  opacity: .92;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.banner3d-pill {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  color: #fff;
}

.banner3d-badge {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: .5px;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .35);
  color: #fff;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35), 0 6px 12px rgba(0, 0, 0, .2);
  backdrop-filter: blur(6px);
  pointer-events: none;
}

.banner3d-scene::after {
  content: "";
  display: block;
  width: 85%;
  border-radius: 999px;
  background: rgba(0, 0, 0, .12);
  filter: blur(14px);
  transform: translateZ(-1px);
}

.banner3d-dots {
  display: flex;
  justify-content: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
}

.banner3d-dot {
  width: 16px;
  height: 16px;
  border: 2px solid var(--accent-primary-cta);
  border-radius: 50%;
  background-color: transparent;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.banner3d-dot.active {
  background-color: var(--accent-primary-cta);
}


/* Desktop */
@media (min-width: 768px) {

  .banner3d-wrapper {
    grid-column: 2;
    grid-row: 1 / span 5;
  }

  .banner3d-dots {
    grid-column: 1;
    grid-row: 5;
    margin-right: auto;
  }
}