/* rede-wifi-empresarial — estilo exclusivo desta tela.
   O que e reaproveitado por mais de uma pagina mora em css/style.css,
   que carrega antes deste. */
/* ===== 24-cena-rede.css ===== */
/* Cena da hero nova de /servicos/rede-wifi-empresarial/: a cobertura se
   formando, em tres atos.

   Antes: um unico ponto de acesso jogado num canto, cobrindo um pedaco do
   andar, com o mapa de calor caindo para o vermelho no fundo. Entao a faixa
   do site survey varre a planta. Depois: o ponto e realocado — viaja ate o lugar
   certo e a cobertura vai junto — e outros tres acendem, ate o andar inteiro
   ficar coberto.

   A planta nao e de ninguem: sao retas soltas com vaos de porta, so para o olho
   ler "andar". Nao ha contagem de pontos nem modelo de equipamento afirmado.

   Todas as medidas sao `cqw`, a largura da propria cena. O viewBox tem 100
   unidades para 100cqw, entao uma unidade dele e exatamente 1cqw — e o mesmo
   numero vale para o HTML e para o SVG. */
.rwf-cena {
  position: relative;
  width: 100%;
  max-width: 34rem;
  margin-inline: auto;
  aspect-ratio: 400 / 384;
  container-type: inline-size;
}

.rwf-fundo {
  position: absolute;
  inset: -4%;
  background:
    radial-gradient(circle at 42% 34%, rgba(57, 150, 216, 0.1), transparent 54%),
    radial-gradient(circle at 78% 82%, rgba(22, 163, 74, 0.06), transparent 44%);
  filter: blur(6px);
}

/* --- A planta --- */
.rwf-planta {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  overflow: visible;
}

/* O piso, para a planta ter corpo por baixo do sinal. */
.rwf-chao {
  fill: #fff;
  opacity: 0.66;
}

.rwf-paredes line {
  stroke: #94a3b8;
  stroke-width: 1.6;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

/* O sinal e recortado pelo piso: solto, ele vazava para fora das paredes e
   lavava a figura inteira. */
.rwf-coberturas,
.rwf-mapa,
.rwf-survey-caixa {
  clip-path: url(#rwf-piso);
}

.rwf-cobertura {
  fill: url(#rwf-sinal);
  transform-box: view-box;
  opacity: 0;
}

/* O mapa do "antes": sai de cena enquanto o ponto viaja para o lugar certo. */
.rwf-mapa {
  fill: url(#rwf-calor);
  animation: rwf-mapa 15s ease-out infinite;
}

@keyframes rwf-mapa {
  0%,
  40.0% {
    opacity: 1;
  }

  48.0%,
  95.99% {
    opacity: 0;
  }

  96.0%,
  100% {
    opacity: 1;
  }
}

/* A faixa do site survey, atravessando a planta de ponta a ponta. */
.rwf-survey {
  fill: url(#rwf-faixa);
  transform-box: view-box;
  opacity: 0;
  animation: rwf-survey 15s linear infinite;
}

@keyframes rwf-survey {
  0%,
  29.99% {
    translate: 0 0;
    opacity: 0;
  }

  31.0% {
    translate: 0 0;
    opacity: 1;
  }

  43.0% {
    opacity: 1;
  }

  44.0%,
  100% {
    translate: 96px 0;
    opacity: 0;
  }
}

/* --- Os pontos de acesso --- */
.rwf-ponto {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 9.0cqw;
  height: 9.0cqw;
  border-radius: 9999px;
  border: 1px solid #dbeafe;
  background: #fff;
  font-size: 3.4cqw;
  color: #3996d8;
  box-shadow: 0 0 0 1.2cqw rgba(57, 150, 216, 0.08), 0 1.4cqw 3cqw rgba(15, 23, 42, 0.1);
  opacity: 0;
}

.rwf-ponto-a {
  left: 7.5cqw;
  top: 57.5cqw;
  opacity: 1;
  animation: rwf-muda-ponto 15s cubic-bezier(0.55, 0, 0.2, 1) infinite;
}

@keyframes rwf-muda-ponto {
  0%,
  40.0% {
    translate: 0 0;
    opacity: 1;
  }

  48.0%,
  88.0% {
    translate: 9.0cqw -39.0cqw;
    opacity: 1;
  }

  96.0%,
  100% {
    translate: 0 0;
    opacity: 1;
  }
}

/* A cobertura acompanha a viagem e so cresce quando o ponto pousa. */
.rwf-cobertura-a {
  transform-origin: 12.0px 62.0px;
  opacity: 1;
  animation: rwf-muda-sinal 15s cubic-bezier(0.55, 0, 0.2, 1) infinite;
}

@keyframes rwf-muda-sinal {
  0%,
  47.99% {
    translate: 9.0px -39.0px;
    scale: 0.76;
    opacity: 0;
  }

  48.0% {
    translate: 9.0px -39.0px;
    scale: 0.76;
    opacity: 1;
  }

  52%,
  88.0% {
    translate: 9.0px -39.0px;
    scale: 1;
    opacity: 1;
  }

  96.0%,
  100% {
    translate: 0 0;
    scale: 0.76;
    opacity: 1;
  }
}

.rwf-ponto-b {
  left: 57.5cqw;
  top: 9.5cqw;
  animation: rwf-acende-b 15s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}

@keyframes rwf-acende-b {
  0%,
  51.99% {
    opacity: 0;
    scale: 0.4;
  }

  56%,
  88.0% {
    opacity: 1;
    scale: 1;
  }

  96.0%,
  100% {
    opacity: 0;
    scale: 0.4;
  }
}

.rwf-cobertura-b {
  transform-origin: 62.0px 14.0px;
  animation: rwf-abre-b 15s cubic-bezier(0.25, 0.8, 0.35, 1) infinite;
}

@keyframes rwf-abre-b {
  0%,
  51.99% {
    scale: 0.1;
    opacity: 0;
  }

  60%,
  88.0% {
    scale: 1;
    opacity: 1;
  }

  96.0%,
  100% {
    scale: 0.1;
    opacity: 0;
  }
}

.rwf-ponto-c {
  left: 30.5cqw;
  top: 53.5cqw;
  animation: rwf-acende-c 15s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}

@keyframes rwf-acende-c {
  0%,
  57.99% {
    opacity: 0;
    scale: 0.4;
  }

  62%,
  88.0% {
    opacity: 1;
    scale: 1;
  }

  96.0%,
  100% {
    opacity: 0;
    scale: 0.4;
  }
}

.rwf-cobertura-c {
  transform-origin: 35.0px 58.0px;
  animation: rwf-abre-c 15s cubic-bezier(0.25, 0.8, 0.35, 1) infinite;
}

@keyframes rwf-abre-c {
  0%,
  57.99% {
    scale: 0.1;
    opacity: 0;
  }

  66%,
  88.0% {
    scale: 1;
    opacity: 1;
  }

  96.0%,
  100% {
    scale: 0.1;
    opacity: 0;
  }
}

.rwf-ponto-d {
  left: 76.5cqw;
  top: 47.5cqw;
  animation: rwf-acende-d 15s cubic-bezier(0.34, 1.4, 0.5, 1) infinite;
}

@keyframes rwf-acende-d {
  0%,
  63.99% {
    opacity: 0;
    scale: 0.4;
  }

  68%,
  88.0% {
    opacity: 1;
    scale: 1;
  }

  96.0%,
  100% {
    opacity: 0;
    scale: 0.4;
  }
}

.rwf-cobertura-d {
  transform-origin: 81.0px 52.0px;
  animation: rwf-abre-d 15s cubic-bezier(0.25, 0.8, 0.35, 1) infinite;
}

@keyframes rwf-abre-d {
  0%,
  63.99% {
    scale: 0.1;
    opacity: 0;
  }

  72%,
  88.0% {
    scale: 1;
    opacity: 1;
  }

  96.0%,
  100% {
    scale: 0.1;
    opacity: 0;
  }
}

.rwf-legenda-antes {
  animation: rwf-legenda-antes 15s ease-out infinite;
}

@keyframes rwf-legenda-antes {
  0%,
  29.0% {
    opacity: 1;
  }

  31.0%,
  96.0% {
    opacity: 0;
  }

  98.0%,
  100% {
    opacity: 1;
  }
}

.rwf-legenda-survey {
  animation: rwf-legenda-survey 15s ease-out infinite;
}

@keyframes rwf-legenda-survey {
  0%,
  29.0% {
    opacity: 0;
  }

  31.0%,
  50.0% {
    opacity: 1;
  }

  52.0%,
  100% {
    opacity: 0;
  }
}

.rwf-legenda-obra {
  animation: rwf-legenda-obra 15s ease-out infinite;
}

@keyframes rwf-legenda-obra {
  0%,
  50.0% {
    opacity: 0;
  }

  52.0%,
  74.0% {
    opacity: 1;
  }

  76.0%,
  100% {
    opacity: 0;
  }
}

.rwf-legenda-depois {
  animation: rwf-legenda-depois 15s ease-out infinite;
}

@keyframes rwf-legenda-depois {
  0%,
  74.0% {
    opacity: 0;
  }

  76.0%,
  96.0% {
    opacity: 1;
  }

  98.0%,
  100% {
    opacity: 0;
  }
}

/* --- A legenda, que conta em que ato a cena esta --- */
.rwf-legenda {
  position: absolute;
  top: 84.0cqw;
  left: 0;
  right: 0;
  display: inline-grid;
  justify-items: center;
}

.rwf-legenda > * {
  grid-area: 1 / 1;
  display: flex;
  align-items: center;
  gap: 1.4cqw;
  padding: 1.4cqw 3cqw;
  border-radius: 9999px;
  border: 1px solid transparent;
  font-size: 2.1cqw;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.rwf-legenda-antes {
  border-color: #fecaca;
  background: #fef2f2;
  color: #b91c1c;
}

.rwf-legenda-survey {
  border-color: rgba(57, 150, 216, 0.3);
  background: rgba(57, 150, 216, 0.08);
  color: #1e6fa9;
  opacity: 0;
}

.rwf-legenda-obra {
  border-color: rgba(57, 150, 216, 0.3);
  background: rgba(57, 150, 216, 0.08);
  color: #1e6fa9;
  opacity: 0;
}

.rwf-legenda-depois {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #16a34a;
  opacity: 0;
}

/* Quem pediu menos movimento ve o andar ja coberto, que e o desfecho. */
@media (prefers-reduced-motion: reduce) {
  .rwf-cena * {
    animation: none !important;
  }

  .rwf-cobertura,
  .rwf-ponto,
  .rwf-legenda-depois {
    opacity: 1;
    scale: 1;
  }

  .rwf-cobertura-a,
  .rwf-ponto-a {
    translate: 9.0cqw -39.0cqw;
  }

  .rwf-mapa,
  .rwf-survey,
  .rwf-legenda-antes,
  .rwf-legenda-survey,
  .rwf-legenda-obra {
    opacity: 0;
  }
}

