.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto;
  overflow: hidden;
}

.timeline-wrapper {
  position: relative;
  height: 400px;
}

.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: #b7b7b7;
  z-index: 1;
}

.timeline-carousel {
  display: flex;
  transition: transform 0.5s ease;
  height: 100%;
  position: relative;
  z-index: 2;
  align-items: center;
}

.timeline-item {
  min-width: 200px;
  padding: 0 20px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: center;
  cursor: pointer;
}

.year-circle {
  width: 70px;
  height: 70px;
  background-color: #4d4d4d;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: bold;
  position: relative;
  z-index: 3;
  border: 4px dotted #4d4d4d;
  outline: 2px dotted #4d4d4d;
  outline-offset: 5px;
  border-radius: 50%;
  transition: all 0.3s ease;
}

.year-circle:hover {
  transform: scale(1.05);
}

.year-circle.active {
  background-color: #ff7b00;
  border-color: #ff7b00;
  outline-color: #ff7b00;
}

.connector-line {
  width: 2px;
  background-color: #4d4d4d;
  position: absolute;
  z-index: 2;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.connector-line.active {
  background-color: #ff7b00;
}

.connector-line::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background-color: #4d4d4d;
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.3s ease;
}

.connector-line.active::after {
  background-color: #ff7b00;
}

.connector-line.down::after {
  bottom: -5px;
}

.connector-line.up::after {
  top: -5px;
}

.content-box {
  width: 180px;
  padding: 15px;
  position: absolute;
}

.content-box.top {
  bottom: calc(58% + 40px);
}

.content-box.bottom {
  top: calc(58% + 40px);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: #333;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  z-index: 4;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 18px;
}

.nav-button.prev {
  left: 10px;
}

.nav-button.next {
  right: 10px;
}

.nav-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

#contenidolinea {
  margin-top: 30px;
  padding: 20px;

  background-color: white;
  min-height: 200px;
  display: none;
}

@media (max-width: 768px) {
  .timeline-item {
    min-width: 160px;
  }

  .content-box {
    width: 140px;
    padding: 10px;
    font-size: 14px;
  }
}

/* galeria */
.carousel-thumbnails-wrapper {
  position: relative;
  max-width: 400px;
  margin: auto;
  overflow: hidden;
}

.carousel-thumbnails {
  display: flex;
  gap: 10px;
  transition: transform 0.3s ease;
  flex-wrap: nowrap;
  margin-top: 10px;
}

.carousel-thumbnails img {
  width: 80px;
  height: 87px;
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 4px;
  transition: border-color 0.3s ease;
  flex-shrink: 0;
}

.carousel-thumbnails img.active-thumb {
  border-color: orange;
}

.thumbs-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid #ccc;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  font-weight: bold;
  font-size: 18px;
  color: #666;
}

.thumbs-arrow:hover {
  background: orange;
  color: white;
  border-color: orange;
}

.thumbs-arrow-left {
  left: 0;
}

.thumbs-arrow-right {
  right: 0;
}

.thumbs-arrow.disabled {
  display: none;
}

/*botones*/

.gallery-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6x;
  margin-top: 20px;
  margin-bottom: 20px;
}

.gallery-thumb {
  width: 120px;
  height: 100px;
  object-fit: contain;
  cursor: pointer;
  border: 2px solid transparent;
  border-radius: 5px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.gallery-thumb:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.gallery-thumb.active-gallery-btn {
  border-color: #ff7b00;
  box-shadow: 0 0 5px #4d4d4ddb;
}

.gallery-container {
  display: none;
}

.gallery-container.active-gallery {
  display: block;
}

/**botones */
.zoom-container {
  position: relative;
  width: 400px;
  height: 540px;
  overflow: hidden;
}

.zoom-target {
  width: 100%;
  height: auto;
  display: block;
}

.zoom-lens {
  position: absolute;
  border: 1px solid #333;
  width: 250px;
  height: 250px;
  overflow: hidden;
  pointer-events: none;
  z-index: 999;
  display: none;
}

.zoom-lens img {
  position: absolute;
  transform-origin: top left;
}

.h8050 {
  height: 80px;
  top: 50%;
}

.h805080 {
  height: 80px;
  top: calc(50% - 80px);
}
