
body {
  font-family: 'Crete Round', serif;
  background: white;
  margin: 0;
  padding: 2rem;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: auto;
  padding: 4rem 1rem;
}

.path {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 200px;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.path path {
  stroke: #007bff;
  stroke-width: 6;
  fill: none;
  filter: drop-shadow(0 0 5px rgba(0, 123, 255, 0.4));
}
.path circle {
  fill: white;
  stroke: #007bff;
  stroke-width: 3;
}

.timeline-grid {
  position: relative;
  z-index: 1;
}

.timeline-row {
  position: relative;
  margin-bottom: 0.01rem;
}

.step {
  background: #d8d8d8;
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  width: 340px;
  cursor: pointer;
  transition: transform 0.3s ease;
  text-align: center;
  font-size: 1.20rem;
  font-weight: 500;
}

.step.left {
  margin-right: auto;
}

.step.right {
  margin-left: auto;
}

.imagen {
  width: 120px;
  height: 120px;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  object-fit: contain;
}

.step-content {
  display: none;
  background: white;
  padding: 0.8rem;
  margin-top: 0.6rem;
  border-radius: 8px;
}

.step1 { border-left: 6px solid #a0d1b3; 
  background-color: #c3decd;
}
.step2 { border-left: 6px solid #7a5092; 
  background-color: #e3d1ed;
}
.step3 { border-left: 6px solid #2a92cf;
  background-color: #c2e4ef; 
}
.step4 { border-left: 6px solid #b67de0; }

.step.active .step-content {
  display: block;
}

.gallery {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}
.gallery img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 6px;
  cursor: pointer;
}

/* MODAL */
.modal {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.9);
}
.modal-content {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  max-width: 90%;
  max-height: 90%;
}
.close {
  position: absolute;
  top: 20px; right: 30px;
  font-size: 35px;
  color: #d8d8d8;
  cursor: pointer;
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2rem;
  color: #d8d8d8;
  cursor: pointer;
  padding: 1rem;
}
.prev { left: 0; }
.next { right: 0; }

/* Responsive */
@media (max-width: 768px) {
  .step {
    width: 90%;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .path {
    display: none;
  }
  .timeline-row {
    margin-bottom: 2rem;
  }
  .gallery img {
    width: 90px;
    height: 90px;
  }
}
