.hero {
  position: relative;
  height: 598px;
  background: url('/public/images/bg/bg-desktop.jpeg') no-repeat center;
  border-radius: 8px;
  padding: 12px 16px;
  width: 100%;
  box-shadow: 2px 8px 10px rgba(0, 0, 0, 0.3);
}

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

.carrousel {
  position: absolute;
  right: -100px;
  top: 70px;

  display: flex;
  width: 392px;
  overflow-x: scroll;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.container-card {
  min-width: 100%;
  border-radius: 8px;

  display: flex;
  justify-items: end;
  align-items: end;
  flex-direction: column;
}

.card {
  position: relative;
  border-radius: 8px;
  background-color: rgba(251, 232, 232, 0.7);
  backdrop-filter: blur(8px);
  padding: 12px 16px;
  color: var(--color-primary);
  scroll-snap-align: start;

  display: flex;
  flex-direction: column;
  gap: 8px;

  & p {
    font-size: 17px;
    font-weight: 400;
  }

  & header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    & .profile {
      display: flex;
      align-items: center;
      gap: 8px;

      & .profile-img {
        object-fit: cover;
        object-position: center;
        width: 44px;
        height: 44px;
        border-radius: 50%;
      }

      & .profile-info {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 2px;

        & h2 {
          font-size: 16px;
          font-weight: 700;
        }

        & p {
          font-size: 14px;
          font-weight: 300;
        }
      }
    }

    & .rating {
      display: flex;
      align-items: center;
      gap: 6px;

      & .rating-img {
        object-fit: cover;
        object-position: center;
        width: 24px;
        height: 24px;
      }

      & .rate {
        font-size: 16px;
        font-weight: 700;
      }
    }
  }
}

.card:target {
  scroll-snap-align: start; /* Alinea el artículo con el inicio del contenedor */
}

.menu {
  bottom: -22px;
  right: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  transform: translate(-50px, -20px);

  width: fit-content;

  gap: 8px;

  & a {
    border-radius: 8px;
    width: 44px;
    height: 44px;
    background-color: var(--color-primary);
    color: var(--color-secondary);

    display: flex;
    justify-content: center;
    align-items: center;

    transition: all 0.4s ease;
    cursor: pointer;
  }

  & a:hover {
    background-color: var(--btn-hover);
    color: var(--color-tertiary);
  }
}
