/* ============================================================
   NEWTECH — Design System
   Brand: #16537f  |  Modern · Clean · Light & Dark
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --brand:        #16537f;
  --brand-light:  #1d6fa8;
  --brand-dark:   #0e3a58;
  --accent:       #00c9a7;
  --accent-dim:   rgba(0,201,167,.15);

  /* Light mode */
  --bg:           #f8fafc;
  --bg-card:      #ffffff;
  --bg-muted:     #f1f5f9;
  --border:       #e2e8f0;
  --text:         #0f172a;
  --text-muted:   #64748b;
  --text-inv:     #ffffff;
  --shadow:       0 4px 24px rgba(22,83,127,.08);
  --shadow-lg:    0 12px 48px rgba(22,83,127,.14);

  --radius:       12px;
  --radius-sm:    8px;
  --radius-xl:    20px;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;

  --nav-h:        70px;
  --transition:   .25s cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg:           #0b1320;
  --bg-card:      #111c2e;
  --bg-muted:     #162035;
  --border:       #1e2d45;
  --text:         #e8f0fe;
  --text-muted:   #7a95b5;
  --shadow:       0 4px 24px rgba(0,0,0,.35);
  --shadow-lg:    0 12px 48px rgba(0,0,0,.5);
}

/* ─── Reset & Base ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ─── Scrollbar ─────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-muted); }
::-webkit-scrollbar-thumb { background: var(--brand); border-radius: 99px; }

/* ─── Utility ───────────────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.label {
  font-size: .7rem; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: var(--brand-light);
  display: inline-block; margin-bottom: .75rem;
}
.badge-accent {
  background: var(--accent-dim); color: var(--accent);
  font-size: .68rem; font-weight: 600; padding: 2px 10px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .08em;
}
.text-gradient {
  background: linear-gradient(135deg, var(--brand-light), var(--accent));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
}
.divider { height: 1px; background: var(--border); margin: 0; }

/* ─── Buttons ───────────────────────────────────────────── */
.btn-brand {
  background: var(--brand); color: #fff; border: none;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-weight: 600; font-size: .92rem;
  cursor: pointer; transition: all var(--transition);
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-brand:hover { background: var(--brand-light); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(22,83,127,.35); }

.btn-outline {
  background: transparent; color: var(--brand); border: 1.5px solid var(--brand);
  padding: .7rem 1.6rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: .5rem;
}
.btn-outline:hover { background: var(--brand); color: #fff; }

.btn-accent {
  background: var(--accent); color: #fff; border: none;
  padding: .75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: .5rem;
}
.btn-accent:hover { filter: brightness(1.1); transform: translateY(-1px); }

.btn-whatsapp {
  background: #25d366; color: #fff; border: none;
  padding: .9rem 2rem; border-radius: var(--radius-sm);
  font-weight: 700; font-size: 1rem; cursor: pointer;
  transition: all var(--transition); display: inline-flex; align-items: center; gap: .6rem;
  width: 100%;
  justify-content: center;
}
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); color: #fff; }

/* ─── TOP BAR ───────────────────────────────────────────── */
.top-bar {
  background: var(--brand-dark); color: #c5dced;
  font-size: .78rem; padding: .45rem 0;
  transition: background var(--transition);
}
[data-theme="dark"] .top-bar { background: #071020; }
.top-bar a { color: #c5dced; }
.top-bar a:hover { color: #fff; }

/* ─── NAVBAR ────────────────────────────────────────────── */
.navbar-newtech {
  position: sticky; top: 0; z-index: 1000;
  height: var(--nav-h);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 16px rgba(22,83,127,.07);
  transition: background var(--transition), border-color var(--transition);
}
.navbar-newtech .brand-logo {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700;
  color: var(--brand);
}
.brand-icon {
  width: 40px; height: 40px; background: var(--brand);
  border-radius: 10px; display: grid; place-items: center;
}
.nav-link-custom {
  font-weight: 500; font-size: .9rem; color: var(--text-muted) !important;
  padding: .4rem .7rem !important; border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  position: relative;
}
.nav-link-custom:hover,
.nav-link-custom.active { color: var(--brand) !important; background: var(--bg-muted); }
.nav-link-custom.active::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 16px; height: 2px; background: var(--brand); border-radius: 99px;
}

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--bg-muted); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer;
  transition: all var(--transition); font-size: 1rem;
  color: var(--text);
}
.theme-toggle:hover { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ─── HERO SLIDER ───────────────────────────────────────── */
.hero-slider {
  position: relative; overflow: hidden;
  background: #071525;
}

/* Each slide: stacked absolutely, fades in/out */
.slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .75s cubic-bezier(.4,0,.2,1);
  min-height: calc(100vh - var(--nav-h) - 38px);
}
.slide.active { opacity: 1; position: relative; z-index: 1; }
.slide.prev   { opacity: 0; z-index: 0; }

/* Full-bleed gradient bg per slide */
.slide-gradient {
  position: absolute; inset: 0; z-index: 0;
}

/* Split layout: text left | image right */
.slide-inner {
  position: relative; z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 3rem;
  min-height: calc(100vh - var(--nav-h) - 38px);
  padding-top: 3rem;
  padding-bottom: 5rem;
}

/* ── Text side ── */
.slide-text { order: 1; }

.slide-eyebrow {
  font-size: .7rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 1rem; display: flex; align-items: center; gap: .5rem;
}
.slide-eyebrow::before {
  content: ''; width: 24px; height: 2px;
  background: var(--accent); border-radius: 99px; flex-shrink: 0;
}
.slide h1 {
  font-size: clamp(1.9rem, 3.6vw, 3.1rem);
  color: #fff; margin-bottom: 1.25rem; line-height: 1.15;
}
.slide p {
  font-size: 1.05rem; color: rgba(255,255,255,.78);
  margin-bottom: 2rem; max-width: 460px; line-height: 1.75;
}
.slide-actions { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* ── Visual side ── */
.slide-visual { order: 2; display: flex; justify-content: center; align-items: center; }

.slide-img-wrap {
  position: relative;
  width: 100%; max-width: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  transform: translateY(12px) scale(.97);
  transition: transform .75s cubic-bezier(.4,0,.2,1);
}
.slide.active .slide-img-wrap {
  transform: translateY(0) scale(1);
}

.slide-photo {
  width: 100%; height: 420px;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform 7s ease;
}
.slide.active .slide-photo { transform: scale(1.04); }

/* ── Entrada dos elementos do slide (esquerda → direita) ── */
.slide-text > * {
  opacity: 0;
  transform: translateX(-48px);
  transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1);
}
.slide.active .slide-text > *:nth-child(1) { transition-delay: .1s; }
.slide.active .slide-text > *:nth-child(2) { transition-delay: .22s; }
.slide.active .slide-text > *:nth-child(3) { transition-delay: .34s; }
.slide.active .slide-text > *:nth-child(4) { transition-delay: .46s; }

.slide.active .slide-text > * {
  opacity: 1;
  transform: translateX(0);
}

.slide-img-wrap {
  opacity: 0;
  transform: translateX(-64px);
  transition: opacity .9s cubic-bezier(.16,1,.3,1) .3s,
              transform .9s cubic-bezier(.16,1,.3,1) .3s;
}
.slide.active .slide-img-wrap {
  opacity: 1;
  transform: translateX(0);
}

/* Slider controls */
.slider-controls {
  position: absolute; bottom: 1.75rem; left: 50%; transform: translateX(-50%);
  z-index: 10; display: flex; align-items: center; gap: .75rem;
}
.dot {
  width: 8px; height: 8px; border-radius: 99px;
  background: rgba(255,255,255,.3); cursor: pointer;
  transition: all var(--transition); border: none;
}
.dot.active { background: var(--accent); width: 28px; }

.slider-arr {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,.08); backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.18); color: #fff;
  display: grid; place-items: center; cursor: pointer;
  transition: all var(--transition); font-size: 1rem;
}
.slider-arr:hover { background: var(--brand); border-color: var(--brand); }
.slider-arr.prev { left: 1.25rem; }
.slider-arr.next { right: 1.25rem; }

/* Video button */
.btn-play {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,.35); color: #fff;
  display: inline-grid; place-items: center; cursor: pointer;
  transition: all var(--transition); font-size: 1.1rem; flex-shrink: 0;
}
.btn-play:hover { background: var(--accent); border-color: var(--accent); transform: scale(1.08); }
.play-label { font-weight: 600; color: #fff; font-size: .88rem; }

/* Slide stats strip */
.slide-stats {
  position: absolute; bottom: 0; right: 0; z-index: 10;
  background: rgba(22,83,127,.82); backdrop-filter: blur(12px);
  padding: 1.1rem 2rem; display: flex; gap: 2.5rem;
  border-top-left-radius: var(--radius);
}
.stat-item { text-align: center; }
.stat-num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: #fff; }
.stat-lbl { font-size: .66rem; color: rgba(255,255,255,.65); letter-spacing: .08em; text-transform: uppercase; }

/* ── RESPONSIVE ── */
@media (max-width: 991px) {
  .slide-stats { display: none; }

  .slide-inner {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 2.5rem;
    padding-bottom: 4.5rem;
    gap: 2rem;
  }

  /* image above text on tablet / mobile */
  .slide-visual { order: 1; }
  .slide-text   { order: 2; }

  .slide-photo { height: 280px; }
  .slide-img-wrap { max-width: 100%; border-radius: var(--radius); }

  .slide h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); }
  .slide p  { font-size: .95rem; max-width: 100%; }
}

@media (max-width: 575px) {
  .slide-photo { height: 220px; }
  .slide-inner { gap: 1.5rem; padding-top: 1.75rem; }
  .slider-arr  { display: none; }
}

/* ─── SERVICES ──────────────────────────────────────────── */
.service-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: all var(--transition); cursor: default;
  height: 100%;
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.svc-icon {
  width: 52px; height: 52px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  display: grid; place-items: center; font-size: 1.3rem; color: #fff;
  margin-bottom: 1.25rem;
}
.service-card h5 { font-size: 1.05rem; margin-bottom: .6rem; }
.service-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ─── WHY US ─────────────────────────────────────────────── */
.why-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.25rem; border-radius: var(--radius);
  background: var(--bg-card); border: 1px solid var(--border);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.why-card:hover { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
.why-icon { font-size: 1.5rem; flex-shrink: 0; margin-top: .1rem; }
.why-card h6 { font-size: .95rem; font-weight: 600; margin-bottom: .25rem; }
.why-card p { font-size: .83rem; color: var(--text-muted); }

/* ─── COUNTER STRIP ─────────────────────────────────────── */
.counter-strip {
  background: linear-gradient(135deg, var(--brand-dark) 0%, var(--brand) 100%);
  padding: 3.5rem 0;
}
.counter-item { text-align: center; }
.counter-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: #fff; }
.counter-lbl { font-size: .78rem; color: rgba(255,255,255,.65); letter-spacing: .1em; text-transform: uppercase; margin-top: .25rem; }

/* ─── PORTFOLIO SECTION TEASER ──────────────────────────── */
.product-teaser {
  background: var(--bg-muted);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--border);
}
.brand-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 99px; padding: .3rem .8rem .3rem .4rem;
  font-size: .78rem; font-weight: 600; color: var(--text-muted);
}
.brand-pill-dot { width: 20px; height: 20px; border-radius: 50%; background: var(--brand); }

/* ─── FAQ ────────────────────────────────────────────────── */
.faq-item {
  border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: border-color var(--transition);
}
.faq-item.open { border-color: var(--brand); }
.faq-question {
  width: 100%; text-align: left; background: var(--bg-card);
  border: none; padding: 1.1rem 1.5rem;
  font-family: var(--font-body); font-weight: 600; font-size: .95rem;
  color: var(--text); cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-muted); }
.faq-icon { color: var(--brand); transition: transform var(--transition); flex-shrink: 0; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height .4s ease, padding .4s ease;
  background: var(--bg-card);
  font-size: .88rem; color: var(--text-muted); line-height: 1.7;
}
.faq-answer-inner { padding: 0 1.5rem 1.25rem; }
.faq-item.open .faq-answer { max-height: 300px; }

/* ─── TESTIMONIALS ──────────────────────────────────────── */
.testimonial-track {
  display: flex; gap: 1.5rem;
  animation: marquee 30s linear infinite;
  width: max-content;
}
.testimonial-track:hover { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.t-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem; min-width: 300px; max-width: 300px;
}
.stars { color: #fbbf24; font-size: .85rem; margin-bottom: .75rem; letter-spacing: 1px; }
.t-card p { font-size: .88rem; color: var(--text-muted); line-height: 1.65; margin-bottom: 1rem; }
.t-author { display: flex; align-items: center; gap: .6rem; }
.t-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  display: grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff;
  flex-shrink: 0;
}
.t-name { font-weight: 600; font-size: .85rem; }
.t-role { font-size: .75rem; color: var(--text-muted); }

/* ─── CTA SECTION ───────────────────────────────────────── */
.cta-section {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  position: relative; overflow: hidden;
}
.cta-section::before {
  content: ''; position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='8'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-section .container { position: relative; z-index: 1; }

/* ─── FOOTER ────────────────────────────────────────────── */
.footer-newtech {
  background: var(--brand-dark); color: rgba(255,255,255,.7);
  padding: 4rem 0 1.5rem;
}
[data-theme="dark"] .footer-newtech { background: #050d1a; }
.footer-logo { font-family: var(--font-display); font-size: 1.4rem; font-weight: 700; color: #fff; }
.footer-desc { font-size: .88rem; line-height: 1.7; margin: 1rem 0 1.5rem; }
.footer-social { display: flex; gap: .75rem; }
.social-btn {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.08); display: grid; place-items: center;
  transition: background var(--transition); color: #fff; font-size: .9rem;
}
.social-btn:hover { background: var(--brand-light); color: #fff; }
.footer-heading { color: #fff; font-size: .85rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links li { margin-bottom: .6rem; }
.footer-links a { font-size: .88rem; color: rgba(255,255,255,.6); transition: color var(--transition); display: flex; align-items: center; gap: .4rem; }
.footer-links a:hover { color: var(--accent); }
.footer-links a::before { content: '›'; color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); margin-top: 3rem; padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
  font-size: .8rem; color: rgba(255,255,255,.4);
}

/* ─── VIDEO MODAL ───────────────────────────────────────── */
.video-modal .modal-content {
  background: #000; border: none; border-radius: var(--radius);
}
.video-modal .modal-body { padding: 0; }
.video-modal video,
.video-modal iframe { width: 100%; aspect-ratio: 16/9; display: block; border-radius: var(--radius); }
.video-modal .btn-close { filter: invert(1); position: absolute; top: -2.5rem; right: 0; }

/* ─── WHATSAPP FLOAT ────────────────────────────────────── */
.wa-float {
  position: fixed; bottom: 10rem; right: 2rem; z-index: 999;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; color: #fff; font-size: 1.5rem;
  display: grid; place-items: center; box-shadow: 0 4px 20px rgba(37,211,102,.4);
  transition: all var(--transition); cursor: pointer;
  border: none;
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.5); background: #1da851; color: #fff; }
.wa-float-pulse {
  position: absolute; inset: -4px; border-radius: 50%;
  background: rgba(37,211,102,.35); animation: pulse 2s ease-out infinite;
}
@keyframes pulse { 0%,100%{transform:scale(1);opacity:.7} 50%{transform:scale(1.2);opacity:0} }

/* ─── PORTFOLIO PAGE ────────────────────────────────────── */
.portfolio-hero {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  padding: 5rem 0 3rem; text-align: center; color: #fff;
}
.portfolio-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.portfolio-hero p { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-top: .75rem; }
.stats-strip-port {
  display: flex; justify-content: center; gap: 3rem; margin-top: 2.5rem; flex-wrap: wrap;
}
.stat-port { text-align: center; }
.stat-port strong { font-size: 1.8rem; font-family: var(--font-display); display: block; }
.stat-port span { font-size: .75rem; opacity: .7; text-transform: uppercase; letter-spacing: .08em; }

/* Filter Bar */
.filter-bar {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 1.5rem;
  position: sticky; top: calc(var(--nav-h) + 8px); z-index: 100;
  box-shadow: var(--shadow);
}
.filter-select {
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: .55rem .9rem;
  font-family: var(--font-body); font-size: .88rem; color: var(--text);
  cursor: pointer; outline: none; transition: border-color var(--transition);
  width: 100%;
}
.filter-select:focus { border-color: var(--brand); }

.range-wrap { position: relative; }
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 99px;
  background: linear-gradient(to right, var(--brand) 0%, var(--brand) var(--pct, 50%), var(--border) var(--pct, 50%));
  outline: none; width: 100%; cursor: pointer;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand); box-shadow: 0 0 0 3px var(--bg-card), 0 0 0 5px var(--brand);
  cursor: pointer;
}
.range-labels { display: flex; justify-content: space-between; font-size: .75rem; color: var(--text-muted); margin-top: .3rem; }

.sort-select {
  background: var(--bg-card); border: 1.5px solid var(--brand);
  border-radius: var(--radius-sm); padding: .5rem .9rem;
  font-size: .85rem; font-weight: 600; color: var(--brand);
  cursor: pointer; outline: none;
}

/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem; padding: 2rem 0;
}
.product-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden;
  transition: all var(--transition); cursor: pointer;
  position: relative;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand);
}
.product-card-img {
  aspect-ratio: 4/3; background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.product-card-img svg,
.product-card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-type-badge {
  position: absolute; top: .75rem; left: .75rem;
  font-size: .65rem; font-weight: 700; padding: 3px 10px;
  border-radius: 99px; text-transform: uppercase; letter-spacing: .06em;
}
.type-biometria { background: rgba(22,83,127,.15); color: var(--brand-light); }
.type-smart    { background: rgba(0,201,167,.15); color: var(--accent); }
.type-rfid     { background: rgba(234,179,8,.15);  color: #ca8a04; }
.type-senha    { background: rgba(168,85,247,.15); color: #9333ea; }
.type-bluetooth{ background: rgba(59,130,246,.15); color: #2563eb; }

.wish-btn {
  position: absolute; top: .75rem; right: .75rem;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--bg-card); border: 1px solid var(--border);
  display: grid; place-items: center; cursor: pointer;
  transition: all var(--transition); font-size: .85rem;
  color: var(--text-muted);
}
.wish-btn.active { color: #ef4444; border-color: #ef4444; }
.wish-btn:hover { color: #ef4444; }

.product-card-body { padding: 1.25rem; }
.p-brand-line { font-size: .72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .2rem; }
.p-name { font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; margin-bottom: .75rem; }
.p-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.p-tag {
  background: var(--bg-muted); color: var(--text-muted);
  font-size: .7rem; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--border);
}
.p-price { font-family: var(--font-display); font-size: 1.35rem; font-weight: 700; color: var(--brand); }
.p-price-inst { font-size: .75rem; color: var(--text-muted); }

/* Load more / Infinite */
.load-sentinel { height: 40px; display: flex; align-items: center; justify-content: center; }
.spinner { width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Results bar */
.results-bar { display: flex; justify-content: space-between; align-items: center; padding: 1rem 0 0; font-size: .88rem; color: var(--text-muted); }

/* ─── PRODUCT MODAL ─────────────────────────────────────── */
.product-modal .modal-dialog { max-width: 900px; }
.product-modal .modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); }
.product-modal .modal-header { border-bottom: 1px solid var(--border); padding: 1.25rem 1.5rem; }
.product-modal .modal-body { padding: 1.5rem; }
.modal-img-viewer {
  background: var(--bg-muted); border-radius: var(--radius);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.modal-img-viewer svg,
.modal-img-viewer img { width: 100%; height: 100%; object-fit: contain; }

.modal-thumb-row { display: flex; gap: .5rem; margin-top: .75rem; }
.modal-thumb {
  width: 56px; height: 56px; border-radius: 8px; background: var(--bg-muted);
  display: flex; align-items: center; justify-content: center;
  border: 2px solid transparent; cursor: pointer; overflow: hidden;
  transition: border-color var(--transition);
}
.modal-thumb.active,
.modal-thumb:hover { border-color: var(--brand); }

.modal-badge-type {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: 3px 12px; border-radius: 99px; text-transform: uppercase;
  letter-spacing: .08em; margin-bottom: .75rem;
}
.modal-brand { font-size: .8rem; color: var(--text-muted); margin-bottom: .35rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.modal-title-prod { font-size: 1.6rem; font-family: var(--font-display); font-weight: 700; margin-bottom: .75rem; }
.modal-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.7; margin-bottom: 1.25rem; }

.specs-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-bottom: 1.25rem;
}
.spec-item {
  background: var(--bg-muted); border-radius: var(--radius-sm);
  padding: .6rem .9rem; border: 1px solid var(--border);
}
.spec-lbl { font-size: .68rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: .15rem; }
.spec-val { font-size: .9rem; font-weight: 600; }

.modal-resources { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1.5rem; }
.res-tag {
  background: var(--bg-muted); border: 1px solid var(--border);
  border-radius: 99px; font-size: .75rem; padding: 3px 12px; color: var(--text);
}

.modal-price { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--brand); }
.modal-installment { font-size: .8rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* ─── REVEAL ANIMATION ──────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: .1s; }
.reveal-delay-2 { transition-delay: .2s; }
.reveal-delay-3 { transition-delay: .3s; }

/* ─── BACK TO TOP ────────────────────────────────────────── */
.back-top {
  position: fixed; bottom: 5.5rem; right: 2rem; z-index: 998;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; font-size: .9rem;
  display: grid; place-items: center; border: none; cursor: pointer;
  box-shadow: var(--shadow); transition: all var(--transition);
  opacity: 0; pointer-events: none; transform: translateY(8px);
}
.back-top.show { opacity: 1; pointer-events: all; transform: translateY(0); }
.back-top:hover { background: var(--brand-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 767px) {
  .section { padding: 64px 0; }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .specs-grid { grid-template-columns: 1fr; }
  .filter-bar { position: static; }
  .wa-float { bottom: 1.25rem; right: 1.25rem; }
}

/* ─── LANGUAGE SWITCHER ─────────────────────────────────── */
.lang-switcher {
  display: flex; align-items: center;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 99px; padding: 2px;
  gap: 1px;
}
.lang-btn {
  display: flex; align-items: center; gap: 4px;
  padding: 3px 9px; border-radius: 99px; border: none;
  background: transparent; color: rgba(255,255,255,.7);
  font-size: .72rem; font-weight: 600; letter-spacing: .04em;
  cursor: pointer; transition: all var(--transition);
  line-height: 1;
}
.lang-btn:hover { color: #fff; background: rgba(255,255,255,.12); }
.lang-btn.active {
  background: var(--brand-light);
  color: #fff;
  box-shadow: 0 2px 8px rgba(22,83,127,.45);
}
.lang-flag { font-size: .9rem; line-height: 1; }
.lang-code { font-size: .68rem; font-weight: 700; }

/* responsive — hide code label on very small screens */
@media (max-width: 400px) {
  .lang-code { display: none; }
  .lang-btn { padding: 3px 6px; }
}
