
/* Nosotros */
.text-nosotros {
  padding: 2rem 4rem;
}

.text-nosotros p {
  color: var(--azul);
  font-size: 1.5rem;
  line-height: 1.5;
  margin-bottom: 2rem;
}

.image-nosotros {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0rem 4rem;
}

.image-nosotros img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 8px 8px 12px rgba(0, 0, 0, 0.2);
}

#nuestra-historia {
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
#nuestra-historia{
  width: 100%;
  background: linear-gradient(135deg, var(--azul-claro) 0%, var(--verde) 100%);
}
#nuestra-historia h2 {
  color: var(--azul);
  font-size: 3em;
  line-height: 1;
  font-weight: 900;
  margin: 1rem;
  text-align: center;
}
.timeline {
  position: relative;
  /* padding: 50px 0; */
}

.timeline::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.2) 100%);
  transform: translateY(-50%);
}

.timeline-items {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.timeline-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  animation: fadeInUp 0.8s ease backwards;
}

.timeline-item:nth-child(even) {
  flex-direction: column-reverse;
}

.timeline-item:nth-child(1) {
  animation-delay: 0.1s;
}

.timeline-item:nth-child(2) {
  animation-delay: 0.2s;
}

.timeline-item:nth-child(3) {
  animation-delay: 0.3s;
}

.timeline-item:nth-child(4) {
  animation-delay: 0.4s;
}

.timeline-item:nth-child(5) {
  animation-delay: 0.5s;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  background: white;
  border-radius: 50%;
  position: relative;
  z-index: 2;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.3),
    0 0 20px rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
  cursor: pointer;
}

.timeline-dot::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: white;
  animation: pulse 2s infinite;
}

.timeline-item:hover .timeline-dot {
  transform: scale(1.3);
  box-shadow: 0 0 0 8px rgba(255, 255, 255, 0.3),
    0 0 30px rgba(255, 255, 255, 0.8);
}

.timeline-content {
  margin-top: 30px;
  text-align: center;
  background: rgba(255, 255, 255, 0.95);
  padding: 20px 25px;
  border-radius: 12px;
  min-width: 120px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  position: relative;
}

.timeline-item:nth-child(even) .timeline-content {
  margin-top: 0;
  margin-bottom: 30px;
}

.timeline-content::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 30px;
  background: rgba(255, 255, 255, 0.8);
  transform: translateX(-50%);
}

.timeline-item:nth-child(odd) .timeline-content::before {
  top: -30px;
}

.timeline-item:nth-child(even) .timeline-content::before {
  bottom: -30px;
}

.timeline-item:hover .timeline-content {
  transform: translateY(-10px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.timeline-year {
  font-size: 2rem;
  font-weight: bold;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 8px;
}

.timeline-label {
  font-size: 0.9rem;
  color: #666;
  font-weight: 500;
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 1;
  }

  50% {
    transform: scale(1.5);
    opacity: 0;
  }
}

@media (max-width: 768px) {
  .timeline-title {
    font-size: 1.8rem;
    margin-bottom: 40px;
  }

  .timeline {
    padding: 30px 0;
  }

  .timeline::before {
    display: none;
  }

  .timeline-items {
    flex-direction: column;
    gap: 30px;
  }

  .timeline-item::before {
    content: '';
    position: absolute;
    left: 12px;
    top: 24px;
    bottom: -30px;
    width: 2px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.2) 100%);
  }

  .timeline-item:last-child::before {
    display: none;
  }

  .timeline-item {
    flex-direction: row;
    justify-content: flex-start;
    gap: 20px;
  }

  .timeline-content {
    margin-top: 0;
    min-width: auto;
    flex: 1;
  }

  .timeline-year {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .timeline-title {
    font-size: 1.5rem;
  }

  .timeline-year {
    font-size: 1.3rem;
  }

  .timeline-content {
    padding: 15px 20px;
  }
}

#nuestras-certificaciones {
  padding: 4rem 2rem;
}
#nuestras-certificaciones h2 {
  color: var(--azul);
  font-size: 3em;
  line-height: 1;
  font-weight: 900;
  margin: 1rem;
  text-align: center;
}
.nuestras-certificaciones img {
  width: 100%;
  max-height: 150px;
  object-fit: contain;
  margin: 2rem;
}
