/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Corpo */
body {
  font-family: 'Segoe UI', Tahoma, sans-serif;
  background: linear-gradient(135deg, #fff8d1, #FFD700); /* degrade suave */
  color: #333;
  min-height: 100vh;
}

/* Cabeçalho fixo simples */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #FFD700;
  padding: 10px 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
  position: sticky;
  top: 0;
  z-index: 100; /* Garante que o cabeçalho fique por cima */
}

.logo {
  font-weight: bold;
  font-size: 1.3rem;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

header nav a:hover {
  text-decoration: underline;
}

/* Seção destaque */
.cartao-destaque {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 100px 40px;
  gap: 60px;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: 0 auto;
}

/* Cartão flutuante */
.cartao-flutuante {
  position: relative;
  perspective: 1000px; /* para efeito 3D */
}

.cartao-flutuante img {
  max-width: 400px;
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
  transform: rotateY(-15deg) rotateX(5deg);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.cartao-flutuante img:hover {
  transform: rotateY(0deg) rotateX(0deg) scale(1.05);
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

/* Benefícios elegantes */
.cartao-beneficios {
  max-width: 450px;
}

.cartao-beneficios h1 {
  font-size: 2.5rem;
  margin-bottom: 10px;
}

.cartao-beneficios p {
  font-size: 1.2rem;
  margin-bottom: 25px;
  color: #444;
}

/* Novo contêiner principal */
.carousel-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 30px;
  padding: 0 45px; /* Espaço para os botões não ficarem colados */
}

/* Contêiner do texto com overflow */
.beneficios-carousel {
  overflow: hidden;
  height: 60px;
  display: flex;
  align-items: center;
  width: 100%;
}

.beneficios-slider {
  list-style: none;
  position: relative;
  width: 100%;
  padding: 0;
}

.beneficio-item {
  font-size: 1.1rem;
  display: none;
  align-items: center;
  justify-content: center; /* Centraliza o texto */
  gap: 8px;
  animation: fadeIn 0.5s;
  text-align: center; /* Garante alinhamento central */
  height: 100%;
}

.beneficio-item.ativo {
  display: flex;
}

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

/* Estilo e posicionamento dos botões */
#btn-anterior, #btn-proximo {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #333;
  color: #FFD700;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  font-size: 1.2rem;
  cursor: pointer;
  transition: background 0.2s;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  z-index: 10;
}

#btn-anterior {
  left: 0;
}

#btn-proximo {
  right: 0;
}

#btn-anterior:hover, #btn-proximo:hover {
  background: #555;
}


/* Botão de ação */
.btn-principal {
  padding: 15px 30px;
  background: #333;
  color: #FFD700;
  font-size: 1.1rem;
  font-weight: bold;
  border: none;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
  transition: background 0.2s, transform 0.2s;
  display: block;
  margin: 20px auto 0 auto; /* Adicionei um margin-top para desgrudar do carrossel */

  /* Estilos específicos para a tag <a> */
  text-decoration: none; /* Remove o sublinhado do link */
  text-align: center; /* Centraliza o texto caso o display block mude o alinhamento */
}

.btn-principal:hover {
  background: #555;
  transform: translateY(-2px);
  color: #FFD700; /* Garante que a cor do texto não mude no hover */
}

@media (max-width: 1024px) {
  
  /* 1. Empilha o Cabeçalho */
  header {
    flex-direction: column;
    gap: 10px;
    padding: 15px;
  }

  /* 2. Empilha a Seção do Cartão */
  .cartao-destaque {
    flex-direction: column; /* Empilha a imagem e os benefícios */
    padding: 40px 20px; /* Menos padding */
  }
  
  /* 3. Remove o efeito 3D do cartão (pesado no mobile) */
  .cartao-flutuante img {
    transform: none; /* Remove o rotateY/rotateX */
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .cartao-flutuante img:hover {
    transform: scale(1.03); /* Efeito mais simples */
  }

  /* 4. Ajusta os textos */
  .cartao-beneficios h1 {
    font-size: 2rem;
    text-align: center;
  }
   .cartao-beneficios p {
    text-align: center;
  }
  
  /* 5. Centraliza o carrossel de benefícios */
  .carousel-wrapper {
    max-width: 100%;
  }
}