/* Contenedor */
.adaptive-timeline-wrap {
  width: 100%;
  margin-inline: auto;
  padding: 30px 0;
  max-width: 1180px; /* un pelín más ancho para respirar */
  position: relative;
  overflow: hidden; /* para los degradados laterales */
}

/* Degradados laterales (fundido a blanco) */
.adaptive-timeline-wrap::before,
.adaptive-timeline-wrap::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 70px;
  pointer-events: none;
  z-index: 5;
}
.adaptive-timeline-wrap::before {
  left: 0;
  background: linear-gradient(to right, #fff 0%, rgba(255,255,255,0) 100%);
}
.adaptive-timeline-wrap::after {
  right: 0;
  background: linear-gradient(to left, #fff 0%, rgba(255,255,255,0) 100%);
}

/* Wrapper Swiper: timing suave adicional */
.adaptive-timeline .swiper-wrapper {
  transition-timing-function: cubic-bezier(.22,1,.36,1) !important; /* easeOutCubic */
}

/* Slide base: sin fondo, transiciones suaves y largas */
.adaptive-timeline .swiper-slide {
  background: transparent; 
  padding: 20px;
  border-radius: 16px;
  overflow: hidden;
  text-align: center;
  opacity: .35;
  transform: scale(.56);
  filter: blur(2px) saturate(.95);
  transition:
    opacity .9s cubic-bezier(.22,1,.36,1),
    transform .9s cubic-bezier(.22,1,.36,1),
    filter .9s cubic-bezier(.22,1,.36,1),
    box-shadow .9s cubic-bezier(.22,1,.36,1);
  /* box-shadow: 0 10px 24px rgba(0,0,0,.06); */
  will-change: transform, opacity, filter;
}

/* Slide activo: destacado, nítido y un poco más grande */
.adaptive-timeline .swiper-slide.swiper-slide-active {
  opacity: 1;
  transform: scale(1.08);
  filter: none;
  padding: 20px !important;
}

/* Opcional: los vecinos (prev/next) un poco menos borrosos que el resto */
.adaptive-timeline .swiper-slide.swiper-slide-prev,
.adaptive-timeline .swiper-slide.swiper-slide-next {
  opacity: .6;
  transform: scale(.52);
  filter: blur(1px) saturate(.98);
}

/* Imagen */
.adaptive-timeline .ct-item-img {
  aspect-ratio: 3/2;
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  border-radius: 14px;
}

/* Contenido */
.adaptive-timeline .ct-item-content {
  padding: 14px 16px 18px;
}
.adaptive-timeline .ct-year {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 2.125rem;
  color: #DDDFE0;
  margin: 10px 0 16px;
  transition: all .3s ease;
}
.adaptive-timeline .ct-desc {
  font-size: 16px;
  font-weight: 400;
  line-height: 22.4px;
  color: #1b1b1b;
  margin: 0;
}

.adaptive-timeline .swiper-slide.swiper-slide-active .ct-year{
  color: #fc5220; /* un poco más oscuro */
}

/* Controles */
.adaptive-timeline .swiper-button-next,
.adaptive-timeline .swiper-button-prev {
  color: #111827;
  transition: opacity .3s ease;
  z-index: 100; /* por encima del degradado */
}
.adaptive-timeline .swiper-button-next:hover,
.adaptive-timeline .swiper-button-prev:hover {
  opacity: .8;
}

/* Paginación (si la activas) */
.adaptive-timeline .swiper-pagination-bullet {
  background: #9ca3af;
  opacity: .6;
}
.adaptive-timeline .swiper-pagination-bullet-active {
  background: #111827;
  opacity: 1;
}

/* Respeto a usuarios con reducción de movimiento */
@media (prefers-reduced-motion: reduce) {
  .adaptive-timeline .swiper-slide,
  .adaptive-timeline .swiper-wrapper {
    transition: none !important;
  }
}

/* ===== Índice de años estilo “línea” con puntos hexagonales ===== */
.adaptive-timeline-years {
  position: relative;
  margin: 0 auto 16px;
  max-width: 1180px;
  padding: 18px 0 10px;   /* espacio para la línea y los puntos */
  overflow: visible;
}

/* Línea base */
.adaptive-timeline-years::before {
  content: "";
  position: absolute;
  left: 0; right: 0;
  top: 55px;                 /* altura de la línea */
  height: 2px;
  background: #9aa1a9;       /* gris suave */
  z-index: 0;
}

/* Cada slide del índice ocupa lo justo */
.adaptive-timeline-years .swiper-slide {
  width: auto;
}

/* Botón de año: sin borde, centrado sobre la línea */
.adaptive-timeline-years .ati-year {
  position: relative;
  background: none;
  border: 0;
  padding: 0 26px;
  height: 86px;              /* alto para colocar punto y etiqueta */
  cursor: pointer;
  z-index: 1;                /* por encima de la línea */
}

.adaptive-timeline-years .ati-year:hover,
.adaptive-timeline-years .ati-year:active,
.adaptive-timeline-years .ati-year:focus{
  background-color: transparent;
}

/* Punto hexagonal sobre la línea (clip-path) */
.adaptive-timeline-years .ati-year::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 28px;
    transform: translateX(-50%);
    width: 17px;
    background-color: white;
    height: 20px;
    background-image: url('./icon.svg');
    background-size: contain;
    transition: transform .4s ease, filter .4s ease, opacity .4s ease;
    filter: grayscale(1);
}

/* Etiqueta del año, centrada y en diagonal hacia arriba */
.adaptive-timeline-years .ati-label {
  position: absolute;
  left: 50%;
  bottom: 63px;              /* separada del punto */
  transform: translateX(-50%) rotate(0deg); /* diagonal hacia arriba */
  transform-origin: 50% 100%;
  font-weight: 700;
  font-size: .95rem;
  color: #6b7280;            /* gris medio */
  white-space: nowrap;
  letter-spacing: .02em;
  transition: color .3s ease, transform .3s ease;
}

/* Estado activo: punto más grande y año destacado */
.adaptive-timeline-years .ati-year.active::after {
  transform: translateX(-50%) scale(1.25);
  filter: saturate(1.1);
  filter: grayscale(0);
}
.adaptive-timeline-years .ati-year.active .ati-label {
  color: #f04f24;            /* naranja activo */
  transform: translateX(-50%) rotate(0deg) translateY(-8px);
}

/* Hover (opcional) */
.adaptive-timeline-years .ati-year:hover .ati-label {
  color: #111827;
}

/* Ajustes responsivos sutiles */
@media (max-width: 640px) {
  .adaptive-timeline-years::before { top: 32px; }
  .adaptive-timeline-years .ati-label { bottom: 34px; font-size: .9rem; }
  .adaptive-timeline-years .ati-year::after { width: 15px; height: 18px; top: 6px; }
  .adaptive-timeline-wrap::before,
  .adaptive-timeline-wrap::after { display: none; }
}