/* MotorLogic Pro — Dark Mode + Outline Técnico (#0c1117 / #00b4d8 / #ff6b1a) */
:root {
  --bg: #0c1117;
  --bg-alt: #131a22;
  --card: #17202b;
  --line: #273445;
  --cyan: #00b4d8;
  --cyan-soft: #64dfdf;
  --amber: #ff6b1a;
  --text: #e6edf3;
  --muted: #9fb0c3;
  --white: #ffffff;
  --ok: #22c55e;
  --err: #ef4444;
  --radius: 8px;
  --font-display: "Chakra Petch", "Segoe UI", sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  font-size: 16px;
}
img { max-width: 100%; display: block; height: auto; }
a { color: var(--cyan-soft); text-decoration: none; }
a:hover { color: var(--amber); }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--white);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: 0.01em;
}
h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.5rem; }
p { margin-bottom: 1rem; color: var(--muted); }
ul, ol { margin: 0 0 1rem 1.25rem; color: var(--muted); }
li { margin-bottom: 0.4rem; }

.wrap { width: min(1160px, 92%); margin: 0 auto; }
.sec { padding: 3.5rem 0; }
.sec-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.center { text-align: center; }

.kicker {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  margin-bottom: 0.9rem;
}

/* Topbar */
.topbar {
  background: #070a0e;
  border-bottom: 1px solid var(--line);
  font-size: 0.84rem;
  color: var(--muted);
}
.topbar .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.45rem 0;
}
.topbar a { color: var(--cyan-soft); }

/* Header */
.site-header {
  background: rgba(12, 17, 23, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--cyan);
  position: sticky;
  top: 0;
  z-index: 60;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
}
.brand { display: flex; align-items: center; gap: 0.65rem; flex-shrink: 0; }
.brand img { width: 46px; height: 46px; }
.brand b { font-family: var(--font-display); font-size: 1.25rem; color: var(--white); display: block; }
.brand small { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--cyan); display: block; }

.header-search {
  display: flex;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  max-width: 240px;
  flex: 1 1 180px;
}
.header-search input {
  background: transparent;
  border: none;
  color: var(--white);
  padding: 0.45rem 0.7rem;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}
.header-search button {
  background: var(--cyan);
  color: #071018;
  border: none;
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  cursor: pointer;
  font-size: 0.82rem;
}

.main-nav ul {
  display: flex;
  gap: 1rem;
  list-style: none;
  margin: 0;
  align-items: center;
}
.main-nav a {
  color: var(--text);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.35rem 0.25rem;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a[aria-current="page"] {
  color: var(--cyan);
  border-bottom-color: var(--amber);
}
.menu-btn {
  display: none;
  background: var(--card);
  color: var(--cyan);
  border: 1px solid var(--cyan);
  border-radius: 6px;
  padding: 0.4rem 0.7rem;
  font-size: 1.2rem;
  cursor: pointer;
}

/* Hero */
.hero {
  background: radial-gradient(circle at 80% 20%, rgba(0, 180, 216, 0.14), transparent 52%),
              linear-gradient(180deg, #0e151e 0%, #0c1117 100%);
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.2rem;
  align-items: center;
}
.hero-lead { font-size: 1.06rem; color: #c4d1df; max-width: 56ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.9rem; margin: 1.4rem 0; }
.btn {
  display: inline-block;
  padding: 0.82rem 1.45rem;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amber); color: #0b0e12; }
.btn-primary:hover { background: #ff823d; color: #0b0e12; }
.btn-outline { border: 1px solid var(--cyan); color: var(--cyan); background: transparent; }
.btn-outline:hover { background: rgba(0, 180, 216, 0.12); color: var(--white); }

.metrics-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.8rem;
  margin-top: 1.4rem;
}
.metric-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  padding: 0.7rem 0.9rem;
  border-radius: 6px;
}
.metric-box b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--white); }
.metric-box span { font-size: 0.8rem; color: var(--muted); }

.hero-frame {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.85rem;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.45);
}
.hero-frame img { border-radius: 8px; width: 100%; }

/* Strip */
.trust-strip {
  background: #101923;
  border-bottom: 1px solid var(--line);
  padding: 0.85rem 0;
  text-align: center;
  font-size: 0.92rem;
  color: var(--cyan-soft);
  font-weight: 600;
}

/* Cards & Grids */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 0.9rem;
  background: #0d131a;
}
.price-tag {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--amber);
  margin: 0.4rem 0 0.7rem;
}
.price-tag small { font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.badges { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.8rem; }
.badge {
  font-size: 0.74rem;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--cyan-soft);
  padding: 0.15rem 0.55rem;
  border-radius: 4px;
}

/* Catalog Controls */
.controls {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
  gap: 0.8rem;
  background: var(--card);
  border: 1px solid var(--line);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1.6rem;
}
.controls input, .controls select {
  width: 100%;
  background: var(--bg);
  color: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 0.92rem;
}

/* Page header */
.page-banner {
  background: linear-gradient(120deg, #111923, #172331);
  border-bottom: 1px solid var(--line);
  padding: 2.3rem 0;
}
.crumbs { font-size: 0.86rem; color: var(--muted); margin-bottom: 0.5rem; }

/* Contact */
.form-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--white); font-size: 0.92rem; }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 6px;
  padding: 0.68rem 0.8rem;
  font-family: inherit;
  font-size: 0.95rem;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 2px solid var(--cyan);
  border-color: var(--cyan);
}
.field .err { color: #ff7b7b; font-size: 0.82rem; display: block; min-height: 1.1em; margin-top: 0.25rem; }
.ok-banner {
  display: none;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid var(--ok);
  color: #bbf7d0;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}
.map-box iframe {
  width: 100%;
  height: 290px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: 1rem;
}

/* Gallery & Lightbox */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.gallery-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.6rem;
  cursor: pointer;
}
.gallery-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; }
.gallery-item figcaption { font-size: 0.84rem; color: var(--muted); margin-top: 0.5rem; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 12, 0.9);
  z-index: 120;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox.open { display: flex; }
.lightbox figure { max-width: 820px; width: 100%; background: var(--card); padding: 1rem; border-radius: 10px; border: 1px solid var(--cyan); }
.lightbox img { width: 100%; border-radius: 6px; }
.lightbox figcaption { margin-top: 0.7rem; color: var(--text); text-align: center; }

/* FAQ */
.faq-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  margin-bottom: 0.9rem;
}
.faq-item summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--white);
}
.faq-item p { margin: 0.7rem 0 0; }

/* Legal box */
.legal-doc {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem;
}
.legal-doc h2 { margin-top: 1.5rem; font-size: 1.35rem; color: var(--cyan-soft); }

/* Footer */
.site-footer {
  background: #070a0e;
  border-top: 2px solid var(--cyan);
  padding: 3rem 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1.8rem; }
.site-footer h4 { color: var(--white); margin-bottom: 0.8rem; font-size: 1.05rem; }
.site-footer ul { list-style: none; margin: 0; }
.site-footer li { margin-bottom: 0.45rem; }
.social-row { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 0.9rem; }
.social-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card);
  color: var(--cyan-soft);
}
.social-row a:hover { border-color: var(--amber); color: var(--amber); }
.social-row svg { width: 18px; height: 18px; fill: currentColor; }
.social-note { font-size: 0.75rem; color: #7f90a3; margin-top: 0.45rem; }
.pay-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.pay-tags span {
  border: 1px solid var(--line);
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  font-size: 0.78rem;
  color: var(--text);
}
.footer-bottom {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1.1rem;
  font-size: 0.82rem;
  text-align: center;
  color: #7f90a3;
}

/* Floating buttons + Chat + Cookies */
.floats {
  position: fixed;
  right: 16px;
  bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  z-index: 90;
}
.float-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.45);
}
.float-btn svg { width: 22px; height: 22px; fill: #ffffff; }
.float-wa { background: #16a34a; }
.float-tel { background: var(--cyan); }
.float-tel svg { fill: #071018; }
.float-chat { background: var(--amber); }
.float-chat svg { fill: #071018; }

.chat-box {
  display: none;
  position: fixed;
  right: 76px;
  bottom: 20px;
  width: min(330px, 86vw);
  background: var(--card);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  overflow: hidden;
  z-index: 95;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6);
}
.chat-box.open { display: block; }
.chat-head {
  background: #0d141c;
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-display);
  color: var(--white);
}
.chat-head button { background: none; border: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.chat-body { padding: 0.9rem; max-height: 330px; overflow-y: auto; }
.chat-q {
  width: 100%;
  text-align: left;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.5rem 0.7rem;
  margin-bottom: 0.5rem;
  cursor: pointer;
  font-size: 0.84rem;
}
.chat-q:hover { border-color: var(--cyan); }
.chat-ans { background: #0e1a26; border-left: 3px solid var(--cyan); padding: 0.55rem 0.7rem; font-size: 0.84rem; margin-bottom: 0.6rem; color: #d6e4f0; }
.chat-wa { display: block; text-align: center; background: #16a34a; color: #ffffff; padding: 0.6rem; border-radius: 6px; font-weight: 700; margin-top: 0.5rem; }

.cookie-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background: #0b1017;
  border-top: 2px solid var(--cyan);
  padding: 0.9rem 0;
  z-index: 100;
}
.cookie-bar[hidden] { display: none; }
.cookie-bar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.cookie-bar p { margin: 0; font-size: 0.88rem; color: var(--text); }
.cookie-actions { display: flex; gap: 0.6rem; }
.cookie-ok { background: var(--cyan); color: #071018; border: none; padding: 0.45rem 1rem; border-radius: 6px; font-weight: 700; cursor: pointer; }
.cookie-no { background: transparent; color: var(--muted); border: 1px solid var(--line); padding: 0.45rem 1rem; border-radius: 6px; cursor: pointer; }

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .gallery-grid, .footer-grid, .controls { grid-template-columns: repeat(2, 1fr); }
  .header-search { display: none; }
}
@media (max-width: 720px) {
  .hero-grid, .grid-3, .grid-2, .grid-4, .gallery-grid, .footer-grid, .controls, .metrics-strip { grid-template-columns: 1fr; }
  .menu-btn { display: inline-block; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: #0e151e;
    border-bottom: 2px solid var(--cyan);
    padding: 1rem 4%;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: flex-start; gap: 0.7rem; }
}
