/* =============================================================================
   VITRINE DE SERVIÇOS — MODELO 3 "Painel" (views/_servicos-vitrine-v3.php)
   Seção escura, todos os serviços visíveis em mosaico de cartões de vidro.
   ============================================================================= */
.v3 {
  --v3-fundo: #070b16;
  --v3-linha: rgba(255,255,255,.09);
  --v3-txt: rgba(255,255,255,.74);
  --v3-c: #6aa8ff;                       /* cor da frente (muda por .v3-c-*) */
  position: relative; overflow: hidden; isolation: isolate;
  padding: 0 0 clamp(72px, 9vw, 120px);
  background: var(--v3-fundo); color: #fff;
}
.v3-c-azul  { --v3-c: #6aa8ff; }
.v3-c-verde { --v3-c: #3fd68a; }
.v3-c-ouro  { --v3-c: #f2c14e; }
.v3-c-claro { --v3-c: #c9d4ff; }

/* Fundo: grade fina + luzes lentas */
.v3-fundo { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.v3-fundo::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(80% 60% at 50% 18%, #000 20%, transparent 80%); mask-image: radial-gradient(80% 60% at 50% 18%, #000 20%, transparent 80%);
}
.v3-fundo i { position: absolute; border-radius: 50%; filter: blur(120px); opacity: .32; animation: v3-flutua 20s ease-in-out infinite alternate; }
.v3-fundo i:nth-child(1) { width: 620px; height: 620px; background: #1d4ed8; top: -200px; left: -220px; }
.v3-fundo i:nth-child(2) { width: 480px; height: 480px; background: #b45309; top: 45%; right: -240px; opacity: .2; animation-delay: -7s; }
.v3-fundo i:nth-child(3) { width: 540px; height: 540px; background: #047857; bottom: -320px; left: 25%; opacity: .2; animation-delay: -13s; }
@keyframes v3-flutua { to { transform: translate(70px, 50px) scale(1.15); } }

/* Selos no topo, no mesmo tom (sem faixa branca solta entre partes escuras) */
.v3-selos { border-bottom: 1px solid var(--v3-linha); background: rgba(255,255,255,.025); margin-bottom: clamp(56px, 7vw, 96px); }
.v3-selos ul { list-style: none; margin: 0; padding: 20px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.v3-selos li { display: flex; align-items: center; gap: 12px; padding: 0 8px; }
.v3-selos li + li { border-left: 1px solid var(--v3-linha); padding-left: 20px; }
.v3-selo-ic { display: grid; place-items: center; flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px; color: #3fd68a; background: rgba(63,214,138,.1); border: 1px solid rgba(63,214,138,.25); }
.v3-selo-ic .ic { width: 18px; height: 18px; }
.v3-selos strong { display: block; font-size: .92rem; font-weight: 800; color: #fff; line-height: 1.3; }
.v3-selos small { display: block; font-size: .8rem; color: rgba(255,255,255,.6); line-height: 1.35; }

/* Cabeçalho */
.v3-head { max-width: 780px; margin: 0 auto clamp(36px, 4.5vw, 56px); text-align: center; }
.v3-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 7px 16px; border-radius: 999px;
  font-size: .74rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255,255,255,.85); background: rgba(255,255,255,.06); border: 1px solid var(--v3-linha);
}
.v3-eyebrow span { width: 7px; height: 7px; border-radius: 50%; background: #3fd68a; box-shadow: 0 0 12px #3fd68a; }
.v3-head h2 { margin: 22px 0 14px; color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -.035em; }
.v3-head h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #8fc1ff 0%, #ffffff 45%, #f2c14e 100%); background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: v3-brilho 7s linear infinite;
}
@keyframes v3-brilho { to { background-position: 220% center; } }
.v3-head p { margin: 0 auto; max-width: 560px; color: var(--v3-txt); font-size: 1.08rem; line-height: 1.6; }
.v3-legenda { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.v3-legenda li { display: inline-flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 700; color: rgba(255,255,255,.7); }
.v3-legenda b { width: 8px; height: 8px; border-radius: 50%; background: var(--v3-c); box-shadow: 0 0 10px var(--v3-c); }

/* Mosaico */
.v3-grade { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; grid-auto-flow: dense; }
.v3-pro { grid-column: span 2; grid-row: span 2; }
.v3-breve { grid-column: span 2; }

/* Cartão de vidro */
.v3-card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  padding: 26px 26px 24px; border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  border: 1px solid var(--v3-linha);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 60px -40px rgba(0,0,0,.9);
  transition: transform .5s var(--ease), border-color .35s, box-shadow .5s var(--ease);
}
/* luz que segue o mouse + filete colorido no topo */
.v3-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx) var(--my), color-mix(in srgb, var(--v3-c) 16%, transparent), transparent 60%);
}
.v3-card::after {
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--v3-c) 80%, transparent), transparent);
  opacity: .55; transition: opacity .4s;
}
.v3-card:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--v3-c) 40%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.09), 0 40px 70px -36px color-mix(in srgb, var(--v3-c) 45%, #000); }
.v3-card:hover::before, .v3-card:hover::after { opacity: 1; }
.v3-card:has(.v3-link:focus-visible) { outline: 2px solid var(--v3-c); outline-offset: 3px; }

.v3-topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; }
.v3-tag { white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; font-size: .7rem; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; color: var(--v3-c); }
.v3-ic { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; color: var(--v3-c);
  background: color-mix(in srgb, var(--v3-c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--v3-c) 30%, transparent); }
.v3-ic .ic { width: 17px; height: 17px; }
.v3-card h3 { margin: 22px 0 8px; font-size: 1.28rem; line-height: 1.2; letter-spacing: -.02em; color: #fff; }
.v3-link { color: #fff; text-decoration: none; }
.v3-link:focus-visible { outline: none; }
.v3-link-cheio::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.v3-texto { margin: 0; color: var(--v3-txt); font-size: .94rem; line-height: 1.55; }

.v3-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; margin-top: auto; padding-top: 22px; }
.v3-preco { display: flex; flex-direction: column; line-height: 1.15; }
.v3-de { font-size: .74rem; font-weight: 600; color: rgba(255,255,255,.55); }
.v3-preco strong { font-family: Inter, Manrope, sans-serif; font-size: 1.35rem; font-weight: 800; letter-spacing: -.015em; white-space: nowrap; color: #fff; }
.v3-preco strong small { font-size: .62em; font-weight: 700; opacity: .7; margin-left: 2px; }
.v3-seta { display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--v3-linha); color: #fff;
  transition: background-color .3s, border-color .3s, color .3s, transform .45s var(--ease); }
.v3-seta .ic { width: 17px; height: 17px; }
.v3-card:hover .v3-seta { background: var(--v3-c); border-color: var(--v3-c); color: #07101f; transform: rotate(-35deg); }
.v3-selo { padding: 4px 10px; border-radius: 999px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #07101f; background: var(--v3-c); }
.v3-selo-vazado { color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22); }

/* Visuais pequenos no canto (equalizador, onda, faíscas, anéis, sinal) */
.v3-vis { position: relative; display: flex; align-items: center; gap: 2px; height: 30px; margin-left: auto; }
.v3-vis-onda { width: 64px; }
.v3-vis-onda i { flex: 1; height: 100%; border-radius: 99px; background: var(--v3-c); opacity: .75; transform: scaleY(.15); animation: v3-onda 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * -66ms); }
@keyframes v3-onda { 0%, 100% { transform: scaleY(.12); } 50% { transform: scaleY(.95); } }
.v3-vis-brilho { display: block; width: 80px; }
.v3-vis-brilho i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: var(--v3-c); box-shadow: 0 0 10px var(--v3-c); opacity: 0; animation: v3-faisca 2.4s ease-in-out infinite; animation-delay: calc(var(--k) * -240ms); }
@keyframes v3-faisca { 0%, 100% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; transform: scale(1.4); } }
.v3-vis-ondas { display: block; width: 30px; }
.v3-vis-ondas i { position: absolute; left: 50% !important; top: 50% !important; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 1.5px solid var(--v3-c);
  opacity: 0; animation: v3-anel 2.7s ease-out infinite; animation-delay: calc(var(--k) * 900ms); }
.v3-vis-ondas i::before { content: none; }
@keyframes v3-anel { 0% { transform: scale(.25); opacity: .9; } 100% { transform: scale(1.3); opacity: 0; } }
.v3-vis-sinal { position: absolute; right: 26px; bottom: 24px; align-items: flex-end; gap: 6px; height: 46px; margin: 0; }
.v3-vis-sinal i { width: 9px; border-radius: 3px; background: var(--v3-c); opacity: .2; animation: v3-sinal 2.2s ease-in-out infinite; }
.v3-vis-sinal i:nth-child(1) { height: 25%; } .v3-vis-sinal i:nth-child(2) { height: 50%; animation-delay: .22s; }
.v3-vis-sinal i:nth-child(3) { height: 75%; animation-delay: .44s; } .v3-vis-sinal i:nth-child(4) { height: 100%; animation-delay: .66s; }
@keyframes v3-sinal { 0%, 100% { opacity: .2; } 40%, 60% { opacity: .9; } }

/* Plano Pro em destaque */
.v3-pro {
  padding: clamp(28px, 3.2vw, 42px);
  background: linear-gradient(150deg, rgba(106,168,255,.17) 0%, rgba(255,255,255,.035) 45%, rgba(255,255,255,.02) 100%);
  border-color: rgba(106,168,255,.3);
}
.v3-pro:hover { transform: none; }
.v3-pro-luz { position: absolute; z-index: -1; width: 420px; height: 420px; top: -180px; right: -120px; border-radius: 50%; background: #2563eb; filter: blur(110px); opacity: .35; pointer-events: none; }
.v3-pro h3 { margin-top: 26px; font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.05; letter-spacing: -.035em; }
.v3-pro .v3-texto { max-width: 520px; font-size: 1.02rem; }
.v3-ar { white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; padding: 5px 11px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.08); border: 1px solid var(--v3-linha); }
.v3-ar b { width: 7px; height: 7px; border-radius: 50%; background: #ff4d5e; animation: v3-pulso 1.8s infinite; }
@keyframes v3-pulso { 0% { box-shadow: 0 0 0 0 rgba(255,77,94,.6); } 70%, 100% { box-shadow: 0 0 0 8px rgba(255,77,94,0); } }
.v3-itens { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.v3-itens li { display: flex; align-items: center; gap: 10px; font-size: .95rem; color: rgba(255,255,255,.88); }
.v3-itens .ic { width: 17px; height: 17px; color: #3fd68a; flex-shrink: 0; }
.v3-pro-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-top: auto; padding-top: 30px; border-top: 1px solid var(--v3-linha); }
.v3-pro .v3-pro-pe { margin-top: 28px; }
.v3-preco-pro { gap: 2px; }
.v3-black { align-self: flex-start; margin-bottom: 8px; padding: 4px 11px; border-radius: 999px; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #0a0a0a; background: linear-gradient(90deg, #facc15, #f59e0b); }
.v3-preco-pro strong { font-size: clamp(2.3rem, 3.6vw, 2.9rem); letter-spacing: -.035em; }
.v3-nota { font-size: .8rem; color: rgba(255,255,255,.62); margin-top: 4px; max-width: 340px; line-height: 1.45; }
.v3-btns { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.v3-btn {
  display: inline-flex; justify-content: center; padding: 14px 26px; border-radius: 14px;
  font-weight: 800; font-size: .96rem; text-decoration: none; color: #07101f; position: relative; z-index: 2;
  background: linear-gradient(180deg, #ffffff, #dfe7f5); box-shadow: 0 12px 34px -10px rgba(143,193,255,.7);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.v3-btn:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -10px rgba(143,193,255,.9); }
.v3-mais { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-size: .88rem; font-weight: 700; color: rgba(255,255,255,.8); text-decoration: none; position: relative; z-index: 2; }
.v3-mais .ic { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.v3-mais:hover { color: #fff; }
.v3-mais:hover .ic { transform: translateX(3px); }
/* equalizador ao fundo do Pro */
.v3-eq { position: absolute; z-index: -1; right: 0; bottom: 0; left: 40%; height: 130px; display: flex; align-items: flex-end; gap: 4px; padding: 0 26px; opacity: .22; pointer-events: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%); mask-image: linear-gradient(90deg, transparent, #000 40%); }
.v3-eq i { flex: 1; height: 100%; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #8fc1ff, transparent); transform-origin: bottom; transform: scaleY(.2);
  animation: v3-eq 1.3s ease-in-out infinite; animation-delay: calc(var(--k) * -91ms); }
.v3-eq i:nth-child(3n) { animation-duration: .95s; }
.v3-eq i:nth-child(4n+1) { animation-duration: 1.6s; }
@keyframes v3-eq { 0%, 100% { transform: scaleY(.15); } 50% { transform: scaleY(1); } }

/* Em desenvolvimento */
.v3-breve { border-style: dashed; border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.025); }
.v3-breve:hover { transform: none; }
.v3-breve-in { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-top: auto; padding-right: 70px; }
.v3-breve h3 { margin-top: 22px; }
.v3-breve .v3-texto { max-width: 480px; }
.v3-avise { flex-shrink: 0; display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 800; font-size: .9rem; color: #07101f; background: #fff; text-decoration: none; transition: transform .3s var(--ease); }
.v3-avise .ic { width: 17px; height: 17px; }
.v3-avise:hover { transform: translateY(-2px); }

/* Entrada ao rolar (só quando o JS liga .v3-anima) */
.v3-anima .v3-card { opacity: 0; transform: translateY(28px); }
.v3-anima .v3-card.visto { opacity: 1; transform: none;
  transition: opacity .8s var(--ease) calc(var(--i) * 70ms), transform .8s var(--ease) calc(var(--i) * 70ms), border-color .35s, box-shadow .5s var(--ease); }
.v3-anima .v3-card.visto:hover { transform: translateY(-5px); transition-delay: 0s; }
.v3-anima .v3-pro.visto:hover, .v3-anima .v3-breve.visto:hover { transform: none; }

/* Tablet: 2 colunas */
@media (max-width: 1080px) {
  .v3-grade { grid-template-columns: repeat(2, 1fr); }
  .v3-pro { grid-row: auto; }
  .v3-selos ul { grid-template-columns: repeat(2, 1fr); row-gap: 16px; }
  .v3-selos li:nth-child(3) { border-left: 0; padding-left: 8px; }
}
/* Celular: 1 coluna */
@media (max-width: 680px) {
  .v3-grade { grid-template-columns: 1fr; gap: 14px; }
  .v3-pro, .v3-breve { grid-column: auto; }
  .v3-card { padding: 22px 20px 20px; border-radius: 20px; }
  .v3-pro { padding: 26px 20px 22px; }
  .v3-pro-pe { flex-direction: column; align-items: stretch; }
  .v3-eq { left: 0; height: 90px; }
  .v3-breve-in { flex-direction: column; align-items: flex-start; padding-right: 0; }
  .v3-vis-sinal { right: 20px; bottom: 22px; height: 34px; }
  .v3-topo { flex-wrap: wrap; row-gap: 12px; }
  .v3-legenda { gap: 8px 16px; }
}
@media (max-width: 520px) {
  .v3-selos ul { grid-template-columns: 1fr 1fr; gap: 14px 10px; padding: 18px 0; }
  .v3-selos li, .v3-selos li + li, .v3-selos li:nth-child(3) { border-left: 0; padding: 0; gap: 10px; }
  .v3-selo-ic { width: 32px; height: 32px; border-radius: 10px; }
  .v3-selos strong { font-size: .84rem; }
  .v3-selos small { font-size: .74rem; }
}
@media (prefers-reduced-motion: reduce) {
  .v3 *, .v3 *::before, .v3 *::after { animation: none !important; transition: none !important; }
}

/* Faixa rolante com as capas dos conteúdos (topo da seção, só na home) */
.v3-rolo { display: flex; align-items: stretch; gap: 0; margin-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--v3-linha); background: rgba(255,255,255,.025); text-decoration: none; color: #fff; }
.v3-rolo-rot { flex-shrink: 0; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 1; padding: 16px clamp(16px, 3vw, 40px); font-size: .8rem; line-height: 1.35; color: rgba(255,255,255,.65); border-right: 1px solid var(--v3-linha); background: #070b16; }
.v3-rolo-rot b { font-family: Inter, Manrope, sans-serif; font-size: 1.05rem; color: #fff; }
.v3-rolo-pista { display: flex; align-items: center; flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.v3-rolo-trilho { display: flex; width: max-content; gap: 10px; padding: 14px 0; animation: v3-rolo 140s linear infinite; }
.v3-rolo:hover .v3-rolo-trilho { animation-play-state: paused; }
@keyframes v3-rolo { to { transform: translateX(-50%); } }
.v3-rolo-item { display: flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); white-space: nowrap; }
.v3-rolo-item img { width: 40px; height: 40px; border-radius: 9px; object-fit: cover; }
.v3-rolo-item strong { display: block; font-size: .86rem; font-weight: 800; }
.v3-rolo-item small { display: block; font-size: .7rem; color: rgba(255,255,255,.55); }
@media (max-width: 640px) {
  .v3-rolo-rot { display: none; }
  .v3-rolo-trilho { padding: 12px 0; }
}
@media (prefers-reduced-motion: reduce) { .v3-rolo-trilho { animation: none; } }
