:root {
  --swiper-navigation-color: white;
}

.timeline {
  background-color: transparent;
  color: #ffffff;
  border: 1px none red;
  position: relative;
}
.timeline__container {
  max-width: 100vw;
  margin: 0 auto;
  padding: 0;
  position: relative;
}
.timeline__title {
  font-size: 2.5rem;
  text-align: center;
  letter-spacing: 3px;
  margin-bottom: 6rem;
  font-family: "Montserrat", sans-serif;
  font-optical-sizing: auto;
  font-weight: bold;
  font-style: normal;
}
.timeline__line {
  position: absolute;
  top: 9rem;
  left: 0; /*4%;*/
  width: 100%;
  height: 2px;
  /* color parecido al oro */
  background-color: #a0885e; 
  /*background-color: #ffffff;*/
  z-index: 1;
}
.timeline__progress {
  height: 2px;
  background-color: #ffffff;
  width: 0%;
  transition: width 0.4s ease-in-out;
  z-index: 2;
}
/*.timeline__progress:nth-child(1) {
  background-color: transparent;
}*/
.timeline__item {
  text-align: left;
  border: 1px none red;
}
.timeline__item:hover {
    cursor: pointer;
}
.timeline__item:hover .timeline__image {
  color: #a0885e;
  /*background-color: #ffffff;*/
}

.timeline__item:hover .timeline__description {
  opacity: 1;
  /* Animar la opacidad para que se vea un cambio suave */
  transition: opacity 1.6s 0.1s ease;
}
.timeline__item::before {
  content: '';
  position: absolute;
  background-color: #ffffff; 
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  top: calc(9rem - .5rem); 
  left: 15%; 
  transform: translateX(-15%);
  z-index: 1;
}
.timeline__image {
    border: 1px none black;
  display: inline-block;
  width: 100px;
  height: 100px;
  margin: 0 auto 7rem auto;
  border-radius: 50%;
  transition: all 0.3s ease;
  color: #ffffff;
}
.timeline__image svg {
  fill: transparent; 
  stroke: white;
}
.timeline__image:hover svg {
  fill: white; 
  stroke: var(--oro);
}
/*.timeline__image:hover {
  animation: timeline-image-pulse-effect 2.4s infinite ease-out forwards;
}*/

.timeline__image img,
.timeline__image svg {
  padding: 5px;
}
.timeline__image:hover img {
  background-color: white;
  border-radius: 90px;
}

@keyframes timeline-image-pulse-effect {
  0% {
    transform: scale(0.85);
    opacity: 0.7;
  }
  70% { /* Ligero overshoot */
    transform: scale(1.0);
    opacity: 0.9;
  }
  80% { /* Llega al 100% del efecto */
    transform: scale(1.0);
    opacity: 1.0;
  }
  100% { /* Mantenerse igual para dar la sensación de pausa */
    transform: scale(1.0);
    opacity: 1.0;
  }
}


/* Nuevo keyframe para el movimiento diagonal del destello */
@keyframes timeline-image-shine-effect {
  0% {
    transform: translate(-100%, -100%) rotate(45deg); /* Inicia fuera de la esquina superior izquierda */
  }
  100% {
    transform: translate(100%, 100%) rotate(45deg); /* Termina fuera de la esquina inferior derecha */
  }
}

/* Nuevo keyframe para el efecto de aparición y desaparición del destello */
@keyframes timeline-image-shine-fade {
  0% { opacity: 0; }
  20% { opacity: 1; } /* Aparece rápidamente */
  80% { opacity: 1; } /* Se mantiene visible un momento */
  100% { opacity: 0; } /* Desaparece */
}


/*.timeline__image:hover {
  color: var(--oro);
}*/
.timeline__year {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  font-family: 'FontBold';
  font-optical-sizing: auto;
  font-style: normal;
  letter-spacing: 3px;
  width: 35%;
  min-width: 80px;
  text-align: center;
}
/*.timeline__description {
  font-size: 1.0rem;
  line-height: 1.4;
  opacity: 0;
  transition: opacity 0.3s ease;
  font-family: 'FontLight';
  text-align: left;
}*/
.timeline__description {
  font-size: 1rem;
  line-height: 1.4;
  font-family: 'FontLight';
  text-align: left;
  padding-left: 6px;
}

.timeline__description p {
  opacity: 0;
  transform: translateY(15px);
  transition: opacity 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2),
              transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1.2);
}
/* Hover → entran */
.timeline__item:hover .timeline__description p {
  opacity: 1;
  transform: translateY(0);
}
/*
.timeline__description p {
    width: 35%;
    margin: 0 auto 15px auto;
    border: 1px none red;
    text-align: left;
}*/

.timeline__navbar {
  position: absolute;
  top: 9rem;
  left: 0;
  z-index: 3;
  width: 100%;
}
.timeline__navbar .swiper-button-next:after,
.timeline__navbar .swiper-button-prev:after {
  /*color: #a0885e;*/
  color: #ffffff;
  font-size: 2rem;
}

.swiper-button-prev, .swiper-rtl .swiper-button-next {
    left: -20px;
    right: auto;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev {
    right: -20px;
    left: auto;
}

.swiper-button-next.swiper-button-disabled, .swiper-button-prev.swiper-button-disabled {
    opacity: 0.0;
    transition: opacity 1.6s 0.1s ease;
}

/* Crear una clase con animación de opacidad en pulso */
/* ... existing code ... */

@keyframes btn-pulse-anim {
  0% {
    transform: scale(0.85); /* Tamaño original */
  }
  50% {
    transform: scale(1.05); /* Ligeramente más grande */
  }
  100% {
    transform: scale(1); /* Vuelve al tamaño original */
  }
}

.btn-pulse-anim {
  animation: btn-pulse-anim 2s infinite alternate; /* 2s duration, infinite loop, alternates direction */
}


.icon-svg-tmln {
    border: 1px none red;
    width: 90px;
    height: 90px;
    margin-left: 0;
    padding: 4px;
    display: inline-block;
    cursor: pointer;
    transform: scale(1.35);
    /*transform: scale(1.5) translate3d(2.5px, 2.5px, 0px);*/
    border-radius: 50%;
}
/*.icon-svg-tmln svg:hover {
    background-color: var(--principal);
    border-radius: 50%;
    overflow: hidden;
    padding: 0;
}*/

.swipe-overlay {
    max-width: 150px;
    height: auto;
  position: absolute;
  top: 50%;   
  left: 50%;
  transform: translate(-50%, -50%);  /* centra la imagen */
  pointer-events: none;  /* opcional: no bloquear clics del contenido debajo */
  border: 1px solid red;
  z-index: 9;
  background: transparent;;
}

/* Swié Hint */
.swipe-hint {
  position: absolute;
  top: 40%;
  left: 50%;
  width: 60px;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 20;
  pointer-events: none;
  animation: swipeSlide 6s ease-in-out forwards;
  display: none;
}

/* Campaneo */
@keyframes swipeAnimation {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(-10deg);
  }
  10% {
    opacity: 1;
  }
  25% {
    transform: translate(-70%, -50%) rotate(10deg);
  }
  50% {
    transform: translate(-30%, -50%) rotate(-10deg);
  }
  75% {
    transform: translate(-70%, -50%) rotate(10deg);
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(0deg);
  }
}

/* Swipe de lado a lado */
@keyframes swipeSlide {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%);
  }
  10% {
    opacity: 1;
    transform: translate(-50%, -50%);
  }
  30% {
    transform: translate(-80%, -50%); /* izquierda */
  }
  50% {
    transform: translate(-20%, -50%); /* derecha */
  }
  70% {
    transform: translate(-80%, -50%); /* otra vez izquierda */
  }
  90% {
    transform: translate(-50%, -50%); /* regresa al centro */
    opacity: 1;
  }
  100% {
    opacity: 0; /* se desvanece */
    transform: translate(-50%, -50%);
  }
}

@media (max-width: 500px) {
  .timeline__line {
    right: 10%;
  }
  .timeline__item::before {
    content: '';
    position: absolute;
    background-color: #ffffff; 
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    top: calc(9rem - .5rem); 
    left: 21%; 
    transform: translateX(-25%);
    z-index: 1;
  }
  .timeline__description {
     padding-left: 12px!important;
  }
}

@media (max-width: 1200px) and (orientation: portrait) {
    .swipe-hint {
        display: block;
    }
    .timeline__navbar {
        display: none;
    }
    .timeline__description {
      padding-left: 10px;
    }
}

@media (max-width: 1365px) and (orientation: landscape) {
    .swipe-hint {
        display: block;
    }
    .timeline__navbar {
        display: none;
    }
}

@media (min-width: 1365.1px) {
    /*.swipe-hint {
        display: none;
        visibility: hidden;
    }*/
    .timeline__navbar {
        display: block;
    }
    .timeline__year {
      text-align: left;
      padding-left: 5px;
    }
}

@media (min-width: 1400px) and (max-width: 1600px) {
  .timeline__item::before {
    left: 13%!important;
  }
}

@media (min-width: 1600.01px) and (max-width: 2600px) {
  .timeline__item::before {
    left: 12%!important;
  }
}

@media (min-width: 2900px) {
  .timeline__item::before {
    left: 12%!important;
  }
}