/* ===================================
   MARACA SOLUTIONS - FLIP CARDS CAROUSEL
   Cards com carrossel e navegação - VERSÃO REDUZIDA
   =================================== */

/* Seção Principal */
.maraca-solutions-section {
  background-color: #f8f9fa;
  padding: 130px 0;
  position: relative;
}

.maraca-solutions-title {
  text-align: center;
  margin-bottom: 60px;
}

.maraca-solutions-title h2 {
  color: #8a1414;
  font-size: 42px;
  font-weight: 700;
  margin-bottom: 15px;
}

.maraca-solutions-title p {
  color: #495057;
  font-size: 18px;
}

/* Container do Swiper */
.solutions-carousel-swiper {
  padding: 30px 0 60px 0;
  overflow: visible !important;
}

/* Flipcard Container - Altura Reduzida para 550px */
.flip-card {
  background-color: transparent;
  width: 100%;
  height: 600px;
  perspective: 1000px;
  margin-bottom: 30px;
}

.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.8s;
  transform-style: preserve-3d;
  cursor: pointer;
}

.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
}

/* Frente e Verso - Estrutura Otimizada */
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Frente do Card */
.flip-card-front {
  background: #8a1414;
  color: white;
  padding: 35px 30px;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.flip-card-front h3 {
  color: white;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
}

.flip-card-front p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 25px;
  max-width: 95%;
}

.flip-card-front .flip-hint {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
}

.flip-card-front .flip-hint i {
  font-size: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.1);
    opacity: 0.8;
  }
}

/* Verso do Card - Com scroll otimizado */
.flip-card-back {
  background: #8a1414;
  color: white;
  transform: rotateY(180deg);
  padding: 25px 20px;
  justify-content: flex-start;
}

.flip-card-back h3 {
  color: white;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 20px;
  text-transform: uppercase;
  text-align: center;
  flex-shrink: 0;
}

/* Área de Detalhes com Scroll */
.flip-card-back .solution-details {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  margin-bottom: 18px;
  padding-right: 10px;
  text-align: left;
  
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.flip-card-back .solution-details::-webkit-scrollbar {
  display: none;
}

/* Títulos de Seção no Verso */
.flip-card-back .solution-details h4 {
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  margin-top: 15px;
  margin-bottom: 10px;
}

.flip-card-back .solution-details h4:first-child {
  margin-top: 0;
}

/* Listas de Benefícios */
.flip-card-back .solution-details ul {
  list-style: none;
  padding: 0;
  margin: 0 0 10px 0;
}

.flip-card-back .solution-details ul li {
  padding: 6px 0 6px 24px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.95);
  position: relative;
}

.flip-card-back .solution-details ul li:before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #42a542;
  font-weight: bold;
  font-size: 16px;
}

.flip-card-back .solution-details .no-check ul li::before {
  content: "✅";
}

/* Botão CTA */
.flip-card-back .cta-button {
  background-color: #42a542;
  color: #333;
  padding: 12px 28px;
  border-radius: 50px;
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  border: 2px solid #42a542;
}

.flip-card-back .cta-button:hover {
  background-color: transparent;
  color: #42a542;
  border-color: #42a542;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.flip-card-back .cta-button i {
  font-size: 18px;
}

/* Logo da Maraca Hub no botão CTA */
.flip-card-back .cta-button .cta-logo {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%);
  transition: filter 0.3s ease;
}

.flip-card-back .cta-button:hover .cta-logo {
  filter: brightness(0) saturate(100%) invert(48%) sepia(79%) saturate(2476%) hue-rotate(86deg) brightness(118%) contrast(119%);
}

/* Hint de Voltar */
.flip-card-back .back-hint {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  flex-shrink: 0;
}

/* ===================================
   NAVEGAÇÃO DO CARROSSEL
   =================================== */

/* Botões de Navegação */
.solutions-carousel-swiper .swiper-button-next,
.solutions-carousel-swiper .swiper-button-prev {
  color: #8a1414;
  background: white;
  width: 55px;
  height: 55px;
  border-radius: 50%;
  box-shadow: 0 5px 20px rgba(138, 20, 20, 0.25);
  transition: all 0.3s ease;
}

.solutions-carousel-swiper .swiper-button-next:after,
.solutions-carousel-swiper .swiper-button-prev:after {
  font-size: 22px;
  font-weight: bold;
}

.solutions-carousel-swiper .swiper-button-next {
  right: -25px;
}

.solutions-carousel-swiper .swiper-button-prev {
  left: -25px;
}

.solutions-carousel-swiper .swiper-button-next:hover,
.solutions-carousel-swiper .swiper-button-prev:hover {
  background: #8a1414;
  color: white;
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(138, 20, 20, 0.4);
}

.solutions-carousel-swiper .swiper-button-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* Paginação */
.solutions-carousel-swiper .swiper-pagination {
  bottom: -45px;
  position: absolute;
}

.solutions-carousel-swiper .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background: #ddd;
  opacity: 1;
  transition: all 0.3s ease;
}

.solutions-carousel-swiper .swiper-pagination-bullet-active {
  background: #8a1414;
  width: 35px;
  border-radius: 6px;
}

/* Responsividade */
@media (max-width: 991px) {
  .solutions-carousel-swiper .swiper-button-next {
    right: 10px;
  }
  
  .solutions-carousel-swiper .swiper-button-prev {
    left: 10px;
  }
}

@media (max-width: 768px) {
  .maraca-solutions-title h2 {
    font-size: 32px;
  }

  .flip-card {
    height: 500px;
  }

  .flip-card-front h3,
  .flip-card-back h3 {
    font-size: 24px;
  }

  .flip-card-front p {
    font-size: 14px;
  }

  .flip-card-back .solution-details h4 {
    font-size: 15px;
  }

  .flip-card-back .solution-details ul li {
    font-size: 13px;
    padding: 6px 0 6px 22px;
  }

  .flip-card-back .cta-button {
    padding: 10px 24px;
    font-size: 14px;
  }
  
  .solutions-carousel-swiper .swiper-button-next,
  .solutions-carousel-swiper .swiper-button-prev {
    width: 45px;
    height: 45px;
  }
  
  .solutions-carousel-swiper .swiper-button-next:after,
  .solutions-carousel-swiper .swiper-button-prev:after {
    font-size: 18px;
  }
}

@media (max-width: 576px) {
  .flip-card {
    height: 480px;
  }

  .flip-card-front,
  .flip-card-back {
    padding: 25px 20px;
  }
}