
.seccion-nosotros {
  position: relative; /* Esto es CLAVE */
  min-height: 100vh; /* Ajusta según necesites */
   /* Opcional: contiene los elementos absolutos */
}

.seccion-servicios{
    position: relative; /* Esto es CLAVE */
    min-height: 100vh; /* Ajusta según necesites */
   /* Opcional: contiene los elementos absolutos */
}
.seccion-empresas{
    position: relative; /* Esto es CLAVE */
    min-height: 100vh; /* Ajusta según necesites */
   /* Opcional: contiene los elementos absolutos */
}
.seccion-turnos{
    position: relative; /* Esto es CLAVE */
    min-height: 100vh; /* Ajusta según necesites */
   /* Opcional: contiene los elementos absolutos */
}

/* Contenedor decorativo - ajustado */
.decorative-container {
  position: absolute; /* Se posiciona respecto a .seccion-nosotros */
  overflow: hidden;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0; /* Detrás del contenido */
}

/* El contenido debe tener z-index mayor */
.contenido-nosotros {
    position: relative;
    z-index: 1; /* Importante: coloca el contenido sobre las decoraciones */
}

/* Estilos base para todas las barras decorativas */
.decorative-bar {
    position: absolute;
    background: linear-gradient(90deg, rgba(255, 254, 253, 0.692), rgb(255, 166, 0));
    opacity: 0.7;
    will-change: opacity; /* Optimización para animaciones */
}

/* Barra horizontal superior */
.horizontal-bar {
  top: -10%;
  left: 0%;
  width: 110%;
  height: 10rem;
  transform: rotate(10deg);
  background: linear-gradient(to left, rgba(255, 123, 0, 0.589), rgba(29, 29, 29, 0));
}

/* Barra vertical derecha */
.vertical-bar {
  top: 0%;
  right: 0%;
  width: 10rem;
  height: 100%;
  background: linear-gradient(to bottom, rgba(250, 123, 5, 0.733), rgba(252, 189, 54, 0));
}

/* Barra diagonal a 45° */
.diagonal-bar {
  bottom: 30%;
  left: -10%;
  width: 150%;
  height: 20rem;
  transform: rotate(10deg);
  transform-origin: left center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0),  rgba(247, 115, 7, 0.842));
}

/* Efecto de brillo - se activará con JavaScript */
.decorative-bar.glow-effect {
  animation: subtleGlow 3s infinite alternate;
}

@keyframes subtleGlow {
  0% {
    opacity: 0.5;
    box-shadow: 0 0 20px rgba(255,165,0,0);
  }
  100% {
    opacity: 0.9;
    box-shadow: 0 0 10px rgb(252, 202, 111);
  }
}

/* Media Queries para responsividad */
@media (max-width: 1024px) {
  .horizontal-bar {
    width: 110%;
    top: 0%;
  }
  
  .vertical-bar {
    height: 100%;
  }
}

@media (max-width: 768px) {
  .horizontal-bar {
    width: 100%;
    top: 0%;
  }
  
  .vertical-bar {
    right: 5%;
    height: 20%;
  }
  
  .diagonal-bar {
    left: 10%;
    width: 100%;
  }
}

@media (max-width: 480px) {
  .decorative-bar {
    opacity: 0.5; /* Reducir opacidad en móviles para mejor legibilidad */
  }
  
  .horizontal-bar {
    left: -5%;
    width: 200%;
    height: 20rem;
    top: 0%;
  }
  
  .vertical-bar {
    top: 0;
    width: 5rem;
    height: 100%;
  }
   .diagonal-bar {
    left: -10%;
    width: 200%;
    height: 20rem;
    overflow: hidden;
  }
}