/* ============================================================
   Zentrix · zentrix.net.ar
   Stylesheet principal
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  --accent: #28e07f;
  --accent-strong: #3aef8e;
  --accent-soft: rgba(40, 224, 127, 0.15);
  --bg: #0b0f14;
  --bg-2: #0a0d12;
  --elev: #0f141b;
  --elev-2: #131a23;
  --text: #e6edf3;
  --muted: #b3c1d0;          /* mejor contraste WCAG AA vs el #9fb0c0 anterior */
  --muted-2: #8fa0b2;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.25);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 24px;
  --container: 1200px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------- Reset / Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu,
    Cantarell, "Noto Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body { line-height: 1.55; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }

img, svg { max-width: 100%; display: block; }

button { font-family: inherit; }

/* ---------- Accesibilidad ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--accent);
  color: #05110a;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 999;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

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

button:focus-visible,
.btn:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* ---------- Layout ---------- */
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

section { padding: 72px 0; }

@media (max-width: 640px) {
  section { padding: 56px 0; }
}

/* ---------- Header ---------- */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  background: rgba(11, 15, 20, 0.75);
  border-bottom: 1px solid var(--border);
  transition: background 0.25s var(--ease), border-color 0.25s var(--ease);
}

header.is-scrolled {
  background: rgba(11, 15, 20, 0.92);
  border-bottom-color: var(--border-strong);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}
.brand .logo {
  display: inline-block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}
.brand .name {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.brand .tag {
  margin-left: 4px;
  font-size: 11px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: #cbd6e1;
  white-space: nowrap;
}

.menu {
  display: none;
  gap: 22px;
  font-size: 14px;
  font-weight: 500;
}
.menu a {
  color: #cbd6e1;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.menu a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.25s var(--ease), left 0.25s var(--ease);
}
.menu a:hover,
.menu a:focus-visible { color: var(--text); }
.menu a:hover::after,
.menu a:focus-visible::after { width: 100%; left: 0; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------- Botón hamburguesa ---------- */
.hamburger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.hamburger:hover { border-color: var(--accent); background: rgba(40, 224, 127, 0.06); }
.hamburger svg { width: 22px; height: 22px; }
.hamburger .icon-close { display: none; }
.hamburger[aria-expanded="true"] .icon-open { display: none; }
.hamburger[aria-expanded="true"] .icon-close { display: block; }

/* ---------- Menú móvil ---------- */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 64px 0 0 0;
  background: rgba(11, 15, 20, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 49;
  overflow-y: auto;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--border);
}
.mobile-menu[data-open="true"] { display: block; }
.mobile-menu nav {
  display: grid;
  gap: 6px;
}
.mobile-menu nav a {
  display: block;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 16px;
  font-weight: 500;
  background: var(--elev);
}
.mobile-menu nav a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.mobile-menu .mobile-cta {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}
.mobile-menu .mobile-social {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}

body.menu-open { overflow: hidden; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #05110a;
  border: none;
  border-radius: 14px;
  padding: 11px 18px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s var(--ease), background 0.2s var(--ease),
    box-shadow 0.2s var(--ease);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.15);
}
.btn:hover {
  background: var(--accent-strong);
  color: #05110a;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(40, 224, 127, 0.25);
}
.btn:active { transform: translateY(0); }
.btn.outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
  box-shadow: none;
}
.btn.outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent);
  color: var(--accent);
}
.btn.ghost {
  background: rgba(40, 224, 127, 0.1);
  color: var(--accent);
  box-shadow: none;
}
.btn.ghost:hover { background: rgba(40, 224, 127, 0.16); color: var(--accent); }
.btn.block { width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 13px; }

.btn .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 48px;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -30% -20% auto auto;
  width: 900px;
  height: 900px;
  background: radial-gradient(
    500px 320px at 78% -8%,
    rgba(40, 224, 127, 0.22),
    transparent 65%
  );
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto auto -20% -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(
    400px 280px at 30% 100%,
    rgba(40, 224, 127, 0.08),
    transparent 70%
  );
  pointer-events: none;
}

.grid {
  display: grid;
  gap: 28px;
}
.hero .grid {
  grid-template-columns: 1fr;
  align-items: center;
  position: relative;
  z-index: 1;
}

.overline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(40, 224, 127, 0.08);
  border: 1px solid rgba(40, 224, 127, 0.3);
  color: #b9eecc;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.overline::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(40, 224, 127, 0.18);
}

h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.1;
  margin: 18px 0 14px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
h1 .accent-text {
  background: linear-gradient(135deg, var(--accent) 0%, #6effb0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p { font-size: 17px; max-width: 560px; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

/* Partner badges (Dahua certificado) */
.partner-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.partner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(40, 224, 127, 0.1);
  border: 1px solid rgba(40, 224, 127, 0.4);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.partner-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(40, 224, 127, 0.2);
  animation: partner-pulse 2.4s var(--ease) infinite;
}
.partner-pill.ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-strong);
  color: var(--text);
}
@keyframes partner-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(40, 224, 127, 0.2); }
  50%      { box-shadow: 0 0 0 6px rgba(40, 224, 127, 0.05); }
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.stat { text-align: left; }
.stat .val {
  color: var(--accent);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.stat .label {
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
}

p { color: var(--muted); margin: 0 0 12px; }

/* Hero visual (panel derecho con foto real o SVG decorativo) */
.hero-visual {
  position: relative;
}

/* Video intro loop bajo la foto del hero (decorativo) */
.hero-intro-video {
  position: relative;
  margin-top: 16px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050a10;
  aspect-ratio: 16 / 9;
}
.hero-intro-video video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hero-intro-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(11, 15, 20, 0.35) 0%, transparent 40%, transparent 60%, rgba(11, 15, 20, 0.55) 100%);
  pointer-events: none;
}
.hero-intro-overlay::after {
  content: "Animación de marca";
  position: absolute;
  bottom: 10px;
  right: 12px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(11, 15, 20, 0.65);
  padding: 4px 9px;
  border-radius: 99px;
  border: 1px solid var(--border);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

@media (prefers-reduced-motion: reduce) {
  .hero-intro-video video { display: none; }
  .hero-intro-video {
    background: #050a10 url("../video/intro-loop-poster.jpg") center / cover no-repeat;
  }
}
.hero-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--elev);
  box-shadow: var(--shadow-lg);
  position: relative;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(11, 15, 20, 0.55) 100%);
  pointer-events: none;
  z-index: 1;
}
.hero-photo img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.6s var(--ease);
}
.hero-photo:hover img { transform: scale(1.02); }
.hero-photo figcaption {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
  font-size: 12.5px;
  color: var(--text);
  background: rgba(11, 15, 20, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 12px;
  line-height: 1.4;
}

/* Video demo del cartel en funcionamiento */
.video-demo {
  margin-top: 28px;
  padding: 24px;
  background:
    radial-gradient(700px 250px at 50% -20%, rgba(40, 224, 127, 0.1), transparent 70%),
    linear-gradient(160deg, var(--elev), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.video-demo-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 18px;
}
.video-demo-head h3 {
  font-size: 22px;
  margin: 10px 0 6px;
  letter-spacing: -0.01em;
}
.video-demo-head p {
  font-size: 14.5px;
  margin: 0;
}
.video-wrap {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: #050a10;
  position: relative;
  max-width: 900px;
  margin: 0 auto;
}
.video-wrap video {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 900 / 478;
  background: #050a10;
}
.video-wrap figcaption {
  font-size: 13px;
  padding: 12px 16px;
  background: rgba(11, 15, 20, 0.85);
  color: var(--muted);
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}
.video-wrap figcaption .gallery-tag {
  margin-right: 0;
}

/* Galería de fotos del cartel */
.gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 22px;
}
@media (min-width: 720px) {
  .gallery { grid-template-columns: 1fr 1fr; }
}
.gallery figure {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
}
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
}
.gallery figcaption {
  position: absolute;
  inset: auto 0 0 0;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.7));
  color: var(--text);
  padding: 24px 14px 14px;
  font-size: 12.5px;
  font-weight: 500;
}
.gallery figcaption .gallery-tag {
  display: inline-block;
  background: rgba(40, 224, 127, 0.18);
  color: var(--accent);
  border: 1px solid rgba(40, 224, 127, 0.4);
  border-radius: 999px;
  padding: 2px 9px;
  font-size: 11px;
  margin-right: 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Specs grid (tabla en card) */
.specs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}
@media (min-width: 600px) {
  .specs { grid-template-columns: 1fr 1fr; }
}
.spec {
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.specs > .spec:nth-last-child(-n+1) { border-bottom: 0; }
@media (min-width: 600px) {
  .specs > .spec:nth-last-child(2) { border-bottom: 0; }
  .specs > .spec:nth-child(odd) { border-right: 1px solid var(--border); }
}
.spec .spec-label {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.spec .spec-value {
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}
.spec .spec-value strong { color: var(--accent); }

/* Modo dual (dos columnas con título) para "Modo patente / Modo institucional" */
.modes {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 720px) {
  .modes { grid-template-columns: 1fr 1fr; }
}
.mode-card {
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
}
.mode-card h4 {
  margin: 0 0 8px;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mode-card h4 .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(40,224,127,0.18);
}
.mode-card p { margin: 0; font-size: 13.5px; }

/* Pill "Próximamente" / status */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.status-pill.coming {
  background: rgba(255, 200, 80, 0.1);
  color: #ffd388;
  border: 1px solid rgba(255, 200, 80, 0.35);
}
.status-pill.live {
  background: rgba(40, 224, 127, 0.12);
  color: var(--accent);
  border: 1px solid rgba(40, 224, 127, 0.4);
}
.status-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

/* Mantengo .hero-card por compatibilidad */
.hero-card {
  background: linear-gradient(160deg, var(--elev) 0%, var(--bg-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-card .pad { padding: 22px; }
.hero-card .grid { grid-template-columns: 1fr 1fr; gap: 0; }
.hero-card .col {
  padding: 20px;
}
.hero-card .col + .col { border-top: 1px solid var(--border); }

@media (min-width: 640px) {
  .hero-card .col + .col {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

/* ---------- Cards genéricas ---------- */
.card {
  background: var(--elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: transform 0.25s var(--ease), border-color 0.25s var(--ease),
    background 0.25s var(--ease);
  position: relative;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(40, 224, 127, 0.35);
  background: var(--elev-2);
}
.card .pad { padding: 22px; }

.card h3 {
  margin: 12px 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.icon-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(
    135deg,
    rgba(40, 224, 127, 0.22),
    rgba(40, 224, 127, 0.04)
  );
  border: 1px solid rgba(40, 224, 127, 0.4);
  color: var(--accent);
}
.icon-ring svg { width: 22px; height: 22px; }

/* ---------- Section title ---------- */
.section-title {
  text-align: center;
  margin-bottom: 36px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-title h2 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin: 12px 0 10px;
  letter-spacing: -0.02em;
  font-weight: 700;
}
.section-title p { font-size: 16px; }

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #cbd6e1;
  font-weight: 600;
}

h2 { font-size: 28px; margin: 10px 0 6px; font-weight: 700; }
h3 { font-weight: 600; }
h4 { font-weight: 600; margin: 0 0 8px; font-size: 16px; }

.muted { color: var(--muted); font-size: 15px; }
.muted-sm { color: var(--muted-2); font-size: 13px; }

/* ---------- Grid features ---------- */
.features { grid-template-columns: 1fr; }
.feature { text-align: left; }

/* ---------- Lista con bullet verde ---------- */
.list-check {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 10px;
}
.list-check li {
  position: relative;
  padding-left: 28px;
  color: var(--muted);
  font-size: 14.5px;
}
.list-check li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(40, 224, 127, 0.18);
  border: 1px solid rgba(40, 224, 127, 0.5);
}
.list-check li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---------- Chips ---------- */
.chip {
  display: inline-block;
  margin-right: 6px;
  margin-bottom: 6px;
  border: 1px solid var(--border);
  padding: 6px 11px;
  border-radius: 999px;
  color: #cbd6e1;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.03);
}
.chip.accent {
  border-color: rgba(40, 224, 127, 0.45);
  color: var(--accent);
  background: rgba(40, 224, 127, 0.08);
}

/* ---------- Cloud NVR section (destacada) ---------- */
.cloud-nvr {
  background:
    radial-gradient(800px 360px at 50% -20%, rgba(40, 224, 127, 0.1), transparent 70%),
    var(--bg);
}
.cloud-nvr-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: linear-gradient(160deg, var(--elev) 0%, var(--bg-2) 100%);
}
.cloud-nvr-grid {
  display: grid;
  grid-template-columns: 1fr;
}
.cloud-nvr-grid > .col {
  padding: 28px;
}
.cloud-nvr-grid > .col + .col { border-top: 1px solid var(--border); }
@media (min-width: 880px) {
  .cloud-nvr-grid { grid-template-columns: 1.05fr 1fr; }
  .cloud-nvr-grid > .col + .col {
    border-top: 0;
    border-left: 1px solid var(--border);
  }
}

.cloud-nvr-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 18px;
}
@media (min-width: 600px) {
  .cloud-nvr-features { grid-template-columns: 1fr 1fr; }
}
.cloud-nvr-feat {
  display: flex;
  gap: 12px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.cloud-nvr-feat .icon-ring { width: 38px; height: 38px; flex: 0 0 38px; }
.cloud-nvr-feat .icon-ring svg { width: 18px; height: 18px; }
.cloud-nvr-feat h4 { margin: 0 0 4px; font-size: 14.5px; }
.cloud-nvr-feat p { margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Capacidad de integración (fila debajo de servicios) ---------- */
.capability-row {
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    radial-gradient(600px 200px at 50% -10%, rgba(40, 224, 127, 0.08), transparent 70%),
    var(--elev);
}
.capability-title {
  text-align: center;
  font-size: 14px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  margin: 0 0 16px;
}
.capability-chips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
@media (min-width: 640px)  { .capability-chips { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .capability-chips { grid-template-columns: repeat(4, 1fr); } }
.cap-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.cap-chip:hover {
  border-color: rgba(40, 224, 127, 0.4);
  background: rgba(40, 224, 127, 0.05);
}
.cap-num {
  flex: 0 0 26px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(40, 224, 127, 0.15);
  border: 1px solid rgba(40, 224, 127, 0.5);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* ---------- "Por qué Zentrix" ---------- */
.why-zentrix {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
.why-zentrix .chip { font-size: 13px; padding: 8px 14px; }

/* ---------- CTA / Contacto ---------- */
.cta {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background:
    radial-gradient(600px 200px at 0% 0%, rgba(40, 224, 127, 0.12), transparent 60%),
    linear-gradient(160deg, var(--elev) 0%, var(--bg-2) 100%);
  display: grid;
  grid-template-columns: 1fr;
}
.cta .col { padding: 32px; }
.cta .col + .col { border-top: 1px solid var(--border); }
@media (min-width: 880px) {
  .cta { grid-template-columns: 1fr 1fr; }
  .cta .col + .col { border-top: 0; border-left: 1px solid var(--border); }
}

.contact-info {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.contact-info a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14.5px;
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s var(--ease);
}
.contact-info a:hover { color: var(--accent); }
.contact-info svg { width: 18px; height: 18px; color: var(--accent); flex: 0 0 18px; }
.contact-info span.label { color: var(--muted); font-size: 13px; margin-right: 6px; }

/* ---------- Form ---------- */
.contact-form {
  display: grid;
  gap: 12px;
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  background: #080c10;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: #0a0f14;
  box-shadow: 0 0 0 3px rgba(40, 224, 127, 0.15);
}
.contact-form textarea { min-height: 120px; resize: vertical; }
.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--muted-2); }

/* honeypot */
.contact-form .hp { display: none !important; }

.form-status {
  min-height: 20px;
  font-size: 14px;
  padding: 0;
  margin: 0;
}
.form-status[data-state="loading"] { color: var(--muted); }
.form-status[data-state="success"] {
  color: var(--accent);
  background: rgba(40, 224, 127, 0.1);
  border: 1px solid rgba(40, 224, 127, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
}
.form-status[data-state="error"] {
  color: #ffb4b4;
  background: rgba(255, 80, 80, 0.08);
  border: 1px solid rgba(255, 80, 80, 0.4);
  border-radius: 10px;
  padding: 10px 12px;
}

.form-legal {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 4px;
}
.form-legal a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--border); }
.form-legal a:hover { color: var(--accent); text-decoration-color: var(--accent); }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0 24px;
  margin-top: 32px;
  background: var(--bg-2);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
@media (min-width: 720px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-brand .logo-row { display: flex; align-items: center; gap: 12px; }
.footer-brand .logo { width: 36px; height: 36px; }
.footer-brand .name { font-weight: 700; font-size: 17px; }
.footer-brand p { font-size: 13.5px; max-width: 320px; }

.footer-col h5 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin: 0 0 12px;
  font-weight: 700;
}
.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}
.footer-col ul a {
  color: #cbd6e1;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-col ul a:hover { color: var(--accent); }
.footer-col ul a svg { width: 16px; height: 16px; }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 12.5px;
}
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent); }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #25d366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.45);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.wa-float:hover {
  transform: translateY(-2px) scale(1.05);
  color: #fff;
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.55);
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float::after {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.5);
  animation: wa-pulse 2.4s var(--ease) infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  70% { transform: scale(1.4); opacity: 0; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* ---------- Reveal on scroll ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive: desktop ---------- */
@media (min-width: 880px) {
  .menu { display: flex; }
  .hamburger { display: none; }
  .hero .grid { grid-template-columns: 1.05fr 0.95fr; }
  .features { grid-template-columns: repeat(4, 1fr); }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .grid.solutions-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid.tech-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; }
}

@media (max-width: 879px) {
  .brand .tag { display: none; }
  .nav-actions .btn { display: none; }
}

@media (max-width: 480px) {
  .stats { grid-template-columns: 1fr 1fr; gap: 14px; }
  .stats .stat:nth-child(3) { grid-column: 1 / -1; text-align: center; }
}

/* ---------- Print ---------- */
@media print {
  header, .wa-float, .hamburger, .mobile-menu, .hero::before, .hero::after { display: none !important; }
  body { background: #fff; color: #000; }
  .card, .cta { border: 1px solid #ccc; background: #fff; }
}
