/* Layout otimizado para prints de tela — deck Onboarding Digital */

.deck-onboarding .container-slide {
  max-width: 1560px;
}

.deck-onboarding .slide-modulo {
  align-items: stretch;
  padding: 16px 0 52px;
}

.deck-onboarding .slide-modulo .container-slide {
  display: flex;
  align-items: stretch;
  min-height: calc(100vh - 52px);
  padding-top: 8px;
}

.deck-onboarding .slide-modulo .modulo-layout {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  min-height: calc(100vh - 88px);
  max-height: calc(100vh - 88px);
}

.deck-onboarding .slide-modulo .modulo-layout.reverse {
  direction: ltr;
}

.deck-onboarding .modulo-text {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 4px 24px;
  align-items: start;
  flex-shrink: 0;
}

.deck-onboarding .modulo-text .mod-label {
  grid-column: 1;
  font-size: 11px;
  margin-bottom: 0;
}

.deck-onboarding .modulo-text h2 {
  grid-column: 1;
  font-size: 22px;
  margin-bottom: 0;
  line-height: 1.15;
}

.deck-onboarding .modulo-text .mod-desc {
  grid-column: 1;
  font-size: 12px;
  line-height: 1.35;
  margin-bottom: 0;
}

.deck-onboarding .modulo-text .func-tags {
  grid-column: 1;
  margin-top: 2px;
}

.deck-onboarding .modulo-text .benefit-list {
  grid-column: 2;
  grid-row: 1 / span 5;
  gap: 5px;
  align-self: center;
}

.deck-onboarding .benefit-list li {
  font-size: 11px;
  line-height: 1.3;
  gap: 6px;
}

.deck-onboarding .benefit-list li .b-icon {
  width: 18px;
  height: 18px;
  font-size: 9px;
  border-radius: 4px;
  margin-top: 0;
}

.deck-onboarding .func-tag {
  font-size: 10px;
  padding: 3px 9px;
}

/* Imagem em resolução nativa — sem upscale */
.deck-onboarding .modulo-image {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  height: 100%;
  overflow: auto;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
}

.deck-onboarding .modulo-image img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 130px);
  object-fit: none;
  object-position: center center;
  border-radius: 8px;
  border: 1px solid rgba(45, 107, 94, 0.14);
  background: #fff;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.1);
  filter: none;
  image-rendering: auto;
  cursor: zoom-in;
  transition: box-shadow 0.2s ease;
}

.deck-onboarding .modulo-image img:hover {
  box-shadow: 0 14px 40px rgba(45, 107, 94, 0.22);
}

.deck-onboarding .modulo-image .img-zoom-hint {
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--vc-green-dark);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(45, 107, 94, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  pointer-events: none;
  opacity: 0.85;
}

.deck-onboarding .modulo-image {
  position: relative;
}

.deck-onboarding .modulo-image:has(.img-secondary) {
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.deck-onboarding .modulo-image .img-main,
.deck-onboarding .modulo-image .img-secondary {
  position: relative;
  bottom: auto;
  right: auto;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
  max-height: calc((100vh - 160px) * 0.55);
  height: auto;
  border: 1px solid rgba(45, 107, 94, 0.12);
}

.deck-onboarding .modulo-image .img-secondary {
  max-height: calc((100vh - 160px) * 0.4);
}

.deck-onboarding .slide-capa .capa-content {
  gap: 10px;
}

.deck-onboarding .slide-capa h1 {
  font-size: 40px;
}

.deck-onboarding .slide-capa .subtitulo {
  font-size: 16px;
  max-width: 760px;
}

.deck-onboarding .slide-capa .mockup-capa {
  margin-top: 4px;
  width: auto;
  max-width: min(94%, 1024px);
  max-height: min(40vh, 1024px);
  height: auto;
  cursor: zoom-in;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Lightbox — visualização 1:1 */
.deck-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10, 24, 20, 0.92);
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.deck-lightbox.is-open {
  display: flex;
}

.deck-lightbox img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  cursor: default;
  image-rendering: auto;
}

.deck-lightbox-close {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2001;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.deck-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.25);
}

@media (max-width: 1024px) {
  .deck-onboarding .modulo-text {
    grid-template-columns: 1fr;
  }

  .deck-onboarding .modulo-text .benefit-list {
    grid-column: 1;
    grid-row: auto;
  }

  .deck-onboarding .slide-modulo .modulo-layout {
    max-height: none;
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .deck-onboarding .slide-modulo {
    padding: 24px 0 80px;
  }

  .deck-onboarding .slide-modulo .container-slide {
    min-height: auto;
  }

  .deck-onboarding .modulo-image img {
    max-height: 55vh;
  }

  .deck-onboarding .slide-capa .mockup-capa {
    max-height: 200px;
  }
}
