/* =====================================================================
   ESTILOS CORPORATIVO TECNOLÓGICO (AZUL COBALTO, BLANCO Y GRIS ACERO)
   ===================================================================== */

:root {
  /* Paleta Corporativo Tecnológico */
  --primary: #1D4ED8;         /* Azul cobalto institucional */
  --primary-hover: #1E40AF;   /* Cobalto oscuro */
  --primary-dark: #0F2C59;    /* Azul noche formal */
  --primary-light: #3B82F6;   /* Azul vibrante técnico */
  --primary-subtle: #EFF6FF;  /* Azul fondo muy tenue */

  --steel-900: #0F172A;       /* Gris carbón / pizarra profunda */
  --steel-800: #1E293B;       /* Gris acero oscuro */
  --steel-700: #334155;       /* Gris texto principal */
  --steel-600: #475569;       /* Gris texto secundario */
  --steel-500: #64748B;       /* Gris atenuado */
  --steel-300: #CBD5E1;       /* Bordes medios */
  --steel-200: #E2E8F0;       /* Bordes nítidos estándar */
  --steel-100: #F1F5F9;       /* Fondo alternativo */
  --steel-50: #F8FAFC;        /* Fondo gris técnico limpio */

  --white: #FFFFFF;
  --accent-green: #059669;    /* Verde para WhatsApp / Live status */
  --accent-green-bg: #ECFDF5;
  --accent-amber: #D97706;    /* Ámbar para avisos */

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.04);

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  width: 100%;
}

body {
  font-family: var(--font-sans);
  color: var(--steel-700);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  width: 100%;
}

/* Tipografía */
h1, h2, h3, h4, h5 {
  color: var(--steel-900);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ================= BOTONES ================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
  white-space: nowrap;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 7px 14px;
}

.btn-lg {
  font-size: 1.05rem;
  padding: 14px 28px;
  border-radius: var(--radius-md);
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 2px 4px rgba(29, 78, 216, 0.25);
}

.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--white);
  box-shadow: 0 4px 8px rgba(29, 78, 216, 0.35);
  transform: translateY(-1px);
}

.btn-secondary {
  background-color: var(--steel-900);
  color: var(--white);
}

.btn-secondary:hover {
  background-color: var(--steel-800);
  transform: translateY(-1px);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--steel-300);
  color: var(--steel-800);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-subtle);
}

.btn-outline-light {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline-light:hover {
  border-color: var(--white);
  background-color: rgba(255, 255, 255, 0.1);
}

.btn-icon {
  gap: 8px;
}

/* ================= TOPBAR ================= */
.topbar {
  background-color: var(--steel-900);
  color: var(--steel-300);
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-block: 8px;
  flex-wrap: wrap;
  gap: 12px;
}

.topbar-segments {
  display: flex;
  align-items: center;
  gap: 16px;
}

.badge-tech {
  background-color: rgba(29, 78, 216, 0.35);
  color: #93C5FD;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border: 1px solid rgba(147, 197, 253, 0.2);
}

.topbar-segments a {
  color: var(--steel-300);
  font-weight: 500;
}

.topbar-segments a:hover, .topbar-segments a.active {
  color: var(--white);
}

.topbar-contact {
  display: flex;
  align-items: center;
  gap: 18px;
}

.contact-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--white);
}

.status-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #6EE7B7;
  font-weight: 600;
}

.dot {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
}

.online-users-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34D399;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.online-users-badge b {
  color: var(--white);
  font-weight: 700;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

.dot-live {
  width: 7px;
  height: 7px;
  background-color: #10B981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10B981;
  animation: pulseDotLive 1.8s infinite;
}

@keyframes pulseDotLive {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* ================= HEADER / NAVBAR ================= */
.header {
  background-color: var(--white);
  border-bottom: 1px solid var(--steel-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 14px;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.brand-img {
  height: 64px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), height 0.22s ease;
}

.brand:hover .brand-img {
  transform: scale(1.03);
}

.header.scrolled .brand-img {
  height: 50px;
}

.footer-brand-badge {
  display: inline-flex;
  align-items: center;
  background: var(--white);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}

.footer-brand-badge:hover {
  transform: translateY(-2px);
}

.footer-logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  display: block;
}

/* ================= BARRA DE NAVEGACIÓN MODERNA (CÁPSULAS TECNOLÓGICAS) ================= */
.nav {
  display: flex;
  align-items: center;
  gap: 4px;
  background-color: var(--steel-100);
  padding: 4px 6px;
  border-radius: var(--radius-full);
  border: 1px solid var(--steel-200);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.nav-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-700);
  padding: 7px 13px;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  border: 1px solid transparent;
}

.nav-icon {
  flex-shrink: 0;
  color: var(--steel-500);
  transition: transform 0.2s ease, color 0.2s ease;
}

/* Hover State */
.nav-link:hover {
  color: var(--primary);
  background-color: var(--white);
  border-color: var(--steel-200);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.nav-link:hover .nav-icon {
  color: var(--primary);
  transform: scale(1.12);
}

/* Active State (ScrollSpy y Selección Actual) */
.nav-link.active {
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
  color: var(--white);
  border-color: rgba(29, 78, 216, 0.3);
  font-weight: 700;
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.35);
}

.nav-link.active .nav-icon {
  color: #93C5FD;
}

.nav-link.active::after {
  display: none;
}

/* Destacado especial para Redes Wi-Fi Mesh */
.nav-link.nav-link-mesh .nav-icon {
  color: var(--primary-light);
}

.nav-link.nav-link-mesh:hover .nav-icon {
  color: var(--primary);
}

.nav-link.nav-link-mesh.active .nav-icon {
  color: #FACC15;
}

/* Ajuste proporcional para pantallas intermedias (1025px a 1200px) */
@media (min-width: 1025px) and (max-width: 1200px) {
  .nav {
    gap: 3px;
    padding: 3px 4px;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 9px;
    gap: 5px;
  }
  .nav-icon {
    width: 13px;
    height: 13px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
}

.burger span {
  display: block;
  width: 22px;
  height: 2px;
  background-color: var(--steel-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* ================= HERO SECTION ================= */
.hero {
  background: linear-gradient(180deg, var(--steel-50) 0%, var(--white) 100%);
  padding-block: clamp(40px, 6vw, 80px);
  border-bottom: 1px solid var(--steel-200);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--primary-subtle);
  color: var(--primary-hover);
  border: 1px solid rgba(29, 78, 216, 0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--primary);
}

.hero-title {
  font-size: clamp(2.1rem, 3.8vw, 3.2rem);
  color: var(--steel-900);
  letter-spacing: -0.035em;
  margin-bottom: 20px;
  line-height: 1.18;
}

.text-highlight {
  color: var(--primary);
  position: relative;
}

.hero-lead {
  font-size: clamp(1.05rem, 1.4vw, 1.2rem);
  color: var(--steel-600);
  line-height: 1.6;
  margin-bottom: 28px;
}

.hero-buttons {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.hero-checkpoints {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border-top: 1px solid var(--steel-200);
  padding-top: 22px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--steel-700);
}

.check-item svg {
  color: var(--accent-green);
  flex-shrink: 0;
}

/* Tarjeta interactiva del Hero */
.hero-card-wrapper {
  perspective: 1000px;
}

.tech-card {
  background-color: var(--steel-900);
  border: 1px solid var(--steel-800);
  border-radius: var(--radius-lg);
  color: var(--white);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.tech-card-header {
  padding: 14px 18px;
  background-color: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.tech-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: #6EE7B7;
}

.indicator.live {
  width: 8px;
  height: 8px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseLive 2s infinite;
}

@keyframes pulseLive {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.tech-header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
}

.live-viewers-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(6, 182, 212, 0.14);
  border: 1px solid rgba(6, 182, 212, 0.35);
  color: #67E8F9;
  padding: 2px 7px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.live-viewers-badge svg {
  color: #22D3EE;
  animation: eyeBlink 4s ease-in-out infinite;
}

.live-viewers-badge b {
  color: var(--white);
  font-weight: 700;
  display: inline-block;
  transition: transform 0.25s ease, color 0.25s ease;
}

@keyframes eyeBlink {
  0%, 90%, 100% { opacity: 1; transform: scale(1); }
  95% { opacity: 0.35; transform: scale(0.8); }
}

.tech-tag {
  background-color: rgba(29, 78, 216, 0.4);
  color: #93C5FD;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(147, 197, 253, 0.25);
}

.tech-card-body {
  padding: 20px;
}

/* ================= MONITOR CCTV EN VIVO ================= */
.tech-preview-screen {
  background: #06111B;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 9;
  min-height: 220px;
  max-height: 280px;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(0, 0, 0, 0.85);
}

.cctv-video,
.cctv-iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  filter: contrast(1.08) brightness(0.96);
  z-index: 1;
  background-color: #06111B;
}

.cctv-scanlines {
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%),
              linear-gradient(90deg, rgba(255, 0, 0, 0.03), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.03));
  background-size: 100% 3px, 3px 100%;
  pointer-events: none;
  z-index: 2;
  opacity: 0.55;
}

.cctv-hud {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 10px 12px;
  pointer-events: none;
}

.cctv-hud-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.cam-badge.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(6, 18, 27, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--white);
  font-family: inherit;
  font-size: 0.7rem;
  max-width: 75%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rec-dot {
  width: 8px;
  height: 8px;
  background-color: #EF4444;
  border-radius: 50%;
  box-shadow: 0 0 8px #EF4444;
  animation: blinkRec 1.2s infinite;
}

@keyframes blinkRec {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.25; transform: scale(0.85); }
}

.cam-stats {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cam-audio-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background-color: rgba(220, 38, 38, 0.88);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.65rem;
  font-weight: 800;
  padding: 3px 7px;
  border-radius: 3px;
  cursor: pointer;
  pointer-events: auto;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: inherit;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cam-audio-btn:hover {
  background-color: #B91C1C;
  transform: scale(1.05);
}

.cam-audio-btn.unmuted {
  background-color: #059669;
  border-color: rgba(110, 231, 183, 0.4);
}

.live-pill {
  background-color: #DC2626;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0.06em;
}

.bitrate-pill {
  background-color: rgba(6, 18, 27, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #93C5FD;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: monospace, monospace;
}

.cctv-ai-target {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.ai-box {
  width: 140px;
  height: 76px;
  border: 1.5px dashed #10B981;
  border-radius: 4px;
  position: relative;
  animation: aiDetect 4.5s infinite ease-in-out;
  box-shadow: inset 0 0 10px rgba(16, 185, 129, 0.15);
}

@keyframes aiDetect {
  0% { transform: translate(-25px, -6px) scale(0.96); opacity: 0.7; }
  50% { transform: translate(25px, 6px) scale(1.04); opacity: 0.95; }
  100% { transform: translate(-25px, -6px) scale(0.96); opacity: 0.7; }
}

.ai-label {
  position: absolute;
  top: -16px;
  left: 0;
  font-size: 0.58rem;
  font-weight: 800;
  background-color: #10B981;
  color: #064E3B;
  padding: 1px 5px;
  border-radius: 2px;
  white-space: nowrap;
  letter-spacing: 0.04em;
  font-family: monospace, monospace;
}

.cctv-hud-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.cctv-timestamp {
  font-family: monospace, "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  color: #FACC15;
  background-color: rgba(6, 18, 27, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 3px 7px;
  border-radius: 4px;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.cam-selector {
  display: flex;
  gap: 4px;
  pointer-events: auto;
}

.cam-btn {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--steel-300);
  font-size: 0.65rem;
  font-weight: 700;
  padding: 3px 6px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.18s ease;
  font-family: inherit;
}

.cam-btn:hover {
  background: rgba(29, 78, 216, 0.7);
  color: var(--white);
  border-color: #93C5FD;
}

.cam-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: #60A5FA;
  box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.tech-specs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-block: 16px;
  text-align: center;
}

.spec-col {
  background-color: rgba(255, 255, 255, 0.04);
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.spec-label {
  display: block;
  font-size: 0.72rem;
  color: var(--steel-400);
  margin-bottom: 2px;
}

.spec-val {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--white);
}

.tech-card-cta {
  margin-top: 14px;
}

/* ================= KPIS SECTION ================= */
.section-kpis {
  background-color: var(--steel-900);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: 1px solid var(--steel-800);
  padding-block: 30px;
  color: var(--white);
}

.kpis-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.kpi-card {
  padding: 12px 18px;
  border-left: 3px solid var(--primary);
}

.kpi-number {
  display: block;
  font-size: clamp(1.8rem, 2.5vw, 2.3rem);
  font-weight: 800;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.kpi-label {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  color: #93C5FD;
  margin-top: 4px;
}

.kpi-sub {
  font-size: 0.78rem;
  color: var(--steel-400);
  margin-top: 2px;
  margin-bottom: 0;
  line-height: 1.35;
}

/* ================= SECCIÓN GENERAL ================= */
.section {
  padding-block: clamp(50px, 8vw, 84px);
}

.section-alt {
  background-color: var(--steel-50);
  border-block: 1px solid var(--steel-200);
}

.section-dark {
  background-color: var(--steel-900);
  color: var(--white);
}

.section-header {
  max-width: 680px;
  margin-inline: auto;
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.section-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--primary);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-tag.light {
  color: #93C5FD;
}

.section-title {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
  color: var(--steel-900);
  margin-bottom: 14px;
}

.text-white {
  color: var(--white) !important;
}

.text-muted-light {
  color: var(--steel-300);
}

.section-lead {
  font-size: 1.05rem;
  color: var(--steel-600);
  line-height: 1.6;
}

/* ================= SERVICIOS (4 PILARES) ================= */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.service-card {
  background-color: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 30px 24px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--steel-300);
}

.service-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.service-badge {
  position: absolute;
  top: -12px;
  right: 24px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.service-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.service-tag {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--steel-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}

.service-title {
  font-size: 1.3rem;
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.92rem;
  color: var(--steel-600);
  margin-bottom: 18px;
}

.service-features {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-features li {
  font-size: 0.88rem;
  color: var(--steel-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.service-features li::before {
  content: "✓";
  color: var(--accent-green);
  font-weight: bold;
}

.service-footer {
  margin-top: auto;
}

/* ================= SECCIÓN DESTACADA WI-FI MESH ================= */
.mesh-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.mesh-lead {
  font-size: 1.1rem;
  color: var(--steel-700);
  margin-bottom: 24px;
}

.comparison-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 28px;
}

.comp-item {
  padding: 18px;
  border-radius: var(--radius-md);
  font-size: 0.88rem;
}

.comp-item.bad {
  background-color: #FEF2F2;
  border: 1px solid #FCA5A5;
}

.comp-item.good {
  background-color: #EFF6FF;
  border: 1px solid #93C5FD;
}

.comp-header {
  margin-bottom: 10px;
}

.comp-badge {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.comp-item.bad .comp-badge { color: #DC2626; }
.comp-item.good .comp-badge { color: var(--primary); }

.comp-item ul {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-left: 14px;
}

.comp-item.bad li { list-style: disc; color: #991B1B; }
.comp-item.good li { list-style: disc; color: #1E3A8A; }

/* Diagrama visual de la red */
.mesh-diagram-card {
  background-color: var(--steel-900);
  border-radius: var(--radius-lg);
  padding: 24px;
  color: var(--white);
  border: 1px solid var(--steel-800);
  box-shadow: var(--shadow-xl);
}

.diagram-header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 12px;
  margin-bottom: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
}

.diagram-header b {
  color: #93C5FD;
  letter-spacing: 0.05em;
}

.diagram-header span {
  color: #6EE7B7;
  font-weight: 700;
}

/* ================= TOPOLOGÍA WI-FI MESH CONECTADA ================= */
.nodes-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding-block: 6px 12px;
  width: 100%;
}

.node-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  text-align: center;
  position: relative;
}

.node-icon-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.node-pulse-ring {
  position: absolute;
  inset: -6px;
  border-radius: var(--radius-sm);
  border: 1.5px solid rgba(59, 130, 246, 0.7);
  opacity: 0;
  pointer-events: none;
  animation: modemRing 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

.node-pulse-ring.delay {
  animation-delay: 1.2s;
}

@keyframes modemRing {
  0% { transform: scale(0.94); opacity: 0.95; }
  100% { transform: scale(1.38); opacity: 0; border-color: rgba(16, 185, 129, 0); }
}

.node-icon {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background-color: rgba(15, 23, 42, 0.95);
  border: 1.5px solid var(--primary-light);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(59, 130, 246, 0.35);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}

.node-item.central .node-icon {
  background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
  border-color: #60A5FA;
  font-size: 0.85rem;
  padding: 10px 22px;
  box-shadow: 0 0 22px rgba(37, 99, 235, 0.6);
}

.node-svg-icon {
  flex-shrink: 0;
  color: #93C5FD;
}

.node-item.central .node-svg-icon {
  color: #FACC15;
}

.node-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-top: 3px;
}

.node-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #6EE7B7;
  letter-spacing: 0.03em;
  margin-top: 1px;
}

.pulse-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  animation: pulseLive 1.8s infinite;
}

/* Conector SVG y haces de datos animados */
.mesh-connections-wrapper {
  width: 100%;
  max-width: 460px;
  margin: -1px auto;
  position: relative;
  z-index: 1;
}

.mesh-connection-svg {
  width: 100%;
  height: 70px;
  display: block;
  overflow: visible;
}

.stream-line {
  stroke-dasharray: 8 16;
  animation: meshFlowDash 1.2s linear infinite;
}

@keyframes meshFlowDash {
  from { stroke-dashoffset: 24; }
  to { stroke-dashoffset: 0; }
}

/* Grupo de 3 Nodos Secundarios */
.node-group {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  position: relative;
  z-index: 2;
}

.node-group .node-item .node-icon {
  animation: nodeGlowReceive 3.6s ease-in-out infinite alternate;
}

.node-group .node-item:nth-child(1) .node-icon { animation-delay: 0.2s; }
.node-group .node-item:nth-child(2) .node-icon { animation-delay: 0.8s; }
.node-group .node-item:nth-child(3) .node-icon { animation-delay: 1.4s; }

@keyframes nodeGlowReceive {
  0% {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  }
  50% {
    border-color: #34D399;
    box-shadow: 0 0 18px rgba(16, 185, 129, 0.5);
    color: #F0FDF4;
  }
  100% {
    border-color: rgba(59, 130, 246, 0.45);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.2);
  }
}

.node-location {
  font-size: 0.75rem;
  font-weight: 600;
  color: #E2E8F0;
  margin-top: 2px;
}

.node-sub {
  font-size: 0.68rem;
  color: #94A3B8;
}

/* Barra inter-malla entre nodos (Mesh Peering) */
.mesh-inter-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
}

.mesh-inter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.5), transparent);
}

.mesh-inter-text {
  font-size: 0.72rem;
  color: #93C5FD;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.02em;
}

.sync-arrows {
  display: inline-block;
  color: #34D399;
  font-size: 0.85rem;
  animation: syncArrows 2s ease-in-out infinite;
}

@keyframes syncArrows {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.25); color: #6EE7B7; }
}

.diagram-footer {
  margin-top: 24px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  font-size: 0.78rem;
  color: var(--steel-400);
}

/* ================= PASOS DE TRABAJO ================= */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
}

.step-card {
  background-color: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
}

.step-num {
  font-size: 2.2rem;
  font-weight: 900;
  color: var(--steel-200);
  line-height: 1;
  margin-bottom: 12px;
}

.step-title {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--steel-600);
  margin-bottom: 0;
}

/* ================= COBERTURA ================= */
.coverage-box {
  background-color: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 4vw, 44px);
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 36px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}

.coverage-lead {
  font-size: 1.05rem;
  color: var(--steel-600);
  margin-bottom: 20px;
}

.zone-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.zone-badge {
  background-color: var(--steel-50);
  border: 1px solid var(--steel-200);
  padding: 7px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--steel-800);
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.dot-ok {
  width: 8px;
  height: 8px;
  background-color: var(--accent-green);
  border-radius: 50%;
}

.coverage-callout {
  background-color: var(--primary-subtle);
  border: 1px solid rgba(29, 78, 216, 0.2);
  border-radius: var(--radius-md);
  padding: 26px;
  text-align: center;
}

.coverage-callout h3 {
  font-size: 1.25rem;
  color: var(--primary-dark);
  margin-bottom: 8px;
}

.coverage-callout p {
  font-size: 0.9rem;
  color: var(--steel-600);
  margin-bottom: 18px;
}

/* ================= COTIZADOR / FORMULARIO ================= */
.quote-wrapper {
  background-color: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 50px);
  box-shadow: var(--shadow-lg);
  max-width: 860px;
  margin-inline: auto;
}

.quote-header {
  margin-bottom: 32px;
}

.quote-form .form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--steel-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  font-family: inherit;
  font-size: 0.95rem;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-300);
  background-color: var(--white);
  color: var(--steel-900);
  transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

.form-disclaimer {
  font-size: 0.8rem;
  color: var(--steel-500);
  margin-top: 12px;
  margin-bottom: 0;
}

/* ================= CONTACTO DARK ================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 5vw, 60px);
  align-items: center;
}

.contact-channels {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-top: 28px;
}

.channel-item {
  display: flex;
  align-items: center;
  gap: 16px;
}

.channel-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-sm);
  background-color: rgba(255, 255, 255, 0.08);
  color: #93C5FD;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.channel-title {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--steel-400);
}

.channel-val {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--white);
  transition: color 0.2s ease;
}

a.channel-val:hover {
  color: #93C5FD;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.contact-box-card {
  background-color: var(--steel-800);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.contact-box-card h3 {
  color: var(--white);
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.contact-box-card p {
  color: var(--steel-300);
  font-size: 0.92rem;
  margin-bottom: 20px;
}

.callout-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(16, 185, 129, 0.15);
  color: #6EE7B7;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 20px;
}

.badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #10B981;
}

/* ================= FOOTER ================= */
.footer {
  background-color: #0B1120;
  color: var(--steel-400);
  padding-top: 56px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-content {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}

.footer-desc {
  font-size: 0.88rem;
  color: var(--steel-400);
  margin-top: 12px;
  max-width: 380px;
}

.footer-links h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 16px;
}

.footer-links ul {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--steel-400);
  font-size: 0.88rem;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-block: 20px;
  font-size: 0.8rem;
}

.footer-bottom-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ================= BOTÓN FLOTANTE WHATSAPP ================= */
.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 58px;
  height: 58px;
  background-color: #25D366;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
  z-index: 999;
  transition: transform 0.25s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* ================= UTILIDADES ADAPTATIVAS ================= */
.tel-link {
  color: inherit;
  text-decoration: none;
}
.tel-link:hover {
  text-decoration: underline;
}

.btn-wa-short {
  display: none;
}

.nav-mobile-cta {
  display: none;
}

/* ================= DISEÑO ADAPTATIVO (RESPONSIVE) ================= */

/* TABLETS Y NOTEBOOKS PEQUEÑAS (hasta 1024px) */
@media (max-width: 1024px) {
  .burger {
    display: flex;
  }

  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    align-items: stretch;
    padding: 18px 20px 28px;
    gap: 8px;
    max-height: calc(100vh - 80px);
    max-height: calc(100dvh - 80px);
    overflow-y: auto;
    border-radius: 0;
    border: none;
    border-bottom: 2px solid var(--steel-200);
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.15);
    z-index: 99;
  }

  .nav.open {
    display: flex;
    animation: navSlideDown 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  }

  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .nav-link {
    font-size: 0.98rem;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    color: var(--steel-800);
    background-color: var(--steel-50);
    border: 1px solid var(--steel-200);
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: none;
    transform: none !important;
  }

  .nav-link .nav-icon {
    width: 18px;
    height: 18px;
    color: var(--primary);
  }

  .nav-link::after {
    content: "›";
    margin-left: auto;
    font-size: 1.3rem;
    font-weight: 300;
    color: var(--steel-400);
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
  }

  .nav-link:hover, .nav-link.active {
    background: linear-gradient(135deg, var(--primary) 0%, #1E40AF 100%);
    color: var(--white);
    border-color: var(--primary);
    box-shadow: 0 4px 12px rgba(29, 78, 216, 0.25);
  }

  .nav-link:hover .nav-icon, .nav-link.active .nav-icon {
    color: var(--white);
  }

  .nav-link:hover::after, .nav-link.active::after {
    color: var(--white);
    transform: translateX(3px);
  }

  .nav-mobile-cta {
    display: block;
    margin-top: 14px;
    padding-top: 10px;
  }

  .burger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }
  .burger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }
  .burger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .btn-header-quote {
    display: none;
  }

  .hero-grid,
  .mesh-grid,
  .coverage-box,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: clamp(30px, 4.5vw, 48px);
  }

  .kpis-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* SMARTPHONES Y DISPOSITIVOS MEDIANOS (hasta 768px) */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  .container {
    padding-inline: 16px;
  }

  .topbar-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-block: 7px;
  }

  .topbar-segments {
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 2px;
    scrollbar-width: none;
  }
  .topbar-segments::-webkit-scrollbar {
    display: none;
  }

  .topbar-contact {
    width: 100%;
    justify-content: space-between;
    font-size: 0.82rem;
  }

  .header-content {
    padding-block: 10px;
  }

  .brand-img {
    height: 52px;
    max-width: 155px;
  }

  .header.scrolled .brand-img {
    height: 44px;
  }

  .hero-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .hero-buttons .btn {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .comparison-box {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .node-group {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }

  .mesh-connection-svg {
    height: 56px;
  }

  .node-icon {
    font-size: 0.68rem;
    padding: 6px 8px;
    gap: 4px;
  }

  .node-item.central .node-icon {
    font-size: 0.76rem;
    padding: 8px 14px;
  }

  .node-location {
    font-size: 0.68rem;
  }

  .node-sub {
    font-size: 0.62rem;
  }

  .mesh-inter-text {
    font-size: 0.65rem;
    text-align: center;
  }

  .quote-wrapper {
    padding: 24px 18px;
  }

  .quote-form .form-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .quote-form input,
  .quote-form select,
  .quote-form textarea {
    font-size: 16px; /* Vital para evitar zoom involuntario en iPhone Safari */
    padding: 13px 14px;
  }

  .coverage-box {
    padding: 24px 18px;
  }

  .zone-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }

  .contact-box-card {
    padding: 24px 18px;
  }
}

/* SMARTPHONES PEQUEÑOS Y PANTALLAS ESTRECHAS (hasta 480px) */
@media (max-width: 480px) {
  .btn-wa-full {
    display: none;
  }
  .btn-wa-short {
    display: inline;
  }

  .header-actions .btn-header-wa {
    padding: 7px 11px;
    font-size: 0.8rem;
    gap: 5px;
  }

  .brand-img {
    height: 46px;
    max-width: 135px;
  }

  .status-online {
    display: none; /* Asegura que la barra superior entre prolija en 1 sola línea */
  }

  .kpis-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .kpi-card {
    padding: 10px 12px;
  }

  .kpi-number {
    font-size: 1.65rem;
  }

  .kpi-label {
    font-size: 0.8rem;
  }

  /* Monitor CCTV adaptado a pantallas móviles */
  .tech-card-body {
    padding: 14px;
  }

  .tech-preview-screen {
    min-height: 195px;
  }

  .cctv-hud {
    padding: 8px 10px;
  }

  .cctv-hud-top {
    font-size: 0.65rem;
  }

  .cam-badge.live-badge {
    font-size: 0.62rem;
    padding: 3px 6px;
    max-width: 65%;
  }

  .cam-audio-btn {
    font-size: 0.6rem;
    padding: 2px 6px;
  }

  .cctv-timestamp {
    font-size: 0.65rem;
    padding: 2px 5px;
  }

  .cam-btn {
    font-size: 0.58rem;
    padding: 2px 5px;
  }

  .tech-specs {
    gap: 6px;
  }

  .spec-label {
    font-size: 0.68rem;
  }

  .spec-val {
    font-size: 0.74rem;
  }

  .node-group {
    gap: 5px;
  }

  .node-icon {
    font-size: 0.62rem;
    padding: 5px 6px;
    gap: 3px;
  }

  .node-svg-icon {
    width: 12px;
    height: 12px;
  }

  .node-location {
    font-size: 0.63rem;
    line-height: 1.2;
  }

  .node-sub {
    display: none;
  }

  .mesh-connection-svg {
    height: 48px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
}

/* ================= PRODUCT CARDS (CATÁLOGO DE CERRADURAS & CONTROL DE ACCESOS) ================= */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  position: relative;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-light);
}

.product-card.featured-card {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
}

.product-media {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
  max-height: 280px;
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--steel-200);
}

.product-img {
  max-height: 210px;
  width: auto;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.product-card:hover .product-img {
  transform: scale(1.05);
}

.product-badge-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background-color: var(--primary);
  color: var(--white);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
}

.product-brand-tag {
  position: absolute;
  top: 14px;
  right: 14px;
  background-color: rgba(15, 23, 42, 0.85);
  color: #93C5FD;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.product-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-model-name {
  font-size: 1.35rem;
  color: var(--steel-900);
  margin-bottom: 6px;
  font-weight: 700;
}

.product-type {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.product-desc {
  font-size: 0.92rem;
  color: var(--steel-600);
  line-height: 1.55;
  margin-bottom: 16px;
}

.product-features-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.product-features-list li {
  font-size: 0.86rem;
  color: var(--steel-700);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.product-features-list li::before {
  content: "✔";
  color: var(--accent-green);
  font-weight: bold;
}

.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 22px;
}

.tech-pill {
  font-size: 0.72rem;
  font-weight: 600;
  background-color: var(--steel-100);
  color: var(--steel-700);
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--steel-200);
}

.product-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
}

.product-actions .btn {
  flex: 1;
}

/* Hero específico de Control de Accesos */
.page-hero {
  background: linear-gradient(180deg, var(--steel-900) 0%, #172554 100%);
  color: var(--white);
  padding-block: clamp(48px, 7vw, 84px);
  border-bottom: 1px solid var(--steel-800);
}

.page-hero .hero-chip {
  background-color: rgba(59, 130, 246, 0.2);
  color: #93C5FD;
  border: 1px solid rgba(147, 197, 253, 0.3);
}

.page-hero .hero-title {
  color: var(--white);
}

.page-hero .hero-lead {
  color: var(--steel-300);
}

.benefits-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.benefit-card-mini {
  background: var(--white);
  border: 1px solid var(--steel-200);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.benefit-card-mini:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.benefit-icon-mini {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background-color: var(--primary-subtle);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 14px;
}

.benefit-card-mini h4 {
  font-size: 1.05rem;
  color: var(--steel-900);
  margin-bottom: 8px;
}

.benefit-card-mini p {
  font-size: 0.88rem;
  color: var(--steel-600);
  margin-bottom: 0;
  line-height: 1.45;
}

