.proyectos {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.proyectos h2 {
   width: auto;
    font-family: var(--letra-texto);
    color: var(--blanco);
    text-align: center;
    font-size: clamp(1.6rem, 2vw, 2rem);
    margin-bottom: 20px;
    padding: 0 20px;
    border-bottom: 4px solid var(--rosa);
}

.proyectos p {
  width: 80%;
  line-height: 1.9;
  text-align: center;
  margin-bottom: 20px;
  color: var(--blanco);
  margin-top: 40px;
  font-family: var(--letra-texto);
  font-size: clamp(1.05rem, 1vw, 1.25rem);
  line-height: 1.6;
}

.proyectos h4 {
  width: 80%;
  text-align: center;
  font-size: 30px;
  margin-bottom: 0;
  color: var(--blanco);
  font-family: var(--letra-titulos);
  
}

.proyectos .tiempo-carga {
  width: 80%;
  text-align: center;
  font-size: 18px;
  margin-top: 10px;
  color: var(--blanco);
  font-family: var(--letra-titulos);
  font-size: 16px;
  margin-bottom: 30px;
}

.loading-bar {
  min-width: 200px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  justify-content: center;
  align-items: flex-end;
  border: 2px solid #3498db;
  border-radius: 20px;
  padding: 8px 20px;
}

.bar {
  width: 20px;
  height: 40px;
  background-color: white;
  border-radius: 3px;
  transform: skewX(-10deg);
  animation: carga 0.5s forwards;  
}

/* La animacióm cambia el fndo de blanco a azul */
@keyframes carga {
 from {background-color: white;}
 to {background-color: var(--azul);}
}

@keyframes parpadeo{
    0%, 40%, 60%, 100% {background-color: white;}
    50%, 55% {background-color: var(--azul);}
}

/* Damos tiempos diferentes de comienzo a cada bar */
.bar:nth-child(1) {
  animation-delay: 0s;
}
.bar:nth-child(2) {
  animation-delay: 0.5s;
}
.bar:nth-child(3) {         
  animation-delay: 1s;
}
.bar:nth-child(4) {         
  animation-delay: 1.5s;
}
.bar:nth-child(5) {         
  animation-delay: 2s;
}
.bar:nth-child(6) {         
  animation-delay: 2.5s;
}
.bar:nth-child(7) {         
  animation-delay: 3s;
}
.bar:nth-child(8) {         
  background-color: white;
  animation: parpadeo 2s infinite;
  animation-delay: 3.5s;
}
.bar:nth-child(9),
.bar:nth-child(10) {
  animation: none;       
  background-color: white; 
}



