/* =================================================================== */
/* 0. IMPORTAÇÃO DE FONTES CUSTOMIZADAS (GOTHAM PRO)                   */
/* =================================================================== */

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-Light.ttf') format('truetype');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-LightItalic.ttf') format('truetype');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-Italic.ttf') format('truetype');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-BoldItalic.ttf') format('truetype');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-Black.ttf') format('truetype');
    font-weight: 900;
    font-style: normal;
}

@font-face {
    font-family: 'Gotham Pro';
    src: url('https://cdn.jsdelivr.net/gh/albertootero3361/gothamfontsalberto/GothamPro-BlackItalic.ttf') format('truetype');
    font-weight: 900;
    font-style: italic;
}

/* =================================================================== */
/* 1. FUNDAÇÃO & VARIÁVEIS GLOBAIS                                     */
/* =================================================================== */
:root {
  --color-brand-blue: #3482ff;
  --color-brand-dark: #20225e;
  --color-support-green: #91d329;
  --color-support-cyan: #30dbf2;
  --color-support-teal: #008e88;
  --color-support-purple: #9e3ad0;
  --color-bg-white: #ffffff;
  --color-bg-offwhite: #f9f9f9;

  --cor-primaria: #3482ff;
  --cor-secundaria: #30dbf2;
  --cor-acento: #91d329;
  --cor-fundo: #f9f9f9;

  /* Modificado para adotar Gotham Pro como padrão principal */
  --fonte-titulo: "Gotham Pro", "Inter", sans-serif;
  --fonte-corpo: "Gotham Pro", "Inter", sans-serif;
}

html { scroll-behavior: smooth; font-family: var(--fonte-corpo); overflow-x: hidden; }
body { margin: 0; background-color: var(--cor-fundo); color: #475569; font-family: var(--fonte-corpo) !important; overflow-x: hidden; width: 100%; position: relative; }
h1, h2, h3, h4, h5, h6 { font-family: var(--fonte-titulo) !important; letter-spacing: -0.02em; }
[id] { scroll-margin-top: 6rem; }
:focus-visible { outline: 2px solid var(--cor-primaria); outline-offset: 2px; border-radius: 6px; }

/* =================================================================== */
/* 2. UTILITÁRIOS & ANIMAÇÕES BÁSICAS                                  */
/* =================================================================== */
.gradient-text-mundiale { color: var(--cor-primaria); }
.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.mask-timeline { -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%); }

@keyframes float { 0%, 100% { transform: translateY(0px); } 50% { transform: translateY(-15px); } }
.animate-float { animation: float 6s ease-in-out infinite; }
@keyframes bubbleIn { 0% { opacity: 0; transform: translateY(12px) scale(0.92); } 100% { opacity: 1; transform: none; } }

/* =================================================================== */
/* 3. COMPONENTE: SOLUÇÕES / FLUXOS E DASHBOARD MINI (index.html)      */
/* =================================================================== */
.flow-tab { text-align: left; border: 1px solid #e2e8f0; background: #fff; border-radius: 1.25rem; padding: 1.25rem 1.5rem; transition: all .3s ease; cursor: pointer; }
.flow-tab:hover { border-color: #cbd5e1; }
.flow-tab .flow-desc { display: none; }
.flow-tab .flow-eyebrow { color: #94a3b8; }
.flow-tab .flow-tab-icon { background: #f1f5f9; color: #94a3b8; transition: all .3s ease; }
.flow-tab[aria-selected="true"] { border-color: var(--accent, #3B82F6); box-shadow: 0 20px 45px -20px var(--accent, #3B82F6); }
.flow-tab[aria-selected="true"] .flow-desc { display: block; }
.flow-tab[aria-selected="true"] .flow-eyebrow { color: var(--accent, #3B82F6); }
.flow-tab[aria-selected="true"] .flow-tab-icon { background: var(--accent, #3B82F6); color: #fff; }

.flow-panel { display: none; }
.flow-panel.active { display: block; }
.flow-line { position: absolute; left: 1.25rem; top: 1.5rem; bottom: 1.5rem; width: 2px; transform: translateX(-1px); background: repeating-linear-gradient(to bottom, #cbd5e1 0 5px, transparent 5px 11px); z-index: 0; }
.flow-dot { position: absolute; left: 1.25rem; top: 1.5rem; width: 12px; height: 12px; border-radius: 9999px; background: var(--accent, #3B82F6); box-shadow: 0 0 14px 3px var(--accent, #3B82F6); transform: translate(-50%, -50%); z-index: 1; transition: top .7s cubic-bezier(.22,1,.36,1); }
.flow-step { position: relative; z-index: 2; display: flex; align-items: flex-start; gap: 1rem; padding: .55rem 0; }
.flow-node { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: #f1f5f9; color: #94a3b8; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1.25rem; transition: all .4s ease; }
.flow-step.lit .flow-node { background: var(--accent, #3B82F6); color: #fff; transform: scale(1.06); box-shadow: 0 10px 22px -8px var(--accent, #3B82F6); }
.flow-step h4 { transition: color .3s ease; }
.flow-step.lit h4 { color: var(--accent, #3B82F6); }

.dm-bar { width: 0; transition: width 1s cubic-bezier(.22,1,.36,1); }
.chart-line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 400; stroke-dashoffset: 400; }
.chart-area { opacity: 0; }
.flow-panel.active .chart-line { animation: chartDraw 1.5s ease forwards; }
.flow-panel.active .chart-area { animation: chartFade 1.2s .3s ease forwards; }
@keyframes chartDraw { to { stroke-dashoffset: 0; } }
@keyframes chartFade { to { opacity: .18; } }

.donut { width: 76px; height: 76px; border-radius: 9999px; background: conic-gradient(#3B82F6 0 62%, #22c55e 62% 90%, #94a3b8 90% 100%); position: relative; }
.donut::after { content: ''; position: absolute; inset: 13px; background: #f8fafc; border-radius: 9999px; }
.flow-panel.active .donut { animation: donutIn .8s ease both; }
@keyframes donutIn { from { opacity: 0; transform: scale(.85) rotate(-25deg); } to { opacity: 1; transform: none; } }

/* =================================================================== */
/* 4. COMPONENTE: ECOSSISTEMA ORBITAL                                  */
/* =================================================================== */
.orbit-node { position: absolute; transform: translate(-50%, -50%); cursor: pointer; background: none; border: none; z-index: 30 !important; pointer-events: auto !important; }
.orbit-ico { transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); pointer-events: none; }
.orbit-node.on .orbit-ico, .orbit-node:hover .orbit-ico { transform: scale(1.18) !important; background: linear-gradient(135deg, #3482ff, #30dbf2) !important; color: #ffffff !important; border-color: transparent !important; box-shadow: 0 12px 34px rgba(52, 130, 255, 0.6) !important; }
.orbit-node.on span, .orbit-node:hover span { color: #ffffff !important; font-weight: 700 !important; }
.orbit-line { stroke: #30dbf2; stroke-width: 0.35; opacity: 0.18; transition: opacity 0.3s, stroke 0.3s, stroke-width 0.3s; }
.orbit-line.on { stroke: var(--color-support-green, #91d329) !important; stroke-width: 0.8 !important; opacity: 1 !important; filter: drop-shadow(0 0 3px rgba(145, 211, 41, 0.8)) !important; }

/* =================================================================== */
/* 5. COMPONENTE: OMNICHANNEL (index.html)                             */
/* =================================================================== */
.omni-chan { position: absolute; transform: translate(-50%, -50%); }
.omni-chan-box { width: 52px; height: 52px; border-radius: 14px; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(0,0,0,.25); transition: transform .45s ease, box-shadow .45s ease; }
.omni-chan-box i { font-size: 26px; color: var(--c); line-height: 1; }
.omni-chan.active .omni-chan-box { transform: scale(1.15); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 32%, transparent), 0 12px 28px rgba(0,0,0,.35); }
@keyframes omniFlow { from { stroke-dashoffset: 100; } to { stroke-dashoffset: 0; } }
#omni-chip .chip-hand { display: none; }
#omni-chip.handoff .chip-ia { display: none; }
#omni-chip.handoff .chip-hand { display: inline-flex; }

/* =================================================================== */
/* 6. COMPONENTE: WITAGENT CHAT & AURORA (provedores/associacoes)      */
/* =================================================================== */
.wa-aurora { animation: aurora 16s ease-in-out infinite; }
@keyframes aurora { 0% { transform: translate(0) scale(1); opacity: 0.8; } 50% { transform: translate(8%, 5%) scale(1.2); opacity: 1; } 100% { transform: translate(0) scale(1); opacity: 0.8; } }
.wa-loop-pulse { animation: loopPulse 3.2s ease-in-out infinite; }
@keyframes loopPulse { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: 100%; opacity: 0; } }
.wa-msg { display: flex !important; animation: waPop 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
@keyframes waPop { 0% { opacity: 0; transform: translateY(14px) scale(0.96); } 100% { opacity: 1; transform: none; } }
.wa-typing { display: flex !important; align-items: center; }
.wa-dot { width: 6px; height: 6px; border-radius: 9999px; background: #94a3b8; display: inline-block; animation: waDot 1.2s infinite; }
.wa-dot:nth-child(2) { animation-delay: 0.2s; }
.wa-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes waDot { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* =================================================================== */
/* 7. COMPONENTE: FAQ (Todas as páginas)                               */
/* =================================================================== */
.faq-item { transition: background-color 0.2s ease; }
.faq-panel { transition: all 0.3s ease-in-out; }
.faq-panel.hidden { display: none !important; }

/* =================================================================== */
/* 8. COMPONENTE: CARROSSEL E TIMELINE                                 */
/* =================================================================== */
.carousel-dark-slide { display: flex !important; gap: 1.5rem !important; overflow-x: auto !important; scroll-snap-type: x mandatory !important; scroll-behavior: smooth !important; -webkit-overflow-scrolling: touch; padding-top: 1rem; padding-bottom: 1.5rem; }
.carousel-dark-slide .slide-box { scroll-snap-align: center !important; flex: 0 0 85vw !important; width: 85vw !important; max-width: 85vw !important; }
@media (min-width: 768px) { .carousel-dark-slide .slide-box { flex: 0 0 380px !important; width: 380px !important; max-width: 380px !important; } }
.timeline-card { transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important; }
.timeline-card.active { opacity: 1 !important; transform: scale(1) !important; filter: blur(0px) !important; z-index: 10; }
.timeline-card.inactive { opacity: 0.45 !important; transform: scale(0.92) !important; filter: blur(1px) !important; z-index: 1; }

/* =================================================================== */
/* 9. COMPONENTE: LOGOS MARQUEE (INDEX.HTML & INTERNAS)                */
/* =================================================================== */
@keyframes marquee { 0% { transform: translateX(0%); } 100% { transform: translateX(-50%); } }
.animate-marquee { display: flex !important; width: max-content !important; will-change: transform !important; animation: marquee 25s linear infinite !important; }
.marquee-container:hover .animate-marquee { animation-play-state: paused !important; }

#secao-marcas-associacao .marquee-content, #secao-marcas-provedores .marquee-content { display: flex !important; width: max-content !important; will-change: transform !important; animation: marquee 25s linear infinite !important; }
#secao-marcas-associacao .marquee-track, #secao-marcas-provedores .marquee-track { display: flex !important; align-items: center !important; flex-shrink: 0 !important; }
#secao-marcas-associacao .marquee-item, #secao-marcas-provedores .marquee-item { display: inline-flex !important; align-items: center !important; justify-content: center !important; flex-shrink: 0 !important; margin-right: 48px !important; user-select: none !important; }
#secao-marcas-associacao .marquee-item img, #secao-marcas-provedores .marquee-item img { width: 160px !important; height: auto !important; max-width: none !important; object-fit: contain !important; }
#secao-marcas-associacao .marquee-container:hover .marquee-content, #secao-marcas-provedores .marquee-container:hover .marquee-content { animation-play-state: paused !important; }

/* SVGs Inline Index */
.cli-logo { height: 4.5rem; width: 9rem; background-size: auto 175%; background-repeat: no-repeat; background-position: center; opacity: .55; transition: opacity .3s ease; flex-shrink: 0; }
.cli-logo:hover { opacity: 1; }
.cli-logo.logo-desktop { background-size: auto 122%; }

/* Acessibilidade */
@media (prefers-reduced-motion: reduce) {
  *, ::after, ::before { animation: none !important; scroll-behavior: auto !important; }
  .animate-marquee, .wg-scroll, .wa-aurora, .wa-loop-pulse, .orbit-line { animation: none !important; }
}

/* =================================================================== */
/* ⚙️ EFEITOS ESPECÍFICOS DE MÍDIA E PERFORMANCE (performance.html)    */
/* =================================================================== */

/* 1. Rotação das engrenagens */
.gear-cw { animation: gspin 8s linear infinite; }
.gear-ccw { animation: gspin 8s linear infinite reverse; }
@keyframes gspin { to { transform: rotate(360deg); } }

/* 2. Movimento da linha tracejada de fluxo */
.flow-dash { animation: dashmove 1.2s linear infinite; }
@keyframes dashmove { to { stroke-dashoffset: -20; } }

/* 3. Acessibilidade: Pausa as animações se o usuário tiver restrição de movimento ativada no SO */
@media (prefers-reduced-motion: reduce) {
  .flow-dash, .gear-cw, .gear-ccw { animation: none !important; }
}

/* =================================================================== */
/* COMPONENTE: WIT GUARD AUTO-SCROLL                                   */
/* =================================================================== */
.wg-scroll {
  /* Anima usando a variável --wg calculada pelo JS */
  animation: wgAutoScroll 12s ease-in-out infinite alternate;
  will-change: transform;
}

/* Pausa a rolagem se o usuário passar o mouse por cima para conseguir ler */
#wgViewport:hover .wg-scroll {
  animation-play-state: paused;
}

@keyframes wgAutoScroll {
  0%, 15% { transform: translateY(0); }
  85%, 100% { /* O JS insere o valor exato aqui; -150px é um fallback seguro */ transform: translateY(var(--wg, -150px)); }
}

/* Correção de setas do Menu Desktop */
.group\/link {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.group\/link i {
    flex-shrink: 0;
}

/* ================================================================= */
/* 🎨 CLASSES CSS PARA AS TRILHAS DE MATERIAIS RICOS                 */
/* ================================================================= */

/* Esconde a barra de rolagem mas mantém o scroll funcionando em todas as plataformas */
.smooth-scroll {
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x pan-y;
}

/* =================================================================== */
/* COMPONENTE: TRABALHE CONOSCO (Depoimentos e Animações)              */
/* =================================================================== */

/* Tipografia auxiliar Removida (A Gotham já rege o display agora via Tailwind config) */
/* .font-mont foi desativado em favor da nova config do Tailwind */

/* Esconder barra de rolagem no trilho de depoimentos */
#depTrack { scrollbar-width: none; -ms-overflow-style: none; }
#depTrack::-webkit-scrollbar { display: none; }

/* Animação de entrada (Scroll Reveal) */
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-in { animation: revUp 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
@keyframes revUp { to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* =================================================================== */
/* COMPONENTE: ENTERPRISE (Classes Exclusivas)                         */
/* =================================================================== */
.hair { border-color: #E6E6EA; }
.kicker { letter-spacing: .26em; }
.ul-green {
    background-image: linear-gradient(#91D329, #91D329);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 4px;
}

/* Loop Agentico */
.loop-step { border-top: 2px solid #E6E6EA; transition: all .35s; }
.loop-step.active { border-top-color: #3482FF; }
.loop-step.active .ls-t, .loop-step.active .ls-n { color: #3482FF; }

/* Flow Track Horizontal (Cadeia de Valor Enterprise) */
#cadeia .flow-line {
    background: linear-gradient(90deg, #3482FF, #30DBF2, #91D329, #008E88, #9E3AD0, #3482FF);
    background-size: 200% 100%;
    animation: flowShim 5s linear infinite;
}
@keyframes flowShim { to { background-position: -200% 0; } }

#cadeia .flow-dot { animation: flowTravel 4.5s cubic-bezier(.45, 0, .55, 1) infinite; }
@keyframes flowTravel {
    0% { left: 10%; opacity: 0; }
    8%, 92% { opacity: 1; }
    100% { left: 90%; opacity: 0; }
}

/* Carrossel de Cases */
#casesTrack { scrollbar-width: none; -ms-overflow-style: none; }
#casesTrack::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
    #cadeia .flow-line, #cadeia .flow-dot { animation: none !important; }
}
details summary::-webkit-details-marker { display: none; }

/* =================================================================== */
/* COMPONENTE: FORMULÁRIOS HUBSPOT (GLOBAL)                            */
/* =================================================================== */

.hbspt-form, .hs-form {
  font-family: 'Gotham Pro', 'Inter', sans-serif !important;
  width: 100%;
}
.hs-form *, .hs-form *:before, .hs-form *:after { box-sizing: border-box !important; }

.mundiale-form-card .hs-form {
  background-color: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 24px !important;
  padding: 2.5rem !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.hs-form fieldset { border: none !important; padding: 0 !important; margin: 0 0 1rem 0 !important; max-width: 100% !important; }
.hs-form fieldset.form-columns-2 { display: flex !important; flex-direction: column !important; gap: 1rem !important; }
@media (min-width: 768px) { .hs-form fieldset.form-columns-2 { flex-direction: row !important; } }
.hs-form-field { width: 100% !important; float: none !important; padding: 0 !important; }

.hs-form label:not(.hs-error-msgs label) {
  display: block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #64748B !important; 
  margin-bottom: 0.5rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

.hs-form .hs-input {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0.875rem 1rem !important;
  border-radius: 12px !important;
  background-color: #f8fafc !important;
  border: 1px solid #E2E8F0 !important;
  font-size: 0.875rem !important;
  color: #475569 !important;
  outline: none !important;
  transition: border-color 0.3s ease !important;
  box-shadow: none !important;
}
.hs-form .hs-input:focus { border-color: #06B6D4 !important; background-color: #FFFFFF !important; }
.hs-form .actions { margin-top: 1.5rem !important; padding: 0 !important; }

.hs-form .hs-button {
  width: 100% !important;
  padding: 1rem !important;
  border-radius: 20px !important;
  background-color: #91d329 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  font-size: 1rem !important;
  border: none !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05) !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  text-align: center !important;
}
.hs-form .hs-button:hover {
  background-color: #3482ff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04) !important;
}

.hs-form .hs-error-msgs label { color: #ef4444 !important; font-size: 11px !important; font-weight: 600 !important; text-transform: none !important; margin-top: 4px !important; }
.hs-form .hs-input.error { border-color: #ef4444 !important; }

.hs-form .hs-richtext, .hs-form .hs-richtext p, .hs-form .hs-richtext span { font-size: 10px !important; color: #64748B !important; line-height: 1.2 !important; margin-bottom: 0.5rem !important; }
.hs-form .hs-richtext a { color: #3482FF !important; text-decoration: underline !important; font-weight: 600 !important; }

.hs-form input[type="checkbox"], .hs-form input[type="radio"] { width: auto !important; height: auto !important; padding: 0 !important; margin: 0 8px 0 0 !important; vertical-align: middle !important; display: inline-block !important; cursor: pointer !important; }
.hs-form .inputs-list { list-style: none !important; padding: 0 !important; margin: 0 !important; }
.hs-form .inputs-list li label { display: inline-flex !important; align-items: center !important; font-weight: 500 !important; text-transform: none !important; color: #475569 !important; font-size: 14px !important; margin-bottom: 0.5rem !important; cursor: pointer !important; }

/* =================================================================== */
/* OMNICHANNEL / ÓRBITAS - ANIMAÇÕES                                   */
/* =================================================================== */
@keyframes orbit-spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes orbit-counter-spin { from { transform: rotate(0deg); } to { transform: rotate(-360deg); } }
.orbit-container { animation: orbit-spin 30s linear infinite; }
.orbit-icon { animation: orbit-counter-spin 30s linear infinite; }
.orbit-wrapper:hover .orbit-container, .orbit-wrapper:hover .orbit-icon { animation-play-state: paused; }

/* Remove CSS do Tailwind Base incluído manualmente no final do seu arquivo antigo */
/* Para gerar um arquivo mais leve e blindado */


/* =================================================================== */
/* CTA WHATSAPP FINAL DA PÁGINA                                  */
/* =================================================================== */
.whatsapp-cta {
    /* Posicionamento e fixação na tela */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;

    /* Tamanho e formato */
    width: 60px;
    height: 60px;
    border-radius: 50%;

    /* Cores */
    background-color: #25d366;
    color: #ffffff;

    /* Alinhamento do ícone */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 34px; /* Tamanho do ícone */
    text-decoration: none;

    /* Sombra para destaque */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);

    /* Animação que dura 30s em loop */
    animation: flipAttention 30s infinite;
    transition: transform 0.2s ease, background-color 0.2s ease;
}

/* Efeito ao passar o mouse */
.whatsapp-cta:hover {
    background-color: #20b858;
    transform: scale(1.08); /* Dá uma leve aumentada (independente do keyframe) */
    animation-play-state: paused; /* Pausa a animação do flip se o usuário for clicar */
}

/* 
  Lógica da animação de 30 segundos:
  0% a 96% (ou seja, os primeiros ~28,8 segundos) o botão fica parado.
  96% a 100% (os últimos ~1,2 segundos) ele realiza o flip de 360 graus.
*/
@keyframes flipAttention {
    0%, 96% {
        transform: rotateY(0deg);
    }
    98% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}


/* ==========================================================================
   ANIMAÇÃO MESSAGE ADS (GLASSMORPHISM) PÁGINA PERFORMANCE
   ========================================================================== */

.message-ads-animation-wrapper {
    position: relative;
    height: 480px;
    background-image: url('media/mulher-smartphone-cidade.jpg'); 
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Importante para o slide-in não vazar a tela */
}

.anim-card {
    position: absolute;
    width: 90%;
    max-width: 380px;
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.8);
    border: 1px solid rgba(255,255,255,0.5);
    opacity: 0;
}

/* --- ESTILOS DO CONTEÚDO --- */
.google-card { padding: 24px; animation: showGoogle 10s infinite; }
.g-logo { font-size: 24px; font-weight: bold; margin-bottom: 12px; letter-spacing: -0.5px; }
.sponsored { font-size: 12px; color: #555; margin-bottom: 6px; font-weight: 600; }
.url { font-size: 12px; color: #202124; margin-bottom: 6px; }
.title { font-size: 18px; color: #1a0dab; margin-bottom: 10px; line-height: 1.3; font-weight: 500; }
.desc { font-size: 13px; color: #4d5156; margin-bottom: 16px; line-height: 1.4; }

.btn-row { display: flex; gap: 10px; margin-bottom: 12px; }
.btn-small { flex: 1; padding: 10px; border-radius: 20px; border: 1px solid rgba(0,0,0,0.1); background: rgba(255,255,255,0.8); text-align: center; font-size: 13px; font-weight: 600; color: #3c4043; }

/* Botão com animação de clique */
.btn-wa { background: #b0f065; border: 1px solid #9ad655; border-radius: 20px; padding: 12px; text-align: center; font-weight: bold; color: #2d4a11; font-size: 14px; animation: buttonClick 10s infinite; }

/* Card do WhatsApp */
.wa-card { 
    padding: 0; 
    animation: showWA 10s infinite; 
    border-radius: 16px; 
    overflow: hidden;
    /* Hack para o Safari respeitar o corte de cantos com blur */
    -webkit-mask-image: -webkit-radial-gradient(white, black); 
}

.wa-header { 
    background: #25D366; 
    padding: 16px 20px; 
    color: white; 
    font-weight: 600; 
    font-size: 16px; 
    display: flex; 
    align-items: center; 
    gap: 10px; 
    /* Arredondando os cantos superiores do cabeçalho verde */
    border-radius: 15px 15px 0 0; 
}

.wa-body { 
    padding: 20px; 
    background: rgba(240, 242, 245, 0.7); 
    display: flex; 
    flex-direction: column; 
    gap: 12px; 
    /* Arredondando os cantos inferiores do fundo cinza */
    border-radius: 0 0 15px 15px; 
}

/* Elementos do WhatsApp com controle pela timeline principal de 10s */
.msg-bot { background: white; padding: 14px; border-radius: 0 12px 12px 12px; font-size: 14px; color: #333; line-height: 1.4; box-shadow: 0 1px 2px rgba(0,0,0,0.05); width: 95%; opacity: 0; animation: animMsgBot 10s infinite; }
.msg-bot span { background: #dcf8c6; padding: 2px 6px; border-radius: 4px; font-weight: 600; }
.btn-option { background: #25D366; color: white; text-align: center; padding: 12px; border-radius: 8px; font-size: 14px; font-weight: 600; box-shadow: 0 2px 4px rgba(0,0,0,0.1); opacity: 0; }
.option-1 { animation: animOpt1 10s infinite; }
.option-2 { animation: animOpt2 10s infinite; }
.msg-user { background: #dcf8c6; padding: 14px; border-radius: 12px 0 12px 12px; font-size: 14px; color: #111; box-shadow: 0 1px 2px rgba(0,0,0,0.05); align-self: flex-end; font-weight: 500; opacity: 0; animation: animMsgUser 10s infinite; }

/* ==========================================================================
   TIMELINE (10 Segundos)
   ========================================================================== */

/* 1. Card do Google: Fade-in suave (0-5%), some aos 45% */
@keyframes showGoogle {
    0% { opacity: 0; transform: translateY(0); }
    5%, 45% { opacity: 1; transform: translateY(0); z-index: 5; }
    50%, 100% { opacity: 0; transform: translateY(0); z-index: -1; }
}

/* 2. Animação visível de Clique: Ocorre entre 38% e 42% (Aprox 4 segundos) */
@keyframes buttonClick {
    0%, 38% { transform: scale(1); background-color: #b0f065; box-shadow: none; }
    40% { transform: scale(0.94); background-color: #9cdb51; box-shadow: inset 0 3px 6px rgba(0,0,0,0.15); }
    42%, 100% { transform: scale(1); background-color: #b0f065; box-shadow: none; }
}

/* 3. Card do WhatsApp: Slide-in da Direita (45-50%), Fade-out no final (85-90%) */
@keyframes showWA {
    0%, 45% { opacity: 0; transform: translateX(80px); z-index: -1; } /* Fora de tela, direita */
    50%, 85% { opacity: 1; transform: translateX(0); z-index: 10; } /* Entra deslizando e fica */
    90%, 100% { opacity: 0; transform: translateX(0); z-index: 10; } /* Sai com fade-out */
}

/* 4. Coreografia das mensagens no WhatsApp */
@keyframes animMsgBot {
    0%, 52% { opacity: 0; transform: translateY(10px); }
    55%, 85% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes animOpt1 {
    0%, 56% { opacity: 0; transform: translateY(10px); }
    59%, 85% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes animOpt2 {
    0%, 58% { opacity: 0; transform: translateY(10px); }
    61%, 85% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(0); }
}
@keyframes animMsgUser {
    0%, 68% { opacity: 0; transform: translateY(10px); }
    71%, 85% { opacity: 1; transform: translateY(0); }
    90%, 100% { opacity: 0; transform: translateY(0); }
}
