* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  background: #FFFFFF;
  margin: 0;
}

h1 {
  margin-bottom: 40px;
}

/* ===== TIMELINE ===== */
.timeline-wrapper {
  display: flex;
  align-items: center;
  gap: 10px;
	padding: 5px;
	background-color: #EDEDEE;
	border-radius: 25px;

}

.timeline-container {
  overflow-x: auto;
  scroll-behavior: smooth;

  /* ocultar scrollbar */
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE / Edge */
}

.timeline-container::-webkit-scrollbar {
  display: none;                /* Chrome / Safari */
}


.timeline {
  display: flex;
  align-items: center;
  gap: 80px;
  min-width: 900px;
  padding: 60px 40px;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  height: 4px;
  background: #056F28;
  top: 50%;
  transform: translateY(-50%);
	width: 160%;
  /* clave de la corrección */
  left: 32px;    /* mitad del círculo (64px / 2) */
  right: 32px;   /* mitad del círculo */
}



/* ===== EVENTO ===== */
.event {
  position: relative;
}

.year {
  width: 64px;
  height: 64px;
  background: white;
  border: 4px solid #3498db;
  color: #9ECCEB;
  font-weight: bold;
  font-size: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: all 0.3s ease;
}

.event.active .year {
  background: #91C7EB;
  color: white;
  transform: scale(1.1);
}

/* ===== BOTONES ===== */
.nav-btn {
  background: #BBBFC3;
  color: white;
  border: none;
  font-size: 18px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  cursor: pointer;
}

/* ===== POPUP ===== */
#popup-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1000;
}

.popup {
  position: absolute;
  background: white;
  padding: 16px;
  width: 260px;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  transform: translateY(10px) scale(0.95);
  transition: all 0.25s ease;
  pointer-events: auto;
}

.popup.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.popup img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  cursor: zoom-in;
}

.popup h3 {
  margin: 10px 0 6px;
  color: #3498db;
}

.popup p {
  margin: 0;
  font-size: 14px;
  color: #444;
}

/* ===== LIGHTBOX ===== */
.image-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.image-lightbox.show {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
  animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
  from { transform: scale(0.8); }
  to { transform: scale(1); }
}

.image-lightbox::after {
  content: "✕";
  position: fixed;
  top: 20px;
  right: 25px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .timeline {
    gap: 60px;
    padding: 50px 20px;
  }
	


  .nav-btn {
    display: flex;
  }
	
}
