.evolmentor-light {
  .caja-curso-campus {
    .contenedor-barra-porciento {
      margin-top: 50px;
      margin-bottom: 60px;
      position: relative;

      .barra-porciento {
        .numero {
          z-index: 4;
        }
      }
    }
  }
}

@media (max-width: 992px) {
  .caja-curso-campus {
    .progreso-tiempo {
      .titulo-enlace-caja-campus {
        .titulo-caja-campus {
          width: 100%;
          justify-content: space-between;
          align-items: flex-start;
          flex-wrap: nowrap;
          gap: 16px;

          & > span {
            width: max-content;
            min-width: max-content;
            translate: 0 8px;
          }

          .container-tiempo {
            margin: 0;
            width: 100%;
          }
        }
      }
    }
  }
  .evolmentor-light {
    .caja-curso-campus {
      .contenedor-barra-porciento {
        margin-bottom: 80px;
      }
    }
  }
}

:root {
  --color-evolmentor-1: #005db5;
  --color-evolmentor-2: #1e87e9;
  --color-evolmentor-3: #4981b7;
  --color-evolmentor-4: #7fc3cb;

  --hover-evolin : {
    z-index: 3;
    .barra {
      background-color: var(--primario-2);
    }
    .fecha {
      color: var(--primario-1);
    }
    & .resume-progreso-evolmentor {
      opacity: 1;
    }
  }
}

.resume-progreso-evolmentor {
  position: absolute;
  width: max-content;
  max-width: 300px;
  bottom: calc(100% + 8px);
  font-size: 13px;
  font-weight: 400;
  padding: 6px;
  border-radius: 100px;
  border: 2px solid var(--color-evolmentor-4);
  color: var(--color-evolmentor-1);
  background-color: white;
  outline: 2px solid white !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.1s ease-in;

  p {
    margin: 0;
    line-height: 120%;

    .numero {
      font-size: 14px;
      font-weight: 700;
    }
  }

  .check,
  .target {
    aspect-ratio: 1 / 1;
  }

  .target {
    width: 20px;
    height: 20px;
  }
}

.progreso-evolmentor {
  cursor: help;
  position: absolute;
  top: 0;
  translate: -13px 0;
  width: -webkit-max-content;
  width: -moz-max-content;
  width: max-content;
  height: 68px;
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 2;

  &:not(:hover) {
    .barra {
      background-color: var(--color-evolmentor-2);
    }
    .fecha {
      color: var(--color-evolmentor-2);
    }
    .resume-progreso-evolmentor {
      opacity: 0;
      scale: 0.2;
      filter: blur(2px);
    }
  }

  &:hover {
    z-index: 3;
    .barra {
      background-color: var(--primario-2);
    }
    .fecha {
      color: var(--primario-1);
    }
    & .resume-progreso-evolmentor {
      opacity: 1;
    }
  }


  &.left {
    .fecha,
    .resume-progreso-evolmentor {
      left: 0;
    }
    .fecha {
      translate: 0 0;
    }
    .resume-progreso-evolmentor {
      transform-origin: bottom left;
      @media (min-width: 992px) {
        transform: translateX(-6px);
      }
    }
  }
  &.right {
    .fecha,
    .resume-progreso-evolmentor {
      right: 0;
    }
    .fecha {
      translate: 0 0;
    }
    .resume-progreso-evolmentor {
      transform-origin: bottom right;
      @media (min-width: 992px) {
        transform: translateX(6px);
      }
    }
  }
  &:not(.left):not(.right) {
    .resume-progreso-evolmentor {
      transform-origin: bottom center;
    }
  }

  .fecha {
    width: max-content;
    position: absolute;
    top: 100%;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.1s ease-in;
  }

  .barra {
    width: 2px;
    height: 100%;
    z-index: 2;
    transform-origin: top center;
  }

  .evolin {
    width: 26px;
    height: 26px;
  }
}
