/* ==================== RTI SOLUTIONS - ESTILOS CUSTOMIZADOS ==================== */
/*
 * Arquivo principal de estilos do site RTI Solutions
 * 
 * ESTRUTURA DO ARQUIVO:
 * 1. Variáveis CSS
 * 2. Reset e Configurações Globais
 * 3. Gradientes
 * 4. Cards (stat-card, service-card, partner-card)
 * 5. Botões (btn-gradient, btn-outline)
 * 6. Navegação (navbar, nav-link, mobile-menu)
 * 7. Hero Section
 * 8. Animações (animate-on-scroll, floating, whatsapp-float)
 * 9. Scrollbar Customizada
 * 10. Footer
 * 11. Formulários (form-input)
 * 12. Sistema de Abas (tab-button, tab-content)
 * 13. FAQ (Página de Contato)
 * 14. Linha do Tempo (Página Sobre)
 * 15. Mapa Brasil (Página Sobre)
 * 16. Notificações
 * 17. Menu Mobile
 * 18. Responsividade Mobile
 * 19. Carrossel de Serviços
 * 20. Cases de Sucesso
 * 
 * ÚLTIMA ATUALIZAÇÃO: Outubro 2025
 */

/* Importação das fontes */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&display=swap');

/* ==================== VARIÁVEIS CSS ==================== */
:root {
  /* Cores Primárias */
  --color-primary: #2563eb;
  --color-secondary: #9333ea;
  --color-success: #059669;
  --color-warning: #d97706;
  --color-dark: #111827;
  --card-dark: #1f2937;
  --border-dark: #374151;
  
  /* Cores Legacy (manter compatibilidade) */
  --primary-blue: #2563eb;
  --primary-blue-light: #dbeafe;
  --indigo-light: #e0e7ff;
  --purple-primary: #9333ea;
  --purple-light: #f3e8ff;
  --green-primary: #059669;
  --green-light: #dcfce7;
  --amber-primary: #d97706;
  --rose-primary: #e11d48;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-600: #4b5563;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --gray-950: #030712;
}

/* Reset e configurações globais */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Animação para o botão do WhatsApp */
@keyframes whatsappPulse {
  0%, 70%, 100% {
    transform: scale(1);
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
  }
  15%, 25% {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.8);
  }
}

/* Estilos específicos para o botão WhatsApp */
#whatsapp-button {
  position: fixed !important;
  bottom: 20px !important;
  right: 20px !important;
  z-index: 1000 !important;
}

#whatsapp-button a {
  background: linear-gradient(135deg, #25D366, #128C7E) !important;
  border-radius: 50% !important;
  width: 60px !important;
  height: 60px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-decoration: none !important;
  box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4) !important;
}

#whatsapp-button svg {
  width: 28px !important;
  height: 28px !important;
  fill: white !important;
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  color: #1f2937;
  background-color: var(--color-dark);
  overflow-x: hidden;
}

/* Dark mode forçado */
body.dark-mode {
  background-color: var(--color-dark);
  color: #f3f4f6;
}

/* ==================== GRADIENTES ==================== */
.text-gradient {
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-gradient-primary { 
  background: linear-gradient(90deg, #2563eb, #3b82f6); 
}

.bg-gradient-secondary { 
  background: linear-gradient(90deg, #9333ea, #a855f7); 
}

.bg-gradient-success { 
  background: linear-gradient(90deg, var(--color-success), #10b981); 
}

.bg-gradient-warning { 
  background: linear-gradient(90deg, var(--color-warning), #f59e0b); 
}

/* ==================== CARDS ==================== */
.container-custom {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

.section-padding {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.stat-card {
  background-color: rgba(31, 41, 55, 0.5);
  padding: 1.5rem;
  border-radius: 0.75rem;
  border: 1px solid #4b5563;
  transition: all 0.3s ease;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
}

.stat-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.2);
}

.service-card {
  background-color: var(--card-dark);
  border-radius: 0.75rem;
  padding: 2rem;
  border: 1px solid #374151;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s, box-shadow 0.3s;
}

.service-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
}

.partner-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  padding: 1.5rem;
  transition: all 0.3s ease;
  text-align: center;
}

.partner-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.12);
}

/* ==================== BOTÕES ==================== */
.btn-gradient {
  display: inline-block;
  background-image: linear-gradient(to right, var(--color-primary), var(--color-secondary));
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: opacity 0.3s;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-gradient:hover {
  opacity: 0.9;
}

.btn-outline {
  display: inline-block;
  background-color: transparent;
  border: 2px solid #4b5563;
  color: #d1d5db;
  padding: 0.625rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: 600;
  transition: all 0.3s;
  text-decoration: none;
  cursor: pointer;
}

.btn-outline:hover {
  background-color: #4b5563;
  color: #ffffff;
}

/* ==================== NAVEGAÇÃO ==================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: transparent;
  backdrop-filter: none;
  border-bottom: none;
  transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
  transform: translateY(0);
  opacity: 1;
  padding: 0.5rem 0;
}

.navbar.navbar-scrolled {
  background-color: rgba(17, 24, 39, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(55, 65, 81, 0.3);
}

.navbar.navbar-hidden {
  transform: translateY(-100%);
  opacity: 0;
}

.navbar.navbar-visible {
  transform: translateY(0);
  opacity: 1;
}

.nav-link {
  position: relative;
  color: #d1d5db;
  transition: color 0.3s;
  text-decoration: none;
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 2px;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary);
  transition: width 0.3s;
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.mobile-menu {
  display: none;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  color: #d1d5db;
  border-bottom: 1px solid #374151;
  text-decoration: none;
}

/* ==================== HERO SECTION ==================== */
.hero-section {
  padding-top: 9rem;
  padding-bottom: 4rem;
}

/* ==================== ANIMAÇÕES ==================== */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floating {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}

.floating {
  animation: floating 3s ease-in-out infinite;
}

@keyframes pulse-whatsapp {
  0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
  70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
  100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 20px;
  right: 10px;
  background-color: #25D366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.3);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: pulse-whatsapp 2s infinite;
  transition: transform 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* Scrollbar customizada */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--gray-900);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #2563eb, #9333ea);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #1d4ed8, #7c3aed);
}

/* Responsividade */
@media (max-width: 768px) {
  .stat-card,
  .service-card,
  .partner-card {
    padding: 1.5rem;
  }
  
  .btn-gradient,
  .btn-outline {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
  }
  
  .hero-section {
    padding: 2rem 1rem;
    text-align: center;
  }
  
  /* Produtos grid: 2 colunas no mobile */
  #products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 1.2rem !important;
  }
  
  #products-grid .service-card {
    padding: 1rem !important;
    border-radius: 12px !important;
    margin-bottom: 0 !important;
  }
  
  #products-grid .service-card h3 {
    font-size: 1rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #products-grid .service-card p {
    font-size: 0.85rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #products-grid .service-card ul {
    font-size: 0.8rem !important;
    margin-bottom: 0.5rem !important;
  }
  
  #products-grid .service-card a {
    font-size: 0.9rem !important;
    padding: 0.5rem 0.8rem !important;
    margin-top: 0.5rem !important;
  }
}

@media (max-width: 640px) {
  .stat-card,
  .service-card {
    padding: 1rem;
  }
  
  .navbar {
    padding: 0.5rem 1rem;
  }
  
  .nav-link {
    padding: 0.5rem;
    font-size: 0.9rem;
  }
}

/* Efeitos especiais */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.glow-effect {
  box-shadow: 0 0 20px rgba(37, 99, 235, 0.3);
}

.text-gradient {
  background: linear-gradient(135deg, #6BA7C2, #93BC62, #42A4DE);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--gray-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ==================== FORMULÁRIOS ==================== */
.form-input {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  color: #f9fafb;
  transition: all 0.3s ease;
}

.form-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: rgba(255, 255, 255, 0.15);
}

.form-input::placeholder {
  color: rgba(249, 250, 251, 0.6);
}

/* ==================== SISTEMA DE ABAS (TABS) ==================== */
.tab-button {
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-content {
  display: none;
  animation: fadeIn 0.5s;
}

.tab-content.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==================== FAQ (PÁGINA DE CONTATO) ==================== */
.faq-item {
  transition: all 0.3s ease;
}

.faq-question {
  background: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.faq-question:hover {
  color: var(--color-primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.faq-icon {
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* ==================== LINHA DO TEMPO (PÁGINA SOBRE) ==================== */
.timeline-container { 
  overflow: hidden; 
  position: relative; 
}

.timeline-wrapper { 
  display: flex; 
  transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.27, 1.55); 
  cursor: grab; 
}

.timeline-item { 
  flex: 0 0 250px; 
  text-align: center; 
  position: relative; 
  padding: 20px 0; 
}

.timeline-dot {
  width: 20px; 
  height: 20px; 
  background-color: var(--border-dark); 
  border-radius: 50%;
  margin: 0 auto; 
  position: relative; 
  z-index: 2; 
  transition: background-color 0.3s, transform 0.3s; 
  cursor: pointer;
}

.timeline-item.active .timeline-dot { 
  background-color: var(--color-primary); 
  transform: scale(1.3); 
}

.timeline-item:hover .timeline-dot { 
  background-color: var(--color-secondary); 
}

.timeline-content-container {
    transition: opacity 0.3s ease-in-out;
}

.timeline-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
}

.timeline-nav.left-0 {
    left: 0;
}

.timeline-nav.right-0 {
    right: 0;
}

.timeline-date { 
  font-weight: 700; 
  color: #9ca3af; 
  transition: color 0.3s; 
}

.timeline-item.active .timeline-date { 
  color: white; 
}

.timeline-line {
  position: absolute; 
  top: 29px; 
  left: 0; 
  right: 0; 
  height: 2px;
  background-color: var(--border-dark); 
  z-index: 1;
}

.timeline-nav {
  position: absolute; 
  top: 50%; 
  transform: translateY(-50%); 
  z-index: 10;
}

.timeline-content-container { 
  min-height: 120px; 
}

/* ==================== MAPA BRASIL (PÁGINA SOBRE) ==================== */
.brasil-map-container {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 2rem;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.brasil-map-wrapper {
  flex: 0 0 48%;
  max-width: 600px;
}

.brasil-map-wrapper svg {
  width: 100%;
  height: auto;
  outline: none;
}

.brasil-map-wrapper svg path.estado {
  fill: #1e293b;
  stroke: #ffffff;
  stroke-width: 1.5;
  cursor: pointer;
  transition: all 0.3s ease;
}

.brasil-map-wrapper svg path.estado:hover {
  fill: rgba(74, 222, 128, 0.4);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.brasil-map-wrapper svg path.estado.active {
  fill: rgba(74, 222, 128, 0.7);
  stroke: #ffffff;
  stroke-width: 1.5;
}

.brasil-map-wrapper svg path.estado:focus {
  outline: none !important;
  box-shadow: none !important;
}

/* ==================== ESTILOS REGIONAIS ==================== */
/* Região Norte */
.brasil-map-wrapper svg path.norte {
  fill: #4ade80 !important; /* Verde */
}

.brasil-map-wrapper svg path.norte:hover {
  fill: rgba(72, 255, 139, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.norte.active {
  fill: rgba(0, 255, 94, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/* Região Nordeste */
.brasil-map-wrapper svg path.nordeste {
  fill: #ffa155 !important; /* Laranja */
}

.brasil-map-wrapper svg path.nordeste:hover {
  fill: rgba(255, 153, 70, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.nordeste.active {
  fill: rgba(255, 115, 0, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/* Região Centro-Oeste */
.brasil-map-wrapper svg path.centro-oeste {
  fill: #ffcf57 !important; /* Amarelo */
}

.brasil-map-wrapper svg path.centro-oeste:hover {
  fill: rgba(255, 199, 59, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.centro-oeste.active {
  fill: rgba(255, 183, 0, 0.9) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/* Região Sudeste */
.brasil-map-wrapper svg path.sudeste {
  fill: #71a8ff !important; /* Azul */
}

.brasil-map-wrapper svg path.sudeste:hover {
  fill: rgba(91, 154, 255, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.sudeste.active {
  fill: rgba(0, 98, 255, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/* Região Sul */
.brasil-map-wrapper svg path.sul {
  fill: #ff6d6d !important; /* Vermelho */
}

.brasil-map-wrapper svg path.sul:hover {
  fill: rgba(255, 68, 87, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.sul.active {
  fill: rgba(255, 0, 25, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/*Paraguai*/
.brasil-map-wrapper svg path.internacional {
  fill: #6b7280 !important; /* Cinza */
}

.brasil-map-wrapper svg path.internacional:hover {
  fill: rgba(107, 114, 128, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

.brasil-map-wrapper svg path.internacional.active {
  fill: rgba(107, 114, 128, 0.8) !important;
  stroke: #ffffff;
  stroke-width: 2;
}

/* Card de informações do estado */
.estado-info-card {
  flex: 0 0 48%;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: 16px;
  padding: 1.5rem;
  margin-top: 80px;
  height: fit-content;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
}

.estado-info-card h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: #4ade80;
  margin-bottom: 0.5rem;
}

.estado-info-card .estado-sigla {
  font-size: 1rem;
  color: #94a3b8;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid rgba(74, 222, 128, 0.3);
}

.estado-info-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.posto-item {
  background: rgba(255, 255, 255, 0.05);
  border-left: 3px solid #4ade80;
  padding: 0.75rem 1rem;
  margin-bottom: 0.75rem;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.posto-item:hover {
  background: rgba(74, 222, 128, 0.15);
  border-left-width: 4px;
  transform: translateX(5px);
}

.posto-item .posto-nome {
  font-size: 1rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.35rem;
}

.posto-item .posto-cidade {
  font-size: 0.875rem;
  color: #4ade80;
  font-weight: 500;
}

.estado-info-placeholder {
  text-align: center;
  color: #64748b;
  padding: 3rem 1rem;
}

.estado-info-placeholder i {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.5;
}

/* Responsividade do mapa */
@media (max-width: 768px) {
  .brasil-map-container {
    flex-direction: column;
    gap: 1.5rem;
    padding: 1rem;
  }
  
  .brasil-map-wrapper,
  .estado-info-card {
    flex: 1 1 100%;
    max-width: 100%;
  }
  
  .estado-info-card {
    min-height: 300px;
    margin-top: 1rem; /* Reduzido de 80px para mobile */
    padding: 1.25rem;
  }
  
  .estado-info-card h3 {
    font-size: 1.5rem;
  }
  
  .estado-info-card h4 {
    font-size: 0.95rem;
  }
}

/* ==================== ESTILOS MOVIDOS DO JAVASCRIPT ==================== */

/* Animações para notificações */
@keyframes slideInRight {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOutRight {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Estilos das notificações */
.notification-content {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
}

.notification-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.25rem;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.notification-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* Estilos do menu mobile */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--navbar-height, 64px);
  left: 0;
  right: 0;
  background: rgba(3, 7, 18, 0.98);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1rem;
  z-index: 999;
  max-height: calc(100vh - var(--navbar-height, 64px));
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
  animation: fadeIn 0.3s ease;
}

.mobile-menu a {
  display: block;
  padding: 0.75rem 1rem;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.mobile-menu a:hover {
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
}

@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(-10px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: flex;
  }
  
  .desktop-nav {
    display: none;
  }
}

/* ==================== FIXES PARA RESPONSIVIDADE MOBILE ==================== */
/* Ajustes mínimos que afetam somente telas pequenas (mobile). Não alteram desktop. */
@media (max-width: 768px) {
  /* define altura do navbar usada em cálculos para o hero */
  :root {
    --navbar-height: 64px;
  }

  /* evita que o conteúdo fique escondido atrás do navbar fixo */
  body {
    padding-top: var(--navbar-height);
  }

  /* TIPOGRAFIA GLOBAL MOBILE - Reduz fontes para encurtar páginas */
  h1 { font-size: 2rem !important; line-height: 1.2; }
  h2 { font-size: 1.75rem !important; line-height: 1.25; }
  h3 { font-size: 1.5rem !important; line-height: 1.3; }
  h4 { font-size: 1.25rem !important; line-height: 1.35; }
  h5 { font-size: 1.125rem !important; line-height: 1.4; }
  h6 { font-size: 1rem !important; line-height: 1.45; }
  p { font-size: 0.9375rem !important; line-height: 1.6; }
  li { font-size: 0.9375rem !important; line-height: 1.5; }
  span:not(.text-gradient):not([class*="text-"]) { font-size: 0.9375rem !important; }

  /* TIMELINE - Reduz fontes para aproximar imagem do texto */
  .timeline-content-container h3 {
    font-size: 1.375rem !important;
    margin-bottom: 1rem !important;
  }
  
  .timeline-content-container p {
    font-size: 0.875rem !important;
    line-height: 1.5 !important;
  }
  
  .timeline-content-container .flex {
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
  
  .timeline-content-container img {
    height: 250px !important;
    max-width: 100% !important;
  }

  .navbar {
    height: var(--navbar-height);
    display: flex;
    align-items: center;
    padding-left: 1rem; /* mantém espaçamento no mobile */
    padding-right: 1rem;
  }

  /* reduz a altura mínima do hero para não ultrapassar a viewport quando o navbar é fixo */
  .hero-section {
    min-height: calc(100vh - var(--navbar-height));
    padding: 1.5rem 1rem;
    align-items: flex-start; /* garante que o conteúdo comece abaixo do hero image */
  }

  /* limita a imagem de fundo do hero para não cobrir conteúdo importante */
  .hero-section > img,
  .hero-section img[alt*="Fundo Hero"],
  .hero-section img[src*="fundo_hero_index"] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    max-height: calc(100vh - var(--navbar-height));
    object-fit: cover;
    opacity: 0.10;
    pointer-events: none;
  }

  /* evita que grandes elementos 'floating' quebrassem o layout no mobile */
  .floating {
    animation: none !important;
  }

  .floating .w-80, .floating > .w-80 {
    width: 200px !important;
    height: 200px !important;
  }

  /* reduz espaçamento vertical das seções para caber melhor no mobile */
  .section-padding {
    padding: 2.5rem 0;
  }

  /* padding lateral menor em containers no mobile */
  .container-custom {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  /* REDUÇÕES GLOBAIS DE ESPAÇAMENTO VERTICAL */
  /* Reduz margens superiores e inferiores de títulos e textos */
  h1, h2, h3 { margin-top: 0.75rem !important; margin-bottom: 0.75rem !important; }
  h4, h5, h6 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  p { margin-bottom: 0.75rem !important; }
  
  /* Reduz gaps em grids e flexboxes */
  .grid { gap: 1.25rem !important; }

  /* ==================== RESPONSIVIDADE PÁGINA DE SERVIÇOS ==================== */
  /* Centralizar conteúdo dos cards de serviços em mobile */
  #servicos-section .grid.md\:grid-cols-2 {
    grid-template-columns: 1fr !important;
    gap: 2rem !important;
  }

  #servicos-section .grid.md\:grid-cols-2 > div {
    text-align: center !important;
  }

  #servicos-section .flex.items-center.gap-3,
  #servicos-section .flex.items-center.gap-4 {
    justify-content: center !important;
  }

  #servicos-section .flex.items-start.gap-3 {
    justify-content: center !important;
    text-align: left !important;
  }

  #servicos-section ul.space-y-3,
  #servicos-section ul.space-y-4 {
    display: inline-block !important;
    text-align: left !important;
  }

  /* Remove order classes para que imagem sempre apareça primeiro em mobile */
  #servicos-section .order-1,
  #servicos-section .order-2,
  #servicos-section .md\:order-1,
  #servicos-section .md\:order-2 {
    order: 0 !important;
  }

  /* Centraliza botões */
  #servicos-section .btn-gradient,
  #servicos-section .btn-outline {
    display: inline-block !important;
    margin: 0 auto !important;
  }

  /* Centraliza imagens */
  #servicos-section img.rounded-lg {
    margin: 0 auto !important;
    max-width: 100% !important;
  }
  .flex { gap: 1rem !important; }
  
  /* Reduz padding de cards e componentes */
  .stat-card, .service-card, .partner-card {
    padding: 1.25rem !important;
    margin-bottom: 1rem !important;
  }
  
  /* Reduz espaçamento entre seções */
  section { margin-bottom: 1.5rem !important; }
  
  /* Reduz padding interno de seções específicas */
  .about-section,
  .benefits-section,
  .partners-section,
  .comercial-section,
  .video-section,
  .cta-section {
    padding: 2rem 1rem !important;
  }

  /* ajusta logo e espaçamentos do header só no mobile */
  .navbar img {
    max-width: 56px;
    max-height: 56px;
    margin-top: 0;
    margin-bottom: 0;
  }

  .desktop-nav {
    gap: 0.5rem;
  }

  .nav-link {
    padding: 0.35rem 0.6rem;
    font-size: 0.95rem;
  }

  /* mobile menu deve abrir logo abaixo do navbar fixo */
  .mobile-menu {
    top: var(--navbar-height);
  }

  /* evita que grids com altura fixa escondam conteúdo */
  .grid {
    grid-auto-rows: auto;
  }

  /* cartões menores no mobile para evitar overflow */
  .stat-card,
  .service-card,
  .partner-card {
    padding: 1rem;
    border-radius: 12px;
  }

  /* Centralização de botões no mobile */
  .btn-gradient,
  .btn-outline {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    width: fit-content;
    max-width: 100%;
    display: block;
  }
  
  /* Hero buttons: centralizar e compactar */
  .hero-section .flex.flex-col {
    flex-direction: column !important;
    gap: 1rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  .hero-section .flex.flex-col .btn-gradient,
  .hero-section .flex.flex-col .btn-outline {
    width: 100%;
    max-width: 100%;
    padding: 0.9rem 1.5rem;
    font-size: 0.9rem;
    margin: 0;
  }

  /* footer: center content on mobile (<=768px) */
  .footer .container-custom .grid {
    display: block;
    text-align: center;
  }

  .footer .container-custom .grid > div {
    max-width: 560px;
    margin: 0 auto 1rem;
  }

  .footer .container-custom .grid .flex {
    justify-content: center;
  }

  .footer .container-custom h3,
  .footer .container-custom p,
  .footer .container-custom a,
  .footer .container-custom ul {
    text-align: center;
  }
}

@media (max-width: 420px) {
  :root { --navbar-height: 56px; }
  body { padding-top: var(--navbar-height); }

  /* TIPOGRAFIA PARA TELAS MUITO PEQUENAS */
  h1 { font-size: 1.75rem !important; line-height: 1.2; }
  h2 { font-size: 1.5rem !important; line-height: 1.25; }
  h3 { font-size: 1.375rem !important; line-height: 1.3; }
  h4 { font-size: 1.125rem !important; line-height: 1.35; }
  h5 { font-size: 1rem !important; line-height: 1.4; }
  h6 { font-size: 0.875rem !important; line-height: 1.45; }
  p { font-size: 0.875rem !important; line-height: 1.6; }
  li { font-size: 0.875rem !important; line-height: 1.5; }
  span:not(.text-gradient):not([class*="text-"]) { font-size: 0.875rem !important; }

  /* TIMELINE - Reduz ainda mais para telas muito pequenas */
  .timeline-content-container h3 {
    font-size: 1.25rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  .timeline-content-container p {
    font-size: 0.8125rem !important;
    line-height: 1.45 !important;
  }
  
  .timeline-content-container img {
    height: 200px !important;
  }

  /* slightly larger logo on very small screens */
  .navbar img { max-width: 56px; max-height: 56px; margin-top: 0; margin-bottom: 0; }
  .navbar { padding-top: 0.2rem; padding-bottom: 0.2rem; }

  .hero-section { padding: 1rem 0.75rem; }
  .nav-link { font-size: 0.9rem; }
  .btn-gradient, .btn-outline { padding: 0.75rem 1.25rem; font-size: 0.875rem; }
  .section-padding { padding: 1.8rem 0; }

  /* REDUÇÕES AINDA MAIORES DE ESPAÇAMENTO PARA TELAS MUITO PEQUENAS */
  h1, h2, h3 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; }
  h4, h5, h6 { margin-top: 0.375rem !important; margin-bottom: 0.375rem !important; }
  p { margin-bottom: 0.5rem !important; }
  
  .grid { gap: 1rem !important; }
  .flex { gap: 0.75rem !important; }
  
  .stat-card, .service-card, .partner-card {
    padding: 1rem !important;
    margin-bottom: 0.75rem !important;
  }
  
  section { margin-bottom: 1rem !important; }
  
  .about-section,
  .benefits-section,
  .partners-section,
  .comercial-section,
  .video-section,
  .cta-section {
    padding: 1.5rem 0.75rem !important;
  }

  /* ensure hero action buttons remain centered and are compact */
  .hero-section .flex.flex-col {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100%;
  }

  .hero-section .flex.flex-col .btn-gradient,
  .hero-section .flex.flex-col .btn-outline {
    padding: 0.8rem 1.2rem;
    font-size: 0.875rem;
    display: block;
    width: 100%;
    margin: 0;
  }

  /* footer: stack and center content on very small screens */
  .footer .container-custom .grid {
    display: block;
    text-align: center;
  }

  .footer .container-custom .grid > div {
    max-width: 520px;
    margin: 0 auto 1rem;
  }

  .footer .container-custom .grid .flex {
    justify-content: center;
  }

  .footer .container-custom h3,
  .footer .container-custom p,
  .footer .container-custom a,
  .footer .container-custom ul {
    text-align: center;
  }
}

/* ==================== CARROSSEL ==================== */
.services-carousel-container,
#carousel-container,
#products-carousel-container {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 auto;
}

.services-carousel {
  display: flex;
  gap: 2rem;
  width: calc(400px * 12); /* 6 cards originais + 6 duplicadas */
  padding: 0 1rem;
  transition: transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  user-select: none;
  will-change: transform;
}

.carousel-item {
  flex: 0 0 350px;
  min-width: 350px;
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  transform-origin: center;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Estados de visibilidade com fade */
.carousel-item--visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity 0.8s ease, visibility 0.8s ease, transform 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Classes de profundidade para efeito 3D melhorado */
.carousel-item--active {
  transform: scale(1.05) translateY(0) rotateY(0deg);
  opacity: 1;
  z-index: 10;
  filter: brightness(1.1) saturate(1.1);
  box-shadow: 
    0 25px 50px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(37, 99, 235, 0.2);
}

.carousel-item--middle {
  transform: scale(0.95) translateY(-5px) rotateY(-2deg);
  opacity: 0.9;
  z-index: 5;
  filter: brightness(0.95) saturate(0.9);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.carousel-item--bottom {
  transform: scale(0.9) translateY(-10px) rotateY(-4deg);
  opacity: 0.7;
  z-index: 2;
  filter: brightness(0.85) saturate(0.8);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.carousel-item--hidden {
  transform: scale(0.85) translateY(-15px) rotateY(-6deg);
  opacity: 0;
  z-index: 1;
  visibility: hidden;
  pointer-events: none;
  filter: brightness(0.7) saturate(0.7);
}

/* Hover effects melhorados */
.carousel-item--visible:hover {
  transform: translateY(-8px) scale(1.02);
  z-index: 15;
  transition: all 0.3s ease;
}

.carousel-item--active:hover {
  transform: scale(1.08) translateY(-8px) rotateY(0deg);
  filter: brightness(1.15) saturate(1.2);
  box-shadow: 
    0 35px 70px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 99, 235, 0.3);
}

.carousel-item--middle:hover {
  transform: scale(0.98) translateY(-12px) rotateY(-1deg);
  opacity: 1;
  filter: brightness(1) saturate(1);
}

.carousel-item--bottom:hover {
  transform: scale(0.92) translateY(-18px) rotateY(-3deg);
  opacity: 0.85;
  filter: brightness(0.9) saturate(0.85);
}

/* Efeitos visuais nos cards do carrossel melhorados */
.carousel-item .service-card {
  backdrop-filter: blur(25px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: all 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, 
    rgba(255, 255, 255, 0.1) 0%, 
    rgba(255, 255, 255, 0.05) 50%, 
    rgba(255, 255, 255, 0.02) 100%);
}

.carousel-item .service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent, 
    rgba(37, 99, 235, 0.1), 
    transparent);
  transition: left 0.8s ease;
  pointer-events: none;
}

.carousel-item--active .service-card::before {
  left: 100%;
}

.carousel-item .service-card:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 25px 70px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(37, 99, 235, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(30px);
  background: linear-gradient(135deg, 
    rgba(37, 99, 235, 0.15) 0%, 
    rgba(147, 51, 234, 0.1) 50%, 
    rgba(255, 255, 255, 0.05) 100%);
  transform: translateZ(10px);
}

/* Animação de fade para os elementos internos dos cards */
.carousel-item .service-card h3 {
  transition: all 0.6s ease;
  transform: translateY(0);
  opacity: 1;
}

.carousel-item--hidden .service-card h3 {
  transform: translateY(10px);
  opacity: 0;
}

.carousel-item .service-card p,
.carousel-item .service-card ul {
  transition: all 0.8s ease 0.1s;
  transform: translateY(0);
  opacity: 1;
}

.carousel-item--hidden .service-card p,
.carousel-item--hidden .service-card ul {
  transform: translateY(15px);
  opacity: 0;
}

.carousel-item .service-card .floating {
  transition: all 0.8s ease 0.2s;
  transform: translateY(0);
  opacity: 1;
}

.carousel-item--hidden .service-card .floating {
  transform: translateY(-10px);
  opacity: 0;
}

/* Visual cue para arrastar */
.services-carousel-container::after {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  font-weight: 500;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 20;
  background: rgba(0, 0, 0, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.services-carousel-container:hover::after {
  opacity: 1;
}

/* Responsividade do carrossel */
@media (max-width: 768px) {
  .services-carousel {
    width: calc(280px * 12);
    gap: 1.5rem;
  }

  .carousel-item {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .services-carousel-container::after {
    font-size: 0.8rem;
    padding: 6px 12px;
  }
}

@media (max-width: 480px) {
  .services-carousel {
    width: calc(250px * 12);
    gap: 1rem;
  }

  .carousel-item {
    flex: 0 0 250px;
    min-width: 250px;
  }

  .services-carousel-container::after {
    display: none; /* Esconde dica em telas muito pequenas */
  }
}

/* Efeitos especiais para os cases de sucesso */

#cases-sucesso .service-card {
  position: relative;
  overflow: hidden;
  min-height: 420px;
  padding: 0 !important;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  border-radius: 1rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}

/* Scroll horizontal para cases no mobile */
@media (max-width: 768px) {
  #cases-carousel-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(37, 99, 235, 0.5) rgba(255, 255, 255, 0.1);
  }
  
  #cases-carousel-container::-webkit-scrollbar {
    height: 8px;
  }
  
  #cases-carousel-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
  }
  
  #cases-carousel-container::-webkit-scrollbar-thumb {
    background: rgba(37, 99, 235, 0.5);
    border-radius: 4px;
  }
  
  #cases-carousel-container::-webkit-scrollbar-thumb:hover {
    background: rgba(37, 99, 235, 0.7);
  }
  
  #casesCarousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    width: max-content;
  }
  
  #casesCarousel .cases-slide {
    flex: 0 0 85vw !important;
    max-width: 85vw !important;
    scroll-snap-align: start;
    padding: 0 0.5rem;
  }
  
  #cases-sucesso .service-card {
    min-height: 360px;
  }
}

#cases-sucesso .service-card .absolute.inset-0 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 1rem;
  transition: transform 0.4s cubic-bezier(.4,0,.2,1);
}

#cases-sucesso .service-card:hover .absolute.inset-0 img {
  transform: scale(1.06);
  filter: brightness(0.8);
}

#cases-sucesso .service-card .absolute.inset-0 {
  z-index: 1;
  border-radius: 1rem;
  overflow: hidden;
}

#cases-sucesso .service-card .bg-gradient-to-t {
  position: absolute;
  inset: 0;
  border-radius: 1rem;
  pointer-events: none;
}

#cases-sucesso .service-card .relative.z-10 {
  position: relative;
  z-index: 2;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
}

#cases-sucesso .service-card h3,
#cases-sucesso .service-card p,
#cases-sucesso .service-card ul,
#cases-sucesso .service-card h4 {
  color: #fff;
  text-shadow: 0 2px 12px rgba(0,0,0,0.7);
}

#cases-sucesso .service-card .w-16.h-1 {
  margin-bottom: 1rem;
}

#cases-sucesso .service-card .bg-gray-800\/70 {
  background: rgba(31,41,55,0.7);
  box-shadow: 0 4px 24px rgba(0,0,0,0.25);
}

@media (max-width: 1024px) {
  #cases-sucesso .service-card {
    min-height: 340px;
  }
  #cases-sucesso .service-card .relative.z-10 {
    padding: 1.2rem;
  }
}

@media (max-width: 768px) {
  #cases-sucesso .service-card {
    min-height: 260px;
  }
  #cases-sucesso .service-card .relative.z-10 {
    padding: 1rem;
  }
}

/* Animação para as métricas de resultados */
#cases-sucesso .service-card ul li {
  opacity: 0;
  transform: translateX(-20px);
  animation: slideInLeft 0.6s ease forwards;
}

#cases-sucesso .service-card ul li:nth-child(1) {
  animation-delay: 0.1s;
}

#cases-sucesso .service-card ul li:nth-child(2) {
  animation-delay: 0.2s;
}

#cases-sucesso .service-card ul li:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes slideInLeft {
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Hover effect nos resultados */
#cases-sucesso .service-card ul li {
  transition: transform 0.2s ease, color 0.2s ease;
  border-radius: 6px;
  padding: 8px 12px;
  margin: -8px -12px;
}

#cases-sucesso .service-card ul li:hover {
  transform: translateX(8px);
  background: rgba(255, 255, 255, 0.05);
}

/* Estilo da linha divisória abaixo do nome do cliente */
#cases-sucesso .service-card .w-16.h-1 {
  transition: width 0.3s ease;
}

#cases-sucesso .service-card:hover .w-16.h-1 {
  width: 3rem; /* w-12 equivalente */
}

/* Responsividade específica para cases */
@media (max-width: 768px) {
  #cases-sucesso .service-card {
    padding: 1.5rem;
  }
  
  #cases-sucesso .service-card img {
    width: 80px;
    height: 80px;
  }
  
  #cases-sucesso .service-card h3 {
    font-size: 1.5rem;
  }
}

/* ==================== DOTS DO CARROSSEL ==================== */
/* Estilos para os indicadores (dots) de navegação */
.carousel-dots,
#carousel-dots,
#products-carousel-dots,
#videos-carousel-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2rem;
}

/* Botões dots individuais */
.carousel-dots button,
#carousel-dots button,
#products-carousel-dots button,
#videos-carousel-dots button {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background-color: #4b5563;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0;
}

.carousel-dots button:hover,
#carousel-dots button:hover,
#products-carousel-dots button:hover,
#videos-carousel-dots button:hover {
  background-color: #60a5fa;
  transform: scale(1.2);
}

/* Dot ativo */
.carousel-dots button.bg-blue-500,
#carousel-dots button.bg-blue-500,
#products-carousel-dots button.bg-blue-500,
#videos-carousel-dots button.bg-blue-500 {
  background-color: #3b82f6 !important;
  transform: scale(1.3);
}

/* ==================== MELHORIAS NO CARROSSEL ==================== */

/* Controles de navegação do carrossel */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 100;
  backdrop-filter: blur(15px);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  opacity: 0;
  pointer-events: auto;
}

.carousel-nav-btn:hover {
  background: rgba(37, 99, 235, 0.8);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 30px rgba(37, 99, 235, 0.4);
}

.carousel-nav-btn:active {
  transform: translateY(-50%) scale(0.95);
}

.carousel-nav-btn i {
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.carousel-nav-btn:hover i {
  transform: scale(1.1);
}

/* Container do carrossel com hover para mostrar controles */
.services-carousel-container:hover .carousel-nav-btn {
  opacity: 1;
}

/* Efeitos de foco nos cards do carrossel */
.carousel-item:focus-within .service-card {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.4),
    0 0 0 2px rgba(37, 99, 235, 0.3);
}

/* Efeitos de profundidade nos cards */
.carousel-item .service-card {
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.carousel-item .service-card > * {
  transform: translateZ(0);
}

/* Efeito parallax para os cards */
.carousel-item {
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform, opacity;
}

.carousel-item .service-card {
  will-change: transform, opacity, box-shadow;
}

/* Responsividade aprimorada do carrossel */
@media (max-width: 1024px) {
  .services-carousel {
    width: calc(320px * 12);
    gap: 1.5rem;
  }

  .carousel-item {
    flex: 0 0 320px;
    min-width: 320px;
  }
}

@media (max-width: 768px) {
  .services-carousel {
    width: calc(280px * 12);
    gap: 1.2rem;
  }

  .carousel-item {
    flex: 0 0 280px;
    min-width: 280px;
  }

  .carousel-nav-btn {
    width: 40px;
    height: 40px;
  }

  .carousel-nav-btn i {
    font-size: 1rem;
  }
}

@media (max-width: 640px) {
  .services-carousel {
    width: calc(260px * 12);
    gap: 1rem;
  }

  .carousel-item {
    flex: 0 0 260px;
    min-width: 260px;
  }

  .carousel-nav-btn {
    width: 35px;
    height: 35px;
  }

  .carousel-nav-btn i {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .services-carousel {
    width: calc(240px * 12);
    gap: 0.8rem;
  }

  .carousel-item {
    flex: 0 0 240px;
    min-width: 240px;
  }

  .carousel-nav-btn {
    display: none; /* Esconde controles em telas muito pequenas */
  }
}

/* Estados em expansão styling */
.expansion-content {
  background: #FBB343;
  color: #B30F2A;
}

.expansion-content h3,
.expansion-content h4,
.expansion-content p {
  color: #B30F2A !important;
}

.expansion-content .bg-yellow-400 {
  background-color: #B30F2A !important;
  color: #FBB343 !important;
}

/* Animação de loading para o carrossel */
.services-carousel-container {
  position: relative;
}

/* Efeitos de transição suave para o reset do carrossel */
.services-carousel {
  transition: transform 0.5s ease;
}

.services-carousel.no-transition {
  transition: none;
}

/* Efeitos de profundidade e parallax nos cards */
.carousel-item {
  position: relative;
}

/* Animação de entrada sequencial */
.carousel-item:nth-child(1) { animation-delay: 0s; }
.carousel-item:nth-child(2) { animation-delay: 0.1s; }
.carousel-item:nth-child(3) { animation-delay: 0.2s; }
.carousel-item:nth-child(4) { animation-delay: 0.3s; }
.carousel-item:nth-child(5) { animation-delay: 0.4s; }
.carousel-item:nth-child(6) { animation-delay: 0.5s; }

/* ==================== CARROSSEL COM IMAGENS DE FUNDO ==================== */
/* Estilos para o carrossel de serviços com imagens de fundo */
#carousel-cards .relative.overflow-hidden {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

#carousel-cards .relative.overflow-hidden:hover {
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
}

/* Garantir que as imagens cubram todo o card */
#carousel-cards img {
  object-position: center;
}

/* Efeito de hover no gradiente */
#carousel-cards .group:hover .bg-gradient-to-t {
  background: linear-gradient(to top, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.75) 50%, rgba(0,0,0,0.1) 100%);
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  #carousel-cards .relative.overflow-hidden {
    height: 450px !important;
  }
  
  #carousel-cards .absolute.bottom-0 {
    padding: 1.5rem !important;
  }
  
  #carousel-cards h3 {
    font-size: 1.25rem !important;
  }
  
  #carousel-cards p {
    font-size: 0.875rem !important;
  }
}

/* ==================== PÁGINAS DE PRODUTOS ==================== */
/* Carrossel de Produto (Vídeo + Imagens) */
.product-carousel-container {
  position: relative;
  width: 100%;
  max-width: 800px;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.product-carousel {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.carousel-slide {
  min-width: 100%;
  position: relative;
  aspect-ratio: 16/9;
  background: #000;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-slide iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Botões de navegação do carrossel */
.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: white;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
}

.carousel-control:hover {
  background: rgba(37, 99, 235, 0.9);
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

.carousel-control.prev {
  left: 15px;
}

.carousel-control.next {
  right: 15px;
}

/* Indicadores do carrossel */
.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-indicator:hover {
  background: rgba(255, 255, 255, 0.8);
  transform: scale(1.2);
}

.carousel-indicator.active {
  background: #fff;
  width: 30px;
  border-radius: 5px;
}

/* Botão "Tenho Interesse" */
.cta-button-interest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(135deg, #059669, #10b981);
  color: white;
  padding: 1.25rem 2.5rem;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1.125rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(5, 150, 105, 0.3);
  border: 2px solid rgba(255, 255, 255, 0.1);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 2rem;
}

@media (max-width: 768px) {
  .cta-button-interest {
    margin-left: 0;
    margin-right: 0;
    width: 100%;
    max-width: 100%;
  }
}

.cta-button-interest:hover {
  background: linear-gradient(135deg, #047857, #059669);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(5, 150, 105, 0.5);
}

.cta-button-interest i {
  font-size: 1.5rem;
  animation: pulse 2s infinite;
}

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

/* Seção de Descrição do Produto */
.product-description-section {
  background: rgba(31, 41, 55, 0.6);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 3rem;
  margin: 3rem 0;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.product-description-section h2 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.product-description-section p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #d1d5db;
  margin-bottom: 1rem;
}

.product-description-section ul {
  list-style: none;
  padding: 0;
  margin-top: 1.5rem;
}

.product-description-section ul li {
  padding: 0.75rem 0;
  padding-left: 2rem;
  position: relative;
  color: #e5e7eb;
  font-size: 1.05rem;
}

.product-description-section ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #10b981;
  font-weight: bold;
  font-size: 1.3rem;
}

/* Cards de Depoimentos */
.testimonial-card {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(147, 51, 234, 0.1));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 20px;
  padding: 2rem;
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: -20px;
  left: 20px;
  font-size: 120px;
  color: rgba(37, 99, 235, 0.1);
  font-family: Georgia, serif;
  line-height: 1;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
  border-color: rgba(37, 99, 235, 0.4);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.15), rgba(147, 51, 234, 0.15));
}

.testimonial-content {
  position: relative;
  z-index: 1;
}

.testimonial-text {
  font-size: 1.05rem;
  line-height: 1.7;
  color: #e5e7eb;
  margin-bottom: 1.5rem;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1rem;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.testimonial-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  font-weight: bold;
  flex-shrink: 0;
}

.testimonial-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: #f9fafb;
  margin-bottom: 0.25rem;
}

.testimonial-info p {
  font-size: 0.9rem;
  color: #9ca3af;
}

.testimonial-rating {
  display: flex;
  gap: 0.25rem;
  margin-top: 0.5rem;
}

.testimonial-rating i {
  color: #fbbf24;
  font-size: 0.9rem;
}

/* Grid de Produtos */
.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: start;
}

@media (min-width: 1024px) {
  .product-grid {
    grid-template-columns: 1.2fr 0.8fr;
  }
}

/* Seção Hero do Produto */
.product-hero {
  padding-top: 8rem;
  padding-bottom: 2rem;
}

/* Responsividade das Páginas de Produtos */
@media (max-width: 1024px) {
  .product-grid {
    grid-template-columns: 1fr;
  }
  
  .cta-button-interest {
    width: 100%;
    margin-top: 2rem;
  }
  
  .product-hero {
    padding-top: 6rem;
  }
}

@media (max-width: 768px) {
  .product-hero {
    padding-top: 5rem;
    padding-bottom: 1.5rem;
  }
  
  .product-carousel-container {
    max-width: 100%;
    border-radius: 12px;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-control.prev {
    left: 10px;
  }
  
  .carousel-control.next {
    right: 10px;
  }
  
  .cta-button-interest {
    padding: 1rem 2rem;
    font-size: 1rem;
  }
  
  .product-description-section {
    padding: 2rem;
    margin: 2rem 0;
  }
  
  .product-description-section h2 {
    font-size: 2rem;
  }
  
  .product-description-section p,
  .product-description-section ul li {
    font-size: 1rem;
  }
  
  /* Otimização específica de listas de produtos */
  .product-description-section ul {
    margin-top: 1rem;
    padding: 0;
  }
  
  .product-description-section ul li {
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    font-size: 0.9375rem !important;
    line-height: 1.5;
  }
  
  .product-description-section ul li::before {
    font-size: 1.1rem;
  }
  
  .testimonial-card {
    padding: 1.5rem;
  }
  
  .testimonial-text {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .product-hero {
    padding-top: 4.5rem;
    padding-bottom: 1rem;
  }
  
  .carousel-control {
    width: 35px;
    height: 35px;
  }
  
  .cta-button-interest {
    padding: 0.875rem 1.5rem;
    font-size: 0.95rem;
    gap: 0.5rem;
  }
  
  .product-description-section {
    padding: 1.5rem;
    border-radius: 16px;
  }
  
  .product-description-section h2 {
    font-size: 1.75rem;
  }
  
  /* Otimização específica de listas para telas muito pequenas */
  .product-description-section ul {
    margin-top: 0.75rem;
  }
  
  .product-description-section ul li {
    padding: 0.4rem 0;
    padding-left: 1.25rem;
    font-size: 0.875rem !important;
    line-height: 1.4;
  }
  
  .product-description-section ul li::before {
    font-size: 1rem;
  }
  
  .testimonial-card {
    padding: 1.25rem;
  }
  
  .testimonial-card::before {
    font-size: 80px;
    top: -10px;
    left: 10px;
  }
}

/* ==================== CORREÇÕES ADICIONAIS MOBILE ==================== */

/* Correção da centralização do carrossel de serviços */
#carousel-container {
  margin-left: auto;
  margin-right: auto;
  padding-left: 0;
  padding-right: 0;
}

#carousel-cards {
  padding-left: 0;
  margin-left: 0;
}

/* Correção dos cards cortando à direita */
@media (max-width: 768px) {
  #carousel-container .overflow-hidden {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #carousel-cards > div {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Cases de sucesso - scroll horizontal */
  #cases-carousel-container .overflow-hidden {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  .cases-slide {
    scroll-snap-align: center;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  #casesCarousel {
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(74, 222, 128, 0.5) transparent;
  }
  
  #casesCarousel::-webkit-scrollbar {
    height: 4px;
  }
  
  #casesCarousel::-webkit-scrollbar-track {
    background: transparent;
  }
  
  #casesCarousel::-webkit-scrollbar-thumb {
    background: rgba(74, 222, 128, 0.5);
    border-radius: 4px;
  }
  
  /* Hero sections - reduzir gap e aumentar fonte do texto */
  .hero-section h1 {
    font-size: 2.25rem !important;
    margin-bottom: 1.5rem !important;
  }
  
  .hero-section p {
    font-size: 1.125rem !important;
    margin-bottom: 1.5rem !important;
    line-height: 1.7;
  }
  
  .hero-section {
    padding-bottom: 2rem !important;
  }
  
  /* Produtos - carousel cards cortando à direita */
  #products-section .product-grid {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
  #products-section .product-card {
    margin-left: auto;
    margin-right: auto;
  }
  
  /* Downloads - carousel de vídeos e manuais */
  #videos-carousel-prev,
  #videos-carousel-next,
  #manuais-carousel-prev,
  #manuais-carousel-next,
  #products-carousel-prev,
  #products-carousel-next,
  #carousel-prev,
  #carousel-next {
    display: none !important;
  }
  
  #videos-carousel-container .overflow-hidden,
  #manuais-carousel-container .overflow-hidden {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  
  #videos-carousel-cards > div,
  #manuais-carousel-cards > div {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  
  /* Sobre - cards de regiões */
  .estado-info-card {
    margin-left: 0.5rem !important;
    margin-right: 0.5rem !important;
  }
  
  /* Sobre - Trajetória: centralizar conteúdo */
  .timeline-content-container {
    text-align: center !important;
    align-items: center !important;
    justify-content: center !important;
  }
  
  .timeline-content-container h3,
  .timeline-content-container p {
    text-align: center !important;
  }
  
  .timeline-content-container img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  
  /* Sobre - Setores: reduzir fonte e ícone */
  .service-card h3 {
    font-size: 1.125rem !important;
  }
  
  .service-card i.fa-4x {
    font-size: 2.5rem !important;
  }
  
  /* Páginas de Produtos - mover features para baixo */
  .product-hero .mt-8 {
    margin-top: 3rem !important;
  }
}

/* ==================== CARROSSÉIS - CENTRALIZAÇÃO ==================== */
/* Garantir que todos os carrosséis centralizem os cards corretamente */
#products-carousel-cards,
#casesCarousel,
#manuais-carousel-cards,
#videos-carousel-cards,
#carousel-cards {
  display: flex;
  transition: transform 0.5s ease-in-out;
  align-items: stretch;
}

/* Garantir que os cards mantenham o espaçamento correto */
#products-carousel-cards > div,
#casesCarousel > div,
#manuais-carousel-cards > div,
#videos-carousel-cards > div,
#carousel-cards > div {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}

/* Ajustes específicos para mobile */
@media (max-width: 767px) {
  #products-carousel-cards > div,
  #casesCarousel > div,
  #manuais-carousel-cards > div,
  #videos-carousel-cards > div,
  #carousel-cards > div {
    width: 100% !important;
    min-width: 100% !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #products-carousel-cards > div,
  #casesCarousel > div,
  #manuais-carousel-cards > div,
  #videos-carousel-cards > div,
  #carousel-cards > div {
    width: 50% !important;
    min-width: 50% !important;
  }
}

@media (min-width: 1024px) {
  #products-carousel-cards > div,
  #casesCarousel > div,
  #manuais-carousel-cards > div,
  #videos-carousel-cards > div,
  #carousel-cards > div {
    width: 33.333333% !important;
    min-width: 33.333333% !important;
  }
}