/* MÁQUINAS. Carrossel arrastável (padrão da Avanti, src/ui/maquinas.js). Cada cartão é uma vitrine clara de produto
   (cor própria, bem diferente do fundo escuro da seção): a foto real da máquina grande, de estúdio, e o texto mínimo embaixo.
   Recuo dos cartões fora do centro por camada de opacidade (sem filter). Sem preço (decisão do José). */
.maquinas { position: relative; isolation: isolate; overflow: clip; background: var(--pf-c3); padding-block: clamp(80px, 10vw, 150px) clamp(64px, 8vw, 110px); }
.maquinas::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(45% 35% at 85% 38%, rgba(58, 134, 255, .14), transparent 70%), radial-gradient(45% 40% at 0% 100%, rgba(223, 11, 82, .14), transparent 70%); }

/* cabeçalho: título cartaz à esquerda; contagem e controles à direita */
.sec-topo { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 24px 40px; }
.sec-topo__meta { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-titulo { font-size: clamp(3.2rem, 9.6vw, 10.5rem); line-height: .84; letter-spacing: -.012em; }
.sec-titulo .t-red { color: var(--pf-red); }
.sec-lead { margin-top: 22px; font-size: var(--fs-lead); line-height: 1.45; color: var(--muted-on-dark); max-width: 42ch; }
.car-ctrl { display: flex; align-items: center; gap: 10px; padding-bottom: 6px; }
.car-btn { position: relative; overflow: hidden; display: grid; place-items: center; width: 58px; height: 58px; border: 0; border-radius: 50%; cursor: pointer; color: var(--pf-white);
  background: transparent; box-shadow: inset 0 0 0 1px rgba(181, 212, 244, .3); transition: color .35s var(--ease); }
.car-btn::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--pf-white); scale: 0; transition: scale .45s var(--ease); }
.car-btn svg { position: relative; width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) { .car-btn:hover { color: var(--pf-blue); } .car-btn:hover::before { scale: 1; } }
.car-btn:active { scale: .94; }

/* trilho */
.maq-marq { position: relative; margin-top: clamp(40px, 5vw, 72px); padding-block: 16px 28px; }
.maq-rail { display: flex; gap: clamp(14px, 1.5vw, 22px); width: max-content; padding-inline: var(--gutter); }
.maq-marq:not(.is-js) { overflow-x: auto; scroll-snap-type: x mandatory; }
.maq-marq:not(.is-js) .maq { scroll-snap-align: start; }
.maq-marq.is-js { overflow: hidden; touch-action: pan-y; -webkit-user-select: none; user-select: none; overscroll-behavior-x: contain; outline: none; }
@media (hover: hover) and (pointer: fine) { .maq-marq.is-js { cursor: grab; } .maq-marq.is-js.is-dragging { cursor: grabbing; } .has-cursor .maq-marq.is-js { cursor: none; } .has-cursor .maq-marq.is-js a, .has-cursor .maq-marq.is-js button { cursor: pointer; } }
.maq-marq.is-js:focus-visible { outline: 2px solid var(--focus-ring); outline-offset: -4px; border-radius: 20px; }
.maq-marq.is-js .maq-rail { will-change: transform; }

/* cartão-vitrine */
.maq { --lx: 50%; --ly: 30%; position: relative; flex: none; width: min(80vw, 344px); display: flex; flex-direction: column; overflow: hidden; border-radius: 26px; color: var(--pf-ink);
  background: linear-gradient(180deg, var(--pf-white) 0%, var(--pf-sky-pale) 62%, color-mix(in srgb, var(--pf-sky) 45%, var(--pf-white)) 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -30px rgba(1, 5, 16, .9), 0 10px 20px -12px rgba(1, 5, 16, .6);
  transition: translate .5s var(--ease); }
.maq-marq.is-js .maq { rotate: calc(var(--vel) * -1.6deg); }
.maq::after { content: ""; position: absolute; inset: 0; z-index: 8; border-radius: inherit; pointer-events: none; background: var(--pf-c3); opacity: calc((1 - var(--near)) * .38); }
@media (hover: hover) and (pointer: fine) { .maq:hover { translate: 0 -8px; } }
.maq-marq.is-dragging .maq { translate: 0 0; }

/* vitrine: a máquina grande, com luz de estúdio que segue o cursor e sombra de contato */
.maq__vitrine { position: relative; aspect-ratio: 1 / .98; overflow: hidden;
  background: radial-gradient(70% 62% at var(--lx) var(--ly), var(--pf-white) 0%, rgba(255, 255, 255, 0) 70%); }
.maq__obj { position: absolute; inset: 9% 10% 9%; display: flex; justify-content: center; align-items: flex-end; z-index: 2; transition: transform .7s var(--ease); }
.maq__obj picture { display: flex; justify-content: center; align-items: flex-end; height: 100%; }
.maq__obj img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: 50% 100%; pointer-events: none;
  filter: drop-shadow(0 22px 22px rgba(10, 42, 110, .28)) drop-shadow(0 4px 6px rgba(10, 42, 110, .18)); }
.maq__chao { position: absolute; z-index: 1; left: 22%; right: 22%; bottom: 6%; height: 9%; border-radius: 50%; background: radial-gradient(closest-side, rgba(10, 42, 110, .3), transparent); transition: scale .7s var(--ease), opacity .7s var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .maq:hover .maq__obj { transform: translateY(-10px) rotate(-3deg) scale(1.04); }
  .maq:hover .maq__chao { scale: .82; opacity: .7; }
}

/* corpo */
.maq__corpo { position: relative; z-index: 3; flex: 1; display: flex; flex-direction: column; gap: 12px; padding: 4px 24px 24px; }
.maq__para { color: var(--pf-slate); }
.maq__nome { font-size: clamp(2.1rem, 1.7rem + 1vw, 2.65rem); line-height: .9; color: var(--pf-blue); letter-spacing: -.005em; }
.maq__pontos { display: grid; gap: 7px; margin: 4px 0 0; padding: 0; list-style: none; }
.maq__pontos li { display: flex; gap: 10px; align-items: flex-start; font-size: .9375rem; line-height: 1.4; color: color-mix(in srgb, var(--pf-ink) 82%, var(--pf-slate)); }
.maq__pontos .ico { flex: none; width: 16px; height: 16px; margin-top: 3px; color: var(--pf-red); }
.maq__rodape { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(10, 42, 110, .12); }
.maq__modos { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }
.maq__modos li { padding: 6px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 600; color: var(--pf-blue); box-shadow: inset 0 0 0 1px rgba(10, 42, 110, .22); }
.maq__modos b { font-weight: 800; }
.maq__valor { font-size: .8125rem; color: var(--pf-slate); }
.maq__acoes { position: relative; z-index: 9; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin-top: 6px; }
.maq__acoes .btn { flex: 1 1 auto; }
.maq__acoes .link-wa { color: var(--pf-blue); font-size: .9375rem; }
.maq__acoes .link-wa .ico { color: var(--pf-wa); }
.maq .todo-tag { color: var(--pf-warn-ink); background: rgba(242, 182, 50, .28); }

/* fim da seção: CTA repetido, em linha, sem caixa */
.maq-fim { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; margin-top: clamp(28px, 4vw, 52px); padding-top: 28px; border-top: 1px solid var(--line-dark); }
.maq-fim p { font-size: clamp(1.125rem, 1rem + .4vw, 1.375rem); font-weight: 600; max-width: 40ch; line-height: 1.35; }
.maq-fim p span { color: var(--muted-on-dark); font-weight: 400; }

@media (max-width: 639px) {
  .sec-topo { grid-template-columns: 1fr; }
  .sec-titulo { font-size: 14.5vw; }
  .car-ctrl { display: none; }
  .maq { width: min(82vw, 330px); }
  .maq__corpo { padding: 2px 20px 20px; }
  .maq-fim .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .maq-marq.is-js .maq { rotate: none; } .maq::after { display: none; } .maq__obj, .maq__chao { transition: none; } }

/* microtexto do topo das seções: em tela estreita quebra em linhas inteiras, sem espremer palavra */
.sec-topo__meta { flex-wrap: wrap; row-gap: 4px; }
.sec-topo__meta .micro { white-space: nowrap; }

/* formas de venda: compra, aluguel e comodato (depois de "Ficou em dúvida") */
.formas { margin-top: clamp(40px, 6vw, 72px); }
.formas__titulo { font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.25rem); line-height: 1; margin: 0 0 18px; color: var(--pf-white); }
.formas__lista { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.forma { padding: clamp(18px, 2.4vw, 26px); border-radius: var(--radius-card); background: linear-gradient(180deg, var(--pf-white), var(--pf-sky-pale)); color: var(--pf-ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 30px 60px -34px rgba(1, 5, 16, .9); }
.forma b { display: block; font-family: var(--font-display); font-weight: 900; text-transform: uppercase; font-size: clamp(1.4rem, 1rem + 1vw, 1.9rem); line-height: 1; color: var(--pf-blue); margin-bottom: 10px; }
.forma span { display: block; font-size: 1rem; line-height: 1.5; color: var(--pf-slate); }
.forma strong { color: var(--pf-red); font-weight: 800; }
.formas__nota { margin: 18px 0 0; font-size: .9375rem; color: var(--muted-on-dark); }
@media (max-width: 639px) { .formas__lista { grid-template-columns: 1fr; } }