/* GC Repair — Oficina Mecânica */
:root {
  --red: #e10600;
  --red-deep: #8a0400;
  --silver: #c9c9c9;
  --graphite: #2b2b2b;
  --steel: #1a1a1a;
  --black: #0b0b0b;
  --white: #ffffff;
  --muted: #8d8d8d;
  --line: rgba(255, 255, 255, 0.09);
  --metal: linear-gradient(180deg, #ffffff 0%, #d4d4d4 38%, #8c8c8c 52%, #e6e6e6 70%, #9a9a9a 100%);
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "Montserrat", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--red); color: #fff; }

/* grão de filme por cima de tudo */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.wrap { width: min(1240px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); letter-spacing: 0.04em; }
.red { color: var(--red); }
.metal-text {
  background: var(--metal);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* ---------- traço de velocidade /// ---------- */
.stripes { display: inline-flex; gap: 5px; transform: skewX(-24deg); }
.stripes i { display: block; width: 7px; height: 18px; background: var(--red); }
.stripes.sm i { width: 4px; height: 11px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 14px;
  font-family: var(--mono); font-size: 0.78rem; text-transform: uppercase;
  letter-spacing: 0.22em; color: var(--silver);
}

h1, h2, h3 { font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; text-transform: uppercase; }
.h-xl { font-size: clamp(3rem, 9vw, 8.6rem); font-style: italic; }
.h-lg { font-size: clamp(2.3rem, 5.6vw, 5rem); font-style: italic; }
.h-md { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.lead { color: #bdbdbd; font-size: clamp(1rem, 1.3vw, 1.15rem); max-width: 56ch; }

/* ---------- botões ---------- */
.btn {
  --bg: var(--red);
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 26px; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--bg); color: #fff;
  font-weight: 800; font-size: 0.86rem; letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden; isolation: isolate;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: #fff; transform: translateY(101%);
  transition: transform 0.5s var(--ease);
}
.btn:hover { color: var(--black); box-shadow: 0 14px 40px -10px rgba(225, 6, 0, 0.7); }
.btn:hover::before { transform: translateY(0); }
.btn .arr { transition: transform 0.4s var(--ease); }
.btn:hover .arr { transform: translateX(4px) rotate(-45deg); }
.btn.ghost { --bg: transparent; border: 1px solid rgba(255, 255, 255, 0.25); }
.btn.wa { --bg: #1faa53; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ---------- navegação ---------- */
.nav {
  position: fixed; inset: 16px 0 auto; z-index: 100;
  pointer-events: none;
}
.nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  background: rgba(14, 14, 14, 0.55); border: 1px solid var(--line);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  pointer-events: auto;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.nav.hide .wrap { transform: translateY(-140%); }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-style: italic; letter-spacing: -0.02em; font-size: 1.15rem; }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
.brand b { color: var(--red); }
.nav-links { display: flex; gap: 4px; list-style: none; }
.nav-links a {
  display: block; padding: 9px 15px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #cfcfcf;
  transition: background 0.3s, color 0.3s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(255, 255, 255, 0.08); color: #fff; }
.nav .btn { padding: 12px 20px; font-size: 0.74rem; }
.burger { display: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: transparent; cursor: pointer; }
.burger span { display: block; width: 18px; height: 2px; background: #fff; margin: 4px auto; transition: transform 0.3s; }

/* ---------- preloader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center;
  background: var(--black);
}
.loader-inner { display: grid; place-items: center; gap: 22px; }
.loader svg { width: 96px; height: 96px; }
.loader .count { font-family: var(--mono); font-size: 0.8rem; letter-spacing: 0.3em; color: var(--muted); }
.loader .bar { width: 180px; height: 2px; background: #222; overflow: hidden; }
.loader .bar i { display: block; height: 100%; width: 0; background: var(--red); }

/* ---------- cursor ---------- */
.cursor {
  position: fixed; left: 0; top: 0; z-index: 998; pointer-events: none;
  width: 34px; height: 34px; margin: -17px 0 0 -17px;
  border: 1.5px solid rgba(255, 255, 255, 0.6); border-radius: 50%;
  transition: width 0.3s var(--ease), height 0.3s var(--ease), margin 0.3s var(--ease), background 0.3s, border-color 0.3s;
  mix-blend-mode: difference;
}
.cursor.big { width: 74px; height: 74px; margin: -37px 0 0 -37px; background: #fff; border-color: #fff; }
@media (hover: none) { .cursor { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; padding: 140px 0 70px; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.55; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 75% 30%, rgba(225, 6, 0, 0.25), transparent 55%),
    linear-gradient(180deg, rgba(11, 11, 11, 0.4) 0%, rgba(11, 11, 11, 0.2) 40%, var(--black) 96%);
}
.hero-gears { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-gears svg { position: absolute; }
.g1 { width: min(620px, 70vw); right: -140px; top: 8%; opacity: 0.16; }
.g2 { width: min(300px, 38vw); right: min(380px, 36vw); top: 46%; opacity: 0.22; }
.g3 { width: 180px; left: -60px; top: 18%; opacity: 0.1; }
.hero h1 .line { display: block; overflow: hidden; padding-right: 0.1em; }
.hero h1 .line > span { display: inline-block; }
.hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
.hero-side { display: grid; gap: 22px; justify-items: start; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: grid; justify-items: center; gap: 8px; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.3em; color: var(--muted); }
.scroll-hint i { width: 1px; height: 40px; background: linear-gradient(var(--red), transparent); animation: drip 1.8s infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { opacity: 0; } }

/* tacômetro */
.tacho { position: absolute; right: 5%; top: 130px; width: 210px; z-index: 1; }
.tacho .rpm { position: absolute; inset: auto 0 4% 0; text-align: center; }
.tacho .rpm b { display: block; font-family: var(--mono); font-size: 1.8rem; font-weight: 700; }
.tacho .rpm span { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.3em; color: var(--muted); }

/* ---------- faixa rolante ---------- */
.marquee { border-block: 1px solid var(--line); padding: 22px 0; overflow: hidden; background: #0e0e0e; transform: rotate(-1.4deg); margin: 40px -20px; }
.marquee-track { display: flex; gap: 40px; width: max-content; will-change: transform; }
.marquee-track span { display: inline-flex; align-items: center; gap: 40px; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(1.6rem, 3.6vw, 3rem); white-space: nowrap; }
.marquee-track span.o { -webkit-text-stroke: 1px rgba(255, 255, 255, 0.5); color: transparent; }

/* ---------- seções ---------- */
section { position: relative; }
.sec { padding: clamp(90px, 12vw, 160px) 0; }
.sec-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; margin-bottom: 64px; }
.sec-head .eyebrow { margin-bottom: 18px; }

/* ---------- motor (seção fixada) ---------- */
.engine { height: 100svh; overflow: hidden; display: grid; align-items: center; background: radial-gradient(ellipse at 30% 50%, #1b0a0a 0%, var(--black) 60%); }
.engine-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 50px; align-items: center; }
.engine-svg { width: 100%; max-width: 620px; overflow: visible; }
.engine-svg .block { fill: url(#blockGrad); stroke: #3a3a3a; stroke-width: 2; }
.engine-svg .bore { fill: #070707; stroke: #333; }
.engine-svg .piston { fill: url(#pistonGrad); stroke: #777; }
.engine-svg .ring { stroke: #555; stroke-width: 1.5; }
.engine-svg .rod { stroke: #a9a9a9; stroke-width: 11; stroke-linecap: round; }
.engine-svg .crank { fill: none; stroke: #4a4a4a; stroke-width: 5; }
.engine-svg .pin { fill: var(--red); }
.engine-svg .spark { fill: var(--red); filter: url(#glow); opacity: 0; }
.engine-svg .valve { stroke: #bbb; stroke-width: 4; stroke-linecap: round; }
.stroke-steps { position: relative; min-height: 290px; }
.stroke-step { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); }
.stroke-step .num { font-family: var(--mono); color: var(--red); font-size: 0.8rem; letter-spacing: 0.3em; }
.stroke-step h3 { font-size: clamp(2rem, 4.4vw, 3.8rem); font-style: italic; margin: 12px 0 16px; }
.stroke-step p { color: #bdbdbd; max-width: 44ch; }
.engine-meta { display: flex; gap: 32px; margin-top: 34px; font-family: var(--mono); font-size: 0.75rem; color: var(--muted); letter-spacing: 0.12em; }
.engine-meta b { display: block; color: #fff; font-size: 1.5rem; letter-spacing: 0; }
.engine-progress { display: flex; gap: 8px; margin-top: 28px; }
.engine-progress i { width: 40px; height: 3px; background: #2a2a2a; position: relative; overflow: hidden; }
.engine-progress i b { position: absolute; inset: 0; background: var(--red); transform: scaleX(0); transform-origin: left; }

/* ---------- serviços (rolagem horizontal) ---------- */
.services { overflow: hidden; }
.h-track { display: flex; gap: 24px; padding-left: max(24px, calc((100vw - 1240px) / 2)); width: max-content; }
.svc {
  position: relative; width: min(420px, 78vw); height: min(560px, 70svh); border-radius: var(--radius);
  overflow: hidden; flex-shrink: 0; background: #111; border: 1px solid var(--line);
}
.svc img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.15); filter: grayscale(0.5) contrast(1.1); transition: filter 0.6s, transform 0.9s var(--ease); }
.svc:hover img { filter: grayscale(0) contrast(1.1); transform: scale(1.22); }
.svc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, 0.92)); }
.svc-body { position: absolute; inset: auto 0 0 0; z-index: 1; padding: 28px; }
.svc-body .n { font-family: var(--mono); font-size: 0.75rem; color: var(--red); letter-spacing: 0.2em; }
.svc-body h3 { font-size: 1.9rem; font-style: italic; margin: 8px 0 10px; }
.svc-body p { color: #c6c6c6; font-size: 0.92rem; }
.svc-ico { position: absolute; top: 22px; right: 22px; z-index: 1; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 14px; border: 1.5px solid var(--red); background: rgba(0, 0, 0, 0.5); backdrop-filter: blur(6px); }
.svc-ico svg { width: 26px; height: 26px; stroke: #fff; fill: none; stroke-width: 1.7; }
.svc.intro { background: transparent; border: 0; display: grid; align-content: center; width: min(460px, 86vw); }
.svc.intro::after { display: none; }

/* ---------- números ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 40px 24px 0; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat b { display: block; font-size: clamp(2.6rem, 5vw, 4.4rem); font-weight: 900; font-style: italic; line-height: 1; }
.stat span { color: var(--muted); font-size: 0.88rem; }

/* ---------- processo / estrada ---------- */
.road { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-top: 120px; }
.road-line { position: absolute; left: 0; right: 0; top: 40px; height: 40px; }
.road-line svg { width: 100%; height: 100%; overflow: visible; }
.road-line .road-car { position: absolute; top: -12px; left: 0; width: 86px; height: 36px; }
.step { position: relative; padding: 28px; border-radius: var(--radius); background: linear-gradient(180deg, #151515, #0e0e0e); border: 1px solid var(--line); }
.step .dot { position: absolute; top: -82px; left: 28px; width: 18px; height: 18px; border-radius: 50%; background: var(--black); border: 3px solid #444; transition: border-color 0.4s, box-shadow 0.4s; }
.step.on .dot { border-color: var(--red); box-shadow: 0 0 18px var(--red); }
.step .n { font-family: var(--mono); color: var(--red); font-size: 0.75rem; letter-spacing: 0.2em; }
.step h3 { font-size: 1.35rem; margin: 10px 0; font-style: italic; }
.step p { color: #aaa; font-size: 0.92rem; }

/* ---------- equipe ---------- */
.team { display: grid; grid-template-columns: 1.25fr 1fr; gap: 60px; align-items: center; }
.team-img { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; clip-path: inset(0 0 0 0 round 18px); }
.team-img img { width: 100%; height: 120%; object-fit: cover; }
.team-img .tag { position: absolute; left: 18px; bottom: 18px; padding: 10px 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.6); backdrop-filter: blur(8px); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.14em; }
.values { list-style: none; display: grid; gap: 0; margin-top: 30px; }
.values li { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.92rem; }
.values li span { font-family: var(--mono); color: var(--red); font-size: 0.75rem; }

/* ---------- galeria ---------- */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: 18px; }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: #111; }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.gallery figure:hover img { transform: scale(1.06); }
.gallery .a { grid-column: span 7; aspect-ratio: 16 / 11; }
.gallery .b { grid-column: span 5; aspect-ratio: 1; }
.gallery .c { grid-column: span 4; aspect-ratio: 1; }
.gallery .d { grid-column: span 4; aspect-ratio: 1; }
.gallery .e { grid-column: span 4; aspect-ratio: 1; }
.gallery figcaption { position: absolute; left: 16px; bottom: 16px; padding: 8px 14px; border-radius: 999px; background: rgba(0, 0, 0, 0.65); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.12em; }

/* ---------- portal (orçamento / OS) ---------- */
.portal { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.portal a {
  position: relative; overflow: hidden; display: grid; align-content: space-between; min-height: 380px;
  padding: 36px; border-radius: 24px; border: 1px solid var(--line);
  background: linear-gradient(160deg, #181818, #0d0d0d);
  transition: border-color 0.4s, transform 0.6s var(--ease);
}
.portal a:hover { border-color: rgba(225, 6, 0, 0.6); transform: translateY(-6px); }
.portal a .bg-gear { position: absolute; right: -90px; bottom: -90px; width: 300px; opacity: 0.08; transition: opacity 0.5s, transform 1.2s var(--ease); }
.portal a:hover .bg-gear { opacity: 0.22; transform: rotate(90deg); }
.portal h3 { font-size: clamp(2rem, 3.6vw, 3rem); font-style: italic; }
.portal p { color: #aaa; max-width: 38ch; margin-top: 14px; }
.portal .go { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; font-size: 0.82rem; letter-spacing: 0.1em; color: var(--red); }

/* ---------- contato ---------- */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; }
.contact-card { padding: 36px; border-radius: 24px; background: #111; border: 1px solid var(--line); display: grid; gap: 26px; align-content: start; }
.contact-card .row { display: flex; gap: 16px; align-items: flex-start; }
.contact-card .row svg { width: 22px; height: 22px; stroke: var(--red); fill: none; stroke-width: 1.8; flex-shrink: 0; margin-top: 3px; }
.contact-card small { display: block; font-family: var(--mono); color: var(--muted); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; }
.contact-card strong { font-size: 1.15rem; }
.map { border-radius: 24px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); filter: grayscale(1) invert(0.92) contrast(0.9); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; }

/* ---------- rodapé ---------- */
footer { border-top: 1px solid var(--line); padding: 70px 0 40px; overflow: hidden; }
.foot-big { font-size: clamp(4rem, 17vw, 15rem); font-weight: 900; font-style: italic; line-height: 0.8; letter-spacing: -0.04em; text-transform: uppercase; white-space: nowrap; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-top: 40px; color: var(--muted); font-size: 0.85rem; }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 90; width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: #1faa53; box-shadow: 0 12px 30px -8px rgba(31, 170, 83, 0.7); transition: transform 0.4s var(--ease); }
.wa-float:hover { transform: scale(1.08) rotate(-8deg); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* =========================================================
   Páginas internas (orçamento / OS)
   ========================================================= */
.page-hero { position: relative; padding: 170px 0 60px; overflow: hidden; }
.page-hero .bg-gear { position: absolute; right: -120px; top: 40px; width: 460px; opacity: 0.08; }
.page-hero h1 { font-size: clamp(2.6rem, 7vw, 6rem); font-style: italic; }
.page-hero .lead { margin-top: 22px; }

.panel { background: linear-gradient(180deg, #141414, #0e0e0e); border: 1px solid var(--line); border-radius: 24px; padding: clamp(22px, 3vw, 36px); }
.panel + .panel { margin-top: 20px; }
.panel-title { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; }
.panel-title h2 { font-size: 1.25rem; font-style: italic; }

.tabs { display: inline-flex; padding: 5px; border-radius: 999px; background: #151515; border: 1px solid var(--line); margin-bottom: 30px; position: relative; }
.tabs button { position: relative; z-index: 1; padding: 12px 22px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: #aaa; transition: color 0.3s; }
.tabs button.on { color: #fff; }
.tabs .pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: var(--red); transition: transform 0.5s var(--ease), width 0.5s var(--ease); }

.field { display: grid; gap: 8px; }
.field label { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: 14px; border: 1px solid #2c2c2c; background: #0b0b0b; outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(225, 6, 0, 0.15); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }

.lookup { display: grid; grid-template-columns: 1fr 1fr auto; gap: 14px; align-items: end; }
.demo-hint { margin-top: 16px; font-size: 0.85rem; color: var(--muted); }
.demo-hint button { background: none; border: 0; color: var(--red); cursor: pointer; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.error-msg { margin-top: 14px; color: #ff6b66; font-size: 0.9rem; display: none; }

.doc-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.sticky { position: sticky; top: 100px; }

.vehicle { display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: center; }
.plate { display: inline-grid; border-radius: 8px; overflow: hidden; border: 2px solid #ddd; background: #fff; color: #111; text-align: center; min-width: 150px; }
.plate small { background: #003399; color: #fff; font-size: 0.55rem; font-weight: 700; letter-spacing: 0.2em; padding: 2px 6px; }
.plate b { font-family: var(--mono); font-size: 1.5rem; padding: 4px 12px; letter-spacing: 0.08em; }
.vehicle h3 { font-size: 1.5rem; font-style: italic; }
.vehicle .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; color: var(--muted); font-size: 0.86rem; margin-top: 6px; }

.items { width: 100%; border-collapse: collapse; }
.items th { text-align: left; font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; color: var(--muted); font-weight: 500; padding: 0 10px 12px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.items td { padding: 16px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.items td.v { text-align: right; font-family: var(--mono); white-space: nowrap; }
.items th:last-child { text-align: right; }
.items tr.off td:not(:first-child) { opacity: 0.35; text-decoration: line-through; }
.items .desc b { display: block; font-weight: 700; }
.items .desc small { color: var(--muted); }
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.badge.req { background: rgba(225, 6, 0, 0.15); color: #ff6f6a; }
.badge.rec { background: rgba(255, 184, 0, 0.12); color: #ffc23d; }
.badge.ok { background: rgba(31, 170, 83, 0.15); color: #4fd682; }
.badge.mute { background: #222; color: #aaa; }

.toggle { position: relative; display: block; width: 46px; height: 26px; flex-shrink: 0; }
.toggle input { position: absolute; opacity: 0; inset: 0; cursor: pointer; z-index: 1; }
.toggle span { position: absolute; inset: 0; border-radius: 999px; background: #2d2d2d; transition: background 0.3s; }
.toggle span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform 0.35s var(--ease); }
.toggle input:checked + span { background: var(--red); }
.toggle input:checked + span::after { transform: translateX(20px); }
.toggle input:disabled { cursor: not-allowed; }
.toggle input:disabled + span { opacity: 0.55; }

.totals { display: grid; gap: 12px; }
.totals .r { display: flex; justify-content: space-between; color: #bbb; font-size: 0.95rem; }
.totals .r b { font-family: var(--mono); color: #fff; font-weight: 500; }
.totals .grand { padding-top: 16px; border-top: 1px solid var(--line); align-items: baseline; }
.totals .grand span { font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.totals .grand b { font-size: 2rem; font-weight: 800; color: #fff; }

.sigpad { position: relative; border-radius: 16px; border: 1.5px dashed #3a3a3a; background: repeating-linear-gradient(0deg, transparent 0 34px, rgba(255, 255, 255, 0.03) 34px 35px), #0a0a0a; height: 200px; touch-action: none; transition: border-color 0.3s; }
.sigpad.signed { border-style: solid; border-color: var(--red); }
.sigpad canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.sigpad .ph { position: absolute; inset: 0; display: grid; place-items: center; color: #555; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.2em; pointer-events: none; transition: opacity 0.3s; }
.sigpad .base { position: absolute; left: 24px; right: 24px; bottom: 44px; border-bottom: 1px solid #333; pointer-events: none; }
.sigpad .base::before { content: "✕"; position: absolute; left: 0; bottom: 4px; color: #555; font-size: 0.8rem; }
.sig-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 0.8rem; color: var(--muted); }
.sig-actions button { background: none; border: 0; color: #ddd; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: #bbb; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--red); margin-top: 2px; flex-shrink: 0; }

.stamp { display: inline-flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 12px; background: rgba(31, 170, 83, 0.12); border: 1px solid rgba(31, 170, 83, 0.4); color: #4fd682; font-weight: 700; font-size: 0.85rem; }

/* modal */
.modal { position: fixed; inset: 0; z-index: 500; display: none; place-items: center; padding: 20px; background: rgba(0, 0, 0, 0.75); backdrop-filter: blur(10px); }
.modal.open { display: grid; }
.modal-card { width: min(560px, 100%); max-height: 92svh; overflow: auto; background: #111; border: 1px solid var(--line); border-radius: 26px; padding: 36px; text-align: center; }
.modal-card .done { width: 110px; height: 110px; margin: 0 auto 20px; }
.modal-card h3 { font-size: 2rem; font-style: italic; }
.modal-card p { color: #aaa; margin-top: 10px; }
.receipt { text-align: left; margin: 26px 0; padding: 20px; border-radius: 16px; background: #0b0b0b; border: 1px solid var(--line); font-size: 0.88rem; display: grid; gap: 8px; }
.receipt .r { display: flex; justify-content: space-between; gap: 16px; }
.receipt .r span { color: var(--muted); }
.receipt img { background: #fff; border-radius: 10px; margin-top: 8px; width: 100%; height: 110px; object-fit: contain; filter: invert(1); background: #000; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }

/* ---------- OS ---------- */
.os-head { display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; }
.gauge { width: 190px; position: relative; }
.gauge .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge .val b { display: block; font-size: 2.6rem; font-weight: 900; font-style: italic; line-height: 1; }
.gauge .val span { font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.2em; color: var(--muted); }

.timeline { list-style: none; position: relative; display: grid; gap: 0; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 2px; background: #262626; }
.timeline .fill { position: absolute; left: 21px; top: 10px; width: 2px; background: var(--red); box-shadow: 0 0 12px var(--red); height: 0; }
.tl { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding: 14px 0; }
.tl .ico { position: relative; z-index: 1; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #151515; border: 2px solid #2d2d2d; }
.tl .ico svg { width: 20px; height: 20px; stroke: #666; fill: none; stroke-width: 1.8; }
.tl.done .ico { background: var(--red); border-color: var(--red); }
.tl.done .ico svg { stroke: #fff; }
.tl.now .ico { border-color: var(--red); background: #1a0605; }
.tl.now .ico svg { stroke: var(--red); animation: spin 3s linear infinite; }
.tl.now .ico::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--red); animation: pulse 1.8s infinite; }
@keyframes pulse { from { transform: scale(0.8); opacity: 0.9; } to { transform: scale(1.4); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
.tl h4 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.04em; }
.tl p { color: var(--muted); font-size: 0.86rem; }
.tl time { font-family: var(--mono); font-size: 0.72rem; color: #777; }
.tl.todo h4 { color: #666; }

.feed { display: grid; gap: 18px; }
.post { display: grid; grid-template-columns: 120px 1fr; gap: 16px; padding: 14px; border-radius: 16px; background: #0b0b0b; border: 1px solid var(--line); }
.post img { width: 120px; height: 96px; object-fit: cover; border-radius: 10px; }
.post time { font-family: var(--mono); font-size: 0.7rem; color: var(--red); letter-spacing: 0.1em; }
.post p { font-size: 0.9rem; color: #ccc; margin-top: 4px; }
.post .who { font-size: 0.75rem; color: var(--muted); margin-top: 6px; }

.svc-list { list-style: none; display: grid; gap: 10px; }
.svc-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }

.alert { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 22px 26px; border-radius: 18px; background: linear-gradient(90deg, rgba(225, 6, 0, 0.2), rgba(225, 6, 0, 0.04)); border: 1px solid rgba(225, 6, 0, 0.45); margin-bottom: 20px; }
.alert b { display: block; font-size: 1.05rem; }
.alert span { color: #ccc; font-size: 0.9rem; }

.hidden { display: none !important; }
.reveal { opacity: 0; transform: translateY(40px); }

/* ---------- responsivo ---------- */
@media (max-width: 1000px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: block; }
  .nav.open .nav-links { display: grid; position: absolute; top: calc(100% + 10px); left: 24px; right: 24px; padding: 14px; border-radius: 24px; background: rgba(14, 14, 14, 0.96); border: 1px solid var(--line); }
  .nav.open .nav-links a { padding: 14px 18px; font-size: 0.95rem; }
  .hero-grid, .engine-grid, .team, .contact, .sec-head, .doc-layout, .portal { grid-template-columns: 1fr; }
  .tacho { display: none; }
  .engine { height: auto; min-height: 100svh; padding: 110px 0 60px; }
  .engine-grid { gap: 20px; }
  .engine-svg { max-width: 420px; margin-inline: auto; }
  .stroke-steps { min-height: 250px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .road { grid-template-columns: 1fr 1fr; padding-top: 0; }
  .road-line, .road-car, .step .dot { display: none; }
  .gallery .a, .gallery .b { grid-column: span 12; }
  .gallery .c, .gallery .d, .gallery .e { grid-column: span 6; }
  .gallery .e { grid-column: span 12; aspect-ratio: 16 / 9; }
  .sticky { position: static; }
}
@media (max-width: 640px) {
  .wrap { width: calc(100% - 32px); }
  .road, .grid-2, .grid-3, .lookup { grid-template-columns: 1fr; }
  .os-head { grid-template-columns: 1fr; justify-items: start; }
  .items th:nth-child(3), .items td:nth-child(3) { display: none; }
  .post { grid-template-columns: 1fr; }
  .post img { width: 100%; height: 160px; }
  .hero { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

.services { height: 100svh; display: flex; align-items: center; margin-top: 60px; }
@media (max-width: 1000px) { .engine-svg { max-width: 340px; } .stroke-steps { min-height: 230px; } .engine-meta { gap: 20px; } }
