.evolmentor-light {
  .caja-curso-campus {
    .progreso-tiempo {
      .container-tiempo {
        margin-inline: 0;
      }
    }
    .contenedor-barra-porciento {
      margin-top: 30px;
      margin-bottom: 60px;
      position: relative;
      width: calc(100% - 80px);

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

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

        &:hover {
          z-index: 3;

          /* & ~ .actual {
            .resume {
              .fecha {
                display: none;
              }
            }
          } */

          .barra {
            border-left: 1px solid var(--primario-2);
            border-right: 1px solid var(--primario-2);
          }
        }

        &:not(:hover):not(.actual) {
          .barra {
            border-color: white;
          }
          .barra {
            transform: scaleY(110%);
          }
          .check {
            scale: 0.4;
            outline: 2px solid var(--gris-2) !important;
            box-shadow: none;
            svg {
              fill: white;
              opacity: 0;
            }
          }
          .resume {
            opacity: 0;
          }
        }

        .barra {
          width: 1px;
          height: 100%;
          z-index: 2;
          transform-origin: top center;
          border-right: 1px dashed transparent;
        }
        .check {
          position: relative;
          z-index: 2;
          width: 16px;
          height: 16px;
          aspect-ratio: 1;
          display: flex;
          align-items: center;
          justify-content: center;
          border-radius: 100%;
          background-color: white;
          transform-origin: center center;
          transition: all 0.15s ease-in-out;

          &:after {
            content: "";
            position: absolute;
            top: 50%;
            left: 50%;
            translate: -50% -50%;
            width: 26px;
            height: 26px;
          }

          svg {
            width: 10px;
            height: 10px;
            transition: all 0.15s ease-in-out;
          }
        }

        .resume {
          pointer-events: none;
          position: absolute;
          z-index: 1;
          top: 100%;
          left: 0;
          display: flex;
          flex-direction: column;
          gap: 6px;
          translate: -10px -26px;
          padding: 12px;
          background-color: white;
          border-radius: 6px;
          box-shadow: 0px 2px 5px 2px var(--negro15);
          transform-origin: top left;
          transition: all 0.15s allow-discrete;

          .fecha,
          .txt {
            font-weight: 500;
          }

          .fecha {
            display: flex;
            align-items: center;
            gap: 4px;
            font-size: 14px;
            line-height: 1;
            -webkit-padding-start: 20px;
            padding-inline-start: 20px;

            img {
              opacity: 0;
              width: 18px;
              height: 18px;
            }
          }
          .txt {
            width: 24ch;
            font-size: 13px;
            font-weight: 400;
            line-height: 120%;
            text-wrap: pretty;
            color: var(--primario-2);
            margin: 0;

            .numero {
              font-weight: 900;
            }
          }
        }

        &.success {
          .check {
            background-color: var(--success-2);
            box-shadow: 0 0 1px 2px var(--success-3);
          }
          .resume {
            .fecha {
              color: var(--success-3);
            }
          }
          &:hover {
            .check {
              background-color: white;
              svg {
                fill: var(--success-3);
              }
            }
          }
        }
        &.fail {
          .check {
            box-shadow: 0 0 1px 2px var(--danger-3);
            background-color: var(--danger-2);
          }
          .resume {
            .fecha {
              color: var(--danger-3);
            }
          }
          &:hover {
            .check {
              background-color: white;
              svg {
                fill: var(--danger-3);
              }
            }
          }
        }
        &.actual {
          .check {
            scale: 1.5;
            translate: 0 -2px;
          }
          .resume {
            .fecha {
              pointer-events: all;
              -webkit-padding-start: 22px;
              padding-inline-start: 26px;
              color: var(--primario-2);
            }
            .txt {
            }
          }
          &:not(:hover) {
            .barra {
              border-right: 1px solid var(--primario-2);
              border-left: 1px solid var(--primario-2);
            }
            .resume {
              opacity: 1;
              background: none;
              box-shadow: none;
              .fecha {
              }
              .txt {
                display: none;
              }
            }
          }
          &:not(.success) {
            .resume {
              .fecha {
              }
            }
            &:hover {
              .check {
              }
            }
          }
        }
      }
    }
  }
}

:root {
  --color-evol-1: #1e87e9;
  --color-evol-2: #029aff;
  --color-evol-3: #005db5;
  --color-evol-4: #005db591;
}

body {
  .container-titulo-actividad-aula {
    container-type: inline-size;
    container-name: tituloActividadAula;

    .titulo-actividad-aula.titulo-actividad-aula-actividades {
      flex-wrap: nowrap;
      gap: 16px;

      @container tituloActividadAula (max-width: 998px) {
        .evolmentor-actividades-restantes {
          .content {
            .txt {
              display: none;
            }
          }
        }
      }

      @container tituloActividadAula (max-width: 600px) {
        flex-wrap: wrap;
        gap: 6px;

        & > * {
          &:not(.evolmentor-actividades-restantes) {
            order: 1;
          }
        }

        .titulo-actividad {
          flex-basis: 70%;
        }

        .evolmentor-actividades-restantes {
          margin-left: auto;
          order: 2;

          position: fixed;
          bottom: 10px;
          right: 10px;
          z-index: 100;
        }
      }

      & > * {
        &:not(.titulo-actividad) {
        }
      }
      .titulo-actividad {
        width: 100%;
        .icono-titulo {
          max-width: 100%;
        }
      }
      .actividad-contenido-adicional {
        display: flex;
        align-items: center;
        gap: 16px;
      }
      .evolmentor-actividades-restantes {
        min-width: -webkit-max-content;
        min-width: -moz-max-content;
        min-width: max-content;
      }
      .btn-descarga {
        margin-left: auto;
        aspect-ratio: 1 / 1;
        svg {
        }
      }
      .full-screen {
      }
    }
  }
}

.container-actividades,
.body-modal-actividades {
  .evolmentor-actividades-restantes {
    width: 100%;
    position: -webkit-sticky;
    position: sticky;
    top: 0;
    z-index: 100;
    margin-bottom: 16px;
  }
}

.evolmentor-actividades-restantes {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: white;
  padding: 12px 6px;
  border-radius: 100px;
  box-shadow: 0 2px 2px var(--negro10);
  .evolin {
    width: 20px;
  }
  .content {
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 100%;
    .txt {
      font-size: 12px;
      font-weight: 500;
      color: var(--color-evol-4);
    }
    .counter {
      display: flex;
      align-items: center;
      gap: 4px;
      font-size: 14px;
      color: var(--color-evol-2);
      .actual {
        font-weight: 700;
        color: var(--color-evol-3);
      }
      .total {
      }
    }
  }
}
