/* --- 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;
}

.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);
}

.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;
}

.nav-link:hover,
.nav-link.active {
  color: #00ff88;
  text-shadow: 0 0 10px rgba(0, 255, 136, 0.4);
}

.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%;
}

.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);
}

/* ==========================================================================
   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;
  }
}



/* --- DEL CUERPO BAJAR MÁS EL CONTENIDO --- */
.about-us-section {
  background: radial-gradient(circle at bottom left, #e0f2fe 0%, #f8fafc 45%, #e2e8f0 100%);
  padding: 1800px 200px 900px; /* <--- Aumentamos el padding superior de 140px a 180px (o 200px si lo quieres más abajo) */
  color: #0f172a;
  position: relative;
  overflow: hidden;
}



/* --- ENCABEZADO DE SOLUCIONES / NOSOTROS ULTRA DINÁMICO --- */
.dynamic-header-fx {
  text-align: center;
  margin-bottom: 50px;
  position: relative;
    padding: 30px 20px 9px;
}

.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); }
}

.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);
}

.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%; }
}

.subtitle-fade {
  max-width: 750px;
  margin: 0 auto;
  color: #475569;
  font-size: 1.02rem;
  line-height: 1.65;
  font-weight: 500;
}

@media (max-width: 768px) {
  .about-us-section {
    padding: 70px 16px 50px !important; /* <--- Reduce drásticamente el espacio superior en celulares */
    margin-top: 0 !important;
  }
}
/* --- SECCIÓN NOSOTROS / PROPUESTA DE VALOR DINÁMICA --- */
.about-us-section {
  background: radial-gradient(circle at bottom left, #e0f2fe 0%, #f8fafc 45%, #e2e8f0 100%);
  padding: 140px 20px 90px;
  color: #0f172a;
  position: relative;
  overflow: hidden;
}

.about-container {
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Halo de luz interactivo para las tarjetas */
.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;
}

.pillar-card:hover .product-glow,
.process-step:hover .product-glow,
.about-story-card:hover .product-glow {
  opacity: 1;
}

/* Cuadrícula de Pilares / Tarjetas */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 30px;
}

.pillar-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 35px 30px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.45s cubic-bezier(0.165, 0.84, 0.44, 1), box-shadow 0.45s ease;
}

.pillar-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 25px 50px rgba(0, 119, 182, 0.22);
}

.pillar-icon-box {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #0a1418, #1e293b);
  color: #00ff88;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.2);
  transition: background 0.3s ease, color 0.3s ease;
}

.pillar-card:hover .pillar-icon-box {
  background: linear-gradient(135deg, #0077b6, #00ff88);
  color: #0a1418;
}

.pillar-card h3 {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 12px;
}

.pillar-card p {
  color: #475569;
  font-size: 0.94rem;
  line-height: 1.7;
}

/* Tarjeta Central de Metodología / Historia */
.about-story-card {
  background: #ffffff;
  border-radius: 24px;
  padding: 45px 35px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  position: relative;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.story-tag {
  display: inline-block;
  background: rgba(0, 119, 182, 0.1);
  color: #0077b6;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 15px;
}

/* Cuadrícula de Pasos de Trabajo (Metodología) */
.process-steps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 25px;
  margin-top: 25px;
}

.process-step {
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(203, 213, 225, 0.7);
  border-radius: 18px;
  padding: 25px 20px;
  position: relative;
  overflow: hidden;
  transition: all 0.35s ease;
  display: flex;
  flex-direction: column;
}

.process-step:hover {
  background: #ffffff;
  border-color: #0077b6;
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0, 119, 182, 0.12);
}

.step-number {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(135deg, #0056b3, #00ff88);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 10px;
  line-height: 1;
}

.process-step h4 {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 8px;
}

.process-step p {
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.6;
  margin: 0;
}








/* --- 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;
}