.timline-content {
  display: grid;
  grid-template-columns: 1fr 0.25rem 1fr;
  grid-auto-columns: max-content;
  column-gap: 2rem;
  width: min(60rem, 90%);
  margin-inline: auto;
}

/* line */
.timline-content::before {
  content: "";
  grid-column: 1;
  grid-row: 1 / span 20;
  background: rgb(225, 225, 225);
  border-radius: 0.25rem;
}

/* columns*/

/* row gaps */
.timline-content span:not(:last-child) {
  margin-bottom: 4rem;
}

/* card */
.timline-content span {
  grid-column: 2;
  --inlineP: 1.5rem;
  margin-inline: 1.5rem;
  grid-row: span 2;
  display: grid;
  grid-template-rows: min-content min-content min-content;
}

/* date */
.timline-content span .date {
  height: 3rem;
  margin-inline: -24px;

  text-align: center;
  background-color: var(--theme_primary);

  color: white;

  display: grid;
  place-content: center;
  position: relative;

  border-radius: 3rem 0 0 3rem;
}

/* date flap */
.timline-content span .date::before {
  content: "";
  width: 1.5rem;
  aspect-ratio: 1;
  background: var(--theme_primary);
  background-image: linear-gradient(rgba(0, 0, 0, 0.2) 100%, transparent);
  position: absolute;
  top: 100%;

  clip-path: polygon(0 0, 100% 0, 0 100%);
  right: 0;
}

/* circle */
.timline-content span .date::after {
  content: "";
  position: absolute;
  width: 2rem;
  aspect-ratio: 1;
  background: var(--theme_secondary);
  border: 0.3rem solid var(--theme_primary);
  border-radius: 50%;
  top: 20%;
  right: 100%;
  margin-right: 18px;
}

/* title descr */
.timline-content span .title,
.timline-content span .descr {
  background: #f8f8f8;
  position: relative;
  padding-inline: 1.5rem;
}
.timline-content span .title {
  overflow: hidden;
  padding-block-start: 1.5rem;
  padding-block-end: 1rem;
}
.timline-content span .descr {
  padding-block-end: 1.5rem;
}

/* shadows */
.timline-content span .title::before,
.timline-content span .descr::before {
  content: "";
  position: absolute;
  width: 90%;
  height: 0.5rem;
  background: rgba(0, 0, 0, 0.5);
  left: 50%;
  border-radius: 50%;
  filter: blur(4px);
  transform: translate(-50%, 50%);
}
.timline-content span .title::before {
  bottom: calc(100% + 0.125rem);
}

.timline-content span .descr::before {
  z-index: -1;
  bottom: 0.25rem;
}

@media (min-width: 767px) {
  .timline-content {
    grid-template-columns: 1fr 0.25rem 1fr;
  }
  .timline-content::before {
    grid-column: 2;
  }
  .timline-content span:nth-child(odd) {
    grid-column: 1;
  }
  .timline-content span:nth-child(even) {
    grid-column: 3;
  }

  .timline-content span .date::after {
    margin-right: 18px;
  }

  /* start second card */
  .timline-content span:nth-child(2) {
    grid-row: 2/4;
  }

  .timline-content span:nth-child(odd) .date::before {
    clip-path: polygon(0 0, 100% 0, 100% 100%);
    left: 0;
  }

  .timline-content span:nth-child(odd) .date::after {
    left: 100%;
    margin-left: 18px;
    top:0;
  }
  .timline-content span:nth-child(odd) .date {
    border-radius: 0 3rem 3rem 0;
  }
}
@media (max-width: 766px) {

  .timline-content {
    display: block;
  }
  .timline-content span:nth-child(odd) .date{
    border-top-right-radius: 0px !important;
  }
  .timline-content span .date::after {
    margin-right: 4px;
  }


}



/* layout2 */

:root{
  --colorPrincipal: #7DB4B5;
  --colorSecundario: #680148;
  --colorSombra: rgba(125, 180, 181, 0.2)
}

/*Timeline*/
.timeline2{
  position: relative;
  margin: 50px auto;
  width: 100%;
}

.timeline2::before{
  content: '';
  position: absolute;
  left: 50%;
  width: 2px;
  height: 100%;
  background-color: #e4e4e4;
  top: 30px;
}

/*Elementos de lista*/
.timeline2 ul li{
  list-style: none;
  position: relative;
  width: 50%;
  padding: 20px 40px;
}

.timeline2 ul li:nth-child(odd){
  float: left;
  text-align: right;
  clear: both;
}

.timeline2 ul li:nth-child(even){
  float: right;
  text-align: left;
  clear: both;
}

/*Circulo indicador*/
.timeline2 ul li::before{
  content: '';
  position: absolute;
  top: 30px;
  width: 10px;
  height: 10px;
  background-color: var(--theme_secondary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--theme_primary);
}

.timeline2 ul li:nth-child(odd)::before{
  right: -6px;
}

.timeline2 ul li:nth-child(even)::before{
  left: -4px;
}


/*Fecha*/
.time{
  display: inline-block;
  padding: 5px 10px;
  margin-bottom: 15px;
  background-color: var(--theme_primary);
  color: var(--white_color);
  border-radius: 20px;
  box-shadow: 0 0 0 3px var(--theme_primary);
}

.time.date h3 {
  color: #fff;
}



/*Contenido*/
.timeline2 .content{
  padding-bottom: 20px;
}

.timeline2 ul li h2{
  color: var(--black_color);
}

.timeline2 ul li p{
  margin: 10px 0;
}
@media (max-width: 766px) {

  .timeline2 ul li {
    width: inherit;
  }
  .timeline2 ul li:nth-child(odd) {
    text-align: left;
  }
  .timeline2 ul li:nth-child(odd)::before {
    right: 0px;
    left: -4px;
  }
  .timeline2::before {
    left: 0%;
  }

