/* =====================================================
   Fondos estándar para secciones - Tecknia Landing Page
   Estilos reutilizables para fondos de secciones
====================================================== */

/* Fondo estándar para secciones con estilo tecnológico */
.tech-bg-section {
  position: relative;
  padding: 6rem 2rem;
  background-color: rgb(1 27 55 / 56%);
  overflow: hidden;
}

/* Líneas tecnológicas animadas para el fondo */
.tech-bg-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(0deg, 
    transparent 0%, 
    rgba(22, 152, 176, 0.03) 50%, 
    transparent 100%
  );
  z-index: 0;
}

/* Líneas de fondo tecnológicas */
.tech-bg-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  opacity: 0.05;
  z-index: 0;
}

.tech-line {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, #1698b0, transparent);
  width: 100%;
  animation: techLine 8s linear infinite;
}

.tech-line:nth-child(1) { top: 15%; animation-delay: 0s; }
.tech-line:nth-child(2) { top: 35%; animation-delay: 2s; }
.tech-line:nth-child(3) { top: 55%; animation-delay: 4s; }
.tech-line:nth-child(4) { top: 75%; animation-delay: 6s; }
.tech-line:nth-child(5) { top: 95%; animation-delay: 8s; }

/* Puntos de conexión tecnológicos */
.tech-dots {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  opacity: 0.1;
  z-index: 0;
}

.tech-dot {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background-color: #1698b0;
  box-shadow: 0 0 10px rgba(22, 152, 176, 0.8);
}

/* Animación para las líneas tecnológicas */
@keyframes techLine {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Aseguramos que el contenido esté por encima del fondo */
.tech-bg-section > * {
  position: relative;
  z-index: 1;
}

/* Variante con fondo más oscuro */
.tech-bg-section.dark {
  background-color: rgb(1 20 40 / 80%);
}

/* Variante con fondo más claro */
.tech-bg-section.light {
  background-color: rgb(1 27 55 / 40%);
}

/* Responsive */
@media (max-width: 768px) {
  .tech-bg-section {
    padding: 4rem 1.5rem;
  }
}
