* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  background: #f6f9fc;
  font-family: "Open Sans", sans-serif;
  color: #525f7f;
}

h2 {
  margin: 5%;
  text-align: center;
  font-size: 4rem;
  font-weight: 100;
}

h1 {
  margin: 4%;
  text-align: center;
  font-size: 2rem;
  font-weight: 10;
  top: 0;
}

.timeline {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  position: relative;
}

.timeline__event {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center; 
  margin: 20px 0;
  border-radius: 6px;
  align-self: center;
  width: 90%; 
  max-width: 800px; 
}

.timeline__event:nth-child(2n+1) {
  flex-direction: row-reverse;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
  border-radius: 0 6px 6px 0;
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
  border-radius: 6px 0 0 6px;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #f6a4ec;
  position: absolute;
  top: 0%;
  left: 50%;
  right: auto;
  z-index: -1;
  transform: translateX(-50%);
  animation: fillTop 2s forwards 4s ease-in-out;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #f6a4ec;
  position: absolute;
  right: 0;
  z-index: -1;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  animation: fillLeft 2s forwards 4s ease-in-out;
}

.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: #9251ac;
  letter-spacing: 1.5px;
}

.timeline__event__content {
  flex: 1 1 0%;
  padding: 20px;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
              0 18px 36px -18px rgba(0, 0, 0, 0.3),
              0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  background: #fff;
  border-radius: 0 6px 6px 0;
  box-sizing: border-box;
}

.timeline__event__date {
  flex: 0 0 150px; 
  align-self: stretch; 
  display: flex;
  align-items: center; 
  justify-content: center;
  padding: 0; 
  background: #9251ac;
  border-radius: 6px 6px;
  box-sizing: border-box;
}

.timeline__event__date img {
  width: 100%;
  height: 100%;
  object-fit: cover; 
  border-radius: 6px 6px;
  cursor: pointer; /* Añadido para indicar que la imagen es clicable */
}

.timeline__event__icon {
  flex: 0 0 auto; 
  display: flex;
  align-items: center; 
  justify-content: center; 
  background: #f6a4ec;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 0 10px;
  position: relative;
  color: #9251ac;
  box-shadow: 0 30px 60px -12px rgba(50, 50, 93, 0.25),
              0 18px 36px -18px rgba(0, 0, 0, 0.3),
              0 -12px 36px -8px rgba(0, 0, 0, 0.025);
  box-sizing: border-box;
  text-align: center;
}

.timeline__event__icon h3 {
  margin: 0;
  font-size: 24px;
  color: #ffff;
  text-align: center;
}

.timeline__event__icon i {
  font-size: 32px;
}

.timeline__event__icon:before,
.timeline__event__icon:after {
  content: "";
  position: absolute;
  background: #f6a4ec;
  z-index: -1;
}

.timeline__event__icon:before {
  width: 2px;
  height: 100%;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  animation: fillTop 2s forwards 4s ease-in-out;
}

.timeline__event__icon:after {
  width: 100%;
  height: 2px;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  animation: fillLeftOdd 2s forwards 4s ease-in-out;
}

.timeline__event__description {
  flex-basis: 100%;
}

.timeline__event--type2:after {
  background: #555ac0;
}

.timeline__event--type2 .timeline__event__date {
  color: #87bbfe;
  background: #555ac0;
}

.timeline__event--type2:nth-child(2n+1) .timeline__event__icon:before,
.timeline__event--type2:nth-child(2n+1) .timeline__event__icon:after {
  background: #87bbfe;
}

.timeline__event--type2 .timeline__event__icon {
  background: #87bbfe;
  color: #555ac0;
}

.timeline__event--type2 .timeline__event__icon:before,
.timeline__event--type2 .timeline__event__icon:after {
  background: #87bbfe;
}

.timeline__event--type2 .timeline__event__title {
  color: #555ac0;
}

.timeline__event--type3:after {
  background: #24b47e;
}

.timeline__event--type3 .timeline__event__date {
  color: #aff1b6;
  background-color: #24b47e;
}

.timeline__event--type3:nth-child(2n+1) .timeline__event__icon:before,
.timeline__event--type3:nth-child(2n+1) .timeline__event__icon:after {
  background: #aff1b6;
}

.timeline__event--type3 .timeline__event__icon {
  background: #aff1b6;
  color: #24b47e;
}

.timeline__event--type3 .timeline__event__icon:before,
.timeline__event--type3 .timeline__event__icon:after {
  background: #aff1b6;
}

.timeline__event--type3 .timeline__event__title {
  color: #24b47e;
}

.timeline__event:last-child .timeline__event__icon:before {
  content: none;
}

@media (max-width: 786px) {
  .timeline__event {
    flex-direction: column;
    align-self: center;
    width: 100%;
  }

  .timeline__event__icon,
  .timeline__event__date,
  .timeline__event__content {
    width: 100%;
    margin: 0;
  }

  .timeline__event__icon {
    border-radius: 6px 6px;
    margin-bottom: 10px;
    box-shadow: none;
  }

  .timeline__event__icon:before,
  .timeline__event__icon:after {
    display: none;
  }

  .timeline__event__date {
    border-radius: 0;
    padding: 10px;
  }

  .timeline__event__content {
    padding: 10px;
    border-radius: 6px 6px;
  }

  .timeline__event:nth-child(2n+1) {
    flex-direction: column;
    align-self: center;
  }

  .timeline__event:nth-child(2n+1) .timeline__event__date {
    border-radius: 0;
    padding: 10px;
  }

  .timeline__event:nth-child(2n+1) .timeline__event__icon {
    border-radius: 6px 6px;
    margin: 0;
  }
}

@keyframes fillLeft {
  100% {
    right: 100%;
  }
}

@keyframes fillTop {
  100% {
    top: 100%;
  }
}

@keyframes fillLeftOdd {
  100% {
    left: 100%;
  }
}

/* Estilos para el modal de imagen */
.modal {
  display: none; /* Oculto por defecto */
  position: fixed;
  z-index: 1000;
  padding-top: 60px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.9); /* Fondo semitransparente */
}

.modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0)} 
  to {transform: scale(1)}
}

.close-modal {
  position: absolute;
  top: 30px;
  right: 35px;
  color: #ffffff;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.close-modal:hover,
.close-modal:focus {
  color: #bbbbbb;
  text-decoration: none;
  cursor: pointer;
}

/*
* {
  box-sizing: border-box;
}

html {
  font-size: 14px;
}

body {
  background: #1a1a1d; 
  font-family: "Open Sans", sans-serif;
  color: #e4e4e4; 
}

h2 {
  margin: 5%;
  text-align: center;
  font-size: 4rem;
  font-weight: 100;
  color: #ff4500; 
}

h1 {
  margin: 4%;
  text-align: center;
  font-size: 2rem;
  font-weight: 10;
  top: 0;
  color: #e4e4e4; 
}

.timeline {
  display: flex;
  flex-direction: column;
  margin: 20px auto;
  position: relative;
}

.timeline__event {
  margin-bottom: 20px;
  position: relative;
  display: flex;
  align-items: center;
  margin: 20px 0;
  border-radius: 6px;
  align-self: center;
  width: 90%;
  max-width: 800px;
  background: #2a2a2e;
}

.timeline__event:nth-child(2n+1) {
  flex-direction: row-reverse;
}

.timeline__event:nth-child(2n+1) .timeline__event__date {
  border-radius: 0 6px 6px 0;
}

.timeline__event:nth-child(2n+1) .timeline__event__content {
  border-radius: 6px 0 0 6px;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:before {
  content: "";
  width: 2px;
  height: 100%;
  background: #ff6f61;
  position: absolute;
  top: 0%;
  left: 50%;
  right: auto;
  z-index: -1;
  transform: translateX(-50%);
  animation: fillTop 2s forwards 4s ease-in-out;
}

.timeline__event:nth-child(2n+1) .timeline__event__icon:after {
  content: "";
  width: 100%;
  height: 2px;
  background: #ff6f61;
  position: absolute;
  right: 0;
  z-index: -1;
  top: 50%;
  left: auto;
  transform: translateY(-50%);
  animation: fillLeft 2s forwards 4s ease-in-out;
}

.timeline__event__title {
  font-size: 1.2rem;
  line-height: 1.4;
  text-transform: uppercase;
  font-weight: 600;
  color: #ff4500;
  letter-spacing: 1.5px;
}

.timeline__event__content {
  flex: 1 1 0%;
  padding: 20px;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
              0 18px 36px -18px rgba(0, 0, 0, 0.4),
              0 -12px 36px -8px rgba(0, 0, 0, 0.2);
  background: #33343a; 
  color: #e4e4e4;
  border-radius: 0 6px 6px 0;
  box-sizing: border-box;
}

.timeline__event__date {
  flex: 0 0 150px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 6px 6px;
  box-sizing: border-box;
}

.timeline__event__date img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px 6px;
}

.timeline__event__icon {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ff4500;
  border-radius: 50%;
  width: 80px;
  height: 80px;
  margin: 0 10px;
  position: relative;
  color: #1a1a1d;
  box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.5),
              0 18px 36px -18px rgba(0, 0, 0, 0.4),
              0 -12px 36px -8px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
  text-align: center;
}

.timeline__event__icon h3 {
  margin: 0;
  font-size: 24px;
  color: #e4e4e4;
  text-align: center;
}
*/