/* ==========================================================================
   CENAS DA ABERTURA DAS PÁGINAS DE SERVIÇO (21/10/2026)

   Cada página mostra o próprio serviço acontecendo, como a busca faz na home
   e em Google Ads:
   - .cena--site  (Criação de sites): o site se monta no navegador, aparece no
     celular e chega um contato.
   - .cena--chat  (Agentes de IA): o cliente pergunta, o agente responde,
     oferece horários e agenda, fora do horário comercial.

   Só CSS, em laço: todas as peças têm a MESMA duração e só mudam o atraso, então
   a sequência se mantém a cada volta. Sem movimento (prefers-reduced-motion),
   a cena fica parada no estado final.
   ========================================================================== */

.cena { position: relative; width: min(520px, 100%); margin: clamp(2rem, 4.5vh, 2.8rem) auto 0; text-align: left; }
.cena i, .cena b { font-style: normal; }

@keyframes cena-entra {
  0% { opacity: 0; transform: translateY(10px); }
  7%, 84% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: none; }
}
@keyframes cena-pisca {
  0% { opacity: 0; } 2%, 9% { opacity: 1; } 11%, 100% { opacity: 0; }
}
@keyframes cena-quica { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }

/* ---------------------------------------------------------- site ------- */
.cena--site { height: 300px; }
.cena-site__janela {
  position: absolute; left: 0; top: 0; width: 430px; max-width: 86%; height: 268px;
  border-radius: 14px; background: #1B1512; border: 1px solid var(--borda); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.cena-site__barra { display: flex; align-items: center; gap: 5px; height: 26px; padding: 0 10px; background: #241C17; border-bottom: 1px solid var(--borda); }
.cena-site__barra > b { width: 7px; height: 7px; border-radius: 50%; background: #5A4A3F; }
.cena-site__barra > span { margin-left: 10px; flex: 1; height: 12px; border-radius: 6px; background: #1B1512;
  font-family: var(--maquina); font-size: .58rem; line-height: 12px; color: var(--apoio); padding-left: 8px; letter-spacing: .02em; }
.cena-site__peca { position: absolute; display: block; border-radius: 4px; background: #33281F;
  opacity: 0; animation: cena-entra 8s cubic-bezier(.22, .61, .36, 1) infinite; animation-delay: calc(var(--n) * 160ms); }
.cena-site__menu   { left: 18px; top: 40px; width: 70px; height: 8px; }
.cena-site__menu2  { right: 18px; top: 38px; width: 64px; height: 14px; border-radius: 7px; background: var(--acento); opacity: .9; }
.cena-site__titulo { left: 18px; top: 72px; width: 52%; height: 18px; background: var(--creme); }
.cena-site__titulo2{ left: 18px; top: 96px; width: 38%; height: 18px; background: var(--creme); }
.cena-site__texto  { left: 18px; top: 128px; width: 48%; height: 7px; }
.cena-site__texto2 { left: 18px; top: 141px; width: 40%; height: 7px; }
.cena-site__botao  { left: 18px; top: 164px; width: 96px; height: 22px; border-radius: 6px; background: var(--acento); }
.cena-site__foto   { right: 18px; top: 66px; width: 34%; height: 124px; border-radius: 10px;
  background: radial-gradient(60% 60% at 30% 30%, rgba(224, 185, 111, .35), transparent 70%), linear-gradient(135deg, #4A3A2E, #2A211B); }
.cena-site__cards  { left: 18px; right: 18px; top: 206px; height: 44px; border-radius: 8px;
  background: repeating-linear-gradient(90deg, #2B221B 0 31%, transparent 31% 34.5%); }

.cena-site__cel {
  position: absolute; right: 0; top: 46px; width: 118px; height: 236px; border-radius: 20px; padding: 10px 8px;
  background: #120E0B; border: 2px solid #3A2F27; box-shadow: 0 30px 50px -20px rgba(0, 0, 0, .85);
  opacity: 0; animation: cena-entra 8s cubic-bezier(.22, .61, .36, 1) infinite; animation-delay: 1.5s;
}
.cena-site__cel > b { display: block; border-radius: 3px; background: #33281F; margin-bottom: 7px; }
.cena-site__cel > b:nth-child(1) { width: 60%; height: 6px; }
.cena-site__cel > b:nth-child(2) { width: 90%; height: 11px; background: var(--creme); }
.cena-site__cel > b:nth-child(3) { width: 70%; height: 11px; background: var(--creme); }
.cena-site__cel > b:nth-child(4) { width: 100%; height: 70px; border-radius: 8px; background: linear-gradient(135deg, #4A3A2E, #2A211B); }
.cena-site__cel > b:nth-child(5) { width: 85%; height: 5px; }
.cena-site__cel > b:nth-child(6) { width: 60%; height: 5px; }
.cena-site__cel > b:nth-child(7) { width: 100%; height: 18px; border-radius: 9px; background: var(--acento); margin-top: 10px; }

.cena__aviso {
  position: absolute; display: flex; align-items: center; gap: .55rem; padding: .55rem .85rem; border-radius: 12px;
  background: rgba(23, 18, 15, .95); border: 1px solid rgba(224, 185, 111, .45); font-size: .78rem; color: var(--texto);
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, .85); white-space: nowrap;
  opacity: 0; animation: cena-entra 8s cubic-bezier(.22, .61, .36, 1) infinite;
}
.cena__aviso::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #3CCB6B; box-shadow: 0 0 0 4px rgba(60, 203, 107, .18); flex: none; }
.cena__aviso small { color: var(--apoio); font-size: .68rem; margin-left: .3rem; }
.cena--site .cena__aviso { left: 26px; bottom: 0; animation-delay: 2.6s; }

/* ---------------------------------------------------------- chat ------- */
.cena--chat { height: 420px; width: min(420px, 100%); }
.cena-chat__janela {
  position: absolute; inset: 0 0 30px 0; border-radius: 18px; overflow: hidden;
  background: #17110E; border: 1px solid var(--borda); box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8);
}
.cena-chat__topo { display: flex; align-items: center; gap: .6rem; padding: .7rem .9rem; background: #221A15; border-bottom: 1px solid var(--borda); }
.cena-chat__topo > i { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg, #4A3A2E, #2A211B); border: 1px solid var(--borda); flex: none; }
.cena-chat__topo b { display: block; font-size: .82rem; color: var(--texto); font-weight: 600; }
.cena-chat__topo small { display: block; font-size: .66rem; color: #3CCB6B; }
.cena-chat__topo > span:last-child { margin-left: auto; font-family: var(--maquina); font-size: .66rem; color: var(--apoio); }
.cena-chat__corpo { position: relative; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .45rem; }
.cena-chat__msg {
  max-width: 78%; padding: .45rem .7rem; border-radius: 12px; font-size: .78rem; line-height: 1.35;
  opacity: 0; animation: cena-entra 9s cubic-bezier(.22, .61, .36, 1) infinite;
}
.cena-chat__msg--cliente { align-self: flex-start; background: #2B221C; color: var(--texto); border-bottom-left-radius: 4px; }
.cena-chat__msg--agente { align-self: flex-end; background: rgba(224, 185, 111, .14); border: 1px solid rgba(224, 185, 111, .4); color: var(--creme); border-bottom-right-radius: 4px; }
.cena-chat__msg--agente::after { content: " ✓✓"; color: var(--acento); font-size: .68rem; }
.cena-chat__chips { align-self: flex-end; display: flex; gap: .4rem; opacity: 0; animation: cena-entra 9s cubic-bezier(.22, .61, .36, 1) infinite; }
.cena-chat__chips > b { font-weight: 500; font-size: .72rem; padding: .3rem .65rem; border-radius: 999px; border: 1px solid rgba(224, 185, 111, .55); color: var(--acento); }
.cena-chat__digitando {
  position: absolute; right: .9rem; top: 3.1rem; display: flex; gap: 3px; padding: .5rem .65rem; border-radius: 12px;
  background: #2B221C; opacity: 0; animation: cena-pisca 9s linear infinite; animation-delay: .9s;
}
.cena-chat__digitando > b { width: 5px; height: 5px; border-radius: 50%; background: var(--apoio); animation: cena-quica 1s ease-in-out infinite; }
.cena-chat__digitando > b:nth-child(2) { animation-delay: .15s; }
.cena-chat__digitando > b:nth-child(3) { animation-delay: .3s; }
.cena-chat__corpo > :nth-child(1) { animation-delay: .2s; }
.cena-chat__corpo > :nth-child(2) { animation-delay: 1.9s; }
.cena-chat__corpo > :nth-child(3) { animation-delay: 2.7s; }
.cena-chat__corpo > :nth-child(4) { animation-delay: 3.8s; }
.cena-chat__corpo > :nth-child(5) { animation-delay: 4.8s; }
.cena--chat .cena__aviso { right: -18px; bottom: -4px; animation: cena-entra 9s cubic-bezier(.22, .61, .36, 1) infinite; animation-delay: 5.6s; }

/* ---------------------------------------------------- celular ---------- */
@media (max-width: 560px) {
  .cena--site { height: 250px; }
  .cena-site__janela { width: 78%; height: 220px; }
  .cena-site__cel { width: 96px; height: 196px; top: 40px; }
  .cena-site__cards { display: none; }
  .cena--chat .cena__aviso { right: 0; }
}

/* ---------------------------------------------------- sem movimento ---- */
@media (prefers-reduced-motion: reduce) {
  .cena-site__peca, .cena-site__cel, .cena__aviso, .cena-chat__msg, .cena-chat__chips { animation: none; opacity: 1; }
  .cena-chat__digitando { display: none; }
}
