/* ==========================================================================
   GARIMPO TCG — Estilo principal
   Blog de investimento em produtos selados (Pokémon TCG & Lorcana)
   Visual colorido estilo anime/desenho, alto contraste e muito visual.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variáveis de cor e tema
   -------------------------------------------------------------------------- */
:root {
  /* Cores da marca */
  --vermelho: #ff3e5f;
  --vermelho-escuro: #e01e46;
  --azul: #2f6bff;
  --azul-escuro: #1f4fd6;
  --amarelo: #ffd23f;
  --amarelo-forte: #ffb800;
  --roxo: #7c3aed;
  --roxo-claro: #a855f7;
  --rosa: #ff6cc4;
  --ciano: #22d3ee;
  --verde-zap: #25d366;
  --verde-zap-escuro: #128c7e;

  /* Neutros */
  --preto: #180f2e;
  --cinza-escuro: #3a3350;
  --cinza: #6b6580;
  --cinza-claro: #eceaf4;
  --creme: #fff8ef;
  --branco: #ffffff;

  /* Superfícies */
  --fundo: #fff8ef;
  --fundo-alt: #f3eefc;
  --card: #ffffff;

  /* Gradientes */
  --grad-hero: linear-gradient(135deg, #7c3aed 0%, #2f6bff 45%, #22d3ee 100%);
  --grad-fogo: linear-gradient(135deg, #ff3e5f 0%, #ffb800 100%);
  --grad-agua: linear-gradient(135deg, #2f6bff 0%, #22d3ee 100%);
  --grad-psi: linear-gradient(135deg, #7c3aed 0%, #ff6cc4 100%);
  --grad-eletrico: linear-gradient(135deg, #ffd23f 0%, #ff8a00 100%);

  /* Sombras */
  --sombra-sm: 0 4px 14px rgba(24, 15, 46, 0.10);
  --sombra-md: 0 10px 30px rgba(24, 15, 46, 0.14);
  --sombra-lg: 0 20px 50px rgba(24, 15, 46, 0.20);
  --sombra-color: 0 12px 30px rgba(124, 58, 237, 0.30);

  /* Bordas */
  --raio: 18px;
  --raio-sm: 12px;
  --raio-lg: 28px;

  /* Tipografia */
  --fonte-titulo: 'Baloo 2', 'Segoe UI', system-ui, sans-serif;
  --fonte-texto: 'Nunito', 'Segoe UI', system-ui, sans-serif;

  --largura-max: 1180px;
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

* { margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--fonte-texto);
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--preto);
  background: var(--fundo);
  background-image:
    radial-gradient(circle at 12% 8%, rgba(124, 58, 237, 0.08), transparent 40%),
    radial-gradient(circle at 88% 4%, rgba(47, 107, 255, 0.08), transparent 35%);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: var(--azul-escuro); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--vermelho); }

h1, h2, h3, h4 {
  font-family: var(--fonte-titulo);
  line-height: 1.15;
  font-weight: 800;
  color: var(--preto);
}

ul, ol { padding-left: 1.3em; }

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

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* --------------------------------------------------------------------------
   3. Navbar
   -------------------------------------------------------------------------- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 248, 239, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 3px solid rgba(124, 58, 237, 0.12);
}

.nav-inner {
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.5rem;
  color: var(--preto);
  letter-spacing: -0.5px;
}
.logo:hover { color: var(--preto); }

.logo-ball {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-fogo);
  position: relative;
  box-shadow: var(--sombra-sm);
  border: 3px solid var(--preto);
  flex-shrink: 0;
}
.logo-ball::before {
  content: '';
  position: absolute; left: -3px; right: -3px;
  top: 50%; transform: translateY(-50%);
  height: 4px; background: var(--preto);
}
.logo-ball::after {
  content: '';
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 12px; height: 12px;
  background: var(--branco);
  border: 3px solid var(--preto);
  border-radius: 50%;
}
.logo b { color: var(--vermelho); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 0;
}
.nav-links a {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.98rem;
  color: var(--cinza-escuro);
}
.nav-links a:hover { background: var(--fundo-alt); color: var(--roxo); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--verde-zap);
  color: #fff !important;
  padding: 9px 16px !important;
  border-radius: 999px !important;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.nav-cta:hover { background: var(--verde-zap-escuro); transform: translateY(-1px); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--preto);
  border-radius: 2px;
  transition: .3s;
}

/* --------------------------------------------------------------------------
   4. Botões
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  font-size: 1.05rem;
  padding: 14px 26px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  text-align: center;
  transition: transform .18s ease, box-shadow .18s ease, background .2s ease;
  line-height: 1.1;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px); }

.btn-zap {
  background: var(--verde-zap);
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.42);
}
.btn-zap:hover { background: var(--verde-zap-escuro); color: #fff; }

.btn-primario {
  background: var(--grad-fogo);
  color: #fff;
  box-shadow: var(--sombra-color);
}
.btn-primario:hover { color: #fff; }

.btn-azul {
  background: var(--grad-agua);
  color: #fff;
  box-shadow: 0 10px 24px rgba(47, 107, 255, 0.35);
}
.btn-azul:hover { color: #fff; }

.btn-contorno {
  background: #fff;
  color: var(--roxo);
  border: 3px solid var(--roxo);
}
.btn-contorno:hover { background: var(--roxo); color: #fff; }

.btn-lg { font-size: 1.2rem; padding: 17px 34px; }
.btn-full { width: 100%; }

/* --------------------------------------------------------------------------
   5. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--grad-hero);
  color: #fff;
  padding: 70px 0 90px;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 60px;
  background: var(--fundo);
  clip-path: polygon(0 100%, 100% 100%, 100% 0, 0 55%);
}
.hero-bolhas span {
  position: absolute;
  border-radius: 50%;
  opacity: 0.18;
  background: #fff;
  animation: flutuar 8s ease-in-out infinite;
}
.hero-bolhas span:nth-child(1){ width:120px;height:120px; top:12%; left:6%; }
.hero-bolhas span:nth-child(2){ width:60px;height:60px; top:60%; left:14%; animation-delay:1s;}
.hero-bolhas span:nth-child(3){ width:90px;height:90px; top:20%; right:10%; animation-delay:2s;}
.hero-bolhas span:nth-child(4){ width:44px;height:44px; top:70%; right:18%; animation-delay:.5s;}
@keyframes flutuar { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-22px)} }

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--largura-max);
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 40px;
  align-items: center;
}
.hero-selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.16);
  border: 2px solid rgba(255,255,255,0.4);
  padding: 7px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 18px;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin-bottom: 16px;
  text-shadow: 0 3px 0 rgba(24,15,46,0.15);
}
.hero h1 mark {
  background: var(--amarelo);
  color: var(--preto);
  padding: 0 10px;
  border-radius: 8px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.hero p.sub {
  font-size: 1.2rem;
  opacity: 0.96;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-botoes { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 34px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-family: var(--fonte-titulo);
  font-size: 1.9rem;
  line-height: 1;
}
.hero-stats .stat span { font-size: 0.9rem; opacity: 0.9; }

/* Cartas decorativas no hero */
.hero-cartas {
  position: relative;
  height: 380px;
}
.carta-deco {
  position: absolute;
  width: 200px; height: 280px;
  border-radius: 16px;
  box-shadow: var(--sombra-lg);
  border: 5px solid #fff;
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  color: #fff;
  font-size: 1.1rem;
  text-shadow: 0 2px 6px rgba(0,0,0,0.4);
}
.carta-deco.c1 { background: var(--grad-fogo); left: 8%; top: 30px; transform: rotate(-11deg); z-index: 1; }
.carta-deco.c2 { background: var(--grad-agua); left: 32%; top: 10px; transform: rotate(4deg); z-index: 3; }
.carta-deco.c3 { background: var(--grad-psi); left: 56%; top: 40px; transform: rotate(13deg); z-index: 2; }
.carta-deco::before {
  content: '★';
  position: absolute; top: 12px; right: 14px;
  font-size: 1.4rem; color: rgba(255,255,255,0.9);
}

/* --------------------------------------------------------------------------
   6. Seções gerais
   -------------------------------------------------------------------------- */
section { padding: 56px 0; }

.secao-titulo {
  text-align: center;
  margin-bottom: 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
}
.secao-titulo .destaque { color: var(--vermelho); }
.secao-sub {
  text-align: center;
  color: var(--cinza);
  max-width: 640px;
  margin: 0 auto 44px;
  font-size: 1.12rem;
}
.tag-secao {
  display: block;
  text-align: center;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.85rem;
  color: var(--roxo);
  margin-bottom: 6px;
}

/* --------------------------------------------------------------------------
   7. Grid de posts / cards
   -------------------------------------------------------------------------- */
.grid-posts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.post-card {
  background: var(--card);
  border-radius: var(--raio-lg);
  overflow: hidden;
  box-shadow: var(--sombra-sm);
  border: 2px solid rgba(24,15,46,0.05);
  display: flex;
  flex-direction: column;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.post-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--sombra-lg);
  border-color: rgba(124,58,237,0.35);
}
.post-thumb {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 3.2rem;
  color: rgba(255,255,255,0.92);
  text-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.post-thumb.g-fogo { background: var(--grad-fogo); }
.post-thumb.g-agua { background: var(--grad-agua); }
.post-thumb.g-psi  { background: var(--grad-psi); }
.post-thumb.g-eletrico { background: var(--grad-eletrico); }
.post-thumb.g-hero { background: var(--grad-hero); }
.post-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.post-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(24,15,46,0.78);
  color: #fff;
  font-family: var(--fonte-texto);
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  text-shadow: none;
}
.post-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-body h3 { font-size: 1.28rem; margin-bottom: 10px; }
.post-body h3 a { color: var(--preto); }
.post-body h3 a:hover { color: var(--vermelho); }
.post-body p { color: var(--cinza); font-size: 1rem; margin-bottom: 16px; flex: 1; }
.post-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--cinza);
  font-weight: 700;
}
.ler-mais {
  font-family: var(--fonte-titulo);
  font-weight: 700;
  color: var(--roxo);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ler-mais::after { content: '→'; transition: transform .2s; }
.post-card:hover .ler-mais::after { transform: translateX(4px); }

/* --------------------------------------------------------------------------
   8. Espaço de banner publicitário
   -------------------------------------------------------------------------- */
.banner-ad {
  max-width: var(--largura-max);
  margin: 34px auto;
  padding: 0 20px;
}
.banner-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  min-height: 110px;
  border: 3px dashed rgba(124,58,237,0.35);
  border-radius: var(--raio);
  background:
    repeating-linear-gradient(45deg, rgba(124,58,237,0.04) 0 12px, transparent 12px 24px);
  color: var(--cinza);
  font-weight: 800;
  font-family: var(--fonte-titulo);
  text-align: center;
  padding: 20px;
}
.banner-slot small { font-weight: 700; font-family: var(--fonte-texto); opacity: 0.8; }
.banner-slot.grande { min-height: 250px; }

/* --------------------------------------------------------------------------
   9. Bloco de destaque WhatsApp
   -------------------------------------------------------------------------- */
.zap-cta {
  position: relative;
  background: linear-gradient(135deg, #128c7e 0%, #25d366 100%);
  color: #fff;
  border-radius: var(--raio-lg);
  padding: 44px;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(18,140,126,0.35);
}
.zap-cta::before,
.zap-cta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255,255,255,0.10);
}
.zap-cta::before { width: 220px; height: 220px; top: -80px; right: -40px; }
.zap-cta::after { width: 160px; height: 160px; bottom: -70px; left: -30px; }
.zap-cta .zap-icone { font-size: 3rem; position: relative; }
.zap-cta h2 { color: #fff; font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin: 6px 0 10px; position: relative; }
.zap-cta p { font-size: 1.15rem; max-width: 560px; margin: 0 auto 24px; position: relative; opacity: 0.97; }
.zap-cta .zap-botoes { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; }
.zap-cta .btn-branco {
  background: #fff; color: var(--verde-zap-escuro);
  box-shadow: 0 10px 24px rgba(0,0,0,0.18);
}
.zap-cta .btn-branco:hover { color: var(--verde-zap-escuro); background: #f0fff8; }
.zap-cta .btn-fantasma {
  background: rgba(255,255,255,0.14);
  color: #fff;
  border: 2px solid rgba(255,255,255,0.65);
}
.zap-cta .btn-fantasma:hover { background: rgba(255,255,255,0.24); color: #fff; }

/* --------------------------------------------------------------------------
   10. Botão flutuante WhatsApp
   -------------------------------------------------------------------------- */
.zap-float {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--verde-zap);
  color: #fff;
  font-family: var(--fonte-titulo);
  font-weight: 700;
  padding: 13px 20px 13px 15px;
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(37,211,102,0.5);
  animation: pulsar 2.4s ease-in-out infinite;
}
.zap-float:hover { color: #fff; background: var(--verde-zap-escuro); transform: scale(1.04); }
.zap-float svg { width: 26px; height: 26px; }
.zap-float .zap-txt { white-space: nowrap; }
@keyframes pulsar {
  0%,100% { box-shadow: 0 12px 30px rgba(37,211,102,0.5); }
  50% { box-shadow: 0 12px 30px rgba(37,211,102,0.5), 0 0 0 12px rgba(37,211,102,0); }
}

/* --------------------------------------------------------------------------
   11. Categorias / pílulas
   -------------------------------------------------------------------------- */
.pilulas {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 40px;
}
.pilula {
  background: #fff;
  border: 2px solid var(--cinza-claro);
  padding: 8px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-family: var(--fonte-titulo);
  color: var(--cinza-escuro);
  cursor: pointer;
}
.pilula:hover, .pilula.ativa { background: var(--roxo); border-color: var(--roxo); color: #fff; }

/* --------------------------------------------------------------------------
   12. Artigo (post individual)
   -------------------------------------------------------------------------- */
.post-hero {
  background: var(--grad-hero);
  color: #fff;
  padding: 46px 0 60px;
  position: relative;
}
.post-hero.g-fogo { background: var(--grad-fogo); }
.post-hero.g-agua { background: var(--grad-agua); }
.post-hero.g-psi  { background: var(--grad-psi); }
.post-hero.g-eletrico { background: var(--grad-eletrico); }
.post-hero .container { max-width: 820px; }
.breadcrumb {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 16px;
  opacity: 0.92;
}
.breadcrumb a { color: #fff; text-decoration: underline; }
.post-hero .badge-cat {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 2px solid rgba(255,255,255,0.5);
  padding: 5px 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}
.post-hero h1 { color: #fff; font-size: clamp(1.9rem, 4.5vw, 3rem); margin-bottom: 16px; }
.post-info {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 700;
  font-size: 0.95rem;
  opacity: 0.95;
}

.artigo {
  background: #fff;
  max-width: 820px;
  margin: -34px auto 0;
  padding: 46px clamp(20px, 5vw, 56px);
  border-radius: var(--raio-lg);
  box-shadow: var(--sombra-md);
  position: relative;
  z-index: 5;
}
.artigo > p { margin-bottom: 20px; font-size: 1.12rem; }
.artigo .lead {
  font-size: 1.28rem;
  font-weight: 700;
  color: var(--cinza-escuro);
  line-height: 1.55;
}
.artigo h2 {
  font-size: 1.7rem;
  margin: 40px 0 16px;
  padding-left: 16px;
  border-left: 6px solid var(--vermelho);
}
.artigo h3 { font-size: 1.3rem; margin: 28px 0 12px; color: var(--roxo); }
.artigo ul, .artigo ol { margin: 0 0 22px; }
.artigo li { margin-bottom: 9px; }
.artigo img { border-radius: var(--raio); margin: 10px 0; box-shadow: var(--sombra-sm); }
.artigo strong { color: var(--preto); }
.artigo a { font-weight: 700; text-decoration: underline; text-decoration-color: rgba(47,107,255,0.4); }

.destaque-box {
  background: var(--fundo-alt);
  border-left: 6px solid var(--roxo);
  border-radius: var(--raio-sm);
  padding: 20px 22px;
  margin: 26px 0;
  font-size: 1.05rem;
}
.destaque-box.dica { background: #fff6e0; border-color: var(--amarelo-forte); }
.destaque-box.alerta { background: #ffeef1; border-color: var(--vermelho); }
.destaque-box b.rotulo {
  display: block;
  font-family: var(--fonte-titulo);
  margin-bottom: 4px;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 1px;
}

figure { margin: 22px 0; }
figcaption { text-align: center; font-size: 0.9rem; color: var(--cinza); margin-top: 8px; font-style: italic; }

/* --------------------------------------------------------------------------
   13. Placeholder de imagem de carta (moldura estilizada)
   -------------------------------------------------------------------------- */
.moldura {
  position: relative;
  border-radius: 16px;
  border: 6px solid rgba(255,255,255,0.9);
  box-shadow: var(--sombra-md);
  aspect-ratio: 63 / 88;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  overflow: hidden;
  padding: 14px;
}
.moldura::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.35), transparent 55%);
  pointer-events: none;
}
.moldura .m-icone { font-size: 2.4rem; }
.moldura .m-nome { font-family: var(--fonte-titulo); font-weight: 800; font-size: 1rem; line-height: 1.2; }
.moldura .m-tag {
  font-size: 0.7rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1px; opacity: 0.85;
  background: rgba(0,0,0,0.22); padding: 3px 8px; border-radius: 999px;
}
.moldura.g-fogo { background: var(--grad-fogo); }
.moldura.g-agua { background: var(--grad-agua); }
.moldura.g-psi  { background: var(--grad-psi); }
.moldura.g-eletrico { background: var(--grad-eletrico); }
.moldura.g-hero { background: var(--grad-hero); }

.galeria-cartas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 16px;
  margin: 26px 0;
}
.galeria-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 18px;
  margin: 26px 0;
}
.moldura.produto { aspect-ratio: 4 / 3; border-radius: var(--raio); }

/* --------------------------------------------------------------------------
   14. Caixa de produto afiliado
   -------------------------------------------------------------------------- */
.afiliado {
  display: grid;
  grid-template-columns: 130px 1fr;
  gap: 20px;
  align-items: center;
  background: linear-gradient(135deg, #fff 0%, #fbf6ff 100%);
  border: 2px solid rgba(124,58,237,0.2);
  border-radius: var(--raio);
  padding: 20px;
  margin: 26px 0;
  box-shadow: var(--sombra-sm);
}
.afiliado .af-img {
  border-radius: var(--raio-sm);
  aspect-ratio: 1;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: #fff;
  box-shadow: var(--sombra-sm);
}
.afiliado h4 { font-size: 1.2rem; margin-bottom: 4px; }
.afiliado .af-desc { color: var(--cinza); font-size: 0.98rem; margin-bottom: 12px; }
.afiliado .af-plataforma {
  display: inline-block;
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.5px; padding: 3px 10px; border-radius: 999px;
  margin-bottom: 8px;
}
.af-ml { background: #fff159; color: #2d3277; }
.af-ali { background: #ff4747; color: #fff; }
.afiliado .btn { padding: 11px 22px; font-size: 0.98rem; }

.afiliado-duplo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 26px 0;
}
.afiliado-duplo .afiliado { grid-template-columns: 1fr; text-align: center; margin: 0; }
.afiliado-duplo .af-img { aspect-ratio: 16/10; margin: 0 auto; width: 100%; }

.disclosure {
  font-size: 0.85rem;
  color: var(--cinza);
  background: var(--fundo-alt);
  border-radius: var(--raio-sm);
  padding: 12px 16px;
  margin: 20px 0;
}

/* --------------------------------------------------------------------------
   15. Ranking (lista numerada estilosa)
   -------------------------------------------------------------------------- */
.ranking { display: flex; flex-direction: column; gap: 16px; margin: 26px 0; }
.ranking-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: center;
  background: #fff;
  border: 2px solid var(--cinza-claro);
  border-radius: var(--raio);
  padding: 18px 20px;
  box-shadow: var(--sombra-sm);
}
.ranking-item .num {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  font-size: 1.8rem;
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--sombra-sm);
}
.ranking-item:nth-child(1) .num { background: var(--grad-fogo); }
.ranking-item:nth-child(2) .num { background: var(--grad-agua); }
.ranking-item:nth-child(3) .num { background: var(--grad-psi); }
.ranking-item:nth-child(4) .num { background: var(--grad-eletrico); }
.ranking-item:nth-child(n+5) .num { background: linear-gradient(135deg,#6b6580,#3a3350); }
.ranking-item h4 { font-size: 1.15rem; margin-bottom: 3px; }
.ranking-item p { color: var(--cinza); font-size: 0.96rem; margin: 0; }

/* --------------------------------------------------------------------------
   16. Timeline (datas de lançamento)
   -------------------------------------------------------------------------- */
.timeline { position: relative; margin: 30px 0; padding-left: 30px; }
.timeline::before {
  content: '';
  position: absolute; left: 8px; top: 6px; bottom: 6px;
  width: 4px; border-radius: 4px;
  background: linear-gradient(var(--roxo), var(--ciano));
}
.timeline-item { position: relative; margin-bottom: 26px; }
.timeline-item::before {
  content: '';
  position: absolute; left: -30px; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--vermelho);
  border: 4px solid #fff;
  box-shadow: 0 0 0 3px rgba(255,62,95,0.3);
}
.timeline-item .data {
  font-family: var(--fonte-titulo);
  font-weight: 800;
  color: var(--roxo);
  font-size: 1.05rem;
}
.timeline-item h4 { margin: 2px 0 4px; }
.timeline-item p { color: var(--cinza); margin: 0; }

/* --------------------------------------------------------------------------
   17. Tabela comparativa
   -------------------------------------------------------------------------- */
.tabela-wrap { overflow-x: auto; margin: 26px 0; border-radius: var(--raio); box-shadow: var(--sombra-sm); }
table.comparativo {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: #fff;
}
table.comparativo th {
  background: var(--roxo);
  color: #fff;
  font-family: var(--fonte-titulo);
  padding: 14px 16px;
  text-align: left;
  font-size: 0.98rem;
}
table.comparativo td { padding: 13px 16px; border-bottom: 1px solid var(--cinza-claro); }
table.comparativo tr:nth-child(even) td { background: var(--fundo-alt); }
table.comparativo tr:last-child td { border-bottom: none; }

/* --------------------------------------------------------------------------
   18. Posts relacionados
   -------------------------------------------------------------------------- */
.relacionados { max-width: var(--largura-max); margin: 50px auto 0; padding: 0 20px; }

/* --------------------------------------------------------------------------
   19. Índice do post (sumário)
   -------------------------------------------------------------------------- */
.sumario {
  background: var(--fundo-alt);
  border-radius: var(--raio);
  padding: 20px 24px;
  margin: 4px 0 30px;
}
.sumario b {
  font-family: var(--fonte-titulo);
  display: block; margin-bottom: 8px;
  text-transform: uppercase; font-size: 0.85rem; letter-spacing: 1px; color: var(--roxo);
}
.sumario ol { margin: 0; padding-left: 1.2em; }
.sumario a { font-weight: 700; }

/* --------------------------------------------------------------------------
   20. Newsletter / faixa CTA
   -------------------------------------------------------------------------- */
.faixa-final {
  background: var(--grad-psi);
  border-radius: 0;
}

/* --------------------------------------------------------------------------
   21. Footer
   -------------------------------------------------------------------------- */
.footer {
  background: var(--preto);
  color: #cfc7e6;
  padding: 52px 0 26px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 34px;
  margin-bottom: 36px;
}
.footer .logo { color: #fff; margin-bottom: 14px; }
.footer p { color: #a99fce; font-size: 0.96rem; }
.footer h5 {
  font-family: var(--fonte-titulo);
  color: #fff; font-size: 1.05rem; margin-bottom: 14px;
}
.footer ul { list-style: none; padding: 0; }
.footer ul li { margin-bottom: 9px; }
.footer ul a { color: #a99fce; font-weight: 600; }
.footer ul a:hover { color: var(--amarelo); }
.footer-zap {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--verde-zap); color: #fff;
  padding: 10px 16px; border-radius: 999px; font-weight: 800;
  margin-top: 4px;
}
.footer-zap:hover { color: #fff; background: var(--verde-zap-escuro); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 22px;
  text-align: center;
  font-size: 0.88rem;
  color: #8a80ad;
}
.footer-bottom a { color: #a99fce; }

/* --------------------------------------------------------------------------
   22. Responsivo
   -------------------------------------------------------------------------- */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-cartas { height: 300px; margin-top: 10px; }
  .carta-deco { width: 150px; height: 210px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  body { font-size: 1rem; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--fundo);
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 20px 20px;
    box-shadow: var(--sombra-md);
    border-bottom: 3px solid rgba(124,58,237,0.15);
    display: none;
  }
  .nav-links.aberto { display: flex; }
  .nav-links a { padding: 12px 14px; }
  .nav-cta { justify-content: center; }

  .hero { padding: 44px 0 70px; }
  .hero-stats { gap: 20px; }
  .afiliado { grid-template-columns: 1fr; text-align: center; }
  .afiliado .af-img { width: 120px; margin: 0 auto; }
  .afiliado-duplo { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .zap-cta { padding: 32px 22px; }
  .artigo { padding: 30px 20px; }
  .zap-float .zap-txt { display: none; }
  .zap-float { padding: 14px; }
  .ranking-item { grid-template-columns: 48px 1fr; gap: 12px; }
  .ranking-item .num { width: 44px; height: 44px; font-size: 1.4rem; }
}

/* Acessibilidade: respeitar preferência de menos movimento */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
