
.timeline {/*contenedor principal*/
  position: relative;
  margin: 5% 5% 10% 5%;
}
.timeline-item {/*contenedor del articulo*/
  position: relative;
  width: 40%;
  box-sizing: border-box;
  margin: 0 5% -100px 5%;
}
.timeline-line {/*linea central*/
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 5px;
  height: 100%;
  background: var(--header-tittle);
  z-index: 0;
}
.timeline-item:nth-child(odd) {/*acomodar derecha*/
  left: 0;
  text-align: right;
}
.timeline-item:nth-child(even) {/*acomodar izquierda*/
  left: 50%;
}
.timeline-content {/*contenido del articulo*/
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  padding: 1.5rem;
  transition: transform 0.4s, box-shadow 0.4s;
  overflow: hidden;
  z-index: 2;
}
.timeline-content img { /*imagen*/
  width: 95%;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
  transition: transform 0.5s ease, box-shadow 0.5s ease;
}
.timeline-content h3 {
  font-family: 'Great Vibes', cursive;
  font-size: 3.5rem;
  color: #3b2f2f;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
  margin: 1% 0;
}
.timeline-item::before {/*puntos de la linea*/
  content: "";
  position: absolute;
  top: 50%;/*posicion del circulo linea*/
  right: -13%;
  width: 20px;
  height: 5px;
  background: var(--header-tittle);
  border-radius: 10%;
  z-index: 1;
}
.timeline-item:nth-child(even)::before {/*puntos de la linea(derecha)*/
  left: -13%;
  right: auto;
}
.timeline-item {/*Animación scroll*/
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.7s ease;
}
.timeline-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.lightbox-overlay {/*click imagen ampliada*/
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  cursor: pointer;
}
.lightbox-overlay img {/*click imagen ampliada*/
  width: 70%;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.7);
  transition: transform 0.3s;
  cursor: grab;
  user-select: none;
}
.lightbox-close {
  position: absolute;
  top: 25px;
  right: 35px;
  font-size: 2rem;
  color: white;
  background: rgba(0,0,0,0.5);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s;
}

.lightbox-close:hover {
  background: rgba(255,255,255,0.2);
}