/* ============================================================
   Agro-IP · Identidad en claro
   Rojo del logo #CB1E2E · grafito · blanco — sobre fondo blanco
   ============================================================ */

:root {
  /* Marca */
  --brand: #cb1e2e;
  --brand-deep: #a41b28;
  --brand-soft: #fbe9eb;
  --brand-tint: #fff7f8;
  --gray-brand: #535050;

  /* Superficies claras */
  --bg: #ffffff;
  --bg-soft: #f6f7f8;
  --surface: #ffffff;
  --ink: #1a1c1f;
  --ink-2: #3d4046;
  --muted: #656a71;
  --line: #e7e8ea;
  --line-soft: #eef0f1;
  --line-strong: #d6d8db;

  /* Tipografía */
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --radius: 16px;
  --maxw: 1160px;
  --header-h: 158px;
  --shadow-soft: 0 1px 2px rgba(20, 22, 26, 0.04), 0 14px 40px -22px rgba(20, 22, 26, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 18px); }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }
strong { font-weight: 600; }

::selection { background: var(--brand); color: #fff; }

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
  border-radius: 2px;
}

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.4rem; }

/* Logo de marca fijo al fondo: la parte blanca del PNG
   desaparece con multiply; queda solo la marca tenue.
   main y footer van por encima (z-index) con fondo transparente
   salvo sus propias superficies, para no tapar la marca. */
.logo-wm {
  position: fixed;
  z-index: 0;
  top: calc(50vh + var(--header-h) / 2);
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(76vw, 900px);
  pointer-events: none;
  user-select: none;
  mix-blend-mode: multiply;
  opacity: 0.2;
}
.logo-wm img { width: 100%; height: auto; }

main, .site-footer { position: relative; z-index: 1; }

/* ---------- Tipos ---------- */
h1, h2, h3, .stat strong { font-family: var(--display); letter-spacing: -0.02em; }

h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); line-height: 1.1; font-weight: 600; }
h3 { font-size: 1.18rem; line-height: 1.25; font-weight: 600; }

.kicker {
  display: block;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.75rem;
}

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 6px 24px -18px rgba(20, 22, 26, 0.25);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding-block: 0.6rem;
}

.brand { line-height: 0; display: inline-flex; }
.brand img { height: 138px; width: auto; }

.site-nav ul { display: flex; align-items: center; gap: 1.7rem; }
.site-nav a:not(.btn) {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.2s;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}
.site-nav a:not(.btn):hover { color: var(--brand-deep); border-bottom-color: var(--brand); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 24px; height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  font-family: var(--font);
  border-radius: 10px;
  padding: 0.8rem 1.5rem;
  font-size: 0.98rem;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, border-color 0.2s, color 0.2s;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-1px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong, #d7dadd);
}
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-deep); }
.btn-sm { padding: 0.55rem 1.15rem; font-size: 0.92rem; border-radius: 8px; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  color: var(--brand-deep);
  background: var(--brand-tint);
  border: 1px solid #f3d3d8;
  padding: 0.38rem 0.95rem;
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.88rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: calc(var(--header-h) + 64px) 0 0;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 560px;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent 92%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding-bottom: 3.2rem;
}

.hero-copy h1 {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  line-height: 1.04;
  font-weight: 600;
  margin: 1.2rem 0 1.1rem;
}
.hero-copy h1 span { color: var(--brand); }
.hero-copy > p {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 1.7rem;
}
.hero-actions { display: flex; gap: 0.85rem; flex-wrap: wrap; margin-bottom: 1.9rem; }

.hero-points { display: flex; flex-direction: column; gap: 0.55rem; }
.hero-points li {
  position: relative;
  padding-left: 1.7rem;
  color: var(--ink-2);
}
.hero-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.5em;
  width: 0.7rem; height: 0.36rem;
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

/* ---------- Mapa / hero visual ---------- */
.hero-visual { position: relative; min-width: 0; }
.map-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.map-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 0.9rem 1.15rem;
  border-bottom: 1px solid var(--line-soft);
}
.map-title { font-family: var(--display); font-weight: 600; font-size: 0.95rem; }
.map-live {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brand-deep);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.map-live i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.2; } }

.map-svg { display: block; width: 100%; height: auto; }

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem 1.5rem;
  padding: 0.85rem 1.15rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.82rem;
  color: var(--muted);
  align-items: center;
}
.map-legend span { display: inline-flex; align-items: center; gap: 0.45rem; }
.map-legend .dot { width: 9px; height: 9px; border-radius: 50%; }
.map-legend .dot.red { background: var(--brand); }
.map-legend .dot.outline { border: 1.5px solid var(--brand); background: #fff; }
.map-legend .red-text { color: var(--brand-deep); font-weight: 600; }

/* ---------- Trust strip ---------- */
.trust-strip { border-block: 1px solid var(--line); }
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 1.4rem;
}
.trust-item { color: var(--muted); font-size: 0.92rem; }
.trust-item strong { color: var(--ink); font-weight: 600; }
.trust-sep { width: 6px; height: 6px; background: var(--brand); border-radius: 1px; transform: rotate(45deg); flex: none; }

/* ---------- Stats ---------- */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.6rem;
  padding: 2.6rem 1.4rem;
}
.stat { border-left: 3px solid var(--line); padding-left: 1.1rem; }
.stat:nth-child(1) { border-left-color: var(--brand); }
.stat strong {
  display: block;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.05;
}
.stat-num { color: var(--brand); }
.stat > span { display: block; margin-top: 0.35rem; color: var(--muted); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.section { padding: 5.6rem 0; }
.section.soft {
  background: transparent;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-head {
  max-width: 640px;
  margin-bottom: 3.2rem;
}
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { margin-bottom: 1rem; }
.section-head p { color: var(--muted); font-size: 1.05rem; }

/* ---------- Grid soluciones ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.15rem;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.7rem 1.8rem;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 3px;
  background: var(--brand);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transform-origin: center;
  transition: transform 0.25s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); border-color: #dedfe2; }
.card:hover::before { transform: scaleY(1); }
.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.7rem;
}
.card-icon {
  flex: none;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #f0ccd2;
  background: var(--brand-tint);
  color: var(--brand);
  border-radius: 9px;
  font-size: 1rem;
  line-height: 1;
}
.card p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Tráiler ---------- */
.trailer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.trailer-media img {
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
  width: 100%;
  height: auto;
  background: var(--bg-soft);
}
.trailer-media.empty img { display: none; }
.trailer-media.empty::after {
  content: "Imagen del tráiler táctico próximamente";
  display: grid;
  place-items: center;
  min-height: 320px;
  border: 1px dashed var(--line-strong, #d7dadd);
  border-radius: 18px;
  color: var(--muted);
  text-align: center;
  padding: 2rem;
}
.media-caption {
  display: block;
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.trailer-copy h2 { margin-bottom: 1rem; }
.trailer-copy > p { color: var(--muted); margin-bottom: 1.6rem; }
.trailer-copy > p strong { color: var(--ink); }
.check-list { display: flex; flex-direction: column; gap: 0.85rem; }
.check-list li {
  position: relative;
  padding-left: 1.9rem;
  color: var(--ink-2);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.4em;
  width: 1.05rem; height: 1.05rem;
  border-radius: 50%;
  background: var(--brand);
  opacity: 0.95;
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 0.27rem; top: 0.63em;
  width: 0.5rem; height: 0.28rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

/* ---------- Galería / carrusel ---------- */
.gallery { padding-bottom: 3.2rem; }

.carousel {
  --car-w: min(27vw, 360px);
  --car-h: clamp(280px, 42vh, 430px);
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.4rem 3.4rem;
}
.car-viewport { overflow: hidden; touch-action: pan-y; }
.car-track {
  position: relative;
  height: var(--car-h);
  margin: 0 auto;
}
.car-slide {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--car-w);
  height: 76%;
  list-style: none;
  cursor: pointer;
  opacity: 0.55;
  filter: grayscale(0.95) brightness(0.88);
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1), opacity 0.45s ease, filter 0.45s ease;
  will-change: transform;
}
.car-slide .ph {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px -18px rgba(20, 22, 26, 0.45);
  background: #f7f8f9;
}
.car-slide .ph::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(120, 126, 132, 0.35), rgba(120, 126, 132, 0.55));
  opacity: 1;
  transition: opacity 0.45s ease;
}
.car-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.car-slide.is-center {
  opacity: 1;
  filter: none;
  cursor: default;
}
.car-slide.is-center .ph::after { opacity: 0; }

.car-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 6px 16px -10px rgba(20, 22, 26, 0.3);
}
.car-btn.prev { left: 0.6rem; }
.car-btn.next { right: 0.6rem; }
.car-btn:hover { color: var(--brand-deep); border-color: var(--brand); transform: translateY(-50%) scale(1.06); }

.gallery-hint {
  margin-top: 1.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.85rem;
}

@media (max-width: 980px) {
  .carousel { --car-w: min(40vw, 340px); }
  .car-btn { width: 38px; height: 38px; }
}
@media (max-width: 720px) {
  .carousel { --car-w: 66vw; --car-h: clamp(220px, 34vh, 300px); padding: 0.4rem 2.2rem; }
  .car-btn.prev { left: 0.1rem; }
  .car-btn.next { right: 0.1rem; }
}

/* ---------- IoT ---------- */
.iot-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.iot-item {
  padding: 1.6rem 1.6rem 1.7rem;
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  transition: background 0.2s;
}
.iot-item:nth-child(3n) { border-right: 0; }
.iot-item:nth-last-child(-n+3) { border-bottom: 0; }
.iot-item:hover { background: var(--brand-tint); }
.iot-item strong { display: block; font-family: var(--display); font-size: 1.12rem; margin-bottom: 0.2rem; }
.iot-item span { color: var(--muted); font-size: 0.88rem; }
.iot-note { text-align: center; margin-top: 2.2rem; color: var(--muted); }

/* ---------- Prensa ---------- */
.press-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.15rem; }
.press-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s, box-shadow 0.22s;
}
.press-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.press-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.press-src { color: var(--brand-deep); font-weight: 600; font-size: 0.92rem; }
.press-date { color: var(--muted); font-size: 0.82rem; white-space: nowrap; }
.press-card h3 { font-size: 1.08rem; line-height: 1.35; margin-bottom: 0.7rem; }
.press-card p { color: var(--muted); font-size: 0.92rem; margin-bottom: 1.4rem; }
.press-link {
  margin-top: auto;
  color: var(--brand-deep);
  font-weight: 600;
  font-size: 0.95rem;
  border-bottom: 1px solid transparent;
  align-self: flex-start;
}
.press-link:hover { border-bottom-color: var(--brand); }

.quote {
  margin: 3.2rem auto 0;
  max-width: 800px;
  text-align: center;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid var(--line);
  border-left: 4px solid var(--brand);
  border-radius: 0 14px 14px 0;
  padding: 2.3rem 2.2rem;
  box-shadow: var(--shadow-soft);
}
.quote p { font-family: var(--display); font-size: 1.22rem; line-height: 1.4; color: var(--ink); }
.quote footer { margin-top: 1.1rem; color: var(--muted); font-size: 0.9rem; }

/* ---------- Contacto ---------- */
.contact-box {
  max-width: 860px;
  margin: 0 auto;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 3.8rem 2.4rem;
  box-shadow: var(--shadow-soft);
}
.contact-box h2 { margin-bottom: 1rem; }
.contact-box > p { color: var(--muted); margin: 0 auto 2.3rem; }

.contact-cards {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2.2rem;
}
.contact-card {
  min-width: 200px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 14px;
  padding: 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: border-color 0.2s, transform 0.2s;
}
a.contact-card:hover { border-color: var(--brand); transform: translateY(-3px); }
.cc-label { font-size: 0.78rem; color: var(--muted); font-weight: 500; }
.contact-card strong { font-family: var(--display); font-size: 1.3rem; color: var(--ink); }

.socials { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.socials a {
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-2);
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.socials a:hover { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }

/* ---------- Footer (único bloque oscuro) ---------- */
.site-footer { background: #191b1e; color: #b9bdc4; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 1.4rem 2.2rem;
}
.logo-chip {
  display: inline-flex;
  background: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  margin-bottom: 1rem;
  box-shadow: 0 1px 0 rgba(255,255,255,0.12);
}
.logo-chip img { height: 40px; width: auto; }
.footer-brand p { color: #8f949b; font-size: 0.92rem; max-width: 40ch; }
.footer-nav, .footer-contact { display: flex; flex-direction: column; gap: 0.55rem; }
.footer-nav h4, .footer-contact h4 {
  font-family: var(--display);
  color: #fff;
  font-weight: 500;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.footer-nav a, .footer-contact a { color: #b9bdc4; font-size: 0.92rem; }
.footer-nav a:hover, .footer-contact a:hover { color: #ffc9ce; }
.footer-contact p { display: flex; flex-direction: column; gap: 0.1rem; color: #8f949b; font-size: 0.88rem; }
.footer-contact a { color: #e7e9ec; }
.footer-contact small { color: #757a81; font-size: 0.78rem; }
.footer-bottom { border-top: 1px solid #2b2e33; }
.footer-bottom p { text-align: center; padding: 1.2rem 0; color: #757a81; font-size: 0.85rem; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .logo-wm { width: 96vw; opacity: 0.12; }
  .hero-grid { grid-template-columns: 1fr; gap: 2.4rem; }
  .hero-visual { max-width: 620px; }
  .grid { grid-template-columns: 1fr 1fr; }
  .trailer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem; }
  .iot-strip { grid-template-columns: repeat(2, 1fr); }
  .iot-item:nth-child(3n) { border-right: 1px solid var(--line-soft); }
  .iot-item:nth-child(even) { border-right: 0; }
  .iot-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .iot-item:nth-last-child(-n+2) { border-bottom: 0; }
}

@media (max-width: 720px) {
  :root { --header-h: 112px; }
  .logo-wm { width: 150vw; opacity: 0.1; }
  .nav-toggle { display: flex; }
  .brand img { height: 92px; }
  .site-nav {
    position: fixed;
    top: calc(var(--header-h)); left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px -22px rgba(20,22,26,0.3);
    transform: translateY(-8px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
  }
  .site-nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; padding: 0.6rem 1.4rem 1.3rem; }
  .site-nav a:not(.btn) { padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); display: block; }
  .site-nav a.btn { margin-top: 0.9rem; }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .grid, .iot-strip { grid-template-columns: 1fr; }
  .iot-item, .iot-item:nth-child(3n) { border-right: 0; }
  .iot-item, .iot-item:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-soft); }
  .iot-item:last-child { border-bottom: 0; }
  .section { padding: 3.8rem 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .contact-box { padding: 2.6rem 1.2rem; }
  .quote { padding: 1.8rem 1.4rem; }
}

@media (max-width: 440px) {
  :root { --header-h: 104px; }
  .stats-grid { grid-template-columns: 1fr; gap: 1.3rem; }
  .brand img { height: 84px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .map-live i { animation: none; }
}
