/* --- HEADER & NAVBAR ULTRA DINÁMICO Y LLAMATIVO --- */
  
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #03070b; /* Fondo base por seguridad */
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-bottom: 2px solid rgba(0, 168, 255, 0.5);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.5);
  transition: all 0.4s ease;
  z-index: 1000;
  padding: 8px 0;
}

/* Capa de fondo separada para que la imagen no parpadee ni desaparezca al mover el cursor */
.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 7, 10, 0.50), rgba(9, 28, 36, 0.60)), 
              url('imagen/encabezado1.jpg') no-repeat center center;
  background-size: cover;
  filter: brightness(1.12) contrast(1.08);
  -webkit-filter: brightness(1.12) contrast(1.08);
  z-index: -1; /* Se coloca detrás de los logos y enlaces para que nunca se oculten */
}

.header.scrolled {
  padding: 2px 0;
  border-bottom: 2px solid rgba(0, 255, 136, 0.5);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 25px;
}

/* Estilo para el Logo si deseas darle un brillo al pasar el mouse */
.nav-container img {
  filter: drop-shadow(0 0 8px rgba(0, 168, 255, 0.3));
  transition: transform 0.3s ease;
}

.nav-container img:hover {
  transform: scale(1.04);
}

/* NAVEGACIÓN DESKTOP */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 35px;
}

.nav-link {
  color: #f1f5f9;
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0.5px;
  position: relative;
  padding: 6px 2px;
  transition: color 0.3s ease;
}

/* Color llamativo al pasar el cursor o estar activo (Cian Neón / Verde Esmeralda) */
.nav-link:hover,
.nav-link.active {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

/* Línea inferior animada con degradado brillante */
.nav-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 3px;
  bottom: 0;
  left: 0;
  background: linear-gradient(90deg, #00a8ff, #00ff88);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.6);
  transition: width 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

/* BOTÓN HAMBURGUESA MÓVIL LLAMATIVO */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 22px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.menu-toggle .bar {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #00a8ff, #00ff88);
  border-radius: 3px;
  transition: all 0.3s ease;
  box-shadow: 0 0 5px rgba(0, 168, 255, 0.5);
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(9.5px) rotate(45deg);
}

.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-9.5px) rotate(-45deg);
}

/* MENÚ DESPLEGABLE MÓVIL RESPONSIVO */
/* ==========================================================================
   ESTILOS RESPONSIVOS (MÓVILES Y PANTALLAS PEQUEÑAS)
   ========================================================================== */
@media (max-width: 768px) {
  .header {
    padding: 20px 0;
  }

  .nav-container img {
    max-height: 42px; /* Logo más pequeño en celular como pediste */
    width: auto;
  }

  .menu-toggle {
    display: flex !important;
  }

  /* Menú desplegable a pantalla completa sin espacios en blanco */
  .nav-menu {
    display: none !important;
    position: fixed;
    top: 60px; /* <--- Se ajusta exactamente a la altura real del header móvil para evitar el hueco */
    left: 0;
    width: 100%;
    height: calc(100vh - 60px);
    background: linear-gradient(135deg, #03070b, #091c24);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 25px;
    z-index: 9999;
    border-top: 2px solid rgba(0, 255, 136, 0.3);
    margin: 0;
    padding: 0;
  }

  .nav-menu.active {
    display: flex !important;
  }

  .nav-link {
    font-size: 20px;
  }
}











/* --- ENCABEZADO DE SOLUCIONES ULTRA DINÁMICO --- */
.dynamic-header-fx {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
}

/* Píldora superior con efecto pulso neón */
.badge-glow-wrapper {
  display: inline-block;
  margin-bottom: 15px;
}

.badge-neon-pulse {
  background: linear-gradient(135deg, rgba(0, 119, 182, 0.15), rgba(0, 255, 136, 0.2));
  border: 1px solid rgba(0, 255, 136, 0.5);
  color: #0077b6;
  padding: 8px 20px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.2);
  animation: badgeGlowPulse 2.5s infinite;
}

.badge-neon-pulse i {
  color: #00ff88;
  animation: iconBounce 1.5s infinite;
}

@keyframes badgeGlowPulse {
  0%, 100% {
    box-shadow: 0 0 15px rgba(0, 255, 136, 0.2);
    border-color: rgba(0, 255, 136, 0.4);
  }
  50% {
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.5);
    border-color: rgba(0, 255, 136, 0.9);
  }
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

/* Título con degradado brillante y sutil reflejo */
.title-gradient-glow {
  background: linear-gradient(135deg, #0f172a 20%, #0077b6 60%, #00a8ff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.3rem;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  text-shadow: 0 10px 30px rgba(0, 119, 182, 0.15);
}

/* Línea divisoria animada */
.underline-anim {
  width: 90px;
  height: 4px;
  background: linear-gradient(90deg, #0077b6, #00ff88);
  margin: 0 auto 18px auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
  position: relative;
  overflow: hidden;
}

.underline-anim::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  animation: shineLine 3s infinite;
}

@keyframes shineLine {
  0% { left: -100%; }
  20% { left: 100%; }
  100% { left: 100%; }
}

/* Subtítulo nítido y legible */
.subtitle-fade {
  max-width: 750px;
  margin: 0 auto;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}











/* --- SECCIÓN SOLUCIONES ULTRA DINÁMICA Y LLAMATIVA --- */
.products-section {
  background: radial-gradient(circle at top right, #e0f2fe 0%, #f8fafc 45%, #e2e8f0 100%);
  padding: 120px 20px 90px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.products-container {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Barra de Filtros con Efecto Cristal */
.filter-bar {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 35px 0 50px;
}

.filter-btn {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  color: #1e293b;
  border: 1px solid #cbd5e1;
  padding: 11px 24px;
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.filter-btn:hover {
  transform: translateY(-3px);
  border-color: #00a8ff;
  color: #0077b6;
  box-shadow: 0 8px 20px rgba(0, 168, 255, 0.2);
}

.filter-btn.active {
  background: linear-gradient(135deg, #0056b3 0%, #00a8ff 50%, #00ff88 100%);
  background-size: 200% auto;
  color: #ffffff;
  border-color: transparent;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  box-shadow: 0 10px 25px rgba(0, 168, 255, 0.4);
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Cuadrícula de Tarjetas */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 32px;
}

/* Tarjeta Pro con Iluminación Reactiva al Cursor */
.product-card-pro {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1),
              box-shadow 0.45s ease,
              opacity 0.4s ease;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.product-card-pro.hide {
  display: none;
}

/* Halo de luz que sigue al mouse dentro de la tarjeta */
.product-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    450px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(0, 255, 136, 0.16),
    rgba(0, 168, 255, 0.08) 40%,
    transparent 80%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 4;
}

.product-card-pro:hover .product-glow {
  opacity: 1;
}

/* Borde Neón Degradado */
.product-card-pro::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 24px;
  padding: 2px;
  background: linear-gradient(135deg, #0077b6, #00a8ff, #00ff88);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
  z-index: 5;
}

.product-card-pro:hover::before {
  opacity: 1;
}

.product-card-pro:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 50px rgba(0, 119, 182, 0.22);
}

/* Contenedor de Imagen (ALTURA AUMENTADA) */
.product-img-box {
  position: relative;
  width: 100%;
  height: 400px; /* <--- AQUÍ CAMBIAMOS DE 235px A 300px (Puedes probar con 320px o 350px si las quieres aún más altas) */
  overflow: hidden;
  background: #0a1418;
}

.product-img-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.75s cubic-bezier(0.165, 0.84, 0.44, 1), filter 0.4s ease;
}

.product-card-pro:hover .product-img-box img {
  transform: scale(1.14);
  filter: brightness(0.7);
}

/* Etiquetas de Categoría con Colores Vibrantes */
.product-badge {
  position: absolute;
  top: 15px;
  left: 15px;
  padding: 6px 15px;
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #ffffff;
  z-index: 3;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

.product-badge.telecom  { background: linear-gradient(135deg, #0056b3, #00a8ff); }
.product-badge.obras    { background: linear-gradient(135deg, #0284c7, #38bdf8); }
.product-badge.electric { background: linear-gradient(135deg, #c2410c, #f97316); }
.product-badge.solar    { background: linear-gradient(135deg, #b45309, #f59e0b); }
.product-badge.security { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.product-badge.tools    { background: linear-gradient(135deg, #047857, #10b981); }

/* Ficha Técnica Deslizable sobre la Imagen */
.product-quick-specs {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 18px;
  background: linear-gradient(to top, rgba(10, 20, 24, 0.96), rgba(10, 20, 24, 0.78));
  backdrop-filter: blur(6px);
  display: flex;
  flex-direction: column;
  gap: 6px;
  transform: translateY(101%);
  transition: transform 0.42s cubic-bezier(0.165, 0.84, 0.44, 1);
  z-index: 2;
}

.product-card-pro:hover .product-quick-specs {
  transform: translateY(0);
}

.product-quick-specs span {
  color: #00ff88;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.2px;
}

/* Contenido Textual */
.product-content {
  padding: 25px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  position: relative;
  z-index: 3;
}

.product-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
}

.stock-indicator {
  color: #059669;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
}

.stock-indicator .dot {
  width: 8px;
  height: 8px;
  background: #00ff88;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 10px #00ff88;
  animation: pulseGlow 1.8s infinite;
}

@keyframes pulseGlow {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

.code-tag {
  color: #64748b;
  background: #f1f5f9;
  padding: 3px 9px;
  border-radius: 6px;
  font-weight: 700;
}

.product-content h3 {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 10px;
  transition: color 0.3s ease;
}

.product-card-pro:hover .product-content h3 {
  color: #0077b6;
}

.product-content p {
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.65;
  margin-bottom: 24px;
  flex-grow: 1;
}

/* Botón WhatsApp Interactivo */
.product-btn-primary {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 13px 22px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0a1418, #1e293b);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  transition: all 0.35s cubic-bezier(0.165, 0.84, 0.44, 1);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.18);
}

.product-btn-primary:hover {
  background: linear-gradient(135deg, #0077b6, #00ff88);
  color: #0a1418;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 12px 28px rgba(0, 255, 136, 0.4);
}

/* Animación de entrada para tarjetas filtradas */
.card-animate-in {
  animation: cardPopIn 0.45s cubic-bezier(0.165, 0.84, 0.44, 1) forwards;
}

@keyframes cardPopIn {
  from {
    opacity: 0;
    transform: translateY(25px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}








/* --- PIE DE PÁGINA (COMPACTO Y REDUCIDO) --- */
/* --- PIE DE PÁGINA (COMPACTO, REDUCIDO Y TONALIDAD MÁS BAJA CON 'encabezado1') --- */
.mian-footer {
  position: relative;
  width: 100%;
  clear: both;
  background-color: #03070b; /* Fondo base por seguridad */
  color: #ffffff;
  padding: 35px 20px 15px 20px;
  box-sizing: border-box;
  z-index: 10;
  overflow: hidden;
  margin-top: 0;
}

/* Capa de fondo con tu imagen 'encabezado1' a una tonalidad más baja y sobria */
.mian-footer::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(3, 7, 10, 0.70), rgba(9, 28, 36, 0.78)), 
              url('imagen/encabezado1.jpg') no-repeat center center;
  background-size: cover;
  /* Brillo y contraste reducidos para una apariencia más oscura y profesional */
  filter: brightness(0.95) contrast(1.05) saturate(0.95);
  -webkit-filter: brightness(0.95) contrast(1.05) saturate(0.95);
  z-index: -1; /* Detrás del contenido para que nunca se oculte */
}

.mian-footer::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 3px;
  background: linear-gradient(90deg, #00a8ff, #00ff88, #00a8ff, #0051ff, #00a8ff);
  animation: dataFlow 4s linear infinite;
}

.mian-footer .container--flex {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mian-footer .column--33 {
  flex: 1;
  min-width: 250px;
  box-sizing: border-box;
}

.mian-footer .column__title {
  font-size: 1.1rem;
  color: #00a8ff;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  padding-bottom: 6px;
  display: inline-block;
}

.mian-footer .column__title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 2px;
  background-color: #00ff88;
  transition: width 0.4s ease;
}

.mian-footer .column--33:hover .column__title::after {
  width: 100%;
}

.mian-footer .column__txt {
  position: relative;
  font-size: 0.92rem;
  color: #b2bec3;
  margin-bottom: 8px;
  line-height: 1.4;
  transition: transform 0.3s ease, color 0.3s ease;
}

.footer-link {
  color: #b2bec3;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-link:hover {
  color: #00ff88;
}

.mian-footer .column__txt:not(:has(a)):not(:has(span)) {
  cursor: pointer;
}

.mian-footer .column__txt:not(:has(a)):not(:has(span)):hover {
  color: #ffffff;
  transform: translateX(8px);
}

.pulse-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #00ff88;
  border-radius: 50%;
  margin-right: 6px;
  box-shadow: 0 0 0 0 rgba(0, 255, 136, 0.7);
  animation: pulseSignal 2s infinite;
}

@media (min-width: 768px) {
  .mian-footer .column--33:not(:last-child) {
    border-right: 1px solid rgba(0, 168, 255, 0.25);
    margin-right: 15px;
    padding-right: 25px;
  }
}

.social-icons {
  display: flex;
  gap: 10px;
  margin: 10px 0 5px 0;
}

.social-btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
  background-color: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #ffffff;
  border-radius: 50%;
  text-decoration: none;
  font-weight: bold;
  font-size: 0.85rem;
  transition: all 0.3s ease;
}

.social-btn:hover {
  background-color: #00ff88;
  color: #0a1418;
  border-color: #00ff88;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.4);
}

.email-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(0, 168, 255, 0.15), rgba(0, 255, 136, 0.15));
  border: 1px solid rgba(0, 168, 255, 0.4);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  word-break: break-all;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
  overflow: hidden;
}

.email-badge::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: 0.5s;
}

.email-badge:hover::after {
  left: 100%;
}

.email-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 20px;
  height: 20px;
  background-color: #00a8ff;
  color: #ffffff;
  border-radius: 50%;
  font-size: 0.65rem;
  flex-shrink: 0;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.email-badge:hover {
  background: linear-gradient(135deg, #00a8ff, #00ff88);
  color: #0a1418;
  border-color: #00ff88;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 255, 136, 0.4);
}

.email-badge:hover .email-icon {
  background-color: #0a1418;
  color: #00ff88;
  transform: rotate(15deg) scale(1.1);
}

.mian-footer .copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: #7f8fa6;
  margin-top: 15px;
  letter-spacing: 0.5px;
}