/* =========================================================
   Eldorado Máquinas — design base
   Versão clara (exigência da empresa): fundo claro, técnico,
   verde da marca como cor de destaque.
   ========================================================= */
:root {
  --bg: #f5f7f5;
  --bg-2: #ffffff;
  --panel: #ffffff;
  --panel-2: #eef3ef;
  --line: rgba(16, 48, 24, 0.10);
  --line-2: rgba(16, 48, 24, 0.20);
  --brand: #1fbf2a;          /* verde do logotipo */
  --glow: #1fbf2a;           /* verde decorativo (pontos, barras, bordas) */
  --accent: #0e7f18;         /* verde para TEXTO sobre fundo claro (contraste) */
  --text: #0d1611;
  --muted: #4b5a51;
  --dim: #7b887f;
  --stage: #e9eee9;          /* palco das fotos de fundo branco */
  --radius: 18px;
  --max: 1240px;
  --font: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --header-h: 76px;
  --gutter: 24px;            /* margem lateral da página */
}
@media (max-width: 640px) { :root { --header-h: 64px; --gutter: 18px; --radius: 16px; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
@media (max-width: 640px) { body { font-size: 16px; } }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(100% - var(--gutter) * 2, var(--max)); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: .04em; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent); display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; }
@media (max-width: 420px) { .hero .eyebrow { letter-spacing: .1em; font-size: 11.5px; } }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; font-weight: 600; }
h1 { font-size: clamp(38px, 6vw, 84px); }
h2 { font-size: clamp(28px, 4vw, 52px); }
h3 { font-size: clamp(19px, 2vw, 22px); }
p { margin: 0; }
.lead { color: var(--muted); font-size: clamp(16px, 1.5vw, 20px); max-width: 56ch; }
@media (max-width: 640px) { .eyebrow { font-size: 11px; letter-spacing: .14em; } }

/* ---------- botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 999px;
  font-weight: 500; font-size: 15px; border: 1px solid var(--line-2); background: transparent;
  cursor: pointer; transition: background .25s var(--ease), border-color .25s, transform .25s var(--ease), box-shadow .25s;
}
.btn:hover { border-color: var(--glow); transform: translateY(-1px); }
.btn--primary { background: var(--brand); border-color: var(--brand); color: #031004; }
.btn--primary:hover { background: #17a621; border-color: #17a621; box-shadow: 0 10px 30px -10px rgba(31,191,42,.55); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- cabeçalho ---------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: rgba(255, 255, 255, .86); backdrop-filter: blur(14px); border-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 28px; height: var(--header-h); }
.logo img { height: 38px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 15px; color: var(--muted); transition: color .2s, background .2s; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: rgba(16,48,24,.06); }
.nav .nav-cta { display: none; }
.header-cta { padding: 10px 18px; white-space: nowrap; }
.menu-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 10px; width: 44px; height: 44px; place-items: center; cursor: pointer; }
.menu-toggle .ico-close { display: none; }
.menu-toggle[aria-expanded="true"] .ico-open { display: none; }
.menu-toggle[aria-expanded="true"] .ico-close { display: block; }
@media (max-width: 1080px) {
  /* backdrop-filter faria o menu (position: fixed) ficar preso dentro do cabeçalho */
  .site-header.menu-open { background: #fff; border-color: var(--line); backdrop-filter: none; -webkit-backdrop-filter: none; }
  .nav { position: fixed; inset: var(--header-h) 0 0; flex-direction: column; gap: 0; background: #fff;
    padding: 12px var(--gutter) 32px; overflow-y: auto; opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s var(--ease), transform .3s var(--ease), visibility 0s .3s; }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
  .nav a { font-size: 22px; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav a:hover, .nav a[aria-current="page"] { background: none; color: var(--accent); }
  .nav .nav-cta { display: flex; justify-content: center; margin-top: 24px; border: 0; color: #031004; font-size: 17px; border-radius: 999px; padding: 16px; }
  .nav .nav-cta:hover { color: #031004; background: #17a621; }
  .menu-toggle { display: grid; margin-left: auto; }
  .header-cta { display: none; }
}
@media (max-width: 640px) { .logo img { height: 32px; } }
body.no-scroll { overflow: hidden; }

/* ---------- herói 3D ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; cursor: grab; touch-action: pan-y; outline: none; }
.hero canvas.is-dragging { cursor: grabbing; }
.hero > .wrap { pointer-events: none; }                 /* o arrasto passa para a máquina 3D… */
.hero-content > * { pointer-events: auto; }             /* …mas textos e botões continuam clicáveis */
.hotspots { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.hotspots.is-loading { visibility: hidden; }
.hotspot { position: absolute; left: 0; top: 0; width: 0; height: 0; transition: opacity .25s; }
.hotspot.is-hidden { opacity: 0; pointer-events: none; }
.hotspot.is-hidden * { pointer-events: none; }
.hotspot button {
  position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; pointer-events: auto; cursor: pointer;
  border: 2px solid #fff; background: var(--brand); color: #031004; font: 600 18px/1 var(--font); display: grid; place-items: center;
  box-shadow: 0 4px 14px rgba(10, 60, 20, .3);
}
.hotspot button span { transition: transform .25s var(--ease); }
.hotspot.is-open button span { transform: rotate(45deg); }
.hotspot button::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: pulso 2.4s infinite; }
@keyframes pulso { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.hotspot-card {
  position: absolute; left: 24px; top: -14px; width: 240px; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.96);
  border: 1px solid var(--line-2); box-shadow: 0 16px 40px -16px rgba(10,40,20,.35); font-size: 14px; color: var(--muted);
  opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .2s, transform .25s var(--ease);
}
.hotspot-card b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
.hotspot.is-open .hotspot-card { opacity: 1; transform: none; pointer-events: auto; }
.hotspot.is-open { z-index: 2; }
.drag-hint {
  position: absolute; z-index: 1; pointer-events: none; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line-2);
  right: max(var(--gutter), calc((100vw - var(--max)) / 2 + 300px)); bottom: 120px; transition: opacity .4s;
}
.drag-hint.is-gone { opacity: 0; }
@media (max-width: 1100px) { .drag-hint { right: auto; left: 50%; translate: -50% 0; bottom: auto; top: calc(var(--header-h) + 12px); } }
@media (min-aspect-ratio: 23/20) and (max-width: 1100px) {
  .drag-hint { left: auto; right: var(--gutter); translate: none; }
  .hero .hero-content { max-width: 48%; }          /* tablet deitado: texto à esquerda, máquina com espaço à direita */
}
.drag-hint { white-space: nowrap; }
@media (max-width: 640px) { .drag-hint .hint-extra { display: none; } }
@media (max-width: 640px) { .hotspot button { width: 28px; height: 28px; left: -14px; top: -14px; font-size: 16px; } .hotspot-card { width: 200px; font-size: 13px; } }
.hero::after { /* vinheta para legibilidade */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, rgba(245,247,245,.95) 0%, rgba(245,247,245,.6) 42%, rgba(245,247,245,0) 70%),
              linear-gradient(0deg, var(--bg) 0%, rgba(245,247,245,0) 22%);
}
.hero-content { padding: calc(var(--header-h) + 24px) 0 48px; max-width: 640px; display: grid; gap: 26px; }
.hero h1 span { color: var(--accent); }
.hero-content > p { max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hud {
  position: absolute; right: max(24px, calc((100vw - var(--max)) / 2)); bottom: 48px;
  font-family: var(--mono); font-size: 12px; color: var(--muted); display: grid; gap: 6px; min-width: 240px;
  padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(255,255,255,.78); backdrop-filter: blur(8px);
}
.hud-row { display: flex; justify-content: space-between; gap: 18px; }
.hud-row b { color: var(--text); font-weight: 500; }
.hud-row b.ok { color: var(--accent); }
.hud-bar { height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; margin-top: 4px; }
.hud-bar i { display: block; height: 100%; width: 0; background: var(--glow); box-shadow: 0 0 10px var(--glow); }
.scroll-hint { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .2em; }
@media (max-width: 1100px) { .hud { display: none; } }
/* Tela "em pé" (celular, tablet vertical): roda em cima, texto embaixo.
   O limite 23/20 (≈1,15) é o mesmo usado em js/hero3d.js. */
@media (max-aspect-ratio: 23/20) {
  /* A máquina ganha um "palco" próprio logo abaixo do cabeçalho e o texto vem depois dele,
     assim os dois nunca se sobrepõem, seja qual for a altura da tela ou o tamanho do texto. */
  .hero { --palco: clamp(300px, 88vw, 560px); display: block; min-height: 0; padding-top: calc(var(--header-h) + var(--palco)); }
  .hero canvas, .hotspots { inset: var(--header-h) 0 auto 0; height: var(--palco); }
  .hero canvas { -webkit-mask-image: linear-gradient(#000 72%, transparent); mask-image: linear-gradient(#000 72%, transparent); }
  .hero::after { display: none; }
  .hero-content { padding: 4px 0 56px; gap: 20px; }
  .drag-hint, .hero .drag-hint { top: calc(var(--header-h) + var(--palco) - 44px); bottom: auto; left: 50%; right: auto; translate: -50% 0; }
  .scroll-hint { display: none; }
}
@media (max-width: 480px) {
  .hero-actions .btn { flex: 1 1 100%; justify-content: center; }
}

/* ---------- seções ---------- */
.section { padding: clamp(64px, 11vw, 150px) 0; position: relative; }
.section-head { display: grid; gap: 18px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head--row { max-width: none; grid-template-columns: 1fr auto; align-items: end; }
@media (max-width: 640px) { .section-head--row { grid-template-columns: 1fr; align-items: start; } .section-head--row .btn { justify-self: start; } }
.grid-bg { position: relative; isolation: isolate; }
.grid-bg::before { /* grade decorativa só no fundo, sem afetar o conteúdo */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
  mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}

/* portas Leves / Pesados */
.doors { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.door {
  position: relative; min-height: 380px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); display: flex; flex-direction: column; justify-content: flex-end; padding: 32px; gap: 10px;
  transition: border-color .3s, transform .4s var(--ease);
}
.door:hover { border-color: var(--line-2); transform: translateY(-4px); }
.door .door-art { position: absolute; inset: 0; display: grid; place-items: center; opacity: .9; }
.door .door-art svg { width: 78%; height: auto; color: var(--line-2); transition: color .4s, transform .6s var(--ease); }
.door:hover .door-art svg { color: rgba(31,191,42,.65); transform: scale(1.04); }
.door::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, var(--panel) 18%, transparent 65%); z-index: 1; }
.door > *:not(.door-art) { position: relative; z-index: 2; }
.door .count { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.door .go { display: inline-flex; gap: 8px; color: var(--muted); font-size: 15px; }
.door:hover .go { color: var(--text); }
.door-title { font-size: clamp(26px, 3vw, 34px); }
@media (max-width: 760px) { .doors { grid-template-columns: 1fr; gap: 14px; } .door { min-height: 240px; padding: 24px; } }

/* palco claro para produtos */
.stage {
  position: relative; background: radial-gradient(120% 90% at 50% 20%, #ffffff 0%, var(--stage) 55%, #d9ded9 100%);
  border-radius: 14px; overflow: hidden; isolation: isolate;
}
.stage > img { position: absolute; inset: 0; z-index: 1; mix-blend-mode: multiply; object-fit: contain; width: 100%; height: 100%; }
.stage::after { /* reflexo de piso */
  content: ""; position: absolute; left: 12%; right: 12%; bottom: 7%; height: 10%;
  background: radial-gradient(closest-side, rgba(0,0,0,.18), transparent); filter: blur(4px); z-index: 0; pointer-events: none;
}

/* cartões de categoria / produto */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px; display: grid; gap: 14px;
  transition: border-color .3s, transform .4s var(--ease), box-shadow .4s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-4px); box-shadow: 0 24px 60px -28px rgba(14,80,24,.28); }
.card .stage { aspect-ratio: 4 / 3.4; }
.card .stage img { padding: 14px; transition: transform .6s var(--ease); }
.card:hover .stage img { transform: scale(1.05); }
.card-body { padding: 2px 8px 10px; display: grid; gap: 6px; }
.card-kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); display: flex; justify-content: space-between; gap: 8px; }
.card-title { font-size: 19px; font-weight: 600; line-height: 1.25; }
.card-model { font-family: var(--mono); font-size: 13px; color: var(--accent); }
.badges { display: flex; gap: 6px; flex-wrap: wrap; }
.badge { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); }

/* carrossel infinito (categorias) */
.carousel { position: relative; overflow: hidden; padding: 8px 0 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.carousel-track { display: flex; gap: 18px; width: max-content; will-change: transform; touch-action: pan-y; cursor: grab; user-select: none; }
.carousel.is-dragging .carousel-track { cursor: grabbing; }
.carousel .card { flex: none; width: clamp(230px, 24vw, 300px); }
.carousel.is-dragging .card { transform: none; }
.carousel img { -webkit-user-drag: none; pointer-events: none; }
.carousel.is-static { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
.carousel.is-static .carousel-track { padding-inline: var(--gutter); }
.carousel.is-static .card { scroll-snap-align: start; }
.carousel-nav { display: flex; gap: 8px; }
.carousel-nav button { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, background .2s; }
.carousel-nav button:hover { border-color: var(--glow); background: rgba(31,191,42,.08); }
@media (max-width: 640px) { .carousel-track { gap: 12px; } .carousel { -webkit-mask-image: none; mask-image: none; } }

/* destaque */
.feature { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.feature .stage { height: min(600px, 72vh); }
.feature .stage img { padding: clamp(18px, 3vw, 36px); }
@media (max-width: 900px) { .feature .stage { height: auto; aspect-ratio: 1; max-height: 70vh; width: 100%; } }
@media (max-width: 480px) { .specs-mini dd { font-size: 17px; } .specs-mini div { padding: 12px 14px; } }
.specs-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 28px 0; }
.specs-mini div { background: var(--bg-2); padding: 16px 18px; }
.specs-mini dt { font-family: var(--mono); font-size: 11px; color: var(--dim); letter-spacing: .12em; text-transform: uppercase; }
.specs-mini dd { margin: 4px 0 0; font-size: 20px; font-weight: 500; }
@media (max-width: 900px) { .feature { grid-template-columns: 1fr; gap: 32px; } }

/* linha do tempo */
.timeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); }
.timeline li { list-style: none; padding: 28px 28px 0 0; position: relative; display: grid; gap: 10px; }
.timeline li::before { content: ""; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--glow); box-shadow: 0 0 14px var(--glow); }
.timeline .when { font-family: var(--mono); color: var(--accent); font-size: 13px; letter-spacing: .1em; }
.timeline p { color: var(--muted); }
.timeline { padding: 0; margin: 0; }
@media (max-width: 760px) { .timeline { grid-template-columns: 1fr; border-top: 0; border-left: 1px solid var(--line-2); } .timeline li { padding: 0 0 32px 28px; } .timeline li::before { top: 6px; left: -5px; } }

/* ferramentas interativas */
.tools { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 3vw, 30px); background: linear-gradient(160deg, var(--panel-2), var(--bg-2)); display: grid; gap: 14px; align-content: start; min-height: 260px; position: relative; overflow: hidden; }
.tool .ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.tool p { color: var(--muted); font-size: 15px; }
.tool .soon { position: absolute; top: 22px; right: 22px; }
@media (max-width: 640px) { .tools { grid-template-columns: 1fr; } .tool { min-height: 0; } }

/* chamada final */
.cta-band { border: 1px solid var(--line-2); border-radius: 28px; padding: clamp(36px, 6vw, 72px); display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  background: radial-gradient(80% 140% at 100% 0%, rgba(31,191,42,.16), transparent 60%), var(--panel); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; border-radius: 22px; } .cta-band .btn { justify-content: center; } }

/* rodapé */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; color: var(--muted); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { margin: 0 0 14px; font-family: var(--mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--dim); font-weight: 500; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-grid a:hover { color: var(--text); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--dim); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }
@media (max-width: 420px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- catálogo: menu lateral + máquina aberta ---------- */
.seg { display: flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; background: var(--panel); }
.seg button { flex: 1; background: none; border: 0; padding: 8px 12px; border-radius: 999px; font-size: 14px; color: var(--muted); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-pressed="true"] { background: var(--brand); color: #031004; }
.search { position: relative; display: block; }
.search input { width: 100%; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); border-radius: 999px; padding: 10px 16px 10px 38px; font: inherit; font-size: 15px; }
.search svg { position: absolute; left: 13px; top: 50%; translate: 0 -50%; color: var(--dim); }
.empty { padding: 48px 0; text-align: center; color: var(--muted); }

.catalog { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); padding: calc(var(--header-h) + 28px) 0 100px; align-items: start; }
.cat-side { position: sticky; top: calc(var(--header-h) + 20px); max-height: calc(100vh - var(--header-h) - 40px); display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.cat-side-head { display: grid; gap: 12px; padding: 20px 18px 16px; border-bottom: 1px solid var(--line); }
.cat-side-title { display: grid; gap: 6px; }
.cat-side-title h1 { font-size: 30px; }
.cat-list { position: relative; overflow-y: auto; padding: 8px 8px 16px; overscroll-behavior: contain; }
.cat-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 10px; border-radius: 10px; font-weight: 600; font-size: 15px; user-select: none; }
.cat-group summary::-webkit-details-marker { display: none; }
.cat-group summary::after { content: ""; width: 8px; height: 8px; border-right: 1.6px solid var(--dim); border-bottom: 1.6px solid var(--dim); rotate: -45deg; transition: rotate .2s; margin-left: 2px; }
.cat-group[open] summary::after { rotate: 45deg; }
.cat-group summary:hover { background: var(--panel-2); }
.cat-count { margin-left: auto; font-family: var(--mono); font-size: 11px; color: var(--dim); font-weight: 400; }
.cat-group ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.cat-group a { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; border: 1px solid transparent; transition: background .2s, border-color .2s; }
.cat-group a:hover { background: var(--panel-2); }
.cat-group a[aria-current="true"] { background: rgba(31,191,42,.09); border-color: rgba(31,191,42,.45); }
.cat-thumb { flex: none; width: 52px; height: 52px; border-radius: 10px; background: var(--stage); overflow: hidden; }
.cat-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 4px; }
.cat-name { display: grid; gap: 1px; min-width: 0; }
.cat-name b { font-weight: 500; font-size: 14.5px; line-height: 1.3; }
.cat-name small { font-family: var(--mono); font-size: 12px; color: var(--accent); }

.cat-detail { min-width: 0; container-type: inline-size; }
.cat-back { display: none; }
#detalhe-conteudo.is-in { animation: entrar .45s var(--ease); }
@keyframes entrar { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 960px) {
  .catalog { grid-template-columns: 1fr; padding-top: calc(var(--header-h) + 16px); }
  .cat-side { position: static; max-height: none; border: 0; background: none; border-radius: 0; overflow: visible; }
  .cat-side-head { padding: 8px 0 16px; position: sticky; top: var(--header-h); z-index: 5; background: var(--bg); }
  .cat-list { overflow: visible; padding: 0; }
  .cat-group { border-bottom: 1px solid var(--line); }
  .cat-group summary { padding: 16px 4px; font-size: 17px; }
  .cat-group a { padding: 10px 4px; }
  .cat-thumb { width: 64px; height: 64px; }
  .cat-name b { font-size: 16px; }
  .catalog .cat-detail { display: none; }   /* só no catálogo; a página da máquina (maquinas/) sempre mostra */
  .catalog.show-detail .cat-side { display: none; }
  .catalog.show-detail .cat-detail { display: block; }
  .cat-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 16px; padding: 10px 14px 10px 10px; border-radius: 999px;
    border: 1px solid var(--line-2); background: var(--panel); cursor: pointer; font-size: 15px; }
}

/* ---------- página de produto ---------- */
.crumbs { font-family: var(--mono); font-size: 12px; color: var(--dim); display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--text); }
/* máquina aberta (usada no catálogo); o layout se adapta à largura do painel, não da tela */
.pv { display: grid; gap: clamp(40px, 6vw, 72px); }
.pv-top { display: grid; gap: 28px; }
@container (min-width: 760px) { .pv-top { grid-template-columns: 1.1fr 1fr; gap: 40px; align-items: start; } .viewer { position: sticky; top: calc(var(--header-h) + 20px); } }
.pv-title { font-size: clamp(30px, 4vw, 48px); }
.pv-h2 { font-size: clamp(26px, 3vw, 38px); }
.pv-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 480px) { .pv-actions .btn { flex: 1 1 100%; justify-content: center; } }
.viewer { display: grid; gap: 12px; min-width: 0; }
.viewer .stage { aspect-ratio: 1; cursor: zoom-in; perspective: 1000px; }
.viewer .stage img { padding: clamp(14px, 3vw, 28px); transition: transform .2s ease-out; will-change: transform; }
.viewer .stage.is-zoom img { transform: scale(2); cursor: zoom-out; transition: none; }
.viewer-tag { position: absolute; top: 14px; left: 14px; z-index: 3; font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.92); color: var(--accent); border: 1px solid var(--line-2); padding: 6px 10px; border-radius: 999px; }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.thumbs button { flex: 0 0 72px; height: 72px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; cursor: pointer; background: var(--stage); }
.thumbs button img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.thumbs button[aria-current="true"] { border-color: var(--glow); box-shadow: 0 0 0 1px var(--glow); }
.product-info { display: grid; gap: 22px; }
.product-info h1 { font-size: clamp(34px, 4vw, 54px); }
.product-model { font-family: var(--mono); font-size: 18px; color: var(--accent); }
.product-info .desc { color: var(--muted); }
.kv { display: flex; gap: 10px; font-size: 15px; color: var(--muted); }
.kv b { color: var(--text); font-weight: 500; }
.highlights { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.highlights li { padding-left: 26px; position: relative; color: var(--muted); font-size: 15.5px; }
.highlights li::before { content: ""; position: absolute; left: 0; top: .62em; width: 12px; height: 2px; background: var(--glow); box-shadow: 0 0 8px var(--glow); }
.spec-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.spec-group { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--bg-2); }
.spec-group h3 { font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); padding: 16px 20px; border-bottom: 1px solid var(--line); }
.spec-group dl { margin: 0; }
.spec-group dl div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 20px; border-bottom: 1px solid var(--line); font-size: 15px; }
.spec-group dl div:last-child { border-bottom: 0; }
.spec-group dt { color: var(--muted); }
.spec-group dd { margin: 0; font-family: var(--mono); font-size: 14px; text-align: right; }
@media (max-width: 480px) { .spec-group dl div { padding: 11px 16px; font-size: 14px; } .spec-group h3 { padding: 14px 16px; } .thumbs button { flex-basis: 60px; height: 60px; } }

/* página própria de cada máquina (maquinas/*.html, gerada pelo painel) */
.maquina { padding: calc(var(--header-h) + clamp(20px, 4vw, 40px)) 0 clamp(64px, 9vw, 110px); display: grid; gap: 24px; }
.pv-title .product-model { display: block; margin-top: 10px; font-weight: 400; }
.maquina-fab { font-size: 14px; color: var(--dim); }
.maquina-outros { display: grid; gap: 18px; }
.maquina-outros ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.maquina-outros a { display: inline-block; padding: 10px 16px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--panel); font-size: 15px; }
.maquina-outros a:hover { border-color: var(--accent); color: var(--accent); }

/* ================= orçamento ================= */
[hidden] { display: none !important; }
.orc { padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(64px, 9vw, 110px); }
.orc-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(24px, 4vw, 40px); }
.orc-head h1 { font-size: clamp(34px, 5vw, 58px); }
.orc-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.orc-main { display: grid; gap: 24px; min-width: 0; }
.orc-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(18px, 3vw, 28px); margin: 0; min-width: 0; }
.orc-card legend { float: left; width: 100%; display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; margin-bottom: 18px; padding: 0; }
.orc-card legend + * { clear: both; }
.orc-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #031004; font-family: var(--mono); font-size: 14px; flex: none; }

.orc-filtros { display: grid; gap: 12px; margin-bottom: 16px; }
.orc-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -.5); padding: 2px calc(var(--gutter) * .5); }
.orc-chips::-webkit-scrollbar { display: none; }
.orc-chips button { flex: none; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 7px 14px; font: inherit; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.orc-chips button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }

.orc-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; max-height: 470px; overflow-y: auto; padding: 2px; margin: -2px; overscroll-behavior: contain; }
.orc-prod { position: relative; display: grid; grid-template-columns: 56px 1fr 22px; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.orc-prod:hover { border-color: var(--line-2); }
.orc-prod input { position: absolute; opacity: 0; pointer-events: none; }
.orc-prod:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.orc-prod:has(input:checked) { border-color: var(--brand); background: #eef8ef; box-shadow: inset 0 0 0 1px var(--brand); }
.orc-prod-img { width: 56px; height: 56px; border-radius: 10px; background: #fff; display: grid; place-items: center; overflow: hidden; }
.orc-prod-img img { max-width: 90%; max-height: 90%; object-fit: contain; }
.orc-prod-txt { display: grid; gap: 2px; min-width: 0; }
.orc-prod-txt b { font-weight: 500; font-size: 15px; line-height: 1.25; }
.orc-prod-txt small { font-family: var(--mono); font-size: 11.5px; color: var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.orc-check { width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line-2); background: #fff; display: grid; place-items: center; transition: background .2s, border-color .2s; }
.orc-prod:has(input:checked) .orc-check { background: var(--brand); border-color: var(--brand); }
.orc-prod:has(input:checked) .orc-check::after { content: ""; width: 10px; height: 5px; border: 2px solid #031004; border-top: 0; border-right: 0; rotate: -45deg; translate: 0 -1px; }

.orc-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 18px; }
.campo { display: grid; gap: 6px; align-content: start; min-width: 0; }
.campo--largo { grid-column: 1 / -1; }
.campo > label { font-size: 14px; font-weight: 500; }
.obr { color: var(--accent); }
.opc { color: var(--dim); font-weight: 400; }
.campo input:not([type=checkbox]), .campo select, .campo textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s, background .2s; }
.campo textarea { resize: vertical; min-height: 92px; }
.campo input:focus, .campo select:focus, .campo textarea:focus { outline: none; border-color: var(--accent); background: #fff; box-shadow: 0 0 0 3px rgba(14,127,24,.14); }
.campo [aria-invalid="true"] { border-color: #c4352b; background: #fff7f6; }
.orc-dica { font-size: 12.5px; color: var(--dim); }
.orc-erro { font-size: 13px; color: #b3261e; min-height: 0; }
.orc-armadilha { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.orc-erro:empty { display: none; }
.orc-erro a { color: inherit; font-weight: 600; }
.orc-aceite { display: flex; gap: 12px; align-items: flex-start; font-size: 14.5px; color: var(--muted); cursor: pointer; }
.orc-aceite input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; }

.orc-resumo { position: sticky; top: calc(var(--header-h) + 20px); }
.orc-resumo-card { display: grid; gap: 16px; }
.orc-resumo-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.orc-resumo-head h2 { font-size: 20px; font-weight: 500; }
.orc-count { font-size: 12px; color: var(--accent); }
.orc-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 340px; overflow-y: auto; }
.orc-lista li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.orc-lista li:last-child { border-bottom: 0; }
.orc-lista-nome { display: grid; gap: 2px; min-width: 0; font-size: 14.5px; }
.orc-lista-nome b { font-weight: 500; }
.orc-lista-nome small { font-family: var(--mono); font-size: 11.5px; color: var(--accent); }
.orc-vazio { display: block !important; color: var(--dim); font-size: 14.5px; border: 1px dashed var(--line-2) !important; border-radius: 12px; padding: 16px !important; text-align: center; }
.orc-qtd { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.orc-qtd button { width: 32px; height: 32px; border: 0; background: none; font-size: 17px; cursor: pointer; color: var(--text); border-radius: 50%; }
.orc-qtd button:disabled { color: var(--dim); cursor: default; }
.orc-qtd output { min-width: 22px; text-align: center; font-family: var(--mono); font-size: 14px; }
.orc-remover { width: 30px; height: 30px; border: 0; border-radius: 50%; background: none; color: var(--dim); font-size: 20px; cursor: pointer; }
.orc-remover:hover { background: var(--panel-2); color: var(--text); }
.orc-enviar { width: 100%; justify-content: center; padding-block: 15px; }
.orc-enviar:disabled { opacity: .7; cursor: progress; transform: none; }
.orc-nota { font-size: 12.5px; color: var(--dim); text-align: center; }

.orc-ok { max-width: 720px; margin-inline: auto; display: grid; gap: 18px; justify-items: start; outline: none; }
.orc-ok-icone { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); color: #031004; display: grid; place-items: center; animation: orc-pop .5s var(--ease); }
@keyframes orc-pop { from { transform: scale(.6); opacity: 0; } }
.orc-ok h2 { font-size: clamp(32px, 5vw, 48px); }
.orc-whats { width: 100%; display: flex; gap: 18px; align-items: center; justify-content: space-between; padding: 20px 22px; border: 1px solid #bfe3c3; background: #eff9f0; border-radius: var(--radius); }
.orc-whats p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.btn--whats { background: #1f9d55; border-color: #1f9d55; color: #fff; flex: none; }
.btn--whats:hover { background: #18864a; border-color: #18864a; }
.orc-previa { width: 100%; font-size: 14px; color: var(--muted); }
.orc-previa summary { cursor: pointer; }
.orc-previa pre { margin-top: 10px; white-space: pre-wrap; font-family: var(--mono); font-size: 13px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; color: var(--text); }

@media (max-width: 960px) {
  .orc-grid { grid-template-columns: 1fr; }
  .orc-resumo { position: static; }
  .orc-produtos { max-height: 400px; }
}
@media (max-width: 640px) {
  .orc-campos { grid-template-columns: 1fr; }
  .campo--uf { max-width: 140px; }
  .orc-whats { flex-direction: column; align-items: stretch; }
  .orc-whats .btn { justify-content: center; }
  .orc-produtos { grid-template-columns: 1fr; max-height: 360px; }
}

/* ================= onde encontrar ================= */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.onde { padding: calc(var(--header-h) + clamp(28px, 5vw, 56px)) 0 clamp(64px, 9vw, 110px); }
.onde-demo { margin: 0 0 18px; padding: 10px 14px; border-radius: 12px; border: 1px dashed #c9a227; background: #fff8dc; color: #6b5300; font-size: 14px; }
.onde-filtros { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.onde-tipos { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line-2); }
.onde-tipos button { border: 0; background: none; border-radius: 999px; padding: 8px 16px; font-size: 14px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.onde-tipos button[aria-pressed="true"] { background: var(--text); color: #fff; }
.onde-select select { font: inherit; font-size: 15px; color: var(--text); background: var(--panel); border: 1px solid var(--line-2); border-radius: 999px; padding: 9px 38px 9px 16px; min-width: 240px;
  appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234b5a51' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; cursor: pointer; }
.onde-regioes { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: clamp(18px, 3vw, 28px); }
.onde-regioes button { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); border-radius: 999px; padding: 7px 8px 7px 14px; font-size: 14px; cursor: pointer; transition: background .2s, color .2s, border-color .2s; }
.onde-regioes button:hover { border-color: var(--accent); color: var(--text); }
.onde-regioes button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.onde-qtd { font-family: var(--mono); font-size: 11px; min-width: 22px; padding: 1px 6px; border-radius: 999px; background: var(--panel-2); color: var(--muted); text-align: center; }
.onde-regioes button[aria-pressed="true"] .onde-qtd { background: rgba(255,255,255,.22); color: #fff; }

.onde-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.onde-mapa-box { position: sticky; top: calc(var(--header-h) + 16px); border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(160deg, var(--panel-2), var(--bg-2)); padding: clamp(12px, 2vw, 24px); }
.onde-mapa { overflow: hidden; border-radius: 10px; }
.onde-mapa svg { display: block; width: 100%; height: auto; max-height: 68vh; overflow: hidden; }
.onde-mapa path { fill: #dfe6e0; stroke: #fff; stroke-width: 1; stroke-linejoin: round; cursor: pointer; outline: none; transition: fill .25s, opacity .3s; vector-effect: non-scaling-stroke; }
.onde-mapa path.tem { fill: #b9e2be; }
.onde-mapa path.na-regiao { fill: #cfd9d1; }
.onde-mapa path.na-regiao.tem { fill: #6fcf79; }
.onde-mapa path.fora { opacity: .35; }
.onde-mapa path:hover, .onde-mapa path:focus-visible { fill: #3fae4a; opacity: 1; }
.onde-mapa path.ativo { fill: var(--accent); stroke: #0d1611; stroke-width: 1.5; opacity: 1; }
.onde-tip { position: absolute; left: 0; top: 0; pointer-events: none; z-index: 2; margin: -58px 0 0 -70px; width: 140px; padding: 7px 10px; border-radius: 10px; background: var(--text); color: #fff; font-size: 13px; line-height: 1.3; text-align: center; display: grid; }
.onde-tip span { color: rgba(255,255,255,.75); font-size: 12px; }
.onde-legenda { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px; font-size: 13px; color: var(--muted); }
.onde-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.onde-legenda i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.l-com { background: #6fcf79; } .l-sem { background: #dfe6e0; }
.onde-credito { margin: 6px 0 0; font-size: 11px; color: var(--dim); }

.onde-resultado { scroll-margin-top: calc(var(--header-h) + 14px); }
.onde-res-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.onde-res-head h2 { margin: 0; font-size: clamp(24px, 3vw, 34px); }
.onde-limpar { border: 0; background: none; color: var(--accent); font-size: 14px; cursor: pointer; text-decoration: underline; padding: 0; }
.onde-res-sub { margin: 4px 0 16px; color: var(--muted); font-family: var(--mono); font-size: 13px; min-height: 1em; }
.onde-lista { display: grid; gap: 12px; }
.onde-card { border: 1px solid var(--line); border-radius: 16px; background: var(--panel); padding: 18px 20px; display: grid; gap: 6px; }
.onde-card .badge { justify-self: start; color: var(--accent); border-color: rgba(14,127,24,.3); }
.onde-card .badge--assist { color: #1d5fa8; border-color: rgba(29,95,168,.3); }
.onde-card h3 { margin: 4px 0 0; font-size: 18px; font-weight: 600; }
.onde-obs { margin: 0; color: var(--accent); font-size: 14px; font-weight: 600; }
.onde-local { margin: 0; color: var(--text); font-size: 15px; }
.onde-atende { margin: 0; color: var(--muted); font-size: 14px; }
.onde-atende abbr { text-decoration: none; font-family: var(--mono); font-size: 12px; }
.onde-contatos { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 6px; }
.onde-contatos a { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 15px; overflow-wrap: anywhere; }
.onde-contatos a:hover { text-decoration: underline; }
.onde-vazio { border: 1px dashed var(--line-2); border-radius: 16px; padding: 22px; background: var(--panel); }
.onde-vazio h3 { margin: 0 0 6px; font-size: 18px; }
.onde-vazio p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }
a.tool { color: inherit; transition: border-color .2s, transform .2s var(--ease); }
a.tool:hover { border-color: var(--accent); transform: translateY(-2px); }
.tool .ir { color: var(--accent); font-size: 14px; font-weight: 500; }

@media (max-width: 900px) {
  .onde-grid { grid-template-columns: 1fr; }
  .onde-mapa-box { position: static; }
  .onde-mapa svg { max-height: 56vh; }
}
@media (max-width: 640px) {
  .onde-filtros { flex-direction: column; align-items: stretch; }
  .onde-tipos { display: flex; } .onde-tipos button { flex: 1; padding: 8px 6px; font-size: 13px; }
  .onde-select select { width: 100%; min-width: 0; }
  .onde-regioes { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .onde-regioes button { flex: none; }
  .onde-tip { display: none; }
}

/* ================= destaques (4 equipamentos com setas) ================= */
.dest-info { display: grid; gap: 18px; min-width: 0; }
.dest-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dest-conta { font-size: 13px; color: var(--muted); }
.dest-texto { display: grid; gap: 10px; align-content: start; }
.dest-texto h2 { margin: 0; }
.dest-texto .product-model, .dest-texto .lead { margin: 0; }
.dest-texto .specs-mini { margin: 10px 0 0; }
.dest-cat { font-size: 12px; color: var(--accent); letter-spacing: .1em; text-transform: uppercase; }
.dest-acoes { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 6px; }
.dest-pontos { display: flex; gap: 8px; }
.dest-pontos button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: var(--line-2); cursor: pointer; transition: background .3s, width .3s var(--ease); }
.dest-pontos button[aria-selected="true"] { background: var(--accent); width: 44px; }
.dest-pontos button::before { content: ""; display: block; height: 24px; margin-top: -10px; }
#destaque .dest-stage img, #destaque .dest-texto { transition: opacity .28s ease, transform .45s var(--ease); }
#destaque.dest-saindo .dest-stage img { opacity: 0; transform: translateX(calc(var(--dir, 1) * -40px)) scale(.97); }
#destaque.dest-saindo .dest-texto { opacity: 0; transform: translateX(calc(var(--dir, 1) * -16px)); }
#destaque.dest-entrando .dest-stage img { opacity: 0; transform: translateX(calc(var(--dir, 1) * 40px)) scale(.97); transition: none; }
#destaque.dest-entrando .dest-texto { opacity: 0; transform: translateX(calc(var(--dir, 1) * 16px)); transition: none; }
#destaque .dest-stage { touch-action: pan-y; }
@media (prefers-reduced-motion: reduce) { #destaque .dest-stage img, #destaque .dest-texto { transition: none; } }
@media (max-width: 640px) { .dest-acoes .btn--primary { flex: 1; justify-content: center; } }

/* ================= por que a Eldorado ================= */
.pilares { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.pilares li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(22px, 3vw, 28px); display: grid; gap: 12px; align-content: start; }
.pilares .ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); }
.pilares h3 { font-size: 19px; font-weight: 400; line-height: 1.3; }
.pilares h3 b { display: block; font-size: clamp(26px, 2.6vw, 32px); font-weight: 600; letter-spacing: -.02em; color: var(--text); }
.pilares p { color: var(--muted); font-size: 15px; }
.pilares a { color: var(--accent); font-weight: 500; text-decoration: none; }
.pilares a:hover { text-decoration: underline; }
@media (max-width: 1000px) { .pilares { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pilares { grid-template-columns: 1fr; } }
.footer-assinatura { margin-top: 14px; font-weight: 500; color: var(--accent); }

/* ================= simulador de lucro ================= */
.sim-linhas { margin-bottom: clamp(18px, 3vw, 28px); }
.sim-grid { grid-template-columns: minmax(0, 1fr) 400px; }
.sim-h2 { display: flex; align-items: center; gap: 12px; font-size: clamp(19px, 2.2vw, 22px); font-weight: 500; margin: 0 0 18px; }
.sim-h2 small { color: var(--dim); font-size: 15px; font-weight: 400; }
.sim-dica { font-size: 13.5px; color: var(--muted); margin: -6px 0 14px; }
.sim-campo .sim-dica { margin: 8px 0 0; display: block; }
.sim-movimento { display: grid; grid-template-columns: 1.3fr 1fr; gap: 18px; }
.sim-campo { display: grid; gap: 8px; align-content: start; }
.sim-campo > label { font-size: 15px; color: var(--muted); }
.sim-input { font: inherit; font-size: 16px; color: var(--text); background: var(--bg); border: 1px solid var(--line-2); border-radius: 12px; padding: 11px 14px; width: 100%; min-width: 0; }
.sim-input:focus, .sim-passo input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.sim-passo { display: grid; grid-template-columns: 48px minmax(0, 1fr) 48px; border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--bg); }
.sim-passo button { border: 0; background: none; font-size: 24px; color: var(--text); cursor: pointer; }
.sim-passo button:hover { background: var(--panel-2); }
.sim-passo input { border: 0; background: none; text-align: center; font: 600 30px/1 var(--font); color: var(--text); padding: 10px 0; width: 100%; min-width: 0; -moz-appearance: textfield; }
.sim-passo input::-webkit-inner-spin-button, .sim-passo input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sim-reais { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); padding-left: 12px; }
.sim-reais span { font-family: var(--mono); font-size: 13px; color: var(--dim); }
.sim-reais .sim-input { border: 0; background: none; text-align: right; font-family: var(--mono); font-size: 15px; }
.sim-reais:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.sim-reais .sim-input:focus { outline: 0; }
.sim-pct { padding: 0 12px 0 0; }
.sim-servicos { display: grid; }
.sim-serv { display: grid; grid-template-columns: minmax(0, 1fr) 150px; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.sim-serv:first-child { border-top: 0; padding-top: 4px; }
.sim-serv-txt { display: grid; gap: 3px; min-width: 0; }
.sim-serv-txt label { font-weight: 500; font-size: 15.5px; }
.sim-serv-txt label small { font-weight: 400; color: var(--dim); font-size: 13px; margin-left: 4px; }
.sim-regra { font-family: var(--mono); font-size: 12px; color: var(--accent); }
.sim-notas { display: grid; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 0 4px; }
.sim-notas b { color: var(--text); font-weight: 500; }

.sim-resultado { display: grid; gap: 22px; }
.sim-res-titulo { font-size: 20px; font-weight: 500; margin: 0; }
.sim-rotulo { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sim-hero, .sim-retorno { display: grid; gap: 4px; }
.sim-hero strong { font-size: clamp(36px, 4.4vw, 46px); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sim-sub { font-size: 14px; color: var(--muted); }
.sim-retorno { padding-top: 18px; border-top: 1px solid var(--line); }
.sim-retorno strong { font-size: 28px; font-weight: 600; color: var(--accent); }
.sim-grafico { position: relative; margin-top: 8px; }
.sim-grafico svg { display: block; width: 100%; height: auto; overflow: visible; touch-action: pan-y; }
.sim-grafico text { font-family: var(--mono); font-size: 10px; fill: var(--dim); }
.sim-grafico .g-base { stroke: var(--line-2); stroke-width: 1; }
.sim-grafico .g-ref { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 4 4; }
.sim-grafico .g-ref-txt { fill: var(--muted); font-size: 10.5px; }
.sim-grafico .g-linha { stroke: var(--brand); stroke-width: 2; stroke-linecap: round; }
.sim-grafico .g-ponto { fill: var(--brand); stroke: var(--panel); stroke-width: 2; }
.sim-grafico .g-cruz { stroke: var(--line-2); stroke-width: 1; }
.sim-grafico .g-hover { fill: var(--panel); stroke: var(--brand); stroke-width: 2; }
.sim-grafico .g-alvo { fill: transparent; cursor: crosshair; }
.sim-eixo { display: block; text-align: right; font-family: var(--mono); font-size: 10px; color: var(--dim); margin-top: 2px; }
.sim-tip { position: absolute; top: -8px; translate: -50% -100%; display: grid; gap: 2px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 10px; font-size: 12.5px; color: var(--muted); white-space: nowrap; box-shadow: 0 10px 30px -14px rgba(10,40,20,.35); pointer-events: none; z-index: 2; }
.sim-tip b { color: var(--text); font-weight: 600; }
.sim-barras-box { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid var(--line); }
.sim-barras { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.sim-barras li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; font-size: 14px; }
.sim-b-nome { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sim-b-valor { font-family: var(--mono); font-size: 13px; color: var(--text); }
.sim-b-trilho { grid-column: 1 / -1; height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; }
.sim-b-trilho i { display: block; height: 100%; min-width: 2px; background: var(--brand); border-radius: 0 4px 4px 0; transition: width .35s var(--ease); }
.sim-aviso { font-size: 12.5px; color: var(--dim); margin: 0; }
.sim-aviso b { color: var(--muted); font-weight: 500; }
.sim-importante { margin: clamp(28px, 4vw, 44px) 0 0; font-size: 12.5px; line-height: 1.6; color: var(--dim); max-width: 900px; }
.sim-cta { width: 100%; justify-content: center; padding-block: 15px; }

.sim-flutua { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 16px; background: var(--text); color: #fff; text-decoration: none; box-shadow: 0 16px 40px -14px rgba(10,40,20,.5); }
.sim-flutua[hidden] { display: none; }
.sim-flutua span:first-child { display: grid; line-height: 1.2; }
.sim-flutua small { font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.7); }
.sim-flutua b { font-size: 22px; font-weight: 600; }
.sim-flutua-ir { font-size: 14px; color: var(--brand); white-space: nowrap; }
.sim .orc-resumo { scroll-margin-top: calc(var(--header-h) + 12px); }
#sim-res { scroll-margin-top: calc(var(--header-h) + 40px); }

@media (max-width: 1000px) {
  .sim-grid { grid-template-columns: 1fr; }
  .sim .orc-resumo { position: static; }
}
@media (max-width: 640px) {
  .sim-movimento { grid-template-columns: 1fr; }
  .sim-serv { grid-template-columns: minmax(0, 1fr) 128px; gap: 12px; }
  .sim-linhas { display: flex; width: 100%; }
  .sim-linhas button { flex: 1; }
}

/* revelação ao rolar */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ================= TREINAMENTOS ================= */
.trein { padding-top: calc(var(--header-h) + clamp(28px, 5vw, 56px)); }
.trein-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.trein-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: clamp(24px, 3.4vw, 36px); display: grid; gap: 16px; align-content: start; justify-items: start; }
.trein-card--online { background: linear-gradient(160deg, #e6f4e7, var(--bg-2) 70%); border-color: rgba(31,191,42,.35); }
.trein-card-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
.trein-card .ico { width: 46px; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--accent); background: var(--bg-2); flex: none; }
.trein-card h2 { font-size: clamp(26px, 3vw, 36px); }
.trein-card > p { color: var(--muted); }
.trein-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--brand); color: #031004; text-align: right; }
.trein-tag--espera { background: #fff4c7; color: #6b4f00; }
.trein-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.trein-lista li { position: relative; padding-left: 26px; }
.trein-lista li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.trein-card .btn { margin-top: 6px; }
.trein-nota { font-size: 13px; color: var(--dim); }
.trein-temas { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.trein-temas li { border-top: 1px solid var(--line-2); padding-top: 18px; display: grid; gap: 8px; align-content: start; }
.trein-temas .mono { color: var(--accent); font-size: 13px; }
.trein-temas h3 { font-size: 20px; font-weight: 500; }
.trein-temas p { color: var(--muted); font-size: 15px; }
.trein-espera { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.trein-espera .section-head { margin-bottom: 0; }
.trein-passos { margin: 8px 0 0; padding: 0; list-style: none; counter-reset: passo; display: grid; gap: 16px; }
.trein-passos li { counter-increment: passo; position: relative; padding-left: 46px; color: var(--muted); }
.trein-passos li::before { content: counter(passo); position: absolute; left: 0; top: -3px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #031004; font-family: var(--mono); font-size: 14px; }
.trein-passos b { color: var(--text); font-weight: 600; }
.trein-form { display: grid; gap: 18px; justify-items: start; }
.trein-form h3 { font-size: 22px; font-weight: 500; }
.trein-form .orc-campos { width: 100%; }
.trein-erro { color: #c4352b; font-size: 14px; margin: 0; }
@media (max-width: 900px) {
  .trein-cards, .trein-espera { grid-template-columns: 1fr; }
  .trein-temas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .trein-temas { grid-template-columns: 1fr; }
  .trein-form .orc-campos { grid-template-columns: 1fr; }
  .trein-card-topo { flex-direction: column-reverse; align-items: flex-start; }
}

/* ================= ONDE ESTAMOS (mapa) ================= */
.local { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.local-info { display: grid; gap: 18px; align-content: start; }
.local-dados { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; gap: 14px; }
.local-dados li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); }
.local-dados svg { color: var(--accent); flex: none; margin-top: 2px; }
.local-dados b { color: var(--text); font-weight: 600; }
.local-dados a { color: var(--text); font-weight: 600; text-decoration: none; }
.local-dados a:hover { color: var(--accent); }
.local-mapa { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: var(--panel-2); aspect-ratio: 4 / 3; min-height: 300px; }
.local-mapa iframe { display: block; width: 100%; height: 100%; border: 0; }
@media (max-width: 900px) { .local { grid-template-columns: 1fr; } .local-mapa { aspect-ratio: 1 / 1; max-height: 420px; } }
.trein-preco { margin: 0; color: var(--muted); font-size: 15px; }
.trein-preco b { color: var(--text); font-size: 20px; font-weight: 600; }
.trein-modulos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.trein-modulos > li { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 22px; display: grid; gap: 10px; align-content: start; }
.trein-modulos .mono { color: var(--accent); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.trein-modulos h3 { font-size: 19px; font-weight: 500; line-height: 1.25; }
.trein-modulos ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; display: grid; gap: 4px; }
.trein-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.trein-extras > div { border-top: 1px solid var(--line-2); padding-top: 18px; display: grid; gap: 8px; }
.trein-extras h3 { font-size: 20px; font-weight: 500; }
.trein-extras p { color: var(--muted); font-size: 15px; }
@media (max-width: 1080px) { .trein-modulos { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .trein-modulos, .trein-extras { grid-template-columns: 1fr; } }

/* ================= FOTO DA EMPRESA (Nossa história) ================= */
.empresa-topo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 64px); align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.empresa-topo .section-head { margin-bottom: 0; }
.empresa-foto { margin: 0; position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--stage); }
.empresa-foto img { display: block; width: 100%; height: auto; }
.empresa-foto figcaption { position: absolute; left: 12px; bottom: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--text); }
@media (max-width: 900px) { .empresa-topo { grid-template-columns: 1fr; } }
