/* ===== VARIÁVEIS CSS ===== */
:root {
  --azul-pedagogico: #3a7ca5;
  --rosa-acolhedor: #f58fa8;
  --verde-esperanca: #7ac49a;
  --branco: #ffffff;
  --cinza-suave: #f8f9fa;
  --texto-escuro: #2c3e50;
}

/* ===== RESET E BASE ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: var(--texto-escuro);
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.container {
  max-width: 100%;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== HEADER PROMOCIONAL ===== */
.header-promo {
  background: linear-gradient(135deg, var(--azul-pedagogico), var(--verde-esperanca));
  color: var(--branco);
  text-align: center;
  padding: 15px;
  font-weight: 500;
  font-size: 14px;
  position: relative;
  overflow: hidden;
  z-index: 10;
}

.header-promo::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  animation: sparkle 3s linear infinite;
}

.header-promo .date {
  color: #ffd700;
  font-weight: 600;
}

/* ===== HERO SECTION ===== */
.hero {
  background: linear-gradient(135deg, var(--cinza-suave) 0%, var(--branco) 100%);
  padding: 40px 0;
  text-align: center;
  position: relative;
}

.hero::before {
  content: "🎓";
  position: absolute;
  top: 20px;
  left: 20px;
  font-size: 30px;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

.hero::after {
  content: "📚";
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 30px;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite reverse;
}

.hero h1 {
  font-size: 28px;
  font-weight: 700;
  color: var(--azul-pedagogico);
  margin-bottom: 20px;
  line-height: 1.3;
  animation: fadeInUp 1s ease-out;
}

.hero .subtitle {
  font-size: 18px;
  color: var(--texto-escuro);
  margin-bottom: 30px;
  font-weight: 400;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 20px;
  animation: fadeInUp 1s ease-out 0.4s both;
  margin: 0 auto;
  display: block;
  /* Removendo o fundo branco e a sombra */
  background: transparent;
  box-shadow: none;
}

/* ===== SEÇÕES GERAIS ===== */
.section {
  padding: 40px 0;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
  color: var(--azul-pedagogico);
}

/* ===== SEÇÃO DE PROBLEMAS ===== */
.problems-list {
  max-width: 600px;
  margin: 0 auto;
}

.problem-item {
  display: flex;
  align-items: center;
  margin-bottom: 25px;
  padding: 20px;
  background: var(--branco);
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.problem-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.problem-icon {
  font-size: 24px;
  color: var(--rosa-acolhedor);
  margin-right: 15px;
  min-width: 30px;
}

.problem-text {
  font-size: 16px;
  font-weight: 500;
  color: var(--texto-escuro);
  margin: 0;
}

/* ===== SEÇÃO DE STORYTELLING ===== */
.storytelling-section {
  background: linear-gradient(135deg, var(--azul-pedagogico), var(--verde-esperanca));
  padding: 50px 0;
  position: relative;
}

.storytelling-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.3;
}

.storytelling-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 40px;
  max-width: 700px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
  position: relative;
  z-index: 2;
}

.storytelling-title {
  font-size: 26px;
  font-weight: 700;
  color: var(--azul-pedagogico);
  margin-bottom: 20px;
  text-align: center;
}

.storytelling-text {
  font-size: 18px;
  line-height: 1.7;
  color: var(--texto-escuro);
  margin-bottom: 25px;
  text-align: center;
  font-style: italic;
}

.storytelling-text strong {
  color: var(--rosa-acolhedor);
  font-weight: 600;
}

.storytelling-author {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.author-icon {
  font-size: 24px;
  color: var(--verde-esperanca);
}

.author-name {
  font-size: 16px;
  font-weight: 600;
  color: var(--azul-pedagogico);
}

/* ===== SEÇÃO DE URGÊNCIA ===== */
.urgency-section {
  background: linear-gradient(135deg, #ff4757, #ff6b7a);
  padding: 40px 0;
  position: relative;
  overflow: hidden;
}

.urgency-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.1)"/></svg>')
    repeat;
  opacity: 0.2;
  animation: sparkle 4s linear infinite;
}

.urgency-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 25px;
  padding: 35px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
  position: relative;
  z-index: 2;
  border: 3px solid #ffd700;
}

.urgency-title {
  font-size: 22px;
  font-weight: 700;
  color: #ff4757;
  margin-bottom: 25px;
  animation: pulse 2s infinite;
}

.urgency-title span {
  color: #ffd700;
  background: #ff4757;
  padding: 5px 10px;
  border-radius: 10px;
  font-size: 24px;
}

.countdown-container {
  margin: 25px 0;
}

.countdown-timer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 25px;
}

.countdown-item {
  background: var(--azul-pedagogico);
  color: white;
  padding: 15px;
  border-radius: 15px;
  min-width: 80px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(58, 124, 165, 0.3);
}

.countdown-number {
  display: block;
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.countdown-label {
  font-size: 12px;
  text-transform: uppercase;
  opacity: 0.8;
}

.urgency-cta {
  font-size: 18px;
  padding: 18px 35px;
  background: linear-gradient(135deg, #ffd700, #ffed4e);
  color: #333;
  font-weight: 700;
  animation: pulse 2s infinite;
}

.urgency-cta:hover {
  background: linear-gradient(135deg, #ffed4e, #ffd700);
  transform: translateY(-3px);
}

/* ===== GRID DE BENEFÍCIOS ===== */
.benefits-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.benefit-card {
  background: var(--branco);
  padding: 25px;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: all 0.3s ease;
  border: 3px solid transparent;
  position: relative;
  overflow: hidden;
}

.benefit-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s;
}

.benefit-card:hover::before {
  left: 100%;
}

.benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.benefit-card.blue {
  border-color: var(--azul-pedagogico);
}

.benefit-card.pink {
  border-color: var(--rosa-acolhedor);
}

.benefit-card.green {
  border-color: var(--verde-esperanca);
}

.benefit-icon {
  font-size: 40px;
  margin-bottom: 15px;
  display: block;
}

.blue .benefit-icon {
  color: var(--azul-pedagogico);
}

.pink .benefit-icon {
  color: var(--rosa-acolhedor);
}

.green .benefit-icon {
  color: var(--verde-esperanca);
}

.benefit-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--texto-escuro);
}

.benefit-text {
  font-size: 14px;
  color: var(--texto-escuro);
  opacity: 0.8;
}

/* ===== SEÇÃO COLORIDA ===== */
.colored-section {
  background: linear-gradient(135deg, var(--rosa-acolhedor), var(--verde-esperanca));
  color: var(--branco);
  padding: 40px 0;
  position: relative;
}

.colored-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><polygon points="50,10 90,90 10,90" fill="rgba(255,255,255,0.05)"/></svg>')
    repeat;
  opacity: 0.3;
}

.colored-section .section-title {
  color: var(--branco);
}

/* ===== LISTA DE BENEFÍCIOS ===== */
.benefits-list {
  list-style: none;
  padding: 0;
}

.benefits-list li {
  padding: 10px 0;
  font-size: 16px;
  position: relative;
  padding-left: 30px;
  animation: slideInLeft 0.6s ease-out;
}

.benefits-list li::before {
  content: "✨";
  position: absolute;
  left: 0;
  top: 10px;
  font-size: 18px;
}

/* ===== CARROSSEL DE AMOSTRAS ===== */
.carousel-container {
  position: relative;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel img {
  width: 100%;
  height: auto;
  flex-shrink: 0;
  border-radius: 20px;
}

.carousel-nav {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--azul-pedagogico);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.carousel-dot.active {
  opacity: 1;
  transform: scale(1.2);
}

/* ===== CARROSSEL DE DEPOIMENTOS ===== */
.testimonial-carousel-container {
  position: relative;
  margin: 30px 0;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

.testimonial-carousel {
  display: flex;
  transition: transform 0.5s ease;
}

.testimonial-slide {
  width: 100%;
  flex-shrink: 0;
}

.testimonial-image {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
}

.carousel-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 20px;
  gap: 15px;
}

.carousel-control {
  background: var(--azul-pedagogico);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(58, 124, 165, 0.3);
}

.carousel-control:hover {
  background: var(--verde-esperanca);
  transform: scale(1.1);
}

.testimonial-dots {
  display: flex;
  gap: 8px;
}

.testimonial-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--azul-pedagogico);
  opacity: 0.3;
  cursor: pointer;
  transition: all 0.3s ease;
}

.testimonial-dot.active {
  opacity: 1;
  transform: scale(1.2);
}

/* ===== SEÇÃO DE PREÇO ===== */
.price-section {
  background: var(--cinza-suave);
  padding: 40px 0;
  text-align: center;
}

.price-card {
  background: var(--branco);
  padding: 30px;
  border-radius: 25px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.1);
  max-width: 350px;
  margin: 0 auto;
  position: relative;
  overflow: hidden;
}

.price-card::before {
  content: "🎁";
  position: absolute;
  top: -10px;
  right: -10px;
  font-size: 40px;
  opacity: 0.1;
  animation: bounce 2s infinite;
}

.price-badge {
  background: linear-gradient(135deg, var(--rosa-acolhedor), var(--verde-esperanca));
  color: var(--branco);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 600;
  margin-bottom: 20px;
  display: inline-block;
}

.old-price {
  font-size: 18px;
  text-decoration: line-through;
  color: #999;
  margin-bottom: 10px;
}

.current-price {
  font-size: 48px;
  font-weight: 700;
  color: var(--azul-pedagogico);
  margin-bottom: 20px;
}

.current-price::before {
  content: "R$ ";
  font-size: 24px;
}

.price-benefits {
  text-align: left;
  margin-bottom: 30px;
}

.price-benefits li {
  font-size: 14px;
}

.security-text {
  margin-top: 15px;
  font-size: 12px;
  color: #666;
}

/* ===== BOTÃO CTA ===== */
.cta-button {
  background: linear-gradient(135deg, var(--verde-esperanca), var(--azul-pedagogico));
  color: var(--branco);
  padding: 18px 40px;
  border: none;
  border-radius: 50px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(58, 124, 165, 0.3);
}

/* Animação de pulso para o botão CTA */
.pulse-animation {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 124, 165, 0.7);
  }
  70% {
    transform: scale(1.05);
    box-shadow: 0 0 0 10px rgba(58, 124, 165, 0);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(58, 124, 165, 0);
  }
}

/* ===== DEPOIMENTOS ===== */
.testimonial-author {
  margin-top: 15px;
}

.pink-text {
  color: var(--rosa-acolhedor);
}

.blue-text {
  color: var(--azul-pedagogico);
}

.green-text {
  color: var(--verde-esperanca);
}

/* ===== BÔNUS ===== */
.bonus-grid {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}

.bonus-card {
  background: rgba(255, 255, 255, 0.1);
  border-color: white;
}

.bonus-card .benefit-icon {
  color: white;
}

.bonus-card .benefit-title {
  color: white;
}

/* ===== FAQ ===== */
.faq-item {
  background: var(--branco);
  margin-bottom: 15px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
  padding: 20px;
  background: var(--azul-pedagogico);
  color: var(--branco);
  cursor: pointer;
  font-weight: 500;
  position: relative;
}

.faq-question::after {
  content: "+";
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  transition: transform 0.3s ease;
}

.faq-question.active::after {
  transform: translateY(-50%) rotate(45deg);
}

.faq-answer {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-answer.active {
  padding: 20px;
  max-height: 200px;
}

/* ===== GARANTIA ===== */
.guarantee-section {
  text-align: center;
}

.guarantee-icon {
  font-size: 60px;
  margin-bottom: 20px;
  color: white;
}

.guarantee-text {
  font-size: 18px;
  margin-bottom: 30px;
}

/* ===== FOOTER ===== */
.footer {
  background: var(--texto-escuro);
  color: var(--branco);
  text-align: center;
  padding: 30px 0;
}

.footer-content {
  font-size: 14px;
  opacity: 0.8;
  line-height: 1.5;
}

.footer-content p {
  margin: 0;
}

.footer-content p:first-child {
  margin-bottom: 5px;
}

/* ===== BOTÃO WHATSAPP FLUTUANTE ===== */
.whatsapp-float {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #25d366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  text-align: center;
  font-size: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 5px 15px rgba(37, 211, 102, 0.4);
  z-index: 100;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 20px rgba(37, 211, 102, 0.6);
}

/* ===== BOTÃO VOLTAR AO TOPO ===== */
.back-to-top {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--azul-pedagogico);
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 5px 15px rgba(58, 124, 165, 0.4);
  z-index: 100;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background: var(--verde-esperanca);
  transform: translateY(-5px);
}

/* ===== ANIMAÇÕES ===== */
@keyframes sparkle {
  0% {
    transform: translateX(-50px) translateY(-50px);
  }
  100% {
    transform: translateX(50px) translateY(50px);
  }
}

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

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

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

/* ===== ANIMAÇÕES DE ENTRADA ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

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

/* ===== RESPONSIVIDADE ===== */
/* Dispositivos muito pequenos (até 320px) */
@media (max-width: 320px) {
  .hero h1 {
    font-size: 22px;
  }

  .hero .subtitle {
    font-size: 14px;
  }

  .section-title {
    font-size: 20px;
  }

  .benefit-title {
    font-size: 16px;
  }

  .cta-button {
    padding: 15px 30px;
    font-size: 16px;
  }

  .current-price {
    font-size: 40px;
  }

  .storytelling-title {
    font-size: 22px;
  }

  .storytelling-text {
    font-size: 16px;
  }

  .urgency-title {
    font-size: 18px;
  }

  .countdown-item {
    min-width: 60px;
    padding: 10px;
  }

  .countdown-number {
    font-size: 20px;
  }
}

/* Dispositivos pequenos (smartphones) */
@media (min-width: 321px) and (max-width: 576px) {
  .hero h1 {
    font-size: 24px;
  }

  .hero .subtitle {
    font-size: 16px;
  }

  .benefit-card {
    padding: 20px;
  }

  .benefit-icon {
    font-size: 35px;
  }

  .carousel-control {
    width: 35px;
    height: 35px;
  }

  .storytelling-card {
    padding: 30px;
  }

  .countdown-timer {
    gap: 15px;
  }

  .countdown-item {
    min-width: 70px;
  }
}

/* Dispositivos médios (tablets) */
@media (min-width: 577px) and (max-width: 767px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Tablets e dispositivos médios */
@media (min-width: 768px) and (max-width: 991px) {
  .benefits-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .bonus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 32px;
  }

  .hero .subtitle {
    font-size: 18px;
  }

  .container {
    max-width: 720px;
  }
}

/* Desktops e dispositivos grandes */
@media (min-width: 992px) {
  .benefits-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .bonus-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero h1 {
    font-size: 36px;
  }

  .hero .subtitle {
    font-size: 20px;
  }

  .container {
    max-width: 960px;
  }
}

/* Telas muito grandes */
@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  .hero-image {
    max-width: 350px;
  }
}

/* Orientação paisagem em dispositivos móveis */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    padding: 20px 0;
  }

  .hero-image {
    max-width: 200px;
  }

  .section {
    padding: 30px 0;
  }

  .storytelling-section {
    padding: 30px 0;
  }

  .urgency-section {
    padding: 30px 0;
  }
}

/* Suporte para telas de alta densidade (Retina) */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-image,
  .testimonial-image,
  .carousel img {
    image-rendering: -webkit-optimize-contrast;
  }
}

/* Suporte para modo escuro do sistema */
@media (prefers-color-scheme: dark) {
  .faq-answer {
    background-color: #f8f9fa;
  }
}

/* Suporte para usuários que preferem movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
