/* ===== Timeline general ===== */
.cs-timeline {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2933;
}

/* ===== Fila de años ===== */
.cs-timeline-years {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 30px;
}

.cs-timeline-year {
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 500;
  color: rgba(0,0,0,0.35);
  cursor: pointer;
  padding: 4px 0;
  position: relative;
  transition: all 0.2s ease;
}

.cs-timeline-year::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -8px;
  width: 0;
  height: 3px;
  background: #31a837;
  transform: translateX(-50%);
  transition: width 0.2s ease;
}

.cs-timeline-year.is-active {
  color: #31a837;
  font-weight: 700;
}

.cs-timeline-year.is-active::after {
  width: 24px;
}

/* ===== Wrapper tarjetas ===== */
.cs-timeline-cards-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
}

/* ===== Flechas ===== */
.cs-timeline-arrow {
  background: #ffffff;
  border-radius: 999px;
  border: 1px solid rgba(0,0,0,0.08);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #31a837;
  font-size: 20px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.08);
}

.cs-timeline-arrow:hover {
  background: #31a837;
  color: #ffffff;
}

/* ===== Carrusel ===== */
.cs-timeline-slider {
  flex: 1;
}

.cs-timeline-slider .swiper-wrapper {
  align-items: stretch;
}

.cs-timeline-slider .swiper-slide {
  height: auto;
  display: flex;
}

/* ===== Tarjeta ===== */
.cs-timeline-card {
  background: #ffffff;
  border-radius: 24px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.08);
  padding: 0 24px 32px;
  display: flex;
  flex-direction: column;
  width: 100%;
}

.cs-timeline-card-header {
  display: flex;
  justify-content: center;
}

.cs-timeline-pill {
  background: #31a837;
  color: #ffffff;
  font-weight: 700;
  font-size: 20px;
  padding: 10px 40px;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  margin-bottom: 24px;
}

.cs-timeline-card-body {
  flex: 1;
}

.cs-timeline-icon {
  text-align: center;
  margin-bottom: 16px;
  opacity: 0.2;
}

.cs-timeline-icon img {
  max-height: 60px;
  width: auto;
}

.cs-timeline-title {
  font-size: 16px;
  font-weight: 700;
  color: #31a837;
  margin-bottom: 12px;
}

.cs-timeline-content {
  font-size: 14px;
  line-height: 1.6;
}

.cs-timeline-content ul {
  padding-left: 18px;
}

.cs-timeline-content li {
  margin-bottom: 6px;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .cs-timeline-cards-wrapper {
    gap: 8px;
  }
}

@media (max-width: 768px) {
  .cs-timeline-arrow {
    display: none;
  }
  .cs-timeline-card {
    border-radius: 20px;
    padding: 0 20px 24px;
  }
}
