:root {
  --azul: #386092;
  --preto: #000;
  --branco: #fff;
  --cinza: #f4f4f4;
  --verde-whatsapp: #25d366;
  --verde-hover: #1ebe5d;
  --sombra: rgba(0, 0, 0, 0.15);
}

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

html, body {
  max-width: 100vw;  /* Evita scroll horizontal */
  overflow-x: hidden;
}

body {
  font-family: 'Montserrat', sans-serif;
  background-color: var(--branco);
  color: var(--preto);
  line-height: 1.6;
  scroll-behavior: smooth;
}

header {
  background-color: var(--preto);
  color: var(--branco);
  padding: 1rem 3rem;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 10000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.logo {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: 2px;
  cursor: pointer;
}

nav ul.menu {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

nav ul.menu li a {
  color: var(--branco);
  font-weight: 700;
  font-size: 1.1rem;
  transition: color 0.3s ease;
  padding: 0.3rem 0.5rem;
}

nav ul.menu li a:hover,
nav ul.menu li a.active {
  color: var(--verde-whatsapp);
  border-bottom: 2px solid var(--verde-whatsapp);
}

/* Menu hamburguer */
.menu-icon {
  display: none;
  font-size: 1.8rem;
  cursor: pointer;
  color: var(--branco);
}

#menu-toggle {
  display: none;
}

/* Espaçamento para compensar header fixo */
section {
  padding-top: 90px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg, var(--azul), #001f4d);
  color: var(--branco);
  padding: 10rem 2rem 6rem;
  text-align: center;
}

.hero h1 {
  font-size: 3.8rem;
  font-weight: 900;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
}

.hero p {
  font-size: 1.5rem;
  max-width: 700px;
  margin: 0 auto 3rem;
  line-height: 1.5;
}

/* Botão WhatsApp no Hero */
.btn-whatsapp {
  background-color: var(--verde-whatsapp);
  color: var(--branco);
  padding: 1.3rem 3rem;
  border-radius: 40px;
  font-weight: 800;
  font-size: 1.25rem;
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.7);
  text-decoration: none;
  transition: background-color 0.4s ease, box-shadow 0.4s ease;
  display: inline-block;
}

.btn-whatsapp:hover {
  background-color: var(--verde-hover);
  box-shadow: 0 12px 30px rgba(30, 190, 93, 0.9);
}

/* Seções */
.section {
  padding: 4rem 2rem;
  max-width: 1000px;
  margin: 0 auto;
  border-top: 1px solid var(--cinza);
}

.section h2 {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: var(--azul);
}

/* Cards */
.cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem;
  margin-top: 2rem;
}

.card {
  background-color: var(--cinza);
  padding: 2.5rem 2rem;
  border-radius: 20px;
  width: 320px;
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: default;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 18px 36px rgba(0,0,0,0.15);
}

.card h3 {
  color: var(--azul);
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.7rem;
}

.card p {
  font-weight: 600;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.card ul {
  list-style: none;
  text-align: left;
  margin-top: 1rem;
  font-size: 1rem;
}

.card ul li::before {
  content: "\f058"; /* ícone check do FontAwesome */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  color: var(--verde-whatsapp);
  margin-right: 0.7rem;
  font-size: 1rem;
}

/* Contato */
#contato p {
  max-width: 600px;
  margin: 0 auto 1.5rem;
  text-align: center;
  font-size: 1.1rem;
}

/* Footer */
footer {
  background-color: var(--preto);
  color: var(--branco);
  text-align: center;
  padding: 2rem 1rem 4rem;
  position: relative;
}

footer p {
  margin-bottom: 1rem;
  font-weight: 500;
  font-size: 1rem;
}

/* WhatsApp fixo */
.whatsapp-fixo {
  position: fixed;
  bottom: 25px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: var(--verde-whatsapp);
  color: var(--branco);
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(37, 211, 102, 0.7);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 10000;
}

.whatsapp-fixo:hover {
  background-color: var(--verde-hover);
  box-shadow: 0 10px 20px rgba(30, 190, 93, 0.9);
}

/* Instagram fixo */
.instagram-fixo {
  position: fixed;
  bottom: 95px; /* 25px do WhatsApp + 60px de altura + 10px de margem */
  right: 25px;
  width: 60px;
  height: 60px;
  background: radial-gradient(circle at 30% 30%, #feda75, #d62976, #962fbf);
  color: #fff;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  text-decoration: none;
  box-shadow: 0 6px 12px rgba(214, 41, 118, 0.6);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  z-index: 10001;
}

.instagram-fixo:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 20px rgba(214, 41, 118, 0.9);
}

/* Planos com vídeo */
.planos-com-video {
  position: relative;
  overflow: hidden;
  padding: 60px 0;
  text-align: center;
  color: #000;
}

.video-fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100%;
  object-fit: cover;
  opacity: 0.7;
  z-index: 0;
  pointer-events: none;
}

.conteudo-planos {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* Chatbot */
.chatbot {
  position: fixed;
  bottom: 95px;
  right: 25px;
  width: 320px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat', sans-serif;
  z-index: 9999;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chatbot.open {
  display: flex;
}

.chat-header {
  background-color: var(--azul);
  color: white;
  padding: 12px 16px;
  font-weight: bold;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-body {
  padding: 10px 15px;
  font-size: 14px;
  max-height: 200px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.chat-body p {
  margin-bottom: 10px;
  line-height: 1.4;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background: #fff;
}

.chat-input input {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 10px;
  padding: 8px;
  font-size: 14px;
  margin-right: 8px;
  outline: none;
}

.chat-input button {
  background-color: var(--azul);
  color: white;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
}

.chatbot-toggle {
  position: fixed;
  bottom: 25px;
  right: 95px;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--azul);
}

.chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Responsividade */

/* Ajuste geral para cards */
@media (max-width: 1024px) {
  .cards {
    gap: 1.5rem;
  }

  .card {
    width: 45%;
  }
}

/* Ajustes para tablets e celulares */
@media (max-width: 768px) {
  header {
    padding: 1rem 1rem;
  }

  nav ul.menu {
    flex-direction: column;
    background: var(--preto);
    position: fixed;
    top: 60px;
    right: 0;
    width: 220px;
    border-left: 3px solid var(--azul);
    height: calc(100vh - 60px);
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    padding-top: 1rem;
    z-index: 10001;
  }

  nav ul.menu li {
    margin-bottom: 1.8rem;
    text-align: center;
  }

  nav ul.menu li a {
    font-size: 1.3rem;
  }

  #menu-toggle:checked + .menu-icon + ul.menu {
    transform: translateX(0);
  }

  .menu-icon {
    display: block;
  }

  .card {
    width: 90%;
  }

  .video-fundo {
    height: 300px;
    object-fit: cover;
  }

  .conteudo-planos h2 {
    font-size: 1.8rem;
  }
}

/* Ajustes para celulares pequenos */
@media (max-width: 600px) {
  /* Header */
  header {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }

  nav ul.menu {
    width: 100vw;
    top: 60px;
    height: calc(100vh - 60px);
    border-left: none;
    padding-top: 3rem;
  }

  nav ul.menu li a {
    font-size: 1.2rem;
  }

  /* Hero */
  .hero {
    padding: 6rem 1rem 4rem;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero p {
    font-size: 1rem;
    max-width: 100%;
  }

  /* Botão WhatsApp */
  .btn-whatsapp {
    padding: 1rem 2rem;
    font-size: 1rem;
  }

  /* Cards */
  .cards {
    flex-direction: column;
    gap: 1rem;
    align-items: center;
  }

  .card {
    width: 90%;
    padding: 1.5rem;
  }
}

/* Vídeo fundo muito pequeno */
@media (max-width: 480px) {
  .video-fundo {
    height: 200px;
  }
}

/* Chatbot mobile */
@media (max-width: 500px) {
  .chatbot {
    width: 90%;
    bottom: 80px;
    right: 5%;
  }
}
/* Botão de abrir o chatbot */
.chatbot-toggle {
  position: fixed;
  bottom: 160px; /* Ajuste para cima do Instagram */
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--azul);
}

.chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Janela do chatbot */
.chatbot {
  position: fixed;
  bottom: 230px; /* abrir acima do botão do chatbot */
  right: 25px;
  width: 320px;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
  font-family: 'Montserrat', sans-serif;
  z-index: 10000;
  overflow: hidden;
  display: none;
  flex-direction: column;
}

.chatbot.open {
  display: flex;
}
/* Animação de pulo */
@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-12px);
  }
  60% {
    transform: translateY(-6px);
  }
}

/* Botão do chatbot com animação */
.chatbot-toggle {
  position: fixed;
  bottom: 160px;
  right: 25px;
  width: 60px;
  height: 60px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 3px solid var(--azul);
  animation: bounce 2s infinite; /* 👈 animação aqui */
}

.chatbot-toggle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
