/* ==== SECCIÓN GENERAL ==== */
.timeline-banner {
  position: relative;
  background: transparent;
  color: #fff;
  padding: 40px 0 50px;
  overflow-x: hidden;
}

/* ==== CABECERA (título + subtítulo) ==== */
.timeline-header {
  width: 85%;
  max-width: 1200px;
  margin: 0 auto 40px auto;
  text-align: left;
  position: relative;
  left: -3%;
}

/* ==== TÍTULO ==== */
.timeline-title {
  color: #EFBB16;
  font-weight: 600 ;
  font-size: 18px;
  margin-bottom: 6px;
  display: inline-block;
  line-height: 1.2;
  position: relative;
}

.timeline-title::after {
  content: "";
  display: inline-block;
  vertical-align: middle;
  margin-left: 12px;
  width: 70px;
  height: 3px;
  background-color: #EFBB16;
  border-radius: 2px;
  transform: translateY(-1px);
}

/* ==== SUBTÍTULO ==== */
.timeline-subtitle {
  color: #ccccb1;
  font-size: 1rem;
  line-height: 1.4;
  margin: 0;
  text-align: left;
  padding-left: 0;
}

/* ==== LÍNEA PRINCIPAL ==== */
.timeline-line {
  position: absolute;
  top: 58%;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(
    90deg,
    rgba(239, 187, 22, 0) 0%,
    rgba(239, 187, 22, 0.9) 10%,
    #EFBB16 50%,
    rgba(239, 187, 22, 0.9) 90%,
    rgba(239, 187, 22, 0) 100%
  );
  opacity: 0.9;
  z-index: 0;
}

/* ==== CONTENEDOR DE ITEMS ==== */
.timeline-items {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: nowrap;
  gap: 100px;
  overflow: visible;
  position: relative;
  z-index: 2;
  width: 90%;
  margin: 0 auto;
  padding: 0;
}

/* ==== ITEM ==== */
.timeline-item {
  position: relative;
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  text-align: center;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: translateY(-5px);
}

/* ==== AÑO ==== */
.timeline-item .year {
  background: #EFBB16;
  color: #072A3F;
  font-weight: 700;
  border-radius: 25px;
  padding: 8px 20px;
  margin-bottom: 10px;
  display: inline-block;
  box-shadow: 0 0 10px rgba(239, 187, 22, 0.3);
  z-index: 3;
  position: relative;
}

/* ==== ICONO ==== */
.timeline-item i {
  display: block;
  font-size: 1.6rem;
  color: #EFBB16;
  margin-top: 15px;
  margin-bottom: 14px;
  position: relative;
  top: 18px;
}

/* ==== TEXTO ==== */
.timeline-item p {
  margin-top: 20px;
  color: #ccccb1;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 180px;
  margin-left: auto;
  margin-right: auto;
}

/* ==== RESPONSIVE ==== */
@media (max-width: 992px) {
  .timeline-items {
    flex-wrap: wrap;
    justify-content: center;
    gap: 60px;
  }

  .timeline-line {
    top: 56%;
    width: 80%;
  }
}

/* ==== VERSIÓN MÓVIL (simple, sin alternancia) ==== */
@media (max-width: 768px) {
  .timeline-header {
    text-align: center;
    left: 0;
  }

  .timeline-title,
  .timeline-subtitle {
    text-align: center;
  }

  /* Línea vertical centrada y bien posicionada */
  .timeline-line {
    position: absolute;
    left: 50%;
    top: 190px; /* 🔧 ajusta para que empiece justo debajo del subtítulo */
    transform: translateX(-50%);
    width: 3px;
    height: calc(100% - 210px); /* 🔧 evita que se pase al final */
    background: linear-gradient(
      180deg,
      rgba(239, 187, 22, 0) 0%,
      rgba(239, 187, 22, 0.9) 10%,
      #EFBB16 50%,
      rgba(239, 187, 22, 0.9) 90%,
      rgba(239, 187, 22, 0) 100%
    );
    z-index: 0;
  }

  /* Apilar verticalmente los elementos */
  .timeline-items {
    flex-direction: column;
    align-items: center;
    gap: 100px;
  }

  .timeline-item {
    max-width: 260px;
    text-align: center;
  }

  .timeline-item .year {
    margin-bottom: 20px;
  }

.timeline-item i {
  margin-top: 0px;   /* 🔧 antes 25px — reduce espacio entre año e icono */
  margin-bottom: 14px; /* 🔧 más compacto también debajo del icono */
  top: 0;
}

  .timeline-item p {
    font-size: 1rem;
    line-height: 1.6;
  }

}
