/* ==========================================================================
   1. CONFIGURAÇÕES GERAIS E TRAVA ANTI-ESTOURO
   ========================================================================== */
:root {
  --primary-color: #e60000;
  --secondary-color: #1a1a1a;
  --bg-light: #f8f9fa;
  --border-color: #e0e0e0;
  --font-main: 'Poppins', sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden; /* TRAVA DEFINITIVA PARA NÃO ESTOURAR A TELA */
  font-family: var(--font-main);
  background: var(--bg-light);
  color: #333;
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ==========================================================================
   2. CABEÇALHO & NAVEGAÇÃO
   ========================================================================== */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.top-bar {
  background: var(--secondary-color);
  color: #fff;
  padding: 8px 16px;
  font-size: 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar strong { color: #ff4d4d; }

.nav {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo img { height: 32px; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 20px;
}

.nav-links a:hover { color: var(--primary-color); }

.hamburger-btn {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 28px;
  height: 20px;
  background: transparent;
  border: none;
  cursor: pointer;
}

.hamburger-btn .bar {
  width: 100%;
  height: 3px;
  background-color: var(--secondary-color);
  border-radius: 2px;
}

/* ==========================================================================
   3. BOTÕES
   ========================================================================== */
.btn {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
  border: none;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--primary-color);
  color: #fff;
  width: 100%;
}

.btn-secondary {
  border: 2px solid var(--secondary-color);
  color: var(--secondary-color);
  background: transparent;
}

/* ==========================================================================
   4. BANNERS SUPERIORES (HERO SLIDER)
   ========================================================================== */
.hero-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 16px auto;
  padding: 0 16px;
}

.hero-carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  border-radius: 12px;
  -webkit-overflow-scrolling: touch;
}

.hero-carousel::-webkit-scrollbar { display: none; }

.hero-slide {
  min-width: 100%;
  scroll-snap-align: start;
  flex-shrink: 0;
}

.hero-slide img {
  width: 100%;
  border-radius: 12px;
  display: block;
}

/* ==========================================================================
   5. CARROSSEL DE PACOTES DE TV
   ========================================================================== */
.plans-container {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  width: 100%;
}

.plans-container h2 {
  text-align: center;
  font-size: 1.4rem;
  margin-bottom: 8px;
}

.plans-container .subtitle {
  text-align: center;
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.plans-wrapper {
  position: relative;
  width: 100%;
}

.plans-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px 4px;
  -webkit-overflow-scrolling: touch;
}

.plans-carousel::-webkit-scrollbar { display: none; }

.card-plan {
  width: 290px;
  min-width: 290px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 20px;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  position: relative;
}

.card-plan.highlight { border: 2px solid var(--primary-color); }
.badge { position: absolute; top: -10px; right: 16px; background: var(--primary-color); color: #fff; padding: 2px 10px; border-radius: 10px; font-size: 0.75rem; font-weight: bold; }

.card-header h3 { font-size: 1.1rem; margin-bottom: 12px; }
.card-header img { height: 90px; object-fit: contain; margin: 0 auto 12px; }

.highlights { background: #f4f5f7; padding: 10px; border-radius: 6px; margin-bottom: 12px; }
.highlights .label { font-size: 0.75rem; color: #666; display: block; margin-bottom: 6px; }
.channel-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.channel-logos img { height: 20px; object-fit: contain; }

.benefits-list h4 { font-size: 0.85rem; color: #555; margin-bottom: 6px; }
.benefits-list ul { list-style: none; margin-bottom: 16px; }
.benefits-list li { font-size: 0.8rem; color: #444; position: relative; padding-left: 18px; margin-bottom: 6px; line-height: 1.35; }
.benefits-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: #00aa00; font-weight: bold; }

.price-box { margin-bottom: 12px; text-align: center; }
.price-box .old { display: block; font-size: 0.8rem; color: #888; text-decoration: line-through; }
.price-box .price { font-size: 1.6rem; font-weight: bold; color: var(--primary-color); }
.price-terms { font-size: 0.7rem; color: #777; margin-top: 4px; }

.card-actions { display: flex; flex-direction: column; gap: 6px; }
.btn-link { background: transparent; color: #333; text-decoration: underline; text-align: center; font-size: 0.85rem; border: none; cursor: pointer; }

/* ==========================================================================
   6. CONTROLES DE CARROSSEL
   ========================================================================== */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.7);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn.prev { left: 4px; }
.carousel-btn.next { right: 4px; }

/* ==========================================================================
   7. SEÇÕES SECUNDÁRIAS (BANNERS E BLOG)
   ========================================================================== */
.callback-banner {
  background: var(--secondary-color);
  color: #fff;
  padding: 32px 16px;
  text-align: center;
  width: 100%;
}

.callback-banner form {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 16px;
}

.callback-banner input {
  padding: 12px;
  border-radius: 6px;
  border: none;
  width: 100%;
  max-width: 260px;
}

.callback-banner .btn-submit { background: var(--primary-color); color: #fff; width: 100%; max-width: 160px; }

.banner-compare, .skyplus-banner {
  background: #fff;
  padding: 32px 16px;
  margin: 32px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  width: 100%;
}

.banner-compare-container, .skyplus-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.banner-compare-image img, .skyplus-image img {
  max-width: 260px;
  width: 100%;
  margin: 0 auto;
}

.banner-compare-content, .skyplus-text {
  flex: 1;
  min-width: 280px;
}

.btn-primary-inline {
  background: var(--primary-color);
  color: #fff;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  display: inline-block;
}


.text-info-box {
  text-align: center;
  padding: 20px 16px;
  background: #f1f3f5;
  width: 100%;
}

.text-info-box a { color: var(--primary-color); font-weight: 600; text-decoration: underline; }

/* BLOG CARROSSEL */
.blog-carousel-section {
  max-width: 1200px;
  margin: 32px auto;
  padding: 0 16px;
  width: 100%;
}

.blog-carousel-section h2 { text-align: center; margin-bottom: 20px; }
.blog-carousel { position: relative; width: 100%; }
.blog-track-container { width: 100%; overflow: hidden; }

.blog-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 8px 0;
}

.blog-track::-webkit-scrollbar { display: none; }

.blog-card {
  min-width: 260px;
  max-width: 260px;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  padding: 16px;
  scroll-snap-align: start;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-card img { border-radius: 8px; margin-bottom: 10px; }
.blog-card h3 { font-size: 1rem; margin-bottom: 6px; }
.blog-card p { font-size: 0.8rem; color: #666; margin-bottom: 12px; }

/* ==========================================================================
   8. FAQ & DISCLAIMER (SEM ESTOURO)
   ========================================================================== */
.faq-section {
  max-width: 900px;
  margin: 32px auto;
  padding: 0 16px;
  width: 100%;
}

.faq-section h2 { text-align: center; margin-bottom: 20px; }

.accordion details {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  margin-bottom: 10px;
}

.accordion summary {
  padding: 14px 16px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.accordion p {
  padding: 0 16px 14px 16px;
  color: #555;
  font-size: 0.85rem;
}

.legal-disclaimer {
  background: #eaeaea;
  padding: 24px 16px;
  font-size: 0.75rem;
  color: #666;
  width: 100%;
}

.legal-container { max-width: 1200px; margin: 0 auto; }
.legal-disclaimer h3 { font-size: 0.85rem; color: #333; margin-bottom: 8px; }
.legal-disclaimer p { margin-bottom: 6px; }

/* ==========================================================================
   9. RODAPÉ CORRIGIDO (LARGURA MAX 100%)
   ========================================================================== */
.footer {
  background: var(--secondary-color);
  color: #ccc;
  padding: 40px 16px 20px;
  width: 100%;
  box-sizing: border-box;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  width: 100%;
}

.footer-logo { height: 32px; margin-bottom: 12px; }
.footer-socials { display: flex; gap: 12px; flex-wrap: wrap; }
.footer-socials a { color: #fff; font-size: 0.8rem; }

.footer-columns {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-col h4 { color: #fff; margin-bottom: 10px; font-size: 0.95rem; }
.footer-col a { display: block; color: #aaa; font-size: 0.8rem; margin-bottom: 6px; }
.footer-col a:hover { color: #fff; }

.footer-bottom {
  max-width: 1200px;
  margin: 24px auto 0;
  padding-top: 20px;
  border-top: 1px solid #333;
  text-align: center;
  width: 100%;
}

.footer-bottom-links {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.footer-bottom-links a { color: #aaa; font-size: 0.75rem; }
.copyright { font-size: 0.7rem; color: #777; }

/* ==========================================================================
   10. DISPOSITIVOS MÓVEIS (RESPONSIVIDADE TOTAL)
   ========================================================================== */
@media (max-width: 768px) {
  .carousel-btn { display: none !important; } /* No mobile desliza via Touch */

  .hamburger-btn { display: flex; }

  .desktop-only { display: none; }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 280px;
    height: 100vh;
    background-color: #fff;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.15);
    flex-direction: column;
    padding: 70px 20px 20px;
    gap: 16px;
    transition: right 0.3s ease-in-out;
    z-index: 1000;
  }

  .nav-links.active { right: 0; }

  .banner-compare-container, .skyplus-container, .footer-container {
    flex-direction: column;
    text-align: center;
  }

  .footer-columns {
    flex-direction: column;
    gap: 20px;
  }

  .card-plan {
    width: 82vw;
    min-width: 82vw;
  }
}