/* JJ Tecnologias — logo que sobe para o menu, feixes de luz e popup dos serviços. */

/* ---------- Logo da capa que sobe para o menu ---------- */
.capa-logo { width: min(460px, 76vw); height: auto; margin: 0 auto 34px; filter: drop-shadow(0 0 30px rgba(45, 178, 242, .35)); }
.logo-voo { position: fixed; left: 0; top: 0; z-index: 55; pointer-events: none; transform-origin: 0 0; will-change: transform; filter: drop-shadow(0 0 calc(var(--brilho-logo, 1) * 30px) rgba(45, 178, 242, .45)); animation: logoSobe 1.4s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes logoSobe { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }
.com-voo .cabecalho .marca img, .com-voo .cabecalho .custom-logo { opacity: 0; }
.com-voo.logo-no-menu .cabecalho .marca img, .com-voo.logo-no-menu .cabecalho .custom-logo { opacity: 1; }
.com-voo.logo-no-menu .logo-voo { visibility: hidden; }
.capa-titulo { font-size: clamp(2.5rem, 7vw, 5.6rem); }

/* Feixes de luz da capa */
.capa-feixes { position: absolute; inset: -20% 0 0; z-index: -1; pointer-events: none; opacity: calc(1 - var(--pc)); -webkit-mask: linear-gradient(180deg, #000 20%, transparent 85%); mask: linear-gradient(180deg, #000 20%, transparent 85%); }
.capa-feixes i { position: absolute; top: 0; left: 50%; width: 46vw; height: 120%; margin-left: -23vw; transform-origin: 50% 0; background: conic-gradient(from 180deg at 50% 0%, transparent 46%, rgba(45, 178, 242, .14) 50%, transparent 54%); animation: feixe 14s ease-in-out infinite alternate; }
.capa-feixes i:nth-child(1) { --a: -24deg; }
.capa-feixes i:nth-child(2) { --a: 6deg; animation-duration: 18s; opacity: .7; }
.capa-feixes i:nth-child(3) { --a: 30deg; animation-duration: 22s; opacity: .5; }
@keyframes feixe { from { transform: rotate(calc(var(--a) - 8deg)); } to { transform: rotate(calc(var(--a) + 8deg)); } }

/* ---------- Ações dos cartões ---------- */
.cartao-acoes { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cartao-acoes .link-seta { margin-top: 0; }

/* ---------- Popup do serviço ---------- */
.modal { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 48px); padding: 0; border: 1px solid var(--borda-forte); border-radius: 24px; color: var(--texto); overflow: auto; overscroll-behavior: contain;
  background: radial-gradient(70% 60% at 0% 0%, rgba(26, 166, 236, .14), transparent 60%), linear-gradient(180deg, #0B111B, #070A11);
  box-shadow: 0 50px 140px rgba(0, 0, 0, .7), 0 0 0 1px rgba(45, 178, 242, .08), 0 0 80px rgba(26, 166, 236, .12); }
.modal::backdrop { background: rgba(3, 5, 9, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal[open] { animation: modalEntra .55s cubic-bezier(.2, .8, .2, 1); }
.modal.fechando { animation: modalSai .25s ease forwards; }
@keyframes modalEntra { from { opacity: 0; transform: translateY(30px) scale(.96); filter: blur(10px); } }
@keyframes modalSai { to { opacity: 0; transform: translateY(16px) scale(.98); filter: blur(6px); } }
.modal-fechar { position: absolute; right: 16px; top: 16px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--borda-forte); background: rgba(5, 7, 12, .6); color: var(--branco); cursor: pointer; transition: transform .3s, border-color .3s; }
.modal-fechar:hover { transform: rotate(90deg); border-color: var(--azul-vivo); }
.modal-grade { display: grid; grid-template-columns: 1fr 1.1fr; }
.modal-visual { padding: 40px; border-right: 1px solid var(--borda); }
.modal-visual h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.modal-corpo { padding: 40px; }
.modal-corpo h3 { font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--azul-vivo); margin-bottom: 18px; }
.modal-itens { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; }
.modal-itens li { display: flex; gap: 12px; align-items: flex-start; }
.modal-itens strong { display: block; color: var(--branco); font-family: var(--titulo); font-size: .9rem; }
.modal-itens span:not(.modal-item-icone) { display: block; font-size: .82rem; line-height: 1.5; }
.modal-item-icone { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: 10px; border: 1px solid rgba(45, 178, 242, .3); color: var(--azul-vivo); background: rgba(45, 178, 242, .06); }
.modal-item-icone .icone { width: 18px; height: 18px; }
.modal .lista-check { margin-bottom: 30px; }
.modal-acoes { display: flex; gap: 12px; flex-wrap: wrap; }
.modal[open] .modal-itens li { animation: surgir .6s cubic-bezier(.2, .7, .2, 1) both; }
.modal[open] .modal-itens li:nth-child(2) { animation-delay: .06s; }
.modal[open] .modal-itens li:nth-child(3) { animation-delay: .12s; }
.modal[open] .modal-itens li:nth-child(4) { animation-delay: .18s; }
.modal[open] .modal-itens li:nth-child(5) { animation-delay: .24s; }
.modal[open] .modal-itens li:nth-child(6) { animation-delay: .3s; }
body.modal-aberto { overflow: hidden; }

/* Ilustrações animadas */
.ilustra { width: 100%; height: auto; display: block; margin-bottom: 26px; border-radius: 16px; border: 1px solid var(--borda); background: rgba(3, 6, 11, .8); }
.il-texto { font: 600 9px var(--corpo); letter-spacing: .16em; fill: var(--texto-suave); }
.il-parede { stroke: rgba(255, 255, 255, .25); stroke-width: 3; }
.il-suporte { stroke: rgba(255, 255, 255, .5); stroke-width: 3; }
.il-corpo { fill: #0E1622; stroke: var(--ciano); stroke-width: 1.6; }
.il-lente { fill: #05070C; stroke: var(--azul-vivo); stroke-width: 2; filter: drop-shadow(0 0 6px var(--azul-vivo)); }
.il-rec { fill: #F87171; animation: led 1s steps(2) infinite; }
.il-alvo { animation: ilAndar 7s ease-in-out infinite; }
.il-alvo rect { stroke: #FACC15; stroke-width: 1.6; fill: rgba(250, 204, 21, .06); }
.il-alvo text { font: 700 8px var(--corpo); fill: #FACC15; letter-spacing: .08em; }
@keyframes ilAndar { 0%, 100% { transform: translate(190px, 110px); } 50% { transform: translate(310px, 92px); } }
.il-cabo { stroke: rgba(45, 178, 242, .35); stroke-width: 2; }
.il-fluxo { stroke: var(--ciano); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 3 22; animation: ilFluxo 1.4s linear infinite; filter: drop-shadow(0 0 4px var(--azul-vivo)); }
@keyframes ilFluxo { to { stroke-dashoffset: -25; } }
.il-no circle { fill: #0B121D; stroke: var(--azul-vivo); stroke-width: 1.5; }
.il-no text { font: 700 8px var(--corpo); fill: var(--branco); text-anchor: middle; letter-spacing: .06em; }
.il-switch { fill: #0B121D; stroke: var(--ciano); stroke-width: 1.5; }
.il-porta { fill: #05070C; stroke: rgba(255, 255, 255, .25); }
.il-led { fill: var(--verde); animation: led 1.1s steps(2) infinite; }
.il-eixo { stroke: rgba(255, 255, 255, .3); stroke-width: 1.5; }
.il-barra { fill: rgba(45, 178, 242, .22); stroke: rgba(45, 178, 242, .6); transform-box: fill-box; transform-origin: bottom; animation: ilBarra 4s cubic-bezier(.2, .7, .2, 1) infinite; }
@keyframes ilBarra { 0% { transform: scaleY(0); } 30%, 85% { transform: scaleY(1); } 100% { transform: scaleY(0); } }
.il-linha { stroke: var(--ciano); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 100; animation: ilLinha 4s ease-in-out infinite; filter: drop-shadow(0 0 5px var(--azul-vivo)); }
@keyframes ilLinha { 0% { stroke-dashoffset: 100; } 45%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -100; } }
.il-lista rect { stroke: var(--borda-forte); }
.il-lista line { stroke: rgba(255, 255, 255, .18); stroke-width: 4; stroke-linecap: round; }
.il-lista path { stroke: var(--verde); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; animation: ilCheck 4s ease infinite; animation-delay: calc(var(--n) * .45s); }
@keyframes ilCheck { 0%, 10% { stroke-dashoffset: 14; } 25%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 14; } }

@media (max-width: 900px) {
  .modal-grade { grid-template-columns: 1fr; }
  .modal-visual { border-right: 0; border-bottom: 1px solid var(--borda); padding: 28px 22px; }
  .modal-corpo { padding: 28px 22px; }
  .modal-itens { grid-template-columns: 1fr; }
  .capa-logo { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .aurora, body::after, .logo-voo, .modal[open] { animation: none !important; }
}
