/* COMPROVALOG — Área fiscal (fiscal.php): CT-e, MDF-e, CIOT e módulo SEFAZ.
   As animações tocam quando o bloco aparece na tela ([data-fx-anim].is-on) e respeitam
   "reduzir movimento" (mostram o estado final). */
.fx-page { --fx-cte: #0066ff; --fx-mdfe: #4f46e5; --fx-ciot: #ea580c; --fx-sefaz: #16a34a; }

/* ---------- Topo ---------- */
.fx-hero {
  padding: calc(var(--site-header-height, 76px) + clamp(40px, 6vw, 80px)) 0 clamp(48px, 6vw, 80px);
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(0, 102, 255, .12), transparent 60%),
    radial-gradient(700px 380px at 5% 90%, rgba(79, 70, 229, .08), transparent 60%),
    linear-gradient(180deg, #f5f9ff, #ffffff);
}
.fx-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.fx-title { margin: 14px 0 18px; font-size: clamp(2.1rem, 4.2vw, 3.5rem); line-height: 1.05; letter-spacing: -.035em; color: var(--cl-ink); }
.fx-accent { display: block; background: linear-gradient(90deg, #0066ff, #4f46e5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fx-lead { max-width: 560px; margin: 0 0 28px; font-size: clamp(1rem, .4vw + .9rem, 1.15rem); line-height: 1.6; color: var(--cl-muted); }
.fx-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Cartão de emissão de CT-e */
.fx-emit {
  margin: 0; padding: 22px; border-radius: 24px; background: #fff;
  border: 1px solid #dfe8f5; box-shadow: 0 24px 60px rgba(10, 30, 70, .14);
}
.fx-emit-head { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.fx-doc-tag { flex: none; white-space: nowrap; padding: 5px 11px; border-radius: 9px; background: #0a1b3d; color: #fff; font-weight: 800; font-size: .82rem; }
.fx-emit-model { font-size: .8rem; font-weight: 600; color: var(--cl-muted-2); }
.fx-status { position: relative; margin-left: auto; display: grid; font-size: .8rem; font-weight: 800; }
.fx-status > span { grid-area: 1 / 1; padding: 5px 11px; border-radius: 999px; text-align: center; white-space: nowrap; }
.fx-status-wait { background: #fff7e6; color: #b45309; opacity: 0; }
.fx-status-ok { background: #dcfce7; color: #15803d; }
.fx-emit-data { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 16px; }
.fx-emit-data div { padding: 10px 12px; border-radius: 12px; background: #f5f8fc; }
.fx-emit-data dt { font-size: .7rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cl-muted-2); }
.fx-emit-data dd { margin: 3px 0 0; font-size: .9rem; font-weight: 700; color: var(--cl-ink); }
.fx-emit-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 12px; padding: 0; list-style: none; counter-reset: s; }
.fx-emit-steps li {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  font-size: .74rem; font-weight: 700; color: #15803d; line-height: 1.2;
}
.fx-emit-steps li::before {
  content: "✓"; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  background: #16a34a; color: #fff; font-size: .8rem; font-weight: 900;
}
.fx-emit-bar { height: 6px; border-radius: 999px; background: #e5edf8; overflow: hidden; }
.fx-emit-bar i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #0066ff, #16a34a); }
.fx-emit-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; font-size: .78rem; color: var(--cl-muted); }
.fx-emit-foot strong { color: #15803d; }

/* ---------- Faixa de destaque ---------- */
.fx-speed { background: linear-gradient(100deg, #081b3a, #0d2a5c 55%, #12306b); color: #fff; }
.fx-speed-inner { display: flex; align-items: center; justify-content: center; gap: 18px; padding-block: clamp(22px, 3vw, 34px); }
.fx-speed-bolt {
  flex: none; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 16px;
  background: linear-gradient(160deg, #ffd34d, #f59e0b); color: #3b2300;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, .16), 0 10px 26px rgba(245, 158, 11, .3);
}
.fx-speed-bolt svg { width: 28px; height: 28px; }
.fx-speed p { margin: 0; font-size: clamp(1rem, .6vw + .85rem, 1.25rem); line-height: 1.45; color: #c9d8f2; }
.fx-speed strong { display: block; font-size: clamp(1.35rem, 1.6vw + .9rem, 2.1rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }

/* ---------- Navegação entre temas ---------- */
.fx-subnav {
  position: sticky; top: var(--site-header-height, 76px); z-index: 20;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px);
  border-bottom: 1px solid #e6edf7;
}
.fx-subnav-inner { display: flex; justify-content: center; gap: 10px; padding-block: 10px; overflow-x: auto; scrollbar-width: none; }
.fx-subnav-inner::-webkit-scrollbar { display: none; }
.fx-chip {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid #dfe8f5; background: #fff; color: #33415c;
  font-size: .9rem; font-weight: 800; text-decoration: none;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.fx-chip::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.fx-chip--cte { --c: var(--fx-cte); } .fx-chip--mdfe { --c: var(--fx-mdfe); } .fx-chip--ciot { --c: var(--fx-ciot); } .fx-chip--sefaz { --c: var(--fx-sefaz); }
.fx-chip:hover { border-color: var(--c); color: var(--c); }
.fx-chip.is-active { background: var(--c); border-color: var(--c); color: #fff; }
.fx-chip.is-active::before { background: #fff; }
.fx-chip:focus-visible { outline: 3px solid #81b2ff; outline-offset: 2px; }

/* ---------- Seções ---------- */
.fx-section { scroll-margin-top: 64px; }
.fx-section--cte { --c: var(--fx-cte); --c-soft: #e8f0ff; }
.fx-section--mdfe { --c: var(--fx-mdfe); --c-soft: #eeedff; }
.fx-section--ciot { --c: var(--fx-ciot); --c-soft: #fff1e6; }
.fx-section--sefaz { --c: var(--fx-sefaz); --c-soft: #e3f8ec; }
.fx-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.fx-grid--rev .fx-copy { order: 2; }
.fx-kicker { display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px; border-radius: 999px; background: var(--c-soft); color: var(--c); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.fx-kicker-dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 20%, transparent); }
.fx-h2 { margin: 16px 0 14px; font-size: clamp(1.9rem, 3.2vw, 2.75rem); line-height: 1.1; letter-spacing: -.03em; color: var(--cl-ink); }
.fx-h2 span { color: var(--c); }
.fx-copy > p { margin: 0 0 22px; font-size: 1.05rem; line-height: 1.65; color: var(--cl-muted); }
.fx-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-list li {
  position: relative; padding: 14px 16px 14px 52px; border-radius: 16px;
  background: #fff; border: 1px solid #e6edf7; box-shadow: 0 4px 14px rgba(10, 30, 70, .04);
}
.fx-list li::before {
  content: "✓"; position: absolute; left: 16px; top: 15px; display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; font-size: .75rem; font-weight: 900;
}
.fx-list strong { display: block; font-size: .98rem; color: var(--cl-ink); }
.fx-list span { display: block; margin-top: 2px; font-size: .9rem; line-height: 1.45; color: var(--cl-muted); }
.fx-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.fx-steps li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: #fff; border: 1px solid #e6edf7; font-size: .92rem; line-height: 1.45; color: var(--cl-muted); }
.fx-steps li > span { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--c); color: #fff; font-weight: 800; }
.fx-steps strong { display: block; color: var(--cl-ink); font-size: .98rem; }

.fx-visual {
  position: relative; margin: 0; min-height: 340px; padding: clamp(20px, 3vw, 32px); border-radius: 28px;
  background: linear-gradient(160deg, var(--c-soft), #ffffff 70%);
  border: 1px solid #e3ebf6; box-shadow: 0 18px 44px rgba(10, 30, 70, .08);
  display: grid; place-items: center; gap: 18px; overflow: hidden;
}

/* CT-e: relógio + DACTE */
.fx-vis-cte { grid-template-columns: auto 1fr; }
.fx-clock { position: relative; width: 150px; height: 150px; }
.fx-clock svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.fx-clock circle { fill: none; stroke-width: 10; }
.fx-clock-bg { stroke: #dbe6f8; }
.fx-clock-fg { stroke: var(--c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 0; }
.fx-clock-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.fx-clock-label b { font-size: 1.35rem; color: var(--cl-ink); line-height: 1; }
.fx-clock-label span { font-size: .8rem; font-weight: 700; color: var(--cl-muted); }
.fx-dacte { position: relative; width: 100%; max-width: 240px; padding: 16px; border-radius: 14px; background: #fff; box-shadow: 0 14px 34px rgba(10, 30, 70, .14); }
.fx-dacte-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; font-size: .74rem; color: var(--cl-muted); }
.fx-dacte-head b { font-size: 1rem; color: var(--cl-ink); }
.fx-lines { display: grid; gap: 7px; margin-bottom: 14px; }
.fx-lines i { height: 8px; border-radius: 4px; background: #e8eef7; }
.fx-lines i.s { width: 60%; }
.fx-barcode { height: 36px; border-radius: 4px; background: repeating-linear-gradient(90deg, #0a1b3d 0 2px, transparent 2px 4px, #0a1b3d 4px 5px, transparent 5px 8px, #0a1b3d 8px 11px, transparent 11px 13px); opacity: .85; }
.fx-stamp {
  position: absolute; right: -10px; top: 38%; padding: 6px 12px; border: 3px solid #16a34a; border-radius: 10px;
  color: #16a34a; font-weight: 900; font-size: .9rem; letter-spacing: .06em; text-transform: uppercase;
  background: rgba(255, 255, 255, .92); transform: rotate(-10deg);
}

/* MDF-e: manifesto + rota */
.fx-vis-mdfe { align-content: center; }
.fx-manifest { width: 100%; max-width: 380px; padding: 18px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(10, 30, 70, .12); }
.fx-manifest-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.fx-manifest-head b { font-size: 1.05rem; color: var(--cl-ink); }
.fx-pill { padding: 4px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; }
.fx-pill--ok { background: #dcfce7; color: #15803d; }
.fx-docs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.fx-docs span { padding: 12px 6px; border-radius: 10px; background: var(--c-soft); color: var(--c); text-align: center; font-size: .8rem; font-weight: 800; }
.fx-manifest-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; font-weight: 700; color: var(--cl-muted); }
.fx-manifest-meta span::before { content: "• "; color: var(--c); }
.fx-route { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 380px; }
.fx-route > span { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #0a1b3d; color: #fff; font-weight: 800; font-size: .84rem; }
.fx-route-line { position: relative; flex: 1; height: 6px; border-radius: 999px; background: repeating-linear-gradient(90deg, #c9d3f5 0 10px, transparent 10px 16px); }
.fx-truck { position: absolute; top: 50%; left: 100%; display: grid; place-items: center; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--c); color: #fff; box-shadow: 0 6px 16px rgba(79, 70, 229, .35); }
.fx-truck svg { width: 20px; height: 20px; }

/* CIOT */
.fx-ciot { width: 100%; max-width: 360px; padding: 20px; border-radius: 18px; background: #fff; box-shadow: 0 14px 34px rgba(10, 30, 70, .12); }
.fx-ciot-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.fx-ciot-head b { font-size: 1.05rem; color: var(--cl-ink); }
.fx-ciot-type { position: relative; display: grid; }
.fx-ciot-type i { grid-area: 1 / 1; padding: 4px 11px; border-radius: 999px; background: var(--c-soft); color: var(--c); font-style: normal; font-size: .76rem; font-weight: 800; text-align: center; }
.fx-ciot-type i + i { opacity: 0; }
.fx-ciot-code { display: flex; justify-content: center; gap: 10px; margin-bottom: 16px; padding: 14px; border-radius: 14px; background: #0a1b3d; }
.fx-ciot-code span { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: clamp(1.1rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: .08em; color: #ffd8b8; }
.fx-ciot-checks { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fx-ciot-checks li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 11px; background: #f6f8fb; font-size: .86rem; font-weight: 700; color: var(--cl-ink); }
.fx-ciot-checks li::before { content: "✓"; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #16a34a; color: #fff; font-size: .72rem; font-weight: 900; }

/* SEFAZ */
.fx-vis-sefaz { align-content: center; }
.fx-sefaz-top { display: flex; align-items: center; gap: 12px; width: 100%; max-width: 420px; }
.fx-cnpj { flex: none; padding: 10px 14px; border-radius: 14px; background: #fff; box-shadow: 0 8px 20px rgba(10, 30, 70, .1); }
.fx-cnpj small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--cl-muted-2); }
.fx-cnpj b { font-size: .88rem; color: var(--cl-ink); }
.fx-sync { position: relative; flex: 1; height: 4px; border-radius: 999px; background: #cdeedb; }
.fx-sync i { position: absolute; top: 50%; left: 0; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--c); opacity: 0; }
.fx-cloud { flex: none; display: grid; place-items: center; gap: 2px; width: 74px; height: 74px; border-radius: 20px; background: var(--c); color: #fff; box-shadow: 0 10px 24px rgba(22, 163, 74, .3); }
.fx-cloud svg { width: 28px; height: 28px; }
.fx-cloud b { font-size: .7rem; letter-spacing: .08em; }
.fx-nfes { display: grid; gap: 8px; width: 100%; max-width: 420px; margin: 0; padding: 0; list-style: none; }
.fx-nfes li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: #fff; box-shadow: 0 6px 16px rgba(10, 30, 70, .07); }
.fx-nfe-ico { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--c-soft); color: var(--c); font-size: .68rem; font-weight: 900; }
.fx-nfes div { flex: 1; min-width: 0; }
.fx-nfes b { display: block; font-size: .9rem; color: var(--cl-ink); }
.fx-nfes small { display: block; font-size: .76rem; color: var(--cl-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fx-nfes em { flex: none; padding: 3px 9px; border-radius: 999px; background: #dcfce7; color: #15803d; font-style: normal; font-size: .72rem; font-weight: 800; }
.fx-sefaz-foot { font-size: .9rem; color: var(--cl-muted); }
.fx-sefaz-foot b { color: var(--c); }

/* ---------- Chamada final ---------- */
.fx-cta { padding: clamp(56px, 7vw, 96px) 0; background: linear-gradient(150deg, var(--cl-navy), #0d2a5c); color: #fff; text-align: center; }
.fx-cta-inner { max-width: 760px; }
.fx-cta h2 { margin: 0 0 12px; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.12; letter-spacing: -.03em; }
.fx-cta p { margin: 0 auto 26px; color: #c9d8f2; font-size: 1.05rem; line-height: 1.6; }
.fx-cta .fx-actions { justify-content: center; }
.fx-cta .fx-note { margin: 28px auto 0; font-size: .8rem; color: #8ea6cf; }

/* ---------- Animações (tocam quando visíveis) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* Emissão do CT-e (ciclo de 7s) */
  .fx-emit.is-on .fx-status-wait { animation: fx-wait 7s infinite; }
  .fx-emit.is-on .fx-status-ok { animation: fx-ok 7s infinite; }
  .fx-emit.is-on .fx-emit-bar i { animation: fx-bar 7s infinite; }
  .fx-emit.is-on .fx-emit-steps li { animation: fx-step 7s infinite both; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(2) { animation-name: fx-step2; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(3) { animation-name: fx-step3; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(4) { animation-name: fx-step4; }
  .fx-emit.is-on .fx-emit-steps li::before { animation: inherit; animation-name: fx-dot1; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(2)::before { animation-name: fx-dot2; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(3)::before { animation-name: fx-dot3; }
  .fx-emit.is-on .fx-emit-steps li:nth-child(4)::before { animation-name: fx-dot4; }
  .fx-emit.is-on .fx-emit-foot strong { animation: fx-ok 7s infinite; }

  /* CT-e: relógio e DACTE (ciclo de 5s) */
  .fx-vis-cte.is-on .fx-clock-fg { animation: fx-clock 5s cubic-bezier(.3, .7, .2, 1) infinite; }
  .fx-vis-cte.is-on .fx-dacte { animation: fx-dacte 5s ease infinite; }
  .fx-vis-cte.is-on .fx-stamp { animation: fx-stamp 5s ease infinite; }

  /* MDF-e: documentos entram, caminhão percorre a rota (ciclo de 7s) */
  .fx-vis-mdfe.is-on .fx-docs span { animation: fx-doc 7s infinite both; }
  .fx-vis-mdfe.is-on .fx-docs span:nth-child(2) { animation-name: fx-doc2; }
  .fx-vis-mdfe.is-on .fx-docs span:nth-child(3) { animation-name: fx-doc3; }
  .fx-vis-mdfe.is-on .fx-truck { animation: fx-truck 7s cubic-bezier(.5, 0, .3, 1) infinite; }
  .fx-vis-mdfe.is-on .fx-pill--ok { animation: fx-closed 7s infinite; }

  /* CIOT: código aparece e tipo alterna (ciclo de 6s) */
  .fx-vis-ciot.is-on .fx-ciot-code span { animation: fx-code 6s infinite both; }
  .fx-vis-ciot.is-on .fx-ciot-code span:nth-child(2) { animation-name: fx-code2; }
  .fx-vis-ciot.is-on .fx-ciot-code span:nth-child(3) { animation-name: fx-code3; }
  .fx-vis-ciot.is-on .fx-ciot-type i:first-child { animation: fx-typeA 12s infinite; }
  .fx-vis-ciot.is-on .fx-ciot-type i + i { animation: fx-typeB 12s infinite; }
  .fx-vis-ciot.is-on .fx-ciot-checks li { animation: fx-check 6s infinite both; }
  .fx-vis-ciot.is-on .fx-ciot-checks li:nth-child(2) { animation-name: fx-check2; }
  .fx-vis-ciot.is-on .fx-ciot-checks li:nth-child(3) { animation-name: fx-check3; }

  /* SEFAZ: busca e NF-e chegando (ciclo de 7s) */
  .fx-vis-sefaz.is-on .fx-sync i { animation: fx-sync 1.6s linear infinite; }
  .fx-vis-sefaz.is-on .fx-sync i:nth-child(2) { animation-delay: .53s; }
  .fx-vis-sefaz.is-on .fx-sync i:nth-child(3) { animation-delay: 1.06s; }
  .fx-vis-sefaz.is-on .fx-cloud { animation: fx-pulse 1.6s ease-in-out infinite; }
  .fx-vis-sefaz.is-on .fx-nfes li { animation: fx-nfe 7s infinite both; }
  .fx-vis-sefaz.is-on .fx-nfes li:nth-child(2) { animation-name: fx-nfe2; }
  .fx-vis-sefaz.is-on .fx-nfes li:nth-child(3) { animation-name: fx-nfe3; }
  .fx-vis-sefaz.is-on .fx-sefaz-foot { animation: fx-foot 7s infinite both; }

  .fx-page .fx-anim-paused, .fx-page .fx-anim-paused * { animation-play-state: paused !important; }
}

@keyframes fx-wait { 0%, 60% { opacity: 1; } 62%, 100% { opacity: 0; } }
@keyframes fx-ok { 0%, 60% { opacity: 0; transform: scale(.9); } 64% { opacity: 1; transform: scale(1.06); } 68%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-bar { 0% { width: 0; } 60% { width: 100%; } 96% { width: 100%; opacity: 1; } 100% { width: 100%; opacity: 0; } }
@keyframes fx-step  { 0%, 8%  { color: #93a0b4; } 12%, 100% { color: #15803d; } }
@keyframes fx-step2 { 0%, 24% { color: #93a0b4; } 28%, 100% { color: #15803d; } }
@keyframes fx-step3 { 0%, 40% { color: #93a0b4; } 44%, 100% { color: #15803d; } }
@keyframes fx-step4 { 0%, 56% { color: #93a0b4; } 60%, 100% { color: #15803d; } }
@keyframes fx-dot1 { 0%, 8%  { background: #dde5f1; color: transparent; transform: scale(.85); } 12% { transform: scale(1.15); } 14%, 100% { background: #16a34a; color: #fff; transform: none; } }
@keyframes fx-dot2 { 0%, 24% { background: #dde5f1; color: transparent; transform: scale(.85); } 28% { transform: scale(1.15); } 30%, 100% { background: #16a34a; color: #fff; transform: none; } }
@keyframes fx-dot3 { 0%, 40% { background: #dde5f1; color: transparent; transform: scale(.85); } 44% { transform: scale(1.15); } 46%, 100% { background: #16a34a; color: #fff; transform: none; } }
@keyframes fx-dot4 { 0%, 56% { background: #dde5f1; color: transparent; transform: scale(.85); } 60% { transform: scale(1.15); } 62%, 100% { background: #16a34a; color: #fff; transform: none; } }

@keyframes fx-clock { 0% { stroke-dashoffset: 100; } 30% { stroke-dashoffset: 0; } 92% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes fx-dacte { 0%, 28% { opacity: 0; transform: translateY(18px) scale(.96); } 38%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-stamp { 0%, 42% { opacity: 0; transform: rotate(-10deg) scale(1.8); } 48% { opacity: 1; transform: rotate(-10deg) scale(.94); } 52%, 92% { opacity: 1; transform: rotate(-10deg) scale(1); } 100% { opacity: 0; } }

@keyframes fx-doc  { 0%, 4%  { opacity: 0; transform: translateY(-16px); } 10%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-doc2 { 0%, 12% { opacity: 0; transform: translateY(-16px); } 18%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-doc3 { 0%, 20% { opacity: 0; transform: translateY(-16px); } 26%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-truck { 0%, 28% { left: 0; } 78%, 100% { left: 100%; } }
@keyframes fx-closed { 0%, 78% { opacity: 0; transform: scale(.85); } 82% { opacity: 1; transform: scale(1.08); } 86%, 96% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@keyframes fx-code  { 0%, 4%  { opacity: 0; filter: blur(6px); transform: translateY(6px); } 14%, 94% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; } }
@keyframes fx-code2 { 0%, 12% { opacity: 0; filter: blur(6px); transform: translateY(6px); } 22%, 94% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; } }
@keyframes fx-code3 { 0%, 20% { opacity: 0; filter: blur(6px); transform: translateY(6px); } 30%, 94% { opacity: 1; filter: none; transform: none; } 100% { opacity: 0; } }
@keyframes fx-typeA { 0%, 47% { opacity: 1; } 50%, 97% { opacity: 0; } 100% { opacity: 1; } }
@keyframes fx-typeB { 0%, 47% { opacity: 0; } 50%, 97% { opacity: 1; } 100% { opacity: 0; } }
@keyframes fx-check  { 0%, 34% { opacity: .35; transform: translateX(-8px); } 40%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; } }
@keyframes fx-check2 { 0%, 46% { opacity: .35; transform: translateX(-8px); } 52%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; } }
@keyframes fx-check3 { 0%, 58% { opacity: .35; transform: translateX(-8px); } 64%, 94% { opacity: 1; transform: none; } 100% { opacity: .35; } }

@keyframes fx-sync { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: calc(100% - 10px); opacity: 0; } }
@keyframes fx-pulse { 0%, 100% { box-shadow: 0 10px 24px rgba(22, 163, 74, .3), 0 0 0 0 rgba(22, 163, 74, .35); } 50% { box-shadow: 0 10px 24px rgba(22, 163, 74, .3), 0 0 0 12px rgba(22, 163, 74, 0); } }
@keyframes fx-nfe  { 0%, 10% { opacity: 0; transform: translateY(-14px) scale(.97); } 18%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-nfe2 { 0%, 26% { opacity: 0; transform: translateY(-14px) scale(.97); } 34%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-nfe3 { 0%, 42% { opacity: 0; transform: translateY(-14px) scale(.97); } 50%, 94% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes fx-foot { 0%, 52% { opacity: 0; } 58%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .fx-hero-grid, .fx-grid { grid-template-columns: 1fr; }
  .fx-grid--rev .fx-copy { order: 0; }
  .fx-hero-copy { text-align: center; }
  .fx-lead { margin-inline: auto; }
  .fx-hero .fx-actions { justify-content: center; }
  .fx-emit { max-width: 560px; margin-inline: auto; width: 100%; }
  .fx-visual { min-height: 0; }
}
@media (max-width: 640px) {
  .fx-hero { padding-top: calc(var(--site-header-height, 64px) + 28px); }
  .fx-emit { padding: 16px; border-radius: 20px; }
  .fx-emit-data { gap: 8px; }
  .fx-emit-data div { padding: 8px 10px; }
  .fx-emit-data dd { font-size: .82rem; }
  .fx-emit-steps li { font-size: .66rem; }
  .fx-emit-steps li::before { width: 24px; height: 24px; }
  .fx-speed-inner { flex-direction: column; text-align: center; gap: 12px; }
  .fx-subnav-inner { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; overflow: visible; }
  .fx-chip { justify-content: center; gap: 6px; min-height: 42px; padding: 7px 6px; font-size: .84rem; }
  .fx-chip::before { width: 7px; height: 7px; }
  .fx-vis-cte { grid-template-columns: 1fr; justify-items: center; }
  .fx-clock { width: 120px; height: 120px; }
  .fx-actions { gap: 14px; }
  .fx-actions .btn { flex: 1 1 100%; }
  .fx-list li { padding: 12px 14px 12px 48px; }
  .fx-list li::before { left: 14px; top: 13px; }
}
